@oktis-works/admin 0.3.1 → 0.3.2
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/ContentEditor.Buc5ptK0.js +1 -0
- package/dist/client/_astro/ContentList.Bo_ok2oa.js +1 -0
- package/dist/client/_astro/GeneralSettings.BNzHpRY6.js +1 -0
- package/dist/client/_astro/MediaLibrary.Dn4DRbZb.js +1 -0
- package/dist/client/_astro/UsersManager.-5jU3GxA.js +1 -0
- package/dist/client/_astro/extensions.JQggUqT5.js +1 -0
- package/dist/client/_astro/src.DX_xrAwd.js +1 -0
- package/dist/server/chunks/{ContentEditor_D-viRUSq.mjs → ContentEditor_DtKBw5Nv.mjs} +1 -1
- package/dist/server/chunks/{DashboardLayout_BcJfVITA.mjs → DashboardLayout_Bpur473M.mjs} +217 -299
- package/dist/server/chunks/{MediaLibrary_B_iV_iG_.mjs → MediaLibrary_BDyBahZ3.mjs} +1 -1
- package/dist/server/chunks/{_slug__Drk3SGVA.mjs → _slug__DNJwUFYD.mjs} +1 -1
- package/dist/server/chunks/{edit_C2JhI_4N.mjs → edit_CSA-bTD0.mjs} +2 -2
- package/dist/server/chunks/{general_P495Ufsz.mjs → general_D8esOFBG.mjs} +1 -1
- package/dist/server/chunks/{index_B6CCj15C.mjs → index_BCUHGT54.mjs} +1 -1
- package/dist/server/chunks/{index_BXXETvZ4.mjs → index_BzJtUv3l.mjs} +2 -2
- package/dist/server/chunks/{index_TjQB6YGE.mjs → index_CSD_Oyb4.mjs} +1 -1
- package/dist/server/chunks/{index_SwfYHct5.mjs → index_X49R9glL.mjs} +1 -1
- package/dist/server/chunks/{index_Btnu1IuS.mjs → index__EF7aYFm.mjs} +1 -1
- package/dist/server/chunks/{new_ES56yNLA.mjs → new_C7iXK0wp.mjs} +2 -2
- package/dist/server/chunks/{new_D524jTif.mjs → new_Dg7GlHuV.mjs} +1 -1
- package/dist/server/chunks/{post-types_fjRQBp-g.mjs → post-types_CJt6sMSh.mjs} +1 -1
- package/dist/server/chunks/{taxonomies_sqdg4QrC.mjs → taxonomies_BJehVfgw.mjs} +1 -1
- package/dist/server/chunks/{upload_ILNZTf3l.mjs → upload_CeK7uSwz.mjs} +2 -2
- package/dist/server/entry.mjs +16 -16
- package/package.json +5 -5
- package/dist/client/_astro/ContentEditor.Cz572tRv.js +0 -1
- package/dist/client/_astro/ContentList.DiB9vOGJ.js +0 -1
- package/dist/client/_astro/GeneralSettings.CNwCgPqo.js +0 -1
- package/dist/client/_astro/MediaLibrary.Cq9XsGhv.js +0 -1
- package/dist/client/_astro/UsersManager.CpYTrwb-.js +0 -1
- package/dist/client/_astro/dist.B3u752Tx.js +0 -1
- package/dist/client/_astro/extensions.PfWqwyUU.js +0 -1
|
@@ -3,31 +3,127 @@ import { S as createAstro, d as maybeRenderHead, i as renderComponent, p as addA
|
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
4
|
import { n as renderScript, t as $$BaseLayout } from "./BaseLayout_CcUFilW5.mjs";
|
|
5
5
|
import { t as require_semver } from "./semver_WbqCUY_o.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey, ssrStyle } from "solid-js/web";
|
|
7
7
|
import { For, For as For2, Show, Show as Show2, createMemo as createMemo$1, createSignal as createSignal$1, onMount as onMount$1 } from "solid-js";
|
|
8
8
|
require_semver();
|
|
9
9
|
//#endregion
|
|
10
|
-
//#region ../../packages/ui/dist/
|
|
11
|
-
var _tmpl$$2 =
|
|
12
|
-
var _tmpl$2$2 =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var _tmpl$
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var _tmpl$
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
10
|
+
//#region ../../packages/ui/dist/server.js
|
|
11
|
+
var _tmpl$$2 = ["<span", " class=\"spinner\" aria-label=\"Carregando\"></span>"];
|
|
12
|
+
var _tmpl$2$2 = [
|
|
13
|
+
"<button",
|
|
14
|
+
"",
|
|
15
|
+
">",
|
|
16
|
+
"</button>"
|
|
17
|
+
];
|
|
18
|
+
var _tmpl$3 = [
|
|
19
|
+
"<label",
|
|
20
|
+
" class=\"field__label\"><!--$-->",
|
|
21
|
+
"<!--/--><!--$-->",
|
|
22
|
+
"<!--/--><input class=\"input\"",
|
|
23
|
+
"",
|
|
24
|
+
"",
|
|
25
|
+
"></label>"
|
|
26
|
+
];
|
|
27
|
+
var _tmpl$4 = [
|
|
28
|
+
"<input",
|
|
29
|
+
" class=\"input\"",
|
|
30
|
+
"",
|
|
31
|
+
"",
|
|
32
|
+
">"
|
|
33
|
+
];
|
|
34
|
+
var _tmpl$5 = [
|
|
35
|
+
"<p",
|
|
36
|
+
" class=\"field__error notice--error\">",
|
|
37
|
+
"</p>"
|
|
38
|
+
];
|
|
39
|
+
var _tmpl$6 = [
|
|
40
|
+
"<div",
|
|
41
|
+
"><!--$-->",
|
|
42
|
+
"<!--/--><!--$-->",
|
|
43
|
+
"<!--/--><!--$-->",
|
|
44
|
+
"<!--/--></div>"
|
|
45
|
+
];
|
|
46
|
+
var _tmpl$7 = ["<span", " aria-hidden=\"true\"> *</span>"];
|
|
47
|
+
var _tmpl$8 = [
|
|
48
|
+
"<option",
|
|
49
|
+
" value>",
|
|
50
|
+
"</option>"
|
|
51
|
+
];
|
|
52
|
+
var _tmpl$9 = [
|
|
53
|
+
"<label",
|
|
54
|
+
" class=\"field__label\"><!--$-->",
|
|
55
|
+
"<!--/--><select class=\"input\"",
|
|
56
|
+
"",
|
|
57
|
+
"><!--$-->",
|
|
58
|
+
"<!--/--><!--$-->",
|
|
59
|
+
"<!--/--></select></label>"
|
|
60
|
+
];
|
|
61
|
+
var _tmpl$0 = [
|
|
62
|
+
"<select",
|
|
63
|
+
" class=\"input\"",
|
|
64
|
+
"",
|
|
65
|
+
"><!--$-->",
|
|
66
|
+
"<!--/--><!--$-->",
|
|
67
|
+
"<!--/--></select>"
|
|
68
|
+
];
|
|
69
|
+
var _tmpl$1 = [
|
|
70
|
+
"<div",
|
|
71
|
+
"><!--$-->",
|
|
72
|
+
"<!--/--><!--$-->",
|
|
73
|
+
"<!--/--></div>"
|
|
74
|
+
];
|
|
75
|
+
var _tmpl$10 = [
|
|
76
|
+
"<option",
|
|
77
|
+
">",
|
|
78
|
+
"</option>"
|
|
79
|
+
];
|
|
80
|
+
var _tmpl$11 = [
|
|
81
|
+
"<div",
|
|
82
|
+
" class=\"card-header\"><h3>",
|
|
83
|
+
"</h3></div>"
|
|
84
|
+
];
|
|
85
|
+
var _tmpl$12 = [
|
|
86
|
+
"<span",
|
|
87
|
+
" class=\"",
|
|
88
|
+
"\">",
|
|
89
|
+
"</span>"
|
|
90
|
+
];
|
|
91
|
+
var _tmpl$15 = [
|
|
92
|
+
"<table",
|
|
93
|
+
" class=\"table\"><thead><tr>",
|
|
94
|
+
"</tr></thead><tbody>",
|
|
95
|
+
"</tbody></table>"
|
|
96
|
+
];
|
|
97
|
+
var _tmpl$16 = ["<div", " class=\"table-loading\"><span class=\"spinner\" aria-label=\"Carregando\"></span></div>"];
|
|
98
|
+
var _tmpl$17 = [
|
|
99
|
+
"<p",
|
|
100
|
+
" class=\"muted\">",
|
|
101
|
+
"</p>"
|
|
102
|
+
];
|
|
103
|
+
var _tmpl$18 = [
|
|
104
|
+
"<th",
|
|
105
|
+
" style=\"",
|
|
106
|
+
"\">",
|
|
107
|
+
"</th>"
|
|
108
|
+
];
|
|
109
|
+
var _tmpl$19 = [
|
|
110
|
+
"<tr",
|
|
111
|
+
">",
|
|
112
|
+
"</tr>"
|
|
113
|
+
];
|
|
114
|
+
var _tmpl$20 = [
|
|
115
|
+
"<td",
|
|
116
|
+
">",
|
|
117
|
+
"</td>"
|
|
118
|
+
];
|
|
119
|
+
var _tmpl$21 = [
|
|
120
|
+
"<div",
|
|
121
|
+
" class=\"pagination\"><button class=\"btn btn-secondary btn-sm\" type=\"button\"",
|
|
122
|
+
">← Anterior</button><span class=\"muted\">Página <!--$-->",
|
|
123
|
+
"<!--/--> de <!--$-->",
|
|
124
|
+
"<!--/--></span><button class=\"btn btn-secondary btn-sm\" type=\"button\"",
|
|
125
|
+
">Próxima →</button></div>"
|
|
126
|
+
];
|
|
31
127
|
var BTN_VARIANTS = [
|
|
32
128
|
"primary",
|
|
33
129
|
"secondary",
|
|
@@ -42,234 +138,93 @@ function Button(props) {
|
|
|
42
138
|
props.size === "sm" ? "btn-sm" : "",
|
|
43
139
|
props.class ?? ""
|
|
44
140
|
].filter(Boolean).join(" ");
|
|
45
|
-
return (()
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return props.children;
|
|
57
|
-
},
|
|
58
|
-
get children() {
|
|
59
|
-
return _tmpl$$2();
|
|
60
|
-
}
|
|
61
|
-
}));
|
|
62
|
-
effect((_p$) => {
|
|
63
|
-
var _v$ = props.type ?? "button", _v$2 = classes(), _v$3 = props.disabled || props.loading;
|
|
64
|
-
_v$ !== _p$.e && setAttribute(_el$, "type", _p$.e = _v$);
|
|
65
|
-
_v$2 !== _p$.t && className(_el$, _p$.t = _v$2);
|
|
66
|
-
_v$3 !== _p$.a && (_el$.disabled = _p$.a = _v$3);
|
|
67
|
-
return _p$;
|
|
68
|
-
}, {
|
|
69
|
-
e: void 0,
|
|
70
|
-
t: void 0,
|
|
71
|
-
a: void 0
|
|
72
|
-
});
|
|
73
|
-
return _el$;
|
|
74
|
-
})();
|
|
141
|
+
return ssr(_tmpl$2$2, ssrHydrationKey() + ssrAttribute("type", escape(props.type ?? "button", true), false) + ssrAttribute("class", escape(classes(), true), false), ssrAttribute("disabled", props.disabled || props.loading, true), escape(createComponent(Show, {
|
|
142
|
+
get when() {
|
|
143
|
+
return props.loading;
|
|
144
|
+
},
|
|
145
|
+
get fallback() {
|
|
146
|
+
return props.children;
|
|
147
|
+
},
|
|
148
|
+
get children() {
|
|
149
|
+
return ssr(_tmpl$$2, ssrHydrationKey());
|
|
150
|
+
}
|
|
151
|
+
})));
|
|
75
152
|
}
|
|
76
153
|
function Input(props) {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
_v$6 !== _p$.a && setAttribute(_el$5, "placeholder", _p$.a = _v$6);
|
|
100
|
-
_v$7 !== _p$.o && (_el$5.disabled = _p$.o = _v$7);
|
|
101
|
-
_v$8 !== _p$.i && (_el$5.required = _p$.i = _v$8);
|
|
102
|
-
return _p$;
|
|
103
|
-
}, {
|
|
104
|
-
e: void 0,
|
|
105
|
-
t: void 0,
|
|
106
|
-
a: void 0,
|
|
107
|
-
o: void 0,
|
|
108
|
-
i: void 0
|
|
109
|
-
});
|
|
110
|
-
effect(() => _el$5.value = props.value ?? "");
|
|
111
|
-
return _el$4;
|
|
112
|
-
}
|
|
113
|
-
}), null);
|
|
114
|
-
insert(_el$3, createComponent(Show, {
|
|
115
|
-
get when() {
|
|
116
|
-
return !props.label;
|
|
117
|
-
},
|
|
118
|
-
get children() {
|
|
119
|
-
var _el$6 = _tmpl$4();
|
|
120
|
-
_el$6.$$input = handleInput;
|
|
121
|
-
effect((_p$) => {
|
|
122
|
-
var _v$9 = props.type ?? "text", _v$0 = props.name, _v$1 = props.placeholder, _v$10 = props.disabled, _v$11 = props.required;
|
|
123
|
-
_v$9 !== _p$.e && setAttribute(_el$6, "type", _p$.e = _v$9);
|
|
124
|
-
_v$0 !== _p$.t && setAttribute(_el$6, "name", _p$.t = _v$0);
|
|
125
|
-
_v$1 !== _p$.a && setAttribute(_el$6, "placeholder", _p$.a = _v$1);
|
|
126
|
-
_v$10 !== _p$.o && (_el$6.disabled = _p$.o = _v$10);
|
|
127
|
-
_v$11 !== _p$.i && (_el$6.required = _p$.i = _v$11);
|
|
128
|
-
return _p$;
|
|
129
|
-
}, {
|
|
130
|
-
e: void 0,
|
|
131
|
-
t: void 0,
|
|
132
|
-
a: void 0,
|
|
133
|
-
o: void 0,
|
|
134
|
-
i: void 0
|
|
135
|
-
});
|
|
136
|
-
effect(() => _el$6.value = props.value ?? "");
|
|
137
|
-
return _el$6;
|
|
138
|
-
}
|
|
139
|
-
}), null);
|
|
140
|
-
insert(_el$3, createComponent(Show, {
|
|
141
|
-
get when() {
|
|
142
|
-
return props.error;
|
|
143
|
-
},
|
|
144
|
-
get children() {
|
|
145
|
-
var _el$7 = _tmpl$5();
|
|
146
|
-
insert(_el$7, () => props.error);
|
|
147
|
-
return _el$7;
|
|
148
|
-
}
|
|
149
|
-
}), null);
|
|
150
|
-
effect(() => className(_el$3, `field ${props.class ?? ""}`.trim()));
|
|
151
|
-
return _el$3;
|
|
152
|
-
})();
|
|
154
|
+
return ssr(_tmpl$6, ssrHydrationKey() + ssrAttribute("class", escape(`field ${props.class ?? ""}`.trim(), true), false), escape(createComponent(Show, {
|
|
155
|
+
get when() {
|
|
156
|
+
return props.label;
|
|
157
|
+
},
|
|
158
|
+
get children() {
|
|
159
|
+
return ssr(_tmpl$3, ssrHydrationKey(), escape(props.label), props.required ? _tmpl$7[0] + ssrHydrationKey() + _tmpl$7[1] : escape(null), ssrAttribute("type", escape(props.type ?? "text", true), false) + ssrAttribute("name", escape(props.name, true), false) + ssrAttribute("value", escape(props.value ?? "", true), false) + ssrAttribute("placeholder", escape(props.placeholder, true), false), ssrAttribute("disabled", props.disabled, true), ssrAttribute("required", props.required, true));
|
|
160
|
+
}
|
|
161
|
+
})), escape(createComponent(Show, {
|
|
162
|
+
get when() {
|
|
163
|
+
return !props.label;
|
|
164
|
+
},
|
|
165
|
+
get children() {
|
|
166
|
+
return ssr(_tmpl$4, ssrHydrationKey(), ssrAttribute("type", escape(props.type ?? "text", true), false) + ssrAttribute("name", escape(props.name, true), false) + ssrAttribute("value", escape(props.value ?? "", true), false) + ssrAttribute("placeholder", escape(props.placeholder, true), false), ssrAttribute("disabled", props.disabled, true), ssrAttribute("required", props.required, true));
|
|
167
|
+
}
|
|
168
|
+
})), escape(createComponent(Show, {
|
|
169
|
+
get when() {
|
|
170
|
+
return props.error;
|
|
171
|
+
},
|
|
172
|
+
get children() {
|
|
173
|
+
return ssr(_tmpl$5, ssrHydrationKey(), escape(props.error));
|
|
174
|
+
}
|
|
175
|
+
})));
|
|
153
176
|
}
|
|
154
177
|
function Select(props) {
|
|
155
178
|
const options = props.options;
|
|
156
|
-
return (()
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
_v$13 !== _p$.t && (_el$1.disabled = _p$.t = _v$13);
|
|
192
|
-
return _p$;
|
|
193
|
-
}, {
|
|
194
|
-
e: void 0,
|
|
195
|
-
t: void 0
|
|
196
|
-
});
|
|
197
|
-
effect(() => _el$1.value = props.value ?? "");
|
|
198
|
-
return _el$0;
|
|
199
|
-
}
|
|
200
|
-
}), null);
|
|
201
|
-
insert(_el$9, createComponent(Show, {
|
|
202
|
-
get when() {
|
|
203
|
-
return !props.label;
|
|
204
|
-
},
|
|
205
|
-
get children() {
|
|
206
|
-
var _el$11 = _tmpl$0();
|
|
207
|
-
_el$11.addEventListener("change", (e) => {
|
|
208
|
-
var _a;
|
|
209
|
-
return (_a = props.onChange) == null ? void 0 : _a.call(props, e.currentTarget.value);
|
|
210
|
-
});
|
|
211
|
-
insert(_el$11, createComponent(Show, {
|
|
212
|
-
get when() {
|
|
213
|
-
return props.placeholder;
|
|
214
|
-
},
|
|
215
|
-
get children() {
|
|
216
|
-
var _el$12 = _tmpl$8();
|
|
217
|
-
insert(_el$12, () => props.placeholder);
|
|
218
|
-
return _el$12;
|
|
219
|
-
}
|
|
220
|
-
}), null);
|
|
221
|
-
insert(_el$11, createComponent(For, {
|
|
222
|
-
each: options,
|
|
223
|
-
children: (option) => (() => {
|
|
224
|
-
var _el$14 = _tmpl$1();
|
|
225
|
-
insert(_el$14, () => option.label);
|
|
226
|
-
effect(() => _el$14.value = option.value);
|
|
227
|
-
return _el$14;
|
|
228
|
-
})()
|
|
229
|
-
}), null);
|
|
230
|
-
effect((_p$) => {
|
|
231
|
-
var _v$14 = props.name, _v$15 = props.disabled;
|
|
232
|
-
_v$14 !== _p$.e && setAttribute(_el$11, "name", _p$.e = _v$14);
|
|
233
|
-
_v$15 !== _p$.t && (_el$11.disabled = _p$.t = _v$15);
|
|
234
|
-
return _p$;
|
|
235
|
-
}, {
|
|
236
|
-
e: void 0,
|
|
237
|
-
t: void 0
|
|
238
|
-
});
|
|
239
|
-
effect(() => _el$11.value = props.value ?? "");
|
|
240
|
-
return _el$11;
|
|
241
|
-
}
|
|
242
|
-
}), null);
|
|
243
|
-
effect(() => className(_el$9, `field ${props.class ?? ""}`.trim()));
|
|
244
|
-
return _el$9;
|
|
245
|
-
})();
|
|
179
|
+
return ssr(_tmpl$1, ssrHydrationKey() + ssrAttribute("class", escape(`field ${props.class ?? ""}`.trim(), true), false), escape(createComponent(Show, {
|
|
180
|
+
get when() {
|
|
181
|
+
return props.label;
|
|
182
|
+
},
|
|
183
|
+
get children() {
|
|
184
|
+
return ssr(_tmpl$9, ssrHydrationKey(), escape(props.label), ssrAttribute("name", escape(props.name, true), false) + ssrAttribute("value", escape(props.value ?? "", true), false), ssrAttribute("disabled", props.disabled, true), escape(createComponent(Show, {
|
|
185
|
+
get when() {
|
|
186
|
+
return props.placeholder;
|
|
187
|
+
},
|
|
188
|
+
get children() {
|
|
189
|
+
return ssr(_tmpl$8, ssrHydrationKey(), escape(props.placeholder));
|
|
190
|
+
}
|
|
191
|
+
})), escape(createComponent(For, {
|
|
192
|
+
each: options,
|
|
193
|
+
children: (option) => ssr(_tmpl$10, ssrHydrationKey() + ssrAttribute("value", escape(option.value, true), false), escape(option.label))
|
|
194
|
+
})));
|
|
195
|
+
}
|
|
196
|
+
})), escape(createComponent(Show, {
|
|
197
|
+
get when() {
|
|
198
|
+
return !props.label;
|
|
199
|
+
},
|
|
200
|
+
get children() {
|
|
201
|
+
return ssr(_tmpl$0, ssrHydrationKey(), ssrAttribute("name", escape(props.name, true), false) + ssrAttribute("value", escape(props.value ?? "", true), false), ssrAttribute("disabled", props.disabled, true), escape(createComponent(Show, {
|
|
202
|
+
get when() {
|
|
203
|
+
return props.placeholder;
|
|
204
|
+
},
|
|
205
|
+
get children() {
|
|
206
|
+
return ssr(_tmpl$8, ssrHydrationKey(), escape(props.placeholder));
|
|
207
|
+
}
|
|
208
|
+
})), escape(createComponent(For, {
|
|
209
|
+
each: options,
|
|
210
|
+
children: (option) => ssr(_tmpl$10, ssrHydrationKey() + ssrAttribute("value", escape(option.value, true), false), escape(option.label))
|
|
211
|
+
})));
|
|
212
|
+
}
|
|
213
|
+
})));
|
|
246
214
|
}
|
|
247
215
|
function Card(props) {
|
|
248
|
-
return (()
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
insert(_el$17, () => props.title);
|
|
257
|
-
return _el$16;
|
|
258
|
-
}
|
|
259
|
-
}), null);
|
|
260
|
-
insert(_el$15, () => props.children, null);
|
|
261
|
-
effect(() => className(_el$15, `card ${props.class ?? ""}`.trim()));
|
|
262
|
-
return _el$15;
|
|
263
|
-
})();
|
|
216
|
+
return ssr(_tmpl$1, ssrHydrationKey() + ssrAttribute("class", escape(`card ${props.class ?? ""}`.trim(), true), false), escape(createComponent(Show, {
|
|
217
|
+
get when() {
|
|
218
|
+
return props.title;
|
|
219
|
+
},
|
|
220
|
+
get children() {
|
|
221
|
+
return ssr(_tmpl$11, ssrHydrationKey(), escape(props.title));
|
|
222
|
+
}
|
|
223
|
+
})), escape(props.children));
|
|
264
224
|
}
|
|
265
225
|
function Badge(props) {
|
|
266
226
|
const variant = props.variant ?? "secondary";
|
|
267
|
-
return (()
|
|
268
|
-
var _el$18 = _tmpl$11();
|
|
269
|
-
className(_el$18, `badge badge-${variant}`);
|
|
270
|
-
insert(_el$18, () => props.children);
|
|
271
|
-
return _el$18;
|
|
272
|
-
})();
|
|
227
|
+
return ssr(_tmpl$12, ssrHydrationKey(), `badge badge-${escape(variant, true)}`, escape(props.children));
|
|
273
228
|
}
|
|
274
229
|
function Table(props) {
|
|
275
230
|
const columns = props.columns;
|
|
@@ -278,7 +233,7 @@ function Table(props) {
|
|
|
278
233
|
return !props.loading;
|
|
279
234
|
},
|
|
280
235
|
get fallback() {
|
|
281
|
-
return _tmpl$
|
|
236
|
+
return ssr(_tmpl$16, ssrHydrationKey());
|
|
282
237
|
},
|
|
283
238
|
get children() {
|
|
284
239
|
return createComponent(Show, {
|
|
@@ -286,52 +241,32 @@ function Table(props) {
|
|
|
286
241
|
return props.data.length > 0;
|
|
287
242
|
},
|
|
288
243
|
get fallback() {
|
|
289
|
-
return (()
|
|
290
|
-
var _el$31 = _tmpl$16();
|
|
291
|
-
insert(_el$31, () => props.emptyMessage ?? "Nenhum registro.");
|
|
292
|
-
return _el$31;
|
|
293
|
-
})();
|
|
244
|
+
return ssr(_tmpl$17, ssrHydrationKey(), escape(props.emptyMessage ?? "Nenhum registro."));
|
|
294
245
|
},
|
|
295
246
|
get children() {
|
|
296
|
-
|
|
297
|
-
insert(_el$28, createComponent(For, {
|
|
247
|
+
return ssr(_tmpl$15, ssrHydrationKey(), escape(createComponent(For, {
|
|
298
248
|
each: columns,
|
|
299
|
-
children: (column) => (()
|
|
300
|
-
|
|
301
|
-
insert(_el$32, () => column.label);
|
|
302
|
-
effect((_$p) => style(_el$32, column.width ? { width: column.width } : void 0, _$p));
|
|
303
|
-
return _el$32;
|
|
304
|
-
})()
|
|
305
|
-
}));
|
|
306
|
-
insert(_el$29, createComponent(For, {
|
|
249
|
+
children: (column) => ssr(_tmpl$18, ssrHydrationKey(), ssrStyle(column.width ? { width: column.width } : void 0), escape(column.label))
|
|
250
|
+
})), escape(createComponent(For, {
|
|
307
251
|
get each() {
|
|
308
252
|
return props.data;
|
|
309
253
|
},
|
|
310
|
-
children: (row) => (()
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
}
|
|
327
|
-
}));
|
|
328
|
-
return _el$34;
|
|
329
|
-
})()
|
|
330
|
-
}));
|
|
331
|
-
return _el$33;
|
|
332
|
-
})()
|
|
333
|
-
}));
|
|
334
|
-
return _el$26;
|
|
254
|
+
children: (row) => ssr(_tmpl$19, ssrHydrationKey(), escape(createComponent(For, {
|
|
255
|
+
each: columns,
|
|
256
|
+
children: (column) => ssr(_tmpl$20, ssrHydrationKey(), escape(createComponent(Show, {
|
|
257
|
+
get when() {
|
|
258
|
+
return column.render;
|
|
259
|
+
},
|
|
260
|
+
get fallback() {
|
|
261
|
+
return String(row[column.key] ?? "");
|
|
262
|
+
},
|
|
263
|
+
get children() {
|
|
264
|
+
var _a;
|
|
265
|
+
return (_a = column.render) == null ? void 0 : _a.call(column, row[column.key], row);
|
|
266
|
+
}
|
|
267
|
+
})))
|
|
268
|
+
})))
|
|
269
|
+
})));
|
|
335
270
|
}
|
|
336
271
|
});
|
|
337
272
|
}
|
|
@@ -344,27 +279,10 @@ function Pagination(props) {
|
|
|
344
279
|
return totalPages() > 1;
|
|
345
280
|
},
|
|
346
281
|
get children() {
|
|
347
|
-
|
|
348
|
-
_el$40.nextSibling;
|
|
349
|
-
var _el$41 = _el$37.nextSibling;
|
|
350
|
-
_el$36.$$click = () => props.onPageChange(props.page - 1);
|
|
351
|
-
insert(_el$37, () => props.page, _el$40);
|
|
352
|
-
insert(_el$37, totalPages, null);
|
|
353
|
-
_el$41.$$click = () => props.onPageChange(props.page + 1);
|
|
354
|
-
effect((_p$) => {
|
|
355
|
-
var _v$16 = props.page <= 1, _v$17 = props.page >= totalPages();
|
|
356
|
-
_v$16 !== _p$.e && (_el$36.disabled = _p$.e = _v$16);
|
|
357
|
-
_v$17 !== _p$.t && (_el$41.disabled = _p$.t = _v$17);
|
|
358
|
-
return _p$;
|
|
359
|
-
}, {
|
|
360
|
-
e: void 0,
|
|
361
|
-
t: void 0
|
|
362
|
-
});
|
|
363
|
-
return _el$35;
|
|
282
|
+
return ssr(_tmpl$21, ssrHydrationKey(), ssrAttribute("disabled", props.page <= 1, true), escape(props.page), escape(totalPages()), ssrAttribute("disabled", props.page >= totalPages(), true));
|
|
364
283
|
}
|
|
365
284
|
});
|
|
366
285
|
}
|
|
367
|
-
delegateEvents(["click", "input"]);
|
|
368
286
|
//#endregion
|
|
369
287
|
//#region src/ext/slots.tsx
|
|
370
288
|
var _tmpl$$1 = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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 "./
|
|
1
|
+
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_Bpur473M.mjs";
|
|
2
2
|
import { t as apiClient } from "./api_i8T-MI6L.mjs";
|
|
3
3
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey, ssrStyleProperty } from "solid-js/web";
|
|
4
4
|
//#region src/components/media/MediaLibrary.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 "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_Bpur473M.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 { 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 "./
|
|
5
|
-
import { t as ContentEditor } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_Bpur473M.mjs";
|
|
5
|
+
import { t as ContentEditor } from "./ContentEditor_DtKBw5Nv.mjs";
|
|
6
6
|
//#region src/pages/content/edit.astro
|
|
7
7
|
var edit_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
default: () => $$Edit,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { 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 { c as Select, f as createSignal, i as Card, l as Show2, o as Input, p as onMount, r as Button, t as $$DashboardLayout } from "./
|
|
4
|
+
import { c as Select, f as createSignal, i as Card, l as Show2, o as Input, p as onMount, r as Button, t as $$DashboardLayout } from "./DashboardLayout_Bpur473M.mjs";
|
|
5
5
|
import { t as apiClient } from "./api_i8T-MI6L.mjs";
|
|
6
6
|
import { createComponent, escape, memo, ssr, ssrHydrationKey } from "solid-js/web";
|
|
7
7
|
//#region src/components/apps/settings/GeneralSettings.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { 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 { t as $$DashboardLayout } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_Bpur473M.mjs";
|
|
5
5
|
import { t as apiClient } from "./api_i8T-MI6L.mjs";
|
|
6
6
|
import { createComponent, escape, ssr, ssrHydrationKey } from "solid-js/web";
|
|
7
7
|
import { For, Show, createSignal, onMount } from "solid-js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { 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 "./
|
|
5
|
-
import { t as MediaLibrary } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_Bpur473M.mjs";
|
|
5
|
+
import { t as MediaLibrary } from "./MediaLibrary_BDyBahZ3.mjs";
|
|
6
6
|
//#region src/pages/media/index.astro
|
|
7
7
|
var media_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
default: () => $$Index,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { 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 { c as Select, f as createSignal, i as Card, l as Show2, n as Badge, o as Input, p as onMount, r as Button, s as Pagination, t as $$DashboardLayout, u as Table } from "./
|
|
4
|
+
import { c as Select, f as createSignal, i as Card, l as Show2, n as Badge, o as Input, p as onMount, r as Button, s as Pagination, t as $$DashboardLayout, u as Table } from "./DashboardLayout_Bpur473M.mjs";
|
|
5
5
|
import { t as apiClient } from "./api_i8T-MI6L.mjs";
|
|
6
6
|
import { createComponent, escape, ssr, ssrHydrationKey } from "solid-js/web";
|
|
7
7
|
//#region src/components/content/ContentList.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_Bpur473M.mjs";
|
|
5
5
|
//#region src/pages/settings/index.astro
|
|
6
6
|
var settings_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
default: () => $$Index,
|