@oktis-works/admin 0.4.13 → 0.4.15

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.
Files changed (127) hide show
  1. package/dist/client/_astro/{ActivityWidget.DeayROhc.js → ActivityWidget.B83CLwGG.js} +2 -2
  2. package/dist/client/_astro/AdminBar.BNESswxs.js +253 -0
  3. package/dist/client/_astro/{AtGlanceWidget.CDFVi_eX.js → AtGlanceWidget.Cqbb9anJ.js} +3 -3
  4. package/dist/client/_astro/BaseLayout.B3A9-IS6.css +1 -0
  5. package/dist/client/_astro/ContentEditor.CBH227Ni.js +1 -0
  6. package/dist/client/_astro/ContentList.hmLCz5_S.js +1 -0
  7. package/dist/client/_astro/CustomFieldsManager.Dzhp_sZl.js +3 -0
  8. package/dist/client/_astro/DashboardHome.DawF-CZ9.js +1 -0
  9. package/dist/client/_astro/DashboardLayout.CEvRGr78.css +1 -0
  10. package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.Ckp0okyg.js +1 -0
  11. package/dist/client/_astro/FieldTypePicker.BEuYPzV8.js +1 -0
  12. package/dist/client/_astro/{Footer.KkyZkNxH.js → Footer.dcA-nmBA.js} +10 -12
  13. package/dist/client/_astro/GeneralSettings.DdAwp-oL.js +1 -0
  14. package/dist/client/_astro/MediaLibrary.B9SPVPYH.js +1 -0
  15. package/dist/client/_astro/PluginManager.DN5xhAsV.js +93 -0
  16. package/dist/client/_astro/PostTypesManager.BZH1eM3c.js +1 -0
  17. package/dist/client/_astro/{QuickDraftWidget.Drp_cL_D.js → QuickDraftWidget.DBvLubay.js} +2 -2
  18. package/dist/client/_astro/ResourceHubs.BvrE39A0.js +1 -0
  19. package/dist/client/_astro/TaxonomiesManager.BrjG05jb.js +1 -0
  20. package/dist/client/_astro/ThemeManager.CsrK3HXj.js +129 -0
  21. package/dist/client/_astro/UserCreateForm.Dxq80Bqx.js +1 -0
  22. package/dist/client/_astro/UsersManager.DmBadxWw.js +1 -0
  23. package/dist/client/_astro/api.BfxYC8bU.js +1 -0
  24. package/dist/client/_astro/ar.DsV0P0EN.js +1 -0
  25. package/dist/client/_astro/{client.C7p516_9.js → client.BY0Z100j.js} +1 -1
  26. package/dist/client/_astro/custom-fields.IjuRIdAC.css +1 -0
  27. package/dist/client/_astro/es-ES.etPSaiLd.js +1 -0
  28. package/dist/client/_astro/extensions.C6GOqTCd.js +1 -0
  29. package/dist/client/_astro/he.U1Vtp3zT.js +1 -0
  30. package/dist/client/_astro/i18n.B4BuieMb.js +1 -0
  31. package/dist/client/_astro/it.DJuI8oO_.js +1 -0
  32. package/dist/client/_astro/ja.Cw8I_NUV.js +1 -0
  33. package/dist/client/_astro/{login.astro_astro_type_script_index_0_lang.D6nHqYm6.js → login.astro_astro_type_script_index_0_lang.yH8kNMtD.js} +1 -1
  34. package/dist/client/_astro/pl.Dsz-4G_z.js +1 -0
  35. package/dist/client/_astro/pt-BR.CyQAHnXs.js +1 -0
  36. package/dist/client/_astro/ru.CwIIcTdy.js +1 -0
  37. package/dist/client/_astro/src.HVGUo-fm.js +1 -0
  38. package/dist/client/_astro/sw.DwpL3sb6.js +1 -0
  39. package/dist/client/_astro/tr.CY2JWJ7Y.js +1 -0
  40. package/dist/client/_astro/uk.BudEWIU8.js +1 -0
  41. package/dist/client/_astro/{version.C0f0jrCn.js → version.CilNJ_fk.js} +1 -1
  42. package/dist/client/_astro/{web.D1H9RxZL.js → web.D_vCtCLj.js} +1 -1
  43. package/dist/client/_astro/yo.BmoZs0fO.js +1 -0
  44. package/dist/client/_astro/zh-CN.khaXV6fv.js +1 -0
  45. package/dist/server/chunks/{BaseLayout_BsR68tOH.mjs → BaseLayout_BmkfK9tu.mjs} +19 -2
  46. package/dist/server/chunks/{ContentEditor_BtclxOqH.mjs → ContentEditor_C-kz5cS4.mjs} +31 -101
  47. package/dist/server/chunks/{DashboardLayout_B9pE8ZBQ.mjs → DashboardLayout_KIUq60Dv.mjs} +52 -566
  48. package/dist/server/chunks/FieldTypePicker_CXwpmcQ3.mjs +79 -0
  49. package/dist/server/chunks/{MediaLibrary_DLO2K_4d.mjs → MediaLibrary_C-lJBpPG.mjs} +2 -2
  50. package/dist/server/chunks/ResourceHubs_T-WuZoVF.mjs +453 -0
  51. package/dist/server/chunks/{_slug__yqDK_Ow8.mjs → _slug__DjcyD19w.mjs} +1 -1
  52. package/dist/server/chunks/access_Bjuw_Gvp.mjs +34 -0
  53. package/dist/server/chunks/{ar_DBjdWIJ0.mjs → ar_DMC8HaoP.mjs} +3 -1
  54. package/dist/server/chunks/custom-fields_CxntKU56.mjs +488 -0
  55. package/dist/server/chunks/{edit_0bCUPzfW.mjs → edit_CFKKfQux.mjs} +2 -2
  56. package/dist/server/chunks/{es-ES_TJ4oK1yi.mjs → es-ES_DZvHskAD.mjs} +3 -1
  57. package/dist/server/chunks/{general_D-MMl9p8.mjs → general_CVsJAP2e.mjs} +6 -6
  58. package/dist/server/chunks/{he_TWsuTphz.mjs → he_zy3stNhR.mjs} +3 -1
  59. package/dist/server/chunks/i18n_CH59YTvE.mjs +1406 -0
  60. package/dist/server/chunks/{index_Z7GukanS.mjs → index_2Y9ZC7Gs.mjs} +8 -6
  61. package/dist/server/chunks/{index_CTpEX5iK.mjs → index_Bb3w_UqS.mjs} +2 -2
  62. package/dist/server/chunks/{index_DB6MLU0v.mjs → index_BqyoH4bc.mjs} +3 -3
  63. package/dist/server/chunks/{index_CALAZTDB.mjs → index_G7lx2uke.mjs} +2 -2
  64. package/dist/server/chunks/{index_Bq7o-ZHF.mjs → index_TyNyWm6y.mjs} +1 -1
  65. package/dist/server/chunks/{it_CEVFVWh1.mjs → it_BiUDLszZ.mjs} +3 -1
  66. package/dist/server/chunks/{ja_CqDirMqf.mjs → ja_DjFAG7hL.mjs} +3 -1
  67. package/dist/server/chunks/{login_BcWk_36h.mjs → login_BCjtaOE9.mjs} +1 -2
  68. package/dist/server/chunks/{new_DlqbYYA1.mjs → new_BZOJIQfZ.mjs} +2 -2
  69. package/dist/server/chunks/{new_BbKoexYG.mjs → new_DkHY3O0r.mjs} +2 -2
  70. package/dist/server/chunks/operations_DYc6rwSI.mjs +34 -0
  71. package/dist/server/chunks/{pl_ChIKxfZG.mjs → pl_0Xe9Qom2.mjs} +3 -1
  72. package/dist/server/chunks/{plugins_BLJAzLX4.mjs → plugins_p805vlEb.mjs} +55 -22
  73. package/dist/server/chunks/{post-types_BvVl0hZs.mjs → post-types_C7YAi_V0.mjs} +6 -6
  74. package/dist/server/chunks/{pt-BR_4d4jZWL0.mjs → pt-BR_DIZpU2Mk.mjs} +206 -2
  75. package/dist/server/chunks/resources_BVP5krU_.mjs +34 -0
  76. package/dist/server/chunks/{ru_CIc6O5Q7.mjs → ru_DFvIxd0Y.mjs} +3 -1
  77. package/dist/server/chunks/{sw_Bs3iYVDM.mjs → sw_CmaPgGYa.mjs} +3 -1
  78. package/dist/server/chunks/{taxonomies_Dkx7d-vc.mjs → taxonomies_CWhPYZDq.mjs} +2 -2
  79. package/dist/server/chunks/themes_iwb1637h.mjs +155 -0
  80. package/dist/server/chunks/{tr_C7JbXuoQ.mjs → tr_B_acwl2e.mjs} +3 -1
  81. package/dist/server/chunks/{uk_Dibs8Wkc.mjs → uk_DXnk4imL.mjs} +3 -1
  82. package/dist/server/chunks/{upload_CpGGKDEH.mjs → upload_BE7qzxe7.mjs} +2 -2
  83. package/dist/server/chunks/{yo_B6MPvz_U.mjs → yo_DDQ8a-0v.mjs} +3 -1
  84. package/dist/server/chunks/{zh-CN_G1Dc2b28.mjs → zh-CN_763uzTMQ.mjs} +3 -1
  85. package/dist/server/entry.mjs +149 -25
  86. package/dist/server/virtual_astro_middleware.mjs +6 -3
  87. package/package.json +1 -1
  88. package/dist/client/_astro/AdminBar.DQilvzQe.js +0 -234
  89. package/dist/client/_astro/BaseLayout.B2MfKf6B.css +0 -1
  90. package/dist/client/_astro/ContentEditor.WyLHMY9o.js +0 -1
  91. package/dist/client/_astro/ContentList.BWtiYbDy.js +0 -1
  92. package/dist/client/_astro/DashboardHome.-0s3t1kG.js +0 -1
  93. package/dist/client/_astro/DashboardLayout.DWuCsemN.css +0 -1
  94. package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.Bm7kqhGo.js +0 -1
  95. package/dist/client/_astro/GeneralSettings.CaEyAV2f.js +0 -1
  96. package/dist/client/_astro/HelpTabs.99giF0f1.js +0 -103
  97. package/dist/client/_astro/LanguageSelector.DPBYaSN4.js +0 -14
  98. package/dist/client/_astro/MediaLibrary.DBfw3BM0.js +0 -1
  99. package/dist/client/_astro/PluginManager.BFoAz05U.js +0 -93
  100. package/dist/client/_astro/PostTypesManager.y9aB2d3_.js +0 -1
  101. package/dist/client/_astro/ScreenOptions.C8K8Bufc.js +0 -70
  102. package/dist/client/_astro/TaxonomiesManager.Cj54HB7P.js +0 -1
  103. package/dist/client/_astro/ThemeManager.BuULAG8h.js +0 -124
  104. package/dist/client/_astro/UserCreateForm.BMWIRfb2.js +0 -1
  105. package/dist/client/_astro/UsersManager.BogkOfCQ.js +0 -1
  106. package/dist/client/_astro/api.PfLklAa1.js +0 -1
  107. package/dist/client/_astro/ar.CzsjUutD.js +0 -1
  108. package/dist/client/_astro/en.DmN7xy_a.js +0 -1
  109. package/dist/client/_astro/es-ES.p2TLEMlZ.js +0 -1
  110. package/dist/client/_astro/extensions.DfxrGzbo.js +0 -1
  111. package/dist/client/_astro/he.BnYHiYpn.js +0 -1
  112. package/dist/client/_astro/i18n.BMDVwjZM.js +0 -1
  113. package/dist/client/_astro/it.WrWKBEAD.js +0 -1
  114. package/dist/client/_astro/ja.DxnfhIdt.js +0 -1
  115. package/dist/client/_astro/pl.jUj-RfZS.js +0 -1
  116. package/dist/client/_astro/pt-BR.DtNwEO0i.js +0 -1
  117. package/dist/client/_astro/ru.KFSfdjWn.js +0 -1
  118. package/dist/client/_astro/src.Cgonpfb5.js +0 -1
  119. package/dist/client/_astro/sw.3jlAOLOv.js +0 -1
  120. package/dist/client/_astro/tr.tnLMnGPg.js +0 -1
  121. package/dist/client/_astro/uk.VquHY_xc.js +0 -1
  122. package/dist/client/_astro/yo.Cr8hCb5u.js +0 -1
  123. package/dist/client/_astro/zh-CN.E32QqP4v.js +0 -1
  124. package/dist/server/chunks/en_C750mYKk.mjs +0 -408
  125. package/dist/server/chunks/i18n_Dj2ieo-N.mjs +0 -548
  126. package/dist/server/chunks/script_CPGt5jAh.mjs +0 -19
  127. package/dist/server/chunks/themes_CCDPOhVZ.mjs +0 -127
@@ -1,10 +1,10 @@
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 "./i18n_Dj2ieo-N.mjs";
5
- import { c as Select, i as Card, n as Badge, o as Input, r as Button, s as Pagination, t as $$DashboardLayout, u as Table } from "./DashboardLayout_B9pE8ZBQ.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_CH59YTvE.mjs";
5
+ import { c as Select, i as Card, n as Badge, o as Input, r as Button, s as Pagination, t as $$DashboardLayout, u as Table } from "./DashboardLayout_KIUq60Dv.mjs";
6
6
  import { createComponent, escape, ssr, ssrHydrationKey } from "solid-js/web";
7
- import { Show, createSignal, onMount } from "solid-js";
7
+ import { Show, createMemo, createSignal, onMount } from "solid-js";
8
8
  //#region src/components/content/ContentList.tsx
9
9
  var _tmpl$ = [
10
10
  "<span",
@@ -113,7 +113,7 @@ function ContentList() {
113
113
  setError(err instanceof Error ? err.message : String(err));
114
114
  }
115
115
  };
116
- const columns = [
116
+ const columns = createMemo(() => [
117
117
  {
118
118
  key: "title",
119
119
  label: t("content.list.columns.title")
@@ -164,7 +164,7 @@ function ContentList() {
164
164
  })));
165
165
  }
166
166
  }
167
- ];
167
+ ]);
168
168
  return ssr(_tmpl$5, ssrHydrationKey(), escape(createComponent(Show, {
169
169
  get when() {
170
170
  return error();
@@ -245,7 +245,9 @@ function ContentList() {
245
245
  }
246
246
  })), escape(createComponent(Card, { get children() {
247
247
  return [createComponent(Table, {
248
- columns,
248
+ get columns() {
249
+ return columns();
250
+ },
249
251
  get data() {
250
252
  return items();
251
253
  },
@@ -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 } from "./compiler_O7J1rlsi.mjs";
4
- import { t as $$DashboardLayout } from "./DashboardLayout_B9pE8ZBQ.mjs";
5
- import { t as MediaLibrary } from "./MediaLibrary_DLO2K_4d.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_KIUq60Dv.mjs";
5
+ import { t as MediaLibrary } from "./MediaLibrary_C-lJBpPG.mjs";
6
6
  //#region src/pages/media/index.astro
7
7
  var media_exports = /* @__PURE__ */ __exportAll({
8
8
  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 "./i18n_Dj2ieo-N.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_B9pE8ZBQ.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_CH59YTvE.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_KIUq60Dv.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
@@ -143,7 +143,7 @@ var $$Index = createComponent$1(($$result, $$props, $$slots) => {
143
143
  "client:component-hydration": "load",
144
144
  "client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/apps/dashboard/DashboardHome.tsx",
145
145
  "client:component-export": "DashboardHome"
146
- })}<div class="quick-actions" data-astro-cid-lcdefpme><div class="card" data-astro-cid-lcdefpme><h3 class="card-header" data-astro-cid-lcdefpme>${t("layout.actions.newPost")}</h3><div class="actions-grid" data-astro-cid-lcdefpme><a href="/content/new" class="action-card" data-astro-cid-lcdefpme><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><line x1="12" y1="5" x2="12" y2="19" data-astro-cid-lcdefpme></line><line x1="5" y1="12" x2="19" y2="12" data-astro-cid-lcdefpme></line></svg><span data-astro-cid-lcdefpme>${t("layout.actions.newPost")}</span></a><a href="/media/upload" class="action-card" data-astro-cid-lcdefpme><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" data-astro-cid-lcdefpme></path><polyline points="17 8 12 3 7 8" data-astro-cid-lcdefpme></polyline><line x1="12" y1="3" x2="12" y2="15" data-astro-cid-lcdefpme></line></svg><span data-astro-cid-lcdefpme>${t("layout.actions.uploadMedia")}</span></a><a href="/users/new" class="action-card" data-astro-cid-lcdefpme><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" data-astro-cid-lcdefpme></path><circle cx="8.5" cy="7" r="4" data-astro-cid-lcdefpme></circle><line x1="20" y1="8" x2="20" y2="14" data-astro-cid-lcdefpme></line><line x1="23" y1="11" x2="17" y2="11" data-astro-cid-lcdefpme></line></svg><span data-astro-cid-lcdefpme>${t("layout.actions.addUser")}</span></a><a href="/settings" class="action-card" data-astro-cid-lcdefpme><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><circle cx="12" cy="12" r="3" data-astro-cid-lcdefpme></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" data-astro-cid-lcdefpme></path></svg><span data-astro-cid-lcdefpme>${t("layout.actions.openSettings")}</span></a></div></div></div></div>` })}`;
146
+ })}<div class="quick-actions" data-astro-cid-lcdefpme><div class="card" data-astro-cid-lcdefpme><h3 class="card-header" data-astro-cid-lcdefpme>${t("layout.actions.newPost")}</h3><div class="actions-grid" data-astro-cid-lcdefpme><a href="/content/new" class="action-card" data-astro-cid-lcdefpme><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><line x1="12" y1="5" x2="12" y2="19" data-astro-cid-lcdefpme></line><line x1="5" y1="12" x2="19" y2="12" data-astro-cid-lcdefpme></line></svg><span data-astro-cid-lcdefpme>${t("layout.actions.newPost")}</span></a><a href="/media/upload" class="action-card" data-astro-cid-lcdefpme><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" data-astro-cid-lcdefpme></path><polyline points="17 8 12 3 7 8" data-astro-cid-lcdefpme></polyline><line x1="12" y1="3" x2="12" y2="15" data-astro-cid-lcdefpme></line></svg><span data-astro-cid-lcdefpme>${t("layout.actions.uploadMedia")}</span></a><a href="/users/new" class="action-card" data-astro-cid-lcdefpme><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" data-astro-cid-lcdefpme></path><circle cx="8.5" cy="7" r="4" data-astro-cid-lcdefpme></circle><line x1="20" y1="8" x2="20" y2="14" data-astro-cid-lcdefpme></line><line x1="23" y1="11" x2="17" y2="11" data-astro-cid-lcdefpme></line></svg><span data-astro-cid-lcdefpme>${t("layout.actions.addUser")}</span></a><a href="/settings" class="action-card" data-astro-cid-lcdefpme><span class="settings-action-icon" aria-hidden="true" data-astro-cid-lcdefpme><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.38a2 2 0 0 0-.73-2.73l-.15-.09a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" data-astro-cid-lcdefpme></path><circle cx="12" cy="12" r="3" data-astro-cid-lcdefpme></circle></svg></span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><circle cx="12" cy="12" r="3" data-astro-cid-lcdefpme></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" data-astro-cid-lcdefpme></path></svg><span data-astro-cid-lcdefpme>${t("layout.actions.openSettings")}</span></a></div></div></div></div>` })}`;
147
147
  }, "/home/runner/work/cms/cms/apps/admin/src/pages/index.astro", void 0);
148
148
  var $$file = "/home/runner/work/cms/cms/apps/admin/src/pages/index.astro";
149
149
  //#endregion
@@ -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 "./i18n_Dj2ieo-N.mjs";
5
- import { a as For2, c as Select, f as createSignal, l as Show2, n as Badge, o as Input, p as onMount, r as Button, s as Pagination, t as $$DashboardLayout } from "./DashboardLayout_B9pE8ZBQ.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_CH59YTvE.mjs";
5
+ import { a as For2, c as Select, f as createSignal, l as Show2, n as Badge, o as Input, p as onMount, r as Button, s as Pagination, t as $$DashboardLayout } from "./DashboardLayout_KIUq60Dv.mjs";
6
6
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
7
7
  //#region src/components/apps/users/UsersManager.tsx
8
8
  var _tmpl$ = [
@@ -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 "./DashboardLayout_B9pE8ZBQ.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_KIUq60Dv.mjs";
5
5
  //#region src/pages/settings/index.astro
6
6
  var settings_exports = /* @__PURE__ */ __exportAll({
7
7
  default: () => $$Index,
@@ -7,7 +7,9 @@ var layout = {
7
7
  "content": "Contenuti",
8
8
  "media": "Media",
9
9
  "users": "Utenti",
10
- "settings": "Impostazioni"
10
+ "settings": "Impostazioni",
11
+ "plugins": "Plugin",
12
+ "themes": "Temi"
11
13
  },
12
14
  "actions": {
13
15
  "logout": "Esci",
@@ -7,7 +7,9 @@ var layout = {
7
7
  "content": "コンテンツ",
8
8
  "media": "メディア",
9
9
  "users": "ユーザー",
10
- "settings": "設定"
10
+ "settings": "設定",
11
+ "plugins": "プラグイン",
12
+ "themes": "テーマ"
11
13
  },
12
14
  "actions": {
13
15
  "logout": "ログアウト",
@@ -1,8 +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 renderScript } from "./script_CPGt5jAh.mjs";
5
- import { t as $$BaseLayout } from "./BaseLayout_BsR68tOH.mjs";
4
+ import { n as renderScript, t as $$BaseLayout } from "./BaseLayout_BmkfK9tu.mjs";
6
5
  //#region src/pages/login.astro
7
6
  var login_exports = /* @__PURE__ */ __exportAll({
8
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, 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 "./i18n_Dj2ieo-N.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_B9pE8ZBQ.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_CH59YTvE.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_KIUq60Dv.mjs";
6
6
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
7
7
  import { For, Show, createSignal, onMount } from "solid-js";
8
8
  //#region src/components/apps/users/UserCreateForm.tsx
@@ -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 } from "./compiler_O7J1rlsi.mjs";
4
- import { t as $$DashboardLayout } from "./DashboardLayout_B9pE8ZBQ.mjs";
5
- import { t as ContentEditor } from "./ContentEditor_BtclxOqH.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_KIUq60Dv.mjs";
5
+ import { t as ContentEditor } from "./ContentEditor_C-kz5cS4.mjs";
6
6
  //#region src/pages/content/new.astro
7
7
  var new_exports = /* @__PURE__ */ __exportAll({
8
8
  default: () => $$New,
@@ -0,0 +1,34 @@
1
+ import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
+ import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
+ import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_KIUq60Dv.mjs";
5
+ import { r as OperationsManager } from "./ResourceHubs_T-WuZoVF.mjs";
6
+ //#region src/pages/settings/operations.astro
7
+ var operations_exports = /* @__PURE__ */ __exportAll({
8
+ default: () => $$Operations,
9
+ file: () => $$file,
10
+ url: () => $$url
11
+ });
12
+ createAstro("https://astro.build");
13
+ var $$Operations = createComponent(($$result, $$props, $$slots) => {
14
+ const Astro = $$result.createAstro($$props, $$slots);
15
+ Astro.self = $$Operations;
16
+ const { t } = Astro.locals;
17
+ return renderTemplate`${renderComponent($$result, "DashboardLayout", $$DashboardLayout, {
18
+ "title": t("operations.title"),
19
+ "data-astro-cid-bbpf7yln": true
20
+ }, { "default": ($$result) => renderTemplate`${maybeRenderHead($$result)}<div class="settings-page" data-astro-cid-bbpf7yln><div class="page-header" data-astro-cid-bbpf7yln><h2 data-astro-cid-bbpf7yln>${t("operations.title")}</h2><p data-astro-cid-bbpf7yln>${t("operations.description")}</p></div>${renderComponent($$result, "OperationsManager", OperationsManager, {
21
+ "client:load": true,
22
+ "data-astro-cid-bbpf7yln": true,
23
+ "client:component-hydration": "load",
24
+ "client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/apps/settings/ResourceHubs.tsx",
25
+ "client:component-export": "OperationsManager"
26
+ })}</div>` })}`;
27
+ }, "/home/runner/work/cms/cms/apps/admin/src/pages/settings/operations.astro", void 0);
28
+ var $$file = "/home/runner/work/cms/cms/apps/admin/src/pages/settings/operations.astro";
29
+ var $$url = "/settings/operations";
30
+ //#endregion
31
+ //#region \0virtual:astro:page:src/pages/settings/operations@_@astro
32
+ var page = () => operations_exports;
33
+ //#endregion
34
+ export { page };
@@ -7,7 +7,9 @@ var layout = {
7
7
  "content": "Treści",
8
8
  "media": "Media",
9
9
  "users": "Użytkownicy",
10
- "settings": "Ustawienia"
10
+ "settings": "Ustawienia",
11
+ "plugins": "Wtyczki",
12
+ "themes": "Motywy"
11
13
  },
12
14
  "actions": {
13
15
  "logout": "Wyloguj",
@@ -1,27 +1,37 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
- import { i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
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 "./i18n_Dj2ieo-N.mjs";
5
- import { t as $$BaseLayout } from "./BaseLayout_BsR68tOH.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_CH59YTvE.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_KIUq60Dv.mjs";
6
6
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
7
- import { For, createSignal, onMount } from "solid-js";
7
+ import { For, Show, createSignal, onMount } from "solid-js";
8
8
  //#region src/components/apps/plugins/PluginManager.tsx
9
9
  var _tmpl$ = [
10
+ "<form",
11
+ " class=\"card plugin-install-form\"><input class=\"input\" required",
12
+ "><input class=\"input\" required",
13
+ "><textarea class=\"input\" required rows=\"5\"",
14
+ "></textarea><button class=\"btn btn-primary\" type=\"submit\">",
15
+ "</button></form>"
16
+ ];
17
+ var _tmpl$2 = [
10
18
  "<div",
11
19
  " class=\"plugin-manager\"><div class=\"page-header\"><h2>",
12
20
  "</h2><p class=\"page-description\">",
13
- "</p></div><!--$-->",
21
+ "</p><button class=\"btn btn-primary\" type=\"button\">",
22
+ "</button></div><!--$-->",
23
+ "<!--/--><!--$-->",
14
24
  "<!--/--><!--$-->",
15
25
  "<!--/--><!--$-->",
16
26
  "<!--/--><style>\n .page-header {\n margin-bottom: 1.5rem;\n }\n .page-header h2 {\n margin: 0 0 0.5rem;\n font-size: 1.5rem;\n font-weight: 600;\n }\n .page-description {\n margin: 0;\n color: var(--color-muted);\n font-size: 0.875rem;\n }\n .plugins-table-container {\n overflow-x: auto;\n }\n .table {\n width: 100%;\n border-collapse: collapse;\n }\n .table th,\n .table td {\n padding: 0.75rem 1rem;\n text-align: left;\n border-bottom: 1px solid var(--color-border);\n }\n .table th {\n font-weight: 600;\n color: var(--color-text);\n background: var(--color-surface);\n }\n .plugin-row:hover {\n background: var(--color-background);\n }\n .plugin-name {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n }\n .plugin-name strong {\n font-weight: 500;\n }\n .plugin-description {\n font-size: 0.75rem;\n color: var(--color-muted);\n }\n .status-badge {\n display: inline-flex;\n align-items: center;\n padding: 0.25rem 0.5rem;\n border-radius: var(--radius-full);\n font-size: 0.6875rem;\n font-weight: 600;\n text-transform: uppercase;\n }\n .status-active {\n background: var(--color-success-soft);\n color: var(--color-success);\n }\n .status-installed {\n background: var(--color-primary-soft);\n color: var(--color-primary);\n }\n .status-inactive {\n background: var(--color-muted-soft);\n color: var(--color-muted);\n }\n .btn-loading {\n opacity: 0.6;\n cursor: wait;\n }\n .empty-state {\n padding: 2rem;\n text-align: center;\n color: var(--color-muted);\n }\n .alert {\n padding: 0.75rem 1rem;\n border-radius: var(--radius-md);\n margin-bottom: 1rem;\n }\n .alert-error {\n background: var(--color-error-soft);\n color: var(--color-error);\n border: 1px solid var(--color-error);\n }\n .skeleton {\n padding: 2rem;\n text-align: center;\n color: var(--color-muted);\n }\n </style></div>"
17
27
  ];
18
- var _tmpl$2 = [
28
+ var _tmpl$3 = [
19
29
  "<div",
20
30
  " class=\"alert alert-error\">",
21
31
  "</div>"
22
32
  ];
23
- var _tmpl$3 = ["<div", " class=\"skeleton\">Loading...</div>"];
24
- var _tmpl$4 = [
33
+ var _tmpl$4 = ["<div", " class=\"skeleton\">Loading...</div>"];
34
+ var _tmpl$5 = [
25
35
  "<div",
26
36
  " class=\"plugins-table-container\"><table class=\"table\"><thead><tr><th>",
27
37
  "</th><th>",
@@ -31,7 +41,7 @@ var _tmpl$4 = [
31
41
  "</tbody></table><!--$-->",
32
42
  "<!--/--></div>"
33
43
  ];
34
- var _tmpl$5 = [
44
+ var _tmpl$6 = [
35
45
  "<tr",
36
46
  " class=\"plugin-row\"><td class=\"plugin-name\"><strong>",
37
47
  "</strong><!--$-->",
@@ -41,14 +51,15 @@ var _tmpl$5 = [
41
51
  "</span></td><td><button class=\"",
42
52
  "\"",
43
53
  ">",
54
+ "</button><button class=\"btn btn-sm btn-danger\" type=\"button\">",
44
55
  "</button></td></tr>"
45
56
  ];
46
- var _tmpl$6 = [
57
+ var _tmpl$7 = [
47
58
  "<span",
48
59
  " class=\"plugin-description\">",
49
60
  "</span>"
50
61
  ];
51
- var _tmpl$7 = [
62
+ var _tmpl$8 = [
52
63
  "<div",
53
64
  " class=\"empty-state\">",
54
65
  "</div>"
@@ -59,6 +70,12 @@ function PluginManager() {
59
70
  const [loading, setLoading] = createSignal(true);
60
71
  const [error, setError] = createSignal(null);
61
72
  const [toggling, setToggling] = createSignal(null);
73
+ const [installForm, setInstallForm] = createSignal({
74
+ name: "",
75
+ version: "",
76
+ manifest: "{}"
77
+ });
78
+ const [showInstall, setShowInstall] = createSignal(false);
62
79
  onMount(async () => {
63
80
  await loadPlugins();
64
81
  });
@@ -67,34 +84,46 @@ function PluginManager() {
67
84
  setLoading(true);
68
85
  const data = await apiClient.getPlugins();
69
86
  setPlugins(data);
70
- } catch (err) {
87
+ } catch {
71
88
  setError(t("plugins.loadError"));
72
89
  } finally {
73
90
  setLoading(false);
74
91
  }
75
92
  }
93
+ const isActive = (plugin) => plugin.status === "ACTIVE" || plugin.status === "ACTIVATED";
76
94
  const getStatusLabel = (status) => {
77
95
  switch (status) {
78
- case "ACTIVE": return t("plugins.status.active");
96
+ case "ACTIVE":
97
+ case "ACTIVATED": return t("plugins.status.active");
79
98
  case "INSTALLED": return t("plugins.status.installed");
80
- case "INACTIVE": return t("plugins.status.inactive");
99
+ case "INACTIVE":
100
+ case "DEACTIVATED": return t("plugins.status.inactive");
81
101
  default: return status;
82
102
  }
83
103
  };
84
104
  const getStatusClass = (status) => {
85
105
  switch (status) {
86
- case "ACTIVE": return "status-active";
106
+ case "ACTIVE":
107
+ case "ACTIVATED": return "status-active";
87
108
  case "INSTALLED": return "status-installed";
88
- case "INACTIVE": return "status-inactive";
109
+ case "INACTIVE":
110
+ case "DEACTIVATED": return "status-inactive";
89
111
  default: return "";
90
112
  }
91
113
  };
92
- return ssr(_tmpl$, ssrHydrationKey(), escape(t("plugins.title")), escape(t("plugins.description")), error() && ssr(_tmpl$2, ssrHydrationKey(), escape(error())), loading() && _tmpl$3[0] + ssrHydrationKey() + _tmpl$3[1], !loading() && !error() && ssr(_tmpl$4, ssrHydrationKey(), escape(t("plugins.columns.name")), escape(t("plugins.columns.version")), escape(t("plugins.columns.status")), escape(t("plugins.columns.actions")), escape(createComponent(For, {
114
+ return ssr(_tmpl$2, ssrHydrationKey(), escape(t("plugins.title")), escape(t("plugins.description")), escape(t("plugins.install")), escape(createComponent(Show, {
115
+ get when() {
116
+ return showInstall();
117
+ },
118
+ get children() {
119
+ return ssr(_tmpl$, ssrHydrationKey(), ssrAttribute("placeholder", escape(t("plugins.name"), true), false) + ssrAttribute("value", escape(installForm().name, true), false), ssrAttribute("placeholder", escape(t("plugins.version"), true), false) + ssrAttribute("value", escape(installForm().version, true), false), ssrAttribute("placeholder", escape(t("plugins.manifest"), true), false) + ssrAttribute("value", escape(installForm().manifest, true), false), escape(t("common.save")));
120
+ }
121
+ })), error() && ssr(_tmpl$3, ssrHydrationKey(), escape(error())), loading() && _tmpl$4[0] + ssrHydrationKey() + _tmpl$4[1], !loading() && !error() && ssr(_tmpl$5, ssrHydrationKey(), escape(t("plugins.columns.name")), escape(t("plugins.columns.version")), escape(t("plugins.columns.status")), escape(t("plugins.columns.actions")), escape(createComponent(For, {
93
122
  get each() {
94
123
  return plugins();
95
124
  },
96
- children: (plugin) => ssr(_tmpl$5, ssrHydrationKey(), escape(plugin.name), plugin.manifest?.description && ssr(_tmpl$6, ssrHydrationKey(), escape(plugin.manifest.description)), escape(plugin.version), `status-badge ${escape(getStatusClass(plugin.status), true)}`, escape(getStatusLabel(plugin.status)), `btn btn-sm ${toggling() === plugin.id ? "btn-loading" : ""}`, ssrAttribute("disabled", toggling() !== null, true) + ssrAttribute("aria-label", plugin.status === "ACTIVE" ? escape(t("plugins.deactivate"), true) : escape(t("plugins.activate"), true), false), plugin.status === "ACTIVE" ? escape(t("plugins.deactivate")) : escape(t("plugins.activate")))
97
- })), plugins().length === 0 && ssr(_tmpl$7, ssrHydrationKey(), escape(t("plugins.empty")))));
125
+ children: (plugin) => ssr(_tmpl$6, ssrHydrationKey(), escape(plugin.name), plugin.manifest?.description && ssr(_tmpl$7, ssrHydrationKey(), escape(plugin.manifest.description)), escape(plugin.version), `status-badge ${escape(getStatusClass(plugin.status), true)}`, escape(getStatusLabel(plugin.status)), `btn btn-sm ${toggling() === plugin.id ? "btn-loading" : ""}`, ssrAttribute("disabled", toggling() !== null, true) + ssrAttribute("aria-label", isActive(plugin) ? escape(t("plugins.deactivate"), true) : escape(t("plugins.activate"), true), false), isActive(plugin) ? escape(t("plugins.deactivate")) : escape(t("plugins.activate")), escape(t("plugins.uninstall")))
126
+ })), plugins().length === 0 && ssr(_tmpl$8, ssrHydrationKey(), escape(t("plugins.empty")))));
98
127
  }
99
128
  //#endregion
100
129
  //#region src/pages/plugins.astro
@@ -103,10 +132,14 @@ var plugins_exports = /* @__PURE__ */ __exportAll({
103
132
  file: () => $$file,
104
133
  url: () => $$url
105
134
  });
135
+ createAstro("https://astro.build");
106
136
  var $$Plugins = createComponent$1(($$result, $$props, $$slots) => {
107
- return renderTemplate`${renderComponent($$result, "BaseLayout", $$BaseLayout, {
108
- "title": "Plugins",
109
- "description": "Gerencie plugins do sistema"
137
+ const Astro = $$result.createAstro($$props, $$slots);
138
+ Astro.self = $$Plugins;
139
+ const { t } = Astro.locals;
140
+ return renderTemplate`${renderComponent($$result, "DashboardLayout", $$DashboardLayout, {
141
+ "title": t("plugins.title"),
142
+ "description": t("plugins.description")
110
143
  }, { "default": ($$result) => renderTemplate`${renderComponent($$result, "PluginManager", PluginManager, {
111
144
  "client:load": true,
112
145
  "client:component-hydration": "load",
@@ -1,10 +1,10 @@
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 "./i18n_Dj2ieo-N.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_B9pE8ZBQ.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_CH59YTvE.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_KIUq60Dv.mjs";
6
6
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
7
- import { For, Show, createSignal, onMount } from "solid-js";
7
+ import { For, Show, createMemo, createSignal, onMount } from "solid-js";
8
8
  //#region src/components/apps/settings/PostTypesManager.tsx
9
9
  var _tmpl$ = [
10
10
  "<div",
@@ -63,7 +63,7 @@ function PostTypesManager() {
63
63
  const [types, setTypes] = createSignal([]);
64
64
  const [error, setError] = createSignal("");
65
65
  const [saving, setSaving] = createSignal(false);
66
- const SUPPORTS_OPTIONS = [
66
+ const supportsOptions = createMemo(() => [
67
67
  {
68
68
  value: "title",
69
69
  label: t("settings.postTypes.form.supportsOptions.title")
@@ -84,7 +84,7 @@ function PostTypesManager() {
84
84
  value: "revisions",
85
85
  label: t("settings.postTypes.form.supportsOptions.revisions")
86
86
  }
87
- ];
87
+ ]);
88
88
  const [form, setForm] = createSignal({
89
89
  name: "",
90
90
  slug: "",
@@ -110,7 +110,7 @@ function PostTypesManager() {
110
110
  }
111
111
  })), 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.supports")), escape(createComponent(For, {
112
112
  get each() {
113
- return [...SUPPORTS_OPTIONS];
113
+ return supportsOptions();
114
114
  },
115
115
  children: (option) => ssr(_tmpl$3, ssrHydrationKey(), ssrAttribute("checked", form().supports.includes(option.value), true), escape(option.label))
116
116
  })), ssrAttribute("checked", form().hasArchive, true), escape(t("settings.postTypes.form.hasArchive")), ssrAttribute("disabled", saving(), true), escape(t("settings.postTypes.form.create")), 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(createComponent(For, {