@pristy/pristy-libvue 3.3.0 → 3.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/{ActivityHistory-CI1xP7Db.js → ActivityHistory-mPCJixsu.js} +48 -45
- package/dist/ActivityHistory-mPCJixsu.js.map +1 -0
- package/dist/{BookmarksComponent-DgA2ADMR.js → BookmarksComponent-xDUbiTVV.js} +2 -2
- package/dist/{BookmarksComponent-DgA2ADMR.js.map → BookmarksComponent-xDUbiTVV.js.map} +1 -1
- package/dist/{ChartWrapper-BCxPIcHH.js → ChartWrapper-BSZ2RaKH.js} +2 -2
- package/dist/{ChartWrapper-BCxPIcHH.js.map → ChartWrapper-BSZ2RaKH.js.map} +1 -1
- package/dist/{DisplayFileInDashboardComponent-CBF18W-f.js → DisplayFileInDashboardComponent-CqHoGf2Q.js} +3 -3
- package/dist/{DisplayFileInDashboardComponent-CBF18W-f.js.map → DisplayFileInDashboardComponent-CqHoGf2Q.js.map} +1 -1
- package/dist/{ExternalApps-CFnt6neF.js → ExternalApps-BK_066QL.js} +2 -2
- package/dist/{ExternalApps-CFnt6neF.js.map → ExternalApps-BK_066QL.js.map} +1 -1
- package/dist/{FavoriteList-FELB7XHj.js → FavoriteList-JUAJUJr4.js} +97 -96
- package/dist/FavoriteList-JUAJUJr4.js.map +1 -0
- package/dist/{MarkdownComponent-C0omNjsC.js → MarkdownComponent-D_fqYWV_.js} +2 -2
- package/dist/{MarkdownComponent-C0omNjsC.js.map → MarkdownComponent-D_fqYWV_.js.map} +1 -1
- package/dist/{PDFComponent-BXU0MgTn.js → PDFComponent-B4yA2RzZ.js} +3 -3
- package/dist/{PDFComponent-BXU0MgTn.js.map → PDFComponent-B4yA2RzZ.js.map} +1 -1
- package/dist/{PdfConfigService-BK231Vb3.js → PdfConfigService-Dv6LG1qD.js} +4 -4
- package/dist/{PdfConfigService-BK231Vb3.js.map → PdfConfigService-Dv6LG1qD.js.map} +1 -1
- package/dist/{PdfToolsComponent-BFp2uZfO.js → PdfToolsComponent-CDWy61FX.js} +3 -3
- package/dist/{PdfToolsComponent-BFp2uZfO.js.map → PdfToolsComponent-CDWy61FX.js.map} +1 -1
- package/dist/{PlanTreePdfService-CPJ8jZR3.js → PlanTreePdfService-DA5BC0I2.js} +2 -2
- package/dist/{PlanTreePdfService-CPJ8jZR3.js.map → PlanTreePdfService-DA5BC0I2.js.map} +1 -1
- package/dist/{SearchInput-C5qkYHw2.js → SearchInput-D-ECPIYd.js} +11 -11
- package/dist/{SearchInput-C5qkYHw2.js.map → SearchInput-D-ECPIYd.js.map} +1 -1
- package/dist/{UnknownBlockType-DjMBzCM_.js → UnknownBlockType-C5JDcmf_.js} +2 -2
- package/dist/{UnknownBlockType-DjMBzCM_.js.map → UnknownBlockType-C5JDcmf_.js.map} +1 -1
- package/dist/components/FolderUpload.vue.d.ts.map +1 -1
- package/dist/components/config/ConfigSplitView.vue.d.ts.map +1 -1
- package/dist/components/dashboard/DashboardAdminPage.vue.d.ts +1 -0
- package/dist/components/dashboard/DashboardAdminPage.vue.d.ts.map +1 -1
- package/dist/components/dashboard/DashboardComponent.vue.d.ts +2 -0
- package/dist/components/dashboard/DashboardComponent.vue.d.ts.map +1 -1
- package/dist/components/dashboard/editor/DashboardEditor.vue.d.ts +1 -0
- package/dist/components/dashboard/editor/DashboardEditor.vue.d.ts.map +1 -1
- package/dist/components/dashboard/widgets/ActivityHistory.vue.d.ts.map +1 -1
- package/dist/components/dashboard/widgets/FavoriteFileList.vue.d.ts.map +1 -1
- package/dist/components/dashboard/widgets/FavoriteFolderList.vue.d.ts +1 -0
- package/dist/components/dashboard/widgets/FavoriteFolderList.vue.d.ts.map +1 -1
- package/dist/components/dashboard/widgets/FavoriteList.vue.d.ts +1 -0
- package/dist/components/dashboard/widgets/FavoriteList.vue.d.ts.map +1 -1
- package/dist/components/layouts/AppSwitcher.vue.d.ts +4 -4
- package/dist/components/layouts/AppSwitcher.vue.d.ts.map +1 -1
- package/dist/components/popup/ImportPopupWithWorker.vue.d.ts +23 -85
- package/dist/components/popup/ImportPopupWithWorker.vue.d.ts.map +1 -1
- package/dist/components/users/MemberList.vue.d.ts.map +1 -1
- package/dist/composables/collabProtocol.d.ts +25 -0
- package/dist/composables/collabProtocol.d.ts.map +1 -1
- package/dist/composables/useCollabEditor.d.ts.map +1 -1
- package/dist/{dracula-CXpQbpE5.js → dracula-BbtD8yvj.js} +2 -2
- package/dist/{dracula-CXpQbpE5.js.map → dracula-BbtD8yvj.js.map} +1 -1
- package/dist/{github-Bo7UDmtt.js → github-eAHreirM.js} +2 -2
- package/dist/{github-Bo7UDmtt.js.map → github-eAHreirM.js.map} +1 -1
- package/dist/i18n/index.d.ts +14 -0
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/{index-Cd66MFFZ.js → index-Cx1jO8jm.js} +9221 -9105
- package/dist/index-Cx1jO8jm.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/{nord-p8TZuhxf.js → nord-DSvqR8Ul.js} +2 -2
- package/dist/{nord-p8TZuhxf.js.map → nord-DSvqR8Ul.js.map} +1 -1
- package/dist/{one-LP50NAeS.js → one-BnndR5mM.js} +2 -2
- package/dist/{one-LP50NAeS.js.map → one-BnndR5mM.js.map} +1 -1
- package/dist/pristy-libvue.css +1 -1
- package/dist/pristy-libvue.es.js +272 -270
- package/dist/pristy-libvue.umd.js +34 -34
- package/dist/pristy-libvue.umd.js.map +1 -1
- package/dist/services/AppSwitcherService.d.ts +13 -0
- package/dist/services/AppSwitcherService.d.ts.map +1 -1
- package/dist/services/UploadSelectionService.d.ts +46 -0
- package/dist/services/UploadSelectionService.d.ts.map +1 -0
- package/dist/{solarized-D1qFMWfM.js → solarized-BdT-Wbvz.js} +2 -2
- package/dist/{solarized-D1qFMWfM.js.map → solarized-BdT-Wbvz.js.map} +1 -1
- package/dist/stores/config.d.ts +12 -0
- package/dist/stores/config.d.ts.map +1 -1
- package/dist/stores/navigation.d.ts +2 -0
- package/dist/stores/navigation.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/ActivityHistory-CI1xP7Db.js.map +0 -1
- package/dist/FavoriteList-FELB7XHj.js.map +0 -1
- package/dist/index-Cd66MFFZ.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as m, l as T, m as C, k as F, n as S, w as I } from "./index-Cx1jO8jm.js";
|
|
2
2
|
import { mapState as g } from "pinia";
|
|
3
3
|
import y from "primevue/tooltip";
|
|
4
|
-
import { resolveDirective as
|
|
5
|
-
const
|
|
4
|
+
import { resolveDirective as b, openBlock as s, createElementBlock as o, Fragment as k, renderList as E, createElementVNode as a, normalizeClass as w, withDirectives as f, createTextVNode as $, toDisplayString as n, createCommentVNode as p, resolveComponent as h, createBlock as _ } from "vue";
|
|
5
|
+
const x = {
|
|
6
6
|
name: "FavoriteFileList",
|
|
7
7
|
directives: {
|
|
8
8
|
tooltip: y
|
|
@@ -29,15 +29,15 @@ const $ = {
|
|
|
29
29
|
computed: {
|
|
30
30
|
...g(S, ["ESPACES_HOST"]),
|
|
31
31
|
favoriteFiles() {
|
|
32
|
-
return this.favorites.filter((e) => !this.favoriteFilter || this.favoriteFilter(e)).map((e) => e.target.file).filter((e) => e != null).filter((e) => this.matchesSite(e)).sort((e,
|
|
32
|
+
return this.favorites.filter((e) => !this.favoriteFilter || this.favoriteFilter(e)).map((e) => e.target.file).filter((e) => e != null).filter((e) => this.matchesSite(e)).sort((e, i) => e.name.localeCompare(i.name));
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
mounted() {
|
|
36
36
|
const e = F();
|
|
37
37
|
e.loadFavorites().then(() => {
|
|
38
38
|
this.favorites = e.fileFavorites;
|
|
39
|
-
}).catch((
|
|
40
|
-
console.error("Error loading favorites:",
|
|
39
|
+
}).catch((i) => {
|
|
40
|
+
console.error("Error loading favorites:", i);
|
|
41
41
|
});
|
|
42
42
|
},
|
|
43
43
|
methods: {
|
|
@@ -50,53 +50,53 @@ const $ = {
|
|
|
50
50
|
return e ? e === "application/pdf" ? "ri-file-pdf-line" : e.includes("word") || e.includes("opendocument.text") || e === "application/rtf" ? "ri-file-word-line" : e.includes("excel") || e.includes("spreadsheet") ? "ri-file-excel-line" : e.includes("powerpoint") || e.includes("presentation") ? "ri-file-ppt-line" : e.startsWith("image/") ? "ri-image-line" : e.startsWith("video/") ? "ri-video-line" : e.startsWith("audio/") ? "ri-music-line" : e.includes("zip") || e.includes("tar") || e.includes("compressed") ? "ri-file-zip-line" : e.startsWith("text/") || e === "application/json" || e === "application/xml" ? "ri-file-text-line" : e === "message/rfc822" ? "ri-mail-line" : "ri-file-line" : "ri-file-line";
|
|
51
51
|
},
|
|
52
52
|
navigateTo(e) {
|
|
53
|
-
const
|
|
53
|
+
const i = T();
|
|
54
54
|
let t = "";
|
|
55
|
-
e.mimeType === "image/vnd.dxf" || e.mimeType === "image/vnd.dwg" || e.mimeType === "message/rfc822" ? t = "pdf" : e.mimeType.startsWith("image/") ? t = "image" : e.mimeType.startsWith("video/") ? t = "video" : e.mimeType.startsWith("text/x-markdown") || e.mimeType.startsWith("text/x-web-markdown") ? t = "md" : e.mimeType.startsWith("text/html") ? t = "html" : e.mimeType.startsWith("text/plain") ? t = "text" : e.mimeType === "application/pdf" ? t = "pdf" : (
|
|
55
|
+
e.mimeType === "image/vnd.dxf" || e.mimeType === "image/vnd.dwg" || e.mimeType === "message/rfc822" ? t = "pdf" : e.mimeType.startsWith("image/") ? t = "image" : e.mimeType.startsWith("video/") ? t = "video" : e.mimeType.startsWith("text/x-markdown") || e.mimeType.startsWith("text/x-web-markdown") ? t = "md" : e.mimeType.startsWith("text/html") ? t = "html" : e.mimeType.startsWith("text/plain") ? t = "text" : e.mimeType === "application/pdf" ? t = "pdf" : e.mimeType === "application/json" ? t = "json" : (i.checkIfExists(e.mimeType, "edit") && (t = "edit"), i.checkIfExists(e.mimeType, "view") && (t = "view"), i.checkIfExists(e.mimeType, "view_comment") && (t = "view_comment")), t || (t = C(e.mimeType) ? "archive" : "pdf"), this.urlResolver ? this.urlResolver(e) : window.open(
|
|
56
56
|
`${this.ESPACES_HOST}/espaces/${t}/${e.id}`,
|
|
57
57
|
"_blank"
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
},
|
|
61
|
+
}, L = {
|
|
62
62
|
key: 0,
|
|
63
63
|
class: "file-grid-container"
|
|
64
|
-
},
|
|
64
|
+
}, R = ["onClick", "aria-label"], P = { class: "file-card-row" }, A = { class: "file-info" }, W = { class: "file-name" }, V = {
|
|
65
65
|
key: 0,
|
|
66
66
|
class: "file-secondary-name"
|
|
67
|
-
},
|
|
68
|
-
function
|
|
69
|
-
const
|
|
70
|
-
return l.favoriteFiles.length > 0 ? (s(), o("div",
|
|
71
|
-
(s(!0), o(
|
|
72
|
-
key:
|
|
67
|
+
}, O = { key: 1 };
|
|
68
|
+
function D(e, i, t, u, d, l) {
|
|
69
|
+
const c = b("tooltip");
|
|
70
|
+
return l.favoriteFiles.length > 0 ? (s(), o("div", L, [
|
|
71
|
+
(s(!0), o(k, null, E(l.favoriteFiles, (r) => (s(), o("button", {
|
|
72
|
+
key: r.id,
|
|
73
73
|
class: "file-card",
|
|
74
|
-
onClick: (
|
|
75
|
-
"aria-label":
|
|
74
|
+
onClick: (v) => l.navigateTo(r),
|
|
75
|
+
"aria-label": r.title || r.name
|
|
76
76
|
}, [
|
|
77
|
-
a("div",
|
|
77
|
+
a("div", P, [
|
|
78
78
|
a("i", {
|
|
79
|
-
class:
|
|
79
|
+
class: w([l.getIconClass(r.mimeType), "file-icon"]),
|
|
80
80
|
"aria-hidden": "true"
|
|
81
81
|
}, null, 2),
|
|
82
|
-
a("div",
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
a("div", A, [
|
|
83
|
+
f((s(), o("div", W, [
|
|
84
|
+
$(n(r.title || r.name), 1)
|
|
85
85
|
])), [
|
|
86
86
|
[
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
c,
|
|
88
|
+
r.description || r.title || r.name,
|
|
89
89
|
void 0,
|
|
90
90
|
{ bottom: !0 }
|
|
91
91
|
]
|
|
92
92
|
]),
|
|
93
|
-
|
|
93
|
+
r.title ? (s(), o("div", V, n(r.name), 1)) : p("", !0)
|
|
94
94
|
])
|
|
95
95
|
])
|
|
96
|
-
], 8,
|
|
97
|
-
])) : (s(), o("div",
|
|
96
|
+
], 8, R))), 128))
|
|
97
|
+
])) : (s(), o("div", O, n(e.$t("emptyFavoriteFile")), 1));
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const H = /* @__PURE__ */ m(x, [["render", D], ["__scopeId", "data-v-943109cb"]]), B = {
|
|
100
100
|
name: "FavoriteFolderList",
|
|
101
101
|
directives: {
|
|
102
102
|
tooltip: y
|
|
@@ -123,15 +123,15 @@ const D = /* @__PURE__ */ f($, [["render", O], ["__scopeId", "data-v-f19ce364"]]
|
|
|
123
123
|
computed: {
|
|
124
124
|
...g(S, ["ESPACES_HOST"]),
|
|
125
125
|
favoriteFolders() {
|
|
126
|
-
return this.favorites.filter((e) => !this.favoriteFilter || this.favoriteFilter(e)).map((e) => e.target.folder).filter((e) => e != null).filter((e) => this.matchesSite(e)).sort((e,
|
|
126
|
+
return this.favorites.filter((e) => !this.favoriteFilter || this.favoriteFilter(e)).map((e) => e.target.folder).filter((e) => e != null).filter((e) => this.matchesSite(e)).sort((e, i) => e.name.localeCompare(i.name));
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
129
|
mounted() {
|
|
130
130
|
const e = F();
|
|
131
131
|
e.loadFavorites().then(() => {
|
|
132
132
|
this.favorites = e.folderFavorites;
|
|
133
|
-
}).catch((
|
|
134
|
-
console.error("Error loading favorites:",
|
|
133
|
+
}).catch((i) => {
|
|
134
|
+
console.error("Error loading favorites:", i);
|
|
135
135
|
});
|
|
136
136
|
},
|
|
137
137
|
methods: {
|
|
@@ -141,47 +141,48 @@ const D = /* @__PURE__ */ f($, [["render", O], ["__scopeId", "data-v-f19ce364"]]
|
|
|
141
141
|
)?.name === this.siteId : !0;
|
|
142
142
|
},
|
|
143
143
|
navigateTo(e) {
|
|
144
|
-
this.urlResolver ? this.urlResolver(e) : window.open(
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
);
|
|
144
|
+
this.urlResolver ? this.urlResolver(e) : window.open(this.folderUrl(e), "_blank");
|
|
145
|
+
},
|
|
146
|
+
folderUrl(e) {
|
|
147
|
+
const i = `${this.ESPACES_HOST}/espaces`, t = e.path?.elements ?? [], u = t.find((d) => d.nodeType === "st:site");
|
|
148
|
+
return u?.name ? `${i}/mes-espaces/${u.name}/${e.id}` : t[2]?.name ? `${i}/utilisateur/${t[2].name}/${e.id}` : `${i}/mes-espaces`;
|
|
148
149
|
}
|
|
149
150
|
}
|
|
150
|
-
},
|
|
151
|
+
}, N = {
|
|
151
152
|
key: 0,
|
|
152
153
|
class: "folder-grid-container"
|
|
153
|
-
},
|
|
154
|
-
function
|
|
155
|
-
const
|
|
156
|
-
return l.favoriteFolders.length > 0 ? (s(), o("div",
|
|
157
|
-
(s(!0), o(
|
|
158
|
-
key:
|
|
154
|
+
}, U = ["onClick", "aria-label"], j = { class: "folder-card-row" }, z = { class: "folder-info" }, M = { class: "folder-name" }, q = { key: 1 };
|
|
155
|
+
function G(e, i, t, u, d, l) {
|
|
156
|
+
const c = b("tooltip");
|
|
157
|
+
return l.favoriteFolders.length > 0 ? (s(), o("div", N, [
|
|
158
|
+
(s(!0), o(k, null, E(l.favoriteFolders, (r) => (s(), o("button", {
|
|
159
|
+
key: r.id,
|
|
159
160
|
class: "folder-card",
|
|
160
|
-
onClick: (
|
|
161
|
-
"aria-label":
|
|
161
|
+
onClick: (v) => l.navigateTo(r),
|
|
162
|
+
"aria-label": r.name
|
|
162
163
|
}, [
|
|
163
|
-
a("div",
|
|
164
|
-
|
|
164
|
+
a("div", j, [
|
|
165
|
+
i[0] || (i[0] = a("i", {
|
|
165
166
|
class: "ri-folder-line folder-icon",
|
|
166
167
|
"aria-hidden": "true"
|
|
167
168
|
}, null, -1)),
|
|
168
|
-
a("div",
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
a("div", z, [
|
|
170
|
+
f((s(), o("div", M, [
|
|
171
|
+
$(n(r.name), 1)
|
|
171
172
|
])), [
|
|
172
173
|
[
|
|
173
|
-
|
|
174
|
-
|
|
174
|
+
c,
|
|
175
|
+
r.name,
|
|
175
176
|
void 0,
|
|
176
177
|
{ bottom: !0 }
|
|
177
178
|
]
|
|
178
179
|
])
|
|
179
180
|
])
|
|
180
181
|
])
|
|
181
|
-
], 8,
|
|
182
|
-
])) : (s(), o("div",
|
|
182
|
+
], 8, U))), 128))
|
|
183
|
+
])) : (s(), o("div", q, n(e.$t("emptyFavoriteFolder")), 1));
|
|
183
184
|
}
|
|
184
|
-
const
|
|
185
|
+
const J = /* @__PURE__ */ m(B, [["render", G], ["__scopeId", "data-v-ca836477"]]), K = {
|
|
185
186
|
name: "FavoriteSiteList",
|
|
186
187
|
directives: {
|
|
187
188
|
tooltip: y
|
|
@@ -243,65 +244,65 @@ const G = /* @__PURE__ */ f(H, [["render", q], ["__scopeId", "data-v-fa282c0d"]]
|
|
|
243
244
|
const e = F();
|
|
244
245
|
e.loadFavorites().then(() => {
|
|
245
246
|
this.favorites = e.siteFavorites;
|
|
246
|
-
}).catch((
|
|
247
|
-
console.error("Erreur lors du chargement des favoris:",
|
|
247
|
+
}).catch((i) => {
|
|
248
|
+
console.error("Erreur lors du chargement des favoris:", i);
|
|
248
249
|
});
|
|
249
250
|
},
|
|
250
251
|
computed: {
|
|
251
252
|
...g(S, ["ESPACES_HOST"]),
|
|
252
253
|
favoriteSites() {
|
|
253
|
-
return this.favorites.filter((e) => !this.favoriteFilter || this.favoriteFilter(e)).map((e) => this.getSite(e)).filter((e) => e != null).sort((e,
|
|
254
|
+
return this.favorites.filter((e) => !this.favoriteFilter || this.favoriteFilter(e)).map((e) => this.getSite(e)).filter((e) => e != null).sort((e, i) => e.title.localeCompare(i.title));
|
|
254
255
|
}
|
|
255
256
|
}
|
|
256
|
-
},
|
|
257
|
+
}, Q = {
|
|
257
258
|
key: 0,
|
|
258
259
|
class: "site-grid-container"
|
|
259
|
-
},
|
|
260
|
-
function
|
|
261
|
-
const
|
|
262
|
-
return l.favoriteSites.length > 0 ? (s(), o("div",
|
|
263
|
-
(s(!0), o(
|
|
264
|
-
key:
|
|
260
|
+
}, X = { class: "site-card-row" }, Y = ["aria-label"], Z = ["onClick"], ee = { class: "site-description" }, te = { key: 1 };
|
|
261
|
+
function ie(e, i, t, u, d, l) {
|
|
262
|
+
const c = b("tooltip");
|
|
263
|
+
return l.favoriteSites.length > 0 ? (s(), o("div", Q, [
|
|
264
|
+
(s(!0), o(k, null, E(l.favoriteSites, (r) => (s(), o("div", {
|
|
265
|
+
key: r.id,
|
|
265
266
|
class: "site-card"
|
|
266
267
|
}, [
|
|
267
|
-
a("div",
|
|
268
|
-
|
|
269
|
-
class:
|
|
270
|
-
"aria-label": l.getVisibilityLabel(
|
|
271
|
-
}, null, 10,
|
|
268
|
+
a("div", X, [
|
|
269
|
+
f(a("span", {
|
|
270
|
+
class: w(["visibility-dot", "visibility-dot--" + l.getVisibilitySeverity(r.visibility)]),
|
|
271
|
+
"aria-label": l.getVisibilityLabel(r.visibility)
|
|
272
|
+
}, null, 10, Y), [
|
|
272
273
|
[
|
|
273
|
-
|
|
274
|
-
l.getVisibilityLabel(
|
|
274
|
+
c,
|
|
275
|
+
l.getVisibilityLabel(r.visibility),
|
|
275
276
|
void 0,
|
|
276
277
|
{ bottom: !0 }
|
|
277
278
|
]
|
|
278
279
|
]),
|
|
279
280
|
a("div", null, [
|
|
280
|
-
|
|
281
|
+
f((s(), o("div", {
|
|
281
282
|
class: "site-title",
|
|
282
|
-
onClick: (
|
|
283
|
+
onClick: (v) => l.goToSite(r)
|
|
283
284
|
}, [
|
|
284
|
-
|
|
285
|
-
], 8,
|
|
285
|
+
$(n(r.title), 1)
|
|
286
|
+
], 8, Z)), [
|
|
286
287
|
[
|
|
287
|
-
|
|
288
|
-
|
|
288
|
+
c,
|
|
289
|
+
r.title,
|
|
289
290
|
void 0,
|
|
290
291
|
{ bottom: !0 }
|
|
291
292
|
]
|
|
292
293
|
]),
|
|
293
|
-
a("div",
|
|
294
|
+
a("div", ee, n(r.description || "Aucune description"), 1)
|
|
294
295
|
])
|
|
295
296
|
])
|
|
296
297
|
]))), 128))
|
|
297
|
-
])) : (s(), o("div",
|
|
298
|
+
])) : (s(), o("div", te, n(e.$t("emptyFavoriteSite")), 1));
|
|
298
299
|
}
|
|
299
|
-
const
|
|
300
|
+
const re = /* @__PURE__ */ m(K, [["render", ie], ["__scopeId", "data-v-d4f00cad"]]), se = {
|
|
300
301
|
name: "FavoriteList",
|
|
301
302
|
components: {
|
|
302
|
-
FavoriteFileList:
|
|
303
|
-
FavoriteFolderList:
|
|
304
|
-
FavoriteSiteList:
|
|
303
|
+
FavoriteFileList: H,
|
|
304
|
+
FavoriteFolderList: J,
|
|
305
|
+
FavoriteSiteList: re
|
|
305
306
|
},
|
|
306
307
|
props: {
|
|
307
308
|
filter: {
|
|
@@ -341,40 +342,40 @@ const ie = /* @__PURE__ */ f(J, [["render", te], ["__scopeId", "data-v-d4f00cad"
|
|
|
341
342
|
this.siteTitle = "";
|
|
342
343
|
return;
|
|
343
344
|
}
|
|
344
|
-
I.getWorkspace(e).then((
|
|
345
|
-
this.siteTitle =
|
|
345
|
+
I.getWorkspace(e).then((i) => {
|
|
346
|
+
this.siteTitle = i.title || i.id;
|
|
346
347
|
}).catch(() => {
|
|
347
348
|
this.siteTitle = e;
|
|
348
349
|
});
|
|
349
350
|
}
|
|
350
351
|
}
|
|
351
|
-
},
|
|
352
|
+
}, oe = {
|
|
352
353
|
key: 0,
|
|
353
354
|
class: "site-title-label"
|
|
354
355
|
};
|
|
355
|
-
function
|
|
356
|
-
const
|
|
356
|
+
function le(e, i, t, u, d, l) {
|
|
357
|
+
const c = h("FavoriteFileList"), r = h("FavoriteFolderList"), v = h("FavoriteSiteList");
|
|
357
358
|
return s(), o("div", null, [
|
|
358
|
-
|
|
359
|
-
t.filter === "file" ? (s(), _(
|
|
359
|
+
d.siteTitle ? (s(), o("p", oe, n(d.siteTitle), 1)) : p("", !0),
|
|
360
|
+
t.filter === "file" ? (s(), _(c, {
|
|
360
361
|
key: 1,
|
|
361
362
|
"site-id": t.siteId,
|
|
362
363
|
"url-resolver": t.urlResolver,
|
|
363
364
|
"favorite-filter": t.favoriteFilter
|
|
364
|
-
}, null, 8, ["site-id", "url-resolver", "favorite-filter"])) : t.filter === "folder" ? (s(), _(
|
|
365
|
+
}, null, 8, ["site-id", "url-resolver", "favorite-filter"])) : t.filter === "folder" ? (s(), _(r, {
|
|
365
366
|
key: 2,
|
|
366
367
|
"site-id": t.siteId,
|
|
367
368
|
"url-resolver": t.urlResolver,
|
|
368
369
|
"favorite-filter": t.favoriteFilter
|
|
369
|
-
}, null, 8, ["site-id", "url-resolver", "favorite-filter"])) : t.filter === "site" ? (s(), _(
|
|
370
|
+
}, null, 8, ["site-id", "url-resolver", "favorite-filter"])) : t.filter === "site" ? (s(), _(v, {
|
|
370
371
|
key: 3,
|
|
371
372
|
"url-resolver": t.urlResolver,
|
|
372
373
|
"favorite-filter": t.favoriteFilter
|
|
373
374
|
}, null, 8, ["url-resolver", "favorite-filter"])) : p("", !0)
|
|
374
375
|
]);
|
|
375
376
|
}
|
|
376
|
-
const
|
|
377
|
+
const ue = /* @__PURE__ */ m(se, [["render", le], ["__scopeId", "data-v-c563ef74"]]);
|
|
377
378
|
export {
|
|
378
|
-
|
|
379
|
+
ue as default
|
|
379
380
|
};
|
|
380
|
-
//# sourceMappingURL=FavoriteList-
|
|
381
|
+
//# sourceMappingURL=FavoriteList-JUAJUJr4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FavoriteList-JUAJUJr4.js","sources":["../src/components/dashboard/widgets/FavoriteFileList.vue","../src/components/dashboard/widgets/FavoriteFolderList.vue","../src/components/dashboard/widgets/FavoriteSiteList.vue","../src/components/dashboard/widgets/FavoriteList.vue"],"sourcesContent":["<!--\n Copyright (C) 2022 - Jeci SARL - https://jeci.fr\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU Affero General Public License as\n published by the Free Software Foundation, either version 3 of the\n License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU Affero General Public License for more details.\n\n You should have received a copy of the GNU Affero General Public License\n along with this program. If not, see https://www.gnu.org/licenses/agpl-3.0.html.\n-->\n\n<template>\n <div class=\"file-grid-container\" v-if=\"favoriteFiles.length > 0\">\n <button\n v-for=\"file in favoriteFiles\"\n :key=\"file.id\"\n class=\"file-card\"\n @click=\"navigateTo(file)\"\n :aria-label=\"file.title || file.name\"\n >\n <div class=\"file-card-row\">\n <i\n :class=\"getIconClass(file.mimeType)\"\n class=\"file-icon\"\n aria-hidden=\"true\"\n ></i>\n <div class=\"file-info\">\n <div\n class=\"file-name\"\n v-tooltip.bottom=\"file.description || file.title || file.name\"\n >\n {{ file.title || file.name }}\n </div>\n <div v-if=\"file.title\" class=\"file-secondary-name\">\n {{ file.name }}\n </div>\n </div>\n </div>\n </button>\n </div>\n <div v-else>{{ $t(\"emptyFavoriteFile\") }}</div>\n</template>\n\n<script>\nimport { archiveFormatOf } from \"@/services/ArchiveService\";\nimport { useCollaboraStore } from \"@/stores/collabora\";\nimport { useConfigStore } from \"@/stores/config\";\nimport { useFavoritesStore } from \"@/stores/favorites\";\nimport { mapState } from \"pinia\";\nimport Tooltip from \"primevue/tooltip\";\n\nexport default {\n name: \"FavoriteFileList\",\n directives: {\n tooltip: Tooltip,\n },\n props: {\n siteId: {\n type: String,\n default: \"\",\n },\n urlResolver: {\n type: Function,\n default: null,\n },\n favoriteFilter: {\n type: Function,\n default: null,\n },\n },\n data() {\n return {\n favorites: [],\n };\n },\n computed: {\n ...mapState(useConfigStore, [\"ESPACES_HOST\"]),\n favoriteFiles() {\n return this.favorites\n .filter((fav) => !this.favoriteFilter || this.favoriteFilter(fav))\n .map((fav) => fav.target.file)\n .filter((file) => file !== undefined && file !== null)\n .filter((file) => this.matchesSite(file))\n .sort((a, b) => a.name.localeCompare(b.name));\n },\n },\n mounted() {\n const favoritesStore = useFavoritesStore();\n favoritesStore\n .loadFavorites()\n .then(() => {\n this.favorites = favoritesStore.fileFavorites;\n })\n .catch((err) => {\n console.error(\"Error loading favorites:\", err);\n });\n },\n methods: {\n matchesSite(node) {\n if (!this.siteId) {\n return true;\n }\n const siteElement = node.path?.elements?.find(\n (el) => el.nodeType === \"st:site\",\n );\n return siteElement?.name === this.siteId;\n },\n getIconClass(mimeType) {\n if (!mimeType) {\n return \"ri-file-line\";\n }\n if (mimeType === \"application/pdf\") {\n return \"ri-file-pdf-line\";\n }\n if (\n mimeType.includes(\"word\") ||\n mimeType.includes(\"opendocument.text\") ||\n mimeType === \"application/rtf\"\n ) {\n return \"ri-file-word-line\";\n }\n if (mimeType.includes(\"excel\") || mimeType.includes(\"spreadsheet\")) {\n return \"ri-file-excel-line\";\n }\n if (\n mimeType.includes(\"powerpoint\") ||\n mimeType.includes(\"presentation\")\n ) {\n return \"ri-file-ppt-line\";\n }\n if (mimeType.startsWith(\"image/\")) {\n return \"ri-image-line\";\n }\n if (mimeType.startsWith(\"video/\")) {\n return \"ri-video-line\";\n }\n if (mimeType.startsWith(\"audio/\")) {\n return \"ri-music-line\";\n }\n if (\n mimeType.includes(\"zip\") ||\n mimeType.includes(\"tar\") ||\n mimeType.includes(\"compressed\")\n ) {\n return \"ri-file-zip-line\";\n }\n if (\n mimeType.startsWith(\"text/\") ||\n mimeType === \"application/json\" ||\n mimeType === \"application/xml\"\n ) {\n return \"ri-file-text-line\";\n }\n if (mimeType === \"message/rfc822\") {\n return \"ri-mail-line\";\n }\n return \"ri-file-line\";\n },\n navigateTo(file) {\n const collaboraStore = useCollaboraStore();\n let destinationName = \"\";\n if (\n file.mimeType === \"image/vnd.dxf\" ||\n file.mimeType === \"image/vnd.dwg\" ||\n file.mimeType === \"message/rfc822\"\n ) {\n destinationName = \"pdf\";\n } else if (file.mimeType.startsWith(\"image/\")) {\n destinationName = \"image\";\n } else if (file.mimeType.startsWith(\"video/\")) {\n destinationName = \"video\";\n } else if (\n file.mimeType.startsWith(\"text/x-markdown\") ||\n file.mimeType.startsWith(\"text/x-web-markdown\")\n ) {\n destinationName = \"md\";\n } else if (file.mimeType.startsWith(\"text/html\")) {\n destinationName = \"html\";\n } else if (file.mimeType.startsWith(\"text/plain\")) {\n destinationName = \"text\";\n } else if (file.mimeType === \"application/pdf\") {\n destinationName = \"pdf\";\n } else if (file.mimeType === \"application/json\") {\n destinationName = \"json\";\n } else {\n if (collaboraStore.checkIfExists(file.mimeType, \"edit\")) {\n destinationName = \"edit\";\n }\n if (collaboraStore.checkIfExists(file.mimeType, \"view\")) {\n destinationName = \"view\";\n }\n if (collaboraStore.checkIfExists(file.mimeType, \"view_comment\")) {\n destinationName = \"view_comment\";\n }\n }\n if (!destinationName) {\n destinationName = archiveFormatOf(file.mimeType) ? \"archive\" : \"pdf\";\n }\n if (this.urlResolver) {\n this.urlResolver(file);\n } else {\n window.open(\n `${this.ESPACES_HOST}/espaces/${destinationName}/${file.id}`,\n \"_blank\",\n );\n }\n },\n },\n};\n</script>\n\n<style scoped>\n.file-grid-container {\n display: grid;\n gap: 1rem;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n}\n\n.file-card {\n background-color: var(--p-content-background);\n padding: 1rem;\n border-radius: 0.75rem;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);\n border: 1px solid var(--p-content-border-color);\n cursor: pointer;\n text-align: left;\n font-family: inherit;\n font-size: inherit;\n color: inherit;\n transition:\n border-color 0.2s,\n box-shadow 0.2s;\n}\n\n.file-card:hover {\n border-color: var(--p-primary-color);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);\n}\n\n.file-card:focus-visible {\n outline: 2px solid var(--p-primary-color);\n outline-offset: 2px;\n}\n\n.file-card-row {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}\n\n.file-icon {\n font-size: 1.5rem;\n color: var(--p-primary-color);\n flex-shrink: 0;\n}\n\n.file-info {\n min-width: 0;\n overflow: hidden;\n}\n\n.file-info > div {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.file-name {\n font-weight: 500;\n font-size: 0.875rem;\n}\n\n.file-secondary-name {\n font-size: 0.75rem;\n color: var(--p-text-muted-color);\n margin-top: 0.25rem;\n}\n</style>\n","<!--\n Copyright (C) 2022 - Jeci SARL - https://jeci.fr\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU Affero General Public License as\n published by the Free Software Foundation, either version 3 of the\n License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU Affero General Public License for more details.\n\n You should have received a copy of the GNU Affero General Public License\n along with this program. If not, see https://www.gnu.org/licenses/agpl-3.0.html.\n-->\n\n<template>\n <div class=\"folder-grid-container\" v-if=\"favoriteFolders.length > 0\">\n <button\n v-for=\"folder in favoriteFolders\"\n :key=\"folder.id\"\n class=\"folder-card\"\n @click=\"navigateTo(folder)\"\n :aria-label=\"folder.name\"\n >\n <div class=\"folder-card-row\">\n <i class=\"ri-folder-line folder-icon\" aria-hidden=\"true\"></i>\n <div class=\"folder-info\">\n <div class=\"folder-name\" v-tooltip.bottom=\"folder.name\">\n {{ folder.name }}\n </div>\n </div>\n </div>\n </button>\n </div>\n <div v-else>{{ $t(\"emptyFavoriteFolder\") }}</div>\n</template>\n\n<script>\nimport { useConfigStore } from \"@/stores/config\";\nimport { useFavoritesStore } from \"@/stores/favorites\";\nimport { mapState } from \"pinia\";\nimport Tooltip from \"primevue/tooltip\";\n\nexport default {\n name: \"FavoriteFolderList\",\n directives: {\n tooltip: Tooltip,\n },\n props: {\n siteId: {\n type: String,\n default: \"\",\n },\n urlResolver: {\n type: Function,\n default: null,\n },\n favoriteFilter: {\n type: Function,\n default: null,\n },\n },\n data() {\n return {\n favorites: [],\n };\n },\n computed: {\n ...mapState(useConfigStore, [\"ESPACES_HOST\"]),\n favoriteFolders() {\n return this.favorites\n .filter((fav) => !this.favoriteFilter || this.favoriteFilter(fav))\n .map((fav) => fav.target.folder)\n .filter((folder) => folder !== undefined && folder !== null)\n .filter((folder) => this.matchesSite(folder))\n .sort((a, b) => a.name.localeCompare(b.name));\n },\n },\n mounted() {\n const favoritesStore = useFavoritesStore();\n favoritesStore\n .loadFavorites()\n .then(() => {\n this.favorites = favoritesStore.folderFavorites;\n })\n .catch((err) => {\n console.error(\"Error loading favorites:\", err);\n });\n },\n methods: {\n matchesSite(node) {\n if (!this.siteId) {\n return true;\n }\n const siteElement = node.path?.elements?.find(\n (el) => el.nodeType === \"st:site\",\n );\n return siteElement?.name === this.siteId;\n },\n navigateTo(folder) {\n if (this.urlResolver) {\n this.urlResolver(folder);\n } else {\n window.open(this.folderUrl(folder), \"_blank\");\n }\n },\n folderUrl(folder) {\n const base = `${this.ESPACES_HOST}/espaces`;\n const elements = folder.path?.elements ?? [];\n const site = elements.find((el) => el.nodeType === \"st:site\");\n if (site?.name) {\n return `${base}/mes-espaces/${site.name}/${folder.id}`;\n }\n if (elements[2]?.name) {\n return `${base}/utilisateur/${elements[2].name}/${folder.id}`;\n }\n return `${base}/mes-espaces`;\n },\n },\n};\n</script>\n\n<style scoped>\n.folder-grid-container {\n display: grid;\n gap: 1rem;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n}\n\n.folder-card {\n background-color: var(--p-content-background);\n padding: 1rem;\n border-radius: 0.75rem;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);\n border: 1px solid var(--p-content-border-color);\n cursor: pointer;\n text-align: left;\n font-family: inherit;\n font-size: inherit;\n color: inherit;\n transition:\n border-color 0.2s,\n box-shadow 0.2s;\n}\n\n.folder-card:hover {\n border-color: var(--p-primary-color);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);\n}\n\n.folder-card:focus-visible {\n outline: 2px solid var(--p-primary-color);\n outline-offset: 2px;\n}\n\n.folder-card-row {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}\n\n.folder-icon {\n font-size: 1.5rem;\n color: var(--p-primary-color);\n flex-shrink: 0;\n}\n\n.folder-info {\n min-width: 0;\n overflow: hidden;\n}\n\n.folder-info > div {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.folder-name {\n font-weight: 500;\n font-size: 0.875rem;\n}\n</style>\n","<!--\n Copyright (C) 2022 - Jeci SARL - https://jeci.fr\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU Affero General Public License as\n published by the Free Software Foundation, either version 3 of the\n License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU Affero General Public License for more details.\n\n You should have received a copy of the GNU Affero General Public License\n along with this program. If not, see https://www.gnu.org/licenses/agpl-3.0.html.\n-->\n\n<template>\n <div class=\"site-grid-container\" v-if=\"favoriteSites.length > 0\">\n <div v-for=\"site in favoriteSites\" :key=\"site.id\" class=\"site-card\">\n <div class=\"site-card-row\">\n <span\n class=\"visibility-dot\"\n :class=\"'visibility-dot--' + getVisibilitySeverity(site.visibility)\"\n :aria-label=\"getVisibilityLabel(site.visibility)\"\n v-tooltip.bottom=\"getVisibilityLabel(site.visibility)\"\n ></span>\n <div>\n <div\n class=\"site-title\"\n @click=\"goToSite(site)\"\n v-tooltip.bottom=\"site.title\"\n >\n {{ site.title }}\n </div>\n <div class=\"site-description\">\n {{ site.description || \"Aucune description\" }}\n </div>\n </div>\n </div>\n </div>\n </div>\n <div v-else>{{ $t(\"emptyFavoriteSite\") }}</div>\n</template>\n\n<script>\nimport { useConfigStore } from \"@/stores/config\";\nimport { useFavoritesStore } from \"@/stores/favorites\";\nimport { mapState } from \"pinia\";\nimport Tooltip from \"primevue/tooltip\";\n\nexport default {\n name: \"FavoriteSiteList\",\n directives: {\n tooltip: Tooltip,\n },\n props: {\n urlResolver: {\n type: Function,\n default: null,\n },\n favoriteFilter: {\n type: Function,\n default: null,\n },\n },\n data() {\n return {\n favorites: [],\n };\n },\n methods: {\n getSite(fav) {\n return fav.target.site;\n },\n goToSite(site) {\n if (this.urlResolver) {\n this.urlResolver(site);\n } else {\n window.open(\n `${this.ESPACES_HOST}/espaces/mes-espaces/${site.id}`,\n \"_blank\",\n );\n }\n },\n getVisibilityLabel(visibility) {\n switch (visibility) {\n case \"PUBLIC\":\n return \"Public\";\n case \"PRIVATE\":\n return \"Privé\";\n case \"MODERATED\":\n return \"Modéré\";\n default:\n return \"Inconnu\";\n }\n },\n getVisibilitySeverity(visibility) {\n switch (visibility) {\n case \"PUBLIC\":\n return \"success\"; // vert\n case \"PRIVATE\":\n return \"danger\"; // rouge\n case \"MODERATED\":\n return \"warning\"; // orange\n default:\n return \"info\";\n }\n },\n },\n mounted() {\n const favoritesStore = useFavoritesStore();\n favoritesStore\n .loadFavorites()\n .then(() => {\n this.favorites = favoritesStore.siteFavorites;\n })\n .catch((err) => {\n console.error(\"Erreur lors du chargement des favoris:\", err);\n });\n },\n computed: {\n ...mapState(useConfigStore, [\"ESPACES_HOST\"]),\n favoriteSites() {\n // Parcours chaque favorite, récupère target.site si existant\n return this.favorites\n .filter((fav) => !this.favoriteFilter || this.favoriteFilter(fav))\n .map((fav) => this.getSite(fav))\n .filter((site) => site !== undefined && site !== null)\n .sort((a, b) => a.title.localeCompare(b.title));\n },\n },\n};\n</script>\n<style scoped>\n.site-grid-container {\n display: grid;\n gap: 0.5rem;\n grid-template-columns: 1fr;\n}\n\n.site-card {\n background-color: var(--p-content-background);\n padding: 0.5rem 0.75rem;\n border-radius: 0.75rem;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n\n.site-card-row {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}\n\n.site-title {\n display: flex;\n font-weight: 500;\n font-size: 0.875rem;\n cursor: pointer;\n}\n\n.site-description {\n display: flex;\n font-size: 0.75rem;\n color: var(--p-text-muted-color);\n margin-top: 0.25rem;\n}\n\n.visibility-dot {\n width: 0.75rem;\n height: 0.75rem;\n border-radius: 50%;\n flex-shrink: 0;\n}\n\n.visibility-dot--success {\n background-color: var(--p-green-500);\n}\n\n.visibility-dot--danger {\n background-color: var(--p-red-500);\n}\n\n.visibility-dot--warning {\n background-color: var(--p-orange-500);\n}\n\n.visibility-dot--info {\n background-color: var(--p-blue-500);\n}\n</style>\n","<!--\n Copyright (C) 2022 - Jeci SARL - https://jeci.fr\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU Affero General Public License as\n published by the Free Software Foundation, either version 3 of the\n License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU Affero General Public License for more details.\n\n You should have received a copy of the GNU Affero General Public License\n along with this program. If not, see https://www.gnu.org/licenses/agpl-3.0.html.\n-->\n\n<template>\n <div>\n <p v-if=\"siteTitle\" class=\"site-title-label\">\n {{ siteTitle }}\n </p>\n <FavoriteFileList\n v-if=\"filter === 'file'\"\n :site-id=\"siteId\"\n :url-resolver=\"urlResolver\"\n :favorite-filter=\"favoriteFilter\"\n />\n <FavoriteFolderList\n v-else-if=\"filter === 'folder'\"\n :site-id=\"siteId\"\n :url-resolver=\"urlResolver\"\n :favorite-filter=\"favoriteFilter\"\n />\n <FavoriteSiteList\n v-else-if=\"filter === 'site'\"\n :url-resolver=\"urlResolver\"\n :favorite-filter=\"favoriteFilter\"\n />\n </div>\n</template>\n\n<script>\nimport FavoriteFileList from \"@/components/dashboard/widgets/FavoriteFileList.vue\";\nimport FavoriteFolderList from \"@/components/dashboard/widgets/FavoriteFolderList.vue\";\nimport FavoriteSiteList from \"@/components/dashboard/widgets/FavoriteSiteList.vue\";\nimport workspaceService from \"@/services/WorkspaceService.js\";\n\nexport default {\n name: \"FavoriteList\",\n components: {\n FavoriteFileList,\n FavoriteFolderList,\n FavoriteSiteList,\n },\n props: {\n filter: {\n type: String,\n default: \"file\",\n validator: (value) => [\"file\", \"folder\", \"site\"].includes(value),\n },\n siteId: {\n type: String,\n default: \"\",\n },\n urlResolver: {\n type: Function,\n default: null,\n },\n favoriteFilter: {\n type: Function,\n default: null,\n },\n },\n data() {\n return {\n siteTitle: \"\",\n };\n },\n watch: {\n siteId: {\n immediate: true,\n handler(newSiteId) {\n this.resolveSiteTitle(newSiteId);\n },\n },\n },\n methods: {\n resolveSiteTitle(siteId) {\n if (!siteId) {\n this.siteTitle = \"\";\n return;\n }\n workspaceService\n .getWorkspace(siteId)\n .then((site) => {\n this.siteTitle = site.title || site.id;\n })\n .catch(() => {\n this.siteTitle = siteId;\n });\n },\n },\n};\n</script>\n\n<style scoped>\n.site-title-label {\n margin-top: 0;\n margin-bottom: 0.5rem;\n font-size: 0.875rem;\n color: var(--p-text-muted-color);\n}\n</style>\n"],"names":["_sfc_main","Tooltip","mapState","useConfigStore","fav","file","a","b","favoritesStore","useFavoritesStore","err","node","el","mimeType","collaboraStore","useCollaboraStore","destinationName","archiveFormatOf","_hoisted_3","_hoisted_4","_hoisted_5","$options","_openBlock","_createElementBlock","_hoisted_1","_Fragment","_renderList","$event","_createElementVNode","_withDirectives","_createTextVNode","_toDisplayString","_hoisted_6","_ctx","folder","base","elements","site","visibility","_hoisted_2","FavoriteFileList","FavoriteFolderList","FavoriteSiteList","value","newSiteId","siteId","workspaceService","$data","$props","_createBlock","_component_FavoriteFileList","_component_FavoriteFolderList","_component_FavoriteSiteList"],"mappings":";;;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ACL,WAAW;AAAA;EAEf;AAAA,EACA,OAAO;AAAA,IACL,QAAQ;AAAA,MACN,WAAW;AAAA,MACX,QAAQC,GAAW;AACjB,aAAK,iBAAiBA,CAAS;AAAA,MACjC;AAAA;;EAGJ,SAAS;AAAA,IACP,iBAAiBC,GAAQ;AACvB,UAAI,CAACA,GAAQ;AACX,aAAK,YAAY;AACjB;AAAA,MACF;AACA,MAAAC,EACG,aAAaD,CAAM,EACnB,KAAK,CAACR,MAAS;AACd,aAAK,YAAYA,EAAK,SAASA,EAAK;AAAA,MACtC,CAAC,EACA,MAAM,MAAM;AACX,aAAK,YAAYQ;AAAA,MACnB,CAAC;AAAA,IACL;AAAA;AAEJ;;EApFwB,OAAM;;;;cAD5BtB,EAqBM,OAAA,MAAA;AAAA,IApBKwB,EAAA,kBAATxB,EAEI,KAFJC,IAEIO,EADCgB,EAAA,SAAS,GAAA,CAAA;IAGNC,EAAA,WAAM,eADdC,EAKEC,GAAA;AAAA;MAHC,WAASF,EAAA;AAAA,MACT,gBAAcA,EAAA;AAAA,MACd,mBAAiBA,EAAA;AAAA,mEAGPA,EAAA,WAAM,iBADnBC,EAKEE,GAAA;AAAA;MAHC,WAASH,EAAA;AAAA,MACT,gBAAcA,EAAA;AAAA,MACd,mBAAiBA,EAAA;AAAA,mEAGPA,EAAA,WAAM,eADnBC,EAIEG,GAAA;AAAA;MAFC,gBAAcJ,EAAA;AAAA,MACd,mBAAiBA,EAAA;AAAA;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as r, f as o } from "./index-
|
|
1
|
+
import { _ as r, f as o } from "./index-Cx1jO8jm.js";
|
|
2
2
|
import { marked as s } from "marked";
|
|
3
3
|
import i from "dompurify";
|
|
4
4
|
import { openBlock as a, createElementBlock as d } from "vue";
|
|
@@ -52,4 +52,4 @@ const C = /* @__PURE__ */ r(c, [["render", h]]);
|
|
|
52
52
|
export {
|
|
53
53
|
C as default
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=MarkdownComponent-
|
|
55
|
+
//# sourceMappingURL=MarkdownComponent-D_fqYWV_.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownComponent-
|
|
1
|
+
{"version":3,"file":"MarkdownComponent-D_fqYWV_.js","sources":["../src/components/dashboard/widgets/MarkdownComponent.vue"],"sourcesContent":["<!--\n Copyright (C) 2022 - Jeci SARL - https://jeci.fr\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU Affero General Public License as\n published by the Free Software Foundation, either version 3 of the\n License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU Affero General Public License for more details.\n\n You should have received a copy of the GNU Affero General Public License\n along with this program. If not, see https://www.gnu.org/licenses/agpl-3.0.html.\n-->\n<template>\n <div ref=\"content\"></div>\n</template>\n\n<script>\nimport alfrescoNodeService from \"@/services/AlfrescoNodeService.js\";\nimport { marked } from \"marked\";\nimport DOMPurify from \"dompurify\";\n\nexport default {\n name: \"MarkdownComponent\",\n props: {\n id: {\n type: String,\n default: null,\n },\n markdownContent: {\n type: String,\n default: null,\n },\n },\n data() {\n return {\n generation: 0,\n };\n },\n watch: {\n id: \"render\",\n markdownContent: \"render\",\n },\n mounted() {\n this.render();\n },\n methods: {\n show(markdown) {\n if (this.$refs.content) {\n this.$refs.content.innerHTML = DOMPurify.sanitize(\n marked.parse(markdown),\n );\n }\n },\n async render() {\n const current = ++this.generation;\n if (this.id && this.id.trim()) {\n try {\n const contentBlob = await alfrescoNodeService.getNodeContent(this.id);\n const rawMarkdown = await contentBlob.text();\n if (current === this.generation) {\n this.show(rawMarkdown);\n }\n } catch (error) {\n console.error(\"Erreur lors du chargement du markdown:\", error);\n }\n } else if (this.markdownContent && this.markdownContent.trim()) {\n this.show(this.markdownContent);\n } else {\n this.show(this.$t(\"dashboard.markdownSample\"));\n }\n },\n },\n};\n</script>\n<style scoped></style>\n"],"names":["_sfc_main","markdown","DOMPurify","marked","current","rawMarkdown","alfrescoNodeService","error","_hoisted_1","_openBlock","_createElementBlock"],"mappings":";;;;AAyBA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,OAAO;AAAA,IACL,IAAI;AAAA,MACF,MAAM;AAAA,MACN,SAAS;AAAA;IAEX,iBAAiB;AAAA,MACf,MAAM;AAAA,MACN,SAAS;AAAA;;EAGb,OAAO;AACL,WAAO;AAAA,MACL,YAAY;AAAA;EAEhB;AAAA,EACA,OAAO;AAAA,IACL,IAAI;AAAA,IACJ,iBAAiB;AAAA;EAEnB,UAAU;AACR,SAAK,OAAM;AAAA,EACb;AAAA,EACA,SAAS;AAAA,IACP,KAAKC,GAAU;AACb,MAAI,KAAK,MAAM,YACb,KAAK,MAAM,QAAQ,YAAYC,EAAU;AAAA,QACvCC,EAAO,MAAMF,CAAQ;AAAA;IAG3B;AAAA,IACA,MAAM,SAAS;AACb,YAAMG,IAAU,EAAE,KAAK;AACvB,UAAI,KAAK,MAAM,KAAK,GAAG,KAAI;AACzB,YAAI;AAEF,gBAAMC,IAAc,OADA,MAAMC,EAAoB,eAAe,KAAK,EAAE,GAC9B,KAAI;AAC1C,UAAIF,MAAY,KAAK,cACnB,KAAK,KAAKC,CAAW;AAAA,QAEzB,SAASE,GAAO;AACd,kBAAQ,MAAM,0CAA0CA,CAAK;AAAA,QAC/D;AAAA,UACK,CAAI,KAAK,mBAAmB,KAAK,gBAAgB,SACtD,KAAK,KAAK,KAAK,eAAe,IAE9B,KAAK,KAAK,KAAK,GAAG,0BAA0B,CAAC;AAAA,IAEjD;AAAA;AAEJ,GA3DOC,IAAA,EAAA,KAAI,UAAS;;AAAlB,SAAAC,EAAA,GAAAC,EAAyB,OAAzBF,GAAyB,MAAA,GAAA;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { VuePDF as Q, usePDF as J } from "@tato30/vue-pdf";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { b as ee } from "./PdfConfigService-
|
|
3
|
+
import { b as ee } from "./PdfConfigService-Dv6LG1qD.js";
|
|
4
4
|
import { PDFDocument as H, PDFName as g, PDFDict as O, PDFArray as L, PDFHexString as M, PDFString as B } from "pdf-lib";
|
|
5
5
|
import { fromBER as x } from "asn1js";
|
|
6
6
|
import { ContentInfo as z, SignedData as W, TSTInfo as te } from "pkijs";
|
|
7
|
-
import { _ as ie, P as oe, a as se, r as ne, h as re, b as ae, c as le, d as de, u as ce, e as he } from "./index-
|
|
7
|
+
import { _ as ie, P as oe, a as se, r as ne, h as re, b as ae, c as le, d as de, u as ce, e as he } from "./index-Cx1jO8jm.js";
|
|
8
8
|
import fe from "primevue/tooltip";
|
|
9
9
|
import ue from "primevue/button";
|
|
10
10
|
import pe from "primevue/divider";
|
|
@@ -1074,4 +1074,4 @@ const Ct = /* @__PURE__ */ ie(He, [["render", dt], ["__scopeId", "data-v-703dcff
|
|
|
1074
1074
|
export {
|
|
1075
1075
|
Ct as default
|
|
1076
1076
|
};
|
|
1077
|
-
//# sourceMappingURL=PDFComponent-
|
|
1077
|
+
//# sourceMappingURL=PDFComponent-B4yA2RzZ.js.map
|