@digital-realty/ui-launchpad 12.0.13 → 12.0.14-IXUAT-11025.547248
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/README.md +32 -24
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/package.json +37 -9
package/README.md
CHANGED
|
@@ -1,30 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
# ui-launchpad
|
|
2
|
+
|
|
3
|
+
The default dashboard view of the Digital Realty Global Portal (GPv2).
|
|
4
|
+
Mounts at the app-shell root (`/`) once the customer is signed in.
|
|
5
|
+
|
|
6
|
+
- **Status tiles** — Active Tickets, Active Users, My Sites, DCIM-Enabled
|
|
7
|
+
Locations, Active Orders. Permission-gated summary counts.
|
|
8
|
+
- **Navigation menus** — Order Management, User Management, Service
|
|
9
|
+
Tickets, Service Request / Termination shortcuts. Each item hands off
|
|
10
|
+
to another MFE via `@vaadin/router` or a `CustomEvent` the app-shell
|
|
11
|
+
consumes.
|
|
12
|
+
- **Recent activity** — Ticket Updates and Your Action Required tables,
|
|
13
|
+
merging Service Management and GOM Order Management data streams.
|
|
14
|
+
- **Knowledge Base iframe** — external KB app with a `postMessage`
|
|
15
|
+
contract for opening articles at full screen.
|
|
16
|
+
- **What's New / Resources / Promotions** — sidebar cards driven by the
|
|
17
|
+
KB feed, including an in-page video modal for learning resources.
|
|
18
|
+
- **Support contacts** — email and regional phone numbers.
|
|
19
|
+
- **Contact Us form** — drawer with a support-category form for raising
|
|
20
|
+
a ticket without leaving the launchpad.
|
|
21
|
+
- **Release notes** — first-run dialog with dismiss / read-more actions.
|
|
22
|
+
|
|
23
|
+
Every widget and nav fragment is permission-gated by
|
|
24
|
+
`/usermanagement/my-permissions`, and Service Tickets items are further
|
|
25
|
+
gated by per-location probes against `/inventory/locations`.
|
|
17
26
|
|
|
18
27
|
## Scripts
|
|
19
28
|
|
|
20
29
|
- `start` runs your app for development, reloading on file changes
|
|
21
30
|
- `start:build` runs your app after it has been built using the build command
|
|
22
|
-
- `build` builds your app and outputs it in your `dist` directory
|
|
23
|
-
- `test` runs your test suite with Web Test Runner
|
|
24
31
|
- `lint` runs the linter for your project
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
- `build` builds your app and outputs it in your `dist` directory
|
|
33
|
+
- `test` runs both unit and acceptance tests
|
|
34
|
+
- `pnpm run test:unit` runs unit tests
|
|
35
|
+
- `pnpm run test:acceptance` run acceptance tests
|
|
36
|
+
- `pnpm run test:acceptance:ui` run acceptance tests with playwright ui and headed browser
|
|
37
|
+
- `pnpm run test:report` view the playwright html test report
|
|
38
|
+
- `pnpm run test:coverage` merge and view the test coverage report
|
package/dist/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"><
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"><script async="" src="https://cdn.jsdelivr.net/npm/es-module-shims@1.6.0/dist/es-module-shims.js"></script><script>!function(){const n=new XMLHttpRequest;n.open("GET","/config.json",!1),n.send(),n.status>=200&&n.status<300&&(window.gpConfig={"ui-launchpad":JSON.parse(n.responseText)})}()</script><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="DLR Portal"><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin=""><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;700&display=swap"><link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;1,500&display=swap" rel="stylesheet"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/toastify-js@^1.12.0/src/toastify.min.css"><meta name="msapplication-TileColor" content="#0099cc"><meta name="msapplication-config" content="./assets/images/app-icons/browserconfig.xml"><meta name="theme-color" content="#ffffff"><meta name="format-detection" content="telephone=no"><base href="/"><script>window.process={env:{NODE_ENV:"production"}}</script><style>body,html{background-color:#f5f7ff}:host :root [data-theme=ix-theme],:host [data-theme=ix-theme],:root [data-theme=ix-theme]{--md-sys-color-on-surface-variant:#B8BFC8}vaadin-date-picker-overlay,vaadin-time-picker-overlay{z-index:99999}</style><title>ui-launchpad</title></head><body data-theme="ix-theme"><ui-launchpad></ui-launchpad><noscript>Please enable JavaScript to view this website.</noscript><script type="module" src="./ui-launchpad.js"></script><script inject-service-worker="">"serviceWorker"in navigator&&window.addEventListener("load",function(){navigator.serviceWorker.register("sw.js").then(function(){console.log('ServiceWorker registered from "sw.js".')}).catch(function(e){console.log("ServiceWorker registration failed: ",e)})})</script></body></html>
|
package/dist/sw.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
if(!self.define){let e,i={};const n=(n,t)=>(n=new URL(n+".js",t).href,i[n]||new Promise(i=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=i,document.head.appendChild(e)}else e=n,importScripts(n),i()}).then(()=>{let e=i[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e}));self.define=(t,o)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(i[r])return;let s={};const c=e=>n(e,r),
|
|
1
|
+
if(!self.define){let e,i={};const n=(n,t)=>(n=new URL(n+".js",t).href,i[n]||new Promise(i=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=i,document.head.appendChild(e)}else e=n,importScripts(n),i()}).then(()=>{let e=i[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e}));self.define=(t,o)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(i[r])return;let s={};const c=e=>n(e,r),l={module:{uri:r},exports:s,require:c};i[r]=Promise.all(t.map(e=>l[e]||c(e))).then(e=>(o(...e),s))}}define(["./workbox-b865b753"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"index.html",revision:"2c69eb2da85c9b2ee93b0c537cf41d78"},{url:"ui-launchpad.js",revision:"463984434d2c0fce5045b5c68da1070f"}],{}),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/index.html"))),e.registerRoute("polyfills/*.js",new e.CacheFirst,"GET")});
|
|
2
2
|
//# sourceMappingURL=sw.js.map
|
package/dist/sw.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sw.js","sources":["../../../../../../private/var/folders/8j/3c4g2vh16vgc8j40cj25qfqh0000gn/T/
|
|
1
|
+
{"version":3,"file":"sw.js","sources":["../../../../../../private/var/folders/8j/3c4g2vh16vgc8j40cj25qfqh0000gn/T/c019fae1c7972024a98a789aa613b0bb/sw.js"],"sourcesContent":["import {registerRoute as workbox_routing_registerRoute} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-routing@6.6.0/node_modules/workbox-routing/registerRoute.mjs';\nimport {CacheFirst as workbox_strategies_CacheFirst} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-strategies@6.6.0/node_modules/workbox-strategies/CacheFirst.mjs';\nimport {clientsClaim as workbox_core_clientsClaim} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-core@6.6.0/node_modules/workbox-core/clientsClaim.mjs';\nimport {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-precaching@6.6.0/node_modules/workbox-precaching/precacheAndRoute.mjs';\nimport {NavigationRoute as workbox_routing_NavigationRoute} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-routing@6.6.0/node_modules/workbox-routing/NavigationRoute.mjs';\nimport {createHandlerBoundToURL as workbox_precaching_createHandlerBoundToURL} from '/Users/runner/work/1/s/ui-launchpad/node_modules/.pnpm/workbox-precaching@6.6.0/node_modules/workbox-precaching/createHandlerBoundToURL.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\n\n\n\nself.skipWaiting();\n\nworkbox_core_clientsClaim();\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"index.html\",\n \"revision\": \"2c69eb2da85c9b2ee93b0c537cf41d78\"\n },\n {\n \"url\": \"ui-launchpad.js\",\n \"revision\": \"463984434d2c0fce5045b5c68da1070f\"\n }\n], {});\n\nworkbox_routing_registerRoute(new workbox_routing_NavigationRoute(workbox_precaching_createHandlerBoundToURL(\"/index.html\")));\n\n\nworkbox_routing_registerRoute(\"polyfills/*.js\", new workbox_strategies_CacheFirst(), 'GET');\n\n\n\n\n"],"names":["self","skipWaiting","workbox_core_clientsClaim","workbox_precaching_precacheAndRoute","url","revision","workbox","registerRoute","workbox_routing_NavigationRoute","workbox_precaching_createHandlerBoundToURL","workbox_strategies_CacheFirst"],"mappings":"inBAwBAA,KAAKC,cAELC,EAAAA,eAQAC,EAAAA,iBAAoC,CAClC,CACEC,IAAO,aACPC,SAAY,oCAEd,CACED,IAAO,kBACPC,SAAY,qCAEb,CAAE,GAEwBC,EAAAC,cAAC,IAAIC,EAAAA,gBAAgCC,EAAAA,wBAA2C,iBAGhFH,EAAAC,cAAC,iBAAkB,IAAIG,aAAiC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Webcomponent ui-launchpad following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "ui-launchpad",
|
|
6
|
-
"version": "12.0.
|
|
6
|
+
"version": "12.0.14-IXUAT-11025.547248",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"exports": {
|
|
9
9
|
"./ui-launchpad.js": "./dist/ui-launchpad.js",
|
|
@@ -36,14 +36,17 @@
|
|
|
36
36
|
"lit": "^3.1.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
+
"@axe-core/playwright": "^4.12.1",
|
|
39
40
|
"@babel/preset-env": "^7.16.4",
|
|
40
41
|
"@custom-elements-manifest/analyzer": "^0.4.17",
|
|
41
42
|
"@digital-realty/ix-twlit": "^1.2.4",
|
|
42
43
|
"@digital-realty/theme": "^3.1.4",
|
|
44
|
+
"@faker-js/faker": "^10.5.0",
|
|
43
45
|
"@koa/cors": "^5.0.0",
|
|
44
46
|
"@open-wc/building-rollup": "^2.0.2",
|
|
45
47
|
"@open-wc/eslint-config": "^9.2.1",
|
|
46
48
|
"@open-wc/testing": "^3.1.6",
|
|
49
|
+
"@playwright/test": "1.61.0",
|
|
47
50
|
"@rollup/plugin-alias": "^5.1.1",
|
|
48
51
|
"@rollup/plugin-babel": "^5.3.0",
|
|
49
52
|
"@rollup/plugin-commonjs": "^25.0.4",
|
|
@@ -54,14 +57,14 @@
|
|
|
54
57
|
"@types/mocha": "^10.0.10",
|
|
55
58
|
"@typescript-eslint/eslint-plugin": "^5.48.0",
|
|
56
59
|
"@typescript-eslint/parser": "^5.48.0",
|
|
60
|
+
"@vitest/browser": "^4.1.10",
|
|
61
|
+
"@vitest/browser-playwright": "^4.1.10",
|
|
62
|
+
"@vitest/runner": "^4.1.10",
|
|
57
63
|
"@web/dev-server": "^0.4.6",
|
|
58
64
|
"@web/dev-server-rollup": "^0.6.4",
|
|
59
65
|
"@web/dev-server-storybook": "^0.0.2",
|
|
60
66
|
"@web/rollup-plugin-html": "^1.11.0",
|
|
61
67
|
"@web/rollup-plugin-import-meta-assets": "^1.0.7",
|
|
62
|
-
"@web/test-runner": "^0.19.0",
|
|
63
|
-
"@web/test-runner-commands": "^0.9.0",
|
|
64
|
-
"@web/test-runner-playwright": "^0.11.0",
|
|
65
68
|
"babel-plugin-template-html-minifier": "^4.1.0",
|
|
66
69
|
"change-case": "^3.1.0",
|
|
67
70
|
"concurrently": "^5.3.0",
|
|
@@ -69,12 +72,14 @@
|
|
|
69
72
|
"deepmerge": "^4.2.2",
|
|
70
73
|
"eslint": "^8.31.0",
|
|
71
74
|
"eslint-config-prettier": "^8.3.0",
|
|
75
|
+
"happy-dom": "^20.10.6",
|
|
72
76
|
"husky": "^9.0.11",
|
|
73
77
|
"less": "^4.2.0",
|
|
74
78
|
"lint-staged": "^10.5.4",
|
|
79
|
+
"monocart-coverage-reports": "^2.12.12",
|
|
75
80
|
"nodemon": "^3.1.0",
|
|
76
|
-
"playwright": "
|
|
77
|
-
"prettier": "^
|
|
81
|
+
"playwright": "1.61.0",
|
|
82
|
+
"prettier": "^3.3.0",
|
|
78
83
|
"rimraf": "^3.0.2",
|
|
79
84
|
"rollup": "^2.60.0",
|
|
80
85
|
"rollup-plugin-esbuild": "^5.0.0",
|
|
@@ -82,7 +87,10 @@
|
|
|
82
87
|
"rollup-plugin-workbox": "^6.2.0",
|
|
83
88
|
"tailwindcss": "^3.4.1",
|
|
84
89
|
"tslib": "^2.3.1",
|
|
85
|
-
"typescript": "^
|
|
90
|
+
"typescript": "^5.7.0",
|
|
91
|
+
"vitest": "^4.1.10",
|
|
92
|
+
"vitest-browser-lit": "^1.0.1",
|
|
93
|
+
"vitest-monocart-coverage": "^4.0.2"
|
|
86
94
|
},
|
|
87
95
|
"eslintConfig": {
|
|
88
96
|
"parser": "@typescript-eslint/parser",
|
|
@@ -107,6 +115,19 @@
|
|
|
107
115
|
"ignorePackages": true
|
|
108
116
|
}
|
|
109
117
|
],
|
|
118
|
+
"import/no-extraneous-dependencies": [
|
|
119
|
+
"error",
|
|
120
|
+
{
|
|
121
|
+
"devDependencies": [
|
|
122
|
+
"**/test/**",
|
|
123
|
+
"**/test-new/**",
|
|
124
|
+
"**/*.test.ts",
|
|
125
|
+
"**/*.spec.ts",
|
|
126
|
+
"**/playwright.config.ts",
|
|
127
|
+
"**/vitest.config.ts"
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
],
|
|
110
131
|
"no-restricted-syntax": [
|
|
111
132
|
"error",
|
|
112
133
|
{
|
|
@@ -133,8 +154,15 @@
|
|
|
133
154
|
"build:workspace": "pnpm run build",
|
|
134
155
|
"lint": "eslint --ext .ts,.html . && prettier \"**/*.ts\" --check",
|
|
135
156
|
"format": "eslint --ext .ts,.html . --fix && prettier \"**/*.ts\" --write",
|
|
136
|
-
"test": "
|
|
137
|
-
"test:
|
|
157
|
+
"test": "pnpm test:typecheck && pnpm test:unit && pnpm test:component && pnpm test:acceptance && pnpm test:coverage --no-bail",
|
|
158
|
+
"test:typecheck": "tsc -p test/tsconfig.json",
|
|
159
|
+
"test:unit": "vitest run --config=test/unit/vitest.config.ts",
|
|
160
|
+
"test:component": "vitest run --config=test/component/vitest.config.ts",
|
|
161
|
+
"test:acceptance": "playwright test --config=test/acceptance/playwright.config.ts",
|
|
162
|
+
"test:acceptance:ui": "playwright test --config=test/acceptance/playwright.config.ts --ui --headed",
|
|
163
|
+
"test:acceptance:report": "playwright show-report test-results/acceptance/reports",
|
|
164
|
+
"test:coverage": "node ./test/mcr-merge.ts",
|
|
165
|
+
"junit": "node test/add-junit-attachments.ts test-results/unit/reports/junit.xml test-results/unit/artifacts && node test/add-junit-attachments.ts test-results/component/reports/junit.xml test-results/component/artifacts",
|
|
138
166
|
"storybook": "tsc && pnpm run analyze -- --exclude dist && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds -c .storybook/server.mjs\"",
|
|
139
167
|
"storybook:build": "tsc && pnpm run analyze -- --exclude dist && build-storybook",
|
|
140
168
|
"build": "rimraf dist && pnpm run tailwindcss:build && pnpm run twlit:build && tsc && pnpm run less:build && rollup -c rollup.config.mjs",
|