@opencloud-eu/web-pkg 0.1.1 → 2.0.0
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/{TextEditor-dPv5RFiT.js → TextEditor-CBpP9DFX.js} +68 -51
- package/dist/assets/{worker-DzSy5ndr.js → worker-BCEWb3C6.js} +27 -27
- package/dist/assets/{worker-BTxctNFM.js → worker-BpDXOTOV.js} +18 -18
- package/dist/assets/{worker-oQBkmUkg.js → worker-Ds2rbROB.js} +26 -26
- package/dist/{index-B8n8dCfU.js → index-CPsauqxc.js} +12683 -12675
- package/dist/src/components/AppBar/AppBar.vue.d.ts +28 -31
- package/dist/src/components/AppTemplates/AppWrapper.vue.d.ts +71 -94
- package/dist/src/components/AppTopBar.vue.d.ts +13 -24
- package/dist/src/components/BatchActions.vue.d.ts +10 -11
- package/dist/src/components/ContextActions/ActionMenuItem.vue.d.ts +10 -11
- package/dist/src/components/ContextActions/ContextActionMenu.vue.d.ts +10 -20
- package/dist/src/components/CreateShortcutModal.vue.d.ts +3 -3
- package/dist/src/components/FilesList/ContextActions.vue.d.ts +10 -20
- package/dist/src/components/FilesList/ResourceLink.vue.d.ts +2 -2
- package/dist/src/components/FilesList/ResourceListItem.vue.d.ts +3 -3
- package/dist/src/components/FilesList/ResourceTable.vue.d.ts +15 -55
- package/dist/src/components/FilesList/ResourceTile.vue.d.ts +6 -6
- package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +6 -6
- package/dist/src/components/Filters/DateFilter.vue.d.ts +196 -52
- package/dist/src/components/Search/ResourcePreview.vue.d.ts +3 -3
- package/dist/src/components/SideBar/FileSideBar.vue.d.ts +57 -69
- package/dist/src/components/SideBar/SideBar.vue.d.ts +39 -71
- package/dist/src/components/SideBar/Spaces/Details/SpaceDetails.vue.d.ts +1 -1
- package/dist/src/components/SpaceQuota.vue.d.ts +1 -1
- package/dist/src/components/Spaces/QuotaModal.vue.d.ts +1 -1
- package/dist/src/components/TextEditor/TextEditor.vue.d.ts +1 -0
- package/dist/src/components/TextEditor/index.d.ts +1 -0
- package/dist/src/components/ViewOptions.vue.d.ts +8 -0
- package/dist/src/composables/actions/files/useFileActions.d.ts +1 -1
- package/dist/src/composables/actions/types.d.ts +0 -1
- package/dist/src/composables/piniaStores/auth.d.ts +8 -7
- package/dist/src/composables/piniaStores/modals.d.ts +18 -20
- package/dist/src/composables/piniaStores/resources.d.ts +8 -2
- package/dist/src/composables/piniaStores/spaces.d.ts +8 -2
- package/dist/src/composables/piniaStores/theme.d.ts +56 -0
- package/dist/src/helpers/resource/icon.d.ts +2 -1
- package/dist/src/router/deprecated.d.ts +1 -1
- package/dist/src/router/utils.d.ts +2 -2
- package/dist/web-pkg.js +2 -2
- package/dist/web-pkg.umd.cjs +47 -43
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { MdPreview as
|
|
3
|
-
import { useGettext as
|
|
1
|
+
import { d as L, u as w, c as r, a as n, _ as v, r as g, b as z, o as s, e as h } from "./index-CPsauqxc.js";
|
|
2
|
+
import { MdPreview as P, MdEditor as y, config as C, XSSPlugin as I } from "md-editor-v3";
|
|
3
|
+
import { useGettext as D } from "vue3-gettext";
|
|
4
4
|
import "@casl/vue";
|
|
5
5
|
import "@opencloud-eu/web-client";
|
|
6
6
|
import "fuse.js";
|
|
@@ -25,9 +25,9 @@ import "dompurify";
|
|
|
25
25
|
import "mark.js";
|
|
26
26
|
import "vue-router";
|
|
27
27
|
import "portal-vue";
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
const
|
|
28
|
+
import x from "screenfull";
|
|
29
|
+
import j from "cropperjs";
|
|
30
|
+
const R = {
|
|
31
31
|
toolbarTips: {
|
|
32
32
|
bold: "Gras",
|
|
33
33
|
underline: "Souligné",
|
|
@@ -107,7 +107,7 @@ const P = {
|
|
|
107
107
|
markdownTotal: "Nombre de mots",
|
|
108
108
|
scrollAuto: "Défilement synchronisé"
|
|
109
109
|
}
|
|
110
|
-
},
|
|
110
|
+
}, E = {
|
|
111
111
|
toolbarTips: {
|
|
112
112
|
bold: "Fett",
|
|
113
113
|
underline: "Unterstrichen",
|
|
@@ -187,7 +187,7 @@ const P = {
|
|
|
187
187
|
markdownTotal: "Zeichenanzahl",
|
|
188
188
|
scrollAuto: "Automatisches Scrollen"
|
|
189
189
|
}
|
|
190
|
-
},
|
|
190
|
+
}, U = {
|
|
191
191
|
toolbarTips: {
|
|
192
192
|
bold: "Grassetto",
|
|
193
193
|
underline: "Sottolineato",
|
|
@@ -267,7 +267,7 @@ const P = {
|
|
|
267
267
|
markdownTotal: "Conteggio parole",
|
|
268
268
|
scrollAuto: "Scorrimento automatico"
|
|
269
269
|
}
|
|
270
|
-
},
|
|
270
|
+
}, F = {
|
|
271
271
|
toolbarTips: {
|
|
272
272
|
bold: "Negrita",
|
|
273
273
|
underline: "Subrayado",
|
|
@@ -347,7 +347,7 @@ const P = {
|
|
|
347
347
|
markdownTotal: "Conteo de letras",
|
|
348
348
|
scrollAuto: "Desplazamiento automático"
|
|
349
349
|
}
|
|
350
|
-
},
|
|
350
|
+
}, S = {
|
|
351
351
|
toolbarTips: {
|
|
352
352
|
bold: "Pogrubienie",
|
|
353
353
|
underline: "Podkreślenie",
|
|
@@ -427,7 +427,7 @@ const P = {
|
|
|
427
427
|
markdownTotal: "Liczba znaków",
|
|
428
428
|
scrollAuto: "Automatyczne przewijanie"
|
|
429
429
|
}
|
|
430
|
-
},
|
|
430
|
+
}, M = {
|
|
431
431
|
toolbarTips: {
|
|
432
432
|
bold: "жирный",
|
|
433
433
|
underline: "подчёркнутый",
|
|
@@ -508,7 +508,7 @@ const P = {
|
|
|
508
508
|
markdownTotal: "Кол-во символов",
|
|
509
509
|
scrollAuto: "Автопрокрутка"
|
|
510
510
|
}
|
|
511
|
-
},
|
|
511
|
+
}, q = {
|
|
512
512
|
toolbarTips: {
|
|
513
513
|
bold: "太字",
|
|
514
514
|
underline: "下線",
|
|
@@ -588,7 +588,7 @@ const P = {
|
|
|
588
588
|
markdownTotal: "単語数",
|
|
589
589
|
scrollAuto: "同期スクロール"
|
|
590
590
|
}
|
|
591
|
-
},
|
|
591
|
+
}, A = {
|
|
592
592
|
toolbarTips: {
|
|
593
593
|
bold: "tebal",
|
|
594
594
|
underline: "garis bawah",
|
|
@@ -668,7 +668,7 @@ const P = {
|
|
|
668
668
|
markdownTotal: "Jumlah Kata",
|
|
669
669
|
scrollAuto: "Gulir Otomatis"
|
|
670
670
|
}
|
|
671
|
-
},
|
|
671
|
+
}, H = {
|
|
672
672
|
zh: "zh-CN",
|
|
673
673
|
fr: "fr-FR",
|
|
674
674
|
ja: "jp-JP",
|
|
@@ -679,19 +679,19 @@ const P = {
|
|
|
679
679
|
es: "es-ES",
|
|
680
680
|
pl: "pl-PL",
|
|
681
681
|
en: "en-US"
|
|
682
|
-
},
|
|
683
|
-
"fr-FR":
|
|
684
|
-
"de-DE":
|
|
685
|
-
"it-IT":
|
|
686
|
-
"es-ES":
|
|
687
|
-
"pl-PL":
|
|
688
|
-
ru:
|
|
689
|
-
"jp-JP":
|
|
690
|
-
"id-ID":
|
|
691
|
-
},
|
|
682
|
+
}, O = {
|
|
683
|
+
"fr-FR": R,
|
|
684
|
+
"de-DE": E,
|
|
685
|
+
"it-IT": U,
|
|
686
|
+
"es-ES": F,
|
|
687
|
+
"pl-PL": S,
|
|
688
|
+
ru: M,
|
|
689
|
+
"jp-JP": q,
|
|
690
|
+
"id-ID": A
|
|
691
|
+
}, B = L({
|
|
692
692
|
name: "TextEditor",
|
|
693
693
|
// type casts are needed to ensure type inference works correctly when building web-pkg
|
|
694
|
-
components: { MdEditor:
|
|
694
|
+
components: { MdEditor: y, MdPreview: P },
|
|
695
695
|
props: {
|
|
696
696
|
applicationConfig: { type: Object, required: !1 },
|
|
697
697
|
currentContent: {
|
|
@@ -703,24 +703,24 @@ const P = {
|
|
|
703
703
|
resource: { type: Object, required: !1 }
|
|
704
704
|
},
|
|
705
705
|
emits: ["update:currentContent"],
|
|
706
|
-
setup(e) {
|
|
707
|
-
const
|
|
706
|
+
setup(e, { emit: i }) {
|
|
707
|
+
const d = D(), { currentTheme: u } = w(), m = r(() => {
|
|
708
708
|
const { showPreviewOnlyMd: a = !0 } = e.applicationConfig;
|
|
709
709
|
return { showPreviewOnlyMd: a };
|
|
710
|
-
}),
|
|
710
|
+
}), c = r(() => {
|
|
711
711
|
var a;
|
|
712
|
-
return e.markdownMode || ["md", "markdown"].includes((a = e.resource) == null ? void 0 : a.extension) || !
|
|
713
|
-
}),
|
|
714
|
-
return
|
|
712
|
+
return e.markdownMode || ["md", "markdown"].includes((a = e.resource) == null ? void 0 : a.extension) || !n(m).showPreviewOnlyMd;
|
|
713
|
+
}), o = r(() => n(u).isDark ? "dark" : "light");
|
|
714
|
+
return C({
|
|
715
715
|
editorConfig: {
|
|
716
|
-
languageUserDefined:
|
|
716
|
+
languageUserDefined: O
|
|
717
717
|
},
|
|
718
718
|
editorExtensions: {
|
|
719
719
|
screenfull: {
|
|
720
|
-
instance:
|
|
720
|
+
instance: x
|
|
721
721
|
},
|
|
722
722
|
cropper: {
|
|
723
|
-
instance:
|
|
723
|
+
instance: j
|
|
724
724
|
}
|
|
725
725
|
},
|
|
726
726
|
markdownItPlugins(a) {
|
|
@@ -728,26 +728,41 @@ const P = {
|
|
|
728
728
|
...a,
|
|
729
729
|
{
|
|
730
730
|
type: "xss",
|
|
731
|
-
plugin:
|
|
731
|
+
plugin: I,
|
|
732
732
|
options: {}
|
|
733
733
|
}
|
|
734
734
|
];
|
|
735
735
|
}
|
|
736
736
|
}), {
|
|
737
|
-
isMarkdown:
|
|
738
|
-
theme:
|
|
739
|
-
language:
|
|
740
|
-
languages:
|
|
737
|
+
isMarkdown: c,
|
|
738
|
+
theme: o,
|
|
739
|
+
language: d,
|
|
740
|
+
languages: H,
|
|
741
|
+
onUploadImg: async (a) => {
|
|
742
|
+
const b = (await Promise.all(
|
|
743
|
+
[...a].map(
|
|
744
|
+
(l) => new Promise((T, f) => {
|
|
745
|
+
const t = new FileReader();
|
|
746
|
+
t.onload = () => T(t.result), t.onerror = f, t.readAsDataURL(l);
|
|
747
|
+
})
|
|
748
|
+
)
|
|
749
|
+
)).map((l) => ``), k = `${n(e.currentContent)}
|
|
750
|
+
${b.join(`
|
|
751
|
+
|
|
752
|
+
`)}
|
|
753
|
+
`;
|
|
754
|
+
i("update:currentContent", k);
|
|
755
|
+
}
|
|
741
756
|
};
|
|
742
757
|
}
|
|
743
|
-
}),
|
|
758
|
+
}), K = {
|
|
744
759
|
id: "text-editor-container",
|
|
745
760
|
class: "oc-height-1-1"
|
|
746
761
|
};
|
|
747
|
-
function
|
|
748
|
-
const
|
|
749
|
-
return
|
|
750
|
-
e.isReadOnly ? (
|
|
762
|
+
function G(e, i, d, u, m, c) {
|
|
763
|
+
const o = g("md-preview"), p = g("md-editor");
|
|
764
|
+
return s(), z("div", K, [
|
|
765
|
+
e.isReadOnly ? (s(), h(o, {
|
|
751
766
|
key: 0,
|
|
752
767
|
id: "text-editor-preview-component",
|
|
753
768
|
"model-value": e.currentContent,
|
|
@@ -758,21 +773,22 @@ function q(e, i, o, r, n, s) {
|
|
|
758
773
|
"no-highlight": "",
|
|
759
774
|
language: e.languages[e.language.current] || "en-US",
|
|
760
775
|
theme: e.theme,
|
|
776
|
+
"auto-focus": "",
|
|
761
777
|
"read-only": "",
|
|
762
778
|
toolbars: []
|
|
763
|
-
}, null, 8, ["model-value", "language", "theme"])) : (
|
|
779
|
+
}, null, 8, ["model-value", "language", "theme"])) : (s(), h(p, {
|
|
764
780
|
key: 1,
|
|
765
781
|
id: "text-editor-component",
|
|
766
782
|
"model-value": e.currentContent,
|
|
767
783
|
"no-katex": "",
|
|
768
784
|
"no-mermaid": "",
|
|
769
785
|
"no-prettier": "",
|
|
770
|
-
"no-upload-img": "",
|
|
771
786
|
"no-highlight": "",
|
|
787
|
+
"on-upload-img": e.onUploadImg,
|
|
772
788
|
language: e.languages[e.language.current] || "en-US",
|
|
773
789
|
theme: e.theme,
|
|
774
790
|
preview: e.isMarkdown,
|
|
775
|
-
toolbars: e.isMarkdown ? void 0 : [],
|
|
791
|
+
toolbars: e.isMarkdown ? void 0 : ["revoke", "next"],
|
|
776
792
|
"toolbars-exclude": [
|
|
777
793
|
"save",
|
|
778
794
|
"katex",
|
|
@@ -785,11 +801,12 @@ function q(e, i, o, r, n, s) {
|
|
|
785
801
|
"pageFullscreen"
|
|
786
802
|
],
|
|
787
803
|
"read-only": e.isReadOnly,
|
|
788
|
-
|
|
789
|
-
|
|
804
|
+
"auto-focus": "",
|
|
805
|
+
onOnChange: i[0] || (i[0] = (a) => e.$emit("update:currentContent", a))
|
|
806
|
+
}, null, 8, ["model-value", "on-upload-img", "language", "theme", "preview", "toolbars", "read-only"]))
|
|
790
807
|
]);
|
|
791
808
|
}
|
|
792
|
-
const
|
|
809
|
+
const Le = /* @__PURE__ */ v(B, [["render", G]]);
|
|
793
810
|
export {
|
|
794
|
-
|
|
811
|
+
Le as default
|
|
795
812
|
};
|