@oktis-works/admin 0.6.4 → 0.6.6
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/client/_astro/{ActivityWidget.CLFjbNJf.js → ActivityWidget.CPGVx0TQ.js} +1 -1
- package/dist/client/_astro/{AdminBar.CKYNoMCz.js → AdminBar.DCHk_5ca.js} +2 -2
- package/dist/client/_astro/{AtGlanceWidget.CNoT78V-.js → AtGlanceWidget.Dt0yu1kb.js} +1 -1
- package/dist/client/_astro/BaseLayout.Bf1iwXRF.css +1 -0
- package/dist/client/_astro/ContentEditor.D2Pzxrmx.js +1 -0
- package/dist/client/_astro/{ContentEditor.Gs5qWVc5.js → ContentEditor.oK1k6X8U.js} +1 -1
- package/dist/client/_astro/{ContentTypeWorkspace.0pObGhBc.js → ContentTypeWorkspace.C44tlgPI.js} +1 -1
- package/dist/client/_astro/{DashboardHome.DCz0EiH2.js → DashboardHome.BO_rm7Uf.js} +1 -1
- package/dist/client/_astro/DashboardLayout.CXLWCMPI.css +1 -0
- package/dist/client/_astro/{DashboardLayout.astro_astro_type_script_index_0_lang.DdRNBOsR.js → DashboardLayout.astro_astro_type_script_index_0_lang.CJ39grFK.js} +1 -1
- package/dist/client/_astro/{FieldGroupEditor.Bdm2FW0L.js → FieldGroupEditor.BeI58rW-.js} +4 -4
- package/dist/client/_astro/{FieldGroupList.BaNTs6an.js → FieldGroupList.ahbjUfLG.js} +1 -1
- package/dist/client/_astro/{Footer.Cu7USNhW.js → Footer.Dk4EKB38.js} +1 -1
- package/dist/client/_astro/GeneralSettings.BpkMdYlo.js +1 -0
- package/dist/client/_astro/{LogsManager.1c_AlgX8.js → LogsManager.B4n86e4G.js} +1 -1
- package/dist/client/_astro/{MediaLibrary.DCQs3bwq.js → MediaLibrary.Bj4WH-vM.js} +1 -1
- package/dist/client/_astro/{MenuManager.CLPv5Ths.js → MenuManager.8HZJSEQE.js} +1 -1
- package/dist/client/_astro/{PluginManager.BD3pUiUf.js → PluginManager.chYe_Wjc.js} +1 -1
- package/dist/client/_astro/{PostTypesManager.XE7f2dd_.js → PostTypesManager.2yuiIqth.js} +1 -1
- package/dist/client/_astro/{QuickDraftWidget.BLcNALbE.js → QuickDraftWidget.BVyd8Wkv.js} +1 -1
- package/dist/client/_astro/{ResourceHubs.CL3KxW6a.js → ResourceHubs.Cj4GS6P8.js} +1 -1
- package/dist/client/_astro/{TaxonomiesManager.l-VE1kOd.js → TaxonomiesManager.ly7pMtHQ.js} +1 -1
- package/dist/client/_astro/{TaxonomyTermsManager.DWljfgZH.js → TaxonomyTermsManager.rTnyCMmS.js} +1 -1
- package/dist/client/_astro/{ThemeManager.Dke-fCUr.js → ThemeManager.4UHfA_xy.js} +1 -1
- package/dist/client/_astro/{UserCreateForm.wCOVD_YS.js → UserCreateForm.BgcqPitU.js} +1 -1
- package/dist/client/_astro/{UsersManager.DBICZF7i.js → UsersManager.iKH5HmkO.js} +1 -1
- package/dist/client/_astro/{WebhooksManager.VZx9QiC8.js → WebhooksManager.ljJo1uYf.js} +1 -1
- package/dist/client/_astro/i18n.DVVsFXMk.js +1 -0
- package/dist/client/_astro/{version.BkVNnC4f.js → version.SrEZiGCs.js} +1 -1
- package/dist/server/chunks/{ContentEditor_DMVzxYM3.mjs → ContentEditor_CbH9DR8a.mjs} +1 -1
- package/dist/server/chunks/{DashboardLayout_CxF4A5fT.mjs → DashboardLayout_CQrZkT0M.mjs} +5 -12
- package/dist/server/chunks/{MediaLibrary_BfcwqGB5.mjs → MediaLibrary_pnNxssBQ.mjs} +1 -1
- package/dist/server/chunks/{_id__DBcDdXDz.mjs → _id__CZmmu1UX.mjs} +41 -14
- package/dist/server/chunks/{_slug__CBBdtW4f.mjs → _slug__BXvitBhK.mjs} +1 -1
- package/dist/server/chunks/{access_zWELX1DY.mjs → access_Db4ezW9j.mjs} +1 -1
- package/dist/server/chunks/{custom-fields_Dl_2hcKc.mjs → custom-fields_DgYQ4l6Z.mjs} +1 -1
- package/dist/server/chunks/{edit_CszxmxU3.mjs → edit_D9jJMhM-.mjs} +2 -2
- package/dist/server/chunks/general_Jizokno1.mjs +328 -0
- package/dist/server/chunks/{index_CuvqzuDM.mjs → index_BBNQUFfj.mjs} +1 -1
- package/dist/server/chunks/{index_DewdO8JW.mjs → index_C7rAdRq_.mjs} +2 -2
- package/dist/server/chunks/{index_DxCC3xhW.mjs → index_CweZv5My.mjs} +1 -1
- package/dist/server/chunks/{index_Bx2PLm7m.mjs → index_DB0WCtpb.mjs} +2 -2
- package/dist/server/chunks/{index_M0hQB5Kg.mjs → index__nM0rxWG.mjs} +1 -1
- package/dist/server/chunks/{login_6cSPvTAd.mjs → login_Dv3Z0TBw.mjs} +1 -1
- package/dist/server/chunks/{logs_D44q1BKd.mjs → logs_BueHdd1j.mjs} +1 -1
- package/dist/server/chunks/{menus_mYL4br_7.mjs → menus_BPOOyIvL.mjs} +1 -1
- package/dist/server/chunks/{new_DhJ9z0KU.mjs → new_BlhM_e5S.mjs} +1 -1
- package/dist/server/chunks/{new_PgjA_xKX.mjs → new_CXcyHxsz.mjs} +2 -2
- package/dist/server/chunks/{plugins_DMkIoKkp.mjs → plugins_B7hbtZ1r.mjs} +1 -1
- package/dist/server/chunks/{post-types_CniodN8U.mjs → post-types_DJrbobZi.mjs} +1 -1
- package/dist/server/chunks/{taxonomies_DHq9oeGP.mjs → taxonomies_DsujaA_d.mjs} +1 -1
- package/dist/server/chunks/{taxonomy_NpxQtrjC.mjs → taxonomy_DDXawRt3.mjs} +1 -1
- package/dist/server/chunks/{themes_JuTMnUhW.mjs → themes_DS8bfeNT.mjs} +1 -1
- package/dist/server/chunks/{upload_DWBjLCP7.mjs → upload_C6hYogkj.mjs} +2 -2
- package/dist/server/chunks/{webhooks_Z1sOZUKw.mjs → webhooks_BAZotw7u.mjs} +1 -1
- package/dist/server/entry.mjs +24 -24
- package/package.json +1 -1
- package/dist/client/_astro/BaseLayout.C5FQIBTO.css +0 -1
- package/dist/client/_astro/ContentEditor.Dowvd-VB.js +0 -1
- package/dist/client/_astro/DashboardLayout.D8yM8shT.css +0 -1
- package/dist/client/_astro/GeneralSettings.DLGEYL2s.js +0 -1
- package/dist/client/_astro/i18n.3zKFZ7KU.js +0 -1
- package/dist/server/chunks/general_DMnFCUSV.mjs +0 -191
- /package/dist/server/chunks/{BaseLayout_CJj2PysL.mjs → BaseLayout_rswPjbGh.mjs} +0 -0
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
|
+
import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
|
+
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
+
import { a as LOCALE_LABELS, i as LOCALE_FLAGS, n as useTranslation, o as SUPPORTED_LOCALES, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
+
import { f as createMemo$1, i as Card, l as Select, m as onMount$1, o as Input, p as createSignal$1, r as Button, t as $$DashboardLayout, u as Show2 } from "./DashboardLayout_CQrZkT0M.mjs";
|
|
6
|
+
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
|
+
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
8
|
+
import { For, Show, createMemo, createSignal, onCleanup, onMount } from "solid-js";
|
|
9
|
+
//#region src/components/apps/settings/TimezoneSelect.tsx
|
|
10
|
+
var _tmpl$$1 = [
|
|
11
|
+
"<div",
|
|
12
|
+
" class=\"tz-select__panel\" role=\"listbox\"><input type=\"search\" class=\"input tz-select__search\"",
|
|
13
|
+
" autofocus><div class=\"tz-select__options\">",
|
|
14
|
+
"</div></div>"
|
|
15
|
+
];
|
|
16
|
+
var _tmpl$2$1 = [
|
|
17
|
+
"<div",
|
|
18
|
+
" class=\"tz-select\"><button type=\"button\" class=\"input tz-select__trigger\" aria-haspopup=\"listbox\"",
|
|
19
|
+
"><span class=\"tz-select__value\">",
|
|
20
|
+
"</span><span aria-hidden=\"true\">",
|
|
21
|
+
"</span></button><!--$-->",
|
|
22
|
+
"<!--/--></div>"
|
|
23
|
+
];
|
|
24
|
+
var _tmpl$3$1 = ["<p", " class=\"tz-select__empty\">—</p>"];
|
|
25
|
+
var _tmpl$4$1 = [
|
|
26
|
+
"<button",
|
|
27
|
+
" type=\"button\" role=\"option\"",
|
|
28
|
+
" class=\"",
|
|
29
|
+
"\">",
|
|
30
|
+
"</button>"
|
|
31
|
+
];
|
|
32
|
+
var formatterCache = /* @__PURE__ */ new Map();
|
|
33
|
+
/** Offset atual da zona: `{ label: 'UTC-03:00', minutes: -180 }`. */
|
|
34
|
+
function offsetInfo(tz) {
|
|
35
|
+
let dtf = formatterCache.get(tz);
|
|
36
|
+
if (!dtf) {
|
|
37
|
+
dtf = new Intl.DateTimeFormat("en-US", {
|
|
38
|
+
timeZone: tz,
|
|
39
|
+
timeZoneName: "longOffset"
|
|
40
|
+
});
|
|
41
|
+
formatterCache.set(tz, dtf);
|
|
42
|
+
}
|
|
43
|
+
const match = (dtf.formatToParts(/* @__PURE__ */ new Date()).find((part) => part.type === "timeZoneName")?.value ?? "GMT").match(/GMT([+-])(\d{2}):(\d{2})/);
|
|
44
|
+
if (!match) return {
|
|
45
|
+
label: "UTC+00:00",
|
|
46
|
+
minutes: 0
|
|
47
|
+
};
|
|
48
|
+
const minutes = (match[1] === "-" ? -1 : 1) * (Number(match[2]) * 60 + Number(match[3]));
|
|
49
|
+
return {
|
|
50
|
+
label: `UTC${match[1]}${match[2]}:${match[3]}`,
|
|
51
|
+
minutes
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/** Lista completa: UTC no topo + zonas IANA ordenadas por offset e nome. */
|
|
55
|
+
function buildTimezoneOptions() {
|
|
56
|
+
const intl = Intl;
|
|
57
|
+
const options = (typeof intl.supportedValuesOf === "function" ? intl.supportedValuesOf("timeZone") : ["UTC"]).map((tz) => {
|
|
58
|
+
const { label, minutes } = offsetInfo(tz);
|
|
59
|
+
return {
|
|
60
|
+
tz,
|
|
61
|
+
label: `(UTC${label.slice(3)}) ${tz}`,
|
|
62
|
+
minutes
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
options.sort((a, b) => a.minutes - b.minutes || a.tz.localeCompare(b.tz));
|
|
66
|
+
return [{
|
|
67
|
+
tz: "UTC",
|
|
68
|
+
label: "(UTC+00:00) UTC",
|
|
69
|
+
minutes: 0
|
|
70
|
+
}, ...options];
|
|
71
|
+
}
|
|
72
|
+
/** Normaliza para busca: sem caixa, `/` e `_` viram espaço. */
|
|
73
|
+
var normalize = (text) => text.toLowerCase().replace(/[/_\-]/g, " ");
|
|
74
|
+
function TimezoneSelect(props) {
|
|
75
|
+
const [open, setOpen] = createSignal(false);
|
|
76
|
+
const [query, setQuery] = createSignal("");
|
|
77
|
+
const options = createMemo(() => buildTimezoneOptions());
|
|
78
|
+
const selected = createMemo(() => options().find((option) => option.tz === props.value));
|
|
79
|
+
const filtered = createMemo(() => {
|
|
80
|
+
const q = normalize(query().trim());
|
|
81
|
+
if (!q) return options();
|
|
82
|
+
return options().filter((option) => normalize(option.label).includes(q));
|
|
83
|
+
});
|
|
84
|
+
onMount(() => {
|
|
85
|
+
const close = (event) => {};
|
|
86
|
+
const onKey = (event) => {
|
|
87
|
+
if (event.key === "Escape") setOpen(false);
|
|
88
|
+
};
|
|
89
|
+
document.addEventListener("mousedown", close);
|
|
90
|
+
document.addEventListener("keydown", onKey);
|
|
91
|
+
onCleanup(() => {
|
|
92
|
+
document.removeEventListener("mousedown", close);
|
|
93
|
+
document.removeEventListener("keydown", onKey);
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
return ssr(_tmpl$2$1, ssrHydrationKey(), ssrAttribute("aria-expanded", escape(open(), true), false), escape(selected()?.label ?? props.placeholder ?? ""), open() ? "▴" : "▾", escape(createComponent(Show, {
|
|
97
|
+
get when() {
|
|
98
|
+
return open();
|
|
99
|
+
},
|
|
100
|
+
get children() {
|
|
101
|
+
return ssr(_tmpl$$1, ssrHydrationKey(), ssrAttribute("placeholder", escape(props.searchPlaceholder ?? props.placeholder ?? "", true), false) + ssrAttribute("value", escape(query(), true), false), escape(createComponent(Show, {
|
|
102
|
+
get when() {
|
|
103
|
+
return filtered().length > 0;
|
|
104
|
+
},
|
|
105
|
+
get fallback() {
|
|
106
|
+
return ssr(_tmpl$3$1, ssrHydrationKey());
|
|
107
|
+
},
|
|
108
|
+
get children() {
|
|
109
|
+
return createComponent(For, {
|
|
110
|
+
get each() {
|
|
111
|
+
return filtered();
|
|
112
|
+
},
|
|
113
|
+
children: (option) => ssr(_tmpl$4$1, ssrHydrationKey(), ssrAttribute("aria-selected", escape(props.value, true) === escape(option.tz, true), false), `tz-select__option ${props.value === option.tz ? "is-selected" : ""}`, escape(option.label))
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
})));
|
|
117
|
+
}
|
|
118
|
+
})));
|
|
119
|
+
}
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/components/apps/settings/GeneralSettings.tsx
|
|
122
|
+
var _tmpl$ = [
|
|
123
|
+
"<div",
|
|
124
|
+
" class=\"notice notice--error\">",
|
|
125
|
+
"</div>"
|
|
126
|
+
];
|
|
127
|
+
var _tmpl$2 = [
|
|
128
|
+
"<div",
|
|
129
|
+
" class=\"notice\">",
|
|
130
|
+
"</div>"
|
|
131
|
+
];
|
|
132
|
+
var _tmpl$3 = [
|
|
133
|
+
"<form",
|
|
134
|
+
"><div class=\"form-grid\">",
|
|
135
|
+
"</div><div class=\"media-details__actions\">",
|
|
136
|
+
"</div></form>"
|
|
137
|
+
];
|
|
138
|
+
var _tmpl$4 = [
|
|
139
|
+
"<div",
|
|
140
|
+
" class=\"general-settings\"><!--$-->",
|
|
141
|
+
"<!--/--><!--$-->",
|
|
142
|
+
"<!--/--><!--$-->",
|
|
143
|
+
"<!--/--></div>"
|
|
144
|
+
];
|
|
145
|
+
var _tmpl$5 = [
|
|
146
|
+
"<p",
|
|
147
|
+
" class=\"muted\">",
|
|
148
|
+
"</p>"
|
|
149
|
+
];
|
|
150
|
+
var _tmpl$6 = [
|
|
151
|
+
"<label",
|
|
152
|
+
" class=\"general-settings__tz\"><!--$-->",
|
|
153
|
+
"<!--/--><!--$-->",
|
|
154
|
+
"<!--/--></label>"
|
|
155
|
+
];
|
|
156
|
+
function GeneralSettings() {
|
|
157
|
+
const { t } = useTranslation();
|
|
158
|
+
const [values, setValues] = createSignal$1({});
|
|
159
|
+
const [loadedLanguage, setLoadedLanguage] = createSignal$1("");
|
|
160
|
+
const [loaded, setLoaded] = createSignal$1(false);
|
|
161
|
+
const [error, setError] = createSignal$1("");
|
|
162
|
+
const [info, setInfo] = createSignal$1("");
|
|
163
|
+
const [saving, setSaving] = createSignal$1(false);
|
|
164
|
+
const languageOptions = createMemo$1(() => SUPPORTED_LOCALES.map((locale) => ({
|
|
165
|
+
value: locale,
|
|
166
|
+
label: `${LOCALE_FLAGS[locale]} ${LOCALE_LABELS[locale]}`
|
|
167
|
+
})));
|
|
168
|
+
const fields = createMemo$1(() => [
|
|
169
|
+
{
|
|
170
|
+
key: "siteTitle",
|
|
171
|
+
label: t("settings.general.fields.siteTitle"),
|
|
172
|
+
type: "text",
|
|
173
|
+
placeholder: t("settings.general.fields.siteTitlePlaceholder")
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
key: "siteDescription",
|
|
177
|
+
label: t("settings.general.fields.siteDescription"),
|
|
178
|
+
type: "text",
|
|
179
|
+
placeholder: t("settings.general.fields.siteDescriptionPlaceholder")
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
key: "language",
|
|
183
|
+
label: t("settings.general.fields.language"),
|
|
184
|
+
type: "select",
|
|
185
|
+
options: languageOptions()
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
key: "timezone",
|
|
189
|
+
label: t("settings.general.fields.timezone"),
|
|
190
|
+
type: "timezone",
|
|
191
|
+
placeholder: t("settings.general.fields.timezonePlaceholder")
|
|
192
|
+
}
|
|
193
|
+
]);
|
|
194
|
+
onMount$1(async () => {
|
|
195
|
+
try {
|
|
196
|
+
const rows = await apiClient.getSettings("general");
|
|
197
|
+
const map = {};
|
|
198
|
+
for (const row of rows) map[row.key] = typeof row.value === "string" ? row.value : JSON.stringify(row.value ?? "");
|
|
199
|
+
for (const field of fields()) if (map[field.key] === void 0) map[field.key] = "";
|
|
200
|
+
if (!map["timezone"]) try {
|
|
201
|
+
map["timezone"] = Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
202
|
+
} catch {
|
|
203
|
+
map["timezone"] = "UTC";
|
|
204
|
+
}
|
|
205
|
+
setLoadedLanguage(map["language"] ?? "");
|
|
206
|
+
setValues(map);
|
|
207
|
+
setLoaded(true);
|
|
208
|
+
} catch (err) {
|
|
209
|
+
setError(err instanceof Error ? err.message : String(err));
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
return ssr(_tmpl$4, ssrHydrationKey(), escape(createComponent(Show2, {
|
|
213
|
+
get when() {
|
|
214
|
+
return error();
|
|
215
|
+
},
|
|
216
|
+
get children() {
|
|
217
|
+
return ssr(_tmpl$, ssrHydrationKey(), escape(error()));
|
|
218
|
+
}
|
|
219
|
+
})), escape(createComponent(Show2, {
|
|
220
|
+
get when() {
|
|
221
|
+
return info();
|
|
222
|
+
},
|
|
223
|
+
get children() {
|
|
224
|
+
return ssr(_tmpl$2, ssrHydrationKey(), escape(info()));
|
|
225
|
+
}
|
|
226
|
+
})), escape(createComponent(Show2, {
|
|
227
|
+
get when() {
|
|
228
|
+
return loaded();
|
|
229
|
+
},
|
|
230
|
+
get fallback() {
|
|
231
|
+
return ssr(_tmpl$5, ssrHydrationKey(), escape(t("settings.general.loading")));
|
|
232
|
+
},
|
|
233
|
+
get children() {
|
|
234
|
+
return createComponent(Card, { get children() {
|
|
235
|
+
return ssr(_tmpl$3, ssrHydrationKey(), escape(fields().map((field) => field.type === "select" ? createComponent(Select, {
|
|
236
|
+
get name() {
|
|
237
|
+
return field.key;
|
|
238
|
+
},
|
|
239
|
+
get label() {
|
|
240
|
+
return field.label;
|
|
241
|
+
},
|
|
242
|
+
get value() {
|
|
243
|
+
return values()[field.key] ?? "";
|
|
244
|
+
},
|
|
245
|
+
get options() {
|
|
246
|
+
return field.options ?? [];
|
|
247
|
+
},
|
|
248
|
+
onChange: (value) => setValues({
|
|
249
|
+
...values(),
|
|
250
|
+
[field.key]: value
|
|
251
|
+
})
|
|
252
|
+
}) : field.type === "timezone" ? ssr(_tmpl$6, ssrHydrationKey(), escape(field.label), escape(createComponent(TimezoneSelect, {
|
|
253
|
+
get value() {
|
|
254
|
+
return values()[field.key] ?? "";
|
|
255
|
+
},
|
|
256
|
+
get placeholder() {
|
|
257
|
+
return field.placeholder ?? "";
|
|
258
|
+
},
|
|
259
|
+
get searchPlaceholder() {
|
|
260
|
+
return field.placeholder ?? "";
|
|
261
|
+
},
|
|
262
|
+
onChange: (value) => setValues({
|
|
263
|
+
...values(),
|
|
264
|
+
[field.key]: value
|
|
265
|
+
})
|
|
266
|
+
}))) : createComponent(Input, {
|
|
267
|
+
get name() {
|
|
268
|
+
return field.key;
|
|
269
|
+
},
|
|
270
|
+
get label() {
|
|
271
|
+
return field.label;
|
|
272
|
+
},
|
|
273
|
+
get placeholder() {
|
|
274
|
+
return memo(() => "placeholder" in field)() ? field.placeholder : "";
|
|
275
|
+
},
|
|
276
|
+
get value() {
|
|
277
|
+
return values()[field.key] ?? "";
|
|
278
|
+
},
|
|
279
|
+
onInput: (value) => setValues({
|
|
280
|
+
...values(),
|
|
281
|
+
[field.key]: value
|
|
282
|
+
})
|
|
283
|
+
}))), escape(createComponent(Button, {
|
|
284
|
+
variant: "primary",
|
|
285
|
+
type: "submit",
|
|
286
|
+
get disabled() {
|
|
287
|
+
return saving();
|
|
288
|
+
},
|
|
289
|
+
get loading() {
|
|
290
|
+
return saving();
|
|
291
|
+
},
|
|
292
|
+
get children() {
|
|
293
|
+
return t("settings.general.save");
|
|
294
|
+
}
|
|
295
|
+
})));
|
|
296
|
+
} });
|
|
297
|
+
}
|
|
298
|
+
})));
|
|
299
|
+
}
|
|
300
|
+
//#endregion
|
|
301
|
+
//#region src/pages/settings/general.astro
|
|
302
|
+
var general_exports = /* @__PURE__ */ __exportAll({
|
|
303
|
+
default: () => $$General,
|
|
304
|
+
file: () => $$file,
|
|
305
|
+
url: () => $$url
|
|
306
|
+
});
|
|
307
|
+
createAstro("https://astro.build");
|
|
308
|
+
var $$General = createComponent$1(($$result, $$props, $$slots) => {
|
|
309
|
+
const Astro = $$result.createAstro($$props, $$slots);
|
|
310
|
+
Astro.self = $$General;
|
|
311
|
+
const { t } = Astro.locals;
|
|
312
|
+
return renderTemplate`${renderComponent($$result, "DashboardLayout", $$DashboardLayout, { "title": t("settings.general.title") }, { "default": ($$result) => renderTemplate`${renderComponent($$result, "PageHeader", PageHeader, {
|
|
313
|
+
"title": t("settings.general.title"),
|
|
314
|
+
"description": t("settings.general.description")
|
|
315
|
+
})}${renderComponent($$result, "GeneralSettings", GeneralSettings, {
|
|
316
|
+
"client:load": true,
|
|
317
|
+
"client:component-hydration": "load",
|
|
318
|
+
"client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/apps/settings/GeneralSettings.tsx",
|
|
319
|
+
"client:component-export": "GeneralSettings"
|
|
320
|
+
})}` })}`;
|
|
321
|
+
}, "/home/runner/work/cms/cms/apps/admin/src/pages/settings/general.astro", void 0);
|
|
322
|
+
var $$file = "/home/runner/work/cms/cms/apps/admin/src/pages/settings/general.astro";
|
|
323
|
+
var $$url = "/settings/general";
|
|
324
|
+
//#endregion
|
|
325
|
+
//#region \0virtual:astro:page:src/pages/settings/general@_@astro
|
|
326
|
+
var page = () => general_exports;
|
|
327
|
+
//#endregion
|
|
328
|
+
export { page };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_CQrZkT0M.mjs";
|
|
5
5
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
6
6
|
//#region src/pages/settings/index.astro
|
|
7
7
|
var settings_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -2,8 +2,8 @@ import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
|
2
2
|
import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
4
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
-
import { c as Pagination, d as Table, i as Card, l as Select, n as Badge, o as Input, r as Button, t as $$DashboardLayout } from "./
|
|
6
|
-
import { t as ContentEditor } from "./
|
|
5
|
+
import { c as Pagination, d as Table, i as Card, l as Select, n as Badge, o as Input, r as Button, t as $$DashboardLayout } from "./DashboardLayout_CQrZkT0M.mjs";
|
|
6
|
+
import { t as ContentEditor } from "./ContentEditor_CbH9DR8a.mjs";
|
|
7
7
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
8
8
|
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
9
9
|
import { Show, createMemo, createSignal, onMount } from "solid-js";
|
|
@@ -2,7 +2,7 @@ import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
|
2
2
|
import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
4
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
-
import { a as For2, c as Pagination, l as Select, m as onMount, n as Badge, o as Input, p as createSignal, r as Button, t as $$DashboardLayout, u as Show2 } from "./
|
|
5
|
+
import { a as For2, c as Pagination, l as Select, m as onMount, n as Badge, o as Input, p as createSignal, r as Button, t as $$DashboardLayout, u as Show2 } from "./DashboardLayout_CQrZkT0M.mjs";
|
|
6
6
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
7
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
8
8
|
//#region src/components/apps/users/UsersManager.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_CQrZkT0M.mjs";
|
|
5
5
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
6
|
-
import { t as MediaLibrary } from "./
|
|
6
|
+
import { t as MediaLibrary } from "./MediaLibrary_pnNxssBQ.mjs";
|
|
7
7
|
//#region src/pages/media/index.astro
|
|
8
8
|
var media_exports = /* @__PURE__ */ __exportAll({
|
|
9
9
|
default: () => $$Index,
|
|
@@ -2,7 +2,7 @@ import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
4
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_CQrZkT0M.mjs";
|
|
6
6
|
import { createComponent, escape, ssr, ssrHydrationKey } from "solid-js/web";
|
|
7
7
|
import { For, Show, createSignal, onMount } from "solid-js";
|
|
8
8
|
//#region src/components/apps/dashboard/DashboardHome.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as renderScript, t as $$BaseLayout } from "./
|
|
4
|
+
import { n as renderScript, t as $$BaseLayout } from "./BaseLayout_rswPjbGh.mjs";
|
|
5
5
|
//#region src/pages/login.astro
|
|
6
6
|
var login_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
default: () => $$Login,
|
|
@@ -2,7 +2,7 @@ import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
|
2
2
|
import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
4
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_CQrZkT0M.mjs";
|
|
6
6
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
7
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
8
8
|
import { For, Show, createSignal, onMount } from "solid-js";
|
|
@@ -2,7 +2,7 @@ import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
4
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_CQrZkT0M.mjs";
|
|
6
6
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
7
7
|
import { For, Show, createMemo, createSignal, onMount } from "solid-js";
|
|
8
8
|
//#region src/components/apps/menus/MenuManager.tsx
|
|
@@ -2,7 +2,7 @@ import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
|
2
2
|
import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
4
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_CQrZkT0M.mjs";
|
|
6
6
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
7
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
8
8
|
import { For, Show, createSignal, onMount } from "solid-js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
-
import { t as ContentEditor } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_CQrZkT0M.mjs";
|
|
5
|
+
import { t as ContentEditor } from "./ContentEditor_CbH9DR8a.mjs";
|
|
6
6
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
7
|
//#region src/pages/content/[type]/new.astro
|
|
8
8
|
var new_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -2,7 +2,7 @@ import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
|
2
2
|
import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
4
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_CQrZkT0M.mjs";
|
|
6
6
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
7
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
8
8
|
import { For, createSignal, onMount } from "solid-js";
|
|
@@ -2,7 +2,7 @@ import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
|
2
2
|
import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
4
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_CQrZkT0M.mjs";
|
|
6
6
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
7
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
8
8
|
import { For, Show, createMemo, createSignal, onMount } from "solid-js";
|
|
@@ -2,7 +2,7 @@ import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
|
2
2
|
import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
4
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_CQrZkT0M.mjs";
|
|
6
6
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
7
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey, ssrStyleProperty } from "solid-js/web";
|
|
8
8
|
import { For, Show, createSignal, onMount } from "solid-js";
|
|
@@ -2,7 +2,7 @@ import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, p as addAttribute, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
4
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_CQrZkT0M.mjs";
|
|
6
6
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
7
|
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
8
8
|
import { For, Show, createSignal, onMount } from "solid-js";
|
|
@@ -2,7 +2,7 @@ import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
|
2
2
|
import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
4
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_CQrZkT0M.mjs";
|
|
6
6
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
7
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
8
8
|
import { For, createSignal, onMount } from "solid-js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_CQrZkT0M.mjs";
|
|
5
5
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
6
|
-
import { t as MediaLibrary } from "./
|
|
6
|
+
import { t as MediaLibrary } from "./MediaLibrary_pnNxssBQ.mjs";
|
|
7
7
|
//#region src/pages/media/upload.astro
|
|
8
8
|
var upload_exports = /* @__PURE__ */ __exportAll({
|
|
9
9
|
default: () => $$Upload,
|
|
@@ -2,7 +2,7 @@ import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
|
2
2
|
import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
4
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_CQrZkT0M.mjs";
|
|
6
6
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
7
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
8
8
|
import { For, Show, createSignal, onCleanup, onMount } from "solid-js";
|