From e115f8b577a57e1c19ebdc78fa6d84317084d5eb Mon Sep 17 00:00:00 2001 From: Steven Zou Date: Thu, 9 Mar 2017 10:18:03 +0800 Subject: [PATCH] merge latest ui_ng code in --- src/ui_ng/src/app/base/base.module.ts | 11 +- .../global-search.component.html | 2 +- .../global-search/global-search.component.ts | 53 ++++++--- .../global-search/search-result.component.css | 14 ++- .../search-result.component.html | 11 +- .../global-search/search-result.component.ts | 61 ++++++++-- .../app/base/global-search/search-results.ts | 9 +- .../global-search/search-start.component.css | 17 +++ .../global-search/search-start.component.html | 9 ++ .../global-search/search-start.component.ts | 62 +++++++++++ .../global-search/search-trigger.service.ts | 31 ++++++ .../harbor-shell/harbor-shell.component.html | 4 +- .../harbor-shell/harbor-shell.component.ts | 64 ++++++++--- src/ui_ng/src/app/base/modal-events.const.ts | 6 +- .../base/navigator/navigator.component.html | 2 +- .../app/base/navigator/navigator.component.ts | 9 +- src/ui_ng/src/app/base/search-event.ts | 4 - .../app/dashboard/dashboard.component.html | 54 --------- .../src/app/dashboard/dashboard.component.ts | 20 ---- .../src/app/dashboard/dashboard.module.ts | 10 -- src/ui_ng/src/app/harbor-routing.module.ts | 10 ++ .../create-project.component.html | 4 +- .../list-project/list-project.component.html | 44 ++++---- .../list-project/list-project.component.ts | 47 ++++++-- .../project-detail.component.html | 1 + src/ui_ng/src/app/project/project.module.ts | 2 +- .../create-edit-destination.component.html | 22 ++-- .../create-edit-destination.component.ts | 54 +++++++-- .../destination/destination.component.html | 14 +-- .../list-job/list-job.component.html | 16 +-- .../replication-management.component.html | 6 +- .../replication/replication.component.html | 14 +-- .../app/replication/replication.component.ts | 24 ++-- .../list-repository.component.html | 18 +++ .../list-repository.component.ts | 17 +++ src/ui_ng/src/app/repository/repo.ts | 9 -- .../app/repository/repository.component.html | 49 +++----- .../app/repository/repository.component.ts | 99 +++++++++++++++-- .../src/app/repository/repository.module.ts | 23 +++- .../src/app/repository/repository.service.ts | 27 +++++ src/ui_ng/src/app/repository/repository.ts | 33 +++++- .../tag-repository.component.html | 24 ++++ .../tag-repository.component.ts | 24 ++++ .../create-edit-policy.component.html | 30 ++--- .../create-edit-policy.component.ts | 17 ++- .../deletion-dialog.component.html | 2 +- .../list-policy/list-policy.component.html | 22 ++-- src/ui_ng/src/app/shared/shared.const.ts | 2 +- src/ui_ng/src/ng/i18n/lang/en-lang.json | 105 +++++++++++++++++- src/ui_ng/src/ng/i18n/lang/zh-lang.json | 100 ++++++++++++++++- 50 files changed, 967 insertions(+), 345 deletions(-) create mode 100644 src/ui_ng/src/app/base/global-search/search-start.component.css create mode 100644 src/ui_ng/src/app/base/global-search/search-start.component.html create mode 100644 src/ui_ng/src/app/base/global-search/search-start.component.ts create mode 100644 src/ui_ng/src/app/base/global-search/search-trigger.service.ts delete mode 100644 src/ui_ng/src/app/base/search-event.ts delete mode 100644 src/ui_ng/src/app/dashboard/dashboard.component.html delete mode 100644 src/ui_ng/src/app/dashboard/dashboard.component.ts delete mode 100644 src/ui_ng/src/app/dashboard/dashboard.module.ts create mode 100644 src/ui_ng/src/app/repository/list-repository/list-repository.component.html create mode 100644 src/ui_ng/src/app/repository/list-repository/list-repository.component.ts delete mode 100644 src/ui_ng/src/app/repository/repo.ts create mode 100644 src/ui_ng/src/app/repository/repository.service.ts create mode 100644 src/ui_ng/src/app/repository/tag-repository/tag-repository.component.html create mode 100644 src/ui_ng/src/app/repository/tag-repository/tag-repository.component.ts diff --git a/src/ui_ng/src/app/base/base.module.ts b/src/ui_ng/src/app/base/base.module.ts index 0a623551d..8cfadc71c 100644 --- a/src/ui_ng/src/app/base/base.module.ts +++ b/src/ui_ng/src/app/base/base.module.ts @@ -2,7 +2,6 @@ import { NgModule } from '@angular/core'; import { SharedModule } from '../shared/shared.module'; import { RouterModule } from '@angular/router'; -import { DashboardModule } from '../dashboard/dashboard.module'; import { ProjectModule } from '../project/project.module'; import { UserModule } from '../user/user.module'; import { AccountModule } from '../account/account.module'; @@ -12,11 +11,13 @@ import { GlobalSearchComponent } from './global-search/global-search.component'; import { FooterComponent } from './footer/footer.component'; import { HarborShellComponent } from './harbor-shell/harbor-shell.component'; import { SearchResultComponent } from './global-search/search-result.component'; +import { SearchStartComponent } from './global-search/search-start.component'; + +import { SearchTriggerService } from './global-search/search-trigger.service'; @NgModule({ imports: [ SharedModule, - DashboardModule, ProjectModule, UserModule, AccountModule, @@ -27,9 +28,11 @@ import { SearchResultComponent } from './global-search/search-result.component'; GlobalSearchComponent, FooterComponent, HarborShellComponent, - SearchResultComponent + SearchResultComponent, + SearchStartComponent ], - exports: [ HarborShellComponent ] + exports: [ HarborShellComponent ], + providers: [SearchTriggerService] }) export class BaseModule { diff --git a/src/ui_ng/src/app/base/global-search/global-search.component.html b/src/ui_ng/src/app/base/global-search/global-search.component.html index e895fa79e..ebb4b0802 100644 --- a/src/ui_ng/src/app/base/global-search/global-search.component.html +++ b/src/ui_ng/src/app/base/global-search/global-search.component.html @@ -1,4 +1,4 @@ -