@worktile/planet 12.1.0 → 12.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.all-contributorsrc +84 -0
- package/.circleci/config.yml +17 -0
- package/.coveralls.yml +1 -0
- package/.docgeni/public/assets/favicon.ico +0 -0
- package/.docgeni/public/index.html +13 -0
- package/.docgenirc.js +35 -0
- package/.dockerignore +1 -0
- package/.editorconfig +22 -0
- package/.github/FUNDING.yml +12 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/.prettierignore +7 -0
- package/.prettierrc +28 -0
- package/.travis.yml +26 -0
- package/.wpmrc.js +11 -0
- package/CHANGELOG.md +391 -0
- package/CODE_OF_CONDUCT.md +76 -0
- package/Dockerfile +11 -0
- package/LICENSE +21 -0
- package/README.md +348 -0
- package/README.zh-CN.md +307 -0
- package/SECURITY.md +21 -0
- package/angular.json +373 -0
- package/commitlint.config.js +6 -0
- package/docs/api/defineApplication.md +46 -0
- package/docs/api/globalEventDispatcher.md +51 -0
- package/docs/api/index.md +5 -0
- package/docs/api/planet.md +117 -0
- package/docs/guides/getting-started.md +174 -0
- package/docs/guides/index.md +5 -0
- package/docs/guides/intro.md +216 -0
- package/examples/app1/browserslist +11 -0
- package/examples/app1/extra-webpack.config.js +33 -0
- package/examples/app1/karma.conf.js +31 -0
- package/examples/app1/postcss.config.js +1 -0
- package/examples/app1/src/app/app.module.ts +44 -0
- package/examples/app1/src/app/app.routing.ts +49 -0
- package/examples/app1/src/app/counter.service.ts +16 -0
- package/examples/app1/src/app/dashboard/dashboard.component.html +51 -0
- package/examples/app1/src/app/dashboard/dashboard.component.ts +70 -0
- package/examples/app1/src/app/detail/detail.component.html +8 -0
- package/examples/app1/src/app/detail/detail.component.ts +18 -0
- package/examples/app1/src/app/overlay.ts +26 -0
- package/examples/app1/src/app/projects/dialog/projects-dialog.component.html +10 -0
- package/examples/app1/src/app/projects/dialog/projects-dialog.component.ts +41 -0
- package/examples/app1/src/app/projects/projects.component.ts +33 -0
- package/examples/app1/src/app/root/root.component.css +3 -0
- package/examples/app1/src/app/root/root.component.html +16 -0
- package/examples/app1/src/app/root/root.component.ts +35 -0
- package/examples/app1/src/app/services/initialized-data.resolver.ts +15 -0
- package/examples/app1/src/app/shared.module.ts +57 -0
- package/examples/app1/src/app/user/detail/user-detail.component.html +5 -0
- package/examples/app1/src/app/user/detail/user-detail.component.ts +20 -0
- package/examples/app1/src/app/user/user-list.component.html +7 -0
- package/examples/app1/src/app/user/user-list.component.ts +20 -0
- package/examples/app1/src/app/user/user.module.ts +31 -0
- package/examples/app1/src/assets/.gitkeep +0 -0
- package/examples/app1/src/assets/github.png +0 -0
- package/examples/app1/src/assets/main.css +3 -0
- package/examples/app1/src/environments/environment.prod.ts +3 -0
- package/examples/app1/src/environments/environment.ts +16 -0
- package/examples/app1/src/favicon.ico +0 -0
- package/examples/app1/src/index.html +14 -0
- package/examples/app1/src/main.ts +35 -0
- package/examples/app1/src/polyfills.ts +84 -0
- package/examples/app1/src/styles.scss +35 -0
- package/examples/app1/src/test.ts +14 -0
- package/examples/app1/temp.js +221 -0
- package/examples/app1/tsconfig.app.json +10 -0
- package/examples/app1/tsconfig.spec.json +18 -0
- package/examples/app1/tslint.json +17 -0
- package/examples/app1/webpack.config.js +127 -0
- package/examples/app2/browserslist +11 -0
- package/examples/app2/extra-webpack.config.js +32 -0
- package/examples/app2/karma.conf.js +31 -0
- package/examples/app2/src/app/app.module.ts +90 -0
- package/examples/app2/src/app/dashboard/dashboard.component.html +21 -0
- package/examples/app2/src/app/dashboard/dashboard.component.ts +27 -0
- package/examples/app2/src/app/overlay.ts +26 -0
- package/examples/app2/src/app/projects/detail/detail.component.html +16 -0
- package/examples/app2/src/app/projects/detail/detail.component.ts +21 -0
- package/examples/app2/src/app/projects/project-list.component.html +29 -0
- package/examples/app2/src/app/projects/project-list.component.ts +58 -0
- package/examples/app2/src/app/projects/project.resolver.ts +15 -0
- package/examples/app2/src/app/projects/projects.service.ts +28 -0
- package/examples/app2/src/app/projects/tasks/tasks.component.html +10 -0
- package/examples/app2/src/app/projects/tasks/tasks.component.ts +16 -0
- package/examples/app2/src/app/projects/view/view.component.html +1 -0
- package/examples/app2/src/app/projects/view/view.component.ts +20 -0
- package/examples/app2/src/app/root/root.component.html +14 -0
- package/examples/app2/src/app/root/root.component.scss +12 -0
- package/examples/app2/src/app/root/root.component.ts +28 -0
- package/examples/app2/src/app/shared.module.ts +59 -0
- package/examples/app2/src/assets/.gitkeep +0 -0
- package/examples/app2/src/environments/environment.prod.ts +3 -0
- package/examples/app2/src/environments/environment.ts +16 -0
- package/examples/app2/src/favicon.ico +0 -0
- package/examples/app2/src/index.html +14 -0
- package/examples/app2/src/main.ts +36 -0
- package/examples/app2/src/polyfills.ts +84 -0
- package/examples/app2/src/styles.scss +28 -0
- package/examples/app2/src/test.ts +14 -0
- package/examples/app2/tsconfig.app.json +10 -0
- package/examples/app2/tsconfig.spec.json +18 -0
- package/examples/app2/tslint.json +7 -0
- package/examples/app2/webpack.config.js +92 -0
- package/examples/common/app-root-context.ts +10 -0
- package/examples/common/cache.ts +82 -0
- package/examples/common/index.ts +13 -0
- package/examples/common/module.ts +10 -0
- package/examples/common/overlay-container.service.ts +28 -0
- package/examples/common/section-card/section-card.component.html +5 -0
- package/examples/common/section-card/section-card.component.scss +15 -0
- package/examples/common/section-card/section-card.component.ts +11 -0
- package/examples/common/utils.ts +0 -0
- package/examples/portal/src/app/a-detail/a-detail.component.html +8 -0
- package/examples/portal/src/app/a-detail/a-detail.component.ts +18 -0
- package/examples/portal/src/app/about/about.component.html +27 -0
- package/examples/portal/src/app/about/about.component.scss +0 -0
- package/examples/portal/src/app/about/about.component.spec.ts +26 -0
- package/examples/portal/src/app/about/about.component.ts +26 -0
- package/examples/portal/src/app/app-routing.module.ts +57 -0
- package/examples/portal/src/app/app.component.html +73 -0
- package/examples/portal/src/app/app.component.scss +58 -0
- package/examples/portal/src/app/app.component.spec.ts +33 -0
- package/examples/portal/src/app/app.component.ts +111 -0
- package/examples/portal/src/app/app.module.ts +64 -0
- package/examples/portal/src/app/custom-settings.service.ts +44 -0
- package/examples/portal/src/app/overlay.ts +26 -0
- package/examples/portal/src/app/settings/settings.component.html +31 -0
- package/examples/portal/src/app/settings/settings.component.scss +3 -0
- package/examples/portal/src/app/settings/settings.component.ts +43 -0
- package/examples/portal/src/assets/.gitkeep +0 -0
- package/examples/portal/src/assets/apps.json +29 -0
- package/examples/portal/src/assets/icons/sprite.defs.svg +1 -0
- package/examples/portal/src/assets/images/logo.svg +16 -0
- package/examples/portal/src/assets/ngx-planet-micro-front-end.gif +0 -0
- package/examples/portal/src/browserslist +11 -0
- package/examples/portal/src/environments/environment.prod.ts +3 -0
- package/examples/portal/src/environments/environment.ts +16 -0
- package/examples/portal/src/extra-webpack.config.js +32 -0
- package/examples/portal/src/favicon.ico +0 -0
- package/examples/portal/src/index.html +14 -0
- package/examples/portal/src/karma.conf.js +31 -0
- package/examples/portal/src/main.ts +18 -0
- package/examples/portal/src/polyfills.ts +84 -0
- package/examples/portal/src/reboot.scss +14 -0
- package/examples/portal/src/styles.scss +14 -0
- package/examples/portal/src/test.ts +14 -0
- package/examples/portal/src/tsconfig.app.json +10 -0
- package/examples/portal/src/tsconfig.spec.json +9 -0
- package/examples/portal/src/tslint.json +7 -0
- package/extra-webpack.config.js +5 -0
- package/nginx.conf +17 -0
- package/package.json +121 -16
- package/packages/planet/karma.conf.js +37 -0
- package/packages/planet/ng-package.json +7 -0
- package/packages/planet/package.json +10 -0
- package/packages/planet/src/application/planet-application-loader.spec.ts +1102 -0
- package/packages/planet/src/application/planet-application-loader.ts +549 -0
- package/packages/planet/src/application/planet-application-ref.spec.ts +233 -0
- package/packages/planet/src/application/planet-application-ref.ts +131 -0
- package/packages/planet/src/application/planet-application.service.spec.ts +145 -0
- package/packages/planet/src/application/planet-application.service.ts +88 -0
- package/packages/planet/src/application/portal-application.spec.ts +53 -0
- package/packages/planet/src/application/portal-application.ts +28 -0
- package/packages/planet/src/assets-loader.spec.ts +689 -0
- package/packages/planet/src/assets-loader.ts +247 -0
- package/packages/planet/src/component/planet-component-loader.spec.ts +187 -0
- package/packages/planet/src/component/planet-component-loader.ts +173 -0
- package/packages/planet/src/component/planet-component-ref.ts +8 -0
- package/{component/plant-component.config.d.ts → packages/planet/src/component/plant-component.config.ts} +4 -4
- package/packages/planet/src/debug.spec.ts +58 -0
- package/packages/planet/src/debug.ts +66 -0
- package/packages/planet/src/empty/empty.component.spec.ts +34 -0
- package/packages/planet/src/empty/empty.component.ts +7 -0
- package/packages/planet/src/global-event-dispatcher.spec.ts +81 -0
- package/packages/planet/src/global-event-dispatcher.ts +82 -0
- package/packages/planet/src/global-planet.spec.ts +39 -0
- package/packages/planet/src/global-planet.ts +73 -0
- package/packages/planet/src/helpers.spec.ts +242 -0
- package/packages/planet/src/helpers.ts +125 -0
- package/packages/planet/src/module.spec.ts +79 -0
- package/packages/planet/src/module.ts +25 -0
- package/{planet.class.d.ts → packages/planet/src/planet.class.ts} +26 -5
- package/packages/planet/src/planet.spec.ts +226 -0
- package/packages/planet/src/planet.ts +113 -0
- package/{public-api.d.ts → packages/planet/src/public-api.ts} +4 -1
- package/packages/planet/src/sandbox/constants.ts +6 -0
- package/packages/planet/src/sandbox/exec.ts +22 -0
- package/packages/planet/src/sandbox/index.ts +24 -0
- package/packages/planet/src/sandbox/proxy/patches/document.ts +13 -0
- package/packages/planet/src/sandbox/proxy/patches/eventListener.ts +49 -0
- package/packages/planet/src/sandbox/proxy/patches/index.ts +13 -0
- package/packages/planet/src/sandbox/proxy/patches/storage.ts +53 -0
- package/packages/planet/src/sandbox/proxy/patches/timer.ts +50 -0
- package/packages/planet/src/sandbox/proxy/proxies/common.ts +137 -0
- package/packages/planet/src/sandbox/proxy/proxies/document.ts +140 -0
- package/packages/planet/src/sandbox/proxy/proxies/window.ts +176 -0
- package/packages/planet/src/sandbox/proxy/proxy-sandbox.ts +59 -0
- package/{sandbox/proxy/types.d.ts → packages/planet/src/sandbox/proxy/types.ts} +8 -2
- package/packages/planet/src/sandbox/sandbox.ts +20 -0
- package/packages/planet/src/sandbox/snapshot/snapshot-sandbox.ts +12 -0
- package/packages/planet/src/sandbox/types.ts +1 -0
- package/packages/planet/src/test.ts +16 -0
- package/packages/planet/src/testing/app1.module.ts +34 -0
- package/packages/planet/src/testing/app2.module.ts +24 -0
- package/packages/planet/src/testing/applications.ts +58 -0
- package/packages/planet/src/testing/index.ts +2 -0
- package/packages/planet/src/testing/utils.ts +31 -0
- package/packages/planet/tsconfig.lib.json +27 -0
- package/packages/planet/tsconfig.lib.prod.json +9 -0
- package/packages/planet/tsconfig.spec.json +17 -0
- package/packages/planet/tslint.json +7 -0
- package/postcss.config.js +3 -0
- package/proxy.conf.js +15 -0
- package/tsconfig.json +23 -0
- package/tslint.json +80 -0
- package/application/planet-application-loader.d.ts +0 -70
- package/application/planet-application-loader.d.ts.map +0 -1
- package/application/planet-application-loader.ngfactory.d.ts.map +0 -1
- package/application/planet-application-ref.d.ts +0 -36
- package/application/planet-application-ref.d.ts.map +0 -1
- package/application/planet-application.service.d.ts +0 -19
- package/application/planet-application.service.d.ts.map +0 -1
- package/application/planet-application.service.ngfactory.d.ts.map +0 -1
- package/application/portal-application.d.ts +0 -15
- package/application/portal-application.d.ts.map +0 -1
- package/assets-loader.d.ts +0 -33
- package/assets-loader.d.ts.map +0 -1
- package/assets-loader.ngfactory.d.ts.map +0 -1
- package/bundles/worktile-planet.umd.js +0 -2552
- package/bundles/worktile-planet.umd.js.map +0 -1
- package/component/planet-component-loader.d.ts +0 -28
- package/component/planet-component-loader.d.ts.map +0 -1
- package/component/planet-component-loader.ngfactory.d.ts.map +0 -1
- package/component/planet-component-ref.d.ts +0 -8
- package/component/planet-component-ref.d.ts.map +0 -1
- package/component/plant-component.config.d.ts.map +0 -1
- package/debug.d.ts +0 -22
- package/debug.d.ts.map +0 -1
- package/empty/empty.component.d.ts +0 -3
- package/empty/empty.component.d.ts.map +0 -1
- package/empty/empty.component.ngfactory.d.ts.map +0 -1
- package/esm2015/application/planet-application-loader.js +0 -452
- package/esm2015/application/planet-application-ref.js +0 -94
- package/esm2015/application/planet-application.service.js +0 -87
- package/esm2015/application/portal-application.js +0 -16
- package/esm2015/assets-loader.js +0 -217
- package/esm2015/component/planet-component-loader.js +0 -155
- package/esm2015/component/planet-component-ref.js +0 -3
- package/esm2015/component/plant-component.config.js +0 -7
- package/esm2015/debug.js +0 -33
- package/esm2015/empty/empty.component.js +0 -10
- package/esm2015/global-event-dispatcher.js +0 -71
- package/esm2015/global-planet.js +0 -51
- package/esm2015/helpers.js +0 -119
- package/esm2015/module.js +0 -27
- package/esm2015/planet.class.js +0 -9
- package/esm2015/planet.js +0 -90
- package/esm2015/public-api.js +0 -18
- package/esm2015/sandbox/constants.js +0 -7
- package/esm2015/sandbox/exec.js +0 -15
- package/esm2015/sandbox/index.js +0 -20
- package/esm2015/sandbox/proxy/patches/document.js +0 -12
- package/esm2015/sandbox/proxy/patches/eventListener.js +0 -41
- package/esm2015/sandbox/proxy/patches/index.js +0 -11
- package/esm2015/sandbox/proxy/patches/storage.js +0 -40
- package/esm2015/sandbox/proxy/patches/timer.js +0 -43
- package/esm2015/sandbox/proxy/proxies/common.js +0 -132
- package/esm2015/sandbox/proxy/proxies/document.js +0 -126
- package/esm2015/sandbox/proxy/proxies/window.js +0 -155
- package/esm2015/sandbox/proxy/proxy-sandbox.js +0 -49
- package/esm2015/sandbox/proxy/types.js +0 -2
- package/esm2015/sandbox/sandbox.js +0 -7
- package/esm2015/sandbox/snapshot/snapshot-sandbox.js +0 -12
- package/esm2015/sandbox/types.js +0 -2
- package/esm2015/worktile-planet.js +0 -6
- package/fesm2015/worktile-planet.js +0 -2036
- package/fesm2015/worktile-planet.js.map +0 -1
- package/global-event-dispatcher.d.ts +0 -20
- package/global-event-dispatcher.d.ts.map +0 -1
- package/global-event-dispatcher.ngfactory.d.ts.map +0 -1
- package/global-planet.d.ts +0 -23
- package/global-planet.d.ts.map +0 -1
- package/helpers.d.ts +0 -39
- package/helpers.d.ts.map +0 -1
- package/module.d.ts +0 -6
- package/module.d.ts.map +0 -1
- package/module.ngfactory.d.ts.map +0 -1
- package/planet.class.d.ts.map +0 -1
- package/planet.d.ts +0 -25
- package/planet.d.ts.map +0 -1
- package/planet.ngfactory.d.ts.map +0 -1
- package/public-api.d.ts.map +0 -1
- package/sandbox/constants.d.ts +0 -7
- package/sandbox/constants.d.ts.map +0 -1
- package/sandbox/exec.d.ts +0 -3
- package/sandbox/exec.d.ts.map +0 -1
- package/sandbox/index.d.ts +0 -7
- package/sandbox/index.d.ts.map +0 -1
- package/sandbox/proxy/patches/document.d.ts +0 -3
- package/sandbox/proxy/patches/document.d.ts.map +0 -1
- package/sandbox/proxy/patches/eventListener.d.ts +0 -3
- package/sandbox/proxy/patches/eventListener.d.ts.map +0 -1
- package/sandbox/proxy/patches/index.d.ts +0 -3
- package/sandbox/proxy/patches/index.d.ts.map +0 -1
- package/sandbox/proxy/patches/storage.d.ts +0 -15
- package/sandbox/proxy/patches/storage.d.ts.map +0 -1
- package/sandbox/proxy/patches/timer.d.ts +0 -3
- package/sandbox/proxy/patches/timer.d.ts.map +0 -1
- package/sandbox/proxy/proxies/common.d.ts +0 -13
- package/sandbox/proxy/proxies/common.d.ts.map +0 -1
- package/sandbox/proxy/proxies/document.d.ts +0 -14
- package/sandbox/proxy/proxies/document.d.ts.map +0 -1
- package/sandbox/proxy/proxies/window.d.ts +0 -13
- package/sandbox/proxy/proxies/window.d.ts.map +0 -1
- package/sandbox/proxy/proxy-sandbox.d.ts +0 -16
- package/sandbox/proxy/proxy-sandbox.d.ts.map +0 -1
- package/sandbox/proxy/types.d.ts.map +0 -1
- package/sandbox/sandbox.d.ts +0 -12
- package/sandbox/sandbox.d.ts.map +0 -1
- package/sandbox/snapshot/snapshot-sandbox.d.ts +0 -9
- package/sandbox/snapshot/snapshot-sandbox.d.ts.map +0 -1
- package/sandbox/types.d.ts +0 -2
- package/sandbox/types.d.ts.map +0 -1
- package/worktile-planet.d.ts +0 -6
- package/worktile-planet.d.ts.map +0 -1
- package/worktile-planet.metadata.json +0 -1
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
const roules = {
|
|
2
|
+
rules: [
|
|
3
|
+
{
|
|
4
|
+
test: {},
|
|
5
|
+
loader: 'raw-loader'
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
test: {},
|
|
9
|
+
loader: 'file-loader',
|
|
10
|
+
options: {
|
|
11
|
+
name: '[name].[ext]'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
test: {},
|
|
16
|
+
parser: {
|
|
17
|
+
system: true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
test: {}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
test: {},
|
|
25
|
+
exclude: {},
|
|
26
|
+
enforce: 'pre'
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
exclude: ['/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend/src/styles.scss'],
|
|
30
|
+
test: {},
|
|
31
|
+
use: [
|
|
32
|
+
{
|
|
33
|
+
loader: 'raw-loader'
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
loader: 'postcss-loader',
|
|
37
|
+
options: {
|
|
38
|
+
ident: 'embedded',
|
|
39
|
+
sourceMap: 'inline'
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
exclude: ['/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend/src/styles.scss'],
|
|
46
|
+
test: {},
|
|
47
|
+
use: [
|
|
48
|
+
{
|
|
49
|
+
loader: 'raw-loader'
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
loader: 'postcss-loader',
|
|
53
|
+
options: {
|
|
54
|
+
ident: 'embedded',
|
|
55
|
+
sourceMap: 'inline'
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
loader: 'sass-loader',
|
|
60
|
+
options: {
|
|
61
|
+
sourceMap: true,
|
|
62
|
+
precision: 8,
|
|
63
|
+
includePaths: []
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
exclude: ['/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend/src/styles.scss'],
|
|
70
|
+
test: {},
|
|
71
|
+
use: [
|
|
72
|
+
{
|
|
73
|
+
loader: 'raw-loader'
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
loader: 'postcss-loader',
|
|
77
|
+
options: {
|
|
78
|
+
ident: 'embedded',
|
|
79
|
+
sourceMap: 'inline'
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
loader: 'less-loader',
|
|
84
|
+
options: {
|
|
85
|
+
sourceMap: true,
|
|
86
|
+
javascriptEnabled: true
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
exclude: ['/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend/src/styles.scss'],
|
|
93
|
+
test: {},
|
|
94
|
+
use: [
|
|
95
|
+
{
|
|
96
|
+
loader: 'raw-loader'
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
loader: 'postcss-loader',
|
|
100
|
+
options: {
|
|
101
|
+
ident: 'embedded',
|
|
102
|
+
sourceMap: 'inline'
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
loader: 'stylus-loader',
|
|
107
|
+
options: {
|
|
108
|
+
sourceMap: true,
|
|
109
|
+
paths: []
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
include: ['/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend/src/styles.scss'],
|
|
116
|
+
test: {},
|
|
117
|
+
use: [
|
|
118
|
+
'/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend/node_modules/@angular-devkit/build-angular/node_modules/mini-css-extract-plugin/dist/loader.js',
|
|
119
|
+
'/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend/node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js',
|
|
120
|
+
{
|
|
121
|
+
loader: 'postcss-loader',
|
|
122
|
+
options: {
|
|
123
|
+
ident: 'extracted',
|
|
124
|
+
sourceMap: true
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
include: ['/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend/src/styles.scss'],
|
|
131
|
+
test: {},
|
|
132
|
+
use: [
|
|
133
|
+
'/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend/node_modules/@angular-devkit/build-angular/node_modules/mini-css-extract-plugin/dist/loader.js',
|
|
134
|
+
'/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend/node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js',
|
|
135
|
+
{
|
|
136
|
+
loader: 'postcss-loader',
|
|
137
|
+
options: {
|
|
138
|
+
ident: 'extracted',
|
|
139
|
+
sourceMap: true
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
loader: 'sass-loader',
|
|
144
|
+
options: {
|
|
145
|
+
sourceMap: true,
|
|
146
|
+
precision: 8,
|
|
147
|
+
includePaths: []
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
include: ['/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend/src/styles.scss'],
|
|
154
|
+
test: {},
|
|
155
|
+
use: [
|
|
156
|
+
'/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend/node_modules/@angular-devkit/build-angular/node_modules/mini-css-extract-plugin/dist/loader.js',
|
|
157
|
+
'/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend/node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js',
|
|
158
|
+
{
|
|
159
|
+
loader: 'postcss-loader',
|
|
160
|
+
options: {
|
|
161
|
+
ident: 'extracted',
|
|
162
|
+
sourceMap: true
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
loader: 'less-loader',
|
|
167
|
+
options: {
|
|
168
|
+
sourceMap: true,
|
|
169
|
+
javascriptEnabled: true
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
include: ['/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend/src/styles.scss'],
|
|
176
|
+
test: {},
|
|
177
|
+
use: [
|
|
178
|
+
'/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend/node_modules/@angular-devkit/build-angular/node_modules/mini-css-extract-plugin/dist/loader.js',
|
|
179
|
+
'/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend/node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js',
|
|
180
|
+
{
|
|
181
|
+
loader: 'postcss-loader',
|
|
182
|
+
options: {
|
|
183
|
+
ident: 'extracted',
|
|
184
|
+
sourceMap: true
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
loader: 'stylus-loader',
|
|
189
|
+
options: {
|
|
190
|
+
sourceMap: true,
|
|
191
|
+
paths: []
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
test: {},
|
|
198
|
+
loader: '@ngtools/webpack'
|
|
199
|
+
}
|
|
200
|
+
]
|
|
201
|
+
};
|
|
202
|
+
// const pls = [
|
|
203
|
+
// ProgressPlugin { profile: false, handler: undefined },
|
|
204
|
+
// CircularDependencyPlugin {
|
|
205
|
+
// options:
|
|
206
|
+
// { exclude: /([\\\/]node_modules[\\\/])|(ngfactory\.js$)/,
|
|
207
|
+
// failOnError: false,
|
|
208
|
+
// onDetected: false,
|
|
209
|
+
// cwd: '/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend' } },
|
|
210
|
+
// IndexHtmlWebpackPlugin {
|
|
211
|
+
// _options:
|
|
212
|
+
// { input: '/Users/haifeng/IT/10_YC/atinc/ngx-micro-frontend/src/index.html',
|
|
213
|
+
// output: 'index.html',
|
|
214
|
+
// entrypoints: [Array],
|
|
215
|
+
// sri: false,
|
|
216
|
+
// baseHref: undefined,
|
|
217
|
+
// deployUrl: undefined } },
|
|
218
|
+
// MiniCssExtractPlugin {
|
|
219
|
+
// options: { filename: '[name].css', chunkFilename: '[name].css' } },
|
|
220
|
+
// SuppressExtractedTextChunksWebpackPlugin {},
|
|
221
|
+
// ]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "../../out-tsc/spec",
|
|
5
|
+
"types": [
|
|
6
|
+
"jasmine",
|
|
7
|
+
"node"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"src/test.ts",
|
|
12
|
+
"src/polyfills.ts"
|
|
13
|
+
],
|
|
14
|
+
"include": [
|
|
15
|
+
"**/*.spec.ts",
|
|
16
|
+
"**/*.d.ts"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
// const ngToolsWebpack = require('@ngtools/webpack');
|
|
2
|
+
// const path = require('path');
|
|
3
|
+
// const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
4
|
+
// const ProgressPlugin = require('webpack/lib/ProgressPlugin');
|
|
5
|
+
// const workspaceRoot = path.resolve(__dirname, './');
|
|
6
|
+
// const projectRoot = path.resolve(__dirname, './');
|
|
7
|
+
// const {
|
|
8
|
+
// IndexHtmlWebpackPlugin
|
|
9
|
+
// } = require('@angular-devkit/build-angular/src/angular-cli-files/plugins/index-html-webpack-plugin');
|
|
10
|
+
// const RawCssLoader = require('@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader').default;
|
|
11
|
+
// const WebpackAssetsManifest = require('webpack-assets-manifest');
|
|
12
|
+
// const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
13
|
+
|
|
14
|
+
// const devMode = process.env.NODE_ENV !== 'production';
|
|
15
|
+
|
|
16
|
+
// const config = {
|
|
17
|
+
// mode: 'development',
|
|
18
|
+
// context: projectRoot,
|
|
19
|
+
// resolve: {
|
|
20
|
+
// extensions: ['.ts', '.js']
|
|
21
|
+
// },
|
|
22
|
+
// entry: {
|
|
23
|
+
// main: path.resolve(projectRoot, './src/main.ts'),
|
|
24
|
+
// polyfills: path.resolve(projectRoot, './src/polyfills.ts')
|
|
25
|
+
// },
|
|
26
|
+
// output: {
|
|
27
|
+
// path: path.resolve(workspaceRoot, './dist'),
|
|
28
|
+
// filename: `[name].[hash:20].js`,
|
|
29
|
+
// libraryTarget: 'umd',
|
|
30
|
+
// library: 'app1'
|
|
31
|
+
// },
|
|
32
|
+
// plugins: [
|
|
33
|
+
// new WebpackAssetsManifest(),
|
|
34
|
+
// new MiniCssExtractPlugin({
|
|
35
|
+
// // Options similar to the same options in webpackOptions.output
|
|
36
|
+
// // both options are optional
|
|
37
|
+
// filename: devMode ? '[name].css' : '[name].[hash].css',
|
|
38
|
+
// chunkFilename: devMode ? '[id].css' : '[id].[hash].css'
|
|
39
|
+
// }),
|
|
40
|
+
// new ngToolsWebpack.AngularCompilerPlugin({
|
|
41
|
+
// tsConfigPath: path.resolve(projectRoot, './src/tsconfig.app.json'),
|
|
42
|
+
// mainPath: path.resolve(projectRoot, './src/main.ts'),
|
|
43
|
+
// hostReplacementPaths: {
|
|
44
|
+
// './src/environments/environment.ts': './src/environments/environment.prod.ts'
|
|
45
|
+
// },
|
|
46
|
+
// sourceMap: true,
|
|
47
|
+
// compilerOptions: {}
|
|
48
|
+
// }),
|
|
49
|
+
// new IndexHtmlWebpackPlugin({
|
|
50
|
+
// input: path.resolve(__dirname, './src/index.html'),
|
|
51
|
+
// output: path.basename('./src/index.html')
|
|
52
|
+
// // baseHref: buildOptions.baseHref,
|
|
53
|
+
// // entrypoints: generateEntryPoints(buildOptions),
|
|
54
|
+
// // deployUrl: buildOptions.deployUrl,
|
|
55
|
+
// // sri: buildOptions.subresourceIntegrity
|
|
56
|
+
// }),
|
|
57
|
+
// // new HtmlWebpackPlugin({
|
|
58
|
+
// // filename: 'src/index.html'
|
|
59
|
+
// // })
|
|
60
|
+
// new ProgressPlugin()
|
|
61
|
+
// ],
|
|
62
|
+
// module: {
|
|
63
|
+
// rules: [
|
|
64
|
+
// // {
|
|
65
|
+
// // test: /\.(sa|sc|c)ss$/,
|
|
66
|
+
// // use: [
|
|
67
|
+
// // devMode ? 'style-loader' : MiniCssExtractPlugin.loader,
|
|
68
|
+
// // 'css-loader',
|
|
69
|
+
// // 'postcss-loader',
|
|
70
|
+
// // 'sass-loader'
|
|
71
|
+
// // ]
|
|
72
|
+
// // },
|
|
73
|
+
// // {
|
|
74
|
+
// // test: /\.scss$/,
|
|
75
|
+
// // include: path.resolve(projectRoot, './src/styles.scss'),
|
|
76
|
+
// // loaders: [
|
|
77
|
+
// // MiniCssExtractPlugin.loader,
|
|
78
|
+
// // 'css-loader',
|
|
79
|
+
// // // RawCssLoader,
|
|
80
|
+
// // {
|
|
81
|
+
// // loader:'postcss-loader',
|
|
82
|
+
// // options: {
|
|
83
|
+
// // ident: "extracted",
|
|
84
|
+
// // sourceMap: true
|
|
85
|
+
// // }
|
|
86
|
+
// // },
|
|
87
|
+
// // 'sass-loader'
|
|
88
|
+
// // ]
|
|
89
|
+
// // },
|
|
90
|
+
// { test: /\.css$/, loader: 'raw-loader' },
|
|
91
|
+
// { test: /\.html$/, loader: 'raw-loader' },
|
|
92
|
+
// {
|
|
93
|
+
// // Mark files inside `@angular/core` as using SystemJS style dynamic imports.
|
|
94
|
+
// // Removing this will cause deprecation warnings to appear.
|
|
95
|
+
// test: /[\/\\]@angular[\/\\]core[\/\\].+\.js$/,
|
|
96
|
+
// parser: { system: true }
|
|
97
|
+
// },
|
|
98
|
+
// // require.resolve is required only because of the monorepo structure here.
|
|
99
|
+
// {
|
|
100
|
+
// test: /(?:\.ngfactory\.js|\.ngstyle\.js|\.ts)$/,
|
|
101
|
+
// // test: /\.ts$/,
|
|
102
|
+
// loader: require.resolve('@ngtools/webpack')
|
|
103
|
+
// }
|
|
104
|
+
// ]
|
|
105
|
+
// },
|
|
106
|
+
// devServer: {
|
|
107
|
+
// historyApiFallback: true,
|
|
108
|
+
// port: 3001
|
|
109
|
+
// },
|
|
110
|
+
// watch: true
|
|
111
|
+
// };
|
|
112
|
+
|
|
113
|
+
// const assets = ['favicon.ico', 'assets/'];
|
|
114
|
+
// const copyWebpackPluginPatterns = assets.map(asset => {
|
|
115
|
+
// return {
|
|
116
|
+
// from: `src/${asset}`,
|
|
117
|
+
// to: asset.includes('.') ? '' : asset
|
|
118
|
+
// };
|
|
119
|
+
// });
|
|
120
|
+
// const copyWebpackPluginOptions = {
|
|
121
|
+
// ignore: ['.gitkeep', '**/.DS_Store', '**/Thumbs.db']
|
|
122
|
+
// };
|
|
123
|
+
|
|
124
|
+
// const copyWebpackPluginInstance = new CopyWebpackPlugin(copyWebpackPluginPatterns, copyWebpackPluginOptions);
|
|
125
|
+
// config.plugins.push(copyWebpackPluginInstance);
|
|
126
|
+
|
|
127
|
+
// module.exports = config;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers
|
|
2
|
+
# For additional information regarding the format and rule options, please see:
|
|
3
|
+
# https://github.com/browserslist/browserslist#queries
|
|
4
|
+
#
|
|
5
|
+
# For IE 9-11 support, please remove 'not' from the last line of the file and adjust as needed
|
|
6
|
+
|
|
7
|
+
> 0.5%
|
|
8
|
+
last 2 versions
|
|
9
|
+
Firefox ESR
|
|
10
|
+
not dead
|
|
11
|
+
not IE 9-11
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const WebpackAssetsManifest = require('webpack-assets-manifest');
|
|
2
|
+
const PrefixWrap = require('@worktile/planet-postcss-prefixwrap');
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
optimization: {
|
|
6
|
+
runtimeChunk: false
|
|
7
|
+
},
|
|
8
|
+
plugins: [new WebpackAssetsManifest()],
|
|
9
|
+
module: {
|
|
10
|
+
rules: [
|
|
11
|
+
{
|
|
12
|
+
test: /\.scss$/,
|
|
13
|
+
use: [
|
|
14
|
+
{
|
|
15
|
+
loader: 'postcss-loader',
|
|
16
|
+
options: {
|
|
17
|
+
postcssOptions: {
|
|
18
|
+
plugins: [
|
|
19
|
+
PrefixWrap('.app2', {
|
|
20
|
+
hasAttribute: 'planet-inline',
|
|
21
|
+
prefixRootTags: true
|
|
22
|
+
})
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
'sass-loader'
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Karma configuration file, see link for more information
|
|
2
|
+
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
+
|
|
4
|
+
module.exports = function(config) {
|
|
5
|
+
config.set({
|
|
6
|
+
basePath: '',
|
|
7
|
+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
+
plugins: [
|
|
9
|
+
require('karma-jasmine'),
|
|
10
|
+
require('karma-chrome-launcher'),
|
|
11
|
+
require('karma-jasmine-html-reporter'),
|
|
12
|
+
require('karma-coverage'),
|
|
13
|
+
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
+
],
|
|
15
|
+
client: {
|
|
16
|
+
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
17
|
+
},
|
|
18
|
+
coverageIstanbulReporter: {
|
|
19
|
+
dir: require('path').join(__dirname, '../../coverage'),
|
|
20
|
+
reports: ['html', 'lcovonly', 'text-summary'],
|
|
21
|
+
fixWebpackSourcePaths: true
|
|
22
|
+
},
|
|
23
|
+
reporters: ['progress', 'kjhtml'],
|
|
24
|
+
port: 9876,
|
|
25
|
+
colors: true,
|
|
26
|
+
logLevel: config.LOG_INFO,
|
|
27
|
+
autoWatch: true,
|
|
28
|
+
browsers: ['Chrome'],
|
|
29
|
+
singleRun: false
|
|
30
|
+
});
|
|
31
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { BrowserModule } from '@angular/platform-browser';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
import { RouterModule, Route } from '@angular/router';
|
|
5
|
+
import { ProjectListComponent } from './projects/project-list.component';
|
|
6
|
+
import { AppRootComponent, AppActualRootComponent } from './root/root.component';
|
|
7
|
+
import { DashboardComponent } from './dashboard/dashboard.component';
|
|
8
|
+
import { ProjectDetailComponent } from './projects/detail/detail.component';
|
|
9
|
+
import { CommonModule } from '@angular/common';
|
|
10
|
+
import { FormsModule } from '@angular/forms';
|
|
11
|
+
import { EmptyComponent, NgxPlanetModule } from 'ngx-planet';
|
|
12
|
+
import { DemoCommonModule, OVERLAY_PROVIDER } from '@demo/common';
|
|
13
|
+
import { ProjectResolver } from './projects/project.resolver';
|
|
14
|
+
import { TasksComponent } from './projects/tasks/tasks.component';
|
|
15
|
+
import { ViewComponent } from './projects/view/view.component';
|
|
16
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
17
|
+
import { AppOverlay } from './overlay';
|
|
18
|
+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
19
|
+
import { SharedModule } from './shared.module';
|
|
20
|
+
|
|
21
|
+
const routers: Route[] = [
|
|
22
|
+
{
|
|
23
|
+
path: 'app2',
|
|
24
|
+
component: AppActualRootComponent,
|
|
25
|
+
children: [
|
|
26
|
+
{
|
|
27
|
+
path: '',
|
|
28
|
+
redirectTo: 'dashboard',
|
|
29
|
+
pathMatch: 'full'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
path: 'projects',
|
|
33
|
+
component: ProjectListComponent
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
path: 'projects/:id',
|
|
37
|
+
component: ProjectDetailComponent,
|
|
38
|
+
resolve: {
|
|
39
|
+
project: ProjectResolver
|
|
40
|
+
},
|
|
41
|
+
children: [
|
|
42
|
+
{
|
|
43
|
+
path: 'tasks',
|
|
44
|
+
component: TasksComponent,
|
|
45
|
+
children: [
|
|
46
|
+
{
|
|
47
|
+
path: ':viewId',
|
|
48
|
+
component: ViewComponent
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
path: 'dashboard',
|
|
56
|
+
component: DashboardComponent
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
path: '**',
|
|
62
|
+
component: EmptyComponent
|
|
63
|
+
}
|
|
64
|
+
];
|
|
65
|
+
|
|
66
|
+
@NgModule({
|
|
67
|
+
declarations: [
|
|
68
|
+
AppActualRootComponent,
|
|
69
|
+
AppRootComponent,
|
|
70
|
+
ProjectListComponent,
|
|
71
|
+
DashboardComponent,
|
|
72
|
+
ProjectDetailComponent,
|
|
73
|
+
TasksComponent,
|
|
74
|
+
ViewComponent
|
|
75
|
+
],
|
|
76
|
+
entryComponents: [AppRootComponent, ProjectDetailComponent],
|
|
77
|
+
imports: [
|
|
78
|
+
CommonModule,
|
|
79
|
+
BrowserAnimationsModule,
|
|
80
|
+
FormsModule,
|
|
81
|
+
BrowserModule,
|
|
82
|
+
RouterModule.forRoot(routers, { relativeLinkResolution: 'legacy' }),
|
|
83
|
+
SharedModule,
|
|
84
|
+
DemoCommonModule,
|
|
85
|
+
NgxPlanetModule
|
|
86
|
+
],
|
|
87
|
+
providers: [OVERLAY_PROVIDER, { provide: Overlay, useClass: AppOverlay }],
|
|
88
|
+
bootstrap: [AppRootComponent]
|
|
89
|
+
})
|
|
90
|
+
export class AppModule {}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<thy-content>
|
|
2
|
+
<h4>This is app2's dashboard</h4>
|
|
3
|
+
|
|
4
|
+
<section-card class="mt-3" title="Links to about">
|
|
5
|
+
<div><a href="javascript:;" (click)="toAbout()">About</a></div>
|
|
6
|
+
<a><a href="javascript:;" [routerLink]="['/about']">About use routerLink</a></a>
|
|
7
|
+
</section-card>
|
|
8
|
+
|
|
9
|
+
<section-card class="mt-3" title="Sandbox enabled">
|
|
10
|
+
<div>
|
|
11
|
+
主应用 Lodash 版本: <span thyLabel="primary">{{ portalLodashVersion }}</span>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="mt-2">
|
|
14
|
+
当前应用 Lodash 版本: <span thyLabel="warning">{{ app2LodashVersion }}</span>
|
|
15
|
+
</div>
|
|
16
|
+
</section-card>
|
|
17
|
+
|
|
18
|
+
<!-- <section-card class="mt-4" title="Open app1's user detail">
|
|
19
|
+
<button thyButton="outline-primary-square" (click)="openApp1UserDetail()">Open user detail (id: 1)</button>
|
|
20
|
+
</section-card> -->
|
|
21
|
+
</thy-content>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Component, Inject, HostBinding } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { PlanetPortalApplication, GlobalEventDispatcher } from 'ngx-planet';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'app-dashboard',
|
|
7
|
+
templateUrl: './dashboard.component.html'
|
|
8
|
+
})
|
|
9
|
+
export class DashboardComponent {
|
|
10
|
+
@HostBinding('class') class = 'thy-layout';
|
|
11
|
+
|
|
12
|
+
portalLodashVersion = (0, eval)('window')['lodash'].version;
|
|
13
|
+
|
|
14
|
+
app2LodashVersion = window['lodash'].version;
|
|
15
|
+
|
|
16
|
+
constructor(private portalApp: PlanetPortalApplication, private globalEventDispatcher: GlobalEventDispatcher) {
|
|
17
|
+
console.log(window);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
toAbout() {
|
|
21
|
+
this.portalApp.navigateByUrl('/about');
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
openApp1UserDetail() {
|
|
25
|
+
this.globalEventDispatcher.dispatch('openUserDetail', 1);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
2
|
+
import {
|
|
3
|
+
Overlay,
|
|
4
|
+
OverlayConfig,
|
|
5
|
+
OverlayContainer,
|
|
6
|
+
OverlayKeyboardDispatcher,
|
|
7
|
+
OverlayPositionBuilder,
|
|
8
|
+
OverlayRef,
|
|
9
|
+
ScrollStrategyOptions
|
|
10
|
+
} from '@angular/cdk/overlay';
|
|
11
|
+
import { DOCUMENT, Location } from '@angular/common';
|
|
12
|
+
import { ComponentFactoryResolver, Inject, Injectable, Injector, NgZone } from '@angular/core';
|
|
13
|
+
import { isArray, concatArray } from 'ngx-tethys/util';
|
|
14
|
+
|
|
15
|
+
@Injectable({ providedIn: 'root' })
|
|
16
|
+
export class AppOverlay extends Overlay {
|
|
17
|
+
create(config?: OverlayConfig): OverlayRef {
|
|
18
|
+
const overlayConfig: OverlayConfig = {
|
|
19
|
+
...config,
|
|
20
|
+
panelClass: concatArray(config.panelClass, 'app2')
|
|
21
|
+
};
|
|
22
|
+
const overlayRef = super.create(overlayConfig);
|
|
23
|
+
overlayRef.addPanelClass(overlayConfig.panelClass);
|
|
24
|
+
return overlayRef;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<thy-header thyHasBorder="true">
|
|
2
|
+
<ng-template #headerTitle>
|
|
3
|
+
<!-- <thy-icon class="prefix-icon" thyIconName="house-square" thyIconType="fill"></thy-icon> -->
|
|
4
|
+
<!-- <a href="javascript:;" class="title-name">Project Detail {{ projectId }} </a> -->
|
|
5
|
+
<span>Project Detail {{ projectId }}</span>
|
|
6
|
+
</ng-template>
|
|
7
|
+
<ng-template #headerContent>
|
|
8
|
+
<thy-nav thyType="primary" thyHorizontal="center">
|
|
9
|
+
<a href="javascript:;" thyNavLink thyNavLinkActive="true">Tasks</a>
|
|
10
|
+
<a href="javascript:;" thyNavLink>Defects</a>
|
|
11
|
+
</thy-nav>
|
|
12
|
+
</ng-template>
|
|
13
|
+
</thy-header>
|
|
14
|
+
<thy-layout>
|
|
15
|
+
<router-outlet></router-outlet>
|
|
16
|
+
</thy-layout>
|