dsh-snowbreak-heimdall 3.0.0
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/LICENSE +29 -0
- package/README.md +175 -0
- package/SHA256SUMS.txt +61 -0
- package/TEST-REPORT.md +96 -0
- package/assets/icons/app-512.png +0 -0
- package/assets/icons/app-light-512.png +0 -0
- package/assets/icons/app.ico +0 -0
- package/assets/icons/apple-touch-icon.png +0 -0
- package/assets/icons/favicon-dark.svg +5 -0
- package/assets/icons/favicon.svg +5 -0
- package/assets/icons/icon-192.png +0 -0
- package/assets/icons/icon-512.png +0 -0
- package/assets/icons/icon-maskable-512.png +0 -0
- package/assets/icons/icon.svg +5 -0
- package/assets/icons/res-icon.png +0 -0
- package/assets/icons/tray.ico +0 -0
- package/assets/previews/assets/hm-mark-blue.png +0 -0
- package/assets/previews/brand-fix.png +0 -0
- package/assets/previews/exe-icon-test.png +0 -0
- package/assets/previews/loading-dark.html +443 -0
- package/assets/previews/loading-dark.png +0 -0
- package/assets/previews/loading-fallback.html +443 -0
- package/assets/previews/loading-fallback.png +0 -0
- package/assets/previews/loading-handoff.html +457 -0
- package/assets/previews/loading-light.html +443 -0
- package/assets/previews/loading-light.png +0 -0
- package/assets/previews/mask-test.png +0 -0
- package/assets/previews/progress-winforms-complete.png +0 -0
- package/assets/previews/progress-winforms.png +0 -0
- package/assets/previews/ui-chrome.html +24 -0
- package/assets/previews/ui-chrome.png +0 -0
- package/assets/source/brand-client.js +95 -0
- package/assets/source/client-template.js +217 -0
- package/assets/source/hm-mark-blue.png +0 -0
- package/assets/source/hm-mark-ink.png +0 -0
- package/assets/source/hm-mark-light.png +0 -0
- package/assets/source/loading.css +373 -0
- package/assets/source/loading.html +58 -0
- package/assets/source/logo.webp +0 -0
- package/assets/source/mark-alpha.png +0 -0
- package/assets/source/mark-color.png +0 -0
- package/assets/source/progress.ps1 +312 -0
- package/assets/source/shell.css +475 -0
- package/assets/source/shell.js +293 -0
- package/assets/source/update.css +47 -0
- package/assets/source/watermark-soft.png +0 -0
- package/assets/source/welcome-brand.svg +18 -0
- package/assets/source/welcome-mark-ink.png +0 -0
- package/assets/source/welcome-mark-light.png +0 -0
- package/assets/source/welcome.css +121 -0
- package/cordis.patch.yml +4 -0
- package/icon.svg +5 -0
- package/lib/client.js +217 -0
- package/lib/index.js +239 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +47 -0
- package/patch/asar.py +237 -0
- package/patch/patcher.py +1307 -0
- package/tools/build_assets.py +206 -0
- package/tools/build_client.py +21 -0
- package/tools/test_lock.py +28 -0
- package/tools/test_progress_launch.py +44 -0
- package/tools/test_progress_ps1.py +38 -0
- package/tools/test_progress_ps1_complete.py +38 -0
- package/vendor/rcedit/LICENSE +20 -0
- package/vendor/rcedit/README.md +51 -0
- package/vendor/rcedit/rcedit-x64.exe +0 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
window.__ModuleLoader__.load({
|
|
2
|
+
id: '@local/snowbreak-heimdall',
|
|
3
|
+
factory(require) {
|
|
4
|
+
const React = require('react');
|
|
5
|
+
const h = React.createElement;
|
|
6
|
+
const useEffect = React.useEffect;
|
|
7
|
+
const useState = React.useState;
|
|
8
|
+
const MARK = 'data:image/png;base64,__MARK_B64__';
|
|
9
|
+
|
|
10
|
+
const CSS = `
|
|
11
|
+
#hm-startup, #hm-startup * { box-sizing: border-box; }
|
|
12
|
+
#hm-startup {
|
|
13
|
+
position: fixed; inset: 0; z-index: 2147483000; display: flex;
|
|
14
|
+
align-items: center; justify-content: center; overflow: hidden;
|
|
15
|
+
pointer-events: none; color: #E6EEF5; opacity: 1;
|
|
16
|
+
background:
|
|
17
|
+
radial-gradient(76% 56% at 72% 30%, rgba(65, 110, 140, .24), transparent 66%),
|
|
18
|
+
linear-gradient(180deg, #090D13, #070A0F 58%, #05080C);
|
|
19
|
+
font-family: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
|
|
20
|
+
animation: hm-startup-out .45s ease 1.95s forwards;
|
|
21
|
+
}
|
|
22
|
+
#hm-startup::before {
|
|
23
|
+
content: ""; position: absolute; inset: 0; opacity: .6;
|
|
24
|
+
background-image:
|
|
25
|
+
linear-gradient(rgba(127,178,208,.06) 1px, transparent 1px),
|
|
26
|
+
linear-gradient(90deg, rgba(127,178,208,.06) 1px, transparent 1px);
|
|
27
|
+
background-size: 64px 64px;
|
|
28
|
+
mask-image: linear-gradient(180deg, #000, transparent 82%);
|
|
29
|
+
-webkit-mask-image: linear-gradient(180deg, #000, transparent 82%);
|
|
30
|
+
}
|
|
31
|
+
#hm-startup::after {
|
|
32
|
+
content: ""; position: absolute; width: 9px; height: 9px;
|
|
33
|
+
left: 16px; top: 16px; border-left: 1px solid #7FB2D0; border-top: 1px solid #7FB2D0;
|
|
34
|
+
box-shadow: calc(100vw - 33px) 0 0 -0.2px #7FB2D0,
|
|
35
|
+
calc(100vw - 33px) calc(100vh - 33px) 0 -0.2px #7FB2D0,
|
|
36
|
+
0 calc(100vh - 33px) 0 -0.2px #7FB2D0;
|
|
37
|
+
}
|
|
38
|
+
#hm-startup .hm-start-inner {
|
|
39
|
+
position: relative; z-index: 2; width: min(760px, calc(100vw - 64px));
|
|
40
|
+
text-align: center; padding: 32px;
|
|
41
|
+
}
|
|
42
|
+
#hm-startup .hm-start-mark {
|
|
43
|
+
width: 92px; height: 58px; margin: 0 auto 18px; color: #D6E7F3;
|
|
44
|
+
background: currentColor; display: block;
|
|
45
|
+
-webkit-mask: url("${MARK}") center / 100% 100% no-repeat;
|
|
46
|
+
mask: url("${MARK}") center / 100% 100% no-repeat;
|
|
47
|
+
}
|
|
48
|
+
#hm-startup .hm-start-kicker {
|
|
49
|
+
font-family: "Bahnschrift", "Segoe UI", sans-serif;
|
|
50
|
+
font-size: 9px; letter-spacing: .34em; color: #7FB2D0; margin-bottom: 11px;
|
|
51
|
+
}
|
|
52
|
+
#hm-startup .hm-start-title {
|
|
53
|
+
margin: 0; font-size: clamp(30px, 4.2vw, 52px); font-weight: 600;
|
|
54
|
+
letter-spacing: .12em; line-height: 1.15; color: #E6EEF5;
|
|
55
|
+
}
|
|
56
|
+
#hm-startup .hm-start-sub {
|
|
57
|
+
margin: 9px 0 0; font-size: 12px; letter-spacing: .24em; color: #AAB8C5;
|
|
58
|
+
}
|
|
59
|
+
#hm-startup .hm-start-line {
|
|
60
|
+
width: min(440px, 70vw); height: 1px; margin: 24px auto 15px; background: #263440;
|
|
61
|
+
position: relative; overflow: hidden;
|
|
62
|
+
}
|
|
63
|
+
#hm-startup .hm-start-line i {
|
|
64
|
+
position: absolute; inset: 0; width: 42%;
|
|
65
|
+
background: linear-gradient(90deg, transparent, #7FB2D0, #D97745);
|
|
66
|
+
animation: hm-startup-sweep 1.9s ease-in-out infinite;
|
|
67
|
+
}
|
|
68
|
+
#hm-startup .hm-start-meta {
|
|
69
|
+
display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
|
|
70
|
+
font-family: "Bahnschrift", "Segoe UI", sans-serif;
|
|
71
|
+
font-size: 8px; letter-spacing: .2em; color: #7E8E9E;
|
|
72
|
+
}
|
|
73
|
+
#hm-startup .hm-start-meta b { color: #D97745; font-weight: 500; }
|
|
74
|
+
#hm-startup .hm-start-foot {
|
|
75
|
+
position: absolute; left: 32px; right: 32px; bottom: 22px;
|
|
76
|
+
display: flex; justify-content: space-between; gap: 16px;
|
|
77
|
+
font-family: "Bahnschrift", "Segoe UI", sans-serif;
|
|
78
|
+
font-size: 8px; letter-spacing: .2em; color: #647482;
|
|
79
|
+
}
|
|
80
|
+
#hm-startup .hm-start-scan {
|
|
81
|
+
position: absolute; left: 0; right: 0; height: 1px; top: 24%;
|
|
82
|
+
background: linear-gradient(90deg, transparent, rgba(127,178,208,.34), transparent);
|
|
83
|
+
animation: hm-startup-scan 3.2s linear infinite;
|
|
84
|
+
}
|
|
85
|
+
#hm-pending {
|
|
86
|
+
position: fixed; right: 20px; bottom: 20px; z-index: 2147483001;
|
|
87
|
+
width: min(420px, calc(100vw - 40px)); pointer-events: auto;
|
|
88
|
+
border: 1px solid #2C3A46; border-radius: 2px; background: #10161E;
|
|
89
|
+
color: #E6EEF5; font-family: "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
|
|
90
|
+
box-shadow: 0 0 0 1px rgba(0,0,0,.24);
|
|
91
|
+
}
|
|
92
|
+
#hm-pending .hm-p-head {
|
|
93
|
+
display: flex; align-items: center; justify-content: space-between;
|
|
94
|
+
height: 30px; padding: 0 10px; border-bottom: 1px solid #263440;
|
|
95
|
+
font-family: "Bahnschrift", "Segoe UI", sans-serif;
|
|
96
|
+
font-size: 8px; letter-spacing: .2em; color: #7E8E9E;
|
|
97
|
+
}
|
|
98
|
+
#hm-pending .hm-p-body { padding: 10px 12px 12px; font-size: 12px; line-height: 1.7; color: #AAB8C5; }
|
|
99
|
+
#hm-pending .hm-p-body b { color: #D97745; font-weight: 600; }
|
|
100
|
+
#hm-pending button {
|
|
101
|
+
width: 22px; height: 22px; padding: 0; border: 1px solid #263440;
|
|
102
|
+
background: transparent; color: #7E8E9E; cursor: pointer; border-radius: 1px;
|
|
103
|
+
}
|
|
104
|
+
@keyframes hm-startup-sweep { 0% { transform: translateX(-120%); } 100% { transform: translateX(260%); } }
|
|
105
|
+
@keyframes hm-startup-scan { 0% { top: 12%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: .7; } 100% { top: 76%; opacity: 0; } }
|
|
106
|
+
@keyframes hm-startup-out { to { opacity: 0; visibility: hidden; } }
|
|
107
|
+
@media (prefers-color-scheme: light) {
|
|
108
|
+
#hm-startup {
|
|
109
|
+
color: #101820;
|
|
110
|
+
background:
|
|
111
|
+
radial-gradient(76% 56% at 72% 28%, rgba(130,174,201,.26), transparent 66%),
|
|
112
|
+
linear-gradient(180deg, #F6F9FB, #EDF1F5 58%, #E6ECF1);
|
|
113
|
+
}
|
|
114
|
+
#hm-startup::before {
|
|
115
|
+
background-image:
|
|
116
|
+
linear-gradient(rgba(47,106,142,.08) 1px, transparent 1px),
|
|
117
|
+
linear-gradient(90deg, rgba(47,106,142,.08) 1px, transparent 1px);
|
|
118
|
+
}
|
|
119
|
+
#hm-startup .hm-start-mark { color: #163044; }
|
|
120
|
+
#hm-startup .hm-start-title { color: #101820; }
|
|
121
|
+
#hm-startup .hm-start-sub { color: #465665; }
|
|
122
|
+
#hm-startup .hm-start-line { background: #C8D3DD; }
|
|
123
|
+
#hm-startup .hm-start-kicker { color: #2F6A8E; }
|
|
124
|
+
#hm-startup .hm-start-meta, #hm-startup .hm-start-foot { color: #71808E; }
|
|
125
|
+
#hm-startup .hm-start-meta b { color: #A9481F; }
|
|
126
|
+
#hm-pending { border-color: #C8D3DD; background: #F7F9FB; color: #101820; }
|
|
127
|
+
#hm-pending .hm-p-head { border-color: #D2DCE4; color: #71808E; }
|
|
128
|
+
#hm-pending .hm-p-body { color: #465665; }
|
|
129
|
+
#hm-pending .hm-p-body b { color: #A9481F; }
|
|
130
|
+
#hm-pending button { border-color: #C8D3DD; color: #71808E; }
|
|
131
|
+
}
|
|
132
|
+
@media (prefers-reduced-motion: reduce) {
|
|
133
|
+
#hm-startup, #hm-startup * { animation: none !important; }
|
|
134
|
+
}
|
|
135
|
+
`;
|
|
136
|
+
|
|
137
|
+
function Startup() {
|
|
138
|
+
const [done, setDone] = useState(false);
|
|
139
|
+
const [notice, setNotice] = useState(false);
|
|
140
|
+
useEffect(() => {
|
|
141
|
+
const reduced = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
142
|
+
const timer = setTimeout(() => {
|
|
143
|
+
setDone(true);
|
|
144
|
+
setNotice(document.documentElement.getAttribute('data-heimdall-source') !== 'active');
|
|
145
|
+
}, reduced ? 650 : 2500);
|
|
146
|
+
let observer = null;
|
|
147
|
+
try {
|
|
148
|
+
observer = new MutationObserver(() => {
|
|
149
|
+
if (document.documentElement.getAttribute('data-heimdall-source') === 'active') {
|
|
150
|
+
setNotice(false);
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
observer.observe(document.documentElement, {
|
|
154
|
+
attributes: true, attributeFilter: ['data-heimdall-source'],
|
|
155
|
+
});
|
|
156
|
+
} catch (_) { /* optional */ }
|
|
157
|
+
return () => {
|
|
158
|
+
clearTimeout(timer);
|
|
159
|
+
try { if (observer) observer.disconnect(); } catch (_) {}
|
|
160
|
+
};
|
|
161
|
+
}, []);
|
|
162
|
+
if (done && !notice) return null;
|
|
163
|
+
const overlay = done ? null : h('div', { id: 'hm-startup', 'aria-hidden': 'true' },
|
|
164
|
+
h('span', { className: 'hm-start-scan' }),
|
|
165
|
+
h('div', { className: 'hm-start-inner' },
|
|
166
|
+
h('span', { className: 'hm-start-mark' }),
|
|
167
|
+
h('div', { className: 'hm-start-kicker' }, 'YGGDRASIL CORPORATION // HEIMDALL FORCE'),
|
|
168
|
+
h('h1', { className: 'hm-start-title' }, '海姆达尔终端'),
|
|
169
|
+
h('p', { className: 'hm-start-sub' }, '分析员,欢迎回来'),
|
|
170
|
+
h('div', { className: 'hm-start-line' }, h('i')),
|
|
171
|
+
h('div', { className: 'hm-start-meta' },
|
|
172
|
+
h('span', null, 'ANALYST-04'),
|
|
173
|
+
h('span', null, 'CLEARANCE ', h('b', null, 'A')),
|
|
174
|
+
h('span', null, 'ZERO ZONE · 零区')
|
|
175
|
+
)
|
|
176
|
+
),
|
|
177
|
+
h('div', { className: 'hm-start-foot' },
|
|
178
|
+
h('span', null, 'YGGDRASIL // HEIMDALL'),
|
|
179
|
+
h('span', null, 'HM-04 · SECURE LINK')
|
|
180
|
+
)
|
|
181
|
+
);
|
|
182
|
+
const pending = done && notice ? h('section', { id: 'hm-pending', role: 'status' },
|
|
183
|
+
h('div', { className: 'hm-p-head' },
|
|
184
|
+
h('span', null, 'HEIMDALL // SOURCE LAYER'),
|
|
185
|
+
h('button', {
|
|
186
|
+
type: 'button', 'aria-label': '关闭提示',
|
|
187
|
+
onClick: () => setNotice(false),
|
|
188
|
+
}, '×')
|
|
189
|
+
),
|
|
190
|
+
h('div', { className: 'hm-p-body' },
|
|
191
|
+
h('b', null, '源码层尚未接入。'),
|
|
192
|
+
' 请完全退出 DSH 一次;本地 helper 会在退出后写入加载画面、主题、菜单与图标,再重新打开即可。'
|
|
193
|
+
)
|
|
194
|
+
) : null;
|
|
195
|
+
return h(React.Fragment, null, h('style', null, CSS), overlay, pending);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
function apply(ctx) {
|
|
199
|
+
ctx.effect(() => {
|
|
200
|
+
let dispose = null;
|
|
201
|
+
try {
|
|
202
|
+
dispose = ctx.slots.inject('shell.overlay', () => ctx.slots.register({
|
|
203
|
+
name: 'shell.overlay', id: 'snowbreak-heimdall-startup', order: 1000,
|
|
204
|
+
}, Startup));
|
|
205
|
+
} catch (error) {
|
|
206
|
+
try { console.error('[snowbreak-heimdall] overlay registration failed', error); } catch (_) {}
|
|
207
|
+
}
|
|
208
|
+
return () => {
|
|
209
|
+
try { if (typeof dispose === 'function') dispose(); } catch (_) {}
|
|
210
|
+
try { window.dispatchEvent(new CustomEvent('heimdall-plugin-disabled')); } catch (_) {}
|
|
211
|
+
};
|
|
212
|
+
}, 'snowbreak-heimdall: post-load startup animation');
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
return { inject: ['slots'], apply };
|
|
216
|
+
},
|
|
217
|
+
});
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
HEIMDALL TERMINAL // source boot layer
|
|
3
|
+
Painted before DSH's web kernel creates its own loading node. The layer is
|
|
4
|
+
static HTML + CSS; it never depends on the plugin and never replaces the
|
|
5
|
+
kernel's lifecycle. A 45 s failsafe only fades the painted layer, leaving
|
|
6
|
+
the (also skinned) kernel loader visible underneath.
|
|
7
|
+
========================================================================== */
|
|
8
|
+
#hm-boot{
|
|
9
|
+
--hm-ink:#E6EEF5;
|
|
10
|
+
--hm-ink-2:#AEBBC8;
|
|
11
|
+
--hm-ink-3:#7E8E9E;
|
|
12
|
+
--hm-line:#263440;
|
|
13
|
+
--hm-line-2:#334553;
|
|
14
|
+
--hm-blue:#7FB2D0;
|
|
15
|
+
--hm-blue-soft:rgba(127,178,208,.18);
|
|
16
|
+
--hm-amber:#D97745;
|
|
17
|
+
--hm-amber-soft:rgba(217,119,69,.18);
|
|
18
|
+
--hm-field:#070A0F;
|
|
19
|
+
--hm-panel:rgba(11,16,23,.78);
|
|
20
|
+
position:fixed;
|
|
21
|
+
inset:0;
|
|
22
|
+
z-index:2147483000;
|
|
23
|
+
display:flex;
|
|
24
|
+
flex-direction:column;
|
|
25
|
+
overflow:hidden;
|
|
26
|
+
background:var(--hm-field);
|
|
27
|
+
color:var(--hm-ink);
|
|
28
|
+
font-family:"Noto Sans SC","Microsoft YaHei UI","Microsoft YaHei","Segoe UI Variable Display","Segoe UI",sans-serif;
|
|
29
|
+
font-size:14px;
|
|
30
|
+
line-height:1.5;
|
|
31
|
+
pointer-events:none;
|
|
32
|
+
opacity:1;
|
|
33
|
+
animation:hm-boot-failsafe 0s linear 45s forwards;
|
|
34
|
+
-webkit-font-smoothing:antialiased;
|
|
35
|
+
}
|
|
36
|
+
#hm-boot.hm-boot--out{opacity:0;transition:opacity .26s ease}
|
|
37
|
+
#hm-boot *{box-sizing:border-box}
|
|
38
|
+
#hm-boot img{display:block;max-width:100%}
|
|
39
|
+
|
|
40
|
+
.hm-boot__field,
|
|
41
|
+
.hm-boot__grid,
|
|
42
|
+
.hm-boot__watermark,
|
|
43
|
+
.hm-boot__frame{position:absolute;inset:0;pointer-events:none}
|
|
44
|
+
.hm-boot__field{
|
|
45
|
+
background:
|
|
46
|
+
radial-gradient(78% 64% at 73% 30%,rgba(50,96,126,.24),transparent 65%),
|
|
47
|
+
radial-gradient(62% 54% at 16% 84%,rgba(137,72,38,.10),transparent 68%),
|
|
48
|
+
linear-gradient(180deg,#090D13 0%,#070A0F 44%,#05080C 100%);
|
|
49
|
+
}
|
|
50
|
+
.hm-boot__grid{
|
|
51
|
+
inset:-1px;
|
|
52
|
+
background-image:
|
|
53
|
+
linear-gradient(rgba(127,178,208,.055) 1px,transparent 1px),
|
|
54
|
+
linear-gradient(90deg,rgba(127,178,208,.055) 1px,transparent 1px);
|
|
55
|
+
background-size:64px 64px;
|
|
56
|
+
-webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.86),transparent 86%);
|
|
57
|
+
mask-image:linear-gradient(180deg,rgba(0,0,0,.86),transparent 86%);
|
|
58
|
+
}
|
|
59
|
+
.hm-boot__grid::after{
|
|
60
|
+
content:"";
|
|
61
|
+
position:absolute;
|
|
62
|
+
left:0;right:0;height:1px;
|
|
63
|
+
top:22%;
|
|
64
|
+
background:linear-gradient(90deg,transparent,rgba(127,178,208,.30),transparent);
|
|
65
|
+
animation:hm-boot-scan 7s linear infinite;
|
|
66
|
+
}
|
|
67
|
+
.hm-boot__watermark{
|
|
68
|
+
left:auto;
|
|
69
|
+
right:-8vw;
|
|
70
|
+
top:8%;
|
|
71
|
+
width:min(760px,64vw);
|
|
72
|
+
opacity:.055;
|
|
73
|
+
display:flex;
|
|
74
|
+
align-items:center;
|
|
75
|
+
justify-content:center;
|
|
76
|
+
filter:grayscale(1) contrast(1.1);
|
|
77
|
+
}
|
|
78
|
+
.hm-boot__watermark img{width:100%;height:auto}
|
|
79
|
+
.hm-boot__frame{inset:16px;border:1px solid rgba(127,178,208,.22)}
|
|
80
|
+
.hm-boot__frame i{position:absolute;width:9px;height:9px;border-color:var(--hm-blue);border-style:solid}
|
|
81
|
+
.hm-boot__frame i:nth-child(1){left:-1px;top:-1px;border-width:1px 0 0 1px}
|
|
82
|
+
.hm-boot__frame i:nth-child(2){right:-1px;top:-1px;border-width:1px 1px 0 0}
|
|
83
|
+
.hm-boot__frame i:nth-child(3){left:-1px;bottom:-1px;border-width:0 0 1px 1px}
|
|
84
|
+
.hm-boot__frame i:nth-child(4){right:-1px;bottom:-1px;border-width:0 1px 1px 0}
|
|
85
|
+
|
|
86
|
+
.hm-boot__bar{
|
|
87
|
+
position:relative;
|
|
88
|
+
z-index:2;
|
|
89
|
+
display:flex;
|
|
90
|
+
align-items:center;
|
|
91
|
+
justify-content:space-between;
|
|
92
|
+
gap:28px;
|
|
93
|
+
margin:16px;
|
|
94
|
+
padding:18px 22px;
|
|
95
|
+
border-bottom:1px solid var(--hm-line);
|
|
96
|
+
}
|
|
97
|
+
.hm-boot__identity{display:flex;align-items:center;gap:13px;min-width:0}
|
|
98
|
+
.hm-boot__mark{width:42px;height:auto;flex:0 0 auto}
|
|
99
|
+
.hm-boot__org,
|
|
100
|
+
.hm-boot__unit{
|
|
101
|
+
display:flex;
|
|
102
|
+
flex-direction:column;
|
|
103
|
+
gap:1px;
|
|
104
|
+
font-size:13px;
|
|
105
|
+
font-weight:600;
|
|
106
|
+
letter-spacing:.12em;
|
|
107
|
+
white-space:nowrap;
|
|
108
|
+
}
|
|
109
|
+
.hm-boot__org small,
|
|
110
|
+
.hm-boot__unit small{
|
|
111
|
+
font-family:"Bahnschrift","Segoe UI Variable Display","Segoe UI",sans-serif;
|
|
112
|
+
font-size:8px;
|
|
113
|
+
font-weight:500;
|
|
114
|
+
letter-spacing:.24em;
|
|
115
|
+
color:var(--hm-ink-3);
|
|
116
|
+
}
|
|
117
|
+
.hm-boot__sep{width:1px;height:25px;background:var(--hm-line-2);margin:0 4px}
|
|
118
|
+
.hm-boot__meta{
|
|
119
|
+
display:flex;
|
|
120
|
+
align-items:center;
|
|
121
|
+
gap:18px;
|
|
122
|
+
font-family:"Bahnschrift","Segoe UI Variable Display","Segoe UI",sans-serif;
|
|
123
|
+
font-size:9px;
|
|
124
|
+
letter-spacing:.16em;
|
|
125
|
+
color:var(--hm-ink-3);
|
|
126
|
+
white-space:nowrap;
|
|
127
|
+
}
|
|
128
|
+
.hm-boot__meta b{color:var(--hm-ink);font-weight:600;margin-left:4px;letter-spacing:.1em}
|
|
129
|
+
.hm-boot__secure{display:inline-flex;align-items:center;gap:6px;color:var(--hm-blue)}
|
|
130
|
+
.hm-boot__secure i{width:5px;height:5px;background:var(--hm-blue);display:inline-block;animation:hm-boot-pulse 1.9s ease-in-out infinite}
|
|
131
|
+
|
|
132
|
+
.hm-boot__main{
|
|
133
|
+
position:relative;
|
|
134
|
+
z-index:2;
|
|
135
|
+
flex:1;
|
|
136
|
+
min-height:0;
|
|
137
|
+
display:grid;
|
|
138
|
+
grid-template-columns:minmax(0,1.45fr) minmax(300px,380px);
|
|
139
|
+
align-items:center;
|
|
140
|
+
gap:clamp(34px,5vw,86px);
|
|
141
|
+
width:100%;
|
|
142
|
+
max-width:1440px;
|
|
143
|
+
margin:0 auto;
|
|
144
|
+
padding:26px clamp(34px,6vw,88px) 30px;
|
|
145
|
+
}
|
|
146
|
+
.hm-boot__copy{min-width:0;max-width:820px}
|
|
147
|
+
.hm-boot__kicker{
|
|
148
|
+
display:flex;
|
|
149
|
+
align-items:center;
|
|
150
|
+
gap:12px;
|
|
151
|
+
margin-bottom:20px;
|
|
152
|
+
font-family:"Bahnschrift","Segoe UI Variable Display","Segoe UI",sans-serif;
|
|
153
|
+
font-size:9px;
|
|
154
|
+
letter-spacing:.32em;
|
|
155
|
+
color:var(--hm-blue);
|
|
156
|
+
text-transform:uppercase;
|
|
157
|
+
}
|
|
158
|
+
.hm-boot__kicker span{width:42px;height:1px;background:var(--hm-amber);display:inline-block}
|
|
159
|
+
.hm-boot__title{
|
|
160
|
+
margin:0;
|
|
161
|
+
display:flex;
|
|
162
|
+
flex-direction:column;
|
|
163
|
+
gap:8px;
|
|
164
|
+
font-size:clamp(44px,5.8vw,84px);
|
|
165
|
+
font-weight:600;
|
|
166
|
+
line-height:1.02;
|
|
167
|
+
letter-spacing:.08em;
|
|
168
|
+
color:var(--hm-ink);
|
|
169
|
+
}
|
|
170
|
+
.hm-boot__title small{
|
|
171
|
+
font-family:"Bahnschrift","Segoe UI Variable Display","Segoe UI",sans-serif;
|
|
172
|
+
font-size:clamp(9px,1vw,12px);
|
|
173
|
+
font-weight:500;
|
|
174
|
+
letter-spacing:.34em;
|
|
175
|
+
color:var(--hm-blue);
|
|
176
|
+
}
|
|
177
|
+
.hm-boot__lead{
|
|
178
|
+
max-width:580px;
|
|
179
|
+
margin:24px 0 0;
|
|
180
|
+
font-size:13px;
|
|
181
|
+
line-height:1.9;
|
|
182
|
+
letter-spacing:.03em;
|
|
183
|
+
color:var(--hm-ink-2);
|
|
184
|
+
}
|
|
185
|
+
.hm-boot__ident{
|
|
186
|
+
display:flex;
|
|
187
|
+
flex-wrap:wrap;
|
|
188
|
+
gap:0;
|
|
189
|
+
margin-top:30px;
|
|
190
|
+
border-top:1px solid var(--hm-line);
|
|
191
|
+
border-bottom:1px solid var(--hm-line);
|
|
192
|
+
}
|
|
193
|
+
.hm-boot__ident > span{
|
|
194
|
+
display:flex;
|
|
195
|
+
flex-direction:column;
|
|
196
|
+
gap:3px;
|
|
197
|
+
min-width:136px;
|
|
198
|
+
padding:10px 18px 10px 0;
|
|
199
|
+
margin-right:18px;
|
|
200
|
+
border-right:1px solid var(--hm-line);
|
|
201
|
+
}
|
|
202
|
+
.hm-boot__ident > span:last-child{border-right:0;margin-right:0}
|
|
203
|
+
.hm-boot__ident i{
|
|
204
|
+
font-style:normal;
|
|
205
|
+
font-family:"Bahnschrift","Segoe UI Variable Display","Segoe UI",sans-serif;
|
|
206
|
+
font-size:8px;
|
|
207
|
+
letter-spacing:.2em;
|
|
208
|
+
color:var(--hm-ink-3);
|
|
209
|
+
}
|
|
210
|
+
.hm-boot__ident b{font-size:12px;font-weight:600;letter-spacing:.08em;color:var(--hm-ink)}
|
|
211
|
+
.hm-boot__ident .is-accent b{color:var(--hm-amber)}
|
|
212
|
+
|
|
213
|
+
.hm-boot__link{
|
|
214
|
+
align-self:center;
|
|
215
|
+
border:1px solid var(--hm-line);
|
|
216
|
+
border-radius:2px;
|
|
217
|
+
padding:18px 20px 16px;
|
|
218
|
+
background:linear-gradient(180deg,rgba(16,23,31,.88),rgba(8,12,18,.78));
|
|
219
|
+
}
|
|
220
|
+
.hm-boot__link-head,
|
|
221
|
+
.hm-boot__state{
|
|
222
|
+
display:flex;
|
|
223
|
+
align-items:center;
|
|
224
|
+
justify-content:space-between;
|
|
225
|
+
gap:12px;
|
|
226
|
+
font-family:"Bahnschrift","Segoe UI Variable Display","Segoe UI",sans-serif;
|
|
227
|
+
font-size:9px;
|
|
228
|
+
letter-spacing:.2em;
|
|
229
|
+
color:var(--hm-ink-3);
|
|
230
|
+
}
|
|
231
|
+
.hm-boot__link-head{padding-bottom:10px;border-bottom:1px solid var(--hm-line)}
|
|
232
|
+
.hm-boot__link-head span:first-child{color:var(--hm-ink-2)}
|
|
233
|
+
.hm-boot__rail{position:relative;height:1px;margin:16px 0 14px;background:var(--hm-line-2);overflow:hidden}
|
|
234
|
+
.hm-boot__rail i{
|
|
235
|
+
position:absolute;
|
|
236
|
+
top:0;bottom:0;
|
|
237
|
+
width:46%;
|
|
238
|
+
background:linear-gradient(90deg,transparent,var(--hm-blue),var(--hm-amber));
|
|
239
|
+
animation:hm-boot-rail 2.6s ease-in-out infinite;
|
|
240
|
+
}
|
|
241
|
+
.hm-boot__state{justify-content:flex-start;color:var(--hm-ink-2);letter-spacing:.08em;font-size:10px}
|
|
242
|
+
.hm-boot__pulse{width:6px;height:6px;background:var(--hm-amber);display:inline-block;animation:hm-boot-pulse 1.9s ease-in-out infinite}
|
|
243
|
+
.hm-boot__standby{margin-left:auto;color:var(--hm-ink-3);font-size:8px;letter-spacing:.18em}
|
|
244
|
+
.hm-boot__steps{list-style:none;margin:18px 0 0;padding:0}
|
|
245
|
+
.hm-boot__steps li{
|
|
246
|
+
display:grid;
|
|
247
|
+
grid-template-columns:26px 1fr auto;
|
|
248
|
+
align-items:center;
|
|
249
|
+
gap:10px;
|
|
250
|
+
min-height:38px;
|
|
251
|
+
border-top:1px solid var(--hm-line);
|
|
252
|
+
color:var(--hm-ink-2);
|
|
253
|
+
font-size:11px;
|
|
254
|
+
letter-spacing:.05em;
|
|
255
|
+
}
|
|
256
|
+
.hm-boot__steps li:last-child{border-bottom:1px solid var(--hm-line)}
|
|
257
|
+
.hm-boot__steps span,
|
|
258
|
+
.hm-boot__steps em{
|
|
259
|
+
font-family:"Bahnschrift","Segoe UI Variable Display","Segoe UI",sans-serif;
|
|
260
|
+
font-style:normal;
|
|
261
|
+
font-size:8px;
|
|
262
|
+
letter-spacing:.14em;
|
|
263
|
+
color:var(--hm-ink-3);
|
|
264
|
+
}
|
|
265
|
+
.hm-boot__steps b{font-weight:500;letter-spacing:.08em}
|
|
266
|
+
.hm-boot__steps em{text-align:right}
|
|
267
|
+
.hm-boot__steps .is-current{color:var(--hm-ink)}
|
|
268
|
+
.hm-boot__steps .is-current span{color:var(--hm-amber)}
|
|
269
|
+
.hm-boot__steps .is-current b{font-weight:600}
|
|
270
|
+
.hm-boot__hint{
|
|
271
|
+
margin:14px 0 0;
|
|
272
|
+
padding-top:12px;
|
|
273
|
+
border-top:1px solid var(--hm-line);
|
|
274
|
+
color:var(--hm-ink-3);
|
|
275
|
+
font-size:10px;
|
|
276
|
+
line-height:1.7;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.hm-boot__foot{
|
|
280
|
+
position:relative;
|
|
281
|
+
z-index:2;
|
|
282
|
+
display:flex;
|
|
283
|
+
align-items:center;
|
|
284
|
+
justify-content:space-between;
|
|
285
|
+
gap:18px;
|
|
286
|
+
margin:0 16px 16px;
|
|
287
|
+
padding:13px 22px;
|
|
288
|
+
border-top:1px solid var(--hm-line);
|
|
289
|
+
font-family:"Bahnschrift","Segoe UI Variable Display","Segoe UI",sans-serif;
|
|
290
|
+
font-size:8px;
|
|
291
|
+
letter-spacing:.2em;
|
|
292
|
+
color:var(--hm-ink-3);
|
|
293
|
+
}
|
|
294
|
+
.hm-boot__foot-mid{color:var(--hm-blue)}
|
|
295
|
+
.hm-boot__foot i{display:inline-block;width:14px;height:1px;background:var(--hm-line-2);vertical-align:middle;margin:0 7px}
|
|
296
|
+
|
|
297
|
+
/* The kernel loader remains the fallback if the painted layer fades. */
|
|
298
|
+
[data-dsh-boot]{
|
|
299
|
+
background:var(--hm-field, #070A0F) !important;
|
|
300
|
+
color:#E6EEF5 !important;
|
|
301
|
+
font-family:"Noto Sans SC","Microsoft YaHei UI","Microsoft YaHei","Segoe UI Variable Display","Segoe UI",sans-serif !important;
|
|
302
|
+
}
|
|
303
|
+
[data-dsh-boot] > *{opacity:.92 !important}
|
|
304
|
+
[data-dsh-boot-spinner]{
|
|
305
|
+
border-color:#263440 !important;
|
|
306
|
+
border-radius:0 !important;
|
|
307
|
+
width:18px !important;
|
|
308
|
+
height:18px !important;
|
|
309
|
+
}
|
|
310
|
+
html body{background:#070A0F}
|
|
311
|
+
|
|
312
|
+
@keyframes hm-boot-rail{0%{transform:translateX(-110%)}55%{transform:translateX(120%)}100%{transform:translateX(120%)}}
|
|
313
|
+
@keyframes hm-boot-scan{0%{top:8%;opacity:0}12%{opacity:1}88%{opacity:.8}100%{top:90%;opacity:0}}
|
|
314
|
+
@keyframes hm-boot-pulse{0%,100%{opacity:.35}50%{opacity:1}}
|
|
315
|
+
@keyframes hm-boot-failsafe{0%,97%{opacity:1;visibility:visible}100%{opacity:0;visibility:hidden}}
|
|
316
|
+
|
|
317
|
+
@media (prefers-color-scheme: light){
|
|
318
|
+
#hm-boot{
|
|
319
|
+
--hm-ink:#101820;
|
|
320
|
+
--hm-ink-2:#40505F;
|
|
321
|
+
--hm-ink-3:#71808E;
|
|
322
|
+
--hm-line:#C8D3DD;
|
|
323
|
+
--hm-line-2:#AFBECB;
|
|
324
|
+
--hm-blue:#2F6A8E;
|
|
325
|
+
--hm-blue-soft:rgba(47,106,142,.12);
|
|
326
|
+
--hm-amber:#A9481F;
|
|
327
|
+
--hm-amber-soft:rgba(169,72,31,.12);
|
|
328
|
+
--hm-field:#EDF1F5;
|
|
329
|
+
--hm-panel:rgba(249,251,253,.84);
|
|
330
|
+
}
|
|
331
|
+
.hm-boot__field{
|
|
332
|
+
background:
|
|
333
|
+
radial-gradient(80% 64% at 73% 24%,rgba(130,174,201,.22),transparent 66%),
|
|
334
|
+
radial-gradient(60% 48% at 12% 88%,rgba(173,105,66,.08),transparent 68%),
|
|
335
|
+
linear-gradient(180deg,#F4F7FA 0%,#EDF1F5 50%,#E6ECF1 100%);
|
|
336
|
+
}
|
|
337
|
+
.hm-boot__grid{
|
|
338
|
+
background-image:
|
|
339
|
+
linear-gradient(rgba(47,106,142,.075) 1px,transparent 1px),
|
|
340
|
+
linear-gradient(90deg,rgba(47,106,142,.075) 1px,transparent 1px);
|
|
341
|
+
}
|
|
342
|
+
.hm-boot__watermark{opacity:.055}
|
|
343
|
+
.hm-boot__frame{border-color:rgba(47,106,142,.28)}
|
|
344
|
+
.hm-boot__link{background:linear-gradient(180deg,rgba(251,253,255,.90),rgba(239,244,248,.82))}
|
|
345
|
+
.hm-boot__mark{filter:brightness(.72) saturate(.9)}
|
|
346
|
+
.hm-boot__watermark img{filter:invert(1) grayscale(1)}
|
|
347
|
+
[data-dsh-boot]{color:#101820 !important;background:#EDF1F5 !important}
|
|
348
|
+
html body{background:#EDF1F5}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
@media (max-width:980px){
|
|
352
|
+
.hm-boot__bar{padding:14px 16px}
|
|
353
|
+
.hm-boot__unit{display:none}
|
|
354
|
+
.hm-boot__main{grid-template-columns:1fr;gap:28px;padding:24px 34px}
|
|
355
|
+
.hm-boot__link{display:none}
|
|
356
|
+
.hm-boot__title{font-size:clamp(40px,9vw,68px)}
|
|
357
|
+
.hm-boot__foot-mid{display:none}
|
|
358
|
+
}
|
|
359
|
+
@media (max-height:700px){
|
|
360
|
+
.hm-boot__bar{margin:12px 12px 0;padding:12px 14px}
|
|
361
|
+
.hm-boot__main{padding-top:10px;padding-bottom:14px}
|
|
362
|
+
.hm-boot__title{font-size:clamp(38px,5vw,62px)}
|
|
363
|
+
.hm-boot__lead{margin-top:14px;line-height:1.7}
|
|
364
|
+
.hm-boot__ident{margin-top:16px}
|
|
365
|
+
.hm-boot__steps li{min-height:30px}
|
|
366
|
+
.hm-boot__hint{display:none}
|
|
367
|
+
.hm-boot__foot{margin:0 12px 12px;padding:10px 14px}
|
|
368
|
+
}
|
|
369
|
+
@media (prefers-reduced-motion: reduce){
|
|
370
|
+
#hm-boot *,
|
|
371
|
+
#hm-boot *::before,
|
|
372
|
+
#hm-boot *::after{animation:none !important;transition:none !important}
|
|
373
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<div id="hm-boot" data-hm-phase="boot" role="status" aria-live="polite" aria-label="海姆达尔终端正在建立安全链路">
|
|
2
|
+
<div class="hm-boot__field" aria-hidden="true"></div>
|
|
3
|
+
<div class="hm-boot__grid" aria-hidden="true"></div>
|
|
4
|
+
<div class="hm-boot__watermark" aria-hidden="true"><img src="./assets/hm-mark-blue.png" alt=""></div>
|
|
5
|
+
<div class="hm-boot__frame" aria-hidden="true"><i></i><i></i><i></i><i></i></div>
|
|
6
|
+
|
|
7
|
+
<header class="hm-boot__bar">
|
|
8
|
+
<div class="hm-boot__identity">
|
|
9
|
+
<img class="hm-boot__mark" src="./assets/hm-mark-light.png" alt="">
|
|
10
|
+
<span class="hm-boot__org">世界树公司<small>YGGDRASIL CORPORATION</small></span>
|
|
11
|
+
<span class="hm-boot__sep" aria-hidden="true"></span>
|
|
12
|
+
<span class="hm-boot__unit">海姆达尔部队<small>HEIMDALL FORCE · HM-04</small></span>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="hm-boot__meta" aria-label="终端信息">
|
|
15
|
+
<span>DEVICE <b>HM-04</b></span>
|
|
16
|
+
<span>CLEARANCE <b>A</b></span>
|
|
17
|
+
<span class="hm-boot__secure"><i aria-hidden="true"></i>SECURE LINK</span>
|
|
18
|
+
</div>
|
|
19
|
+
</header>
|
|
20
|
+
|
|
21
|
+
<main class="hm-boot__main">
|
|
22
|
+
<section class="hm-boot__copy">
|
|
23
|
+
<div class="hm-boot__kicker"><span aria-hidden="true"></span>ZERO ZONE / 零区战术接入</div>
|
|
24
|
+
<h1 class="hm-boot__title">海姆达尔终端<small>HEIMDALL TACTICAL TERMINAL</small></h1>
|
|
25
|
+
<p class="hm-boot__lead">世界树公司 · 零区接入点。指挥链路与泰坦物质监测阵列正在同步,等待分析员授权。</p>
|
|
26
|
+
<div class="hm-boot__ident">
|
|
27
|
+
<span><i>HOLDER</i><b>ANALYST-04</b></span>
|
|
28
|
+
<span><i>NODE</i><b>零区 · 接入点</b></span>
|
|
29
|
+
<span class="is-accent"><i>STATE</i><b>正在接入</b></span>
|
|
30
|
+
</div>
|
|
31
|
+
</section>
|
|
32
|
+
|
|
33
|
+
<aside class="hm-boot__link" aria-label="链路状态">
|
|
34
|
+
<div class="hm-boot__link-head">
|
|
35
|
+
<span>SECURE LINK</span><span>CH-04 / 01</span>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="hm-boot__rail" aria-hidden="true"><i></i></div>
|
|
38
|
+
<div class="hm-boot__state">
|
|
39
|
+
<span class="hm-boot__pulse" aria-hidden="true"></span>
|
|
40
|
+
<span>正在建立安全链路</span>
|
|
41
|
+
<span class="hm-boot__standby">STANDBY</span>
|
|
42
|
+
</div>
|
|
43
|
+
<ol class="hm-boot__steps">
|
|
44
|
+
<li class="is-current"><span>01</span><b>身份核验</b><em>ANALYST</em></li>
|
|
45
|
+
<li><span>02</span><b>指挥数据链</b><em>LINK</em></li>
|
|
46
|
+
<li><span>03</span><b>泰坦物质监测</b><em>ARRAY</em></li>
|
|
47
|
+
<li><span>04</span><b>权限等级 A</b><em>AUTH</em></li>
|
|
48
|
+
</ol>
|
|
49
|
+
<p class="hm-boot__hint">首次接入或维护后,链路建立可能需要数秒。</p>
|
|
50
|
+
</aside>
|
|
51
|
+
</main>
|
|
52
|
+
|
|
53
|
+
<footer class="hm-boot__foot">
|
|
54
|
+
<span>YGGDRASIL // HEIMDALL</span>
|
|
55
|
+
<span class="hm-boot__foot-mid">CONTAINMENT ZONE · 零区</span>
|
|
56
|
+
<span>ANALYST-04 <i aria-hidden="true"></i> HM-04</span>
|
|
57
|
+
</footer>
|
|
58
|
+
</div>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|