@webx-ui/module-blog 0.8.2 → 0.8.4
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/{ArticleEditorPage-DViFCNvm.js → ArticleEditorPage-Bkb5YrLy.js} +2 -2
- package/dist/{ArticleEditorPage-DViFCNvm.js.map → ArticleEditorPage-Bkb5YrLy.js.map} +1 -1
- package/dist/{ArticlesPage-CI-Nwhpy.js → ArticlesPage-BnHi8gF0.js} +173 -154
- package/dist/ArticlesPage-BnHi8gF0.js.map +1 -0
- package/dist/{AuthorsPage-BN6sRqyE.js → AuthorsPage-DSLsX44M.js} +2 -2
- package/dist/{AuthorsPage-BN6sRqyE.js.map → AuthorsPage-DSLsX44M.js.map} +1 -1
- package/dist/{TagsPage-rFfpCqPs.js → TagsPage-BnLVnx5a.js} +2 -2
- package/dist/{TagsPage-rFfpCqPs.js.map → TagsPage-BnLVnx5a.js.map} +1 -1
- package/dist/{index-DqN5h0Ej.js → index-ChbP89HC.js} +418 -417
- package/dist/index-ChbP89HC.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/dist/ArticlesPage-CI-Nwhpy.js.map +0 -1
- package/dist/index-DqN5h0Ej.js.map +0 -1
|
@@ -1,81 +1,91 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRoute as
|
|
3
|
-
import { useAdmin as
|
|
4
|
-
import { useElementWidth as
|
|
5
|
-
import { c as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as _e, useTemplateRef as xe, ref as J, computed as o, watch as ke, openBlock as c, createElementBlock as K, createVNode as s, unref as a, withCtx as i, createBlock as d, createTextVNode as v, toDisplayString as b, createCommentVNode as f, createElementVNode as h, Fragment as we, renderList as qe, normalizeClass as We } from "vue";
|
|
2
|
+
import { useRoute as ze, useRouter as $e } from "vue-router";
|
|
3
|
+
import { useAdmin as Ce, useTranslate as Q, useErrorText as Te, rowMenuWidth as Be, WxListScreen as Se, WxRowMenu as X, WxDate as Y, WxAddressNote as Ae, WxPreviewThumb as Ne, WxFilterChips as Ve } from "@webx-ui/module-admin";
|
|
4
|
+
import { useElementWidth as Re, createModal as Ee, WxTable as Fe, WxEntityCard as Me, WxBadge as z, WxIcon as T, WxText as Z, WxTooltip as Pe, WxFormItem as E, WxSelect as F, WxButton as Ue, toast as B, confirm as De } from "@webx-ui/core";
|
|
5
|
+
import { c as Ie, u as Oe, _ as Le, a as je } from "./index-ChbP89HC.js";
|
|
6
|
+
const Ge = ["src"], He = { class: "wx-articles__name" }, Je = { class: "wx-articles__name-text" }, Ke = { class: "wx-articles__title" }, Qe = { class: "wx-articles__address" }, Xe = { class: "wx-articles__chips" }, Ye = { class: "wx-articles__state" }, ee = 640, Ze = /* @__PURE__ */ _e({
|
|
7
7
|
__name: "ArticlesPage",
|
|
8
8
|
props: {
|
|
9
9
|
base: { default: "/blog" }
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
() =>
|
|
16
|
-
), x =
|
|
11
|
+
setup(le) {
|
|
12
|
+
const te = le, S = Ce(), m = Ie(S), r = ze(), y = $e();
|
|
13
|
+
Oe();
|
|
14
|
+
const t = Q("webx-blog"), M = Q("webx-admin"), P = Te(), U = xe("root"), D = Re(U), $ = J(null), A = J(!0), ae = Ee(Le), I = o(() => S.can("blog.articles.manage")), O = o(
|
|
15
|
+
() => S.state.manifest?.modules.find((e) => e.id === "articles")?.title ?? t("module.articles")
|
|
16
|
+
), x = o({
|
|
17
17
|
get: () => typeof r.query.view == "string" ? r.query.view : "",
|
|
18
18
|
set: (e) => {
|
|
19
19
|
y.replace({
|
|
20
20
|
query: { ...r.query, view: e === "" ? void 0 : String(e), page: void 0 }
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
}), p =
|
|
23
|
+
}), p = o(() => x.value === "trashed"), u = o(() => ({
|
|
24
24
|
q: typeof r.query.q == "string" ? r.query.q : "",
|
|
25
25
|
rubric: N(r.query.rubric),
|
|
26
26
|
tag: N(r.query.tag),
|
|
27
27
|
author: N(r.query.author),
|
|
28
28
|
sort: typeof r.query.sort == "string" ? r.query.sort : null,
|
|
29
29
|
page: Number(r.query.page ?? 1) || 1
|
|
30
|
-
}))
|
|
30
|
+
})), L = o(() => ($.value?.data ?? []).filter((e) => e.cover?.thumb)), ne = o(
|
|
31
|
+
() => L.value.map((e) => ({
|
|
32
|
+
src: e.cover.url ?? e.cover.thumb,
|
|
33
|
+
thumb: e.cover.thumb ?? void 0,
|
|
34
|
+
alt: e.title,
|
|
35
|
+
caption: e.title
|
|
36
|
+
}))
|
|
37
|
+
);
|
|
38
|
+
function ie(e) {
|
|
39
|
+
return L.value.indexOf(e);
|
|
40
|
+
}
|
|
31
41
|
function N(e) {
|
|
32
42
|
return typeof e == "string" && e !== "" && Number(e) || null;
|
|
33
43
|
}
|
|
34
|
-
const
|
|
35
|
-
{ value: "", label:
|
|
36
|
-
{ value: "published", label:
|
|
37
|
-
{ value: "scheduled", label:
|
|
38
|
-
{ value: "draft", label:
|
|
39
|
-
{ value: "unpublished", label:
|
|
40
|
-
{ value: "trashed", label:
|
|
41
|
-
]), g =
|
|
44
|
+
const se = o(() => [
|
|
45
|
+
{ value: "", label: t("panel.view-all") },
|
|
46
|
+
{ value: "published", label: t("panel.view-published") },
|
|
47
|
+
{ value: "scheduled", label: t("panel.view-scheduled") },
|
|
48
|
+
{ value: "draft", label: t("panel.view-draft") },
|
|
49
|
+
{ value: "unpublished", label: t("panel.view-unpublished") },
|
|
50
|
+
{ value: "trashed", label: t("panel.bin"), icon: "trash" }
|
|
51
|
+
]), g = o(() => $.value?.filters ?? { rubrics: [], tags: [], authors: [] }), re = o(() => D.value > 0 && D.value < ee), ue = o(() => re.value ? [{ key: "card", label: "" }] : [
|
|
42
52
|
{ key: "cover", label: "", width: 68 },
|
|
43
53
|
/* The one that takes what the others leave, and the only one without a number. */
|
|
44
|
-
{ key: "title", label:
|
|
45
|
-
{ key: "rubrics", label:
|
|
46
|
-
{ key: "author", label:
|
|
54
|
+
{ key: "title", label: t("panel.column-title"), minWidth: 220 },
|
|
55
|
+
{ key: "rubrics", label: t("panel.column-rubrics"), width: 190, hideBelow: 1e3 },
|
|
56
|
+
{ key: "author", label: t("panel.column-author"), width: 160, hideBelow: 1200 },
|
|
47
57
|
{
|
|
48
58
|
key: "date",
|
|
49
|
-
label: p.value ?
|
|
59
|
+
label: p.value ? t("panel.column-deleted") : t("panel.column-date"),
|
|
50
60
|
width: 120,
|
|
51
61
|
hideBelow: 700,
|
|
52
62
|
// "today at 16:22" is three words the table will break over two lines given half a
|
|
53
63
|
// chance, and a date read down a column has to be one line to be read at all.
|
|
54
64
|
cellClass: "wx-articles__when"
|
|
55
65
|
},
|
|
56
|
-
{ key: "status", label:
|
|
57
|
-
{ key: "actions", label: "", width:
|
|
58
|
-
]),
|
|
59
|
-
const e = [], n = g.value.rubrics.find((
|
|
66
|
+
{ key: "status", label: t("panel.column-status"), width: 170 },
|
|
67
|
+
{ key: "actions", label: "", width: Be, align: "right" }
|
|
68
|
+
]), oe = o(() => u.value.q !== "" ? t("panel.empty-search") : p.value ? t("panel.empty-bin") : t("panel.empty")), V = o(() => {
|
|
69
|
+
const e = [], n = g.value.rubrics.find((W) => W.id === u.value.rubric);
|
|
60
70
|
n && e.push({
|
|
61
71
|
key: "rubric",
|
|
62
|
-
label: `${
|
|
72
|
+
label: `${t("panel.filter-rubric")}: ${n.title}`,
|
|
63
73
|
clear: () => _("rubric", void 0)
|
|
64
74
|
});
|
|
65
|
-
const l = g.value.tags.find((
|
|
75
|
+
const l = g.value.tags.find((W) => W.id === u.value.tag);
|
|
66
76
|
l && e.push({
|
|
67
77
|
key: "tag",
|
|
68
|
-
label: `${
|
|
78
|
+
label: `${t("panel.filter-tag")}: ${l.title}`,
|
|
69
79
|
clear: () => _("tag", void 0)
|
|
70
80
|
});
|
|
71
|
-
const q = g.value.authors.find((
|
|
81
|
+
const q = g.value.authors.find((W) => W.id === u.value.author);
|
|
72
82
|
return q && e.push({
|
|
73
83
|
key: "author",
|
|
74
|
-
label: `${
|
|
84
|
+
label: `${t("panel.filter-author")}: ${q.title}`,
|
|
75
85
|
clear: () => _("author", void 0)
|
|
76
86
|
}), e;
|
|
77
87
|
});
|
|
78
|
-
function
|
|
88
|
+
function ce() {
|
|
79
89
|
y.replace({
|
|
80
90
|
query: {
|
|
81
91
|
...r.query,
|
|
@@ -89,7 +99,7 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
|
|
|
89
99
|
async function k(e) {
|
|
90
100
|
A.value = !0;
|
|
91
101
|
try {
|
|
92
|
-
|
|
102
|
+
$.value = await m.articles({
|
|
93
103
|
q: e?.search ?? u.value.q,
|
|
94
104
|
status: p.value ? "" : x.value,
|
|
95
105
|
trashed: p.value,
|
|
@@ -101,12 +111,12 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
|
|
|
101
111
|
per_page: e?.perPage
|
|
102
112
|
});
|
|
103
113
|
} catch (n) {
|
|
104
|
-
B.danger(
|
|
114
|
+
B.danger(P(n));
|
|
105
115
|
} finally {
|
|
106
116
|
A.value = !1;
|
|
107
117
|
}
|
|
108
118
|
}
|
|
109
|
-
function
|
|
119
|
+
function de(e) {
|
|
110
120
|
const n = {
|
|
111
121
|
...r.query,
|
|
112
122
|
q: e.search === "" ? void 0 : e.search,
|
|
@@ -124,118 +134,118 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
|
|
|
124
134
|
}
|
|
125
135
|
});
|
|
126
136
|
}
|
|
127
|
-
|
|
137
|
+
ke(
|
|
128
138
|
[x, () => u.value.rubric, () => u.value.tag, () => u.value.author],
|
|
129
139
|
() => {
|
|
130
140
|
k();
|
|
131
141
|
}
|
|
132
142
|
), k();
|
|
133
143
|
function R(e) {
|
|
134
|
-
const n = `${
|
|
144
|
+
const n = `${te.base}/articles/${e.id}`;
|
|
135
145
|
y.resolve(n).matched.length > 0 && y.push({ path: n, query: { ...r.query } });
|
|
136
146
|
}
|
|
137
|
-
async function
|
|
147
|
+
async function pe() {
|
|
138
148
|
const e = await ae({});
|
|
139
149
|
e && (await k(), R(e));
|
|
140
150
|
}
|
|
141
151
|
function j(e) {
|
|
142
|
-
if (!
|
|
152
|
+
if (!I.value) return [];
|
|
143
153
|
if (p.value)
|
|
144
154
|
return [
|
|
145
155
|
{
|
|
146
156
|
key: "restore",
|
|
147
157
|
icon: "refresh",
|
|
148
|
-
label:
|
|
158
|
+
label: t("panel.restore"),
|
|
149
159
|
run: () => {
|
|
150
|
-
|
|
160
|
+
me(e);
|
|
151
161
|
}
|
|
152
162
|
}
|
|
153
163
|
];
|
|
154
164
|
const n = [
|
|
155
|
-
{ key: "open", icon: "edit", label:
|
|
165
|
+
{ key: "open", icon: "edit", label: t("panel.open"), run: () => R(e) }
|
|
156
166
|
];
|
|
157
167
|
return e.url && e.status !== "draft" && n.push({
|
|
158
168
|
key: "site",
|
|
159
169
|
icon: "external-link",
|
|
160
|
-
label:
|
|
170
|
+
label: t("panel.open-on-site"),
|
|
161
171
|
href: e.url
|
|
162
172
|
}), e.path !== null && n.push({
|
|
163
173
|
key: "copy",
|
|
164
174
|
icon: "copy",
|
|
165
|
-
label:
|
|
175
|
+
label: t("panel.copy-address"),
|
|
166
176
|
run: () => {
|
|
167
|
-
|
|
177
|
+
ye(e);
|
|
168
178
|
}
|
|
169
179
|
}), n.push({
|
|
170
180
|
key: "pin",
|
|
171
181
|
icon: "star",
|
|
172
|
-
label: e.pinned ?
|
|
182
|
+
label: e.pinned ? t("panel.unpin") : t("panel.pin"),
|
|
173
183
|
run: () => {
|
|
174
|
-
|
|
184
|
+
he(e, !e.pinned);
|
|
175
185
|
}
|
|
176
186
|
}), n.push(
|
|
177
187
|
e.status === "published" || e.status === "modified" || e.status === "scheduled" ? {
|
|
178
188
|
key: "unpublish",
|
|
179
189
|
icon: "eye-off",
|
|
180
|
-
label:
|
|
190
|
+
label: t("panel.unpublish"),
|
|
181
191
|
run: () => {
|
|
182
|
-
|
|
192
|
+
be(e);
|
|
183
193
|
}
|
|
184
194
|
} : {
|
|
185
195
|
key: "publish",
|
|
186
196
|
icon: "upload",
|
|
187
|
-
label:
|
|
197
|
+
label: t("panel.publish"),
|
|
188
198
|
run: () => {
|
|
189
|
-
|
|
199
|
+
ve(e);
|
|
190
200
|
}
|
|
191
201
|
}
|
|
192
202
|
), n.push({
|
|
193
203
|
key: "delete",
|
|
194
204
|
icon: "trash",
|
|
195
|
-
label:
|
|
205
|
+
label: t("panel.delete"),
|
|
196
206
|
danger: !0,
|
|
197
207
|
run: () => {
|
|
198
|
-
|
|
208
|
+
fe(e);
|
|
199
209
|
}
|
|
200
210
|
}), n;
|
|
201
211
|
}
|
|
202
|
-
async function
|
|
203
|
-
await w(() => m.publish(e.id),
|
|
212
|
+
async function ve(e) {
|
|
213
|
+
await w(() => m.publish(e.id), t("panel.published"));
|
|
204
214
|
}
|
|
205
|
-
async function
|
|
206
|
-
await w(() => m.unpublish(e.id),
|
|
215
|
+
async function be(e) {
|
|
216
|
+
await w(() => m.unpublish(e.id), t("panel.unpublished-done"));
|
|
207
217
|
}
|
|
208
|
-
async function
|
|
218
|
+
async function he(e, n) {
|
|
209
219
|
await w(
|
|
210
220
|
() => m.save(e.id, { values: { pinned: n }, revision: e.revision }),
|
|
211
|
-
|
|
221
|
+
t(n ? "panel.pinned-done" : "panel.unpinned")
|
|
212
222
|
);
|
|
213
223
|
}
|
|
214
|
-
async function
|
|
215
|
-
await
|
|
216
|
-
title:
|
|
217
|
-
message:
|
|
218
|
-
confirmText:
|
|
219
|
-
cancelText:
|
|
224
|
+
async function fe(e) {
|
|
225
|
+
await De({
|
|
226
|
+
title: t("panel.delete-title", { title: e.title }),
|
|
227
|
+
message: t("panel.delete-text"),
|
|
228
|
+
confirmText: t("panel.delete"),
|
|
229
|
+
cancelText: t("panel.cancel"),
|
|
220
230
|
tone: "danger"
|
|
221
|
-
}) && await w(() => m.remove(e.id),
|
|
231
|
+
}) && await w(() => m.remove(e.id), t("panel.deleted"));
|
|
222
232
|
}
|
|
223
|
-
async function
|
|
224
|
-
await w(() => m.restore(e.id),
|
|
233
|
+
async function me(e) {
|
|
234
|
+
await w(() => m.restore(e.id), t("panel.restored"));
|
|
225
235
|
}
|
|
226
236
|
async function w(e, n) {
|
|
227
237
|
try {
|
|
228
238
|
await e(), B.success(n);
|
|
229
239
|
} catch (l) {
|
|
230
|
-
B.danger(
|
|
240
|
+
B.danger(P(l));
|
|
231
241
|
} finally {
|
|
232
242
|
await k();
|
|
233
243
|
}
|
|
234
244
|
}
|
|
235
|
-
async function
|
|
245
|
+
async function ye(e) {
|
|
236
246
|
if (e.url)
|
|
237
247
|
try {
|
|
238
|
-
await navigator.clipboard.writeText(e.url), B.success(
|
|
248
|
+
await navigator.clipboard.writeText(e.url), B.success(t("panel.address-copied"));
|
|
239
249
|
} catch {
|
|
240
250
|
}
|
|
241
251
|
}
|
|
@@ -243,32 +253,32 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
|
|
|
243
253
|
return e === "published" || e === "modified" ? "success" : e === "scheduled" ? "warning" : "default";
|
|
244
254
|
}
|
|
245
255
|
function H(e) {
|
|
246
|
-
return p.value ? "—" : e.path === null ?
|
|
256
|
+
return p.value ? "—" : e.path === null ? t("panel.no-address") : `/${e.path}`;
|
|
247
257
|
}
|
|
248
|
-
function
|
|
258
|
+
function C(e) {
|
|
249
259
|
return p.value ? e.deleted_at : e.published_at;
|
|
250
260
|
}
|
|
251
|
-
const
|
|
252
|
-
() =>
|
|
253
|
-
|
|
261
|
+
const ge = o(
|
|
262
|
+
() => I.value ? [{ key: "new", label: t("panel.new"), icon: "plus", primary: !0, run: () => {
|
|
263
|
+
pe();
|
|
254
264
|
} }] : []
|
|
255
265
|
);
|
|
256
|
-
return (e, n) => (
|
|
266
|
+
return (e, n) => (c(), K("div", {
|
|
257
267
|
ref_key: "root",
|
|
258
|
-
ref:
|
|
268
|
+
ref: U,
|
|
259
269
|
class: "wx-articles"
|
|
260
270
|
}, [
|
|
261
|
-
s(
|
|
271
|
+
s(a(Se), {
|
|
262
272
|
view: x.value,
|
|
263
273
|
"onUpdate:view": n[3] || (n[3] = (l) => x.value = l),
|
|
264
274
|
title: O.value,
|
|
265
|
-
views:
|
|
266
|
-
actions:
|
|
275
|
+
views: se.value,
|
|
276
|
+
actions: ge.value
|
|
267
277
|
}, {
|
|
268
278
|
default: i(() => [
|
|
269
|
-
s(
|
|
270
|
-
data:
|
|
271
|
-
columns:
|
|
279
|
+
s(a(Fe), {
|
|
280
|
+
data: $.value,
|
|
281
|
+
columns: ue.value,
|
|
272
282
|
"row-key": "id",
|
|
273
283
|
searchable: "",
|
|
274
284
|
clickable: !p.value,
|
|
@@ -276,24 +286,24 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
|
|
|
276
286
|
flush: "",
|
|
277
287
|
loading: A.value,
|
|
278
288
|
layout: "fixed",
|
|
279
|
-
"cards-below":
|
|
289
|
+
"cards-below": ee,
|
|
280
290
|
"filters-count": V.value.length,
|
|
281
|
-
"filters-label":
|
|
282
|
-
"search-placeholder": t
|
|
283
|
-
"empty-text":
|
|
291
|
+
"filters-label": a(M)("filters.title"),
|
|
292
|
+
"search-placeholder": a(t)("panel.search"),
|
|
293
|
+
"empty-text": oe.value,
|
|
284
294
|
"aria-label": O.value,
|
|
285
295
|
onRowClick: R,
|
|
286
|
-
onStateChange:
|
|
296
|
+
onStateChange: de
|
|
287
297
|
}, {
|
|
288
298
|
filters: i(() => [
|
|
289
|
-
s(
|
|
290
|
-
label: t
|
|
299
|
+
s(a(E), {
|
|
300
|
+
label: a(t)("panel.filter-rubric")
|
|
291
301
|
}, {
|
|
292
302
|
default: i(() => [
|
|
293
|
-
s(
|
|
303
|
+
s(a(F), {
|
|
294
304
|
"model-value": u.value.rubric,
|
|
295
305
|
options: g.value.rubrics.map((l) => ({ value: l.id, label: l.title })),
|
|
296
|
-
placeholder: t
|
|
306
|
+
placeholder: a(t)("panel.any-rubric"),
|
|
297
307
|
clearable: "",
|
|
298
308
|
size: "sm",
|
|
299
309
|
"onUpdate:modelValue": n[0] || (n[0] = (l) => _("rubric", l))
|
|
@@ -301,14 +311,14 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
|
|
|
301
311
|
]),
|
|
302
312
|
_: 1
|
|
303
313
|
}, 8, ["label"]),
|
|
304
|
-
s(
|
|
305
|
-
label: t
|
|
314
|
+
s(a(E), {
|
|
315
|
+
label: a(t)("panel.filter-tag")
|
|
306
316
|
}, {
|
|
307
317
|
default: i(() => [
|
|
308
|
-
s(
|
|
318
|
+
s(a(F), {
|
|
309
319
|
"model-value": u.value.tag,
|
|
310
320
|
options: g.value.tags.map((l) => ({ value: l.id, label: l.title })),
|
|
311
|
-
placeholder: t
|
|
321
|
+
placeholder: a(t)("panel.any-tag"),
|
|
312
322
|
clearable: "",
|
|
313
323
|
filterable: "",
|
|
314
324
|
size: "sm",
|
|
@@ -317,14 +327,14 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
|
|
|
317
327
|
]),
|
|
318
328
|
_: 1
|
|
319
329
|
}, 8, ["label"]),
|
|
320
|
-
s(
|
|
321
|
-
label: t
|
|
330
|
+
s(a(E), {
|
|
331
|
+
label: a(t)("panel.filter-author")
|
|
322
332
|
}, {
|
|
323
333
|
default: i(() => [
|
|
324
|
-
s(
|
|
334
|
+
s(a(F), {
|
|
325
335
|
"model-value": u.value.author,
|
|
326
336
|
options: g.value.authors.map((l) => ({ value: l.id, label: l.title })),
|
|
327
|
-
placeholder: t
|
|
337
|
+
placeholder: a(t)("panel.any-author"),
|
|
328
338
|
clearable: "",
|
|
329
339
|
size: "sm",
|
|
330
340
|
"onUpdate:modelValue": n[2] || (n[2] = (l) => _("author", l))
|
|
@@ -332,35 +342,44 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
|
|
|
332
342
|
]),
|
|
333
343
|
_: 1
|
|
334
344
|
}, 8, ["label"]),
|
|
335
|
-
V.value.length > 0 ? (
|
|
345
|
+
V.value.length > 0 ? (c(), d(a(Ue), {
|
|
336
346
|
key: 0,
|
|
337
347
|
variant: "text",
|
|
338
348
|
size: "sm",
|
|
339
349
|
block: "",
|
|
340
|
-
onClick:
|
|
350
|
+
onClick: ce
|
|
341
351
|
}, {
|
|
342
352
|
icon: i(() => [
|
|
343
|
-
s(
|
|
353
|
+
s(a(T), { name: "close" })
|
|
344
354
|
]),
|
|
345
355
|
default: i(() => [
|
|
346
|
-
v(" " + b(
|
|
356
|
+
v(" " + b(a(M)("filters.reset")), 1)
|
|
347
357
|
]),
|
|
348
358
|
_: 1
|
|
349
|
-
})) :
|
|
359
|
+
})) : f("", !0)
|
|
350
360
|
]),
|
|
351
361
|
applied: i(() => [
|
|
352
|
-
s(
|
|
362
|
+
s(a(Ve), { filters: V.value }, null, 8, ["filters"])
|
|
353
363
|
]),
|
|
354
364
|
"cell-cover": i(({ row: l }) => [
|
|
355
|
-
|
|
356
|
-
class:
|
|
365
|
+
h("span", {
|
|
366
|
+
class: We(["wx-articles__cover", { "is-empty": !l.cover }])
|
|
357
367
|
}, [
|
|
358
|
-
l.cover?.thumb ? (
|
|
368
|
+
l.cover?.thumb ? (c(), d(a(Ne), {
|
|
359
369
|
key: 0,
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
},
|
|
370
|
+
fill: "",
|
|
371
|
+
items: ne.value,
|
|
372
|
+
start: ie(l)
|
|
373
|
+
}, {
|
|
374
|
+
default: i(() => [
|
|
375
|
+
h("img", {
|
|
376
|
+
src: l.cover.thumb,
|
|
377
|
+
alt: "",
|
|
378
|
+
loading: "lazy"
|
|
379
|
+
}, null, 8, Ge)
|
|
380
|
+
]),
|
|
381
|
+
_: 2
|
|
382
|
+
}, 1032, ["items", "start"])) : (c(), d(a(T), {
|
|
364
383
|
key: 1,
|
|
365
384
|
name: "image",
|
|
366
385
|
size: "sm"
|
|
@@ -368,25 +387,25 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
|
|
|
368
387
|
], 2)
|
|
369
388
|
]),
|
|
370
389
|
"cell-title": i(({ row: l }) => [
|
|
371
|
-
|
|
372
|
-
l.pinned ? (
|
|
390
|
+
h("div", He, [
|
|
391
|
+
l.pinned ? (c(), d(a(Pe), {
|
|
373
392
|
key: 0,
|
|
374
|
-
content: t
|
|
393
|
+
content: a(t)("panel.pinned")
|
|
375
394
|
}, {
|
|
376
395
|
default: i(() => [
|
|
377
|
-
s(
|
|
396
|
+
s(a(T), {
|
|
378
397
|
class: "wx-articles__pin",
|
|
379
398
|
name: "star",
|
|
380
399
|
size: "sm"
|
|
381
400
|
})
|
|
382
401
|
]),
|
|
383
402
|
_: 1
|
|
384
|
-
}, 8, ["content"])) :
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
403
|
+
}, 8, ["content"])) : f("", !0),
|
|
404
|
+
h("div", Je, [
|
|
405
|
+
h("span", Ke, b(l.title), 1),
|
|
406
|
+
h("span", Qe, [
|
|
388
407
|
v(b(H(l)) + " ", 1),
|
|
389
|
-
p.value ?
|
|
408
|
+
p.value ? f("", !0) : (c(), d(a(Ae), {
|
|
390
409
|
key: 0,
|
|
391
410
|
locale: l.address_locale
|
|
392
411
|
}, null, 8, ["locale"]))
|
|
@@ -395,8 +414,8 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
|
|
|
395
414
|
])
|
|
396
415
|
]),
|
|
397
416
|
"cell-rubrics": i(({ row: l }) => [
|
|
398
|
-
|
|
399
|
-
(
|
|
417
|
+
h("span", Xe, [
|
|
418
|
+
(c(!0), K(we, null, qe(l.rubrics, (q) => (c(), d(a(z), {
|
|
400
419
|
key: q.id,
|
|
401
420
|
size: "sm",
|
|
402
421
|
round: ""
|
|
@@ -409,7 +428,7 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
|
|
|
409
428
|
])
|
|
410
429
|
]),
|
|
411
430
|
"cell-author": i(({ row: l }) => [
|
|
412
|
-
s(
|
|
431
|
+
s(a(Z), {
|
|
413
432
|
size: "sm",
|
|
414
433
|
tone: "muted",
|
|
415
434
|
truncate: ""
|
|
@@ -421,11 +440,11 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
|
|
|
421
440
|
}, 1024)
|
|
422
441
|
]),
|
|
423
442
|
"cell-date": i(({ row: l }) => [
|
|
424
|
-
|
|
443
|
+
C(l) ? (c(), d(a(Y), {
|
|
425
444
|
key: 0,
|
|
426
|
-
value:
|
|
445
|
+
value: C(l),
|
|
427
446
|
compact: ""
|
|
428
|
-
}, null, 8, ["value"])) : (
|
|
447
|
+
}, null, 8, ["value"])) : (c(), d(a(Z), {
|
|
429
448
|
key: 1,
|
|
430
449
|
size: "sm",
|
|
431
450
|
tone: "muted"
|
|
@@ -437,32 +456,32 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
|
|
|
437
456
|
}))
|
|
438
457
|
]),
|
|
439
458
|
"cell-status": i(({ row: l }) => [
|
|
440
|
-
|
|
441
|
-
s(
|
|
459
|
+
h("span", Ye, [
|
|
460
|
+
s(a(z), {
|
|
442
461
|
type: G(l.status),
|
|
443
462
|
dot: "",
|
|
444
463
|
size: "sm"
|
|
445
464
|
}, {
|
|
446
465
|
default: i(() => [
|
|
447
|
-
v(b(t
|
|
466
|
+
v(b(a(t)(`panel.status-${l.status}`)), 1)
|
|
448
467
|
]),
|
|
449
468
|
_: 2
|
|
450
469
|
}, 1032, ["type"]),
|
|
451
|
-
l.status === "modified" ? (
|
|
470
|
+
l.status === "modified" ? (c(), d(a(z), {
|
|
452
471
|
key: 0,
|
|
453
472
|
type: "primary",
|
|
454
473
|
size: "sm",
|
|
455
474
|
round: ""
|
|
456
475
|
}, {
|
|
457
476
|
default: i(() => [
|
|
458
|
-
v(b(t
|
|
477
|
+
v(b(a(t)("panel.edits")), 1)
|
|
459
478
|
]),
|
|
460
479
|
_: 1
|
|
461
|
-
})) :
|
|
480
|
+
})) : f("", !0)
|
|
462
481
|
])
|
|
463
482
|
]),
|
|
464
483
|
"cell-card": i(({ row: l }) => [
|
|
465
|
-
s(
|
|
484
|
+
s(a(Me), {
|
|
466
485
|
class: "wx-articles__entity",
|
|
467
486
|
variant: "plain",
|
|
468
487
|
title: l.title,
|
|
@@ -472,16 +491,16 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
|
|
|
472
491
|
subtitle: H(l)
|
|
473
492
|
}, {
|
|
474
493
|
title: i(() => [
|
|
475
|
-
l.pinned ? (
|
|
494
|
+
l.pinned ? (c(), d(a(T), {
|
|
476
495
|
key: 0,
|
|
477
496
|
class: "wx-articles__pin",
|
|
478
497
|
name: "star",
|
|
479
498
|
size: "sm"
|
|
480
|
-
})) :
|
|
499
|
+
})) : f("", !0),
|
|
481
500
|
v(" " + b(l.title), 1)
|
|
482
501
|
]),
|
|
483
502
|
meta: i(() => [
|
|
484
|
-
l.rubrics[0] ? (
|
|
503
|
+
l.rubrics[0] ? (c(), d(a(z), {
|
|
485
504
|
key: 0,
|
|
486
505
|
size: "sm",
|
|
487
506
|
round: ""
|
|
@@ -490,33 +509,33 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
|
|
|
490
509
|
v(b(l.rubrics[0].title), 1)
|
|
491
510
|
]),
|
|
492
511
|
_: 2
|
|
493
|
-
}, 1024)) :
|
|
494
|
-
s(
|
|
512
|
+
}, 1024)) : f("", !0),
|
|
513
|
+
s(a(z), {
|
|
495
514
|
type: G(l.status),
|
|
496
515
|
dot: "",
|
|
497
516
|
size: "sm"
|
|
498
517
|
}, {
|
|
499
518
|
default: i(() => [
|
|
500
|
-
v(b(t
|
|
519
|
+
v(b(a(t)(`panel.status-${l.status}`)), 1)
|
|
501
520
|
]),
|
|
502
521
|
_: 2
|
|
503
522
|
}, 1032, ["type"]),
|
|
504
|
-
|
|
523
|
+
C(l) ? (c(), d(a(Y), {
|
|
505
524
|
key: 1,
|
|
506
|
-
value:
|
|
507
|
-
}, null, 8, ["value"])) :
|
|
525
|
+
value: C(l)
|
|
526
|
+
}, null, 8, ["value"])) : f("", !0)
|
|
508
527
|
]),
|
|
509
528
|
_: 2
|
|
510
529
|
}, 1032, ["title", "image", "subtitle"])
|
|
511
530
|
]),
|
|
512
531
|
"card-actions": i(({ row: l }) => [
|
|
513
|
-
s(
|
|
532
|
+
s(a(X), {
|
|
514
533
|
actions: j(l),
|
|
515
534
|
label: l.title
|
|
516
535
|
}, null, 8, ["actions", "label"])
|
|
517
536
|
]),
|
|
518
537
|
"cell-actions": i(({ row: l }) => [
|
|
519
|
-
s(
|
|
538
|
+
s(a(X), {
|
|
520
539
|
actions: j(l),
|
|
521
540
|
label: l.title
|
|
522
541
|
}, null, 8, ["actions", "label"])
|
|
@@ -528,8 +547,8 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
|
|
|
528
547
|
}, 8, ["view", "title", "views", "actions"])
|
|
529
548
|
], 512));
|
|
530
549
|
}
|
|
531
|
-
}),
|
|
550
|
+
}), il = /* @__PURE__ */ je(Ze, [["__scopeId", "data-v-8bd25142"]]);
|
|
532
551
|
export {
|
|
533
|
-
|
|
552
|
+
il as default
|
|
534
553
|
};
|
|
535
|
-
//# sourceMappingURL=ArticlesPage-
|
|
554
|
+
//# sourceMappingURL=ArticlesPage-BnHi8gF0.js.map
|