-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit.html
More file actions
129 lines (128 loc) · 3.67 KB
/
Copy pathedit.html
File metadata and controls
129 lines (128 loc) · 3.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- The real title is set by open_edit_window from the instance name; this is
only what shows before the window paints. -->
<title>agentLauncher</title>
<!-- The same launch screen as index.html, for the same reason: this window also
waits on the launcher config before mounting, and a newly opened editor
window is where a hard cut is most visible. The four jobs it does are
explained in index.html; keep the two in step. -->
<script>
(function () {
var fallback = "220 12% 5%|220 12% 86%|216 52% 52%";
var raw;
try {
raw = localStorage.getItem("agentlauncher.paint") || fallback;
} catch (e) {
raw = fallback;
}
var c = raw.split("|");
var s = document.documentElement.style;
s.setProperty("--background", c[0]);
s.setProperty("--foreground", c[1]);
s.setProperty("--primary", c[2]);
})();
</script>
<style>
html,
body,
#app {
height: 100%;
margin: 0;
}
body {
background-color: hsl(var(--background, 220 12% 5%));
}
#app {
opacity: 0;
}
#app.ready {
opacity: 1;
animation: boot-app-in 0.22s ease-out;
}
#boot {
position: fixed;
inset: 0;
z-index: 9;
display: flex;
align-items: center;
justify-content: center;
background-color: hsl(var(--background, 220 12% 5%));
transition: opacity 0.2s ease;
}
#boot.done {
opacity: 0;
pointer-events: none;
}
.boot-wrap {
display: flex;
flex-direction: column;
align-items: center;
gap: 13px;
font-family: "Adwaita Sans", Inter, "Segoe UI", "Noto Sans SC", sans-serif;
font-weight: 500;
}
.boot-name {
font-size: 12px;
font-weight: 600;
letter-spacing: 0.2em;
text-transform: uppercase;
color: hsl(var(--foreground, 220 12% 86%) / 0.7);
}
.boot-bar {
width: 300px;
height: 10px;
overflow: hidden;
background: hsl(var(--foreground, 220 12% 86%) / 0.07);
box-shadow: inset 0 0 0 1px hsl(var(--foreground, 220 12% 86%) / 0.13);
}
.boot-bar span {
display: block;
width: 7%;
height: 100%;
background-image: repeating-linear-gradient(
-45deg,
hsl(var(--primary, 216 52% 52%)) 0 6px,
hsl(var(--primary, 216 52% 52%) / 0.5) 6px 12px
);
box-shadow: 0 0 10px hsl(var(--primary, 216 52% 52%) / 0.55);
animation: boot-stripe 0.55s linear infinite;
transition: width 0.38s cubic-bezier(0.22, 0.68, 0.3, 1);
}
.boot-msg {
min-height: 1.2em;
font-size: 12px;
color: hsl(var(--foreground, 220 12% 86%) / 0.45);
}
@keyframes boot-stripe {
to {
background-position: 16.97px 0;
}
}
@keyframes boot-app-in {
from {
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.boot-bar span {
animation: none;
}
}
</style>
</head>
<body>
<div id="app"></div>
<div id="boot">
<div class="boot-wrap">
<div class="boot-name">agentLauncher</div>
<div class="boot-bar"><span id="boot-fill"></span></div>
<div class="boot-msg" id="boot-msg"></div>
</div>
</div>
<script type="module" src="/src/edit.ts"></script>
</body>
</html>