From ac8777fb0928ad74eefccce2149074bf7cb2f131 Mon Sep 17 00:00:00 2001 From: e Date: Wed, 5 Jun 2019 19:32:04 +0800 Subject: Dashboard-list interface front-end development Change-Id: I7328e0c26e927245ea20f99c7f780669c66e7557 Issue-ID: DCAEGEN2-1599 Signed-off-by: e --- .../admin/src/src/app/app-routing.module.ts | 7 +- .../admin/src/src/app/app.module.ts | 22 +- .../src/src/app/core/alert/alert.component.html | 10 +- .../src/src/app/core/alert/alert.component.ts | 2 + .../src/src/app/core/models/dashboard.model.ts | 24 ++ .../src/src/app/core/models/template.model.ts | 51 ++++ .../core/services/dashboard-api.service.spec.ts | 27 ++ .../src/app/core/services/dashboard-api.service.ts | 186 ++++++++++++++ .../create-dashboard.component.css | 18 ++ .../create-dashboard.component.html | 115 +++++++++ .../create-dashboard.component.spec.ts | 40 +++ .../create-dashboard/create-dashboard.component.ts | 77 ++++++ .../dashboard-list/dashboard-list.component.css | 64 +++++ .../dashboard-list/dashboard-list.component.html | 242 ++++++++++++++++++ .../dashboard-list.component.spec.ts | 40 +++ .../dashboard-list/dashboard-list.component.ts | 283 +++++++++++++++++++++ .../dashboard-setting.component.css | 15 ++ .../dashboard-setting.component.html | 24 ++ .../dashboard-setting.component.spec.ts | 40 +++ .../dashboard-setting.component.ts | 29 +++ .../edit-template-modal.component.css | 15 ++ .../edit-template-modal.component.html | 15 ++ .../edit-template-modal.component.spec.ts | 40 +++ .../edit-template-modal.component.ts | 43 ++++ .../new-template-modal.component.css | 15 ++ .../new-template-modal.component.html | 15 ++ .../new-template-modal.component.spec.ts | 40 +++ .../new-template-modal.component.ts | 44 ++++ .../template-list/template-list.component.css | 15 ++ .../template-list/template-list.component.html | 15 ++ .../template-list/template-list.component.spec.ts | 40 +++ .../template-list/template-list.component.ts | 27 ++ .../template/template.component.css | 15 ++ .../template/template.component.html | 23 ++ .../template/template.component.spec.ts | 40 +++ .../template/template.component.ts | 34 +++ .../admin/src/src/app/header/header.component.ts | 2 + .../src/src/app/sidebar/sidebar.component.css | 6 + .../src/src/app/sidebar/sidebar.component.html | 28 +- .../admin/src/src/app/sidebar/sidebar.component.ts | 2 + .../admin/src/src/assets/i18n/en-us.json | 27 +- .../admin/src/src/assets/i18n/zh-hans.json | 26 +- .../admin/src/src/assets/i18n/zh-hant.json | 26 +- .../datalake-handler/admin/src/src/styles.css | 9 + 44 files changed, 1866 insertions(+), 12 deletions(-) create mode 100644 components/datalake-handler/admin/src/src/app/core/models/dashboard.model.ts create mode 100644 components/datalake-handler/admin/src/src/app/core/models/template.model.ts create mode 100644 components/datalake-handler/admin/src/src/app/core/services/dashboard-api.service.spec.ts create mode 100644 components/datalake-handler/admin/src/src/app/core/services/dashboard-api.service.ts create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.css create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.html create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.spec.ts create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.ts create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/dashboard-list.component.css create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/dashboard-list.component.html create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/dashboard-list.component.spec.ts create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/dashboard-list.component.ts create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-setting.component.css create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-setting.component.html create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-setting.component.spec.ts create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-setting.component.ts create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component.css create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component.html create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component.spec.ts create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component.ts create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/new-template-modal/new-template-modal.component.css create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/new-template-modal/new-template-modal.component.html create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/new-template-modal/new-template-modal.component.spec.ts create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/new-template-modal/new-template-modal.component.ts create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/template-list.component.css create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/template-list.component.html create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/template-list.component.spec.ts create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/template-list.component.ts create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/template/template.component.css create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/template/template.component.html create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/template/template.component.spec.ts create mode 100644 components/datalake-handler/admin/src/src/app/dashboard-setting/template/template.component.ts (limited to 'components/datalake-handler/admin/src') diff --git a/components/datalake-handler/admin/src/src/app/app-routing.module.ts b/components/datalake-handler/admin/src/src/app/app-routing.module.ts index 37436156..37ed0401 100644 --- a/components/datalake-handler/admin/src/src/app/app-routing.module.ts +++ b/components/datalake-handler/admin/src/src/app/app-routing.module.ts @@ -31,13 +31,18 @@ import { FeederComponent } from "./feeder/feeder.component"; import { TopicsComponent } from "./topics/topics.component"; import { DatabaseComponent } from "./database/database.component"; import { AboutComponent } from "./about/about.component"; +import { DashboardSettingComponent } from './dashboard-setting/dashboard-setting.component'; +import { DashboardListComponent } from './dashboard-setting/dashboard-list/dashboard-list.component'; +import { TemplateComponent } from './dashboard-setting/template/template.component'; const routes: Routes = [ { path: "", redirectTo: "/feeder", pathMatch: "full" }, { path: "feeder", component: FeederComponent }, { path: "topics", component: TopicsComponent }, { path: "database", component: DatabaseComponent }, - { path: "about", component: AboutComponent } + { path: "about", component: AboutComponent }, + { path: 'dashboard-setting/dashboard-list', component: DashboardListComponent}, + { path: 'dashboard-setting/template', component: TemplateComponent}, ]; @NgModule({ diff --git a/components/datalake-handler/admin/src/src/app/app.module.ts b/components/datalake-handler/admin/src/src/app/app.module.ts index 7249e1dd..a5393d9a 100644 --- a/components/datalake-handler/admin/src/src/app/app.module.ts +++ b/components/datalake-handler/admin/src/src/app/app.module.ts @@ -74,6 +74,13 @@ import { AboutComponent } from "./about/about.component"; // Loading spinner import { NgxSpinnerModule } from "ngx-spinner"; +import { DashboardSettingComponent } from './dashboard-setting/dashboard-setting.component'; +import { DashboardListComponent } from './dashboard-setting/dashboard-list/dashboard-list.component'; +import { TemplateComponent } from './dashboard-setting/template/template.component'; +import { CreateDashboardComponent } from './dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component'; +import { TemplateListComponent } from './dashboard-setting/template/template-list/template-list.component'; +import { NewTemplateModalComponent } from './dashboard-setting/template/template-list/new-template-modal/new-template-modal.component'; +import { EditTemplateModalComponent } from './dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component'; @NgModule({ declarations: [ @@ -94,7 +101,15 @@ import { NgxSpinnerModule } from "ngx-spinner"; TopicConfigModalComponent, ToastrNotificationComponent, AlertComponent, - AboutComponent + AboutComponent, + DashboardSettingComponent, + DashboardListComponent, + CreateDashboardComponent, + TemplateComponent, + TemplateListComponent, + NewTemplateModalComponent, + EditTemplateModalComponent, + ], imports: [ BrowserModule, @@ -122,7 +137,10 @@ import { NgxSpinnerModule } from "ngx-spinner"; ElasticsearchComponent, MongodbComponent, TopicDetailModalComponent, - TopicConfigModalComponent + TopicConfigModalComponent, + CreateDashboardComponent, + NewTemplateModalComponent, + EditTemplateModalComponent ] }) export class AppModule {} diff --git a/components/datalake-handler/admin/src/src/app/core/alert/alert.component.html b/components/datalake-handler/admin/src/src/app/core/alert/alert.component.html index 4819abb0..48d74721 100644 --- a/components/datalake-handler/admin/src/src/app/core/alert/alert.component.html +++ b/components/datalake-handler/admin/src/src/app/core/alert/alert.component.html @@ -18,12 +18,12 @@ limitations under the License. ============LICENSE_END========================================================= --> -
+
-