@oktis-works/admin 0.9.0 → 0.11.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/dist/client/_astro/{ActivityWidget.l4_oR6gt.js → ActivityWidget.D9s4FOLp.js} +2 -2
- package/dist/client/_astro/{AdminBar.DbabNkmU.js → AdminBar.D8078Gqs.js} +2 -2
- package/dist/client/_astro/ApiKeysManager.BjyxI6JT.js +1 -0
- package/dist/client/_astro/{AtGlanceWidget.C7QyOZnc.js → AtGlanceWidget.DBA3mEnF.js} +3 -3
- package/dist/client/_astro/BaseLayout.DAkzjMTq.css +1 -0
- package/dist/client/_astro/{ContentEditor.BCy7gbzZ.js → ContentEditor.BZ8aLcGz.js} +2 -2
- package/dist/client/_astro/ContentEditor.CfQqsa6r.js +1 -0
- package/dist/client/_astro/ContentTypeWorkspace.BhHFc6WZ.js +1 -0
- package/dist/client/_astro/DashboardHome.BXIUgb4u.js +1 -0
- package/dist/client/_astro/DashboardLayout.DM3iZCrw.css +1 -0
- package/dist/client/_astro/{DashboardLayout.astro_astro_type_script_index_0_lang.PXk2X2qN.js → DashboardLayout.astro_astro_type_script_index_0_lang.Cc0PvXrs.js} +1 -1
- package/dist/client/_astro/FbIcon.CUNS6rpP.js +1 -0
- package/dist/client/_astro/FieldGroupEditor.CVoPJ2v-.js +69 -0
- package/dist/client/_astro/{FieldGroupList.DrhO-iww.js → FieldGroupList.BG2ET5gZ.js} +1 -1
- package/dist/client/_astro/FloatingPanel.BeCEt_JP.js +1 -0
- package/dist/client/_astro/{Footer.Uc7SesWM.js → Footer.Chcu8yzV.js} +2 -2
- package/dist/client/_astro/GeneralSettings.CefkBcVj.js +1 -0
- package/dist/client/_astro/LogsManager.ya0kmAUm.js +1 -0
- package/dist/client/_astro/MediaLibrary.Bod2Afk4.js +1 -0
- package/dist/client/_astro/{MenuManager.Cy7xyr2l.js → MenuManager.d6_0hgNg.js} +1 -1
- package/dist/client/_astro/Modal.DR905gyF.js +1 -0
- package/dist/client/_astro/{PluginManager.3qXWwYBV.js → PluginManager.BHvKQlj2.js} +2 -2
- package/dist/client/_astro/PostTypesManager.DMUxfOp9.js +1 -0
- package/dist/client/_astro/{QuickDraftWidget.ux_yGWpX.js → QuickDraftWidget.DyX_bJ1p.js} +2 -2
- package/dist/client/_astro/ResourceHubs.BwxYHeE5.js +1 -0
- package/dist/client/_astro/TaxonomiesManager.DlVS4Ujm.js +1 -0
- package/dist/client/_astro/TaxonomyTermsManager.B_ZDFU-K.js +1 -0
- package/dist/client/_astro/ThemeManager.DuHgcKyn.js +176 -0
- package/dist/client/_astro/UserCreateForm.1KIa3Aa2.js +1 -0
- package/dist/client/_astro/UsersManager.v24y8OSk.js +1 -0
- package/dist/client/_astro/WebhooksManager.DPkFhoVr.js +1 -0
- package/dist/client/_astro/api.CYg1SW2X.js +1 -0
- package/dist/client/_astro/client.DU9Dc2oe.js +1 -0
- package/dist/client/_astro/extensions.Brl6zAPA.js +1 -0
- package/dist/client/_astro/i18n.AbBpo2WD.js +1 -0
- package/dist/client/_astro/{login.astro_astro_type_script_index_0_lang.Dni6a5dD.js → login.astro_astro_type_script_index_0_lang.F2J3xZhK.js} +1 -1
- package/dist/client/_astro/{pt-BR.B-uijFlj.js → pt-BR.B0jeLTb0.js} +1 -1
- package/dist/client/_astro/solid.D49dPDCT.js +1 -0
- package/dist/client/_astro/{src.DksrLolD.js → src.DXVWCoHp.js} +1 -1
- package/dist/client/_astro/web.Bqbl_1YR.js +1 -0
- package/dist/server/chunks/{404_DIfrzRRM.mjs → 404_Bj-sYqJF.mjs} +1 -1
- package/dist/server/chunks/{BaseLayout_CmMnXoh2.mjs → BaseLayout_BlxsDTAd.mjs} +3 -3
- package/dist/server/chunks/{ContentEditor_CrP88U9K.mjs → ContentEditor_BLL0Q9aT.mjs} +2 -2
- package/dist/server/chunks/{DashboardLayout_C6I2H2jO.mjs → DashboardLayout_D-AI4SdO.mjs} +7 -2
- package/dist/server/chunks/FloatingPanel_DI2CdUZK.mjs +57 -0
- package/dist/server/chunks/{MediaLibrary_c4bl4fTY.mjs → MediaLibrary_BPSHokdn.mjs} +2 -2
- package/dist/server/chunks/Modal_vHjkS4i2.mjs +33 -0
- package/dist/server/chunks/{_id__C2MAQ-Pj.mjs → _id__CvxvSegw.mjs} +21 -10
- package/dist/server/chunks/{_slug__CR0j3J9V.mjs → _slug__B3m1GWZj.mjs} +1 -1
- package/dist/server/chunks/access_t-YgohBR.mjs +389 -0
- package/dist/server/chunks/api-keys_DvIgJEw-.mjs +283 -0
- package/dist/server/chunks/{custom-fields_BPduH9VI.mjs → custom-fields_Yq-7YaBk.mjs} +2 -2
- package/dist/server/chunks/{edit_CJdKxNhx.mjs → edit_7AfeGLnP.mjs} +2 -2
- package/dist/server/chunks/{general_eI-sNsQl.mjs → general_4IEF4sYI.mjs} +31 -27
- package/dist/server/chunks/{i18n_BqZ4e24O.mjs → i18n_CItvcX64.mjs} +86 -5
- package/dist/server/chunks/{index_XRE0Vjch.mjs → index_B0LWYIKC.mjs} +2 -2
- package/dist/server/chunks/{index_CyKyYL4y.mjs → index_BoAt_7s4.mjs} +2 -2
- package/dist/server/chunks/{index_Om0n2OAr.mjs → index_CG0xJrh0.mjs} +3 -3
- package/dist/server/chunks/{index_CA70i3-b.mjs → index_CUe8civB.mjs} +2 -2
- package/dist/server/chunks/{index_BKzgF5qF.mjs → index_CkJtZm1g.mjs} +2 -2
- package/dist/server/chunks/{login_0iFVtfgV.mjs → login_CWnr9s7S.mjs} +1 -1
- package/dist/server/chunks/{logs_D-h53LJu.mjs → logs_jSHdYZQ7.mjs} +2 -2
- package/dist/server/chunks/{menus_CcCZvv6r.mjs → menus_DSIld5hj.mjs} +2 -2
- package/dist/server/chunks/{new_DSopKVB7.mjs → new_DMbeF6_n.mjs} +2 -2
- package/dist/server/chunks/{new_BmimSObH.mjs → new_NQMhsp8J.mjs} +2 -2
- package/dist/server/chunks/{plugins_MF0XTr5R.mjs → plugins_ChSk7C1I.mjs} +2 -2
- package/dist/server/chunks/{post-types_D5ajDp3x.mjs → post-types_Y8dhnrtw.mjs} +100 -47
- package/dist/server/chunks/{pt-BR_CQndzpOT.mjs → pt-BR_DpWzkRv5.mjs} +74 -4
- package/dist/server/chunks/{taxonomies_CfvbHc_y.mjs → taxonomies_Bg6steYg.mjs} +2 -2
- package/dist/server/chunks/{taxonomy_DdWpf9lk.mjs → taxonomy_Bk7DHF9d.mjs} +2 -2
- package/dist/server/chunks/{themes_DQE1-WCF.mjs → themes_JFxY7m2_.mjs} +2 -2
- package/dist/server/chunks/{upload_DjkuLTrW.mjs → upload_CrHx55UT.mjs} +2 -2
- package/dist/server/chunks/{webhooks_NO5wRHnZ.mjs → webhooks_Du4Tv0yn.mjs} +2 -2
- package/dist/server/entry.mjs +68 -37
- package/dist/server/virtual_astro_middleware.mjs +1 -1
- package/package.json +3 -3
- package/dist/client/_astro/BaseLayout.CgLTOe_a.css +0 -1
- package/dist/client/_astro/ContentEditor.BlRm9ezb.js +0 -1
- package/dist/client/_astro/ContentTypeWorkspace.BF8WjCDy.js +0 -1
- package/dist/client/_astro/DashboardHome.C2TVw1TO.js +0 -1
- package/dist/client/_astro/DashboardLayout.C1hUraeX.css +0 -1
- package/dist/client/_astro/FbIcon.DFmK-EWG.js +0 -1
- package/dist/client/_astro/FieldGroupEditor.CcxZuz0o.js +0 -69
- package/dist/client/_astro/GeneralSettings.Bxn673WF.js +0 -1
- package/dist/client/_astro/LogsManager.DF_3DQlY.js +0 -1
- package/dist/client/_astro/MediaLibrary._7sCWvNs.js +0 -1
- package/dist/client/_astro/PostTypesManager.BAXkf__Y.js +0 -1
- package/dist/client/_astro/ResourceHubs.Dhx1kbfj.js +0 -1
- package/dist/client/_astro/TaxonomiesManager.BYTDEeNU.js +0 -1
- package/dist/client/_astro/TaxonomyTermsManager.DBb5gB5l.js +0 -1
- package/dist/client/_astro/ThemeManager.DVBYapuE.js +0 -176
- package/dist/client/_astro/UserCreateForm.CTr8bSlL.js +0 -1
- package/dist/client/_astro/UsersManager.BfPqZNy7.js +0 -1
- package/dist/client/_astro/WebhooksManager.DPAWAObu.js +0 -1
- package/dist/client/_astro/api.CNp-a9Z3.js +0 -1
- package/dist/client/_astro/client.m5rScAmr.js +0 -1
- package/dist/client/_astro/extensions.CenNQy0u.js +0 -1
- package/dist/client/_astro/i18n.CXvd48vy.js +0 -1
- package/dist/client/_astro/solid.8gBSxpeo.js +0 -1
- package/dist/client/_astro/web.DB4MaPY9.js +0 -1
- package/dist/server/chunks/access_bpmBW03n.mjs +0 -138
|
@@ -0,0 +1,283 @@
|
|
|
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 { n as useTranslation, r as apiClient } from "./i18n_CItvcX64.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_D-AI4SdO.mjs";
|
|
6
|
+
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
|
+
import { t as Modal } from "./Modal_vHjkS4i2.mjs";
|
|
8
|
+
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
9
|
+
import { For, Show, createSignal, onMount } from "solid-js";
|
|
10
|
+
//#region src/components/apps/settings/ApiKeysManager.tsx
|
|
11
|
+
var _tmpl$ = [
|
|
12
|
+
"<div",
|
|
13
|
+
" class=\"notice notice--error\">",
|
|
14
|
+
"</div>"
|
|
15
|
+
];
|
|
16
|
+
var _tmpl$2 = [
|
|
17
|
+
"<div",
|
|
18
|
+
" class=\"notice notice--success\">",
|
|
19
|
+
"</div>"
|
|
20
|
+
];
|
|
21
|
+
var _tmpl$3 = [
|
|
22
|
+
"<section",
|
|
23
|
+
" class=\"card\"><h3>",
|
|
24
|
+
"</h3><form class=\"resource-form\"><label><!--$-->",
|
|
25
|
+
"<!--/--><input class=\"input\" required type=\"text\"",
|
|
26
|
+
"></label><label><!--$-->",
|
|
27
|
+
"<!--/--><select class=\"input\"",
|
|
28
|
+
">",
|
|
29
|
+
"</select></label><label><!--$-->",
|
|
30
|
+
"<!--/--><input class=\"input\" type=\"datetime-local\"",
|
|
31
|
+
"></label><label class=\"checkbox-label\"><input type=\"checkbox\"",
|
|
32
|
+
"> <!--$-->",
|
|
33
|
+
"<!--/--></label><p class=\"muted\">",
|
|
34
|
+
"</p><div><button class=\"btn btn-primary\" type=\"submit\">",
|
|
35
|
+
"</button> <button class=\"btn\" type=\"button\">",
|
|
36
|
+
"</button></div></form></section>"
|
|
37
|
+
];
|
|
38
|
+
var _tmpl$4 = [
|
|
39
|
+
"<div",
|
|
40
|
+
" class=\"table-scroll\"><table class=\"table\"><thead><tr><th>",
|
|
41
|
+
"</th><th>",
|
|
42
|
+
"</th><th>",
|
|
43
|
+
"</th><th>",
|
|
44
|
+
"</th><th>",
|
|
45
|
+
"</th><th>",
|
|
46
|
+
"</th></tr></thead><tbody>",
|
|
47
|
+
"</tbody></table></div>"
|
|
48
|
+
];
|
|
49
|
+
var _tmpl$5 = [
|
|
50
|
+
"<div",
|
|
51
|
+
" class=\"modal-body\"><div class=\"notice notice--error\">",
|
|
52
|
+
"</div><label><!--$-->",
|
|
53
|
+
"<!--/--><input class=\"input\" readonly type=\"text\"",
|
|
54
|
+
" data-testid=\"api-key-plaintext\"></label><p class=\"muted\">",
|
|
55
|
+
"</p><pre class=\"api-key-sample\"><code>",
|
|
56
|
+
"</code></pre><div><button class=\"btn btn-primary\" type=\"button\">",
|
|
57
|
+
"</button> <button class=\"btn\" type=\"button\">",
|
|
58
|
+
"</button></div></div>"
|
|
59
|
+
];
|
|
60
|
+
var _tmpl$6 = [
|
|
61
|
+
"<div",
|
|
62
|
+
" class=\"resource-hub api-keys-manager\"><!--$-->",
|
|
63
|
+
"<!--/--><!--$-->",
|
|
64
|
+
"<!--/--><div class=\"card-header-row\"><div><h3>",
|
|
65
|
+
"</h3><p class=\"muted\">",
|
|
66
|
+
"</p></div><button class=\"btn btn-primary\" type=\"button\">",
|
|
67
|
+
"</button></div><!--$-->",
|
|
68
|
+
"<!--/--><section class=\"card\">",
|
|
69
|
+
"</section><!--$-->",
|
|
70
|
+
"<!--/--><style>.api-key-sample{background:var(--color-surface-muted,#f5f5f5);border:1px solid var(--color-border,#dcdcde);border-radius:4px;padding:.6rem;overflow:auto;font-size:.8rem;white-space:pre-wrap;word-break:break-all}.api-keys-manager .modal-body{display:grid;gap:.75rem;padding:1rem}</style></div>"
|
|
71
|
+
];
|
|
72
|
+
var _tmpl$7 = [
|
|
73
|
+
"<option",
|
|
74
|
+
" value>",
|
|
75
|
+
"</option>"
|
|
76
|
+
];
|
|
77
|
+
var _tmpl$8 = [
|
|
78
|
+
"<option",
|
|
79
|
+
"><!--$-->",
|
|
80
|
+
"<!--/--> (<!--$-->",
|
|
81
|
+
"<!--/-->)</option>"
|
|
82
|
+
];
|
|
83
|
+
var _tmpl$9 = [
|
|
84
|
+
"<p",
|
|
85
|
+
">",
|
|
86
|
+
"</p>"
|
|
87
|
+
];
|
|
88
|
+
var _tmpl$0 = [
|
|
89
|
+
"<span",
|
|
90
|
+
">",
|
|
91
|
+
"</span>"
|
|
92
|
+
];
|
|
93
|
+
var _tmpl$1 = [
|
|
94
|
+
"<button",
|
|
95
|
+
" class=\"btn btn-danger\" type=\"button\">",
|
|
96
|
+
"</button>"
|
|
97
|
+
];
|
|
98
|
+
var _tmpl$10 = [
|
|
99
|
+
"<tr",
|
|
100
|
+
"><td>",
|
|
101
|
+
"</td><td>",
|
|
102
|
+
"</td><td><code>okcms_<!--$-->",
|
|
103
|
+
"<!--/-->_…</code></td><td>",
|
|
104
|
+
"</td><td>",
|
|
105
|
+
"</td><td>",
|
|
106
|
+
"</td></tr>"
|
|
107
|
+
];
|
|
108
|
+
var _tmpl$11 = [
|
|
109
|
+
"<span",
|
|
110
|
+
" class=\"notice notice--error\">",
|
|
111
|
+
"</span>"
|
|
112
|
+
];
|
|
113
|
+
function formatDate(value) {
|
|
114
|
+
if (!value) return "—";
|
|
115
|
+
const date = new Date(value);
|
|
116
|
+
return Number.isNaN(date.getTime()) ? "—" : date.toLocaleString();
|
|
117
|
+
}
|
|
118
|
+
function ApiKeysManager() {
|
|
119
|
+
const { t } = useTranslation();
|
|
120
|
+
const [keys, setKeys] = createSignal([]);
|
|
121
|
+
const [users, setUsers] = createSignal([]);
|
|
122
|
+
const [form, setForm] = createSignal(null);
|
|
123
|
+
const [created, setCreated] = createSignal(null);
|
|
124
|
+
const [error, setError] = createSignal("");
|
|
125
|
+
const [notice, setNotice] = createSignal("");
|
|
126
|
+
const [loading, setLoading] = createSignal(true);
|
|
127
|
+
const [copied, setCopied] = createSignal(false);
|
|
128
|
+
const load = async () => {
|
|
129
|
+
setLoading(true);
|
|
130
|
+
try {
|
|
131
|
+
const list = await apiClient.getApiKeys();
|
|
132
|
+
setKeys(list);
|
|
133
|
+
} catch (err) {
|
|
134
|
+
setError(err instanceof Error ? err.message : String(err));
|
|
135
|
+
} finally {
|
|
136
|
+
setLoading(false);
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
onMount(() => {
|
|
140
|
+
load();
|
|
141
|
+
apiClient.listUsers({
|
|
142
|
+
limit: 100,
|
|
143
|
+
status: "ACTIVE"
|
|
144
|
+
}).then((res) => setUsers(res.data ?? [])).catch(() => setUsers([]));
|
|
145
|
+
});
|
|
146
|
+
const closeCreated = () => {
|
|
147
|
+
setCreated(null);
|
|
148
|
+
setCopied(false);
|
|
149
|
+
};
|
|
150
|
+
const ownerName = (key) => {
|
|
151
|
+
const user = users().find((entry) => entry.id === key.user_id);
|
|
152
|
+
return user ? user.name : key.user_id ?? "—";
|
|
153
|
+
};
|
|
154
|
+
return ssr(_tmpl$6, ssrHydrationKey(), escape(createComponent(Show, {
|
|
155
|
+
get when() {
|
|
156
|
+
return error();
|
|
157
|
+
},
|
|
158
|
+
get children() {
|
|
159
|
+
return ssr(_tmpl$, ssrHydrationKey(), escape(error()));
|
|
160
|
+
}
|
|
161
|
+
})), escape(createComponent(Show, {
|
|
162
|
+
get when() {
|
|
163
|
+
return notice();
|
|
164
|
+
},
|
|
165
|
+
get children() {
|
|
166
|
+
return ssr(_tmpl$2, ssrHydrationKey(), escape(notice()));
|
|
167
|
+
}
|
|
168
|
+
})), escape(t("apiKeys.listTitle")), escape(t("apiKeys.howItWorks")), escape(t("apiKeys.new")), escape(createComponent(Show, {
|
|
169
|
+
get when() {
|
|
170
|
+
return form();
|
|
171
|
+
},
|
|
172
|
+
get children() {
|
|
173
|
+
return ssr(_tmpl$3, ssrHydrationKey(), escape(t("apiKeys.create")), escape(t("apiKeys.form.name")), ssrAttribute("value", escape(form()?.name ?? "", true), false) + ssrAttribute("placeholder", escape(t("apiKeys.form.namePlaceholder"), true), false), escape(t("apiKeys.form.user")), ssrAttribute("value", escape(form()?.userId ?? "", true), false), escape(createComponent(Show, {
|
|
174
|
+
get when() {
|
|
175
|
+
return users().length > 0;
|
|
176
|
+
},
|
|
177
|
+
get fallback() {
|
|
178
|
+
return ssr(_tmpl$7, ssrHydrationKey(), escape(t("apiKeys.form.currentUser")));
|
|
179
|
+
},
|
|
180
|
+
get children() {
|
|
181
|
+
return createComponent(For, {
|
|
182
|
+
get each() {
|
|
183
|
+
return users();
|
|
184
|
+
},
|
|
185
|
+
children: (user) => ssr(_tmpl$8, ssrHydrationKey() + ssrAttribute("value", escape(user.id, true), false), escape(user.name), escape(user.email))
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
})), escape(t("apiKeys.form.expiresAt")), ssrAttribute("value", escape(form()?.expiresAt ?? "", true), false), ssrAttribute("checked", form()?.oneTime ?? false, true), escape(t("apiKeys.form.oneTime")), escape(t("apiKeys.form.oneTimeHint")), escape(t("apiKeys.createSubmit")), escape(t("common.cancel")));
|
|
189
|
+
}
|
|
190
|
+
})), escape(createComponent(Show, {
|
|
191
|
+
get when() {
|
|
192
|
+
return !loading();
|
|
193
|
+
},
|
|
194
|
+
get fallback() {
|
|
195
|
+
return ssr(_tmpl$9, ssrHydrationKey(), escape(t("apiKeys.loading")));
|
|
196
|
+
},
|
|
197
|
+
get children() {
|
|
198
|
+
return createComponent(Show, {
|
|
199
|
+
get when() {
|
|
200
|
+
return keys().length > 0;
|
|
201
|
+
},
|
|
202
|
+
get fallback() {
|
|
203
|
+
return ssr(_tmpl$9, ssrHydrationKey(), escape(t("apiKeys.empty")));
|
|
204
|
+
},
|
|
205
|
+
get children() {
|
|
206
|
+
return ssr(_tmpl$4, ssrHydrationKey(), escape(t("apiKeys.form.name")), escape(t("apiKeys.form.user")), escape(t("apiKeys.prefix")), escape(t("apiKeys.lastUsed")), escape(t("apiKeys.status")), escape(t("common.actions")), escape(createComponent(For, {
|
|
207
|
+
get each() {
|
|
208
|
+
return keys();
|
|
209
|
+
},
|
|
210
|
+
children: (key) => ssr(_tmpl$10, ssrHydrationKey(), escape(key.name), escape(ownerName(key)), escape(key.key_prefix), key.last_used_at ? escape(formatDate(key.last_used_at)) : escape(t("apiKeys.neverUsed")), escape(createComponent(Show, {
|
|
211
|
+
get when() {
|
|
212
|
+
return !key.revoked_at;
|
|
213
|
+
},
|
|
214
|
+
get fallback() {
|
|
215
|
+
return ssr(_tmpl$11, ssrHydrationKey(), escape(t("apiKeys.status.revoked")));
|
|
216
|
+
},
|
|
217
|
+
get children() {
|
|
218
|
+
return createComponent(Show, {
|
|
219
|
+
get when() {
|
|
220
|
+
return memo(() => !!key.expires_at)() && new Date(key.expires_at).getTime() <= Date.now();
|
|
221
|
+
},
|
|
222
|
+
get fallback() {
|
|
223
|
+
return ssr(_tmpl$0, ssrHydrationKey(), key.one_time ? escape(t("apiKeys.status.oneTime")) : escape(t("apiKeys.status.active")));
|
|
224
|
+
},
|
|
225
|
+
get children() {
|
|
226
|
+
return ssr(_tmpl$0, ssrHydrationKey(), escape(t("apiKeys.status.expired")));
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
})), escape(createComponent(Show, {
|
|
231
|
+
get when() {
|
|
232
|
+
return !key.revoked_at;
|
|
233
|
+
},
|
|
234
|
+
get children() {
|
|
235
|
+
return ssr(_tmpl$1, ssrHydrationKey(), escape(t("apiKeys.revoke")));
|
|
236
|
+
}
|
|
237
|
+
})))
|
|
238
|
+
})));
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
})), escape(createComponent(Modal, {
|
|
243
|
+
get open() {
|
|
244
|
+
return !!created();
|
|
245
|
+
},
|
|
246
|
+
onClose: closeCreated,
|
|
247
|
+
get title() {
|
|
248
|
+
return t("apiKeys.created.title");
|
|
249
|
+
},
|
|
250
|
+
get children() {
|
|
251
|
+
return ssr(_tmpl$5, ssrHydrationKey(), escape(t("apiKeys.created.warning")), escape(t("apiKeys.created.value")), ssrAttribute("value", escape(created()?.plaintext ?? "", true), false), escape(t("apiKeys.created.howToUse")), `POST /api/v1/auth/api-key-login\n{ "apiKey": "${escape(created()?.plaintext ?? "")}" }`, copied() ? escape(t("apiKeys.created.copied")) : escape(t("apiKeys.created.copy")), escape(t("common.close")));
|
|
252
|
+
}
|
|
253
|
+
})));
|
|
254
|
+
}
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region src/pages/settings/api-keys.astro
|
|
257
|
+
var api_keys_exports = /* @__PURE__ */ __exportAll({
|
|
258
|
+
default: () => $$ApiKeys,
|
|
259
|
+
file: () => $$file,
|
|
260
|
+
url: () => $$url
|
|
261
|
+
});
|
|
262
|
+
createAstro("https://astro.build");
|
|
263
|
+
var $$ApiKeys = createComponent$1(($$result, $$props, $$slots) => {
|
|
264
|
+
const Astro = $$result.createAstro($$props, $$slots);
|
|
265
|
+
Astro.self = $$ApiKeys;
|
|
266
|
+
const { t } = Astro.locals;
|
|
267
|
+
return renderTemplate`${renderComponent($$result, "DashboardLayout", $$DashboardLayout, { "title": t("apiKeys.title") }, { "default": ($$result) => renderTemplate`${renderComponent($$result, "PageHeader", PageHeader, {
|
|
268
|
+
"title": t("apiKeys.title"),
|
|
269
|
+
"description": t("apiKeys.description")
|
|
270
|
+
})}${renderComponent($$result, "ApiKeysManager", ApiKeysManager, {
|
|
271
|
+
"client:load": true,
|
|
272
|
+
"client:component-hydration": "load",
|
|
273
|
+
"client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/apps/settings/ApiKeysManager.tsx",
|
|
274
|
+
"client:component-export": "ApiKeysManager"
|
|
275
|
+
})}` })}`;
|
|
276
|
+
}, "/home/runner/work/cms/cms/apps/admin/src/pages/settings/api-keys.astro", void 0);
|
|
277
|
+
var $$file = "/home/runner/work/cms/cms/apps/admin/src/pages/settings/api-keys.astro";
|
|
278
|
+
var $$url = "/settings/api-keys";
|
|
279
|
+
//#endregion
|
|
280
|
+
//#region \0virtual:astro:page:src/pages/settings/api-keys@_@astro
|
|
281
|
+
var page = () => api_keys_exports;
|
|
282
|
+
//#endregion
|
|
283
|
+
export { page };
|
|
@@ -1,8 +1,8 @@
|
|
|
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$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_CItvcX64.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_D-AI4SdO.mjs";
|
|
6
6
|
import { t as FbIcon } from "./FbIcon_D0f6QiFJ.mjs";
|
|
7
7
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
8
8
|
import { For, Show, createMemo, 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_D-AI4SdO.mjs";
|
|
5
|
+
import { t as ContentEditor } from "./ContentEditor_BLL0Q9aT.mjs";
|
|
6
6
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
7
|
//#region src/pages/content/[type]/edit.astro
|
|
8
8
|
var edit_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,19 +1,24 @@
|
|
|
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$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 "./
|
|
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 "./
|
|
4
|
+
import { a as LOCALE_LABELS, i as LOCALE_FLAGS, n as useTranslation, o as SUPPORTED_LOCALES, r as apiClient } from "./i18n_CItvcX64.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_D-AI4SdO.mjs";
|
|
6
6
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
|
+
import { t as FloatingPanel } from "./FloatingPanel_DI2CdUZK.mjs";
|
|
7
8
|
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
8
|
-
import { For, Show, createMemo, createSignal
|
|
9
|
+
import { For, Show, createMemo, createSignal } from "solid-js";
|
|
9
10
|
//#region src/components/apps/settings/TimezoneSelect.tsx
|
|
10
11
|
var _tmpl$$1 = [
|
|
11
|
-
"<
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"</div></div>"
|
|
12
|
+
"<input",
|
|
13
|
+
" type=\"search\" class=\"input tz-select__search\"",
|
|
14
|
+
">"
|
|
15
15
|
];
|
|
16
16
|
var _tmpl$2$1 = [
|
|
17
|
+
"<div",
|
|
18
|
+
" class=\"tz-select__options\">",
|
|
19
|
+
"</div>"
|
|
20
|
+
];
|
|
21
|
+
var _tmpl$3$1 = [
|
|
17
22
|
"<div",
|
|
18
23
|
" class=\"tz-select\"><button type=\"button\" class=\"input tz-select__trigger\" aria-haspopup=\"listbox\"",
|
|
19
24
|
"><span class=\"tz-select__value\">",
|
|
@@ -21,8 +26,8 @@ var _tmpl$2$1 = [
|
|
|
21
26
|
"</span></button><!--$-->",
|
|
22
27
|
"<!--/--></div>"
|
|
23
28
|
];
|
|
24
|
-
var _tmpl$
|
|
25
|
-
var _tmpl$
|
|
29
|
+
var _tmpl$4$1 = ["<p", " class=\"tz-select__empty\">—</p>"];
|
|
30
|
+
var _tmpl$5$1 = [
|
|
26
31
|
"<button",
|
|
27
32
|
" type=\"button\" role=\"option\"",
|
|
28
33
|
" class=\"",
|
|
@@ -74,6 +79,7 @@ var normalize = (text) => text.toLowerCase().replace(/[/_\-]/g, " ");
|
|
|
74
79
|
function TimezoneSelect(props) {
|
|
75
80
|
const [open, setOpen] = createSignal(false);
|
|
76
81
|
const [query, setQuery] = createSignal("");
|
|
82
|
+
const [trigger, setTrigger] = createSignal(void 0);
|
|
77
83
|
const options = createMemo(() => buildTimezoneOptions());
|
|
78
84
|
const selected = createMemo(() => options().find((option) => option.tz === props.value));
|
|
79
85
|
const filtered = createMemo(() => {
|
|
@@ -81,39 +87,37 @@ function TimezoneSelect(props) {
|
|
|
81
87
|
if (!q) return options();
|
|
82
88
|
return options().filter((option) => normalize(option.label).includes(q));
|
|
83
89
|
});
|
|
84
|
-
|
|
85
|
-
|
|
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() {
|
|
90
|
+
return ssr(_tmpl$3$1, ssrHydrationKey(), ssrAttribute("aria-expanded", escape(open(), true), false), escape(selected()?.label ?? props.placeholder ?? ""), open() ? "▴" : "▾", escape(createComponent(FloatingPanel, {
|
|
91
|
+
get open() {
|
|
98
92
|
return open();
|
|
99
93
|
},
|
|
94
|
+
get trigger() {
|
|
95
|
+
return trigger();
|
|
96
|
+
},
|
|
97
|
+
onClose: () => {
|
|
98
|
+
setOpen(false);
|
|
99
|
+
setQuery("");
|
|
100
|
+
},
|
|
101
|
+
"class": "tz-select__panel",
|
|
102
|
+
role: "listbox",
|
|
103
|
+
minWidth: 320,
|
|
100
104
|
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, {
|
|
105
|
+
return [ssr(_tmpl$$1, ssrHydrationKey(), ssrAttribute("placeholder", escape(props.searchPlaceholder ?? props.placeholder ?? "", true), false) + ssrAttribute("value", escape(query(), true), false)), ssr(_tmpl$2$1, ssrHydrationKey(), escape(createComponent(Show, {
|
|
102
106
|
get when() {
|
|
103
107
|
return filtered().length > 0;
|
|
104
108
|
},
|
|
105
109
|
get fallback() {
|
|
106
|
-
return ssr(_tmpl$
|
|
110
|
+
return ssr(_tmpl$4$1, ssrHydrationKey());
|
|
107
111
|
},
|
|
108
112
|
get children() {
|
|
109
113
|
return createComponent(For, {
|
|
110
114
|
get each() {
|
|
111
115
|
return filtered();
|
|
112
116
|
},
|
|
113
|
-
children: (option) => ssr(_tmpl$
|
|
117
|
+
children: (option) => ssr(_tmpl$5$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
118
|
});
|
|
115
119
|
}
|
|
116
|
-
})));
|
|
120
|
+
})))];
|
|
117
121
|
}
|
|
118
122
|
})));
|
|
119
123
|
}
|
|
@@ -90,7 +90,7 @@ async function loadLocale(locale) {
|
|
|
90
90
|
"./locales/it.json": () => import("./it_CMLpQyoj.mjs"),
|
|
91
91
|
"./locales/ja.json": () => import("./ja_CYRz0pHv.mjs"),
|
|
92
92
|
"./locales/pl.json": () => import("./pl_BuXVPvU1.mjs"),
|
|
93
|
-
"./locales/pt-BR.json": () => import("./pt-
|
|
93
|
+
"./locales/pt-BR.json": () => import("./pt-BR_DpWzkRv5.mjs"),
|
|
94
94
|
"./locales/ru.json": () => import("./ru_C56ltukG.mjs"),
|
|
95
95
|
"./locales/sw.json": () => import("./sw_Dhw0GAgD.mjs"),
|
|
96
96
|
"./locales/tr.json": () => import("./tr_zELRy7A-.mjs"),
|
|
@@ -386,7 +386,7 @@ var ApiClient = class {
|
|
|
386
386
|
const url = joinApiUrl(this.baseUrl, path);
|
|
387
387
|
const send = async () => {
|
|
388
388
|
const requestHeaders = { ...headers };
|
|
389
|
-
if (options?.bodyInit !== void 0 || body !== void 0) requestHeaders["Content-Type"] = "application/json";
|
|
389
|
+
if ((options?.bodyInit !== void 0 || body !== void 0) && options?.bodyInit === void 0) requestHeaders["Content-Type"] = "application/json";
|
|
390
390
|
if (![
|
|
391
391
|
"GET",
|
|
392
392
|
"HEAD",
|
|
@@ -628,6 +628,16 @@ var ApiClient = class {
|
|
|
628
628
|
async deleteWebhook(id) {
|
|
629
629
|
await this.request("DELETE", `/api/v1/webhooks/${id}`);
|
|
630
630
|
}
|
|
631
|
+
async getApiKeys() {
|
|
632
|
+
return this.request("GET", "/api/v1/api-keys");
|
|
633
|
+
}
|
|
634
|
+
/** A resposta traz `plaintext` — único momento em que o valor claro existe. */
|
|
635
|
+
async createApiKey(data) {
|
|
636
|
+
return this.request("POST", "/api/v1/api-keys", data);
|
|
637
|
+
}
|
|
638
|
+
async deleteApiKey(id) {
|
|
639
|
+
await this.request("DELETE", `/api/v1/api-keys/${id}`);
|
|
640
|
+
}
|
|
631
641
|
async listMedia(options) {
|
|
632
642
|
const params = new URLSearchParams();
|
|
633
643
|
if (options?.page) params.set("page", String(options.page));
|
|
@@ -848,6 +858,7 @@ var en_exports = /* @__PURE__ */ __exportAll({
|
|
|
848
858
|
access: () => access,
|
|
849
859
|
activity: () => activity,
|
|
850
860
|
adminBar: () => adminBar,
|
|
861
|
+
apiKeys: () => apiKeys,
|
|
851
862
|
common: () => common,
|
|
852
863
|
content: () => content,
|
|
853
864
|
dashboard: () => dashboard,
|
|
@@ -1224,8 +1235,36 @@ var access = {
|
|
|
1224
1235
|
"description": "Manage roles, permissions and tenants.",
|
|
1225
1236
|
"roles": "Roles",
|
|
1226
1237
|
"tenants": "Tenants",
|
|
1227
|
-
"permissions": "Permissions
|
|
1228
|
-
"domain": "Domain"
|
|
1238
|
+
"permissions": "Permissions",
|
|
1239
|
+
"domain": "Domain",
|
|
1240
|
+
"permissionsPlaceholder": "No permissions selected",
|
|
1241
|
+
"permissionsSummary": "{resources} resources · {count} permissions",
|
|
1242
|
+
"permissionSearch": "Filter resources…",
|
|
1243
|
+
"permissionNoMatches": "No resource matches.",
|
|
1244
|
+
"customPermissions": "Custom permissions",
|
|
1245
|
+
"customPermission": "permission:resource",
|
|
1246
|
+
"permissionsSelected": "{count} selected",
|
|
1247
|
+
"newRole": "New role",
|
|
1248
|
+
"editRole": "Edit role",
|
|
1249
|
+
"newTenant": "New tenant",
|
|
1250
|
+
"editTenant": "Edit tenant",
|
|
1251
|
+
"resources": {
|
|
1252
|
+
"content": "Content",
|
|
1253
|
+
"media": "Media",
|
|
1254
|
+
"category": "Categories",
|
|
1255
|
+
"tag": "Tags",
|
|
1256
|
+
"menu": "Menus",
|
|
1257
|
+
"user": "Users",
|
|
1258
|
+
"roles": "Roles",
|
|
1259
|
+
"theme": "Themes",
|
|
1260
|
+
"plugin": "Plugins",
|
|
1261
|
+
"setting": "Settings",
|
|
1262
|
+
"webhook": "Webhooks",
|
|
1263
|
+
"tenants": "Tenants",
|
|
1264
|
+
"audit": "Audit",
|
|
1265
|
+
"build": "Builds",
|
|
1266
|
+
"system": "System"
|
|
1267
|
+
}
|
|
1229
1268
|
};
|
|
1230
1269
|
var logs = {
|
|
1231
1270
|
"title": "Logs",
|
|
@@ -1282,6 +1321,46 @@ var webhooks = {
|
|
|
1282
1321
|
"hmac_sha256": "HMAC SHA-256"
|
|
1283
1322
|
}
|
|
1284
1323
|
};
|
|
1324
|
+
var apiKeys = {
|
|
1325
|
+
"title": "API keys",
|
|
1326
|
+
"description": "Issue one-time credentials so external apps can exchange an API key for access and refresh JWTs and consume the content API.",
|
|
1327
|
+
"howItWorks": "The key is used only once, at POST /api/v1/auth/api-key-login, to obtain JWTs. It never authorizes requests directly.",
|
|
1328
|
+
"listTitle": "Issued keys",
|
|
1329
|
+
"new": "New API key",
|
|
1330
|
+
"create": "Create API key",
|
|
1331
|
+
"createSubmit": "Create key",
|
|
1332
|
+
"prefix": "Prefix",
|
|
1333
|
+
"lastUsed": "Last used",
|
|
1334
|
+
"neverUsed": "Never used",
|
|
1335
|
+
"revoke": "Revoke",
|
|
1336
|
+
"revoked": "API key revoked.",
|
|
1337
|
+
"loading": "Loading API keys…",
|
|
1338
|
+
"empty": "No API keys issued.",
|
|
1339
|
+
"status": {
|
|
1340
|
+
"active": "Active",
|
|
1341
|
+
"oneTime": "Single-use",
|
|
1342
|
+
"expired": "Expired",
|
|
1343
|
+
"revoked": "Revoked"
|
|
1344
|
+
},
|
|
1345
|
+
"form": {
|
|
1346
|
+
"name": "Name",
|
|
1347
|
+
"namePlaceholder": "e.g. Mobile app backend",
|
|
1348
|
+
"user": "Identity (user)",
|
|
1349
|
+
"currentUser": "Current user",
|
|
1350
|
+
"expiresAt": "Expires at (optional)",
|
|
1351
|
+
"oneTime": "Single-use (revoke automatically after the first login)",
|
|
1352
|
+
"oneTimeHint": "Recommended for integrations that can exchange the key for JWTs immediately."
|
|
1353
|
+
},
|
|
1354
|
+
"errors": { "nameRequired": "Name is required." },
|
|
1355
|
+
"created": {
|
|
1356
|
+
"title": "API key created",
|
|
1357
|
+
"warning": "Copy this value now — it will never be shown again. If you lose it, revoke the key and create a new one.",
|
|
1358
|
+
"value": "API key",
|
|
1359
|
+
"howToUse": "Use it once to obtain JWTs:",
|
|
1360
|
+
"copy": "Copy",
|
|
1361
|
+
"copied": "Copied!"
|
|
1362
|
+
}
|
|
1363
|
+
};
|
|
1285
1364
|
var plugins = {
|
|
1286
1365
|
"title": "Plugins",
|
|
1287
1366
|
"description": "Manage installed plugins.",
|
|
@@ -1411,7 +1490,8 @@ var common = {
|
|
|
1411
1490
|
},
|
|
1412
1491
|
"language": "Language",
|
|
1413
1492
|
"refresh": "Refresh",
|
|
1414
|
-
"actions": "Actions"
|
|
1493
|
+
"actions": "Actions",
|
|
1494
|
+
"add": "Add"
|
|
1415
1495
|
};
|
|
1416
1496
|
var activity = {
|
|
1417
1497
|
"justNow": "just now",
|
|
@@ -1474,6 +1554,7 @@ var en_default = {
|
|
|
1474
1554
|
access,
|
|
1475
1555
|
logs,
|
|
1476
1556
|
webhooks,
|
|
1557
|
+
apiKeys,
|
|
1477
1558
|
plugins,
|
|
1478
1559
|
themes,
|
|
1479
1560
|
notFound,
|
|
@@ -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_D-AI4SdO.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({
|
|
@@ -21,7 +21,7 @@ var $$Index = createComponent(($$result, $$props, $$slots) => {
|
|
|
21
21
|
"title": t("settings.general.title"),
|
|
22
22
|
"description": t("settings.general.description"),
|
|
23
23
|
"data-astro-cid-pvy7orjg": true
|
|
24
|
-
})}${maybeRenderHead($$result)}<div class="settings-cards" data-astro-cid-pvy7orjg><a class="card settings-card" href="/settings/general" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("settings.general.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("settings.general.fields.siteTitle")}, ${t("settings.general.fields.siteDescription")}, ${t("settings.general.fields.language")} e ${t("settings.general.fields.timezone")} do site.</p></a><a class="card settings-card" href="/settings/post-types" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("settings.postTypes.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("settings.postTypes.description")}</p></a><a class="card settings-card" href="/settings/taxonomies" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("settings.taxonomies.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("settings.taxonomies.description")}</p></a><a class="card settings-card" href="/settings/custom-fields" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("settings.customFields.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("settings.customFields.description")}</p></a><a class="card settings-card" href="/settings/access" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("access.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("access.description")}</p></a><a class="card settings-card" href="/settings/logs" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("logs.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("logs.description")}</p></a><a class="card settings-card" href="/settings/webhooks" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("webhooks.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("webhooks.description")}</p></a></div>` })}`;
|
|
24
|
+
})}${maybeRenderHead($$result)}<div class="settings-cards" data-astro-cid-pvy7orjg><a class="card settings-card" href="/settings/general" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("settings.general.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("settings.general.fields.siteTitle")}, ${t("settings.general.fields.siteDescription")}, ${t("settings.general.fields.language")} e ${t("settings.general.fields.timezone")} do site.</p></a><a class="card settings-card" href="/settings/post-types" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("settings.postTypes.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("settings.postTypes.description")}</p></a><a class="card settings-card" href="/settings/taxonomies" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("settings.taxonomies.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("settings.taxonomies.description")}</p></a><a class="card settings-card" href="/settings/custom-fields" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("settings.customFields.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("settings.customFields.description")}</p></a><a class="card settings-card" href="/settings/access" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("access.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("access.description")}</p></a><a class="card settings-card" href="/settings/logs" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("logs.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("logs.description")}</p></a><a class="card settings-card" href="/settings/webhooks" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("webhooks.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("webhooks.description")}</p></a><a class="card settings-card" href="/settings/api-keys" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("apiKeys.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("apiKeys.description")}</p></a></div>` })}`;
|
|
25
25
|
}, "/home/runner/work/cms/cms/apps/admin/src/pages/settings/index.astro", void 0);
|
|
26
26
|
var $$file = "/home/runner/work/cms/cms/apps/admin/src/pages/settings/index.astro";
|
|
27
27
|
var $$url = "/settings";
|
|
@@ -1,8 +1,8 @@
|
|
|
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$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_CItvcX64.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_D-AI4SdO.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,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$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as useTranslation, r as apiClient } 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 "./
|
|
6
|
-
import { t as ContentEditor } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_CItvcX64.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 "./DashboardLayout_D-AI4SdO.mjs";
|
|
6
|
+
import { t as ContentEditor } from "./ContentEditor_BLL0Q9aT.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";
|
|
@@ -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_D-AI4SdO.mjs";
|
|
5
5
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
6
|
-
import { t as MediaLibrary } from "./
|
|
6
|
+
import { t as MediaLibrary } from "./MediaLibrary_BPSHokdn.mjs";
|
|
7
7
|
//#region src/pages/media/index.astro
|
|
8
8
|
var media_exports = /* @__PURE__ */ __exportAll({
|
|
9
9
|
default: () => $$Index,
|
|
@@ -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$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as useTranslation, r as apiClient } 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 "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_CItvcX64.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 "./DashboardLayout_D-AI4SdO.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,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_BlxsDTAd.mjs";
|
|
5
5
|
//#region src/pages/login.astro
|
|
6
6
|
var login_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
default: () => $$Login,
|