Merge pull request #7916 from jwangyangls/modifyMultilingualism

Fix bug when we use language with pt-br; change the harbor version from 1.7.x to 1.8
This commit is contained in:
Qian Deng 2019-05-29 10:39:47 +08:00 committed by GitHub
commit 731ac5cf32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@harbor/ui", "name": "@harbor/ui",
"version": "1.7.4-rc2", "version": "1.8.0-rc2",
"description": "Harbor shared UI components based on Clarity and Angular7", "description": "Harbor shared UI components based on Clarity and Angular7",
"author": "CNCF", "author": "CNCF",
"module": "index.js", "module": "index.js",

View File

@ -1,6 +1,6 @@
{ {
"name": "harbor", "name": "harbor",
"version": "1.7.1", "version": "1.8.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "harbor", "name": "harbor",
"version": "1.7.1", "version": "1.8.0",
"description": "Harbor UI with Clarity", "description": "Harbor UI with Clarity",
"angular-cli": {}, "angular-cli": {},
"scripts": { "scripts": {

View File

@ -32,6 +32,7 @@ import { ProjectConfigComponent } from './project/project-config/project-config.
import zh from '@angular/common/locales/zh-Hans'; import zh from '@angular/common/locales/zh-Hans';
import es from '@angular/common/locales/es'; import es from '@angular/common/locales/es';
import localeFr from '@angular/common/locales/fr'; import localeFr from '@angular/common/locales/fr';
import localePt from '@angular/common/locales/pt-PT';
import { DevCenterComponent } from './dev-center/dev-center.component'; import { DevCenterComponent } from './dev-center/dev-center.component';
import { VulnerabilityPageComponent } from './vulnerability-page/vulnerability-page.component'; import { VulnerabilityPageComponent } from './vulnerability-page/vulnerability-page.component';
import { GcPageComponent } from './gc-page/gc-page.component'; import { GcPageComponent } from './gc-page/gc-page.component';
@ -39,6 +40,7 @@ import { OidcOnboardModule } from './oidc-onboard/oidc-onboard.module';
registerLocaleData(zh, 'zh-cn'); registerLocaleData(zh, 'zh-cn');
registerLocaleData(es, 'es-es'); registerLocaleData(es, 'es-es');
registerLocaleData(localeFr, 'fr-fr'); registerLocaleData(localeFr, 'fr-fr');
registerLocaleData(localePt, 'pt-br');
export function initConfig(configService: AppConfigService, skinableService: SkinableConfig) { export function initConfig(configService: AppConfigService, skinableService: SkinableConfig) {

View File

@ -41,7 +41,8 @@
} }
.nav-icon-width { .nav-icon-width {
width: 98px !important; width: auto !important;
padding-left: 18px !important;
.icon-left { .icon-left {
left: -8px; left: -8px;
} }