@oktis-works/admin 0.4.17 → 0.4.19

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 (106) hide show
  1. package/dist/client/_astro/{ActivityWidget.BoV5JMFM.js → ActivityWidget.DGLCPDgH.js} +2 -2
  2. package/dist/client/_astro/{AdminBar.Bzzeux86.js → AdminBar.Cj9iKizr.js} +2 -2
  3. package/dist/client/_astro/{AtGlanceWidget.BIHmD0Mp.js → AtGlanceWidget.B1bDhxvN.js} +2 -2
  4. package/dist/client/_astro/{BaseLayout.B3A9-IS6.css → BaseLayout.Y8xW22CP.css} +1 -1
  5. package/dist/client/_astro/ContentEditor.SP4PO6Pb.js +3 -0
  6. package/dist/client/_astro/ContentList.o2zVu57t.js +1 -0
  7. package/dist/client/_astro/CustomFieldsManager.CvWD3R1q.js +3 -0
  8. package/dist/client/_astro/DashboardHome.DnCbpnkg.js +1 -0
  9. package/dist/client/_astro/DashboardLayout.BOoRKX4v.css +1 -0
  10. package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.7Kcbf7KO.js +1 -0
  11. package/dist/client/_astro/FieldTypePicker.Cyfzqug-.js +1 -0
  12. package/dist/client/_astro/{Footer.LI6Cpgg_.js → Footer.BqzSGnHm.js} +1 -1
  13. package/dist/client/_astro/GeneralSettings.Ditcyy4b.js +1 -0
  14. package/dist/client/_astro/MediaLibrary.qzwN-LI5.js +1 -0
  15. package/dist/client/_astro/{PluginManager.BYI4SRec.js → PluginManager.DEkeX_0Z.js} +2 -2
  16. package/dist/client/_astro/PostTypesManager.CGYbeXgb.js +1 -0
  17. package/dist/client/_astro/{QuickDraftWidget.Cjm5_7y-.js → QuickDraftWidget.xoJjOM58.js} +2 -2
  18. package/dist/client/_astro/ResourceHubs.BHlRlPvI.js +1 -0
  19. package/dist/client/_astro/TaxonomiesManager.DKQAGS8n.js +1 -0
  20. package/dist/client/_astro/TaxonomyTermsManager.CyB7XH-D.js +1 -0
  21. package/dist/client/_astro/{ThemeManager.Hw1k4IW5.js → ThemeManager.BBKCx5pa.js} +2 -2
  22. package/dist/client/_astro/UserCreateForm.BDsHkQYW.js +1 -0
  23. package/dist/client/_astro/UsersManager.DeQ4uL3a.js +1 -0
  24. package/dist/client/_astro/{ar.DsV0P0EN.js → ar.CwC9hXB9.js} +1 -1
  25. package/dist/client/_astro/client.W0NY0lEa.js +1 -0
  26. package/dist/client/_astro/{es-ES.etPSaiLd.js → es-ES.qNcd-cVX.js} +1 -1
  27. package/dist/client/_astro/extensions.DLE6XtMB.js +1 -0
  28. package/dist/client/_astro/{he.U1Vtp3zT.js → he.DfZ0ZzM-.js} +1 -1
  29. package/dist/client/_astro/i18n.JWFhLjfn.js +1 -0
  30. package/dist/client/_astro/{it.DJuI8oO_.js → it.PFmLQj2s.js} +1 -1
  31. package/dist/client/_astro/{ja.Cw8I_NUV.js → ja.CMi5cD8g.js} +1 -1
  32. package/dist/client/_astro/{pl.Dsz-4G_z.js → pl.CRExzLlj.js} +1 -1
  33. package/dist/client/_astro/pt-BR.CGjPpous.js +1 -0
  34. package/dist/client/_astro/{ru.CwIIcTdy.js → ru.CWV-tkZ3.js} +1 -1
  35. package/dist/client/_astro/solid.DN8T1HsY.js +1 -0
  36. package/dist/client/_astro/src.lFTwiz1W.js +1 -0
  37. package/dist/client/_astro/{sw.DwpL3sb6.js → sw.B5x6GU4s.js} +1 -1
  38. package/dist/client/_astro/{tr.CY2JWJ7Y.js → tr.BzxCGQu8.js} +1 -1
  39. package/dist/client/_astro/{uk.BudEWIU8.js → uk.DJHMwNRU.js} +1 -1
  40. package/dist/client/_astro/{version.B9EoEAbb.js → version.Cwfv80ER.js} +1 -1
  41. package/dist/client/_astro/web.Bze9SKEA.js +1 -0
  42. package/dist/client/_astro/{yo.BmoZs0fO.js → yo.DNw_hOnW.js} +1 -1
  43. package/dist/client/_astro/{zh-CN.khaXV6fv.js → zh-CN.Bs7H6Unx.js} +1 -1
  44. package/dist/server/chunks/{ContentEditor_B_alLPkZ.mjs → ContentEditor_CxZJjeXR.mjs} +423 -87
  45. package/dist/server/chunks/{DashboardLayout_B1lpShsT.mjs → DashboardLayout_DCIiRkcO.mjs} +13 -12
  46. package/dist/server/chunks/{MediaLibrary_B_mkxyGz.mjs → MediaLibrary_azhfNs4N.mjs} +2 -2
  47. package/dist/server/chunks/{ResourceHubs_SnzUKv2d.mjs → ResourceHubs_BJMX1AJR.mjs} +1 -1
  48. package/dist/server/chunks/{_slug__DK1dX6Cc.mjs → _slug__BEfbBGa_.mjs} +1 -1
  49. package/dist/server/chunks/{access_BXua9HeF.mjs → access_DNxcWCO1.mjs} +2 -2
  50. package/dist/server/chunks/{ar_DMC8HaoP.mjs → ar_B0LfQbpu.mjs} +1 -1
  51. package/dist/server/chunks/{custom-fields_DZxzXn_Y.mjs → custom-fields_DI9f2Pqi.mjs} +2 -2
  52. package/dist/server/chunks/{edit_DMCL0nv5.mjs → edit_3GtD2cva.mjs} +4 -2
  53. package/dist/server/chunks/{es-ES_DZvHskAD.mjs → es-ES_dBEm2FNw.mjs} +1 -1
  54. package/dist/server/chunks/{general_DY6nfeME.mjs → general_CbiPNS7I.mjs} +2 -2
  55. package/dist/server/chunks/{he_zy3stNhR.mjs → he_DRWoI1A5.mjs} +1 -1
  56. package/dist/server/chunks/{i18n_BZdCNETS.mjs → i18n_DIBvEjfq.mjs} +54 -16
  57. package/dist/server/chunks/{index_D0YtPHrm.mjs → index_BZJqnzEO.mjs} +34 -31
  58. package/dist/server/chunks/{index_Bn9LjtxA.mjs → index_BcV8TVEC.mjs} +2 -2
  59. package/dist/server/chunks/{index_BAVyaaWE.mjs → index_C3amWOJX.mjs} +1 -1
  60. package/dist/server/chunks/{index_BZU6TG9K.mjs → index_CTJw_OsD.mjs} +2 -2
  61. package/dist/server/chunks/{index_eIvtdujt.mjs → index_kTsjYnf7.mjs} +2 -2
  62. package/dist/server/chunks/{it_BiUDLszZ.mjs → it_BDY3lerP.mjs} +1 -1
  63. package/dist/server/chunks/{ja_DjFAG7hL.mjs → ja_C-EybQiV.mjs} +1 -1
  64. package/dist/server/chunks/{login_xmDNRy6-.mjs → login_D-Z6bo6E.mjs} +1 -1
  65. package/dist/server/chunks/{new_vDml0n9D.mjs → new_Dg9ykZGm.mjs} +4 -2
  66. package/dist/server/chunks/{new_DjeZ5fm2.mjs → new_uLMmBd95.mjs} +2 -2
  67. package/dist/server/chunks/{operations_wkXdEoy9.mjs → operations_vnv5cnws.mjs} +2 -2
  68. package/dist/server/chunks/{pl_0Xe9Qom2.mjs → pl_DH5LKmVG.mjs} +1 -1
  69. package/dist/server/chunks/{plugins_BwmcMrFa.mjs → plugins_pNXwbZGI.mjs} +2 -2
  70. package/dist/server/chunks/{post-types_Di0TnpMF.mjs → post-types_g7oMw8xZ.mjs} +2 -2
  71. package/dist/server/chunks/{pt-BR_DIZpU2Mk.mjs → pt-BR_BM0FS26r.mjs} +32 -1
  72. package/dist/server/chunks/{resources_BZh_dXsF.mjs → resources_DhbyXd_o.mjs} +2 -2
  73. package/dist/server/chunks/{ru_DFvIxd0Y.mjs → ru_CFa1xYFr.mjs} +1 -1
  74. package/dist/server/chunks/{sw_CmaPgGYa.mjs → sw_QZf7NSsI.mjs} +1 -1
  75. package/dist/server/chunks/{taxonomies_CuEyvskw.mjs → taxonomies_CX8h73Lt.mjs} +2 -2
  76. package/dist/server/chunks/taxonomy_D8om_RNg.mjs +152 -0
  77. package/dist/server/chunks/{themes_DZ9w9ECK.mjs → themes_JX5WVf2J.mjs} +2 -2
  78. package/dist/server/chunks/{tr_B_acwl2e.mjs → tr_Fjry5R-K.mjs} +1 -1
  79. package/dist/server/chunks/{uk_DXnk4imL.mjs → uk_Bxc3qY45.mjs} +1 -1
  80. package/dist/server/chunks/{upload_Bp9adHy4.mjs → upload_r2qJskLo.mjs} +2 -2
  81. package/dist/server/chunks/{yo_DDQ8a-0v.mjs → yo_BARL-Qrh.mjs} +1 -1
  82. package/dist/server/chunks/{zh-CN_763uzTMQ.mjs → zh-CN_CkjPJL88.mjs} +1 -1
  83. package/dist/server/entry.mjs +70 -39
  84. package/dist/server/virtual_astro_middleware.mjs +1 -1
  85. package/package.json +1 -1
  86. package/dist/client/_astro/ContentEditor.Bdh3rpdn.js +0 -1
  87. package/dist/client/_astro/ContentList.D1XcWg2t.js +0 -1
  88. package/dist/client/_astro/CustomFieldsManager.6c3e_83f.js +0 -3
  89. package/dist/client/_astro/DashboardHome.C0c91P5X.js +0 -1
  90. package/dist/client/_astro/DashboardLayout.CEvRGr78.css +0 -1
  91. package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.CMtAy9r3.js +0 -1
  92. package/dist/client/_astro/FieldTypePicker.BEuYPzV8.js +0 -1
  93. package/dist/client/_astro/GeneralSettings.BFAXjOA2.js +0 -1
  94. package/dist/client/_astro/MediaLibrary.BvtJOo5A.js +0 -1
  95. package/dist/client/_astro/PostTypesManager.bQc6yww5.js +0 -1
  96. package/dist/client/_astro/ResourceHubs.MrbWi-Z_.js +0 -1
  97. package/dist/client/_astro/TaxonomiesManager.kwogAOFS.js +0 -1
  98. package/dist/client/_astro/UserCreateForm.CHb7uDCX.js +0 -1
  99. package/dist/client/_astro/UsersManager.Btde4I0r.js +0 -1
  100. package/dist/client/_astro/client.BY0Z100j.js +0 -1
  101. package/dist/client/_astro/extensions.Y_1XaoRs.js +0 -1
  102. package/dist/client/_astro/i18n.RrM42yx5.js +0 -1
  103. package/dist/client/_astro/pt-BR.CyQAHnXs.js +0 -1
  104. package/dist/client/_astro/src.B10HDgSa.js +0 -1
  105. package/dist/client/_astro/web.D_vCtCLj.js +0 -1
  106. /package/dist/server/chunks/{BaseLayout_D1PbsjNG.mjs → BaseLayout_m8b8Eemd.mjs} +0 -0
@@ -1,8 +1,8 @@
1
1
  import "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, d as maybeRenderHead, i as renderComponent, p as addAttribute, s as renderSlot, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
4
- import { n as renderScript, t as $$BaseLayout } from "./BaseLayout_D1PbsjNG.mjs";
5
- import { a as LOCALE_LABELS, i as LOCALE_FLAGS, n as useTranslation, o as SUPPORTED_LOCALES, r as apiClient } from "./i18n_BZdCNETS.mjs";
4
+ import { n as renderScript, t as $$BaseLayout } from "./BaseLayout_m8b8Eemd.mjs";
5
+ import { a as LOCALE_LABELS, i as LOCALE_FLAGS, n as useTranslation, o as SUPPORTED_LOCALES, r as apiClient } from "./i18n_DIBvEjfq.mjs";
6
6
  import { t as require_semver } from "./semver_WbqCUY_o.mjs";
7
7
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey, ssrStyle } from "solid-js/web";
8
8
  import { For, For as For2, Show, Show as Show2, createMemo as createMemo$1, createSignal, createSignal as createSignal$1, onMount, onMount as onMount$1 } from "solid-js";
@@ -479,7 +479,7 @@ function AdminBar(props) {
479
479
  const [showLangMenu, setShowLangMenu] = createSignal(false);
480
480
  const [showNotifications, setShowNotifications] = createSignal(false);
481
481
  const [notifications, setNotifications] = createSignal([]);
482
- const currentLocale = () => locale;
482
+ const currentLocale = () => locale();
483
483
  const translate = t;
484
484
  const handleClickOutside = (e) => {
485
485
  if (!e.target.closest("#admin-bar")) {
@@ -585,7 +585,7 @@ function AdminBar(props) {
585
585
  /** Versão do release atual (ex.: "0.4.0"). */
586
586
  var APP_VERSION = {
587
587
  name: "okcms",
588
- version: "0.4.17",
588
+ version: "0.4.19",
589
589
  "private": true,
590
590
  description: "Hybrid, modular, API-first CMS",
591
591
  engines: {
@@ -612,6 +612,7 @@ var APP_VERSION = {
612
612
  "publish:all": "node scripts/prepare-publish.mjs && for pkg in packages/* apps/api apps/admin apps/web apps/worker; do [ -f \"$pkg/package.json\" ] || continue; echo \"→ publishing $pkg\"; (cd \"$pkg\" && npm publish --access public) || exit 1; done"
613
613
  },
614
614
  devDependencies: {
615
+ "@oktis-works/cms": "^0.4.19",
615
616
  "@changesets/changelog-github": "^1.0.1",
616
617
  "@changesets/cli": "^3.0.3",
617
618
  "@types/node": "22.0.0",
@@ -985,37 +986,37 @@ var $$DashboardLayout = createComponent$1(($$result, $$props, $$slots) => {
985
986
  const settingsChildren = [
986
987
  {
987
988
  href: "/settings/general",
988
- label: t("settings.general.title"),
989
+ key: "settings.general.title",
989
990
  active: isActive("/settings/general")
990
991
  },
991
992
  {
992
993
  href: "/settings/post-types",
993
- label: t("settings.postTypes.title"),
994
+ key: "settings.postTypes.title",
994
995
  active: isActive("/settings/post-types")
995
996
  },
996
997
  {
997
998
  href: "/settings/custom-fields",
998
- label: t("settings.customFields.title"),
999
+ key: "settings.customFields.title",
999
1000
  active: isActive("/settings/custom-fields")
1000
1001
  },
1001
1002
  {
1002
1003
  href: "/settings/taxonomies",
1003
- label: t("settings.taxonomies.title"),
1004
+ key: "settings.taxonomies.title",
1004
1005
  active: isActive("/settings/taxonomies")
1005
1006
  },
1006
1007
  {
1007
1008
  href: "/settings/resources",
1008
- label: t("resources.title"),
1009
+ key: "resources.title",
1009
1010
  active: isActive("/settings/resources")
1010
1011
  },
1011
1012
  {
1012
1013
  href: "/settings/access",
1013
- label: t("access.title"),
1014
+ key: "access.title",
1014
1015
  active: isActive("/settings/access")
1015
1016
  },
1016
1017
  {
1017
1018
  href: "/settings/operations",
1018
- label: t("operations.title"),
1019
+ key: "operations.title",
1019
1020
  active: isActive("/settings/operations")
1020
1021
  }
1021
1022
  ];
@@ -1029,7 +1030,7 @@ var $$DashboardLayout = createComponent$1(($$result, $$props, $$slots) => {
1029
1030
  "client:component-hydration": "load",
1030
1031
  "client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/admin-bar/AdminBar.tsx",
1031
1032
  "client:component-export": "AdminBar"
1032
- })}${maybeRenderHead($$result)}<div class="layout" data-astro-cid-ynf3rr4n><!-- Sidebar colapsavel — o estado (body.sidebar-collapsed) e aplicado pelo script abaixo --><aside class="sidebar" data-astro-cid-ynf3rr4n><div class="sidebar-header" data-astro-cid-ynf3rr4n><span class="sidebar-collapsed-brand"${addAttribute(t("layout.appName"), "title")} data-astro-cid-ynf3rr4n><svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="28" height="28" data-astro-cid-ynf3rr4n><rect width="32" height="32" rx="8" fill="url(#grad)" data-astro-cid-ynf3rr4n></rect><path d="M8 10h16M8 16h12M8 22h8" stroke="#0A0A0A" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n></path><defs data-astro-cid-ynf3rr4n><linearGradient id="grad" x1="0" y1="0" x2="32" y2="32" gradientUnits="userSpaceOnUse" data-astro-cid-ynf3rr4n><stop offset="0%" stop-color="#D8B45E" data-astro-cid-ynf3rr4n></stop><stop offset="100%" stop-color="#B99542" data-astro-cid-ynf3rr4n></stop></linearGradient></defs></svg></span></div><nav class="sidebar-nav" data-astro-cid-ynf3rr4n><a href="/"${addAttribute(["nav-item", { active: navActive.dashboard }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><rect x="3" y="3" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="14" y="3" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="14" y="14" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="3" y="14" width="7" height="7" data-astro-cid-ynf3rr4n></rect></svg><span class="nav-label" data-astro-cid-ynf3rr4n>${t("layout.nav.dashboard")}</span></a><a href="/content"${addAttribute(["nav-item", { active: navActive.content }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" data-astro-cid-ynf3rr4n></path><polyline points="14 2 14 8 20 8" data-astro-cid-ynf3rr4n></polyline><line x1="16" y1="13" x2="8" y2="13" data-astro-cid-ynf3rr4n></line><line x1="16" y1="17" x2="8" y2="17" data-astro-cid-ynf3rr4n></line><polyline points="10 9 9 9 8 9" data-astro-cid-ynf3rr4n></polyline></svg><span class="nav-label" data-astro-cid-ynf3rr4n>${t("layout.nav.content")}</span></a><a href="/media"${addAttribute(["nav-item", { active: navActive.media }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><rect x="3" y="3" width="18" height="18" rx="2" ry="2" data-astro-cid-ynf3rr4n></rect><circle cx="8.5" cy="8.5" r="1.5" data-astro-cid-ynf3rr4n></circle><polyline points="21 15 16 10 5 21" data-astro-cid-ynf3rr4n></polyline></svg><span class="nav-label" data-astro-cid-ynf3rr4n>${t("layout.nav.media")}</span></a><a href="/users"${addAttribute(["nav-item", { active: navActive.users }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" data-astro-cid-ynf3rr4n></path><circle cx="9" cy="7" r="4" data-astro-cid-ynf3rr4n></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87" data-astro-cid-ynf3rr4n></path><path d="M16 3.13a4 4 0 0 1 0 7.75" data-astro-cid-ynf3rr4n></path></svg><span class="nav-label" data-astro-cid-ynf3rr4n>${t("layout.nav.users")}</span></a><a href="/settings"${addAttribute(["nav-item", { active: navActive.settings }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><circle cx="12" cy="12" r="3" data-astro-cid-ynf3rr4n></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-ynf3rr4n></path></svg><span class="nav-label" data-astro-cid-ynf3rr4n>${t("layout.nav.settings")}</span></a><!-- Submenu de configurações fica agrupado diretamente sob Settings. --><div class="nav-submenu" data-astro-cid-ynf3rr4n>${settingsChildren.map((child) => renderTemplate`<a${addAttribute(child.href, "href")}${addAttribute(["nav-subitem", { active: child.active }], "class:list")} data-astro-cid-ynf3rr4n>${child.label}</a>`)}</div><a href="/plugins"${addAttribute(["nav-item", { active: navActive.plugins }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><rect x="2" y="2" width="20" height="20" rx="2" ry="2" data-astro-cid-ynf3rr4n></rect><path d="M15 7h4a2 2 0 0 1 2 2v4" data-astro-cid-ynf3rr4n></path><path d="M9 17H5a2 2 0 0 1-2-2V9" data-astro-cid-ynf3rr4n></path><line x1="8" y1="12" x2="16" y2="12" data-astro-cid-ynf3rr4n></line></svg><span class="nav-label" data-astro-cid-ynf3rr4n>${t("layout.nav.plugins")}</span></a><a href="/themes"${addAttribute(["nav-item", { active: navActive.themes }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><circle cx="12" cy="12" r="10" data-astro-cid-ynf3rr4n></circle><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" data-astro-cid-ynf3rr4n></path><path d="M2 12h20" data-astro-cid-ynf3rr4n></path></svg><span class="nav-label" data-astro-cid-ynf3rr4n>${t("layout.nav.themes")}</span></a><!-- D1: slots de extensao — paginas de menu declaradas por plugins ativos -->${renderComponent($$result, "PluginExtensionsSlot", PluginExtensionsSlot, {
1033
+ })}${maybeRenderHead($$result)}<div class="layout" data-astro-cid-ynf3rr4n><!-- Sidebar colapsavel — o estado (body.sidebar-collapsed) e aplicado pelo script abaixo --><aside class="sidebar" data-astro-cid-ynf3rr4n><div class="sidebar-header" data-astro-cid-ynf3rr4n><span class="sidebar-collapsed-brand"${addAttribute(t("layout.appName"), "title")} data-astro-cid-ynf3rr4n><svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="28" height="28" data-astro-cid-ynf3rr4n><rect width="32" height="32" rx="8" fill="url(#grad)" data-astro-cid-ynf3rr4n></rect><path d="M8 10h16M8 16h12M8 22h8" stroke="#0A0A0A" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n></path><defs data-astro-cid-ynf3rr4n><linearGradient id="grad" x1="0" y1="0" x2="32" y2="32" gradientUnits="userSpaceOnUse" data-astro-cid-ynf3rr4n><stop offset="0%" stop-color="#D8B45E" data-astro-cid-ynf3rr4n></stop><stop offset="100%" stop-color="#B99542" data-astro-cid-ynf3rr4n></stop></linearGradient></defs></svg></span></div><nav class="sidebar-nav" data-astro-cid-ynf3rr4n><a href="/"${addAttribute(["nav-item", { active: navActive.dashboard }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><rect x="3" y="3" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="14" y="3" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="14" y="14" width="7" height="7" data-astro-cid-ynf3rr4n></rect><rect x="3" y="14" width="7" height="7" data-astro-cid-ynf3rr4n></rect></svg><span class="nav-label" data-sidebar-i18n="layout.nav.dashboard" data-astro-cid-ynf3rr4n>${t("layout.nav.dashboard")}</span></a><div${addAttribute(["nav-group", { open: navActive.content }], "class:list")} data-nav-group="content" data-astro-cid-ynf3rr4n><div class="nav-group-header" data-astro-cid-ynf3rr4n><a href="/content"${addAttribute(["nav-item", { active: navActive.content }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" data-astro-cid-ynf3rr4n></path><polyline points="14 2 14 8 20 8" data-astro-cid-ynf3rr4n></polyline><line x1="16" y1="13" x2="8" y2="13" data-astro-cid-ynf3rr4n></line><line x1="16" y1="17" x2="8" y2="17" data-astro-cid-ynf3rr4n></line><polyline points="10 9 9 9 8 9" data-astro-cid-ynf3rr4n></polyline></svg><span class="nav-label" data-sidebar-i18n="layout.nav.content" data-astro-cid-ynf3rr4n>${t("layout.nav.content")}</span></a><button class="nav-group-toggle" type="button"${addAttribute(navActive.content ? "true" : "false", "aria-expanded")} aria-label="Toggle content menu" data-astro-cid-ynf3rr4n>⌄</button></div><div class="nav-submenu" data-astro-cid-ynf3rr4n><a class="nav-subitem" href="/content" data-sidebar-i18n="content.list.all" data-astro-cid-ynf3rr4n>All content</a><div data-post-types-menu data-astro-cid-ynf3rr4n></div></div></div><a href="/media"${addAttribute(["nav-item", { active: navActive.media }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><rect x="3" y="3" width="18" height="18" rx="2" ry="2" data-astro-cid-ynf3rr4n></rect><circle cx="8.5" cy="8.5" r="1.5" data-astro-cid-ynf3rr4n></circle><polyline points="21 15 16 10 5 21" data-astro-cid-ynf3rr4n></polyline></svg><span class="nav-label" data-sidebar-i18n="layout.nav.media" data-astro-cid-ynf3rr4n>${t("layout.nav.media")}</span></a><a href="/users"${addAttribute(["nav-item", { active: navActive.users }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" data-astro-cid-ynf3rr4n></path><circle cx="9" cy="7" r="4" data-astro-cid-ynf3rr4n></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87" data-astro-cid-ynf3rr4n></path><path d="M16 3.13a4 4 0 0 1 0 7.75" data-astro-cid-ynf3rr4n></path></svg><span class="nav-label" data-sidebar-i18n="layout.nav.users" data-astro-cid-ynf3rr4n>${t("layout.nav.users")}</span></a><div${addAttribute(["nav-group", { open: navActive.settings }], "class:list")} data-nav-group="settings" data-astro-cid-ynf3rr4n><div class="nav-group-header" data-astro-cid-ynf3rr4n><a href="/settings"${addAttribute(["nav-item", { active: navActive.settings }], "class:list")} data-astro-cid-ynf3rr4n><svg class="settings-nav-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><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 0-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" data-astro-cid-ynf3rr4n></path><circle cx="12" cy="12" r="3" data-astro-cid-ynf3rr4n></circle></svg><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><circle cx="12" cy="12" r="3" data-astro-cid-ynf3rr4n></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-ynf3rr4n></path></svg><span class="nav-label" data-sidebar-i18n="layout.nav.settings" data-astro-cid-ynf3rr4n>${t("layout.nav.settings")}</span></a><button class="nav-group-toggle" type="button"${addAttribute(navActive.settings ? "true" : "false", "aria-expanded")} aria-label="Toggle settings menu" data-astro-cid-ynf3rr4n>⌄</button></div><!-- Submenu de configurações fica agrupado diretamente sob Settings. --><div class="nav-submenu" data-astro-cid-ynf3rr4n>${settingsChildren.map((child) => renderTemplate`<a${addAttribute(child.href, "href")}${addAttribute(["nav-subitem", { active: child.active }], "class:list")}${addAttribute(child.key, "data-sidebar-i18n")} data-astro-cid-ynf3rr4n>${t(child.key)}</a>`)}</div></div><a href="/plugins"${addAttribute(["nav-item", { active: navActive.plugins }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><rect x="2" y="2" width="20" height="20" rx="2" ry="2" data-astro-cid-ynf3rr4n></rect><path d="M15 7h4a2 2 0 0 1 2 2v4" data-astro-cid-ynf3rr4n></path><path d="M9 17H5a2 2 0 0 1-2-2V9" data-astro-cid-ynf3rr4n></path><line x1="8" y1="12" x2="16" y2="12" data-astro-cid-ynf3rr4n></line></svg><span class="nav-label" data-sidebar-i18n="layout.nav.plugins" data-astro-cid-ynf3rr4n>${t("layout.nav.plugins")}</span></a><a href="/themes"${addAttribute(["nav-item", { active: navActive.themes }], "class:list")} data-astro-cid-ynf3rr4n><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-ynf3rr4n><circle cx="12" cy="12" r="10" data-astro-cid-ynf3rr4n></circle><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" data-astro-cid-ynf3rr4n></path><path d="M2 12h20" data-astro-cid-ynf3rr4n></path></svg><span class="nav-label" data-sidebar-i18n="layout.nav.themes" data-astro-cid-ynf3rr4n>${t("layout.nav.themes")}</span></a><!-- D1: slots de extensao — paginas de menu declaradas por plugins ativos -->${renderComponent($$result, "PluginExtensionsSlot", PluginExtensionsSlot, {
1033
1034
  "client:load": true,
1034
1035
  "data-astro-cid-ynf3rr4n": true,
1035
1036
  "client:component-hydration": "load",
@@ -1,5 +1,5 @@
1
- import { n as useTranslation, r as apiClient } from "./i18n_BZdCNETS.mjs";
2
- import { a as For2, c as Select, f as createSignal, l as Show2, o as Input, p as onMount, r as Button, s as Pagination } from "./DashboardLayout_B1lpShsT.mjs";
1
+ import { n as useTranslation, r as apiClient } from "./i18n_DIBvEjfq.mjs";
2
+ import { a as For2, c as Select, f as createSignal, l as Show2, o as Input, p as onMount, r as Button, s as Pagination } from "./DashboardLayout_DCIiRkcO.mjs";
3
3
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey, ssrStyleProperty } from "solid-js/web";
4
4
  //#region src/components/media/MediaLibrary.tsx
5
5
  var _tmpl$ = [
@@ -1,4 +1,4 @@
1
- import { n as useTranslation, r as apiClient } from "./i18n_BZdCNETS.mjs";
1
+ import { n as useTranslation, r as apiClient } from "./i18n_DIBvEjfq.mjs";
2
2
  import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
3
3
  import { For, Show, createSignal, onMount } from "solid-js";
4
4
  //#region src/components/apps/settings/ResourceHubs.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, p as addAttribute, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
4
- import { t as $$DashboardLayout } from "./DashboardLayout_B1lpShsT.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_DCIiRkcO.mjs";
5
5
  //#region src/pages/plugins/[slug].astro
6
6
  var _slug__exports = /* @__PURE__ */ __exportAll({
7
7
  default: () => $$Slug,
@@ -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_B1lpShsT.mjs";
5
- import { t as AccessManager } from "./ResourceHubs_SnzUKv2d.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_DCIiRkcO.mjs";
5
+ import { t as AccessManager } from "./ResourceHubs_BJMX1AJR.mjs";
6
6
  //#region src/pages/settings/access.astro
7
7
  var access_exports = /* @__PURE__ */ __exportAll({
8
8
  default: () => $$Access,
@@ -365,7 +365,7 @@ var footer = {
365
365
  "github": "GitHub",
366
366
  "docs": "التوثيق",
367
367
  "community": "المجتمع",
368
- "poweredBy": "مدعوم من OkCMS"
368
+ "poweredBy": "مدعوم من Oktis Works"
369
369
  };
370
370
  var helpTabs = {
371
371
  "title": "المساعدة",
@@ -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_BZdCNETS.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_B1lpShsT.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_DIBvEjfq.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DCIiRkcO.mjs";
6
6
  import { t as FieldTypePicker } from "./FieldTypePicker_CXwpmcQ3.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, 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_B1lpShsT.mjs";
5
- import { t as ContentEditor } from "./ContentEditor_B_alLPkZ.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_DCIiRkcO.mjs";
5
+ import { t as ContentEditor } from "./ContentEditor_CxZJjeXR.mjs";
6
6
  //#region src/pages/content/edit.astro
7
7
  var edit_exports = /* @__PURE__ */ __exportAll({
8
8
  default: () => $$Edit,
@@ -14,11 +14,13 @@ var $$Edit = createComponent(($$result, $$props, $$slots) => {
14
14
  const Astro = $$result.createAstro($$props, $$slots);
15
15
  Astro.self = $$Edit;
16
16
  const { t } = Astro.locals;
17
+ const initialType = Astro.url.searchParams.get("type") ?? void 0;
17
18
  return renderTemplate`${renderComponent($$result, "DashboardLayout", $$DashboardLayout, {
18
19
  "title": t("content.editor.save"),
19
20
  "data-astro-cid-4zhgedtj": true
20
21
  }, { "default": ($$result) => renderTemplate`${maybeRenderHead($$result)}<div class="editor-page" data-astro-cid-4zhgedtj>${renderComponent($$result, "ContentEditor", ContentEditor, {
21
22
  "client:load": true,
23
+ "initialType": initialType,
22
24
  "data-astro-cid-4zhgedtj": true,
23
25
  "client:component-hydration": "load",
24
26
  "client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/content/ContentEditor.tsx",
@@ -365,7 +365,7 @@ var footer = {
365
365
  "github": "GitHub",
366
366
  "docs": "Documentación",
367
367
  "community": "Comunidad",
368
- "poweredBy": "Desarrollado con OkCMS"
368
+ "poweredBy": "Desarrollado con Oktis Works"
369
369
  };
370
370
  var helpTabs = {
371
371
  "title": "Ayuda",
@@ -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_BZdCNETS.mjs";
5
- import { c as Select, d as createMemo, f as createSignal, i as Card, l as Show2, o as Input, p as onMount, r as Button, t as $$DashboardLayout } from "./DashboardLayout_B1lpShsT.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_DIBvEjfq.mjs";
5
+ import { c as Select, d as createMemo, f as createSignal, i as Card, l as Show2, o as Input, p as onMount, r as Button, t as $$DashboardLayout } from "./DashboardLayout_DCIiRkcO.mjs";
6
6
  import { createComponent, escape, memo, ssr, ssrHydrationKey } from "solid-js/web";
7
7
  //#region src/components/apps/settings/GeneralSettings.tsx
8
8
  var _tmpl$ = [
@@ -365,7 +365,7 @@ var footer = {
365
365
  "github": "GitHub",
366
366
  "docs": "תיעוד",
367
367
  "community": "קהילה",
368
- "poweredBy": "מונע על ידי OkCMS"
368
+ "poweredBy": "מונע על ידי Oktis Works"
369
369
  };
370
370
  var helpTabs = {
371
371
  "title": "עזרה",
@@ -83,20 +83,20 @@ async function loadLocale(locale) {
83
83
  if (localeCache.has(locale)) return localeCache.get(locale);
84
84
  try {
85
85
  const module = await _rolldown_dynamic_import_helper_default(/* #__PURE__ */ Object.assign({
86
- "./locales/ar.json": () => import("./ar_DMC8HaoP.mjs"),
86
+ "./locales/ar.json": () => import("./ar_B0LfQbpu.mjs"),
87
87
  "./locales/en.json": () => Promise.resolve().then(() => en_exports),
88
- "./locales/es-ES.json": () => import("./es-ES_DZvHskAD.mjs"),
89
- "./locales/he.json": () => import("./he_zy3stNhR.mjs"),
90
- "./locales/it.json": () => import("./it_BiUDLszZ.mjs"),
91
- "./locales/ja.json": () => import("./ja_DjFAG7hL.mjs"),
92
- "./locales/pl.json": () => import("./pl_0Xe9Qom2.mjs"),
93
- "./locales/pt-BR.json": () => import("./pt-BR_DIZpU2Mk.mjs"),
94
- "./locales/ru.json": () => import("./ru_DFvIxd0Y.mjs"),
95
- "./locales/sw.json": () => import("./sw_CmaPgGYa.mjs"),
96
- "./locales/tr.json": () => import("./tr_B_acwl2e.mjs"),
97
- "./locales/uk.json": () => import("./uk_DXnk4imL.mjs"),
98
- "./locales/yo.json": () => import("./yo_DDQ8a-0v.mjs"),
99
- "./locales/zh-CN.json": () => import("./zh-CN_763uzTMQ.mjs")
88
+ "./locales/es-ES.json": () => import("./es-ES_dBEm2FNw.mjs"),
89
+ "./locales/he.json": () => import("./he_DRWoI1A5.mjs"),
90
+ "./locales/it.json": () => import("./it_BDY3lerP.mjs"),
91
+ "./locales/ja.json": () => import("./ja_C-EybQiV.mjs"),
92
+ "./locales/pl.json": () => import("./pl_DH5LKmVG.mjs"),
93
+ "./locales/pt-BR.json": () => import("./pt-BR_BM0FS26r.mjs"),
94
+ "./locales/ru.json": () => import("./ru_CFa1xYFr.mjs"),
95
+ "./locales/sw.json": () => import("./sw_QZf7NSsI.mjs"),
96
+ "./locales/tr.json": () => import("./tr_Fjry5R-K.mjs"),
97
+ "./locales/uk.json": () => import("./uk_Bxc3qY45.mjs"),
98
+ "./locales/yo.json": () => import("./yo_BARL-Qrh.mjs"),
99
+ "./locales/zh-CN.json": () => import("./zh-CN_CkjPJL88.mjs")
100
100
  }), `./locales/${locale}.json`, 3);
101
101
  const translations = module.default ?? module;
102
102
  localeCache.set(locale, translations);
@@ -814,8 +814,10 @@ var content = {
814
814
  },
815
815
  "buttons": {
816
816
  "new": "+ New content",
817
+ "addNew": "+ Add new",
817
818
  "search": "Search"
818
819
  },
820
+ "all": "All content",
819
821
  "empty": "No content found.",
820
822
  "statuses": {
821
823
  "draft": "Draft",
@@ -830,10 +832,23 @@ var content = {
830
832
  },
831
833
  "editor": {
832
834
  "type": "Type",
835
+ "adding": "Add new",
836
+ "editing": "Edit",
837
+ "backToList": "Back to list",
838
+ "saving": "Saving…",
833
839
  "title": "Title",
840
+ "titlePlaceholder": "Add title",
834
841
  "slug": "Slug",
842
+ "slugPlaceholder": "auto-generated-from-title",
843
+ "toolbar": "Editor toolbar",
844
+ "bodyPlaceholder": "Start writing…",
845
+ "linkPrompt": "Enter the URL:",
835
846
  "excerpt": "Excerpt",
836
847
  "featuredImage": "Featured Image (media ID)",
848
+ "mediaIdPlaceholder": "Media ID",
849
+ "featuredImageHint": "Choose a media item from the Media library.",
850
+ "pageAttributes": "Page attributes",
851
+ "publishPanel": "Publish",
837
852
  "status": "Status",
838
853
  "statusOptions": {
839
854
  "draft": "Draft",
@@ -846,6 +861,22 @@ var content = {
846
861
  "inspectTypes": "Inspect available types",
847
862
  "save": "Save",
848
863
  "saved": "Content saved successfully."
864
+ },
865
+ "taxonomy": {
866
+ "title": "Taxonomy terms",
867
+ "back": "← Back to content",
868
+ "choose": "Choose a taxonomy from the content menu.",
869
+ "notFound": "Taxonomy not found.",
870
+ "addTerm": "Add new term",
871
+ "name": "Name",
872
+ "slug": "Slug",
873
+ "description": "Description",
874
+ "descriptionHint": "Manage the terms used by this content type.",
875
+ "attachedTo": "Attached to",
876
+ "add": "Add term",
877
+ "delete": "Delete",
878
+ "empty": "No terms yet.",
879
+ "confirmDelete": "Delete \"{name}\"?"
849
880
  }
850
881
  };
851
882
  var media = {
@@ -1286,7 +1317,7 @@ var footer = {
1286
1317
  "github": "GitHub",
1287
1318
  "docs": "Documentation",
1288
1319
  "community": "Community",
1289
- "poweredBy": "Powered by OkCMS"
1320
+ "poweredBy": "Powered by Oktis Works"
1290
1321
  };
1291
1322
  var helpTabs = {
1292
1323
  "title": "Help",
@@ -1369,6 +1400,10 @@ async function getTFunction(locale) {
1369
1400
  var currentTFunction = createTFunction(initialTranslations, initialTranslations);
1370
1401
  var currentLocale = "en";
1371
1402
  var isLoading = true;
1403
+ var LOCALE_CHANGE_EVENT = "okcms:locale-changed";
1404
+ function emitLocaleChange() {
1405
+ if (typeof window !== "undefined") window.dispatchEvent(new CustomEvent(LOCALE_CHANGE_EVENT, { detail: { locale: currentLocale } }));
1406
+ }
1372
1407
  /** Hook Solid para usar traduções em componentes */
1373
1408
  function useTranslation(initialLocale) {
1374
1409
  onMount(async () => {
@@ -1379,16 +1414,18 @@ function useTranslation(initialLocale) {
1379
1414
  currentTFunction = await getTFunction(resolvedLocale);
1380
1415
  isLoading = false;
1381
1416
  notifyTranslationChange((version) => version + 1);
1417
+ emitLocaleChange();
1382
1418
  })();
1383
1419
  await translationLoadPromise;
1384
1420
  });
1385
1421
  const changeLocaleFn = async (newLocale) => {
1386
1422
  isLoading = true;
1387
- await changeLocale(newLocale);
1388
1423
  currentLocale = newLocale;
1389
1424
  currentTFunction = await getTFunction(newLocale);
1390
1425
  isLoading = false;
1391
1426
  notifyTranslationChange((version) => version + 1);
1427
+ emitLocaleChange();
1428
+ await changeLocale(newLocale);
1392
1429
  };
1393
1430
  const translate = (key, params) => {
1394
1431
  translationVersion();
@@ -1396,7 +1433,8 @@ function useTranslation(initialLocale) {
1396
1433
  };
1397
1434
  return {
1398
1435
  t: translate,
1399
- get locale() {
1436
+ locale: () => {
1437
+ translationVersion();
1400
1438
  return currentLocale;
1401
1439
  },
1402
1440
  changeLocale: changeLocaleFn,
@@ -1,9 +1,9 @@
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_BZdCNETS.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_B1lpShsT.mjs";
6
- import { createComponent, escape, ssr, ssrHydrationKey } from "solid-js/web";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_DIBvEjfq.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_DCIiRkcO.mjs";
6
+ import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
7
7
  import { Show, createMemo, createSignal, onMount } from "solid-js";
8
8
  //#region src/components/content/ContentList.tsx
9
9
  var _tmpl$ = [
@@ -20,24 +20,31 @@ var _tmpl$2 = [
20
20
  "<!--/--></div>"
21
21
  ];
22
22
  var _tmpl$3 = [
23
+ "<a",
24
+ " class=\"btn btn-primary\"",
25
+ ">",
26
+ "</a>"
27
+ ];
28
+ var _tmpl$4 = [
23
29
  "<div",
24
30
  " class=\"notice notice--error\">",
25
31
  "</div>"
26
32
  ];
27
- var _tmpl$4 = [
33
+ var _tmpl$5 = [
28
34
  "<div",
29
35
  " class=\"notice\">",
30
36
  "</div>"
31
37
  ];
32
- var _tmpl$5 = [
38
+ var _tmpl$6 = [
33
39
  "<div",
34
- " class=\"content-list\"><!--$-->",
40
+ " class=\"content-list\"><div class=\"content-list__heading\"><div><h2>",
41
+ "</h2><p class=\"muted\">",
42
+ "</p></div><!--$-->",
43
+ "<!--/--></div><!--$-->",
35
44
  "<!--/--><!--$-->",
36
45
  "<!--/--><div class=\"toolbar\"><!--$-->",
37
46
  "<!--/--><!--$-->",
38
47
  "<!--/--><!--$-->",
39
- "<!--/--><a class=\"btn btn-primary\" href=\"/content/new\">",
40
- "</a><!--$-->",
41
48
  "<!--/--></div><!--$-->",
42
49
  "<!--/--></div>"
43
50
  ];
@@ -79,11 +86,18 @@ function ContentList() {
79
86
  }
80
87
  };
81
88
  onMount(async () => {
89
+ const query = new URLSearchParams(window.location.search);
90
+ setType(query.get("type") ?? "");
91
+ setStatus(query.get("status") ?? "");
92
+ setSearch(query.get("search") ?? "");
82
93
  await load();
83
94
  try {
84
95
  setTypes(await apiClient.getContentTypes());
85
96
  } catch {}
86
97
  });
98
+ const activeType = createMemo(() => types().find((entry) => entry.slug === type()));
99
+ const pageTitle = createMemo(() => activeType()?.pluralLabel || t("content.list.title"));
100
+ const newContentHref = createMemo(() => `/content/new?type=${encodeURIComponent(type() || "post")}`);
87
101
  const searchNow = async () => {
88
102
  setPage(1);
89
103
  await load();
@@ -165,19 +179,26 @@ function ContentList() {
165
179
  }
166
180
  }
167
181
  ]);
168
- return ssr(_tmpl$5, ssrHydrationKey(), escape(createComponent(Show, {
182
+ return ssr(_tmpl$6, ssrHydrationKey(), escape(pageTitle()), escape(t("content.list.description")), escape(createComponent(Show, {
183
+ get when() {
184
+ return type();
185
+ },
186
+ get children() {
187
+ return ssr(_tmpl$3, ssrHydrationKey(), ssrAttribute("href", escape(newContentHref(), true), false), escape(t("content.list.buttons.addNew")));
188
+ }
189
+ })), escape(createComponent(Show, {
169
190
  get when() {
170
191
  return error();
171
192
  },
172
193
  get children() {
173
- return ssr(_tmpl$3, ssrHydrationKey(), escape(error()));
194
+ return ssr(_tmpl$4, ssrHydrationKey(), escape(error()));
174
195
  }
175
196
  })), escape(createComponent(Show, {
176
197
  get when() {
177
198
  return info();
178
199
  },
179
200
  get children() {
180
- return ssr(_tmpl$4, ssrHydrationKey(), escape(info()));
201
+ return ssr(_tmpl$5, ssrHydrationKey(), escape(info()));
181
202
  }
182
203
  })), escape(createComponent(Input, {
183
204
  name: "search",
@@ -191,24 +212,6 @@ function ContentList() {
191
212
  setSearch(value);
192
213
  searchNow();
193
214
  }
194
- })), escape(createComponent(Select, {
195
- name: "type",
196
- get placeholder() {
197
- return t("content.list.filters.allTypes");
198
- },
199
- get value() {
200
- return type();
201
- },
202
- get options() {
203
- return types().map((t) => ({
204
- value: t.slug,
205
- label: t.pluralLabel || t.name
206
- }));
207
- },
208
- onChange: (value) => {
209
- setType(value);
210
- searchNow();
211
- }
212
215
  })), escape(createComponent(Select, {
213
216
  name: "status",
214
217
  get placeholder() {
@@ -237,7 +240,7 @@ function ContentList() {
237
240
  setStatus(value);
238
241
  searchNow();
239
242
  }
240
- })), escape(t("content.list.buttons.new")), escape(createComponent(Button, {
243
+ })), escape(createComponent(Button, {
241
244
  variant: "secondary",
242
245
  onClick: () => void searchNow(),
243
246
  get children() {
@@ -284,7 +287,7 @@ var $$Index = createComponent$1(($$result, $$props, $$slots) => {
284
287
  return renderTemplate`${renderComponent($$result, "DashboardLayout", $$DashboardLayout, {
285
288
  "title": t("content.list.title"),
286
289
  "data-astro-cid-qhu5jad5": true
287
- }, { "default": ($$result) => renderTemplate`${maybeRenderHead($$result)}<div class="content-page" data-astro-cid-qhu5jad5><div class="page-header" data-astro-cid-qhu5jad5><h2 data-astro-cid-qhu5jad5>${t("content.list.title")}</h2><p data-astro-cid-qhu5jad5>${t("content.list.description")}</p></div>${renderComponent($$result, "ContentList", ContentList, {
290
+ }, { "default": ($$result) => renderTemplate`${maybeRenderHead($$result)}<div class="content-page" data-astro-cid-qhu5jad5>${renderComponent($$result, "ContentList", ContentList, {
288
291
  "client:load": true,
289
292
  "data-astro-cid-qhu5jad5": true,
290
293
  "client:component-hydration": "load",
@@ -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_BZdCNETS.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_B1lpShsT.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_DIBvEjfq.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_DCIiRkcO.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_B1lpShsT.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_DCIiRkcO.mjs";
5
5
  //#region src/pages/settings/index.astro
6
6
  var settings_exports = /* @__PURE__ */ __exportAll({
7
7
  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 } from "./compiler_O7J1rlsi.mjs";
4
- import { t as $$DashboardLayout } from "./DashboardLayout_B1lpShsT.mjs";
5
- import { t as MediaLibrary } from "./MediaLibrary_B_mkxyGz.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_DCIiRkcO.mjs";
5
+ import { t as MediaLibrary } from "./MediaLibrary_azhfNs4N.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_BZdCNETS.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_B1lpShsT.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_DIBvEjfq.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DCIiRkcO.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
@@ -365,7 +365,7 @@ var footer = {
365
365
  "github": "GitHub",
366
366
  "docs": "Documentazione",
367
367
  "community": "Comunità",
368
- "poweredBy": "Prodotto con OkCMS"
368
+ "poweredBy": "Prodotto con Oktis Works"
369
369
  };
370
370
  var helpTabs = {
371
371
  "title": "Aiuto",
@@ -365,7 +365,7 @@ var footer = {
365
365
  "github": "GitHub",
366
366
  "docs": "ドキュメント",
367
367
  "community": "コミュニティ",
368
- "poweredBy": "OkCMS で動作"
368
+ "poweredBy": "Oktis Works で動作"
369
369
  };
370
370
  var helpTabs = {
371
371
  "title": "ヘルプ",
@@ -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 "./BaseLayout_D1PbsjNG.mjs";
4
+ import { n as renderScript, t as $$BaseLayout } from "./BaseLayout_m8b8Eemd.mjs";
5
5
  //#region src/pages/login.astro
6
6
  var login_exports = /* @__PURE__ */ __exportAll({
7
7
  default: () => $$Login,