pankosmia-rcl 0.1.50 → 0.2.1
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.
|
@@ -48083,7 +48083,7 @@ function g2({
|
|
|
48083
48083
|
const i = () => {
|
|
48084
48084
|
n(!1), e();
|
|
48085
48085
|
}, l = () => {
|
|
48086
|
-
Ne.postEmptyJson("/net/enable", a.current);
|
|
48086
|
+
Ne.postEmptyJson("/api/net/enable", a.current);
|
|
48087
48087
|
};
|
|
48088
48088
|
return /* @__PURE__ */ m.jsxs(
|
|
48089
48089
|
Gl,
|
|
@@ -48116,7 +48116,7 @@ function g2({
|
|
|
48116
48116
|
}
|
|
48117
48117
|
function hx({ i18n: e, netEnabled: o, debug: n = !1 }) {
|
|
48118
48118
|
const [r, a] = Xe(!1), s = () => {
|
|
48119
|
-
Ne.postEmptyJson("/net/disable", n);
|
|
48119
|
+
Ne.postEmptyJson("/api/net/disable", n);
|
|
48120
48120
|
}, i = () => {
|
|
48121
48121
|
o ? s() : a(!0);
|
|
48122
48122
|
};
|
|
@@ -48151,7 +48151,7 @@ function G2({ i18n: e, netEnabled: o, debug: n }) {
|
|
|
48151
48151
|
const [r, a] = Xe(!1), [s, i] = Xe(!1), [l, c] = Xe([]);
|
|
48152
48152
|
ht(() => {
|
|
48153
48153
|
(async () => {
|
|
48154
|
-
const f = await Ne.getJson("/list-clients", n);
|
|
48154
|
+
const f = await Ne.getJson("/api/list-clients", n);
|
|
48155
48155
|
f.ok && c(
|
|
48156
48156
|
f.json.filter(
|
|
48157
48157
|
(g) => !g.exclude_from_menu && (n || !g.requires.debug)
|
|
@@ -48160,7 +48160,7 @@ function G2({ i18n: e, netEnabled: o, debug: n }) {
|
|
|
48160
48160
|
})().then();
|
|
48161
48161
|
}, [n]);
|
|
48162
48162
|
const u = (p) => {
|
|
48163
|
-
Ne.getJson(`/debug/${n} ? "disable" : "enable"}`).then(() => {
|
|
48163
|
+
Ne.getJson(`/api/debug/${n} ? "disable" : "enable"}`).then(() => {
|
|
48164
48164
|
p.stopPropagation(), p.preventDefault();
|
|
48165
48165
|
});
|
|
48166
48166
|
};
|
|
@@ -48870,7 +48870,7 @@ const Tg = et(/* @__PURE__ */ m.jsx("path", {
|
|
|
48870
48870
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"
|
|
48871
48871
|
}), "RadioButtonUnchecked"), P2 = async (e, o) => {
|
|
48872
48872
|
const n = await Ne.getJson(
|
|
48873
|
-
"/burrito/metadata/summaries",
|
|
48873
|
+
"/api/burrito/metadata/summaries",
|
|
48874
48874
|
o.current
|
|
48875
48875
|
);
|
|
48876
48876
|
e(n.json);
|
|
@@ -48939,10 +48939,10 @@ function X2({
|
|
|
48939
48939
|
for (let H = 0; H < L.length; H++) {
|
|
48940
48940
|
let z = L[H], V = z[0].split("/"), F;
|
|
48941
48941
|
if (e === "org" && (F = await Ne.getJson(
|
|
48942
|
-
`/gitea/remote-repos/${z[0]}`,
|
|
48942
|
+
`/api/gitea/remote-repos/${z[0]}`,
|
|
48943
48943
|
f.current
|
|
48944
48944
|
)), e === "user" && (F = await Ne.getJson(
|
|
48945
|
-
`/gitea/user-remote-repos/${z[0]}`,
|
|
48945
|
+
`/api/gitea/user-remote-repos/${z[0]}`,
|
|
48946
48946
|
f.current
|
|
48947
48947
|
)), G !== b.current) return;
|
|
48948
48948
|
if (F.ok && F.json.length > 0)
|
|
@@ -48957,10 +48957,10 @@ function X2({
|
|
|
48957
48957
|
else {
|
|
48958
48958
|
let H = L[g], z = H[0].split("/"), V;
|
|
48959
48959
|
if (e === "org" && (V = await Ne.getJson(
|
|
48960
|
-
`/gitea/remote-repos/${H[0]}`,
|
|
48960
|
+
`/api/gitea/remote-repos/${H[0]}`,
|
|
48961
48961
|
f.current
|
|
48962
48962
|
)), e === "user" && (V = await Ne.getJson(
|
|
48963
|
-
`/gitea/user-remote-repos/${H[0]}`,
|
|
48963
|
+
`/api/gitea/user-remote-repos/${H[0]}`,
|
|
48964
48964
|
f.current
|
|
48965
48965
|
)), G !== b.current) return;
|
|
48966
48966
|
if (V.ok && V.json.length > 0)
|
|
@@ -49260,7 +49260,7 @@ function k2({ currentId: e }) {
|
|
|
49260
49260
|
const [o, n] = Xe("auto"), [r, a] = Xe(!1), s = Yt(null), [i, l] = Xe(!1), [c, u] = Xe([]), { i18nRef: p } = At(Jo), { enabledRef: f } = At(Ta), { debugRef: g } = At(oi);
|
|
49261
49261
|
ht(() => {
|
|
49262
49262
|
(async () => {
|
|
49263
|
-
const d = await Ne.getJson("/list-clients", g.current);
|
|
49263
|
+
const d = await Ne.getJson("/api/list-clients", g.current);
|
|
49264
49264
|
d.ok && u(
|
|
49265
49265
|
d.json.filter(
|
|
49266
49266
|
(S) => !S.exclude_from_menu && (g.current || !S.requires.debug)
|
|
@@ -49269,9 +49269,11 @@ function k2({ currentId: e }) {
|
|
|
49269
49269
|
})().then();
|
|
49270
49270
|
}, [g.current]);
|
|
49271
49271
|
const x = (b) => {
|
|
49272
|
-
Ne.getJson(`/debug/${g.current ? "disable" : "enable"}`).then(
|
|
49273
|
-
|
|
49274
|
-
|
|
49272
|
+
Ne.getJson(`/api/debug/${g.current ? "disable" : "enable"}`).then(
|
|
49273
|
+
() => {
|
|
49274
|
+
b.stopPropagation(), b.preventDefault();
|
|
49275
|
+
}
|
|
49276
|
+
);
|
|
49275
49277
|
};
|
|
49276
49278
|
return ht(() => {
|
|
49277
49279
|
let b;
|
|
@@ -49471,7 +49473,7 @@ function L2({
|
|
|
49471
49473
|
});
|
|
49472
49474
|
ht(() => {
|
|
49473
49475
|
b.palette && b.palette.primary && b.palette.primary.main && b.palette.primary.main === "#666" && Ne.getAndSetJson({
|
|
49474
|
-
url: "/app-resources/themes/default.json",
|
|
49476
|
+
url: "/api/app-resources/themes/default.json",
|
|
49475
49477
|
setter: d
|
|
49476
49478
|
}).then();
|
|
49477
49479
|
}, [b.palette]);
|
|
@@ -49534,13 +49536,13 @@ function F2({ children: e }) {
|
|
|
49534
49536
|
}, [R, $] = Xe({}), B = Yt(R), _ = (Q) => {
|
|
49535
49537
|
B.current = Q, $(Q);
|
|
49536
49538
|
}, X = async () => {
|
|
49537
|
-
await Ne.getJson("/client-config").then((Q) => Q.json).then((Q) => _(Q)).catch((Q) => console.error("Error :", Q));
|
|
49539
|
+
await Ne.getJson("/api/client-config").then((Q) => Q.json).then((Q) => _(Q)).catch((Q) => console.error("Error :", Q));
|
|
49538
49540
|
}, [D, A] = Xe({}), M = Yt(D), N = (Q) => {
|
|
49539
49541
|
M.current = Q, A(Q);
|
|
49540
49542
|
}, G = async () => {
|
|
49541
|
-
await Ne.getJson("/client-interfaces").then((Q) => Q.json).then((Q) => N(Q)).catch((Q) => console.error("Error :", Q));
|
|
49543
|
+
await Ne.getJson("/api/client-interfaces").then((Q) => Q.json).then((Q) => N(Q)).catch((Q) => console.error("Error :", Q));
|
|
49542
49544
|
}, U = async () => {
|
|
49543
|
-
const Q = await Ne.getJson("/i18n/flat", l.current);
|
|
49545
|
+
const Q = await Ne.getJson("/api/i18n/flat", l.current);
|
|
49544
49546
|
Q.ok ? O(Q.json) : rn(`Could not load i18n: ${Q.error}`, {
|
|
49545
49547
|
variant: "error",
|
|
49546
49548
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
@@ -49548,7 +49550,7 @@ function F2({ children: e }) {
|
|
|
49548
49550
|
});
|
|
49549
49551
|
}, H = async () => {
|
|
49550
49552
|
const Q = await Ne.getJson(
|
|
49551
|
-
"/settings/typography",
|
|
49553
|
+
"/api/settings/typography",
|
|
49552
49554
|
l.current
|
|
49553
49555
|
);
|
|
49554
49556
|
Q.ok ? O(Q.json) : rn(`Could not load typography: ${Q.error}`, {
|
|
@@ -49561,7 +49563,10 @@ function F2({ children: e }) {
|
|
|
49561
49563
|
U().then(), H().then(), X().then(), G().then();
|
|
49562
49564
|
}, []), ht(() => {
|
|
49563
49565
|
(async () => {
|
|
49564
|
-
const Ce = await Ne.getJson(
|
|
49566
|
+
const Ce = await Ne.getJson(
|
|
49567
|
+
"/api/navigation/bcv",
|
|
49568
|
+
l.current
|
|
49569
|
+
);
|
|
49565
49570
|
if (Ce.ok) {
|
|
49566
49571
|
const be = Ce.json;
|
|
49567
49572
|
S({
|
|
@@ -49644,7 +49649,7 @@ function F2({ children: e }) {
|
|
|
49644
49649
|
ht(() => {
|
|
49645
49650
|
const Q = new AbortController();
|
|
49646
49651
|
return (async () => {
|
|
49647
|
-
await ax("/notifications", {
|
|
49652
|
+
await ax("/api/notifications", {
|
|
49648
49653
|
method: "GET",
|
|
49649
49654
|
headers: {
|
|
49650
49655
|
Accept: "text/event-stream"
|
|
@@ -49817,12 +49822,12 @@ function Q2({
|
|
|
49817
49822
|
const [a, s] = Xe("BCP47List"), [i, l] = Xe(!1), { i18nRef: c } = At(Jo), [u, p] = Xe(!0), [f, g] = Xe(!1), [x, b] = Xe(""), [d, S] = Xe([]), [h, C] = Xe({}), [v, O] = Xe(!0), w = /^x-[a-z]{3}$/;
|
|
49818
49823
|
ht(() => {
|
|
49819
49824
|
r && Ne.getAndSetJson({
|
|
49820
|
-
url: "/git/list-local-repos",
|
|
49825
|
+
url: "/api/git/list-local-repos",
|
|
49821
49826
|
setter: S
|
|
49822
49827
|
}).then();
|
|
49823
49828
|
}, [r]), ht(() => {
|
|
49824
49829
|
r && Ne.getAndSetJson({
|
|
49825
|
-
url: "/app-resources/lookups/bcp47-language_codes.json",
|
|
49830
|
+
url: "/api/app-resources/lookups/bcp47-language_codes.json",
|
|
49826
49831
|
setter: C
|
|
49827
49832
|
}).then();
|
|
49828
49833
|
}, [r]);
|
|
@@ -49841,7 +49846,7 @@ function Q2({
|
|
|
49841
49846
|
language_name: `x-${e.language_code}`.toUpperCase()
|
|
49842
49847
|
}), s("customLanguage"))), O(!1));
|
|
49843
49848
|
}, [h, v, j]), ht(() => {
|
|
49844
|
-
x && Ne.getJson(`/burrito/metadata/summary/${x}`).then((k) => k.json).then(
|
|
49849
|
+
x && Ne.getJson(`/api/burrito/metadata/summary/${x}`).then((k) => k.json).then(
|
|
49845
49850
|
(k) => o({
|
|
49846
49851
|
...e,
|
|
49847
49852
|
language_code: k.language_code,
|
|
@@ -50132,7 +50137,7 @@ function eD({
|
|
|
50132
50137
|
const { i18nRef: r } = At(Jo), [a, s] = Xe([]);
|
|
50133
50138
|
return ht(() => {
|
|
50134
50139
|
e && Ne.getAndSetJson({
|
|
50135
|
-
url: "/content-utils/versifications",
|
|
50140
|
+
url: "/api/content-utils/versifications",
|
|
50136
50141
|
setter: s
|
|
50137
50142
|
}).then();
|
|
50138
50143
|
}, [e]), /* @__PURE__ */ m.jsxs(ha, { sx: { width: "100%" }, children: [
|
|
@@ -50195,7 +50200,7 @@ function tD({
|
|
|
50195
50200
|
var C, v, O, w, j, P, k, E;
|
|
50196
50201
|
const { i18nRef: f } = At(Jo), [g, x] = Xe(!0), [b, d] = Xe({});
|
|
50197
50202
|
ht(() => {
|
|
50198
|
-
Ne.getJson("/client-config").then((y) => y.json).then((y) => d(y)).catch((y) => console.error("Error :", y));
|
|
50203
|
+
Ne.getJson("/api/client-config").then((y) => y.json).then((y) => d(y)).catch((y) => console.error("Error :", y));
|
|
50199
50204
|
}, []);
|
|
50200
50205
|
const S = ((w = (O = (v = (C = b == null ? void 0 : b["core-contenthandler_text_translation"]) == null ? void 0 : C.find((y) => y.id === "config")) == null ? void 0 : v.fields) == null ? void 0 : O.find((y) => y.id === "protestantBooksOnlyCheckbox")) == null ? void 0 : w.value) !== !1, h = ((E = (k = (P = (j = b == null ? void 0 : b["core-contenthandler_text_translation"]) == null ? void 0 : j.find((y) => y.id === "config")) == null ? void 0 : P.fields) == null ? void 0 : k.find(
|
|
50201
50206
|
(y) => y.id === "protestantBooksOnlyDefaultChecked"
|