feat: change the structure of the project 09/91709/1
authorcyuamber <xuranyjy@chinamobile.com>
Fri, 19 Jul 2019 02:21:22 +0000 (10:21 +0800)
committercyuamber <xuranyjy@chinamobile.com>
Fri, 19 Jul 2019 02:21:40 +0000 (10:21 +0800)
Change-Id: I68dc566780aa26f7d4de7488705adcb3fec2f782
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Issue-ID: DCAEGEN2-1671

131 files changed:
components/datalake-handler/admin/src/README.md
components/datalake-handler/admin/src/src/app/app-routing.module.ts
components/datalake-handler/admin/src/src/app/app.component.html
components/datalake-handler/admin/src/src/app/app.module.ts
components/datalake-handler/admin/src/src/app/shared/components/alert/alert.component.css [moved from components/datalake-handler/admin/src/src/app/core/alert/alert.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/components/alert/alert.component.html [moved from components/datalake-handler/admin/src/src/app/core/alert/alert.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/components/alert/alert.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/core/alert/alert.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/components/alert/alert.component.ts [moved from components/datalake-handler/admin/src/src/app/core/alert/alert.component.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/components/toastr-notification/toastr-notification.component.css [moved from components/datalake-handler/admin/src/src/app/core/toastr-notification/toastr-notification.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/components/toastr-notification/toastr-notification.component.html [moved from components/datalake-handler/admin/src/src/app/core/toastr-notification/toastr-notification.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/components/toastr-notification/toastr-notification.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/core/toastr-notification/toastr-notification.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/components/toastr-notification/toastr-notification.component.ts [moved from components/datalake-handler/admin/src/src/app/core/toastr-notification/toastr-notification.component.ts with 95% similarity]
components/datalake-handler/admin/src/src/app/shared/components/toastr-notification/toastr-notification.service.spec.ts [moved from components/datalake-handler/admin/src/src/app/core/services/toastr-notification.service.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/components/toastr-notification/toastr-notification.service.ts [moved from components/datalake-handler/admin/src/src/app/core/services/toastr-notification.service.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/layout/header/header.component.css [moved from components/datalake-handler/admin/src/src/app/header/header.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/layout/header/header.component.html [moved from components/datalake-handler/admin/src/src/app/header/header.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/layout/header/header.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/header/header.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/layout/header/header.component.ts [moved from components/datalake-handler/admin/src/src/app/header/header.component.ts with 94% similarity]
components/datalake-handler/admin/src/src/app/shared/layout/sidebar/sidebar.component.css [moved from components/datalake-handler/admin/src/src/app/sidebar/sidebar.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/layout/sidebar/sidebar.component.html [moved from components/datalake-handler/admin/src/src/app/sidebar/sidebar.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/layout/sidebar/sidebar.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/sidebar/sidebar.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/layout/sidebar/sidebar.component.ts [moved from components/datalake-handler/admin/src/src/app/sidebar/sidebar.component.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/modules/card/card.component.css [moved from components/datalake-handler/admin/src/src/app/topics/topic-list/topic-config-modal/topic-config-modal.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/modules/card/card.component.html [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/shared/modules/card/card.component.spec.ts [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/shared/modules/card/card.component.ts [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/shared/modules/modal/modal.component.css [moved from components/datalake-handler/admin/src/src/app/topics/topic-list/topic-detail-modal/topic-detail-modal.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/modules/modal/modal.component.html [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/shared/modules/modal/modal.component.spec.ts [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/shared/modules/modal/modal.component.ts [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/shared/modules/search/search.component.css [moved from components/datalake-handler/admin/src/src/app/topics/topics.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/shared/modules/search/search.component.html [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/shared/modules/search/search.component.spec.ts [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/shared/modules/search/search.component.ts [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/shared/modules/table/table.component.css [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/shared/modules/table/table.component.html [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/shared/modules/table/table.component.spec.ts [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/shared/modules/table/table.component.ts [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/shared/utils/utils.js [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/views/about/about.component.css [moved from components/datalake-handler/admin/src/src/app/about/about.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/about/about.component.html [moved from components/datalake-handler/admin/src/src/app/about/about.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/about/about.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/about/about.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/about/about.component.ts [moved from components/datalake-handler/admin/src/src/app/about/about.component.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.css [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.html [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.ts [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.ts with 86% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/dashboard-list/dashboard-list.component.css [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/dashboard-list.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/dashboard-list/dashboard-list.component.html [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/dashboard-list.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/dashboard-list/dashboard-list.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/dashboard-list.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/dashboard-list/dashboard-list.component.ts [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/dashboard-list.component.ts with 94% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/dashboard-setting.component.css [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-setting.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/dashboard-setting.component.html [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-setting.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/dashboard-setting.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-setting.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/dashboard-setting.component.ts [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-setting.component.ts with 97% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component.css [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component.html [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component.ts [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/template/template-list/new-template-modal/new-template-modal.component.css [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/new-template-modal/new-template-modal.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/template/template-list/new-template-modal/new-template-modal.component.html [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/new-template-modal/new-template-modal.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/template/template-list/new-template-modal/new-template-modal.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/new-template-modal/new-template-modal.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/template/template-list/new-template-modal/new-template-modal.component.ts [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/new-template-modal/new-template-modal.component.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/template/template-list/template-list.component.css [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/template-list.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/template/template-list/template-list.component.html [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/template-list.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/template/template-list/template-list.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/template-list.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/template/template-list/template-list.component.ts [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/template-list.component.ts with 97% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/template/template.component.css [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/template/template.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/template/template.component.html [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/template/template.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/template/template.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/template/template.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/dashboard-setting/template/template.component.ts [moved from components/datalake-handler/admin/src/src/app/dashboard-setting/template/template.component.ts with 93% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/database-add-modal/database-add-modal.component.css [moved from components/datalake-handler/admin/src/src/app/database/database-list/database-add-modal/database-add-modal.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/database-add-modal/database-add-modal.component.html [moved from components/datalake-handler/admin/src/src/app/database/database-list/database-add-modal/database-add-modal.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/database-add-modal/database-add-modal.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/database/database-list/database-add-modal/database-add-modal.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/database-add-modal/database-add-modal.component.ts [moved from components/datalake-handler/admin/src/src/app/database/database-list/database-add-modal/database-add-modal.component.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/database-list.component.css [moved from components/datalake-handler/admin/src/src/app/database/database-list/database-list.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/database-list.component.html [moved from components/datalake-handler/admin/src/src/app/database/database-list/database-list.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/database-list.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/database/database-list/database-list.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/database-list.component.ts [moved from components/datalake-handler/admin/src/src/app/database/database-list/database-list.component.ts with 93% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/couchbase/couchbase.component.css [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/couchbase/couchbase.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/couchbase/couchbase.component.html [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/couchbase/couchbase.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/couchbase/couchbase.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/couchbase/couchbase.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/couchbase/couchbase.component.ts [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/couchbase/couchbase.component.ts with 99% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/druid/druid.component.css [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/druid/druid.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/druid/druid.component.html [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/druid/druid.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/druid/druid.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/druid/druid.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/druid/druid.component.ts [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/druid/druid.component.ts with 99% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/elasticsearch/elasticsearch.component.css [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/elasticsearch/elasticsearch.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/elasticsearch/elasticsearch.component.html [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/elasticsearch/elasticsearch.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/elasticsearch/elasticsearch.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/elasticsearch/elasticsearch.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/elasticsearch/elasticsearch.component.ts [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/elasticsearch/elasticsearch.component.ts with 99% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/hdfs/hdfs.component.css [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/hdfs/hdfs.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/hdfs/hdfs.component.html [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/hdfs/hdfs.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/hdfs/hdfs.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/hdfs/hdfs.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/hdfs/hdfs.component.ts [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/hdfs/hdfs.component.ts with 99% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/mongodb/mongodb.component.css [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/mongodb/mongodb.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/mongodb/mongodb.component.html [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/mongodb/mongodb.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/mongodb/mongodb.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/mongodb/mongodb.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database-list/dbs-modal/mongodb/mongodb.component.ts [moved from components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/mongodb/mongodb.component.ts with 99% similarity]
components/datalake-handler/admin/src/src/app/views/database/database.component.css [moved from components/datalake-handler/admin/src/src/app/database/database.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database.component.html [moved from components/datalake-handler/admin/src/src/app/database/database.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/database/database.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/database/database.component.ts [moved from components/datalake-handler/admin/src/src/app/database/database.component.ts with 94% similarity]
components/datalake-handler/admin/src/src/app/views/feeder/feeder.component.css [moved from components/datalake-handler/admin/src/src/app/feeder/feeder.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/feeder/feeder.component.html [moved from components/datalake-handler/admin/src/src/app/feeder/feeder.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/feeder/feeder.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/feeder/feeder.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/feeder/feeder.component.ts [moved from components/datalake-handler/admin/src/src/app/feeder/feeder.component.ts with 91% similarity]
components/datalake-handler/admin/src/src/app/views/test/test.component.css [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/views/test/test.component.html [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/views/test/test.component.spec.ts [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/views/test/test.component.ts [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/views/topics/topic-list/new-topic-model/new-topic-model.component.css [moved from components/datalake-handler/admin/src/src/app/topics/topic-list/new-topic-model/new-topic-model.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/topics/topic-list/new-topic-model/new-topic-model.component.html [moved from components/datalake-handler/admin/src/src/app/topics/topic-list/new-topic-model/new-topic-model.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/topics/topic-list/new-topic-model/new-topic-model.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/topics/topic-list/new-topic-model/new-topic-model.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/topics/topic-list/new-topic-model/new-topic-model.component.ts [moved from components/datalake-handler/admin/src/src/app/topics/topic-list/new-topic-model/new-topic-model.component.ts with 82% similarity]
components/datalake-handler/admin/src/src/app/views/topics/topic-list/topic-config-modal/topic-config-modal.component.css [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/views/topics/topic-list/topic-config-modal/topic-config-modal.component.html [moved from components/datalake-handler/admin/src/src/app/topics/topic-list/topic-config-modal/topic-config-modal.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/topics/topic-list/topic-config-modal/topic-config-modal.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/topics/topic-list/topic-config-modal/topic-config-modal.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/topics/topic-list/topic-config-modal/topic-config-modal.component.ts [moved from components/datalake-handler/admin/src/src/app/topics/topic-list/topic-config-modal/topic-config-modal.component.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/topics/topic-list/topic-detail-modal/topic-detail-modal.component.css [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/views/topics/topic-list/topic-detail-modal/topic-detail-modal.component.html [moved from components/datalake-handler/admin/src/src/app/topics/topic-list/topic-detail-modal/topic-detail-modal.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/topics/topic-list/topic-detail-modal/topic-detail-modal.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/topics/topic-list/topic-detail-modal/topic-detail-modal.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/topics/topic-list/topic-detail-modal/topic-detail-modal.component.ts [moved from components/datalake-handler/admin/src/src/app/topics/topic-list/topic-detail-modal/topic-detail-modal.component.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/topics/topic-list/topic-list.component.css [moved from components/datalake-handler/admin/src/src/app/topics/topic-list/topic-list.component.css with 100% similarity]
components/datalake-handler/admin/src/src/app/views/topics/topic-list/topic-list.component.html [moved from components/datalake-handler/admin/src/src/app/topics/topic-list/topic-list.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/topics/topic-list/topic-list.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/topics/topic-list/topic-list.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/topics/topic-list/topic-list.component.ts [moved from components/datalake-handler/admin/src/src/app/topics/topic-list/topic-list.component.ts with 94% similarity]
components/datalake-handler/admin/src/src/app/views/topics/topics.component.css [new file with mode: 0644]
components/datalake-handler/admin/src/src/app/views/topics/topics.component.html [moved from components/datalake-handler/admin/src/src/app/topics/topics.component.html with 100% similarity]
components/datalake-handler/admin/src/src/app/views/topics/topics.component.spec.ts [moved from components/datalake-handler/admin/src/src/app/topics/topics.component.spec.ts with 100% similarity]
components/datalake-handler/admin/src/src/app/views/topics/topics.component.ts [moved from components/datalake-handler/admin/src/src/app/topics/topics.component.ts with 81% similarity]

index 8b13789..7f3764c 100644 (file)
@@ -1 +1,45 @@
 
+
+
+### Directory Layout
+ The source code layout is as follow:
+ -- app
+    -- shared           -----> container of pubilc parts
+        -- components          -----> container of pubilc components
+            -- alert
+            -- toastr-notification
+            -- ...more components
+        -- modules             -----> container of public business modules
+            -- card
+            -- modal
+            -- search
+            -- table
+        -- layout              -----> container of basic layout of all pages
+            -- header
+            -- sidebar
+        -- utils               -----> container of general functions
+    -- core             -----> container of core functions
+        -- models
+        -- services
+    -- views            -----> container of all business pages
+        -- about
+        -- dashboard-setting
+        -- database
+        -- feeder
+        -- topics
+        -- ...more modules
+    -- app-routing.module.ts     -----> container of all pages routers
+    -- app-component.css
+    -- app-component.html
+    -- app-component.ts
+    -- app-module.ts
+ -- assets
+    -- i18n
+ -- index.html
+ -- main.ts
+ -- styles.css
+ -- ...other config documents
+
+> The layout is used for organizing a new module, **PLEASE** take care of the difference between ```components``` and ``` modules```. Make sure that all parts added in the ``` components``` are ``` dump components``` and all the parts which are related to the **business** should be added in the ``` modules```. Good luck ðŸ™‚.
+
+> The service folder is used for created some reused services. **PLEASE** put the specific services into the related folders. For example, put the toastr-notification service into the ```components/toastr-notification``` folder. 
index 37ed040..e96f5d1 100644 (file)
 import { NgModule } from "@angular/core";
 import { Routes, RouterModule } from "@angular/router";
 
-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';
+//test components for module testing
+import { TestComponent } from './views/test/test.component';
+
+import { FeederComponent } from "./views/feeder/feeder.component";
+import { TopicsComponent } from "./views/topics/topics.component";
+import { DatabaseComponent } from "./views/database/database.component";
+import { AboutComponent } from "./views/about/about.component";
+import { DashboardSettingComponent } from './views/dashboard-setting/dashboard-setting.component';
+import { DashboardListComponent } from './views/dashboard-setting/dashboard-list/dashboard-list.component';
+import { TemplateComponent } from './views/dashboard-setting/template/template.component';
 
 const routes: Routes = [
   { path: "", redirectTo: "/feeder", pathMatch: "full" },
+  { path: "test", component: TestComponent },
   { path: "feeder", component: FeederComponent },
   { path: "topics", component: TopicsComponent },
   { path: "database", component: DatabaseComponent },
   { path: "about", component: AboutComponent },
-  { path: 'dashboard-setting/dashboard-list', component: DashboardListComponent},
-  { path: 'dashboard-setting/template', component: TemplateComponent},
+  { path: 'dashboard-setting/dashboard-list', component: DashboardListComponent },
+  { path: 'dashboard-setting/template', component: TemplateComponent },
 ];
 
 @NgModule({
@@ -53,4 +57,4 @@ const routes: Routes = [
   ],
   exports: [RouterModule]
 })
-export class AppRoutingModule {}
+export class AppRoutingModule { }
index d4f2c17..f6727ca 100644 (file)
@@ -51,4 +51,4 @@ limitations under the License.
 
   <ngx-spinner bdOpacity=0.5 bdColor="rgba(51,51,51,0.85)" size="default" color="#5dbebb" type="ball-clip-rotate"
     [fullScreen]="true">
-  </ngx-spinner>
+  </ngx-spinner>
\ No newline at end of file
index 1c73cfd..ecab9a7 100644 (file)
@@ -32,18 +32,18 @@ import { NgbModule } from "@ng-bootstrap/ng-bootstrap";
 import { AppRoutingModule } from "./app-routing.module";
 import { AppComponent } from "./app.component";
 
-import { HeaderComponent } from "./header/header.component";
-import { SidebarComponent } from "./sidebar/sidebar.component";
+import { HeaderComponent } from "./shared/layout/header/header.component";
+import { SidebarComponent } from "./shared/layout/sidebar/sidebar.component";
 
-import { FeederComponent } from "./feeder/feeder.component";
-import { TopicsComponent } from "./topics/topics.component";
-import { DatabaseComponent } from "./database/database.component";
-import { TopicListComponent } from "./topics/topic-list/topic-list.component";
+import { FeederComponent } from "./views/feeder/feeder.component";
+import { TopicsComponent } from "./views/topics/topics.component";
+import { DatabaseComponent } from "./views/database/database.component";
+import { TopicListComponent } from "./views/topics/topic-list/topic-list.component";
 
 // Service
 import { AdminService } from "./core/services/admin.service";
 import { RestApiService } from "./core/services/rest-api.service";
-import { ToastrNotificationService } from "src/app/core/services/toastr-notification.service";
+import { ToastrNotificationService } from "src/app/shared/components/toastr-notification/toastr-notification.service";
 
 // i18n
 import { TranslateModule, TranslateLoader } from "@ngx-translate/core";
@@ -57,32 +57,37 @@ export function createLoader(http: HttpClient) {
 import { HttpClientModule } from "@angular/common/http";
 import { HttpClient } from "@angular/common/http";
 
-import { DatabaseListComponent } from "./database/database-list/database-list.component";
+import { DatabaseListComponent } from "./views/database/database-list/database-list.component";
 import { NgxDatatableModule } from "@swimlane/ngx-datatable";
-import { CouchbaseComponent } from "./database/database-list/dbs-modal/couchbase/couchbase.component";
-import { MongodbComponent } from "./database/database-list/dbs-modal/mongodb/mongodb.component";
-import { HdfsComponent } from "./database/database-list/dbs-modal/hdfs/hdfs.component";
-import { DatabaseAddModalComponent } from "./database/database-list/database-add-modal/database-add-modal.component";
-import { ElasticsearchComponent } from "./database/database-list/dbs-modal/elasticsearch/elasticsearch.component";
-import { DruidComponent } from "./database/database-list/dbs-modal/druid/druid.component";
+import { CouchbaseComponent } from "./views/database/database-list/dbs-modal/couchbase/couchbase.component";
+import { MongodbComponent } from "./views/database/database-list/dbs-modal/mongodb/mongodb.component";
+import { HdfsComponent } from "./views/database/database-list/dbs-modal/hdfs/hdfs.component";
+import { DatabaseAddModalComponent } from "./views/database/database-list/database-add-modal/database-add-modal.component";
+import { ElasticsearchComponent } from "./views/database/database-list/dbs-modal/elasticsearch/elasticsearch.component";
+import { DruidComponent } from "./views/database/database-list/dbs-modal/druid/druid.component";
 
 // Modals
-import { TopicDetailModalComponent } from "./topics/topic-list/topic-detail-modal/topic-detail-modal.component";
-import { TopicConfigModalComponent } from "./topics/topic-list/topic-config-modal/topic-config-modal.component";
-import { ToastrNotificationComponent } from "./core/toastr-notification/toastr-notification.component";
-import { AlertComponent } from "./core/alert/alert.component";
-import { AboutComponent } from "./about/about.component";
+import { TopicDetailModalComponent } from "./views/topics/topic-list/topic-detail-modal/topic-detail-modal.component";
+import { TopicConfigModalComponent } from "./views/topics/topic-list/topic-config-modal/topic-config-modal.component";
+import { ToastrNotificationComponent } from "./shared/components/toastr-notification/toastr-notification.component";
+import { AlertComponent } from "./shared/components/alert/alert.component";
+import { AboutComponent } from "./views/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';
-import { NewTopicModelComponent } from './topics/topic-list/new-topic-model/new-topic-model.component';
+import { DashboardSettingComponent } from './views/dashboard-setting/dashboard-setting.component';
+import { DashboardListComponent } from './views/dashboard-setting/dashboard-list/dashboard-list.component';
+import { TemplateComponent } from './views/dashboard-setting/template/template.component';
+import { CreateDashboardComponent } from './views/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component';
+import { TemplateListComponent } from './views/dashboard-setting/template/template-list/template-list.component';
+import { NewTemplateModalComponent } from './views/dashboard-setting/template/template-list/new-template-modal/new-template-modal.component';
+import { EditTemplateModalComponent } from './views/dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component';
+import { NewTopicModelComponent } from './views/topics/topic-list/new-topic-model/new-topic-model.component';
+import { TestComponent } from './views/test/test.component';
+import { ModalComponent } from './shared/modules/modal/modal.component';
+import { TableComponent } from './shared/modules/table/table.component';
+import { SearchComponent } from './shared/modules/search/search.component';
+import { CardComponent } from './shared/modules/card/card.component';
 
 @NgModule({
   declarations: [
@@ -108,11 +113,16 @@ import { NewTopicModelComponent } from './topics/topic-list/new-topic-model/new-
     DashboardSettingComponent,
     DashboardListComponent,
     CreateDashboardComponent,
-    TemplateComponent, 
+    TemplateComponent,
     TemplateListComponent,
     NewTemplateModalComponent,
     EditTemplateModalComponent,
     NewTopicModelComponent,
+    TestComponent,
+    ModalComponent,
+    TableComponent,
+    SearchComponent,
+    CardComponent,
 
   ],
   imports: [
@@ -145,8 +155,8 @@ import { NewTopicModelComponent } from './topics/topic-list/new-topic-model/new-
     TopicConfigModalComponent,
     NewTopicModelComponent,
     CreateDashboardComponent,
-       NewTemplateModalComponent,
+    NewTemplateModalComponent,
     EditTemplateModalComponent
   ]
 })
-export class AppModule {}
+export class AppModule { }
@@ -30,7 +30,7 @@ import {
   Notification,
   NotificationType
 } from "src/app/core/models/toastr-notification.model";
-import { ToastrNotificationService } from "src/app/core/services/toastr-notification.service";
+import { ToastrNotificationService } from "src/app/shared/components/toastr-notification/toastr-notification.service";
 
 @Component({
   selector: "app-toastr-notification",
@@ -40,7 +40,7 @@ import { ToastrNotificationService } from "src/app/core/services/toastr-notifica
 export class ToastrNotificationComponent implements OnInit {
   notifications: Notification[] = [];
 
-  constructor(public _notificationService: ToastrNotificationService) {}
+  constructor(public _notificationService: ToastrNotificationService) { }
 
   ngOnInit() {
     this._notificationService.getAlert().subscribe((alert: Notification) => {
  */
 
 import { Component, Output } from "@angular/core";
-import { AdminService } from "../core/services/admin.service";
+import { AdminService } from "../../../core/services/admin.service";
 import { TranslateService } from "@ngx-translate/core";
 import { Feeder } from "src/app/core/models/feeder.model";
 import { RestApiService } from "src/app/core/services/rest-api.service";
 
 // notify
-import { ToastrNotificationService } from "src/app/core/services/toastr-notification.service";
+import { ToastrNotificationService } from "src/app/shared/components/toastr-notification/toastr-notification.service";
 
 @Component({
   selector: "app-header",
diff --git a/components/datalake-handler/admin/src/src/app/shared/modules/card/card.component.html b/components/datalake-handler/admin/src/src/app/shared/modules/card/card.component.html
new file mode 100644 (file)
index 0000000..0f9abc5
--- /dev/null
@@ -0,0 +1,3 @@
+<p>
+  card works!
+</p>
diff --git a/components/datalake-handler/admin/src/src/app/shared/modules/card/card.component.spec.ts b/components/datalake-handler/admin/src/src/app/shared/modules/card/card.component.spec.ts
new file mode 100644 (file)
index 0000000..e141708
--- /dev/null
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { CardComponent } from './card.component';
+
+describe('CardComponent', () => {
+  let component: CardComponent;
+  let fixture: ComponentFixture<CardComponent>;
+
+  beforeEach(async(() => {
+    TestBed.configureTestingModule({
+      declarations: [ CardComponent ]
+    })
+    .compileComponents();
+  }));
+
+  beforeEach(() => {
+    fixture = TestBed.createComponent(CardComponent);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});
diff --git a/components/datalake-handler/admin/src/src/app/shared/modules/card/card.component.ts b/components/datalake-handler/admin/src/src/app/shared/modules/card/card.component.ts
new file mode 100644 (file)
index 0000000..4e934bc
--- /dev/null
@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+  selector: 'app-card',
+  templateUrl: './card.component.html',
+  styleUrls: ['./card.component.css']
+})
+export class CardComponent implements OnInit {
+
+  constructor() { }
+
+  ngOnInit() {
+  }
+
+}
diff --git a/components/datalake-handler/admin/src/src/app/shared/modules/modal/modal.component.html b/components/datalake-handler/admin/src/src/app/shared/modules/modal/modal.component.html
new file mode 100644 (file)
index 0000000..0b81c38
--- /dev/null
@@ -0,0 +1,3 @@
+<p>
+  modal works!
+</p>
diff --git a/components/datalake-handler/admin/src/src/app/shared/modules/modal/modal.component.spec.ts b/components/datalake-handler/admin/src/src/app/shared/modules/modal/modal.component.spec.ts
new file mode 100644 (file)
index 0000000..fc32a90
--- /dev/null
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { ModalComponent } from './modal.component';
+
+describe('ModalComponent', () => {
+  let component: ModalComponent;
+  let fixture: ComponentFixture<ModalComponent>;
+
+  beforeEach(async(() => {
+    TestBed.configureTestingModule({
+      declarations: [ ModalComponent ]
+    })
+    .compileComponents();
+  }));
+
+  beforeEach(() => {
+    fixture = TestBed.createComponent(ModalComponent);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});
diff --git a/components/datalake-handler/admin/src/src/app/shared/modules/modal/modal.component.ts b/components/datalake-handler/admin/src/src/app/shared/modules/modal/modal.component.ts
new file mode 100644 (file)
index 0000000..15c2250
--- /dev/null
@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+  selector: 'app-modal',
+  templateUrl: './modal.component.html',
+  styleUrls: ['./modal.component.css']
+})
+export class ModalComponent implements OnInit {
+
+  constructor() { }
+
+  ngOnInit() {
+  }
+
+}
diff --git a/components/datalake-handler/admin/src/src/app/shared/modules/search/search.component.html b/components/datalake-handler/admin/src/src/app/shared/modules/search/search.component.html
new file mode 100644 (file)
index 0000000..2536349
--- /dev/null
@@ -0,0 +1,3 @@
+<p>
+  search works!
+</p>
diff --git a/components/datalake-handler/admin/src/src/app/shared/modules/search/search.component.spec.ts b/components/datalake-handler/admin/src/src/app/shared/modules/search/search.component.spec.ts
new file mode 100644 (file)
index 0000000..4372919
--- /dev/null
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { SearchComponent } from './search.component';
+
+describe('SearchComponent', () => {
+  let component: SearchComponent;
+  let fixture: ComponentFixture<SearchComponent>;
+
+  beforeEach(async(() => {
+    TestBed.configureTestingModule({
+      declarations: [ SearchComponent ]
+    })
+    .compileComponents();
+  }));
+
+  beforeEach(() => {
+    fixture = TestBed.createComponent(SearchComponent);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});
diff --git a/components/datalake-handler/admin/src/src/app/shared/modules/search/search.component.ts b/components/datalake-handler/admin/src/src/app/shared/modules/search/search.component.ts
new file mode 100644 (file)
index 0000000..c708abe
--- /dev/null
@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+  selector: 'app-search',
+  templateUrl: './search.component.html',
+  styleUrls: ['./search.component.css']
+})
+export class SearchComponent implements OnInit {
+
+  constructor() { }
+
+  ngOnInit() {
+  }
+
+}
diff --git a/components/datalake-handler/admin/src/src/app/shared/modules/table/table.component.css b/components/datalake-handler/admin/src/src/app/shared/modules/table/table.component.css
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/components/datalake-handler/admin/src/src/app/shared/modules/table/table.component.html b/components/datalake-handler/admin/src/src/app/shared/modules/table/table.component.html
new file mode 100644 (file)
index 0000000..38e4167
--- /dev/null
@@ -0,0 +1,3 @@
+<p>
+  table works!
+</p>
diff --git a/components/datalake-handler/admin/src/src/app/shared/modules/table/table.component.spec.ts b/components/datalake-handler/admin/src/src/app/shared/modules/table/table.component.spec.ts
new file mode 100644 (file)
index 0000000..cdbacbc
--- /dev/null
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { TableComponent } from './table.component';
+
+describe('TableComponent', () => {
+  let component: TableComponent;
+  let fixture: ComponentFixture<TableComponent>;
+
+  beforeEach(async(() => {
+    TestBed.configureTestingModule({
+      declarations: [ TableComponent ]
+    })
+    .compileComponents();
+  }));
+
+  beforeEach(() => {
+    fixture = TestBed.createComponent(TableComponent);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});
diff --git a/components/datalake-handler/admin/src/src/app/shared/modules/table/table.component.ts b/components/datalake-handler/admin/src/src/app/shared/modules/table/table.component.ts
new file mode 100644 (file)
index 0000000..7e97f37
--- /dev/null
@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+  selector: 'app-table',
+  templateUrl: './table.component.html',
+  styleUrls: ['./table.component.css']
+})
+export class TableComponent implements OnInit {
+
+  constructor() { }
+
+  ngOnInit() {
+  }
+
+}
diff --git a/components/datalake-handler/admin/src/src/app/shared/utils/utils.js b/components/datalake-handler/admin/src/src/app/shared/utils/utils.js
new file mode 100644 (file)
index 0000000..c996d6b
--- /dev/null
@@ -0,0 +1 @@
+//put some general functions here. Enjoy
\ No newline at end of file
@@ -13,7 +13,7 @@
     See the License for the specific language governing permissions and
     limitations under the License.
 */
-import {Component, OnInit, Input, Output, ViewChild, EventEmitter, ElementRef} from '@angular/core';
+import { Component, OnInit, Input, Output, ViewChild, EventEmitter, ElementRef } from '@angular/core';
 import { NgbActiveModal } from "@ng-bootstrap/ng-bootstrap";
 import { Dashboard } from "src/app/core/models/dashboard.model";
 import { AdminService } from "src/app/core/services/admin.service";
@@ -29,7 +29,7 @@ export class CreateDashboardComponent implements OnInit {
     public activeModal: NgbActiveModal,
     public adminService: AdminService,
     public restApiService: RestApiService,
-  ) {}
+  ) { }
 
   @Output() passEntry: EventEmitter<any> = new EventEmitter();
   @Input() dashboard: Dashboard;
@@ -46,7 +46,7 @@ export class CreateDashboardComponent implements OnInit {
 
     console.log(this.dashboard);
     this.tempDb = new Dashboard();
-    if(this.dashboard.enabled==undefined){
+    if (this.dashboard.enabled == undefined) {
       this.dashboard.enabled = true;
     }
     const feeds = {
@@ -65,12 +65,12 @@ export class CreateDashboardComponent implements OnInit {
 
 
   passBack() {
-    if(this.tempDb.host == null && this.tempDb.port == null && this.tempDb.login == null && this.tempDb.pass == null){
+    if (this.tempDb.host == null && this.tempDb.port == null && this.tempDb.login == null && this.tempDb.pass == null) {
       return false;
     }
     this.dashboard = this.tempDb;
     this.dashboard.name = this.t_dataDashboardName.nativeElement.value;
-    console.log(this.dashboard,"this.dashboard output");
+    console.log(this.dashboard, "this.dashboard output");
     this.passEntry.emit(this.dashboard);
   }
 
     limitations under the License.
 */
 import { Component, EventEmitter, OnInit, Output } from '@angular/core';
-import { Dashboard } from "../../core/models/dashboard.model";
+import { Dashboard } from "../../../core/models/dashboard.model";
 import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
 import { CreateDashboardComponent } from "./create-dashboard/create-dashboard.component";
 
-import { AdminService } from "../../core/services/admin.service";
+import { AdminService } from "../../../core/services/admin.service";
 
 // DB modal components
 import { RestApiService } from "src/app/core/services/rest-api.service";
 
 // Notify
-import { ToastrNotificationService } from "src/app/core/services/toastr-notification.service";
+import { ToastrNotificationService } from "src/app/shared/components/toastr-notification/toastr-notification.service";
 // Loading spinner
 import { NgxSpinnerService } from "ngx-spinner";
 
@@ -23,9 +23,9 @@ import { NgxSpinnerService } from "ngx-spinner";
 // modal
 import { NewTemplateModalComponent } from "./new-template-modal/new-template-modal.component";
 import { EditTemplateModalComponent } from "./edit-template-modal/edit-template-modal.component";
-import { AlertComponent } from "src/app/core/alert/alert.component";
+import { AlertComponent } from "src/app/shared/components/alert/alert.component";
 // notify
-import { ToastrNotificationService } from "src/app/core/services/toastr-notification.service";
+import { ToastrNotificationService } from "src/app/shared/components/toastr-notification/toastr-notification.service";
 
 @Component({
   selector: 'app-template-list',
@@ -25,7 +25,7 @@
  */
 
 import { Component, OnInit, ViewChild, ElementRef } from "@angular/core";
-import { Db } from "../../core/models/db.model";
+import { Db } from "../../../core/models/db.model";
 import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
 import { DatabaseAddModalComponent } from "./database-add-modal/database-add-modal.component";
 
@@ -38,10 +38,10 @@ import { DruidComponent } from "./dbs-modal/druid/druid.component";
 import { ElasticsearchComponent } from "./dbs-modal/elasticsearch/elasticsearch.component";
 import { MongodbComponent } from "./dbs-modal/mongodb/mongodb.component";
 import { HdfsComponent } from "./dbs-modal/hdfs/hdfs.component";
-import { AlertComponent } from "src/app/core/alert/alert.component";
+import { AlertComponent } from "src/app/shared/components/alert/alert.component";
 
 // Notify
-import { ToastrNotificationService } from "src/app/core/services/toastr-notification.service";
+import { ToastrNotificationService } from "src/app/shared/components/toastr-notification/toastr-notification.service";
 
 // Loading spinner
 import { NgxSpinnerService } from "ngx-spinner";
@@ -188,15 +188,15 @@ export class DatabaseListComponent implements OnInit {
     modalRef.componentInstance.passEntry.subscribe(receiveEntry => {
       this.tempDbDetail = receiveEntry;
       let enabled = receiveEntry.enabled;
-      console.log(this.tempDbDetail,"this.tempDbDetail");
-      if(enabled == true){
+      console.log(this.tempDbDetail, "this.tempDbDetail");
+      if (enabled == true) {
         this.restApiService.upadteDb(this.tempDbDetail).subscribe(
           res => {
             console.log(res);
             if (res.statusCode == 200) {
               this.dbs[index] = this.tempDbDetail;
               this.notificationService.success("SUCCESSFULLY_UPDATED");
-            }else {
+            } else {
               this.notificationService.error("FAILED_UPDATED");
             }
             modalRef.close();
@@ -206,14 +206,14 @@ export class DatabaseListComponent implements OnInit {
             modalRef.close();
           }
         );
-      }else {
+      } else {
         this.restApiService.upadteDb(this.dbs[index]).subscribe(
           res => {
             console.log(res);
             if (res.statusCode == 200) {
               this.dbs[index] = this.tempDbDetail;
               this.notificationService.success("SUCCESSFULLY_DELETED");
-            }else {
+            } else {
               this.dbs[index].encrypt = true;
             }
             modalRef.close();
@@ -25,7 +25,7 @@
  */
 
 import { Component, OnInit } from "@angular/core";
-import { AdminService } from "../core/services/admin.service";
+import { AdminService } from "../../core/services/admin.service";
 
 @Component({
   selector: "app-database",
@@ -37,5 +37,5 @@ export class DatabaseComponent implements OnInit {
     this.adminService.setTitle("SIDEBAR.DATABASE");
   }
 
-  ngOnInit() {}
+  ngOnInit() { }
 }
 import { Component, OnInit } from "@angular/core";
 import { AdminService } from "src/app/core/services/admin.service";
 import { RestApiService } from "src/app/core/services/rest-api.service";
-import { HeaderComponent } from "src/app/header/header.component";
+import { HeaderComponent } from "src/app/shared/layout/header/header.component";
 
 // notify
-import { ToastrNotificationService } from "src/app/core/services/toastr-notification.service";
+import { ToastrNotificationService } from "src/app/shared/components/toastr-notification/toastr-notification.service";
 
 // Loading spinner
 import { NgxSpinnerService } from "ngx-spinner";
diff --git a/components/datalake-handler/admin/src/src/app/views/test/test.component.css b/components/datalake-handler/admin/src/src/app/views/test/test.component.css
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/components/datalake-handler/admin/src/src/app/views/test/test.component.html b/components/datalake-handler/admin/src/src/app/views/test/test.component.html
new file mode 100644 (file)
index 0000000..f4d08c1
--- /dev/null
@@ -0,0 +1,20 @@
+<div>
+  <h3>Test module is used for some publice business modules sample</h3>
+  <div>
+    <p>Module 1 -----> card</p>
+    <app-card></app-card>
+
+  </div>
+  <div>
+    <p>Module 2 -----> modal</p>
+    <app-modal></app-modal>
+  </div>
+  <div>
+    <p>Module 3 -----> search</p>
+    <app-search></app-search>
+  </div>
+  <div>
+    <p>Module 4 -----> table</p>
+    <app-table></app-table>
+  </div>
+</div>
\ No newline at end of file
diff --git a/components/datalake-handler/admin/src/src/app/views/test/test.component.spec.ts b/components/datalake-handler/admin/src/src/app/views/test/test.component.spec.ts
new file mode 100644 (file)
index 0000000..ef4e38c
--- /dev/null
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { TestComponent } from './test.component';
+
+describe('TestComponent', () => {
+  let component: TestComponent;
+  let fixture: ComponentFixture<TestComponent>;
+
+  beforeEach(async(() => {
+    TestBed.configureTestingModule({
+      declarations: [ TestComponent ]
+    })
+    .compileComponents();
+  }));
+
+  beforeEach(() => {
+    fixture = TestBed.createComponent(TestComponent);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});
diff --git a/components/datalake-handler/admin/src/src/app/views/test/test.component.ts b/components/datalake-handler/admin/src/src/app/views/test/test.component.ts
new file mode 100644 (file)
index 0000000..ff623a7
--- /dev/null
@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+  selector: 'app-test',
+  templateUrl: './test.component.html',
+  styleUrls: ['./test.component.css']
+})
+export class TestComponent implements OnInit {
+
+  constructor() { }
+
+  ngOnInit() {
+  }
+
+}
@@ -22,10 +22,10 @@ import {
   ViewChild,
   ElementRef
 } from "@angular/core";
-import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap";
-import {RestApiService} from "src/app/core/services/rest-api.service";
-import {AdminService} from "src/app/core/services/admin.service";
-import {Topic} from "src/app/core/models/topic.model";
+import { NgbActiveModal } from "@ng-bootstrap/ng-bootstrap";
+import { RestApiService } from "src/app/core/services/rest-api.service";
+import { AdminService } from "src/app/core/services/admin.service";
+import { Topic } from "src/app/core/models/topic.model";
 
 @Component({
   selector: 'app-new-topic-model',
@@ -60,7 +60,7 @@ export class NewTopicModelComponent implements OnInit {
     this.newTopic = {
       name: "",
       login: "",
-      password:"",
+      password: "",
       sinkdbs: [],
       enabled: false,
       saveRaw: false,
@@ -68,24 +68,24 @@ export class NewTopicModelComponent implements OnInit {
       ttl: null,
       correlateClearedMessage: false,
       messageIdPath: null,
-      type:null
+      type: null
     };
     this.TopicInput = new Topic();
     const feeds = {
-        name: this.newTopic.name,
-        login: this.newTopic.login,
-        password:this.newTopic.password,
-        sinkdbs: this.newTopic.sinkdbs,
-        enabled: this.newTopic.enabled,
-        saveRaw: this.newTopic.saveRaw,
-        dataFormat: this.newTopic.dataFormat,
-        ttl: this.newTopic.ttl,
-        correlateClearedMessage: this.newTopic.correlateClearedMessage,
-        messageIdPath: this.newTopic.messageIdPath,
-        type:null
-      };
+      name: this.newTopic.name,
+      login: this.newTopic.login,
+      password: this.newTopic.password,
+      sinkdbs: this.newTopic.sinkdbs,
+      enabled: this.newTopic.enabled,
+      saveRaw: this.newTopic.saveRaw,
+      dataFormat: this.newTopic.dataFormat,
+      ttl: this.newTopic.ttl,
+      correlateClearedMessage: this.newTopic.correlateClearedMessage,
+      messageIdPath: this.newTopic.messageIdPath,
+      type: null
+    };
     this.TopicInput = feeds;
-    this. idExFields = [];
+    this.idExFields = [];
     if (this.TopicInput.messageIdPath != null) {
       var feed = this.TopicInput.messageIdPath.split(",");
       for (var i = 0; i < feed.length; i++) {
@@ -138,7 +138,7 @@ export class NewTopicModelComponent implements OnInit {
     this.newTopic.ttl = this.t_ttl.nativeElement.value;
     this.newTopic.messageIdPath = "";
     for (var i = 0; i < this.idExFields.length; i++) {
-      let item = "/"+this.idExFields[i].item;
+      let item = "/" + this.idExFields[i].item;
       if (i == 0) {
         this.newTopic.messageIdPath = item;
       } else {
diff --git a/components/datalake-handler/admin/src/src/app/views/topics/topic-list/topic-config-modal/topic-config-modal.component.css b/components/datalake-handler/admin/src/src/app/views/topics/topic-list/topic-config-modal/topic-config-modal.component.css
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/components/datalake-handler/admin/src/src/app/views/topics/topic-list/topic-detail-modal/topic-detail-modal.component.css b/components/datalake-handler/admin/src/src/app/views/topics/topic-list/topic-detail-modal/topic-detail-modal.component.css
new file mode 100644 (file)
index 0000000..e69de29
@@ -35,11 +35,11 @@ import { TopicConfigModalComponent } from "./topic-config-modal/topic-config-mod
 import { NewTopicModelComponent } from "./new-topic-model/new-topic-model.component";
 
 // notify
-import { ToastrNotificationService } from "src/app/core/services/toastr-notification.service";
+import { ToastrNotificationService } from "src/app/shared/components/toastr-notification/toastr-notification.service";
 
 // Loading spinner
 import { NgxSpinnerService } from "ngx-spinner";
-import {AlertComponent} from "../../core/alert/alert.component";
+import { AlertComponent } from "../../../shared/components/alert/alert.component";
 
 @Component({
   selector: "app-topic-list",
@@ -87,7 +87,7 @@ export class TopicListComponent {
     this.spinner.show();
   }
 
-  init(){
+  init() {
     this.initData().then(data => {
       this.initTopicList(this.topicListDmaap, this.topicListFeeder).then(
         data => {
@@ -140,7 +140,7 @@ export class TopicListComponent {
 
     // dmaap has topics
     if (dmaapList.length > 0) {
-      let listLength = dmaapList.length>feederList.length ? dmaapList.length:feederList.length;
+      let listLength = dmaapList.length > feederList.length ? dmaapList.length : feederList.length;
       for (var i = 0; i < listLength; i++) {
         if (feederList.includes(dmaapList[i])) {
           let data = await this.getTopicDetail(dmaapList[i]);
@@ -158,7 +158,7 @@ export class TopicListComponent {
             type: true
           };
           t.push(feed);
-        } else if(!feederList.includes(dmaapList[i]) && dmaapList[i]!=undefined){
+        } else if (!feederList.includes(dmaapList[i]) && dmaapList[i] != undefined) {
           let feed = {
             name: dmaapList[i],
             login: this.topicDefaultConfig.login,
@@ -175,7 +175,7 @@ export class TopicListComponent {
           };
           t.push(feed);
         }
-        if(!dmaapList.includes(feederList[i]) && feederList[i]!=undefined){
+        if (!dmaapList.includes(feederList[i]) && feederList[i] != undefined) {
           let data = await this.getTopicDetail(feederList[i]);
           let feed = {
             name: feederList[i],
@@ -189,7 +189,7 @@ export class TopicListComponent {
             correlateClearedMessage: data.correlateClearedMessage,
             messageIdPath: data.messageIdPath,
             type: true,
-            topicDb:true
+            topicDb: true
           };
           t.push(feed);
         }
@@ -220,7 +220,7 @@ export class TopicListComponent {
 
   onActivate(event) {
     const emitType = event.type;
-    if(emitType == "dblclick"){
+    if (emitType == "dblclick") {
       console.log('Activate Event', event);
       let name = event.row.name;
       this.openTopicModal(name);
@@ -228,14 +228,14 @@ export class TopicListComponent {
 
   }
 
-  openNewTopicModal(){
+  openNewTopicModal() {
     const modalRef = this.modalService.open(NewTopicModelComponent, {
       size: "lg",
       centered: true
     });
     modalRef.componentInstance.newTopic = this.tempNewTopic;
     modalRef.componentInstance.passEntry.subscribe(receivedEntry => {
-      console.log(receivedEntry,"newtopic receivedEntry");
+      console.log(receivedEntry, "newtopic receivedEntry");
       this.tempNewTopic = receivedEntry;
       this.restApiService.addNewTopic(this.tempNewTopic).subscribe(
         res => {
@@ -363,7 +363,7 @@ export class TopicListComponent {
     }
   }
 
-  deleteTopicModal(name: string){
+  deleteTopicModal(name: string) {
     const index = this.temp.findIndex(t => t.name === name);
     const modalRef = this.modalService.open(AlertComponent, {
       size: "sm",
@@ -397,7 +397,7 @@ export class TopicListComponent {
     const val = searchValue.toLowerCase();
 
     // filter our data
-    const temp = this.temp.filter(function(d) {
+    const temp = this.temp.filter(function (d) {
       return d.name.toLowerCase().indexOf(val) !== -1 || !val;
     });
 
diff --git a/components/datalake-handler/admin/src/src/app/views/topics/topics.component.css b/components/datalake-handler/admin/src/src/app/views/topics/topics.component.css
new file mode 100644 (file)
index 0000000..e69de29
@@ -1,5 +1,5 @@
 import { Component, OnInit } from "@angular/core";
-import { AdminService } from "../core/services/admin.service";
+import { AdminService } from "../../core/services/admin.service";
 
 @Component({
   selector: "app-topics",
@@ -12,5 +12,5 @@ export class TopicsComponent implements OnInit {
     this.adminService.setTitle("SIDEBAR.TOPICS");
   }
 
-  ngOnInit() {}
+  ngOnInit() { }
 }