@eclipse-docks/create-app 0.7.72 → 0.7.74
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/index.js
CHANGED
|
@@ -59,6 +59,11 @@ function main() {
|
|
|
59
59
|
logoSvg = logoSvg.replace(/\{\{APP_NAME\}\}/g, appName);
|
|
60
60
|
writeFileSync(logoSvgPath, logoSvg);
|
|
61
61
|
|
|
62
|
+
const logoLoadingPath = join(targetDir, 'packages', 'app', 'public', 'logo-loading.svg');
|
|
63
|
+
let logoLoading = readFileSync(logoLoadingPath, 'utf8');
|
|
64
|
+
logoLoading = logoLoading.replace(/\{\{APP_NAME\}\}/g, appName);
|
|
65
|
+
writeFileSync(logoLoadingPath, logoLoading);
|
|
66
|
+
|
|
62
67
|
const readmePath = join(targetDir, 'README.md');
|
|
63
68
|
let readme = readFileSync(readmePath, 'utf8');
|
|
64
69
|
readme = readme.replace(/\{\{APP_NAME\}\}/g, appName);
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<body>
|
|
11
11
|
<div id="app-root"></div>
|
|
12
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.svg" alt="" width="192" height="64" style="display:block;width:192px;height:64px;max-width:192px;max-height:64px;min-width:192px;min-height:64px;" aria-hidden="true"/>
|
|
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
14
|
<div style="width:240px;height:3px;background:var(--wa-layer-2,#2a2a2a);border-radius:2px;overflow:hidden;">
|
|
15
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
16
|
</div>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg width="180" height="40" viewBox="0 0 180 40" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
|
2
|
+
<rect x="4" y="4" width="14" height="14" rx="3" fill="#cfe2ff" stroke="#000" stroke-width="1">
|
|
3
|
+
<animate attributeName="fill" values="#cfe2ff;#0d6efd;#cfe2ff" keyTimes="0;0.5;1" dur="2s" repeatCount="indefinite" begin="0s"/>
|
|
4
|
+
</rect>
|
|
5
|
+
<rect x="22" y="4" width="14" height="14" rx="3" fill="#cfe2ff" stroke="#000" stroke-width="1">
|
|
6
|
+
<animate attributeName="fill" values="#cfe2ff;#0d6efd;#cfe2ff" keyTimes="0;0.5;1" dur="2s" repeatCount="indefinite" begin="0.5s"/>
|
|
7
|
+
</rect>
|
|
8
|
+
<rect x="4" y="22" width="14" height="14" rx="3" fill="#cfe2ff" stroke="#000" stroke-width="1">
|
|
9
|
+
<animate attributeName="fill" values="#cfe2ff;#0d6efd;#cfe2ff" keyTimes="0;0.5;1" dur="2s" repeatCount="indefinite" begin="1s"/>
|
|
10
|
+
</rect>
|
|
11
|
+
<rect x="22" y="22" width="14" height="14" rx="3" fill="#cfe2ff" stroke="#000" stroke-width="1">
|
|
12
|
+
<animate attributeName="fill" values="#cfe2ff;#0d6efd;#cfe2ff" keyTimes="0;0.5;1" dur="2s" repeatCount="indefinite" begin="1.5s"/>
|
|
13
|
+
</rect>
|
|
14
|
+
<text x="48" y="26" font-family="system-ui, sans-serif" font-size="14" font-weight="600" fill="#0d6efd">{{APP_NAME}}</text>
|
|
15
|
+
</svg>
|