@oktis-works/admin 0.3.5 → 0.4.1

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 (95) hide show
  1. package/dist/client/_astro/ActivityWidget.B1PK1jNM.js +16 -0
  2. package/dist/client/_astro/AdminBar.DGqkNINI.js +234 -0
  3. package/dist/client/_astro/AtGlanceWidget.BCaHYX1f.js +43 -0
  4. package/dist/client/_astro/BaseLayout.B2MfKf6B.css +1 -0
  5. package/dist/client/_astro/ContentEditor.BG7DWach.js +1 -0
  6. package/dist/client/_astro/ContentList.CfGc6HN5.js +1 -0
  7. package/dist/client/_astro/DashboardHome._7yIrBzf.js +1 -0
  8. package/dist/client/_astro/DashboardLayout.DrKf2Klk.css +1 -0
  9. package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.BrC4PbPa.js +1 -0
  10. package/dist/client/_astro/Footer.DGAIrEhm.js +74 -0
  11. package/dist/client/_astro/GeneralSettings.BwnPXbvc.js +1 -0
  12. package/dist/client/_astro/HelpTabs.Ddud8gs3.js +103 -0
  13. package/dist/client/_astro/LanguageSelector.Dx6zaHYm.js +14 -0
  14. package/dist/client/_astro/MediaLibrary.BXUJ5yFA.js +1 -0
  15. package/dist/client/_astro/PostTypesManager.CA2yTVB_.js +1 -0
  16. package/dist/client/_astro/QuickDraftWidget.DLJxVRna.js +17 -0
  17. package/dist/client/_astro/ScreenOptions.Dgiw-9ow.js +70 -0
  18. package/dist/client/_astro/TaxonomiesManager.D3HNo_oM.js +1 -0
  19. package/dist/client/_astro/UserCreateForm.CTv1Gd43.js +1 -0
  20. package/dist/client/_astro/UsersManager.DPpSVGNe.js +1 -0
  21. package/dist/client/_astro/api.DTNuyqvx.js +1 -0
  22. package/dist/client/_astro/ar.CzsjUutD.js +1 -0
  23. package/dist/client/_astro/{client.BY0Z100j.js → client.C7p516_9.js} +1 -1
  24. package/dist/client/_astro/en.DmN7xy_a.js +1 -0
  25. package/dist/client/_astro/es-ES.p2TLEMlZ.js +1 -0
  26. package/dist/client/_astro/{extensions.JQggUqT5.js → extensions.DfxrGzbo.js} +1 -1
  27. package/dist/client/_astro/he.BnYHiYpn.js +1 -0
  28. package/dist/client/_astro/i18n.CLOpd2JA.js +1 -0
  29. package/dist/client/_astro/it.WrWKBEAD.js +1 -0
  30. package/dist/client/_astro/ja.DxnfhIdt.js +1 -0
  31. package/dist/client/_astro/login.astro_astro_type_script_index_0_lang.CLM9X6sQ.js +1 -0
  32. package/dist/client/_astro/pl.jUj-RfZS.js +1 -0
  33. package/dist/client/_astro/pt-BR.DtNwEO0i.js +1 -0
  34. package/dist/client/_astro/ru.KFSfdjWn.js +1 -0
  35. package/dist/client/_astro/{src.DX_xrAwd.js → src.Cgonpfb5.js} +1 -1
  36. package/dist/client/_astro/sw.3jlAOLOv.js +1 -0
  37. package/dist/client/_astro/tr.tnLMnGPg.js +1 -0
  38. package/dist/client/_astro/uk.VquHY_xc.js +1 -0
  39. package/dist/client/_astro/version.CHrZHEqP.js +1 -0
  40. package/dist/client/_astro/{web.D_vCtCLj.js → web.D1H9RxZL.js} +1 -1
  41. package/dist/client/_astro/yo.Cr8hCb5u.js +1 -0
  42. package/dist/client/_astro/zh-CN.E32QqP4v.js +1 -0
  43. package/dist/server/chunks/{BaseLayout_CcUFilW5.mjs → BaseLayout_GUKuUGNt.mjs} +4 -1
  44. package/dist/server/chunks/{ContentEditor_DtKBw5Nv.mjs → ContentEditor_qfM1Y93B.mjs} +38 -24
  45. package/dist/server/chunks/DashboardLayout_9JzlKxjl.mjs +2084 -0
  46. package/dist/server/chunks/{MediaLibrary_BDyBahZ3.mjs → MediaLibrary_DJu_GZnT.mjs} +90 -65
  47. package/dist/server/chunks/{_slug__DNJwUFYD.mjs → _slug__oxlJqDhb.mjs} +1 -1
  48. package/dist/server/chunks/ar_DBjdWIJ0.mjs +408 -0
  49. package/dist/server/chunks/{edit_CSA-bTD0.mjs → edit_rJCgSfQh.mjs} +8 -4
  50. package/dist/server/chunks/en_C750mYKk.mjs +408 -0
  51. package/dist/server/chunks/es-ES_TJ4oK1yi.mjs +408 -0
  52. package/dist/server/chunks/{general_D8esOFBG.mjs → general_BCC572_R.mjs} +50 -39
  53. package/dist/server/chunks/he_TWsuTphz.mjs +408 -0
  54. package/dist/server/chunks/{index__EF7aYFm.mjs → index_CiOry_IG.mjs} +91 -45
  55. package/dist/server/chunks/{index_CSD_Oyb4.mjs → index_DlyhPKko.mjs} +61 -38
  56. package/dist/server/chunks/index_Dp2KvZyM.mjs +152 -0
  57. package/dist/server/chunks/{index_BzJtUv3l.mjs → index_DpZYlUOx.mjs} +9 -5
  58. package/dist/server/chunks/index_Dz0AB_Lx.mjs +27 -0
  59. package/dist/server/chunks/it_CEVFVWh1.mjs +408 -0
  60. package/dist/server/chunks/ja_CqDirMqf.mjs +408 -0
  61. package/dist/server/chunks/login_B7FSWUaM.mjs +24 -0
  62. package/dist/server/chunks/{new_C7iXK0wp.mjs → new_DVIppZvY.mjs} +8 -4
  63. package/dist/server/chunks/{new_Dg7GlHuV.mjs → new_D__e8Xsm.mjs} +30 -14
  64. package/dist/server/chunks/pl_ChIKxfZG.mjs +408 -0
  65. package/dist/server/chunks/post-types_I0Pnfbt5.mjs +158 -0
  66. package/dist/server/chunks/pt-BR_4d4jZWL0.mjs +408 -0
  67. package/dist/server/chunks/ru_CIc6O5Q7.mjs +408 -0
  68. package/dist/server/chunks/sw_Bs3iYVDM.mjs +408 -0
  69. package/dist/server/chunks/{taxonomies_BJehVfgw.mjs → taxonomies_D0bKuKFw.mjs} +31 -14
  70. package/dist/server/chunks/tr_C7JbXuoQ.mjs +408 -0
  71. package/dist/server/chunks/uk_Dibs8Wkc.mjs +408 -0
  72. package/dist/server/chunks/{upload_CeK7uSwz.mjs → upload_ByIgPLsS.mjs} +9 -5
  73. package/dist/server/chunks/yo_B6MPvz_U.mjs +408 -0
  74. package/dist/server/chunks/zh-CN_G1Dc2b28.mjs +408 -0
  75. package/dist/server/entry.mjs +15 -15
  76. package/package.json +4 -4
  77. package/dist/client/_astro/BaseLayout.BPkaFsmK.css +0 -1
  78. package/dist/client/_astro/ContentEditor.Buc5ptK0.js +0 -1
  79. package/dist/client/_astro/ContentList.Bo_ok2oa.js +0 -1
  80. package/dist/client/_astro/DashboardHome.DKuoH-SO.js +0 -1
  81. package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.DfB7XHS-.js +0 -1
  82. package/dist/client/_astro/GeneralSettings.BNzHpRY6.js +0 -1
  83. package/dist/client/_astro/MediaLibrary.Dn4DRbZb.js +0 -1
  84. package/dist/client/_astro/PostTypesManager.6GQ4vWY1.js +0 -1
  85. package/dist/client/_astro/TaxonomiesManager.B25xOjSO.js +0 -1
  86. package/dist/client/_astro/UserCreateForm.DtBifGTo.js +0 -1
  87. package/dist/client/_astro/UsersManager.-5jU3GxA.js +0 -1
  88. package/dist/client/_astro/api.BEC1o0dT.js +0 -1
  89. package/dist/client/_astro/login.astro_astro_type_script_index_0_lang.Dz6HvEV3.js +0 -1
  90. package/dist/server/chunks/DashboardLayout_Bpur473M.mjs +0 -442
  91. package/dist/server/chunks/api_i8T-MI6L.mjs +0 -278
  92. package/dist/server/chunks/index_BCUHGT54.mjs +0 -133
  93. package/dist/server/chunks/index_X49R9glL.mjs +0 -23
  94. package/dist/server/chunks/login_C04LKHw3.mjs +0 -23
  95. package/dist/server/chunks/post-types_CJt6sMSh.mjs +0 -137
@@ -0,0 +1,152 @@
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$1 } from "./compiler_O7J1rlsi.mjs";
4
+ import { n as useTranslation, r as apiClient, t as $$DashboardLayout } from "./DashboardLayout_9JzlKxjl.mjs";
5
+ import { createComponent, escape, ssr, ssrHydrationKey } from "solid-js/web";
6
+ import { For, Show, createSignal, onMount } from "solid-js";
7
+ //#region src/components/apps/dashboard/DashboardHome.tsx
8
+ var _tmpl$ = [
9
+ "<div",
10
+ " class=\"notice notice--error\">",
11
+ "</div>"
12
+ ];
13
+ var _tmpl$2 = [
14
+ "<table",
15
+ " class=\"table\"><thead><tr><th>",
16
+ "</th><th>",
17
+ "</th><th>",
18
+ "</th><th>",
19
+ "</th></tr></thead><tbody>",
20
+ "</tbody></table>"
21
+ ];
22
+ var _tmpl$3 = [
23
+ "<div",
24
+ " class=\"dashboard-home\"><!--$-->",
25
+ "<!--/--><div class=\"stats-grid\"><div class=\"card stat-card\"><h3 class=\"stat-label\">",
26
+ "</h3><p class=\"stat-value\">",
27
+ "</p></div><div class=\"card stat-card\"><h3 class=\"stat-label\">",
28
+ "</h3><p class=\"stat-value\">",
29
+ "</p></div><div class=\"card stat-card\"><h3 class=\"stat-label\">",
30
+ "</h3><p class=\"stat-value\">",
31
+ "</p></div><div class=\"card stat-card\"><h3 class=\"stat-label\">",
32
+ "</h3><p class=\"stat-value\">",
33
+ "</p></div><div class=\"card stat-card\"><h3 class=\"stat-label\">",
34
+ "</h3><p class=\"stat-value\">",
35
+ "</p></div></div><div class=\"card\"><div class=\"card-header\"><h3>",
36
+ "</h3><a href=\"/content\" class=\"btn btn-secondary btn-sm\">",
37
+ "</a></div><!--$-->",
38
+ "<!--/--></div></div>"
39
+ ];
40
+ var _tmpl$4 = [
41
+ "<p",
42
+ " class=\"muted\">",
43
+ "</p>"
44
+ ];
45
+ var _tmpl$5 = [
46
+ "<tr",
47
+ "><td><a href=\"",
48
+ "\">",
49
+ "</a></td><td>",
50
+ "</td><td>",
51
+ "</td><td class=\"muted\">",
52
+ "</td></tr>"
53
+ ];
54
+ function raw(row) {
55
+ return row;
56
+ }
57
+ function formatDate(row) {
58
+ const value = raw(row)["updated_at"] ?? raw(row)["updatedAt"] ?? raw(row)["created_at"];
59
+ if (typeof value !== "string") return "—";
60
+ const date = new Date(value);
61
+ return Number.isNaN(date.getTime()) ? "—" : date.toLocaleString("pt-BR");
62
+ }
63
+ function DashboardHome() {
64
+ const { t } = useTranslation();
65
+ const [stats, setStats] = createSignal({
66
+ total: "—",
67
+ published: "—",
68
+ drafts: "—",
69
+ media: "—",
70
+ users: "—"
71
+ });
72
+ const [recent, setRecent] = createSignal([]);
73
+ const [error, setError] = createSignal("");
74
+ onMount(async () => {
75
+ const [all, published, drafts, media, users, recentList] = await Promise.allSettled([
76
+ apiClient.getContent({ limit: 1 }),
77
+ apiClient.getContent({
78
+ limit: 1,
79
+ status: "PUBLISHED"
80
+ }),
81
+ apiClient.getContent({
82
+ limit: 1,
83
+ status: "DRAFT"
84
+ }),
85
+ apiClient.listMedia({ limit: 1 }),
86
+ apiClient.listUsers({ limit: 1 }),
87
+ apiClient.getContent({ limit: 5 })
88
+ ]);
89
+ const count = (result) => result.status === "fulfilled" ? String(result.value.total) : "?";
90
+ setStats({
91
+ total: count(all),
92
+ published: count(published),
93
+ drafts: count(drafts),
94
+ media: count(media),
95
+ users: count(users)
96
+ });
97
+ if (recentList.status === "fulfilled") setRecent(recentList.value.data ?? []);
98
+ else setError(recentList.reason instanceof Error ? recentList.reason.message : String(recentList.reason));
99
+ });
100
+ return ssr(_tmpl$3, ssrHydrationKey(), escape(createComponent(Show, {
101
+ get when() {
102
+ return error();
103
+ },
104
+ get children() {
105
+ return ssr(_tmpl$, ssrHydrationKey(), escape(error()));
106
+ }
107
+ })), escape(t("dashboard.stats.totalContent")), escape(stats().total), escape(t("dashboard.stats.published")), escape(stats().published), escape(t("dashboard.stats.drafts")), escape(stats().drafts), escape(t("dashboard.stats.mediaFiles")), escape(stats().media), escape(t("dashboard.stats.users")), escape(stats().users), escape(t("dashboard.recent.title")), escape(t("dashboard.recent.viewAll")), escape(createComponent(Show, {
108
+ get when() {
109
+ return recent().length > 0;
110
+ },
111
+ get fallback() {
112
+ return ssr(_tmpl$4, ssrHydrationKey(), escape(t("dashboard.recent.empty")));
113
+ },
114
+ get children() {
115
+ return ssr(_tmpl$2, ssrHydrationKey(), escape(t("dashboard.recent.columns.title")), escape(t("dashboard.recent.columns.type")), escape(t("dashboard.recent.columns.status")), escape(t("dashboard.recent.columns.updated")), escape(createComponent(For, {
116
+ get each() {
117
+ return recent();
118
+ },
119
+ children: (row) => ssr(_tmpl$5, ssrHydrationKey(), `/content/edit?id=${escape(encodeURIComponent(String(raw(row)["id"] ?? "")), true)}`, escape(String(raw(row)["title"] ?? "—")), escape(String(raw(row)["type"] ?? "—")), escape(String(raw(row)["status"] ?? "—")), escape(formatDate(row)))
120
+ })));
121
+ }
122
+ })));
123
+ }
124
+ //#endregion
125
+ //#region src/pages/index.astro
126
+ var pages_exports = /* @__PURE__ */ __exportAll({
127
+ default: () => $$Index,
128
+ file: () => $$file,
129
+ url: () => ""
130
+ });
131
+ createAstro("https://astro.build");
132
+ var $$Index = createComponent$1(($$result, $$props, $$slots) => {
133
+ const Astro = $$result.createAstro($$props, $$slots);
134
+ Astro.self = $$Index;
135
+ const { t } = Astro.locals;
136
+ return renderTemplate`${renderComponent($$result, "DashboardLayout", $$DashboardLayout, {
137
+ "title": t("dashboard.title"),
138
+ "data-astro-cid-lcdefpme": true
139
+ }, { "default": ($$result) => renderTemplate`${maybeRenderHead($$result)}<div class="dashboard" data-astro-cid-lcdefpme>${renderComponent($$result, "DashboardHome", DashboardHome, {
140
+ "client:load": true,
141
+ "data-astro-cid-lcdefpme": true,
142
+ "client:component-hydration": "load",
143
+ "client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/apps/dashboard/DashboardHome.tsx",
144
+ "client:component-export": "DashboardHome"
145
+ })}<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
+ }, "/home/runner/work/cms/cms/apps/admin/src/pages/index.astro", void 0);
147
+ var $$file = "/home/runner/work/cms/cms/apps/admin/src/pages/index.astro";
148
+ //#endregion
149
+ //#region \0virtual:astro:page:src/pages/index@_@astro
150
+ var page = () => pages_exports;
151
+ //#endregion
152
+ export { page };
@@ -1,19 +1,23 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
- import { d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
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_Bpur473M.mjs";
5
- import { t as MediaLibrary } from "./MediaLibrary_BDyBahZ3.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_9JzlKxjl.mjs";
5
+ import { t as MediaLibrary } from "./MediaLibrary_DJu_GZnT.mjs";
6
6
  //#region src/pages/media/index.astro
7
7
  var media_exports = /* @__PURE__ */ __exportAll({
8
8
  default: () => $$Index,
9
9
  file: () => $$file,
10
10
  url: () => $$url
11
11
  });
12
+ createAstro("https://astro.build");
12
13
  var $$Index = createComponent(($$result, $$props, $$slots) => {
14
+ const Astro = $$result.createAstro($$props, $$slots);
15
+ Astro.self = $$Index;
16
+ const { t } = Astro.locals;
13
17
  return renderTemplate`${renderComponent($$result, "DashboardLayout", $$DashboardLayout, {
14
- "title": "Media",
18
+ "title": t("media.title"),
15
19
  "data-astro-cid-jureezux": true
16
- }, { "default": ($$result) => renderTemplate`${maybeRenderHead($$result)}<div class="media-page" data-astro-cid-jureezux><div class="page-header" data-astro-cid-jureezux><h2 data-astro-cid-jureezux>Biblioteca de mídia</h2><p data-astro-cid-jureezux>Envie e gerencie imagens, vídeos e documentos. Os arquivos ficam em <code data-astro-cid-jureezux>uploads/</code> e são servidos publicamente.</p></div>${renderComponent($$result, "MediaLibrary", MediaLibrary, {
20
+ }, { "default": ($$result) => renderTemplate`${maybeRenderHead($$result)}<div class="media-page" data-astro-cid-jureezux><div class="page-header" data-astro-cid-jureezux><h2 data-astro-cid-jureezux>${t("media.title")}</h2><p data-astro-cid-jureezux>${t("media.description")}</p></div>${renderComponent($$result, "MediaLibrary", MediaLibrary, {
17
21
  "client:load": true,
18
22
  "data-astro-cid-jureezux": true,
19
23
  "client:component-hydration": "load",
@@ -0,0 +1,27 @@
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_9JzlKxjl.mjs";
5
+ //#region src/pages/settings/index.astro
6
+ var settings_exports = /* @__PURE__ */ __exportAll({
7
+ default: () => $$Index,
8
+ file: () => $$file,
9
+ url: () => $$url
10
+ });
11
+ createAstro("https://astro.build");
12
+ var $$Index = createComponent(($$result, $$props, $$slots) => {
13
+ const Astro = $$result.createAstro($$props, $$slots);
14
+ Astro.self = $$Index;
15
+ const { t } = Astro.locals;
16
+ return renderTemplate`${renderComponent($$result, "DashboardLayout", $$DashboardLayout, {
17
+ "title": t("settings.general.title"),
18
+ "data-astro-cid-pvy7orjg": true
19
+ }, { "default": ($$result) => renderTemplate`${maybeRenderHead($$result)}<div class="settings-page" data-astro-cid-pvy7orjg><div class="page-header" data-astro-cid-pvy7orjg><h2 data-astro-cid-pvy7orjg>${t("settings.general.title")}</h2><p data-astro-cid-pvy7orjg>${t("settings.general.description")}</p></div><div class="settings-cards" data-astro-cid-pvy7orjg><a class="card settings-card" href="/settings/general" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("settings.general.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("settings.general.fields.siteTitle")}, ${t("settings.general.fields.siteDescription")}, ${t("settings.general.fields.language")} e ${t("settings.general.fields.timezone")} do site.</p></a><a class="card settings-card" href="/settings/post-types" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("settings.postTypes.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("settings.postTypes.description")}</p></a><a class="card settings-card" href="/settings/taxonomies" data-astro-cid-pvy7orjg><h3 data-astro-cid-pvy7orjg>${t("settings.taxonomies.title")}</h3><p class="muted" data-astro-cid-pvy7orjg>${t("settings.taxonomies.description")}</p></a></div></div>` })}`;
20
+ }, "/home/runner/work/cms/cms/apps/admin/src/pages/settings/index.astro", void 0);
21
+ var $$file = "/home/runner/work/cms/cms/apps/admin/src/pages/settings/index.astro";
22
+ var $$url = "/settings";
23
+ //#endregion
24
+ //#region \0virtual:astro:page:src/pages/settings/index@_@astro
25
+ var page = () => settings_exports;
26
+ //#endregion
27
+ export { page };
@@ -0,0 +1,408 @@
1
+ //#region src/i18n/locales/it.json
2
+ var layout = {
3
+ "appName": "OkCMS",
4
+ "admin": "Admin",
5
+ "nav": {
6
+ "dashboard": "Dashboard",
7
+ "content": "Contenuti",
8
+ "media": "Media",
9
+ "users": "Utenti",
10
+ "settings": "Impostazioni"
11
+ },
12
+ "actions": {
13
+ "logout": "Esci",
14
+ "newPost": "Nuovo Post",
15
+ "uploadMedia": "Carica Media",
16
+ "addUser": "Aggiungi Utente",
17
+ "openSettings": "Impostazioni"
18
+ }
19
+ };
20
+ var dashboard = {
21
+ "title": "Dashboard",
22
+ "stats": {
23
+ "totalContent": "Contenuti Totali",
24
+ "published": "Pubblicati",
25
+ "drafts": "Bozze",
26
+ "mediaFiles": "File Media",
27
+ "users": "Utenti"
28
+ },
29
+ "recent": {
30
+ "title": "Contenuti Recenti",
31
+ "viewAll": "Visualizza Tutti",
32
+ "empty": "Nessun contenuto ancora — crea il primo!",
33
+ "columns": {
34
+ "title": "Titolo",
35
+ "type": "Tipo",
36
+ "status": "Stato",
37
+ "updated": "Aggiornato"
38
+ }
39
+ },
40
+ "widgets": {
41
+ "atGlance": "In breve",
42
+ "posts": "Articoli",
43
+ "postsDesc": "Pubblicati / Bozze / Cestino",
44
+ "pages": "Pagine",
45
+ "pagesDesc": "Pubblicati / Bozze / Cestino",
46
+ "media": "Media",
47
+ "mediaDesc": "File nella libreria",
48
+ "users": "Utenti",
49
+ "usersDesc": "Totali / Attivi / Inattivi",
50
+ "version": "Versione",
51
+ "storage": "Archiviazione",
52
+ "quickDraft": {
53
+ "title": "Bozza rapida",
54
+ "heading": "Titolo",
55
+ "headingPlaceholder": "Dai un titolo alla tua bozza",
56
+ "content": "Contenuto",
57
+ "contentPlaceholder": "A cosa stai pensando?",
58
+ "save": "Salva bozza",
59
+ "yourDrafts": "Le tue bozze",
60
+ "noDrafts": "Nessuna bozza ancora."
61
+ },
62
+ "activity": {
63
+ "title": "Attività",
64
+ "empty": "Nessuna attività ancora."
65
+ }
66
+ }
67
+ };
68
+ var content = {
69
+ "list": {
70
+ "title": "Contenuti",
71
+ "description": "Cerca, filtra, modifica e pubblica i tuoi contenuti.",
72
+ "columns": {
73
+ "title": "Titolo",
74
+ "type": "Tipo",
75
+ "status": "Stato",
76
+ "updated": "Aggiornato"
77
+ },
78
+ "actions": {
79
+ "edit": "Modifica",
80
+ "publish": "Pubblica",
81
+ "unpublish": "Annulla Pubblicazione",
82
+ "delete": "Elimina"
83
+ },
84
+ "filters": {
85
+ "search": "Cerca contenuti…",
86
+ "allTypes": "Tutti i tipi",
87
+ "allStatus": "Tutti gli stati"
88
+ },
89
+ "buttons": {
90
+ "new": "+ Nuovo contenuto",
91
+ "search": "Cerca"
92
+ },
93
+ "empty": "Nessun contenuto trovato.",
94
+ "statuses": {
95
+ "draft": "Bozza",
96
+ "published": "Pubblicato",
97
+ "archived": "Archiviato"
98
+ },
99
+ "confirmDelete": "Eliminare \"{title}\"?",
100
+ "toasts": {
101
+ "published": "Contenuto pubblicato ✓",
102
+ "unpublished": "Pubblicazione annullata ✓"
103
+ }
104
+ },
105
+ "editor": {
106
+ "type": "Tipo",
107
+ "title": "Titolo",
108
+ "slug": "Slug",
109
+ "excerpt": "Estratto",
110
+ "featuredImage": "Immagine in Evidenza (ID media)",
111
+ "status": "Stato",
112
+ "statusOptions": {
113
+ "draft": "Bozza",
114
+ "published": "Pubblicato",
115
+ "archived": "Archiviato"
116
+ },
117
+ "layout": "Layout",
118
+ "layoutAuto": "Automatico (gerarchia tema)",
119
+ "customFields": "Campi Personalizzati",
120
+ "inspectTypes": "Ispeziona tipi disponibili",
121
+ "save": "Salva",
122
+ "saved": "Contenuto salvato con successo."
123
+ }
124
+ };
125
+ var media = {
126
+ "title": "Libreria Media",
127
+ "description": "Carica e gestisci immagini, video e documenti. I file sono in `uploads/` e serviti pubblicamente.",
128
+ "upload": {
129
+ "dropzone": "Trascina i file qui o",
130
+ "select": "Seleziona file",
131
+ "uploading": "Caricamento…",
132
+ "hint": "Immagini, video, audio e documenti · fino a 25MB per file"
133
+ },
134
+ "toolbar": {
135
+ "search": "Cerca per nome o alt…",
136
+ "allTypes": "Tutti i tipi",
137
+ "searchBtn": "Cerca"
138
+ },
139
+ "mimeTypes": {
140
+ "png": "PNG",
141
+ "jpeg": "JPEG",
142
+ "gif": "GIF",
143
+ "webp": "WebP",
144
+ "svg": "SVG",
145
+ "pdf": "PDF",
146
+ "mp4": "MP4",
147
+ "mp3": "MP3"
148
+ },
149
+ "empty": "Nessun file ancora. Carica il primo!",
150
+ "details": {
151
+ "title": "Dettagli",
152
+ "file": "File",
153
+ "type": "Tipo",
154
+ "size": "Dimensione",
155
+ "url": "URL",
156
+ "copy": "Copia",
157
+ "alt": "Testo Alternativo",
158
+ "caption": "Didascalia",
159
+ "save": "Salva Dettagli",
160
+ "delete": "Elimina",
161
+ "close": "Chiudi",
162
+ "confirmDelete": "Eliminare \"{filename}\"? Il file verrà rimosso dal disco.",
163
+ "saved": "Dettagli salvati ✓",
164
+ "copied": "URL copiato ✓",
165
+ "copyError": "Impossibile copiare l'URL"
166
+ },
167
+ "toasts": { "uploaded": "{count} file caricati ✓" }
168
+ };
169
+ var users = {
170
+ "title": "Utenti",
171
+ "description": "Gestisci account, ruoli e accessi del progetto.",
172
+ "new": "Nuovo Utente",
173
+ "toolbar": {
174
+ "search": "Cerca per nome o email…",
175
+ "allStatus": "Tutti gli stati",
176
+ "active": "Attivi",
177
+ "inactive": "Inattivi",
178
+ "newBtn": "+ Nuovo utente",
179
+ "searchBtn": "Cerca"
180
+ },
181
+ "table": {
182
+ "name": "Nome",
183
+ "email": "Email",
184
+ "role": "Ruolo",
185
+ "status": "Stato",
186
+ "lastAccess": "Ultimo Accesso",
187
+ "actions": {
188
+ "manage": "Gestisci",
189
+ "delete": "Elimina"
190
+ }
191
+ },
192
+ "empty": "Nessun utente trovato.",
193
+ "noRole": "Nessun ruolo",
194
+ "detail": {
195
+ "title": "Gestisci Utente",
196
+ "fields": {
197
+ "name": "Nome",
198
+ "email": "Email",
199
+ "status": "Stato",
200
+ "role": "Ruolo",
201
+ "password": "Password"
202
+ },
203
+ "statusOptions": {
204
+ "active": "Attivo",
205
+ "inactive": "Inattivo"
206
+ },
207
+ "rolePlaceholder": "— nessun ruolo —",
208
+ "meta": "Creato il {created} · ultimo accesso {lastAccess}",
209
+ "actions": {
210
+ "save": "Salva",
211
+ "resetPassword": "Reimposta Password",
212
+ "close": "Chiudi"
213
+ },
214
+ "passwordPrompt": "Nuova password per {email} (minimo 8 caratteri):",
215
+ "passwordError": "La password deve essere di almeno 8 caratteri",
216
+ "toasts": {
217
+ "roleUpdated": "Ruolo di {name} aggiornato ✓",
218
+ "passwordChanged": "Password di {name} cambiata ✓",
219
+ "saved": "Utente {name} salvato ✓",
220
+ "deleted": "Utente {name} eliminato ✓"
221
+ },
222
+ "confirmDelete": "Eliminare l'utente {email}?"
223
+ }
224
+ };
225
+ var settings = {
226
+ "general": {
227
+ "title": "Generali",
228
+ "description": "Informazioni base visualizzate sul sito.",
229
+ "back": "← Tutte le impostazioni",
230
+ "fields": {
231
+ "siteTitle": "Titolo del Sito",
232
+ "siteTitlePlaceholder": "Il Mio Sito",
233
+ "siteDescription": "Descrizione",
234
+ "siteDescriptionPlaceholder": "Un nuovo sito con OkCMS",
235
+ "language": "Lingua",
236
+ "timezone": "Fuso Orario",
237
+ "timezonePlaceholder": "Europe/Rome"
238
+ },
239
+ "saved": "Impostazioni salvate ✓",
240
+ "loading": "Caricamento…",
241
+ "save": "Salva"
242
+ },
243
+ "postTypes": {
244
+ "title": "Tipi di Contenuto",
245
+ "description": "Crea tipi di contenuto personalizzati (CPT) oltre a Post e Pagine.",
246
+ "form": {
247
+ "title": "Crea Tipo di Contenuto",
248
+ "slug": "Slug (singolare, es.: portfolio)",
249
+ "slugHint": "Solo lettere minuscole, numeri e underscore",
250
+ "singular": "Nome Singolare",
251
+ "plural": "Nome Plurale",
252
+ "supports": "Supporta",
253
+ "supportsOptions": {
254
+ "title": "Titolo",
255
+ "editor": "Editor",
256
+ "thumbnail": "Immagine in Evidenza",
257
+ "excerpt": "Estratto",
258
+ "revisions": "Revisioni"
259
+ },
260
+ "hasArchive": "Ha Archivio Pubblico (/slug)",
261
+ "create": "Crea"
262
+ },
263
+ "table": {
264
+ "slug": "Slug",
265
+ "singular": "Singolare",
266
+ "plural": "Plurale",
267
+ "source": "Origine",
268
+ "supports": "Supporta",
269
+ "archive": "Archivio",
270
+ "actions": { "remove": "Rimuovi" }
271
+ },
272
+ "sources": {
273
+ "admin": "Admin",
274
+ "core": "Core"
275
+ }
276
+ },
277
+ "taxonomies": {
278
+ "title": "Tassonomie",
279
+ "description": "Crea tassonomie personalizzale e collegale ai tipi di contenuto.",
280
+ "form": {
281
+ "title": "Crea Tassonomia",
282
+ "name": "Nome (es.: Genere)",
283
+ "slug": "Slug (opzionale, generato dal nome)",
284
+ "slugHint": "Solo lettere minuscole, numeri e underscore",
285
+ "hierarchical": "Gerarchica (permette termini padre/figlio)",
286
+ "attachTo": "Collega ai tipi di contenuto",
287
+ "create": "Crea"
288
+ },
289
+ "table": {
290
+ "taxonomy": "Tassonomia",
291
+ "hierarchical": "Gerarchica",
292
+ "attachedTypes": "Tipi di contenuto collegati",
293
+ "actions": { "remove": "Rimuovi" }
294
+ }
295
+ }
296
+ };
297
+ var login = {
298
+ "title": "Accesso",
299
+ "subtitle": "Accedi al tuo account",
300
+ "email": "Email",
301
+ "password": "Password",
302
+ "submit": "Accedi",
303
+ "failed": "Email o password non validi"
304
+ };
305
+ var common = {
306
+ "save": "Salva",
307
+ "cancel": "Annulla",
308
+ "delete": "Elimina",
309
+ "edit": "Modifica",
310
+ "close": "Chiudi",
311
+ "confirm": "Conferma",
312
+ "loading": "Caricamento…",
313
+ "yes": "Sì",
314
+ "no": "No",
315
+ "search": "Cerca",
316
+ "filter": "Filtro",
317
+ "create": "Crea",
318
+ "update": "Aggiorna",
319
+ "remove": "Rimuovi",
320
+ "viewAll": "Visualizza Tutti",
321
+ "back": "Indietro",
322
+ "next": "Avanti",
323
+ "previous": "Precedente",
324
+ "page": "Pagina",
325
+ "of": "di",
326
+ "items": "elementi",
327
+ "item": "elemento",
328
+ "empty": "Nessun {items} trovato.",
329
+ "toast": {
330
+ "success": "✓",
331
+ "error": "Errore: {message}"
332
+ },
333
+ "status": {
334
+ "active": "Attivo",
335
+ "inactive": "Inattivo",
336
+ "draft": "Bozza",
337
+ "published": "Pubblicato",
338
+ "archived": "Archiviato",
339
+ "locked": "Bloccato"
340
+ },
341
+ "language": "Lingua"
342
+ };
343
+ var activity = {
344
+ "justNow": "proprio ora",
345
+ "minAgo": "minuti fa",
346
+ "ago": "fa",
347
+ "published": "Pubblicato",
348
+ "updated": "Aggiornato",
349
+ "newUser": "Nuovo utente: {name}"
350
+ };
351
+ var adminBar = {
352
+ "mainMenu": "Menu principale",
353
+ "notifications": "Notifiche",
354
+ "notificationsEmpty": "Nessuna attività recente",
355
+ "settings": "Impostazioni",
356
+ "toggleSidebar": "Attiva/disattiva barra laterale",
357
+ "userMenu": "Menu utente"
358
+ };
359
+ var footer = {
360
+ "copyright": "© 2026 OkCMS. Tutti i diritti riservati.",
361
+ "links": "Collegamenti",
362
+ "website": "Sito web",
363
+ "github": "GitHub",
364
+ "docs": "Documentazione",
365
+ "community": "Comunità",
366
+ "poweredBy": "Prodotto con OkCMS"
367
+ };
368
+ var helpTabs = {
369
+ "title": "Aiuto",
370
+ "label": "Aiuto",
371
+ "tabs": "Argomenti di aiuto",
372
+ "topics": {
373
+ "overview": {
374
+ "label": "In breve",
375
+ "content": "<h4>Benvenuto nella dashboard di OkCMS</h4><p>Questa dashboard offre una panoramica del contenuto e dell'attività del tuo sito.</p><h4>Widget disponibili</h4><ul><li><strong>In breve:</strong> panoramica di articoli, pagine, media e utenti</li><li><strong>Bozza rapida:</strong> salva bozze rapidamente dalla dashboard</li><li><strong>Attività:</strong> attività e aggiornamenti recenti del sito</li></ul>"
376
+ },
377
+ "content": {
378
+ "label": "Gestione contenuti",
379
+ "content": "<h4>Gestire i contenuti</h4><p>Crea, modifica e pubblica i contenuti dalla sezione Contenuti.</p><h4>Azioni rapide</h4><ul><li>Clicca su \"Nuovo contenuto\" per creare un nuovo articolo o pagina</li><li>Usa i filtri per trovare contenuti specifici</li><li>Azioni di gruppo disponibili per più elementi</li></ul>"
380
+ },
381
+ "media": {
382
+ "label": "Libreria media",
383
+ "content": "<h4>Gestire i media</h4><p>Carica e gestisci immagini, video e documenti.</p><h4>Suggerimenti</h4><ul><li>Trascina i file per caricarli</li><li>Aggiungi il testo alternativo per l'accessibilità</li><li>Organizza con le cartelle (in arrivo)</li></ul>"
384
+ }
385
+ }
386
+ };
387
+ var screenOptions = {
388
+ "title": "Opzioni schermo",
389
+ "label": "Opzioni schermo",
390
+ "showOnScreen": "Mostra sullo schermo"
391
+ };
392
+ var it_default = {
393
+ layout,
394
+ dashboard,
395
+ content,
396
+ media,
397
+ users,
398
+ settings,
399
+ login,
400
+ common,
401
+ activity,
402
+ adminBar,
403
+ footer,
404
+ helpTabs,
405
+ screenOptions
406
+ };
407
+ //#endregion
408
+ export { activity, adminBar, common, content, dashboard, it_default as default, footer, helpTabs, layout, login, media, screenOptions, settings, users };