@oktis-works/admin 0.8.7 → 0.9.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 +16 -0
- package/dist/client/_astro/{AdminBar.5-l0PBZz.js → AdminBar.DbabNkmU.js} +2 -2
- package/dist/client/_astro/{AtGlanceWidget.B5ytZ8mp.js → AtGlanceWidget.C7QyOZnc.js} +3 -3
- package/dist/client/_astro/BaseLayout.CgLTOe_a.css +1 -0
- package/dist/client/_astro/{ContentEditor.CQ2OYPHn.js → ContentEditor.BCy7gbzZ.js} +2 -2
- package/dist/client/_astro/ContentEditor.BlRm9ezb.js +1 -0
- package/dist/client/_astro/{ContentTypeWorkspace.CdsUQQfa.js → ContentTypeWorkspace.BF8WjCDy.js} +1 -1
- package/dist/client/_astro/{DashboardHome.BYOWl94l.js → DashboardHome.C2TVw1TO.js} +1 -1
- package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.PXk2X2qN.js +1 -0
- package/dist/client/_astro/FbIcon.DFmK-EWG.js +1 -0
- package/dist/client/_astro/{FieldGroupEditor.5iB_mZUP.js → FieldGroupEditor.CcxZuz0o.js} +3 -3
- package/dist/client/_astro/{FieldGroupList.CN3KGhw5.js → FieldGroupList.DrhO-iww.js} +1 -1
- package/dist/client/_astro/{Footer.CnuW-fOP.js → Footer.Uc7SesWM.js} +2 -2
- package/dist/client/_astro/GeneralSettings.Bxn673WF.js +1 -0
- package/dist/client/_astro/{LogsManager.C3XW2Gze.js → LogsManager.DF_3DQlY.js} +1 -1
- package/dist/client/_astro/{MediaLibrary.bx1yD6aC.js → MediaLibrary._7sCWvNs.js} +1 -1
- package/dist/client/_astro/{MenuManager.Bl_gpt5T.js → MenuManager.Cy7xyr2l.js} +1 -1
- package/dist/client/_astro/{PluginManager.ClpQA_a-.js → PluginManager.3qXWwYBV.js} +2 -2
- package/dist/client/_astro/PostTypesManager.BAXkf__Y.js +1 -0
- package/dist/client/_astro/{QuickDraftWidget.Gjzwimmf.js → QuickDraftWidget.ux_yGWpX.js} +2 -2
- package/dist/client/_astro/{ResourceHubs.D11v_J8D.js → ResourceHubs.Dhx1kbfj.js} +1 -1
- package/dist/client/_astro/{TaxonomiesManager.DAC1s3aS.js → TaxonomiesManager.BYTDEeNU.js} +1 -1
- package/dist/client/_astro/{TaxonomyTermsManager.RsO79xRU.js → TaxonomyTermsManager.DBb5gB5l.js} +1 -1
- package/dist/client/_astro/{ThemeManager.BO-12WST.js → ThemeManager.DVBYapuE.js} +2 -2
- package/dist/client/_astro/{UserCreateForm.CSYbfU4r.js → UserCreateForm.CTr8bSlL.js} +1 -1
- package/dist/client/_astro/{UsersManager.GrlsCN-n.js → UsersManager.BfPqZNy7.js} +1 -1
- package/dist/client/_astro/{WebhooksManager.BNaGM-w5.js → WebhooksManager.DPAWAObu.js} +1 -1
- package/dist/client/_astro/api.CNp-a9Z3.js +1 -0
- package/dist/client/_astro/{ar.9BcNkJMI.js → ar.BeEmOTlL.js} +1 -1
- package/dist/client/_astro/{client.DWJHz38V.js → client.m5rScAmr.js} +1 -1
- package/dist/client/_astro/{es-ES.DgqDFCmG.js → es-ES.C0DI0CK6.js} +1 -1
- package/dist/client/_astro/{extensions.CpcwMaUF.js → extensions.CenNQy0u.js} +1 -1
- package/dist/client/_astro/{he.11dIJHQw.js → he.RF4swhtn.js} +1 -1
- package/dist/client/_astro/i18n.CXvd48vy.js +1 -0
- package/dist/client/_astro/{it.yCdgk3Xj.js → it.DhCR9YsW.js} +1 -1
- package/dist/client/_astro/{ja.BIm7Hwe_.js → ja.DPrxHQvU.js} +1 -1
- package/dist/client/_astro/{login.astro_astro_type_script_index_0_lang.D7pjn1zG.js → login.astro_astro_type_script_index_0_lang.Dni6a5dD.js} +1 -1
- package/dist/client/_astro/{pl.dUwrcITB.js → pl.6VCoPa7y.js} +1 -1
- package/dist/client/_astro/pt-BR.B-uijFlj.js +1 -0
- package/dist/client/_astro/{ru.lmDiQaSu.js → ru.Cv0Z6X2y.js} +1 -1
- package/dist/client/_astro/{src.BJaHBCQK.js → src.DksrLolD.js} +1 -1
- package/dist/client/_astro/{sw._qHdoFbp.js → sw.BBMIgY-Y.js} +1 -1
- package/dist/client/_astro/{tr.Do-lr98T.js → tr.BWEmWhCE.js} +1 -1
- package/dist/client/_astro/{uk.DTUX-N1c.js → uk.DDXJXOmn.js} +1 -1
- package/dist/client/_astro/web.DB4MaPY9.js +1 -0
- package/dist/client/_astro/{yo.BIYG0J7I.js → yo.DNoEBLJd.js} +1 -1
- package/dist/client/_astro/{zh-CN.C7Iod1E1.js → zh-CN.CVKBB6Ky.js} +1 -1
- package/dist/server/chunks/404_DIfrzRRM.mjs +56 -0
- package/dist/server/chunks/{BaseLayout_mNhoDiMR.mjs → BaseLayout_CmMnXoh2.mjs} +4 -4
- package/dist/server/chunks/{ContentEditor_DLQV2GHu.mjs → ContentEditor_CrP88U9K.mjs} +2 -2
- package/dist/server/chunks/{DashboardLayout_CGggEut2.mjs → DashboardLayout_C6I2H2jO.mjs} +12 -8
- package/dist/server/chunks/{MediaLibrary_tpZAEUHh.mjs → MediaLibrary_c4bl4fTY.mjs} +2 -2
- package/dist/server/chunks/{_id__ByUunzUm.mjs → _id__C2MAQ-Pj.mjs} +2 -2
- package/dist/server/chunks/{_slug__BSjoZ5ou.mjs → _slug__CR0j3J9V.mjs} +1 -1
- package/dist/server/chunks/{access_Cemph0zm.mjs → access_bpmBW03n.mjs} +2 -2
- package/dist/server/chunks/{ar_DlCzOUGe.mjs → ar_DObFFdrO.mjs} +10 -1
- package/dist/server/chunks/{custom-fields_D5clxJVf.mjs → custom-fields_BPduH9VI.mjs} +2 -2
- package/dist/server/chunks/{edit_C5a8Q5Ge.mjs → edit_CJdKxNhx.mjs} +2 -2
- package/dist/server/chunks/{es-ES_DD40B9Zr.mjs → es-ES_D6jd6T7H.mjs} +10 -1
- package/dist/server/chunks/{general_CuLtpcon.mjs → general_eI-sNsQl.mjs} +2 -2
- package/dist/server/chunks/{he_8WSAyM_S.mjs → he_DwGJwonL.mjs} +10 -1
- package/dist/server/chunks/{i18n_k88p-B6j.mjs → i18n_BqZ4e24O.mjs} +197 -524
- package/dist/server/chunks/{index_DP4dDD-R.mjs → index_BKzgF5qF.mjs} +2 -2
- package/dist/server/chunks/{index_D_UVr3YD.mjs → index_CA70i3-b.mjs} +2 -2
- package/dist/server/chunks/{index_DnAdCTFB.mjs → index_CyKyYL4y.mjs} +2 -2
- package/dist/server/chunks/{index_BiC5Mm4G.mjs → index_Om0n2OAr.mjs} +3 -3
- package/dist/server/chunks/{index_nslucXss.mjs → index_XRE0Vjch.mjs} +1 -1
- package/dist/server/chunks/{it_DEDC6yxf.mjs → it_CMLpQyoj.mjs} +10 -1
- package/dist/server/chunks/{ja_BRQi6rW3.mjs → ja_CYRz0pHv.mjs} +10 -1
- package/dist/server/chunks/{login_Bf5cWCYs.mjs → login_0iFVtfgV.mjs} +1 -1
- package/dist/server/chunks/{logs_DibwgS0j.mjs → logs_D-h53LJu.mjs} +2 -2
- package/dist/server/chunks/{menus_QSYCvi90.mjs → menus_CcCZvv6r.mjs} +2 -2
- package/dist/server/chunks/{new_DGbrZY4T.mjs → new_BmimSObH.mjs} +2 -2
- package/dist/server/chunks/{new_CRPpTn9N.mjs → new_DSopKVB7.mjs} +2 -2
- package/dist/server/chunks/{pl_CKanAk0F.mjs → pl_BuXVPvU1.mjs} +10 -1
- package/dist/server/chunks/{plugins_C9GShj8w.mjs → plugins_MF0XTr5R.mjs} +2 -2
- package/dist/server/chunks/post-types_D5ajDp3x.mjs +384 -0
- package/dist/server/chunks/{pt-BR_X0hfCrsD.mjs → pt-BR_CQndzpOT.mjs} +16 -2
- package/dist/server/chunks/{ru_CuNXt2MB.mjs → ru_C56ltukG.mjs} +10 -1
- package/dist/server/chunks/{sw_RLMWPkos.mjs → sw_Dhw0GAgD.mjs} +10 -1
- package/dist/server/chunks/{taxonomies_BwUwBz95.mjs → taxonomies_CfvbHc_y.mjs} +2 -2
- package/dist/server/chunks/{taxonomy_h8RtMHN4.mjs → taxonomy_DdWpf9lk.mjs} +2 -2
- package/dist/server/chunks/{themes_CG_DSSUL.mjs → themes_DQE1-WCF.mjs} +2 -2
- package/dist/server/chunks/{tr_Dz8pqyTZ.mjs → tr_zELRy7A-.mjs} +10 -1
- package/dist/server/chunks/{uk_BjwqlweA.mjs → uk_DVOqp1x6.mjs} +10 -1
- package/dist/server/chunks/{upload_DABOFBBU.mjs → upload_DjkuLTrW.mjs} +2 -2
- package/dist/server/chunks/{webhooks_DQAwEeKf.mjs → webhooks_NO5wRHnZ.mjs} +2 -2
- package/dist/server/chunks/{yo_Dv14KWVR.mjs → yo_BqgZcoxs.mjs} +10 -1
- package/dist/server/chunks/{zh-CN_DjIZCWzG.mjs → zh-CN_Dz2D1XUc.mjs} +10 -1
- package/dist/server/entry.mjs +74 -47
- package/dist/server/virtual_astro_middleware.mjs +87 -17
- package/package.json +4 -4
- package/dist/client/_astro/ActivityWidget.DFfbrs-K.js +0 -16
- package/dist/client/_astro/BaseLayout.3eIEVCjB.css +0 -1
- package/dist/client/_astro/ContentEditor.DANKVwCI.js +0 -1
- package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.DP7AKyOy.js +0 -1
- package/dist/client/_astro/FbIcon.uhYN8ybK.js +0 -1
- package/dist/client/_astro/GeneralSettings.Dzv_7xWf.js +0 -1
- package/dist/client/_astro/PostTypesManager.BJNKEOXY.js +0 -1
- package/dist/client/_astro/api.D7bs6UOp.js +0 -1
- package/dist/client/_astro/i18n.CjQozXLx.js +0 -1
- package/dist/client/_astro/pt-BR.BnllmbjP.js +0 -1
- package/dist/client/_astro/web.DwNv8rLL.js +0 -1
- package/dist/server/chunks/post-types_yl-VSZfH.mjs +0 -185
|
@@ -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_BqZ4e24O.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_C6I2H2jO.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_C6I2H2jO.mjs";
|
|
5
5
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
6
|
-
import { t as MediaLibrary } from "./
|
|
6
|
+
import { t as MediaLibrary } from "./MediaLibrary_c4bl4fTY.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, 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_BqZ4e24O.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_C6I2H2jO.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_BqZ4e24O.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_C6I2H2jO.mjs";
|
|
6
|
+
import { t as ContentEditor } from "./ContentEditor_CrP88U9K.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,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_C6I2H2jO.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({
|
|
@@ -315,6 +315,14 @@ var settings = {
|
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
};
|
|
318
|
+
var notFound = {
|
|
319
|
+
"title": "Pagina non trovata",
|
|
320
|
+
"description": "L'indirizzo potrebbe essere cambiato o la pagina essere stata spostata. Controlla l'URL o visita una di queste sezioni.",
|
|
321
|
+
"requestedPath": "Hai provato ad aprire",
|
|
322
|
+
"suggestionsLabel": "Oppure visita una di queste sezioni",
|
|
323
|
+
"goHome": "Torna all'inizio",
|
|
324
|
+
"goBack": "Indietro"
|
|
325
|
+
};
|
|
318
326
|
var login = {
|
|
319
327
|
"title": "Accesso",
|
|
320
328
|
"subtitle": "Accedi al tuo account",
|
|
@@ -418,6 +426,7 @@ var it_default = {
|
|
|
418
426
|
media,
|
|
419
427
|
users,
|
|
420
428
|
settings,
|
|
429
|
+
notFound,
|
|
421
430
|
login,
|
|
422
431
|
common,
|
|
423
432
|
activity,
|
|
@@ -427,4 +436,4 @@ var it_default = {
|
|
|
427
436
|
screenOptions
|
|
428
437
|
};
|
|
429
438
|
//#endregion
|
|
430
|
-
export { activity, adminBar, common, content, dashboard, it_default as default, footer, helpTabs, layout, login, media, menus, screenOptions, settings, users };
|
|
439
|
+
export { activity, adminBar, common, content, dashboard, it_default as default, footer, helpTabs, layout, login, media, menus, notFound, screenOptions, settings, users };
|
|
@@ -315,6 +315,14 @@ var settings = {
|
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
};
|
|
318
|
+
var notFound = {
|
|
319
|
+
"title": "ページが見つかりません",
|
|
320
|
+
"description": "アドレスが古いか、ページが移動された可能性があります。URL を確認するか、以下のセクションからお進みください。",
|
|
321
|
+
"requestedPath": "アクセスしようとしたアドレス",
|
|
322
|
+
"suggestionsLabel": "または以下のセクションへ",
|
|
323
|
+
"goHome": "ホームページに戻る",
|
|
324
|
+
"goBack": "戻る"
|
|
325
|
+
};
|
|
318
326
|
var login = {
|
|
319
327
|
"title": "ログイン",
|
|
320
328
|
"subtitle": "アカウントにログイン",
|
|
@@ -418,6 +426,7 @@ var ja_default = {
|
|
|
418
426
|
media,
|
|
419
427
|
users,
|
|
420
428
|
settings,
|
|
429
|
+
notFound,
|
|
421
430
|
login,
|
|
422
431
|
common,
|
|
423
432
|
activity,
|
|
@@ -427,4 +436,4 @@ var ja_default = {
|
|
|
427
436
|
screenOptions
|
|
428
437
|
};
|
|
429
438
|
//#endregion
|
|
430
|
-
export { activity, adminBar, common, content, dashboard, ja_default as default, footer, helpTabs, layout, login, media, menus, screenOptions, settings, users };
|
|
439
|
+
export { activity, adminBar, common, content, dashboard, ja_default as default, footer, helpTabs, layout, login, media, menus, notFound, screenOptions, settings, users };
|
|
@@ -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_CmMnXoh2.mjs";
|
|
5
5
|
//#region src/pages/login.astro
|
|
6
6
|
var login_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
default: () => $$Login,
|
|
@@ -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 { t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BqZ4e24O.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_C6I2H2jO.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, 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_BqZ4e24O.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_C6I2H2jO.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
|
|
@@ -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_C6I2H2jO.mjs";
|
|
5
|
+
import { t as ContentEditor } from "./ContentEditor_CrP88U9K.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({
|
|
@@ -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 { t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BqZ4e24O.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_C6I2H2jO.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";
|
|
@@ -315,6 +315,14 @@ var settings = {
|
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
};
|
|
318
|
+
var notFound = {
|
|
319
|
+
"title": "Nie znaleziono strony",
|
|
320
|
+
"description": "Adres mógł się zmienić lub strona została przeniesiona. Sprawdź URL lub wejdź do jednej z tych sekcji.",
|
|
321
|
+
"requestedPath": "Próbowano otworzyć",
|
|
322
|
+
"suggestionsLabel": "Albo wejdź do jednej z tych sekcji",
|
|
323
|
+
"goHome": "Powrót do strony głównej",
|
|
324
|
+
"goBack": "Wstecz"
|
|
325
|
+
};
|
|
318
326
|
var login = {
|
|
319
327
|
"title": "Logowanie",
|
|
320
328
|
"subtitle": "Zaloguj się do swojego konta",
|
|
@@ -418,6 +426,7 @@ var pl_default = {
|
|
|
418
426
|
media,
|
|
419
427
|
users,
|
|
420
428
|
settings,
|
|
429
|
+
notFound,
|
|
421
430
|
login,
|
|
422
431
|
common,
|
|
423
432
|
activity,
|
|
@@ -427,4 +436,4 @@ var pl_default = {
|
|
|
427
436
|
screenOptions
|
|
428
437
|
};
|
|
429
438
|
//#endregion
|
|
430
|
-
export { activity, adminBar, common, content, dashboard, pl_default as default, footer, helpTabs, layout, login, media, menus, screenOptions, settings, users };
|
|
439
|
+
export { activity, adminBar, common, content, dashboard, pl_default as default, footer, helpTabs, layout, login, media, menus, notFound, screenOptions, settings, users };
|
|
@@ -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 { t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BqZ4e24O.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_C6I2H2jO.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";
|
|
@@ -0,0 +1,384 @@
|
|
|
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_BqZ4e24O.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_C6I2H2jO.mjs";
|
|
6
|
+
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
|
+
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey, ssrStyleProperty } from "solid-js/web";
|
|
8
|
+
import { For, Show, createEffect, createMemo, createSignal, onCleanup, onMount } from "solid-js";
|
|
9
|
+
import { icons } from "lucide";
|
|
10
|
+
//#region src/components/apps/settings/IconPicker.tsx
|
|
11
|
+
var _tmpl$$1 = [
|
|
12
|
+
"<div",
|
|
13
|
+
" class=\"icon-picker__viewport\"><div class=\"icon-picker__grid\" role=\"listbox\"",
|
|
14
|
+
" style=\"",
|
|
15
|
+
"\">",
|
|
16
|
+
"</div></div>"
|
|
17
|
+
];
|
|
18
|
+
var _tmpl$2$1 = [
|
|
19
|
+
"<p",
|
|
20
|
+
" class=\"icon-picker__count\">",
|
|
21
|
+
"</p>"
|
|
22
|
+
];
|
|
23
|
+
var _tmpl$3$1 = [
|
|
24
|
+
"<div",
|
|
25
|
+
" class=\"icon-picker__panel\" role=\"dialog\"",
|
|
26
|
+
"><input type=\"search\" class=\"input icon-picker__search\"",
|
|
27
|
+
"><!--$-->",
|
|
28
|
+
"<!--/--><!--$-->",
|
|
29
|
+
"<!--/--></div>"
|
|
30
|
+
];
|
|
31
|
+
var _tmpl$4$1 = [
|
|
32
|
+
"<div",
|
|
33
|
+
" class=\"icon-picker\"><button type=\"button\" class=\"input icon-picker__trigger\" aria-haspopup=\"dialog\"",
|
|
34
|
+
"><span class=\"icon-picker__value\"><span class=\"icon-picker__preview\" aria-hidden=\"true\">",
|
|
35
|
+
"</span><span class=\"icon-picker__name\">",
|
|
36
|
+
"</span></span><span class=\"icon-picker__caret\" aria-hidden=\"true\">",
|
|
37
|
+
"</span></button><!--$-->",
|
|
38
|
+
"<!--/--></div>"
|
|
39
|
+
];
|
|
40
|
+
var _tmpl$5$1 = [
|
|
41
|
+
"<p",
|
|
42
|
+
" class=\"icon-picker__empty\">",
|
|
43
|
+
"</p>"
|
|
44
|
+
];
|
|
45
|
+
var _tmpl$6$1 = [
|
|
46
|
+
"<button",
|
|
47
|
+
" type=\"button\" role=\"option\"",
|
|
48
|
+
" class=\"",
|
|
49
|
+
"\" style=\"",
|
|
50
|
+
"\">",
|
|
51
|
+
"</button>"
|
|
52
|
+
];
|
|
53
|
+
var CELL_W = 56;
|
|
54
|
+
var ROW_H = 60;
|
|
55
|
+
var VIEW_H = 300;
|
|
56
|
+
var OVERSCAN = 2;
|
|
57
|
+
var ROWS_IN_WINDOW = Math.ceil(VIEW_H / ROW_H) + 4;
|
|
58
|
+
var toPascal = (name) => name.replace(/(^|[-_])(\w)/g, (_match, _sep, char) => char.toUpperCase());
|
|
59
|
+
/** "AArrowDown" → "a-arrow-down" (o formato que a sidebar salva em menuIcon). */
|
|
60
|
+
var toKebab = (pascal) => pascal.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z])([A-Z][a-z])/g, "$1-$2").toLowerCase();
|
|
61
|
+
/** Os mesmos atributos que `createIcons()` aplica ao substituir o nó. */
|
|
62
|
+
var SVG_DEFAULTS = "xmlns=\"http://www.w3.org/2000/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"";
|
|
63
|
+
var attrsMarkup = (attrs) => Object.entries(attrs).map(([key, value]) => `${key}="${String(value).replace(/"/g, """)}"`).join(" ");
|
|
64
|
+
/** Catálogo lazy: só nomes kebab ordenados, montado uma única vez. */
|
|
65
|
+
var catalogCache = null;
|
|
66
|
+
var getCatalog = () => {
|
|
67
|
+
if (!catalogCache) catalogCache = [...new Set(Object.keys(icons).map(toKebab))].sort();
|
|
68
|
+
return catalogCache;
|
|
69
|
+
};
|
|
70
|
+
/** SVG por nome, gerado uma vez e cacheado (nós desconhecidos → ''). */
|
|
71
|
+
var markupCache = /* @__PURE__ */ new Map();
|
|
72
|
+
/** Preview de um ícone Lucide — usado pelo picker e pela tabela de tipos. */
|
|
73
|
+
function iconMarkup(name) {
|
|
74
|
+
const hit = markupCache.get(name);
|
|
75
|
+
if (hit !== void 0) return hit;
|
|
76
|
+
const node = icons[toPascal(name)];
|
|
77
|
+
let markup = "";
|
|
78
|
+
if (Array.isArray(node)) markup = `<svg ${SVG_DEFAULTS}>${node.map(([tag, attrs]) => `<${tag} ${attrsMarkup(attrs)} />`).join("")}</svg>`;
|
|
79
|
+
markupCache.set(name, markup);
|
|
80
|
+
return markup;
|
|
81
|
+
}
|
|
82
|
+
/** Normaliza para busca: sem caixa, "-"/"_" viram espaço ("shopping bag"). */
|
|
83
|
+
var normalize = (text) => text.toLowerCase().replace(/[-_\s]+/g, " ").trim();
|
|
84
|
+
function IconPicker(props) {
|
|
85
|
+
const [open, setOpen] = createSignal(false);
|
|
86
|
+
const [query, setQuery] = createSignal("");
|
|
87
|
+
const [active, setActive] = createSignal(-1);
|
|
88
|
+
const [scrollTop, setScrollTop] = createSignal(0);
|
|
89
|
+
const [cols, setCols] = createSignal(6);
|
|
90
|
+
const [gridEl, setGridEl] = createSignal(void 0);
|
|
91
|
+
let observer;
|
|
92
|
+
const filtered = createMemo(() => {
|
|
93
|
+
const tokens = normalize(query()).split(" ").filter(Boolean);
|
|
94
|
+
const list = getCatalog();
|
|
95
|
+
if (tokens.length === 0) return list;
|
|
96
|
+
return list.filter((name) => {
|
|
97
|
+
const haystack = normalize(name);
|
|
98
|
+
return tokens.every((token) => haystack.includes(token));
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
const cells = createMemo(() => {
|
|
102
|
+
const columnCount = Math.max(1, cols());
|
|
103
|
+
return filtered().map((name, index) => ({
|
|
104
|
+
name,
|
|
105
|
+
index,
|
|
106
|
+
row: Math.floor(index / columnCount),
|
|
107
|
+
col: index % columnCount
|
|
108
|
+
}));
|
|
109
|
+
});
|
|
110
|
+
const startIndex = createMemo(() => Math.max(0, Math.floor(scrollTop() / ROW_H) - OVERSCAN) * cols());
|
|
111
|
+
const visibleCells = createMemo(() => {
|
|
112
|
+
const start = startIndex();
|
|
113
|
+
return cells().slice(start, start + ROWS_IN_WINDOW * cols());
|
|
114
|
+
});
|
|
115
|
+
const totalRows = createMemo(() => Math.ceil(cells().length / Math.max(1, cols())));
|
|
116
|
+
const measure = (element) => {
|
|
117
|
+
const width = element?.clientWidth ?? 0;
|
|
118
|
+
if (width <= 0) return;
|
|
119
|
+
const columnCount = Math.max(3, Math.floor(width / CELL_W));
|
|
120
|
+
setCols((current) => current === columnCount ? current : columnCount);
|
|
121
|
+
};
|
|
122
|
+
onMount(() => {
|
|
123
|
+
if (typeof ResizeObserver !== "undefined") observer = new ResizeObserver((entries) => {
|
|
124
|
+
measure(entries[0]?.target);
|
|
125
|
+
});
|
|
126
|
+
measure(gridEl());
|
|
127
|
+
const closeOnOutside = (event) => {};
|
|
128
|
+
const closeOnEscape = (event) => {
|
|
129
|
+
if (event.key === "Escape") setOpen(false);
|
|
130
|
+
};
|
|
131
|
+
document.addEventListener("mousedown", closeOnOutside);
|
|
132
|
+
document.addEventListener("keydown", closeOnEscape);
|
|
133
|
+
onCleanup(() => {
|
|
134
|
+
document.removeEventListener("mousedown", closeOnOutside);
|
|
135
|
+
document.removeEventListener("keydown", closeOnEscape);
|
|
136
|
+
observer?.disconnect();
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
createEffect(() => {
|
|
140
|
+
const element = gridEl();
|
|
141
|
+
if (!element) return;
|
|
142
|
+
measure(element);
|
|
143
|
+
observer?.observe(element);
|
|
144
|
+
});
|
|
145
|
+
createEffect(() => {
|
|
146
|
+
if (!open()) return;
|
|
147
|
+
setActive(-1);
|
|
148
|
+
queueMicrotask(() => {
|
|
149
|
+
if (filtered().indexOf(props.value) >= 0);
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
createEffect(() => {
|
|
153
|
+
query();
|
|
154
|
+
setActive(-1);
|
|
155
|
+
setScrollTop(0);
|
|
156
|
+
});
|
|
157
|
+
return ssr(_tmpl$4$1, ssrHydrationKey(), ssrAttribute("aria-expanded", escape(open(), true), false), iconMarkup(props.value || "box"), escape(props.value || "box"), open() ? "▴" : "▾", escape(createComponent(Show, {
|
|
158
|
+
get when() {
|
|
159
|
+
return open();
|
|
160
|
+
},
|
|
161
|
+
get children() {
|
|
162
|
+
return ssr(_tmpl$3$1, ssrHydrationKey(), ssrAttribute("aria-label", escape(props.label, true), false), ssrAttribute("placeholder", escape(props.searchPlaceholder, true), false) + ssrAttribute("value", escape(query(), true), false), escape(createComponent(Show, {
|
|
163
|
+
get when() {
|
|
164
|
+
return filtered().length > 0;
|
|
165
|
+
},
|
|
166
|
+
get fallback() {
|
|
167
|
+
return ssr(_tmpl$5$1, ssrHydrationKey(), escape(props.emptyLabel ?? "—"));
|
|
168
|
+
},
|
|
169
|
+
get children() {
|
|
170
|
+
return ssr(_tmpl$$1, ssrHydrationKey(), ssrAttribute("aria-label", escape(props.label, true), false), ssrStyleProperty("height:", `${escape(totalRows(), true) * escape(ROW_H, true)}px`), escape(createComponent(For, {
|
|
171
|
+
get each() {
|
|
172
|
+
return visibleCells();
|
|
173
|
+
},
|
|
174
|
+
children: (cell) => ssr(_tmpl$6$1, ssrHydrationKey(), ssrAttribute("title", escape(cell.name, true), false) + ssrAttribute("aria-label", escape(cell.name, true), false) + ssrAttribute("aria-selected", escape(props.value, true) === escape(cell.name, true), false), `icon-picker__cell ${props.value === cell.name ? "is-selected" : ""} ${active() === cell.index ? "is-active" : ""}`, ssrStyleProperty("top:", `${escape(cell.row, true) * escape(ROW_H, true)}px`) + ssrStyleProperty(";left:", `${escape(cell.col, true) * (100 / escape(Math.max(1, cols()), true))}%`) + ssrStyleProperty(";width:", `${100 / escape(Math.max(1, cols()), true)}%`) + ssrStyleProperty(";height:", "56px"), iconMarkup(cell.name))
|
|
175
|
+
})));
|
|
176
|
+
}
|
|
177
|
+
})), escape(createComponent(Show, {
|
|
178
|
+
get when() {
|
|
179
|
+
return memo(() => !!props.countLabel)() && filtered().length > 0;
|
|
180
|
+
},
|
|
181
|
+
get children() {
|
|
182
|
+
return ssr(_tmpl$2$1, ssrHydrationKey(), escape(props.countLabel?.(filtered().length)));
|
|
183
|
+
}
|
|
184
|
+
})));
|
|
185
|
+
}
|
|
186
|
+
})));
|
|
187
|
+
}
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region src/components/apps/settings/PostTypesManager.tsx
|
|
190
|
+
var _tmpl$ = [
|
|
191
|
+
"<div",
|
|
192
|
+
" class=\"notice notice--error\">",
|
|
193
|
+
"</div>"
|
|
194
|
+
];
|
|
195
|
+
var _tmpl$2 = [
|
|
196
|
+
"<button",
|
|
197
|
+
" type=\"button\" class=\"btn btn-secondary\">",
|
|
198
|
+
"</button>"
|
|
199
|
+
];
|
|
200
|
+
var _tmpl$3 = [
|
|
201
|
+
"<div",
|
|
202
|
+
" class=\"post-types-manager\"><!--$-->",
|
|
203
|
+
"<!--/--><form class=\"card\"><h3>",
|
|
204
|
+
"</h3><div class=\"form-grid\"><label><!--$-->",
|
|
205
|
+
"<!--/--><input class=\"input\" required pattern=\"[a-z0-9_]+\"",
|
|
206
|
+
"></label><label><!--$-->",
|
|
207
|
+
"<!--/--><input class=\"input\" required",
|
|
208
|
+
"></label><label><!--$-->",
|
|
209
|
+
"<!--/--><input class=\"input\" required",
|
|
210
|
+
"></label><label class=\"post-types-manager__icon-field\"><!--$-->",
|
|
211
|
+
"<!--/--><!--$-->",
|
|
212
|
+
"<!--/--><small class=\"muted\">",
|
|
213
|
+
"</small></label></div><fieldset class=\"supports\"><legend>",
|
|
214
|
+
"</legend><!--$-->",
|
|
215
|
+
"<!--/--><label><input type=\"checkbox\"",
|
|
216
|
+
"> <!--$-->",
|
|
217
|
+
"<!--/--></label><label><input type=\"checkbox\"",
|
|
218
|
+
"> <!--$-->",
|
|
219
|
+
"<!--/--></label></fieldset><button type=\"submit\" class=\"btn btn-primary\"",
|
|
220
|
+
">",
|
|
221
|
+
"</button><!--$-->",
|
|
222
|
+
"<!--/--></form><div class=\"card settings-table-card\"><table class=\"table\"><thead><tr><th>",
|
|
223
|
+
"</th><th>",
|
|
224
|
+
"</th><th>",
|
|
225
|
+
"</th><th>",
|
|
226
|
+
"</th><th>",
|
|
227
|
+
"</th><th>",
|
|
228
|
+
"</th><th>",
|
|
229
|
+
"</th><th>",
|
|
230
|
+
"</th><th></th></tr></thead><tbody>",
|
|
231
|
+
"</tbody></table></div></div>"
|
|
232
|
+
];
|
|
233
|
+
var _tmpl$4 = [
|
|
234
|
+
"<label",
|
|
235
|
+
"><input type=\"checkbox\"",
|
|
236
|
+
"> <!--$-->",
|
|
237
|
+
"<!--/--></label>"
|
|
238
|
+
];
|
|
239
|
+
var _tmpl$5 = [
|
|
240
|
+
"<button",
|
|
241
|
+
" type=\"button\" class=\"btn btn-danger\">",
|
|
242
|
+
"</button>"
|
|
243
|
+
];
|
|
244
|
+
var _tmpl$6 = [
|
|
245
|
+
"<tr",
|
|
246
|
+
"><td>",
|
|
247
|
+
"</td><td>",
|
|
248
|
+
"</td><td>",
|
|
249
|
+
"</td><td>",
|
|
250
|
+
"</td><td>",
|
|
251
|
+
"</td><td>",
|
|
252
|
+
"</td><td>",
|
|
253
|
+
"</td><td><span class=\"post-types-manager__icon\"><span class=\"post-types-manager__icon-preview\" aria-hidden=\"true\">",
|
|
254
|
+
"</span><!--$-->",
|
|
255
|
+
"<!--/--></span></td><td><button type=\"button\" class=\"btn btn-secondary\">",
|
|
256
|
+
"</button> <!--$-->",
|
|
257
|
+
"<!--/--></td></tr>"
|
|
258
|
+
];
|
|
259
|
+
function PostTypesManager() {
|
|
260
|
+
const { t } = useTranslation();
|
|
261
|
+
const [types, setTypes] = createSignal([]);
|
|
262
|
+
const [error, setError] = createSignal("");
|
|
263
|
+
const [saving, setSaving] = createSignal(false);
|
|
264
|
+
const [editingSlug, setEditingSlug] = createSignal(null);
|
|
265
|
+
const supportsOptions = createMemo(() => [
|
|
266
|
+
{
|
|
267
|
+
value: "title",
|
|
268
|
+
label: t("settings.postTypes.form.supportsOptions.title")
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
value: "editor",
|
|
272
|
+
label: t("settings.postTypes.form.supportsOptions.editor")
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
value: "thumbnail",
|
|
276
|
+
label: t("settings.postTypes.form.supportsOptions.thumbnail")
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
value: "excerpt",
|
|
280
|
+
label: t("settings.postTypes.form.supportsOptions.excerpt")
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
value: "revisions",
|
|
284
|
+
label: t("settings.postTypes.form.supportsOptions.revisions")
|
|
285
|
+
}
|
|
286
|
+
]);
|
|
287
|
+
const [form, setForm] = createSignal({
|
|
288
|
+
name: "",
|
|
289
|
+
slug: "",
|
|
290
|
+
singularLabel: "",
|
|
291
|
+
pluralLabel: "",
|
|
292
|
+
hasArchive: false,
|
|
293
|
+
singleton: false,
|
|
294
|
+
menuIcon: "box",
|
|
295
|
+
supports: ["title", "editor"]
|
|
296
|
+
});
|
|
297
|
+
const load = async () => {
|
|
298
|
+
try {
|
|
299
|
+
setTypes(await apiClient.getContentTypes());
|
|
300
|
+
} catch (err) {
|
|
301
|
+
setError(err instanceof Error ? err.message : String(err));
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
onMount(load);
|
|
305
|
+
return ssr(_tmpl$3, ssrHydrationKey(), escape(createComponent(Show, {
|
|
306
|
+
get when() {
|
|
307
|
+
return error();
|
|
308
|
+
},
|
|
309
|
+
get children() {
|
|
310
|
+
return ssr(_tmpl$, ssrHydrationKey(), escape(error()));
|
|
311
|
+
}
|
|
312
|
+
})), editingSlug() ? escape(t("settings.postTypes.form.editTitle")) : escape(t("settings.postTypes.form.title")), escape(t("settings.postTypes.form.slug")), ssrAttribute("title", escape(t("settings.postTypes.form.slugHint"), true), false) + ssrAttribute("value", escape(form().slug, true), false), escape(t("settings.postTypes.form.singular")), ssrAttribute("value", escape(form().singularLabel, true), false), escape(t("settings.postTypes.form.plural")), ssrAttribute("value", escape(form().pluralLabel, true), false), escape(t("settings.postTypes.form.icon")), escape(createComponent(IconPicker, {
|
|
313
|
+
get value() {
|
|
314
|
+
return form().menuIcon;
|
|
315
|
+
},
|
|
316
|
+
onChange: (value) => setForm({
|
|
317
|
+
...form(),
|
|
318
|
+
menuIcon: value
|
|
319
|
+
}),
|
|
320
|
+
get searchPlaceholder() {
|
|
321
|
+
return t("settings.postTypes.form.iconSearchPlaceholder");
|
|
322
|
+
},
|
|
323
|
+
get emptyLabel() {
|
|
324
|
+
return t("settings.postTypes.form.iconEmpty");
|
|
325
|
+
},
|
|
326
|
+
countLabel: (count) => t("settings.postTypes.form.iconCount", { count }),
|
|
327
|
+
get label() {
|
|
328
|
+
return t("settings.postTypes.form.icon");
|
|
329
|
+
}
|
|
330
|
+
})), escape(t("settings.postTypes.form.iconHint")), escape(t("settings.postTypes.form.supports")), escape(createComponent(For, {
|
|
331
|
+
get each() {
|
|
332
|
+
return supportsOptions();
|
|
333
|
+
},
|
|
334
|
+
children: (option) => ssr(_tmpl$4, ssrHydrationKey(), ssrAttribute("checked", form().supports.includes(option.value), true), escape(option.label))
|
|
335
|
+
})), ssrAttribute("checked", form().hasArchive, true), escape(t("settings.postTypes.form.hasArchive")), ssrAttribute("checked", form().singleton, true), escape(t("settings.postTypes.form.singleton")), ssrAttribute("disabled", saving(), true), editingSlug() ? escape(t("settings.postTypes.form.update")) : escape(t("settings.postTypes.form.create")), escape(createComponent(Show, {
|
|
336
|
+
get when() {
|
|
337
|
+
return editingSlug();
|
|
338
|
+
},
|
|
339
|
+
get children() {
|
|
340
|
+
return ssr(_tmpl$2, ssrHydrationKey(), escape(t("settings.postTypes.form.cancel")));
|
|
341
|
+
}
|
|
342
|
+
})), escape(t("settings.postTypes.table.slug")), escape(t("settings.postTypes.table.singular")), escape(t("settings.postTypes.table.plural")), escape(t("settings.postTypes.table.source")), escape(t("settings.postTypes.table.supports")), escape(t("settings.postTypes.table.archive")), escape(t("settings.postTypes.table.mode")), escape(t("settings.postTypes.table.icon")), escape(createComponent(For, {
|
|
343
|
+
get each() {
|
|
344
|
+
return types();
|
|
345
|
+
},
|
|
346
|
+
children: (type) => ssr(_tmpl$6, ssrHydrationKey(), escape(type.slug), escape(type.singularLabel), escape(type.pluralLabel), escape(type.source ?? t("settings.postTypes.sources.admin")), escape((type.supports ?? []).join(", ")), type.hasArchive ? escape(t("common.yes")) : escape(t("common.no")), type.singleton ? escape(t("settings.postTypes.table.singleton")) : escape(t("settings.postTypes.table.collection")), iconMarkup(type.menuIcon ?? "box"), escape(type.menuIcon ?? "box"), escape(t("settings.postTypes.table.actions.edit")), escape(createComponent(Show, {
|
|
347
|
+
get when() {
|
|
348
|
+
return type.source !== "CORE";
|
|
349
|
+
},
|
|
350
|
+
get children() {
|
|
351
|
+
return ssr(_tmpl$5, ssrHydrationKey(), escape(t("settings.postTypes.table.actions.remove")));
|
|
352
|
+
}
|
|
353
|
+
})))
|
|
354
|
+
})));
|
|
355
|
+
}
|
|
356
|
+
//#endregion
|
|
357
|
+
//#region src/pages/settings/post-types.astro
|
|
358
|
+
var post_types_exports = /* @__PURE__ */ __exportAll({
|
|
359
|
+
default: () => $$PostTypes,
|
|
360
|
+
file: () => $$file,
|
|
361
|
+
url: () => $$url
|
|
362
|
+
});
|
|
363
|
+
createAstro("https://astro.build");
|
|
364
|
+
var $$PostTypes = createComponent$1(($$result, $$props, $$slots) => {
|
|
365
|
+
const Astro = $$result.createAstro($$props, $$slots);
|
|
366
|
+
Astro.self = $$PostTypes;
|
|
367
|
+
const { t } = Astro.locals;
|
|
368
|
+
return renderTemplate`${renderComponent($$result, "DashboardLayout", $$DashboardLayout, { "title": t("settings.postTypes.title") }, { "default": ($$result) => renderTemplate`${renderComponent($$result, "PageHeader", PageHeader, {
|
|
369
|
+
"title": t("settings.postTypes.title"),
|
|
370
|
+
"description": t("settings.postTypes.description")
|
|
371
|
+
})}${renderComponent($$result, "PostTypesManager", PostTypesManager, {
|
|
372
|
+
"client:load": true,
|
|
373
|
+
"client:component-hydration": "load",
|
|
374
|
+
"client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/apps/settings/PostTypesManager.tsx",
|
|
375
|
+
"client:component-export": "PostTypesManager"
|
|
376
|
+
})}` })}`;
|
|
377
|
+
}, "/home/runner/work/cms/cms/apps/admin/src/pages/settings/post-types.astro", void 0);
|
|
378
|
+
var $$file = "/home/runner/work/cms/cms/apps/admin/src/pages/settings/post-types.astro";
|
|
379
|
+
var $$url = "/settings/post-types";
|
|
380
|
+
//#endregion
|
|
381
|
+
//#region \0virtual:astro:page:src/pages/settings/post-types@_@astro
|
|
382
|
+
var page = () => post_types_exports;
|
|
383
|
+
//#endregion
|
|
384
|
+
export { page };
|