@eclipse-docks/create-app 0.7.85 → 0.7.86
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/package.json
CHANGED
|
@@ -5,27 +5,9 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
6
6
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg"/>
|
|
7
7
|
<title>Loading...</title>
|
|
8
|
-
<style>@keyframes app-loading-bar{0%{transform:translateX(0)}50%{transform:translateX(144px)}100%{transform:translateX(0)}}</style>
|
|
9
8
|
</head>
|
|
10
9
|
<body>
|
|
11
10
|
<div id="app-root"></div>
|
|
12
|
-
<div id="app-loading-overlay" style="position:fixed;inset:0;z-index:1000;background:var(--wa-background,#1a1a1a);pointer-events:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2rem;">
|
|
13
|
-
<img src="/logo-loading.svg" alt="" width="192" height="64" decoding="async" style="display:block;width:192px;height:64px;max-width:192px;max-height:64px;min-width:192px;min-height:64px;flex-shrink:0;" aria-hidden="true"/>
|
|
14
|
-
<div style="width:240px;height:3px;background:var(--wa-layer-2,#2a2a2a);border-radius:2px;overflow:hidden;">
|
|
15
|
-
<div style="width:40%;height:100%;background:var(--wa-color-primary,#2299dd);border-radius:2px;animation:app-loading-bar 1.5s ease-in-out infinite;" aria-hidden="true"></div>
|
|
16
|
-
</div>
|
|
17
|
-
<div id="app-load-progress" style="font-size:0.8125rem;color:var(--wa-text-secondary,#888);" aria-live="polite">Starting…</div>
|
|
18
|
-
</div>
|
|
19
|
-
<script>
|
|
20
|
-
window.addEventListener('app-load-progress', function(e) {
|
|
21
|
-
var el = document.getElementById('app-load-progress');
|
|
22
|
-
if (el && e.detail && e.detail.message) el.textContent = e.detail.message;
|
|
23
|
-
});
|
|
24
|
-
window.addEventListener('app-loaded', function() {
|
|
25
|
-
var el = document.getElementById('app-loading-overlay');
|
|
26
|
-
if (el) { el.style.opacity = '0'; el.style.transition = 'opacity 0.15s'; setTimeout(function() { el.remove(); }, 160); }
|
|
27
|
-
}, { once: true });
|
|
28
|
-
</script>
|
|
29
11
|
<script type="module" src="/src/main.ts"></script>
|
|
30
12
|
</body>
|
|
31
13
|
</html>
|
|
@@ -4,6 +4,7 @@ import { defineConfig } from 'vite';
|
|
|
4
4
|
import crossOriginIsolation from 'vite-plugin-cross-origin-isolation';
|
|
5
5
|
import mkcert from 'vite-plugin-mkcert';
|
|
6
6
|
import { VitePWA } from 'vite-plugin-pwa';
|
|
7
|
+
import { appSplashPlugin } from '@eclipse-docks/core/vite-plugin-app-splash';
|
|
7
8
|
import { resolveDepVersionsPlugin } from '@eclipse-docks/core/vite-plugin-resolve-deps';
|
|
8
9
|
import { localAliasesPlugin } from '@eclipse-docks/core/vite-plugin-local-aliases';
|
|
9
10
|
|
|
@@ -20,6 +21,7 @@ export default defineConfig({
|
|
|
20
21
|
},
|
|
21
22
|
},
|
|
22
23
|
plugins: [
|
|
24
|
+
appSplashPlugin(),
|
|
23
25
|
resolveDepVersionsPlugin(),
|
|
24
26
|
localAliasesPlugin({
|
|
25
27
|
useSrcInDev: true,
|