@floegence/floe-webapp-core 0.53.1 → 0.53.2
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/dist/components/file-browser/FileGridView.js +106 -103
- package/dist/components/file-browser/FileIcons.js +200 -200
- package/dist/components/ui/Button.js +1 -1
- package/dist/styles/themes/presets.d.ts +2 -0
- package/dist/styles/themes/presets.js +35 -26
- package/dist/styles.css +1 -1
- package/dist/surface.css +18 -0
- package/dist/themes/shell-presets.generated.css +5 -0
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { createComponent as
|
|
2
|
-
import { Show as
|
|
1
|
+
import { createComponent as i, Dynamic as q, insert as E, effect as k, className as K, setAttribute as c, template as d, setStyleProperty as F } from "solid-js/web";
|
|
2
|
+
import { Show as w, createUniqueId as W } from "solid-js";
|
|
3
3
|
import { classifyArchiveFileName as O } from "./archiveFiles.js";
|
|
4
|
-
var J = /* @__PURE__ */ d('<svg><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></svg>', !1, !0, !1), Q = /* @__PURE__ */ d('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><path fill=none stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline fill=none stroke-width=1.5 stroke-linecap=round stroke-linejoin=round points="14 2 14 8 20 8">'), Z = /* @__PURE__ */ d('<svg><path fill=none stroke=var(--error) stroke-width=1.35 stroke-linecap=round d="M15.9 15.9 20.1 20.1"></svg>', !1, !0, !1), ee = /* @__PURE__ */ d('<svg><g data-file-link-kind=symbolic><circle cx=18 cy=18 r=4 stroke-width=1></circle><path fill=none stroke-width=1.2 stroke-linecap=round stroke-linejoin=round d="M15.8 18h3.4m0 0-1.4-1.4m1.4 1.4-1.4 1.4"></svg>', !1, !0, !1),
|
|
5
|
-
const he = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp", "ico", "bmp"]), Ee = /* @__PURE__ */ new Set(["mp4", "webm", "mov", "m4v", "ogv", "mkv"]), ke = /* @__PURE__ */ new Set(["mp3", "m4a", "aac", "wav", "ogg", "oga", "opus", "flac"]), me = /* @__PURE__ */ new Set(["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "md", "rtf"]), _e = /* @__PURE__ */ new Set(["json", "yaml", "yml", "toml", "xml", "ini", "env", "config", "cfg", "conf", "properties"]), Se = /* @__PURE__ */ new Set(["css", "scss", "sass", "less", "styl"]), pe = /* @__PURE__ */ new Set(["clj", "cljs", "cljc", "coffee", "elm", "erl", "ex", "exs", "haml", "handlebars", "hbs", "heex", "hrl", "jinja", "jinja2", "jl", "lisp", "liquid", "m", "mm", "ml", "mli", "nim", "proto", "slim", "twig", "zig"]),
|
|
6
|
-
warning: "var(--warning)",
|
|
7
|
-
primary: "var(--primary)",
|
|
8
|
-
info: "var(--info)",
|
|
9
|
-
success: "var(--success)",
|
|
10
|
-
error: "var(--error)",
|
|
4
|
+
var J = /* @__PURE__ */ d('<svg><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></svg>', !1, !0, !1), Q = /* @__PURE__ */ d('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><path fill=none stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline fill=none stroke-width=1.5 stroke-linecap=round stroke-linejoin=round points="14 2 14 8 20 8">'), Z = /* @__PURE__ */ d('<svg><path fill=none stroke=var(--error) stroke-width=1.35 stroke-linecap=round d="M15.9 15.9 20.1 20.1"></svg>', !1, !0, !1), ee = /* @__PURE__ */ d('<svg><g data-file-link-kind=symbolic><circle cx=18 cy=18 r=4 stroke-width=1></circle><path fill=none stroke-width=1.2 stroke-linecap=round stroke-linejoin=round d="M15.8 18h3.4m0 0-1.4-1.4m1.4 1.4-1.4 1.4"></svg>', !1, !0, !1), ne = /* @__PURE__ */ d('<svg><path fill=var(--background) opacity=0.3 d="M3 8l4-3h14l-4 3H3z"></svg>', !1, !0, !1), re = /* @__PURE__ */ d('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><defs><linearGradient x1=0% y1=0% x2=0% y2=100%><stop offset=0% style="stop-color:var(--floe-file-icon-warning, var(--warning));stop-opacity:1"></stop><stop offset=100% style=stop-opacity:1></stop></linearGradient></defs><path>'), te = /* @__PURE__ */ d('<svg><g data-file-icon-kind=archive><path d="M10 9.75h4M10 12.25h4M10 14.75h4"fill=none stroke="var(--floe-file-icon-warning, var(--warning))"stroke-width=1.35 stroke-linecap=round></path><rect x=9.25 y=17 width=5.5 height=2.25 rx=0.7 fill="var(--floe-file-icon-warning, var(--warning))"opacity=0.18 stroke="var(--floe-file-icon-warning, var(--warning))"stroke-width=1></svg>', !1, !0, !1), oe = /* @__PURE__ */ d('<svg><path fill=none stroke="var(--floe-file-icon-info, var(--info))"stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="m10 13-2 2 2 2m4-4 2 2-2 2"></svg>', !1, !0, !1), ie = /* @__PURE__ */ d('<svg><g><rect x=5 y=13.5 width=14 height=5.75 rx=1.8 opacity=0.12 stroke-width=1></rect><text x=12 y=17.45 font-weight=700 text-anchor=middle style="font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace"></svg>', !1, !0, !1), le = /* @__PURE__ */ d('<svg><circle cx=10 cy=13 r=2 fill="var(--floe-file-icon-success, var(--success))"></svg>', !1, !0, !1), ae = /* @__PURE__ */ d('<svg><path fill=none stroke="var(--floe-file-icon-success, var(--success))"stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="m20 17-3-3-4 4-2-2-5 3"></svg>', !1, !0, !1), se = /* @__PURE__ */ d('<svg><g data-file-icon-kind=video><rect x=6.75 y=12 width=10.5 height=6.25 rx=1.5 fill="color-mix(in srgb, #8b5cf6 86%, var(--foreground))"opacity=0.14 stroke="color-mix(in srgb, #8b5cf6 86%, var(--foreground))"stroke-width=1.2></rect><path fill="color-mix(in srgb, #8b5cf6 86%, var(--foreground))"d="M10.75 13.7v2.85a.45.45 0 0 0 .68.39l2.45-1.43a.45.45 0 0 0 0-.78l-2.45-1.42a.45.45 0 0 0-.68.39z"></path><line x1=8 y1=19.5 x2=16 y2=19.5 stroke="color-mix(in srgb, #8b5cf6 86%, var(--foreground))"stroke-width=1.2 stroke-linecap=round opacity=0.72></svg>', !1, !0, !1), ce = /* @__PURE__ */ d('<svg><g data-file-icon-kind=audio><path fill=none stroke="var(--floe-file-icon-info, var(--info))"stroke-width=1.45 stroke-linecap=round stroke-linejoin=round d="M9 16.25v-5.2l5.5-1.15v5.15"></path><ellipse cx=8.2 cy=17.2 rx=1.75 ry=1.25 fill="var(--floe-file-icon-info, var(--info))"opacity=0.2 stroke="var(--floe-file-icon-info, var(--info))"stroke-width=1.1></ellipse><ellipse cx=13.7 cy=16 rx=1.75 ry=1.25 fill="var(--floe-file-icon-info, var(--info))"opacity=0.2 stroke="var(--floe-file-icon-info, var(--info))"stroke-width=1.1></svg>', !1, !0, !1), fe = /* @__PURE__ */ d('<svg><line x1=8 y1=13 x2=16 y2=13 stroke="var(--floe-file-icon-error, var(--error))"stroke-width=1.5 stroke-linecap=round></svg>', !1, !0, !1), ge = /* @__PURE__ */ d('<svg><line x1=8 y1=17 x2=14 y2=17 stroke="var(--floe-file-icon-error, var(--error))"stroke-width=1.5 stroke-linecap=round></svg>', !1, !0, !1), de = /* @__PURE__ */ d('<svg><path fill=none stroke="var(--floe-file-icon-warning, var(--warning))"stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M10 12v4h2m-2-4h2l2 4"></svg>', !1, !0, !1), ve = /* @__PURE__ */ d('<svg><path fill=none stroke="var(--floe-file-icon-primary, var(--primary))"stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M9 14h6m-3-3v6"></svg>', !1, !0, !1), ue = /* @__PURE__ */ d("<span>");
|
|
5
|
+
const he = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp", "ico", "bmp"]), Ee = /* @__PURE__ */ new Set(["mp4", "webm", "mov", "m4v", "ogv", "mkv"]), ke = /* @__PURE__ */ new Set(["mp3", "m4a", "aac", "wav", "ogg", "oga", "opus", "flac"]), me = /* @__PURE__ */ new Set(["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "md", "rtf"]), _e = /* @__PURE__ */ new Set(["json", "yaml", "yml", "toml", "xml", "ini", "env", "config", "cfg", "conf", "properties"]), Se = /* @__PURE__ */ new Set(["css", "scss", "sass", "less", "styl"]), pe = /* @__PURE__ */ new Set(["clj", "cljs", "cljc", "coffee", "elm", "erl", "ex", "exs", "haml", "handlebars", "hbs", "heex", "hrl", "jinja", "jinja2", "jl", "lisp", "liquid", "m", "mm", "ml", "mli", "nim", "proto", "slim", "twig", "zig"]), ye = "color-mix(in srgb, #8b5cf6 86%, var(--foreground))", be = {
|
|
6
|
+
warning: "var(--floe-file-icon-warning, var(--warning))",
|
|
7
|
+
primary: "var(--floe-file-icon-primary, var(--primary))",
|
|
8
|
+
info: "var(--floe-file-icon-info, var(--info))",
|
|
9
|
+
success: "var(--floe-file-icon-success, var(--success))",
|
|
10
|
+
error: "var(--floe-file-icon-error, var(--error))",
|
|
11
11
|
neutral: "color-mix(in srgb, var(--foreground) 70%, var(--background))"
|
|
12
12
|
}, M = {
|
|
13
13
|
label: "JS",
|
|
@@ -18,16 +18,16 @@ const he = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp",
|
|
|
18
18
|
}, A = {
|
|
19
19
|
label: "SH",
|
|
20
20
|
tone: "success"
|
|
21
|
-
},
|
|
21
|
+
}, we = {
|
|
22
22
|
label: "PY",
|
|
23
23
|
tone: "info"
|
|
24
24
|
}, N = {
|
|
25
25
|
label: "RB",
|
|
26
26
|
tone: "error"
|
|
27
|
-
},
|
|
27
|
+
}, Ce = {
|
|
28
28
|
label: "GO",
|
|
29
29
|
tone: "info"
|
|
30
|
-
},
|
|
30
|
+
}, xe = {
|
|
31
31
|
label: "RS",
|
|
32
32
|
tone: "error"
|
|
33
33
|
}, Ae = {
|
|
@@ -93,7 +93,7 @@ const he = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp",
|
|
|
93
93
|
}, Ue = {
|
|
94
94
|
label: "MDX",
|
|
95
95
|
tone: "primary"
|
|
96
|
-
},
|
|
96
|
+
}, x = {
|
|
97
97
|
label: "DKR",
|
|
98
98
|
tone: "info"
|
|
99
99
|
}, Ye = {
|
|
@@ -109,162 +109,162 @@ const he = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp",
|
|
|
109
109
|
label: "BAT",
|
|
110
110
|
tone: "neutral"
|
|
111
111
|
}, B = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map();
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
m(
|
|
112
|
+
t(M, ["js", "jsx", "mjs", "cjs"]);
|
|
113
|
+
t(L, ["ts", "tsx", "mts", "cts"]);
|
|
114
|
+
t(A, ["sh", "bash", "zsh", "fish", "ksh", "csh"]);
|
|
115
|
+
t(we, ["py", "pyi", "pyw"]);
|
|
116
|
+
t(N, ["rb", "rake", "gemspec", "erb"]);
|
|
117
|
+
t(Ce, ["go"]);
|
|
118
|
+
t(xe, ["rs"]);
|
|
119
|
+
t(Ae, ["java"]);
|
|
120
|
+
t(Be, ["kt", "kts"]);
|
|
121
|
+
t(Te, ["scala", "sc"]);
|
|
122
|
+
t(Ie, ["c", "h"]);
|
|
123
|
+
t(De, ["cc", "cp", "cpp", "cxx", "hh", "hpp", "hxx"]);
|
|
124
|
+
t(Pe, ["cs"]);
|
|
125
|
+
t(Ge, ["fs", "fsi", "fsx"]);
|
|
126
|
+
t(Fe, ["php", "phtml"]);
|
|
127
|
+
t(Oe, ["pl", "pm"]);
|
|
128
|
+
t(Me, ["swift"]);
|
|
129
|
+
t(Le, ["lua"]);
|
|
130
|
+
t(Ne, ["dart"]);
|
|
131
|
+
t(je, ["r"]);
|
|
132
|
+
t(Re, ["sql"]);
|
|
133
|
+
t(ze, ["graphql", "gql"]);
|
|
134
|
+
t(j, ["groovy", "gradle", "gvy"]);
|
|
135
|
+
t($e, ["html", "htm", "xhtml"]);
|
|
136
|
+
t(He, ["vue"]);
|
|
137
|
+
t(Ve, ["svelte"]);
|
|
138
|
+
t(Xe, ["astro"]);
|
|
139
|
+
t(Ue, ["mdx"]);
|
|
140
|
+
t(qe, ["ps1", "psd1", "psm1"]);
|
|
141
|
+
t(Ke, ["bat", "cmd"]);
|
|
142
|
+
t(x, ["dockerfile", "containerfile"]);
|
|
143
|
+
t(R, ["cmake"]);
|
|
144
|
+
m(x, ["dockerfile", "containerfile"]);
|
|
145
145
|
m(Ye, ["makefile", "gnumakefile", "justfile"]);
|
|
146
146
|
m(R, ["cmakelists.txt"]);
|
|
147
147
|
m(A, [".bashrc", ".bash_profile", ".bash_aliases", ".profile", ".zshrc", ".zprofile", ".zshenv", ".zlogin", ".zlogout", ".kshrc", ".cshrc", ".tcshrc", ".envrc"]);
|
|
148
148
|
m(N, ["gemfile", "rakefile", "podfile", "fastfile", "appfile", "brewfile", "vagrantfile"]);
|
|
149
149
|
m(j, ["jenkinsfile"]);
|
|
150
|
-
We(
|
|
151
|
-
Je(
|
|
152
|
-
function
|
|
153
|
-
for (const
|
|
154
|
-
B.set(
|
|
150
|
+
We(x, ["dockerfile.", "containerfile."]);
|
|
151
|
+
Je(x, [".dockerfile", ".containerfile"]);
|
|
152
|
+
function t(e, n) {
|
|
153
|
+
for (const r of n)
|
|
154
|
+
B.set(r, e);
|
|
155
155
|
}
|
|
156
|
-
function m(e,
|
|
157
|
-
for (const
|
|
158
|
-
z.set(
|
|
156
|
+
function m(e, n) {
|
|
157
|
+
for (const r of n)
|
|
158
|
+
z.set(r, e);
|
|
159
159
|
}
|
|
160
|
-
function We(e,
|
|
161
|
-
for (const
|
|
162
|
-
$.set(
|
|
160
|
+
function We(e, n) {
|
|
161
|
+
for (const r of n)
|
|
162
|
+
$.set(r, e);
|
|
163
163
|
}
|
|
164
|
-
function Je(e,
|
|
165
|
-
for (const
|
|
166
|
-
H.set(
|
|
164
|
+
function Je(e, n) {
|
|
165
|
+
for (const r of n)
|
|
166
|
+
H.set(r, e);
|
|
167
167
|
}
|
|
168
168
|
function V(e) {
|
|
169
|
-
const
|
|
170
|
-
if (
|
|
171
|
-
return
|
|
169
|
+
const n = e?.trim().toLowerCase();
|
|
170
|
+
if (n)
|
|
171
|
+
return n.startsWith(".") ? n.slice(1) : n;
|
|
172
172
|
}
|
|
173
173
|
function X(e) {
|
|
174
|
-
const
|
|
175
|
-
if (!
|
|
174
|
+
const n = e?.trim();
|
|
175
|
+
if (!n)
|
|
176
176
|
return;
|
|
177
|
-
const
|
|
178
|
-
return
|
|
177
|
+
const r = n.split(/[\\/]/);
|
|
178
|
+
return r[r.length - 1]?.toLowerCase();
|
|
179
179
|
}
|
|
180
180
|
function Qe(e) {
|
|
181
|
-
const
|
|
182
|
-
if (!
|
|
181
|
+
const n = X(e);
|
|
182
|
+
if (!n)
|
|
183
183
|
return;
|
|
184
|
-
const
|
|
185
|
-
if (!(
|
|
186
|
-
return
|
|
184
|
+
const r = n.lastIndexOf(".");
|
|
185
|
+
if (!(r <= 0 || r === n.length - 1))
|
|
186
|
+
return n.slice(r + 1);
|
|
187
187
|
}
|
|
188
188
|
function U(e) {
|
|
189
189
|
return V(e.extension) ?? Qe(e.name);
|
|
190
190
|
}
|
|
191
191
|
function Ze(e) {
|
|
192
|
-
const
|
|
193
|
-
if (
|
|
194
|
-
const g = z.get(
|
|
192
|
+
const n = X(e.name);
|
|
193
|
+
if (n) {
|
|
194
|
+
const g = z.get(n);
|
|
195
195
|
if (g)
|
|
196
196
|
return g;
|
|
197
197
|
for (const [f, o] of $)
|
|
198
|
-
if (
|
|
198
|
+
if (n.startsWith(f))
|
|
199
199
|
return o;
|
|
200
200
|
for (const [f, o] of H)
|
|
201
|
-
if (
|
|
201
|
+
if (n.endsWith(f))
|
|
202
202
|
return o;
|
|
203
203
|
}
|
|
204
|
-
const
|
|
205
|
-
return
|
|
204
|
+
const r = U(e);
|
|
205
|
+
return r ? B.get(r) : void 0;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function en(e) {
|
|
208
208
|
return e.length <= 2 ? "6.2" : e.length === 3 ? "5.3" : e.length === 4 ? "4.5" : "4";
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
return (
|
|
210
|
+
function nn(e) {
|
|
211
|
+
return (n) => i(vn, {
|
|
212
212
|
get class() {
|
|
213
|
-
return
|
|
213
|
+
return n.class;
|
|
214
214
|
},
|
|
215
215
|
spec: e
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
const
|
|
220
|
-
if (
|
|
221
|
-
return
|
|
222
|
-
const g =
|
|
223
|
-
return G.set(
|
|
218
|
+
function C(e) {
|
|
219
|
+
const n = `${e.tone}:${e.label}`, r = G.get(n);
|
|
220
|
+
if (r)
|
|
221
|
+
return r;
|
|
222
|
+
const g = nn(e);
|
|
223
|
+
return G.set(n, g), g;
|
|
224
224
|
}
|
|
225
|
-
const
|
|
226
|
-
const
|
|
225
|
+
const u = (e) => {
|
|
226
|
+
const n = () => e.accent ?? "currentColor";
|
|
227
227
|
return (() => {
|
|
228
|
-
var
|
|
229
|
-
return E(
|
|
228
|
+
var r = Q(), g = r.firstChild, f = g.nextSibling;
|
|
229
|
+
return E(r, i(w, {
|
|
230
230
|
get when() {
|
|
231
231
|
return e.accent;
|
|
232
232
|
},
|
|
233
233
|
get children() {
|
|
234
234
|
var o = J();
|
|
235
|
-
return k((
|
|
236
|
-
var
|
|
237
|
-
return
|
|
235
|
+
return k((l) => {
|
|
236
|
+
var a = n(), v = e.fillOpacity ?? 0.18;
|
|
237
|
+
return a !== l.e && c(o, "fill", l.e = a), v !== l.t && c(o, "opacity", l.t = v), l;
|
|
238
238
|
}, {
|
|
239
239
|
e: void 0,
|
|
240
240
|
t: void 0
|
|
241
241
|
}), o;
|
|
242
242
|
}
|
|
243
|
-
}), g), E(
|
|
244
|
-
var
|
|
245
|
-
return
|
|
243
|
+
}), g), E(r, () => e.children, null), k((o) => {
|
|
244
|
+
var l = e.class, a = e.linkTargetType ? "symbolic" : void 0, v = e.linkTargetType, h = n(), s = n();
|
|
245
|
+
return l !== o.e && c(r, "class", o.e = l), a !== o.t && c(r, "data-file-link-kind", o.t = a), v !== o.a && c(r, "data-file-link-target-type", o.a = v), h !== o.o && c(g, "stroke", o.o = h), s !== o.i && c(f, "stroke", o.i = s), o;
|
|
246
246
|
}, {
|
|
247
247
|
e: void 0,
|
|
248
248
|
t: void 0,
|
|
249
249
|
a: void 0,
|
|
250
250
|
o: void 0,
|
|
251
251
|
i: void 0
|
|
252
|
-
}),
|
|
252
|
+
}), r;
|
|
253
253
|
})();
|
|
254
254
|
}, T = (e) => {
|
|
255
|
-
const
|
|
255
|
+
const n = () => e.targetType === "broken" ? "var(--error)" : "color-mix(in srgb, var(--foreground) 82%, var(--background))", r = () => e.targetType === "broken" ? "color-mix(in srgb, var(--error) 18%, var(--background))" : "color-mix(in srgb, var(--background) 92%, var(--foreground) 8%)";
|
|
256
256
|
return (() => {
|
|
257
257
|
var g = ee(), f = g.firstChild, o = f.nextSibling;
|
|
258
|
-
return E(g,
|
|
258
|
+
return E(g, i(w, {
|
|
259
259
|
get when() {
|
|
260
260
|
return e.targetType === "broken";
|
|
261
261
|
},
|
|
262
262
|
get children() {
|
|
263
263
|
return Z();
|
|
264
264
|
}
|
|
265
|
-
}), null), k((
|
|
266
|
-
var
|
|
267
|
-
return
|
|
265
|
+
}), null), k((l) => {
|
|
266
|
+
var a = e.targetType, v = r(), h = n(), s = n();
|
|
267
|
+
return a !== l.e && c(g, "data-file-link-target-type", l.e = a), v !== l.t && c(f, "fill", l.t = v), h !== l.a && c(f, "stroke", l.a = h), s !== l.o && c(o, "stroke", l.o = s), l;
|
|
268
268
|
}, {
|
|
269
269
|
e: void 0,
|
|
270
270
|
t: void 0,
|
|
@@ -273,30 +273,30 @@ const v = (e) => {
|
|
|
273
273
|
}), g;
|
|
274
274
|
})();
|
|
275
275
|
}, _ = (e) => {
|
|
276
|
-
const
|
|
276
|
+
const n = W(), r = () => !!e.open, g = () => `${r() ? "floe-folder-open-gradient" : "floe-folder-gradient"}-${n}`;
|
|
277
277
|
return (() => {
|
|
278
|
-
var f =
|
|
279
|
-
return E(f,
|
|
278
|
+
var f = re(), o = f.firstChild, l = o.firstChild, a = l.firstChild, v = a.nextSibling, h = o.nextSibling;
|
|
279
|
+
return E(f, i(w, {
|
|
280
280
|
get when() {
|
|
281
|
-
return
|
|
281
|
+
return r();
|
|
282
282
|
},
|
|
283
283
|
get children() {
|
|
284
|
-
return
|
|
284
|
+
return ne();
|
|
285
285
|
}
|
|
286
|
-
}), null), E(f,
|
|
286
|
+
}), null), E(f, i(w, {
|
|
287
287
|
get when() {
|
|
288
288
|
return e.linkTargetType;
|
|
289
289
|
},
|
|
290
290
|
get children() {
|
|
291
|
-
return
|
|
291
|
+
return i(T, {
|
|
292
292
|
get targetType() {
|
|
293
293
|
return e.linkTargetType;
|
|
294
294
|
}
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
|
-
}), null), k((
|
|
298
|
-
var S = e.class, p = e.linkTargetType ? "symbolic" : void 0,
|
|
299
|
-
return S !==
|
|
297
|
+
}), null), k((s) => {
|
|
298
|
+
var S = e.class, p = e.linkTargetType ? "symbolic" : void 0, y = e.linkTargetType, b = g(), I = r() ? "color-mix(in srgb, var(--floe-file-icon-warning, var(--warning)) 70%, var(--foreground))" : "color-mix(in srgb, var(--floe-file-icon-warning, var(--warning)) 80%, var(--foreground))", D = `url(#${g()})`, P = r() ? "M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V7.414A2 2 0 0 0 20.414 6L18 3.586A2 2 0 0 0 16.586 3H5zm4 2h7.586L19 7.414V17H5V5h4z" : "M3 5a2 2 0 0 1 2-2h4.586a1 1 0 0 1 .707.293L12 5h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5z";
|
|
299
|
+
return S !== s.e && c(f, "class", s.e = S), p !== s.t && c(f, "data-file-link-kind", s.t = p), y !== s.a && c(f, "data-file-link-target-type", s.a = y), b !== s.o && c(l, "id", s.o = b), I !== s.i && F(v, "stop-color", s.i = I), D !== s.n && c(h, "fill", s.n = D), P !== s.s && c(h, "d", s.s = P), s;
|
|
300
300
|
}, {
|
|
301
301
|
e: void 0,
|
|
302
302
|
t: void 0,
|
|
@@ -307,92 +307,92 @@ const v = (e) => {
|
|
|
307
307
|
s: void 0
|
|
308
308
|
}), f;
|
|
309
309
|
})();
|
|
310
|
-
},
|
|
310
|
+
}, rn = (e) => i(_, {
|
|
311
311
|
get class() {
|
|
312
312
|
return e.class;
|
|
313
313
|
}
|
|
314
|
-
}),
|
|
314
|
+
}), tn = (e) => i(_, {
|
|
315
315
|
get class() {
|
|
316
316
|
return e.class;
|
|
317
317
|
},
|
|
318
318
|
open: !0
|
|
319
|
-
}),
|
|
319
|
+
}), on = (e) => i(_, {
|
|
320
320
|
get class() {
|
|
321
321
|
return e.class;
|
|
322
322
|
},
|
|
323
323
|
linkTargetType: "folder"
|
|
324
|
-
}),
|
|
324
|
+
}), ln = (e) => i(_, {
|
|
325
325
|
get class() {
|
|
326
326
|
return e.class;
|
|
327
327
|
},
|
|
328
328
|
open: !0,
|
|
329
329
|
linkTargetType: "folder"
|
|
330
|
-
}),
|
|
330
|
+
}), an = (e) => i(_, {
|
|
331
331
|
get class() {
|
|
332
332
|
return e.class;
|
|
333
333
|
},
|
|
334
334
|
linkTargetType: "broken"
|
|
335
|
-
}),
|
|
335
|
+
}), sn = (e) => i(_, {
|
|
336
336
|
get class() {
|
|
337
337
|
return e.class;
|
|
338
338
|
},
|
|
339
339
|
open: !0,
|
|
340
340
|
linkTargetType: "broken"
|
|
341
|
-
}),
|
|
341
|
+
}), cn = (e) => i(u, {
|
|
342
342
|
get class() {
|
|
343
343
|
return e.class;
|
|
344
344
|
}
|
|
345
|
-
}),
|
|
345
|
+
}), fn = (e) => i(u, {
|
|
346
346
|
get class() {
|
|
347
347
|
return e.class;
|
|
348
348
|
},
|
|
349
349
|
linkTargetType: "file",
|
|
350
350
|
get children() {
|
|
351
|
-
return
|
|
351
|
+
return i(T, {
|
|
352
352
|
targetType: "file"
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
-
}),
|
|
355
|
+
}), gn = (e) => i(u, {
|
|
356
356
|
get class() {
|
|
357
357
|
return e.class;
|
|
358
358
|
},
|
|
359
359
|
accent: "var(--muted-foreground)",
|
|
360
360
|
linkTargetType: "broken",
|
|
361
361
|
get children() {
|
|
362
|
-
return
|
|
362
|
+
return i(T, {
|
|
363
363
|
targetType: "broken"
|
|
364
364
|
});
|
|
365
365
|
}
|
|
366
|
-
}), Y = (e) =>
|
|
366
|
+
}), Y = (e) => i(u, {
|
|
367
367
|
get class() {
|
|
368
368
|
return e.class;
|
|
369
369
|
},
|
|
370
|
-
accent: "var(--warning)",
|
|
370
|
+
accent: "var(--floe-file-icon-warning, var(--warning))",
|
|
371
371
|
get children() {
|
|
372
|
-
return
|
|
372
|
+
return te();
|
|
373
373
|
}
|
|
374
|
-
}),
|
|
374
|
+
}), dn = (e) => i(u, {
|
|
375
375
|
get class() {
|
|
376
376
|
return e.class;
|
|
377
377
|
},
|
|
378
|
-
accent: "var(--info)",
|
|
378
|
+
accent: "var(--floe-file-icon-info, var(--info))",
|
|
379
379
|
get children() {
|
|
380
380
|
return oe();
|
|
381
381
|
}
|
|
382
|
-
}),
|
|
383
|
-
const
|
|
384
|
-
return
|
|
382
|
+
}), vn = (e) => {
|
|
383
|
+
const n = () => be[e.spec.tone], r = () => en(e.spec.label), g = () => e.spec.label.length > 3 ? "0.02em" : "0.04em";
|
|
384
|
+
return i(u, {
|
|
385
385
|
get class() {
|
|
386
386
|
return e.class;
|
|
387
387
|
},
|
|
388
388
|
get accent() {
|
|
389
|
-
return
|
|
389
|
+
return n();
|
|
390
390
|
},
|
|
391
391
|
get children() {
|
|
392
|
-
var f =
|
|
393
|
-
return E(
|
|
394
|
-
var
|
|
395
|
-
return
|
|
392
|
+
var f = ie(), o = f.firstChild, l = o.nextSibling;
|
|
393
|
+
return E(l, () => e.spec.label), k((a) => {
|
|
394
|
+
var v = e.spec.label, h = e.spec.tone, s = n(), S = n(), p = n(), y = r(), b = g();
|
|
395
|
+
return v !== a.e && c(f, "data-code-badge-label", a.e = v), h !== a.t && c(f, "data-code-badge-tone", a.t = h), s !== a.a && c(o, "fill", a.a = s), S !== a.o && c(o, "stroke", a.o = S), p !== a.i && c(l, "fill", a.i = p), y !== a.n && c(l, "font-size", a.n = y), b !== a.s && F(l, "letter-spacing", a.s = b), a;
|
|
396
396
|
}, {
|
|
397
397
|
e: void 0,
|
|
398
398
|
t: void 0,
|
|
@@ -404,103 +404,103 @@ const v = (e) => {
|
|
|
404
404
|
}), f;
|
|
405
405
|
}
|
|
406
406
|
});
|
|
407
|
-
},
|
|
407
|
+
}, xn = C(M), An = C(L), Bn = C(A), un = (e) => i(u, {
|
|
408
408
|
get class() {
|
|
409
409
|
return e.class;
|
|
410
410
|
},
|
|
411
|
-
accent: "var(--success)",
|
|
411
|
+
accent: "var(--floe-file-icon-success, var(--success))",
|
|
412
412
|
get children() {
|
|
413
|
-
return [
|
|
413
|
+
return [le(), ae()];
|
|
414
414
|
}
|
|
415
|
-
}),
|
|
415
|
+
}), hn = (e) => i(u, {
|
|
416
416
|
get class() {
|
|
417
417
|
return e.class;
|
|
418
418
|
},
|
|
419
|
-
accent:
|
|
419
|
+
accent: ye,
|
|
420
420
|
get children() {
|
|
421
|
-
var
|
|
422
|
-
return g.nextSibling,
|
|
421
|
+
var n = se(), r = n.firstChild, g = r.nextSibling;
|
|
422
|
+
return g.nextSibling, n;
|
|
423
423
|
}
|
|
424
|
-
}),
|
|
424
|
+
}), En = (e) => i(u, {
|
|
425
425
|
get class() {
|
|
426
426
|
return e.class;
|
|
427
427
|
},
|
|
428
|
-
accent: "var(--info)",
|
|
428
|
+
accent: "var(--floe-file-icon-info, var(--info))",
|
|
429
429
|
get children() {
|
|
430
430
|
return ce();
|
|
431
431
|
}
|
|
432
|
-
}),
|
|
432
|
+
}), kn = (e) => i(u, {
|
|
433
433
|
get class() {
|
|
434
434
|
return e.class;
|
|
435
435
|
},
|
|
436
|
-
accent: "var(--error)",
|
|
436
|
+
accent: "var(--floe-file-icon-error, var(--error))",
|
|
437
437
|
get children() {
|
|
438
438
|
return [fe(), ge()];
|
|
439
439
|
}
|
|
440
|
-
}),
|
|
440
|
+
}), mn = (e) => i(u, {
|
|
441
441
|
get class() {
|
|
442
442
|
return e.class;
|
|
443
443
|
},
|
|
444
|
-
accent: "var(--warning)",
|
|
444
|
+
accent: "var(--floe-file-icon-warning, var(--warning))",
|
|
445
445
|
get children() {
|
|
446
446
|
return de();
|
|
447
447
|
}
|
|
448
|
-
}),
|
|
448
|
+
}), _n = (e) => i(u, {
|
|
449
449
|
get class() {
|
|
450
450
|
return e.class;
|
|
451
451
|
},
|
|
452
|
-
accent: "var(--primary)",
|
|
452
|
+
accent: "var(--floe-file-icon-primary, var(--primary))",
|
|
453
453
|
get children() {
|
|
454
|
-
return
|
|
454
|
+
return ve();
|
|
455
455
|
}
|
|
456
456
|
});
|
|
457
|
-
function
|
|
458
|
-
const
|
|
459
|
-
if (
|
|
457
|
+
function Sn(e) {
|
|
458
|
+
const n = V(e);
|
|
459
|
+
if (n && O(`file.${n}`))
|
|
460
460
|
return Y;
|
|
461
|
-
if (
|
|
462
|
-
const
|
|
463
|
-
if (
|
|
464
|
-
return
|
|
461
|
+
if (n) {
|
|
462
|
+
const r = B.get(n);
|
|
463
|
+
if (r)
|
|
464
|
+
return C(r);
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return n && pe.has(n) ? dn : n && he.has(n) ? un : n && Ee.has(n) ? hn : n && ke.has(n) ? En : n && me.has(n) ? kn : n && _e.has(n) ? mn : n && Se.has(n) ? _n : cn;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
const
|
|
470
|
-
return
|
|
468
|
+
function pn(e, n) {
|
|
469
|
+
const r = e.link?.kind === "symbolic" ? e.link.targetType : void 0;
|
|
470
|
+
return r === "broken" ? n.open ? sn : an : r ? n.open ? ln : on : n.open ? tn : rn;
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function yn(e, n = {}) {
|
|
473
473
|
if (e.icon)
|
|
474
474
|
return e.icon;
|
|
475
475
|
if (e.type === "folder")
|
|
476
|
-
return
|
|
476
|
+
return pn(e, n);
|
|
477
477
|
if (e.link?.kind === "symbolic" && e.link.targetType === "broken")
|
|
478
|
-
return
|
|
478
|
+
return gn;
|
|
479
479
|
if (e.link?.kind === "symbolic")
|
|
480
|
-
return
|
|
480
|
+
return fn;
|
|
481
481
|
if (O(e.name))
|
|
482
482
|
return Y;
|
|
483
|
-
const
|
|
484
|
-
return
|
|
483
|
+
const r = Ze(e);
|
|
484
|
+
return r ? C(r) : Sn(U(e));
|
|
485
485
|
}
|
|
486
|
-
function
|
|
487
|
-
const
|
|
486
|
+
function Tn(e) {
|
|
487
|
+
const n = () => yn(e.item, {
|
|
488
488
|
open: e.open
|
|
489
489
|
});
|
|
490
|
-
return
|
|
490
|
+
return i(w, {
|
|
491
491
|
get when() {
|
|
492
|
-
return typeof
|
|
492
|
+
return typeof n() == "function";
|
|
493
493
|
},
|
|
494
494
|
get fallback() {
|
|
495
495
|
return (() => {
|
|
496
|
-
var
|
|
497
|
-
return E(
|
|
496
|
+
var r = ue();
|
|
497
|
+
return E(r, () => n()), k(() => K(r, `inline-flex items-center justify-center ${e.class ?? ""}`.trim())), r;
|
|
498
498
|
})();
|
|
499
499
|
},
|
|
500
500
|
get children() {
|
|
501
|
-
return
|
|
501
|
+
return i(q, {
|
|
502
502
|
get component() {
|
|
503
|
-
return
|
|
503
|
+
return n();
|
|
504
504
|
},
|
|
505
505
|
get class() {
|
|
506
506
|
return e.class;
|
|
@@ -511,24 +511,24 @@ function Bt(e) {
|
|
|
511
511
|
}
|
|
512
512
|
export {
|
|
513
513
|
Y as ArchiveFileIcon,
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
514
|
+
En as AudioFileIcon,
|
|
515
|
+
gn as BrokenSymlinkIcon,
|
|
516
|
+
dn as CodeFileIcon,
|
|
517
|
+
mn as ConfigFileIcon,
|
|
518
|
+
kn as DocumentFileIcon,
|
|
519
|
+
cn as FileIcon,
|
|
520
|
+
Tn as FileItemIcon,
|
|
521
|
+
rn as FolderIcon,
|
|
522
|
+
tn as FolderOpenIcon,
|
|
523
|
+
un as ImageFileIcon,
|
|
524
|
+
xn as JavaScriptFileIcon,
|
|
525
|
+
Bn as ShellScriptFileIcon,
|
|
526
|
+
_n as StyleFileIcon,
|
|
527
|
+
fn as SymlinkFileIcon,
|
|
528
|
+
on as SymlinkFolderIcon,
|
|
529
|
+
ln as SymlinkFolderOpenIcon,
|
|
530
|
+
An as TypeScriptFileIcon,
|
|
531
|
+
hn as VideoFileIcon,
|
|
532
|
+
Sn as getFileIcon,
|
|
533
|
+
yn as resolveFileItemIcon
|
|
534
534
|
};
|