@worktile/planet 12.1.1 → 12.1.2
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/application/planet-application-loader.d.ts +70 -0
- package/application/planet-application-loader.d.ts.map +1 -0
- package/application/planet-application-loader.ngfactory.d.ts.map +1 -0
- package/application/planet-application-ref.d.ts +36 -0
- package/application/planet-application-ref.d.ts.map +1 -0
- package/application/planet-application.service.d.ts +19 -0
- package/application/planet-application.service.d.ts.map +1 -0
- package/application/planet-application.service.ngfactory.d.ts.map +1 -0
- package/{packages/planet/src/application/portal-application.ts → application/portal-application.d.ts} +5 -18
- package/application/portal-application.d.ts.map +1 -0
- package/assets-loader.d.ts +33 -0
- package/assets-loader.d.ts.map +1 -0
- package/assets-loader.ngfactory.d.ts.map +1 -0
- package/bundles/worktile-planet.umd.js +2564 -0
- package/bundles/worktile-planet.umd.js.map +1 -0
- package/component/planet-component-loader.d.ts +28 -0
- package/component/planet-component-loader.d.ts.map +1 -0
- package/component/planet-component-loader.ngfactory.d.ts.map +1 -0
- package/component/planet-component-ref.d.ts +8 -0
- package/component/planet-component-ref.d.ts.map +1 -0
- package/{packages/planet/src/component/plant-component.config.ts → component/plant-component.config.d.ts} +4 -4
- package/component/plant-component.config.d.ts.map +1 -0
- package/debug.d.ts +22 -0
- package/debug.d.ts.map +1 -0
- package/empty/empty.component.d.ts +3 -0
- package/empty/empty.component.d.ts.map +1 -0
- package/empty/empty.component.ngfactory.d.ts.map +1 -0
- package/esm2015/application/planet-application-loader.js +457 -0
- package/esm2015/application/planet-application-ref.js +97 -0
- package/esm2015/application/planet-application.service.js +87 -0
- package/esm2015/application/portal-application.js +16 -0
- package/esm2015/assets-loader.js +217 -0
- package/esm2015/component/planet-component-loader.js +155 -0
- package/esm2015/component/planet-component-ref.js +3 -0
- package/esm2015/component/plant-component.config.js +7 -0
- package/esm2015/debug.js +33 -0
- package/esm2015/empty/empty.component.js +10 -0
- package/esm2015/global-event-dispatcher.js +71 -0
- package/esm2015/global-planet.js +54 -0
- package/esm2015/helpers.js +119 -0
- package/esm2015/module.js +27 -0
- package/esm2015/planet.class.js +9 -0
- package/esm2015/planet.js +91 -0
- package/esm2015/public-api.js +18 -0
- package/esm2015/sandbox/constants.js +7 -0
- package/esm2015/sandbox/exec.js +15 -0
- package/esm2015/sandbox/index.js +20 -0
- package/esm2015/sandbox/proxy/patches/document.js +12 -0
- package/esm2015/sandbox/proxy/patches/eventListener.js +41 -0
- package/esm2015/sandbox/proxy/patches/index.js +11 -0
- package/esm2015/sandbox/proxy/patches/storage.js +40 -0
- package/esm2015/sandbox/proxy/patches/timer.js +43 -0
- package/esm2015/sandbox/proxy/proxies/common.js +132 -0
- package/esm2015/sandbox/proxy/proxies/document.js +126 -0
- package/esm2015/sandbox/proxy/proxies/window.js +155 -0
- package/esm2015/sandbox/proxy/proxy-sandbox.js +49 -0
- package/esm2015/sandbox/proxy/types.js +2 -0
- package/esm2015/sandbox/sandbox.js +7 -0
- package/esm2015/sandbox/snapshot/snapshot-sandbox.js +12 -0
- package/esm2015/sandbox/types.js +2 -0
- package/esm2015/worktile-planet.js +6 -0
- package/fesm2015/worktile-planet.js +2048 -0
- package/fesm2015/worktile-planet.js.map +1 -0
- package/global-event-dispatcher.d.ts +20 -0
- package/global-event-dispatcher.d.ts.map +1 -0
- package/global-event-dispatcher.ngfactory.d.ts.map +1 -0
- package/global-planet.d.ts +23 -0
- package/global-planet.d.ts.map +1 -0
- package/helpers.d.ts +39 -0
- package/helpers.d.ts.map +1 -0
- package/module.d.ts +6 -0
- package/module.d.ts.map +1 -0
- package/module.ngfactory.d.ts.map +1 -0
- package/package.json +16 -121
- package/{packages/planet/src/planet.class.ts → planet.class.d.ts} +5 -26
- package/planet.class.d.ts.map +1 -0
- package/planet.d.ts +25 -0
- package/planet.d.ts.map +1 -0
- package/planet.ngfactory.d.ts.map +1 -0
- package/{packages/planet/src/public-api.ts → public-api.d.ts} +1 -4
- package/public-api.d.ts.map +1 -0
- package/sandbox/constants.d.ts +7 -0
- package/sandbox/constants.d.ts.map +1 -0
- package/sandbox/exec.d.ts +3 -0
- package/sandbox/exec.d.ts.map +1 -0
- package/sandbox/index.d.ts +7 -0
- package/sandbox/index.d.ts.map +1 -0
- package/sandbox/proxy/patches/document.d.ts +3 -0
- package/sandbox/proxy/patches/document.d.ts.map +1 -0
- package/sandbox/proxy/patches/eventListener.d.ts +3 -0
- package/sandbox/proxy/patches/eventListener.d.ts.map +1 -0
- package/sandbox/proxy/patches/index.d.ts +3 -0
- package/sandbox/proxy/patches/index.d.ts.map +1 -0
- package/sandbox/proxy/patches/storage.d.ts +15 -0
- package/sandbox/proxy/patches/storage.d.ts.map +1 -0
- package/sandbox/proxy/patches/timer.d.ts +3 -0
- package/sandbox/proxy/patches/timer.d.ts.map +1 -0
- package/sandbox/proxy/proxies/common.d.ts +13 -0
- package/sandbox/proxy/proxies/common.d.ts.map +1 -0
- package/sandbox/proxy/proxies/document.d.ts +14 -0
- package/sandbox/proxy/proxies/document.d.ts.map +1 -0
- package/sandbox/proxy/proxies/window.d.ts +13 -0
- package/sandbox/proxy/proxies/window.d.ts.map +1 -0
- package/sandbox/proxy/proxy-sandbox.d.ts +16 -0
- package/sandbox/proxy/proxy-sandbox.d.ts.map +1 -0
- package/{packages/planet/src/sandbox/proxy/types.ts → sandbox/proxy/types.d.ts} +2 -8
- package/sandbox/proxy/types.d.ts.map +1 -0
- package/sandbox/sandbox.d.ts +12 -0
- package/sandbox/sandbox.d.ts.map +1 -0
- package/sandbox/snapshot/snapshot-sandbox.d.ts +9 -0
- package/sandbox/snapshot/snapshot-sandbox.d.ts.map +1 -0
- package/sandbox/types.d.ts +2 -0
- package/sandbox/types.d.ts.map +1 -0
- package/worktile-planet.d.ts +6 -0
- package/worktile-planet.d.ts.map +1 -0
- package/worktile-planet.metadata.json +1 -0
- package/.all-contributorsrc +0 -84
- package/.circleci/config.yml +0 -17
- package/.coveralls.yml +0 -1
- package/.docgeni/public/assets/favicon.ico +0 -0
- package/.docgeni/public/index.html +0 -13
- package/.docgenirc.js +0 -35
- package/.dockerignore +0 -1
- package/.editorconfig +0 -22
- package/.github/FUNDING.yml +0 -12
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.prettierignore +0 -7
- package/.prettierrc +0 -28
- package/.travis.yml +0 -26
- package/.wpmrc.js +0 -11
- package/CHANGELOG.md +0 -391
- package/CODE_OF_CONDUCT.md +0 -76
- package/Dockerfile +0 -11
- package/LICENSE +0 -21
- package/README.md +0 -348
- package/README.zh-CN.md +0 -307
- package/SECURITY.md +0 -21
- package/angular.json +0 -373
- package/commitlint.config.js +0 -6
- package/docs/api/defineApplication.md +0 -46
- package/docs/api/globalEventDispatcher.md +0 -51
- package/docs/api/index.md +0 -5
- package/docs/api/planet.md +0 -117
- package/docs/guides/getting-started.md +0 -174
- package/docs/guides/index.md +0 -5
- package/docs/guides/intro.md +0 -216
- package/examples/app1/browserslist +0 -11
- package/examples/app1/extra-webpack.config.js +0 -33
- package/examples/app1/karma.conf.js +0 -31
- package/examples/app1/postcss.config.js +0 -1
- package/examples/app1/src/app/app.module.ts +0 -44
- package/examples/app1/src/app/app.routing.ts +0 -49
- package/examples/app1/src/app/counter.service.ts +0 -16
- package/examples/app1/src/app/dashboard/dashboard.component.html +0 -51
- package/examples/app1/src/app/dashboard/dashboard.component.ts +0 -70
- package/examples/app1/src/app/detail/detail.component.html +0 -8
- package/examples/app1/src/app/detail/detail.component.ts +0 -18
- package/examples/app1/src/app/overlay.ts +0 -26
- package/examples/app1/src/app/projects/dialog/projects-dialog.component.html +0 -10
- package/examples/app1/src/app/projects/dialog/projects-dialog.component.ts +0 -41
- package/examples/app1/src/app/projects/projects.component.ts +0 -33
- package/examples/app1/src/app/root/root.component.css +0 -3
- package/examples/app1/src/app/root/root.component.html +0 -16
- package/examples/app1/src/app/root/root.component.ts +0 -35
- package/examples/app1/src/app/services/initialized-data.resolver.ts +0 -15
- package/examples/app1/src/app/shared.module.ts +0 -57
- package/examples/app1/src/app/user/detail/user-detail.component.html +0 -5
- package/examples/app1/src/app/user/detail/user-detail.component.ts +0 -20
- package/examples/app1/src/app/user/user-list.component.html +0 -7
- package/examples/app1/src/app/user/user-list.component.ts +0 -20
- package/examples/app1/src/app/user/user.module.ts +0 -31
- package/examples/app1/src/assets/.gitkeep +0 -0
- package/examples/app1/src/assets/github.png +0 -0
- package/examples/app1/src/assets/main.css +0 -3
- package/examples/app1/src/environments/environment.prod.ts +0 -3
- package/examples/app1/src/environments/environment.ts +0 -16
- package/examples/app1/src/favicon.ico +0 -0
- package/examples/app1/src/index.html +0 -14
- package/examples/app1/src/main.ts +0 -35
- package/examples/app1/src/polyfills.ts +0 -84
- package/examples/app1/src/styles.scss +0 -35
- package/examples/app1/src/test.ts +0 -14
- package/examples/app1/temp.js +0 -221
- package/examples/app1/tsconfig.app.json +0 -10
- package/examples/app1/tsconfig.spec.json +0 -18
- package/examples/app1/tslint.json +0 -17
- package/examples/app1/webpack.config.js +0 -127
- package/examples/app2/browserslist +0 -11
- package/examples/app2/extra-webpack.config.js +0 -32
- package/examples/app2/karma.conf.js +0 -31
- package/examples/app2/src/app/app.module.ts +0 -90
- package/examples/app2/src/app/dashboard/dashboard.component.html +0 -21
- package/examples/app2/src/app/dashboard/dashboard.component.ts +0 -27
- package/examples/app2/src/app/overlay.ts +0 -26
- package/examples/app2/src/app/projects/detail/detail.component.html +0 -16
- package/examples/app2/src/app/projects/detail/detail.component.ts +0 -21
- package/examples/app2/src/app/projects/project-list.component.html +0 -29
- package/examples/app2/src/app/projects/project-list.component.ts +0 -58
- package/examples/app2/src/app/projects/project.resolver.ts +0 -15
- package/examples/app2/src/app/projects/projects.service.ts +0 -28
- package/examples/app2/src/app/projects/tasks/tasks.component.html +0 -10
- package/examples/app2/src/app/projects/tasks/tasks.component.ts +0 -16
- package/examples/app2/src/app/projects/view/view.component.html +0 -1
- package/examples/app2/src/app/projects/view/view.component.ts +0 -20
- package/examples/app2/src/app/root/root.component.html +0 -14
- package/examples/app2/src/app/root/root.component.scss +0 -12
- package/examples/app2/src/app/root/root.component.ts +0 -28
- package/examples/app2/src/app/shared.module.ts +0 -59
- package/examples/app2/src/assets/.gitkeep +0 -0
- package/examples/app2/src/environments/environment.prod.ts +0 -3
- package/examples/app2/src/environments/environment.ts +0 -16
- package/examples/app2/src/favicon.ico +0 -0
- package/examples/app2/src/index.html +0 -14
- package/examples/app2/src/main.ts +0 -36
- package/examples/app2/src/polyfills.ts +0 -84
- package/examples/app2/src/styles.scss +0 -28
- package/examples/app2/src/test.ts +0 -14
- package/examples/app2/tsconfig.app.json +0 -10
- package/examples/app2/tsconfig.spec.json +0 -18
- package/examples/app2/tslint.json +0 -7
- package/examples/app2/webpack.config.js +0 -92
- package/examples/common/app-root-context.ts +0 -10
- package/examples/common/cache.ts +0 -82
- package/examples/common/index.ts +0 -13
- package/examples/common/module.ts +0 -10
- package/examples/common/overlay-container.service.ts +0 -28
- package/examples/common/section-card/section-card.component.html +0 -5
- package/examples/common/section-card/section-card.component.scss +0 -15
- package/examples/common/section-card/section-card.component.ts +0 -11
- package/examples/common/utils.ts +0 -0
- package/examples/portal/src/app/a-detail/a-detail.component.html +0 -8
- package/examples/portal/src/app/a-detail/a-detail.component.ts +0 -18
- package/examples/portal/src/app/about/about.component.html +0 -27
- package/examples/portal/src/app/about/about.component.scss +0 -0
- package/examples/portal/src/app/about/about.component.spec.ts +0 -26
- package/examples/portal/src/app/about/about.component.ts +0 -26
- package/examples/portal/src/app/app-routing.module.ts +0 -57
- package/examples/portal/src/app/app.component.html +0 -73
- package/examples/portal/src/app/app.component.scss +0 -58
- package/examples/portal/src/app/app.component.spec.ts +0 -33
- package/examples/portal/src/app/app.component.ts +0 -111
- package/examples/portal/src/app/app.module.ts +0 -64
- package/examples/portal/src/app/custom-settings.service.ts +0 -44
- package/examples/portal/src/app/overlay.ts +0 -26
- package/examples/portal/src/app/settings/settings.component.html +0 -31
- package/examples/portal/src/app/settings/settings.component.scss +0 -3
- package/examples/portal/src/app/settings/settings.component.ts +0 -43
- package/examples/portal/src/assets/.gitkeep +0 -0
- package/examples/portal/src/assets/apps.json +0 -29
- package/examples/portal/src/assets/icons/sprite.defs.svg +0 -1
- package/examples/portal/src/assets/images/logo.svg +0 -16
- package/examples/portal/src/assets/ngx-planet-micro-front-end.gif +0 -0
- package/examples/portal/src/browserslist +0 -11
- package/examples/portal/src/environments/environment.prod.ts +0 -3
- package/examples/portal/src/environments/environment.ts +0 -16
- package/examples/portal/src/extra-webpack.config.js +0 -32
- package/examples/portal/src/favicon.ico +0 -0
- package/examples/portal/src/index.html +0 -14
- package/examples/portal/src/karma.conf.js +0 -31
- package/examples/portal/src/main.ts +0 -18
- package/examples/portal/src/polyfills.ts +0 -84
- package/examples/portal/src/reboot.scss +0 -14
- package/examples/portal/src/styles.scss +0 -14
- package/examples/portal/src/test.ts +0 -14
- package/examples/portal/src/tsconfig.app.json +0 -10
- package/examples/portal/src/tsconfig.spec.json +0 -9
- package/examples/portal/src/tslint.json +0 -7
- package/extra-webpack.config.js +0 -5
- package/nginx.conf +0 -17
- package/packages/planet/karma.conf.js +0 -37
- package/packages/planet/ng-package.json +0 -7
- package/packages/planet/package.json +0 -10
- package/packages/planet/src/application/planet-application-loader.spec.ts +0 -1102
- package/packages/planet/src/application/planet-application-loader.ts +0 -549
- package/packages/planet/src/application/planet-application-ref.spec.ts +0 -233
- package/packages/planet/src/application/planet-application-ref.ts +0 -131
- package/packages/planet/src/application/planet-application.service.spec.ts +0 -145
- package/packages/planet/src/application/planet-application.service.ts +0 -88
- package/packages/planet/src/application/portal-application.spec.ts +0 -53
- package/packages/planet/src/assets-loader.spec.ts +0 -689
- package/packages/planet/src/assets-loader.ts +0 -247
- package/packages/planet/src/component/planet-component-loader.spec.ts +0 -187
- package/packages/planet/src/component/planet-component-loader.ts +0 -173
- package/packages/planet/src/component/planet-component-ref.ts +0 -8
- package/packages/planet/src/debug.spec.ts +0 -58
- package/packages/planet/src/debug.ts +0 -66
- package/packages/planet/src/empty/empty.component.spec.ts +0 -34
- package/packages/planet/src/empty/empty.component.ts +0 -7
- package/packages/planet/src/global-event-dispatcher.spec.ts +0 -81
- package/packages/planet/src/global-event-dispatcher.ts +0 -82
- package/packages/planet/src/global-planet.spec.ts +0 -39
- package/packages/planet/src/global-planet.ts +0 -73
- package/packages/planet/src/helpers.spec.ts +0 -242
- package/packages/planet/src/helpers.ts +0 -125
- package/packages/planet/src/module.spec.ts +0 -79
- package/packages/planet/src/module.ts +0 -25
- package/packages/planet/src/planet.spec.ts +0 -226
- package/packages/planet/src/planet.ts +0 -113
- package/packages/planet/src/sandbox/constants.ts +0 -6
- package/packages/planet/src/sandbox/exec.ts +0 -22
- package/packages/planet/src/sandbox/index.ts +0 -24
- package/packages/planet/src/sandbox/proxy/patches/document.ts +0 -13
- package/packages/planet/src/sandbox/proxy/patches/eventListener.ts +0 -49
- package/packages/planet/src/sandbox/proxy/patches/index.ts +0 -13
- package/packages/planet/src/sandbox/proxy/patches/storage.ts +0 -53
- package/packages/planet/src/sandbox/proxy/patches/timer.ts +0 -50
- package/packages/planet/src/sandbox/proxy/proxies/common.ts +0 -137
- package/packages/planet/src/sandbox/proxy/proxies/document.ts +0 -140
- package/packages/planet/src/sandbox/proxy/proxies/window.ts +0 -176
- package/packages/planet/src/sandbox/proxy/proxy-sandbox.ts +0 -59
- package/packages/planet/src/sandbox/sandbox.ts +0 -20
- package/packages/planet/src/sandbox/snapshot/snapshot-sandbox.ts +0 -12
- package/packages/planet/src/sandbox/types.ts +0 -1
- package/packages/planet/src/test.ts +0 -16
- package/packages/planet/src/testing/app1.module.ts +0 -34
- package/packages/planet/src/testing/app2.module.ts +0 -24
- package/packages/planet/src/testing/applications.ts +0 -58
- package/packages/planet/src/testing/index.ts +0 -2
- package/packages/planet/src/testing/utils.ts +0 -31
- package/packages/planet/tsconfig.lib.json +0 -27
- package/packages/planet/tsconfig.lib.prod.json +0 -9
- package/packages/planet/tsconfig.spec.json +0 -17
- package/packages/planet/tslint.json +0 -7
- package/postcss.config.js +0 -3
- package/proxy.conf.js +0 -15
- package/tsconfig.json +0 -23
- package/tslint.json +0 -80
package/examples/app1/temp.js
DELETED
|
@@ -1,221 +0,0 @@
|
|
|
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
|
-
// ]
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
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;
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,90 +0,0 @@
|
|
|
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 {}
|
|
@@ -1,21 +0,0 @@
|
|
|
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>
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
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>
|