@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.
- package/dist/client/_astro/{ActivityWidget.DeayROhc.js → ActivityWidget.B83CLwGG.js} +2 -2
- package/dist/client/_astro/AdminBar.BNESswxs.js +253 -0
- package/dist/client/_astro/{AtGlanceWidget.CDFVi_eX.js → AtGlanceWidget.Cqbb9anJ.js} +3 -3
- package/dist/client/_astro/BaseLayout.B3A9-IS6.css +1 -0
- package/dist/client/_astro/ContentEditor.CBH227Ni.js +1 -0
- package/dist/client/_astro/ContentList.hmLCz5_S.js +1 -0
- package/dist/client/_astro/CustomFieldsManager.Dzhp_sZl.js +3 -0
- package/dist/client/_astro/DashboardHome.DawF-CZ9.js +1 -0
- package/dist/client/_astro/DashboardLayout.CEvRGr78.css +1 -0
- package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.Ckp0okyg.js +1 -0
- package/dist/client/_astro/FieldTypePicker.BEuYPzV8.js +1 -0
- package/dist/client/_astro/{Footer.KkyZkNxH.js → Footer.dcA-nmBA.js} +10 -12
- package/dist/client/_astro/GeneralSettings.DdAwp-oL.js +1 -0
- package/dist/client/_astro/MediaLibrary.B9SPVPYH.js +1 -0
- package/dist/client/_astro/PluginManager.DN5xhAsV.js +93 -0
- package/dist/client/_astro/PostTypesManager.BZH1eM3c.js +1 -0
- package/dist/client/_astro/{QuickDraftWidget.Drp_cL_D.js → QuickDraftWidget.DBvLubay.js} +2 -2
- package/dist/client/_astro/ResourceHubs.BvrE39A0.js +1 -0
- package/dist/client/_astro/TaxonomiesManager.BrjG05jb.js +1 -0
- package/dist/client/_astro/ThemeManager.CsrK3HXj.js +129 -0
- package/dist/client/_astro/UserCreateForm.Dxq80Bqx.js +1 -0
- package/dist/client/_astro/UsersManager.DmBadxWw.js +1 -0
- package/dist/client/_astro/api.BfxYC8bU.js +1 -0
- package/dist/client/_astro/ar.DsV0P0EN.js +1 -0
- package/dist/client/_astro/{client.C7p516_9.js → client.BY0Z100j.js} +1 -1
- package/dist/client/_astro/custom-fields.IjuRIdAC.css +1 -0
- package/dist/client/_astro/es-ES.etPSaiLd.js +1 -0
- package/dist/client/_astro/extensions.C6GOqTCd.js +1 -0
- package/dist/client/_astro/he.U1Vtp3zT.js +1 -0
- package/dist/client/_astro/i18n.B4BuieMb.js +1 -0
- package/dist/client/_astro/it.DJuI8oO_.js +1 -0
- package/dist/client/_astro/ja.Cw8I_NUV.js +1 -0
- 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
- package/dist/client/_astro/pl.Dsz-4G_z.js +1 -0
- package/dist/client/_astro/pt-BR.CyQAHnXs.js +1 -0
- package/dist/client/_astro/ru.CwIIcTdy.js +1 -0
- package/dist/client/_astro/src.HVGUo-fm.js +1 -0
- package/dist/client/_astro/sw.DwpL3sb6.js +1 -0
- package/dist/client/_astro/tr.CY2JWJ7Y.js +1 -0
- package/dist/client/_astro/uk.BudEWIU8.js +1 -0
- package/dist/client/_astro/{version.C0f0jrCn.js → version.CilNJ_fk.js} +1 -1
- package/dist/client/_astro/{web.D1H9RxZL.js → web.D_vCtCLj.js} +1 -1
- package/dist/client/_astro/yo.BmoZs0fO.js +1 -0
- package/dist/client/_astro/zh-CN.khaXV6fv.js +1 -0
- package/dist/server/chunks/{BaseLayout_BsR68tOH.mjs → BaseLayout_BmkfK9tu.mjs} +19 -2
- package/dist/server/chunks/{ContentEditor_BtclxOqH.mjs → ContentEditor_C-kz5cS4.mjs} +31 -101
- package/dist/server/chunks/{DashboardLayout_B9pE8ZBQ.mjs → DashboardLayout_KIUq60Dv.mjs} +52 -566
- package/dist/server/chunks/FieldTypePicker_CXwpmcQ3.mjs +79 -0
- package/dist/server/chunks/{MediaLibrary_DLO2K_4d.mjs → MediaLibrary_C-lJBpPG.mjs} +2 -2
- package/dist/server/chunks/ResourceHubs_T-WuZoVF.mjs +453 -0
- package/dist/server/chunks/{_slug__yqDK_Ow8.mjs → _slug__DjcyD19w.mjs} +1 -1
- package/dist/server/chunks/access_Bjuw_Gvp.mjs +34 -0
- package/dist/server/chunks/{ar_DBjdWIJ0.mjs → ar_DMC8HaoP.mjs} +3 -1
- package/dist/server/chunks/custom-fields_CxntKU56.mjs +488 -0
- package/dist/server/chunks/{edit_0bCUPzfW.mjs → edit_CFKKfQux.mjs} +2 -2
- package/dist/server/chunks/{es-ES_TJ4oK1yi.mjs → es-ES_DZvHskAD.mjs} +3 -1
- package/dist/server/chunks/{general_D-MMl9p8.mjs → general_CVsJAP2e.mjs} +6 -6
- package/dist/server/chunks/{he_TWsuTphz.mjs → he_zy3stNhR.mjs} +3 -1
- package/dist/server/chunks/i18n_CH59YTvE.mjs +1406 -0
- package/dist/server/chunks/{index_Z7GukanS.mjs → index_2Y9ZC7Gs.mjs} +8 -6
- package/dist/server/chunks/{index_CTpEX5iK.mjs → index_Bb3w_UqS.mjs} +2 -2
- package/dist/server/chunks/{index_DB6MLU0v.mjs → index_BqyoH4bc.mjs} +3 -3
- package/dist/server/chunks/{index_CALAZTDB.mjs → index_G7lx2uke.mjs} +2 -2
- package/dist/server/chunks/{index_Bq7o-ZHF.mjs → index_TyNyWm6y.mjs} +1 -1
- package/dist/server/chunks/{it_CEVFVWh1.mjs → it_BiUDLszZ.mjs} +3 -1
- package/dist/server/chunks/{ja_CqDirMqf.mjs → ja_DjFAG7hL.mjs} +3 -1
- package/dist/server/chunks/{login_BcWk_36h.mjs → login_BCjtaOE9.mjs} +1 -2
- package/dist/server/chunks/{new_DlqbYYA1.mjs → new_BZOJIQfZ.mjs} +2 -2
- package/dist/server/chunks/{new_BbKoexYG.mjs → new_DkHY3O0r.mjs} +2 -2
- package/dist/server/chunks/operations_DYc6rwSI.mjs +34 -0
- package/dist/server/chunks/{pl_ChIKxfZG.mjs → pl_0Xe9Qom2.mjs} +3 -1
- package/dist/server/chunks/{plugins_BLJAzLX4.mjs → plugins_p805vlEb.mjs} +55 -22
- package/dist/server/chunks/{post-types_BvVl0hZs.mjs → post-types_C7YAi_V0.mjs} +6 -6
- package/dist/server/chunks/{pt-BR_4d4jZWL0.mjs → pt-BR_DIZpU2Mk.mjs} +206 -2
- package/dist/server/chunks/resources_BVP5krU_.mjs +34 -0
- package/dist/server/chunks/{ru_CIc6O5Q7.mjs → ru_DFvIxd0Y.mjs} +3 -1
- package/dist/server/chunks/{sw_Bs3iYVDM.mjs → sw_CmaPgGYa.mjs} +3 -1
- package/dist/server/chunks/{taxonomies_Dkx7d-vc.mjs → taxonomies_CWhPYZDq.mjs} +2 -2
- package/dist/server/chunks/themes_iwb1637h.mjs +155 -0
- package/dist/server/chunks/{tr_C7JbXuoQ.mjs → tr_B_acwl2e.mjs} +3 -1
- package/dist/server/chunks/{uk_Dibs8Wkc.mjs → uk_DXnk4imL.mjs} +3 -1
- package/dist/server/chunks/{upload_CpGGKDEH.mjs → upload_BE7qzxe7.mjs} +2 -2
- package/dist/server/chunks/{yo_B6MPvz_U.mjs → yo_DDQ8a-0v.mjs} +3 -1
- package/dist/server/chunks/{zh-CN_G1Dc2b28.mjs → zh-CN_763uzTMQ.mjs} +3 -1
- package/dist/server/entry.mjs +149 -25
- package/dist/server/virtual_astro_middleware.mjs +6 -3
- package/package.json +1 -1
- package/dist/client/_astro/AdminBar.DQilvzQe.js +0 -234
- package/dist/client/_astro/BaseLayout.B2MfKf6B.css +0 -1
- package/dist/client/_astro/ContentEditor.WyLHMY9o.js +0 -1
- package/dist/client/_astro/ContentList.BWtiYbDy.js +0 -1
- package/dist/client/_astro/DashboardHome.-0s3t1kG.js +0 -1
- package/dist/client/_astro/DashboardLayout.DWuCsemN.css +0 -1
- package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.Bm7kqhGo.js +0 -1
- package/dist/client/_astro/GeneralSettings.CaEyAV2f.js +0 -1
- package/dist/client/_astro/HelpTabs.99giF0f1.js +0 -103
- package/dist/client/_astro/LanguageSelector.DPBYaSN4.js +0 -14
- package/dist/client/_astro/MediaLibrary.DBfw3BM0.js +0 -1
- package/dist/client/_astro/PluginManager.BFoAz05U.js +0 -93
- package/dist/client/_astro/PostTypesManager.y9aB2d3_.js +0 -1
- package/dist/client/_astro/ScreenOptions.C8K8Bufc.js +0 -70
- package/dist/client/_astro/TaxonomiesManager.Cj54HB7P.js +0 -1
- package/dist/client/_astro/ThemeManager.BuULAG8h.js +0 -124
- package/dist/client/_astro/UserCreateForm.BMWIRfb2.js +0 -1
- package/dist/client/_astro/UsersManager.BogkOfCQ.js +0 -1
- package/dist/client/_astro/api.PfLklAa1.js +0 -1
- package/dist/client/_astro/ar.CzsjUutD.js +0 -1
- package/dist/client/_astro/en.DmN7xy_a.js +0 -1
- package/dist/client/_astro/es-ES.p2TLEMlZ.js +0 -1
- package/dist/client/_astro/extensions.DfxrGzbo.js +0 -1
- package/dist/client/_astro/he.BnYHiYpn.js +0 -1
- package/dist/client/_astro/i18n.BMDVwjZM.js +0 -1
- package/dist/client/_astro/it.WrWKBEAD.js +0 -1
- package/dist/client/_astro/ja.DxnfhIdt.js +0 -1
- package/dist/client/_astro/pl.jUj-RfZS.js +0 -1
- package/dist/client/_astro/pt-BR.DtNwEO0i.js +0 -1
- package/dist/client/_astro/ru.KFSfdjWn.js +0 -1
- package/dist/client/_astro/src.Cgonpfb5.js +0 -1
- package/dist/client/_astro/sw.3jlAOLOv.js +0 -1
- package/dist/client/_astro/tr.tnLMnGPg.js +0 -1
- package/dist/client/_astro/uk.VquHY_xc.js +0 -1
- package/dist/client/_astro/yo.Cr8hCb5u.js +0 -1
- package/dist/client/_astro/zh-CN.E32QqP4v.js +0 -1
- package/dist/server/chunks/en_C750mYKk.mjs +0 -408
- package/dist/server/chunks/i18n_Dj2ieo-N.mjs +0 -548
- package/dist/server/chunks/script_CPGt5jAh.mjs +0 -19
- package/dist/server/chunks/themes_CCDPOhVZ.mjs +0 -127
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
|
-
import { i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
|
-
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as useTranslation, r as apiClient } from "./i18n_Dj2ieo-N.mjs";
|
|
5
|
-
import { t as $$BaseLayout } from "./BaseLayout_BsR68tOH.mjs";
|
|
6
|
-
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
7
|
-
import { For, createSignal, onMount } from "solid-js";
|
|
8
|
-
//#region src/components/apps/themes/ThemeManager.tsx
|
|
9
|
-
var _tmpl$ = [
|
|
10
|
-
"<div",
|
|
11
|
-
" class=\"theme-manager\"><div class=\"page-header\"><h2>",
|
|
12
|
-
"</h2><p class=\"page-description\">",
|
|
13
|
-
"</p></div><!--$-->",
|
|
14
|
-
"<!--/--><!--$-->",
|
|
15
|
-
"<!--/--><!--$-->",
|
|
16
|
-
"<!--/--><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 .themes-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n gap: 1.5rem;\n }\n .theme-card {\n background: var(--color-surface);\n border: 1px solid var(--color-border);\n border-radius: var(--radius-lg);\n padding: 1.5rem;\n display: flex;\n flex-direction: column;\n gap: 1rem;\n transition: all 0.2s;\n }\n .theme-card:hover {\n border-color: var(--color-primary);\n box-shadow: var(--shadow-md);\n }\n .theme-card.active {\n border-color: var(--color-primary);\n box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-md);\n }\n .theme-preview {\n position: relative;\n }\n .theme-badge {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n background: var(--color-primary);\n color: var(--color-primary-contrast);\n padding: 0.25rem 0.5rem;\n border-radius: var(--radius-full);\n font-size: 0.625rem;\n font-weight: 700;\n text-transform: uppercase;\n }\n .theme-info {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n }\n .theme-info h3 {\n margin: 0;\n font-size: 1.125rem;\n font-weight: 600;\n }\n .theme-version {\n margin: 0;\n font-size: 0.75rem;\n color: var(--color-muted);\n }\n .theme-desc {\n margin: 0;\n font-size: 0.8125rem;\n color: var(--color-text);\n line-height: 1.5;\n }\n .theme-status {\n display: flex;\n align-items: center;\n gap: 0.5rem;\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.625rem;\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 .theme-actions {\n margin-top: 0.5rem;\n }\n .empty-state {\n grid-column: 1 / -1;\n padding: 3rem;\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
|
-
];
|
|
18
|
-
var _tmpl$2 = [
|
|
19
|
-
"<div",
|
|
20
|
-
" class=\"alert alert-error\">",
|
|
21
|
-
"</div>"
|
|
22
|
-
];
|
|
23
|
-
var _tmpl$3 = ["<div", " class=\"skeleton\">Loading...</div>"];
|
|
24
|
-
var _tmpl$4 = [
|
|
25
|
-
"<div",
|
|
26
|
-
" class=\"themes-grid\"><!--$-->",
|
|
27
|
-
"<!--/--><!--$-->",
|
|
28
|
-
"<!--/--></div>"
|
|
29
|
-
];
|
|
30
|
-
var _tmpl$5 = [
|
|
31
|
-
"<div",
|
|
32
|
-
" class=\"",
|
|
33
|
-
"\"><div class=\"theme-preview\">",
|
|
34
|
-
"</div><div class=\"theme-info\"><h3>",
|
|
35
|
-
"</h3><p class=\"theme-version\"><!--$-->",
|
|
36
|
-
"<!--/-->: <!--$-->",
|
|
37
|
-
"<!--/--></p><p class=\"theme-status\"><span class=\"",
|
|
38
|
-
"\">",
|
|
39
|
-
"</span></p><!--$-->",
|
|
40
|
-
"<!--/--></div><div class=\"theme-actions\"><button class=\"",
|
|
41
|
-
"\"",
|
|
42
|
-
">",
|
|
43
|
-
"</button></div></div>"
|
|
44
|
-
];
|
|
45
|
-
var _tmpl$6 = [
|
|
46
|
-
"<div",
|
|
47
|
-
" class=\"theme-badge active-badge\">",
|
|
48
|
-
"</div>"
|
|
49
|
-
];
|
|
50
|
-
var _tmpl$7 = [
|
|
51
|
-
"<p",
|
|
52
|
-
" class=\"theme-desc\">",
|
|
53
|
-
"</p>"
|
|
54
|
-
];
|
|
55
|
-
var _tmpl$8 = [
|
|
56
|
-
"<div",
|
|
57
|
-
" class=\"empty-state\">",
|
|
58
|
-
"</div>"
|
|
59
|
-
];
|
|
60
|
-
function ThemeManager() {
|
|
61
|
-
const { t } = useTranslation();
|
|
62
|
-
const [themes, setThemes] = createSignal([]);
|
|
63
|
-
const [loading, setLoading] = createSignal(true);
|
|
64
|
-
const [error, setError] = createSignal(null);
|
|
65
|
-
const [toggling, setToggling] = createSignal(null);
|
|
66
|
-
onMount(async () => {
|
|
67
|
-
await loadThemes();
|
|
68
|
-
});
|
|
69
|
-
async function loadThemes() {
|
|
70
|
-
try {
|
|
71
|
-
setLoading(true);
|
|
72
|
-
const data = await apiClient.getThemes();
|
|
73
|
-
setThemes(data);
|
|
74
|
-
} catch (err) {
|
|
75
|
-
setError(t("themes.loadError"));
|
|
76
|
-
} finally {
|
|
77
|
-
setLoading(false);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
const getStatusLabel = (status) => {
|
|
81
|
-
switch (status) {
|
|
82
|
-
case "ACTIVE": return t("themes.status.active");
|
|
83
|
-
case "INSTALLED": return t("themes.status.installed");
|
|
84
|
-
case "INACTIVE": return t("themes.status.inactive");
|
|
85
|
-
default: return status;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
const getStatusClass = (status) => {
|
|
89
|
-
switch (status) {
|
|
90
|
-
case "ACTIVE": return "status-active";
|
|
91
|
-
case "INSTALLED": return "status-installed";
|
|
92
|
-
case "INACTIVE": return "status-inactive";
|
|
93
|
-
default: return "";
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
return ssr(_tmpl$, ssrHydrationKey(), escape(t("themes.title")), escape(t("themes.description")), error() && ssr(_tmpl$2, ssrHydrationKey(), escape(error())), loading() && _tmpl$3[0] + ssrHydrationKey() + _tmpl$3[1], !loading() && !error() && ssr(_tmpl$4, ssrHydrationKey(), escape(createComponent(For, {
|
|
97
|
-
get each() {
|
|
98
|
-
return themes();
|
|
99
|
-
},
|
|
100
|
-
children: (theme) => ssr(_tmpl$5, ssrHydrationKey(), `theme-card ${theme.status === "ACTIVE" ? "active" : ""}`, theme.manifest?.name && ssr(_tmpl$6, ssrHydrationKey(), escape(t("themes.active"))), escape(theme.name), escape(t("themes.version")), escape(theme.version), `status-badge ${escape(getStatusClass(theme.status), true)}`, escape(getStatusLabel(theme.status)), theme.manifest?.description && ssr(_tmpl$7, ssrHydrationKey(), escape(theme.manifest.description)), `btn ${toggling() === theme.id ? "btn-loading" : ""}`, ssrAttribute("disabled", toggling() !== null, true), theme.status === "ACTIVE" ? escape(t("themes.deactivate")) : escape(t("themes.activate")))
|
|
101
|
-
})), themes().length === 0 && ssr(_tmpl$8, ssrHydrationKey(), escape(t("themes.empty")))));
|
|
102
|
-
}
|
|
103
|
-
//#endregion
|
|
104
|
-
//#region src/pages/themes.astro
|
|
105
|
-
var themes_exports = /* @__PURE__ */ __exportAll({
|
|
106
|
-
default: () => $$Themes,
|
|
107
|
-
file: () => $$file,
|
|
108
|
-
url: () => $$url
|
|
109
|
-
});
|
|
110
|
-
var $$Themes = createComponent$1(($$result, $$props, $$slots) => {
|
|
111
|
-
return renderTemplate`${renderComponent($$result, "BaseLayout", $$BaseLayout, {
|
|
112
|
-
"title": "Temas",
|
|
113
|
-
"description": "Gerencie temas do sistema"
|
|
114
|
-
}, { "default": ($$result) => renderTemplate`${renderComponent($$result, "ThemeManager", ThemeManager, {
|
|
115
|
-
"client:load": true,
|
|
116
|
-
"client:component-hydration": "load",
|
|
117
|
-
"client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/apps/themes/ThemeManager.tsx",
|
|
118
|
-
"client:component-export": "ThemeManager"
|
|
119
|
-
})}` })}`;
|
|
120
|
-
}, "/home/runner/work/cms/cms/apps/admin/src/pages/themes.astro", void 0);
|
|
121
|
-
var $$file = "/home/runner/work/cms/cms/apps/admin/src/pages/themes.astro";
|
|
122
|
-
var $$url = "/themes";
|
|
123
|
-
//#endregion
|
|
124
|
-
//#region \0virtual:astro:page:src/pages/themes@_@astro
|
|
125
|
-
var page = () => themes_exports;
|
|
126
|
-
//#endregion
|
|
127
|
-
export { page };
|