@mapomodule/uikit 1.0.0-alpha.6 → 1.0.0-alpha.60
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/CHANGELOG.md +953 -0
- package/components/ConfirmDialog.vue +58 -37
- package/components/Detail/Detail.vue +421 -271
- package/components/Detail/DetailLangSwitch.vue +9 -2
- package/components/DropArea.vue +63 -56
- package/components/Form/Form.vue +218 -0
- package/components/Form/FormField.vue +216 -0
- package/components/Form/FormGroup.vue +146 -0
- package/components/Form/FormTabs.vue +188 -0
- package/components/Form/defaults.js +98 -0
- package/components/Form/fields/ColorField.vue +79 -0
- package/components/{fields → Form/fields}/DateField.vue +20 -11
- package/components/Form/fields/DateTimeField.vue +271 -0
- package/components/Form/fields/EnhancedMediaField.vue +224 -0
- package/components/Form/fields/FileField.vue +125 -0
- package/components/Form/fields/FksField.vue +115 -0
- package/components/Form/fields/MediaField.vue +159 -0
- package/components/Form/fields/MediaM2mField.vue +149 -0
- package/components/Form/fields/Repeater.vue +618 -0
- package/components/{fields → Form/fields}/SeoPreview.vue +10 -10
- package/components/Form/fields/TimeField.vue +154 -0
- package/components/Form/fields/mapField/leaflet.injector.js +39 -0
- package/components/Form/fields/mapField/mapField.vue +350 -0
- package/components/Form/fields/wygEditor/defaults.js +25 -0
- package/components/{fields/TinyMce → Form/fields/wygEditor}/utils/mapomedia.plugin.js +7 -6
- package/components/Form/fields/wygEditor/wygEditor.vue +285 -0
- package/components/Form/fields/wygEditorCKE/defaults.js +103 -0
- package/components/Form/fields/wygEditorCKE/utils/ckeditor.injector.js +29 -0
- package/components/Form/fields/wygEditorCKE/wygEditorCKE.vue +270 -0
- package/components/LangSwitcher.vue +44 -0
- package/components/List/List.vue +34 -17
- package/components/List/ListActions.vue +22 -4
- package/components/List/ListFilters.vue +48 -10
- package/components/List/ListHead.vue +11 -3
- package/components/List/ListQuickEdit.vue +124 -64
- package/components/List/ListTable.vue +118 -18
- package/components/Login.vue +17 -7
- package/components/LogoutButton.vue +43 -28
- package/components/MediaManager/MediaBreadcrumbs.vue +45 -0
- package/components/MediaManager/MediaEditor.vue +297 -120
- package/components/MediaManager/MediaFileChanger.vue +78 -0
- package/components/MediaManager/MediaFolders.vue +224 -116
- package/components/MediaManager/MediaGallery.vue +224 -145
- package/components/MediaManager/MediaManager.vue +125 -159
- package/components/MediaManager/MediaManagerDialog.vue +36 -31
- package/components/MediaManager/MediaPreview.vue +258 -0
- package/components/MediaManager/MediaUploader.vue +91 -90
- package/components/MenuManager/MenuManager.vue +332 -0
- package/components/MenuManager/MenuNodeEditor.vue +270 -0
- package/components/MenuManager/MenuTreeview.vue +237 -0
- package/components/MenuManager/MenuTreeviewNode.vue +208 -0
- package/components/PagePreview.vue +58 -0
- package/components/SnackBar.vue +5 -7
- package/components/ThemeToggle.vue +13 -0
- package/components/layout/Sidebar/Sidebar.vue +48 -39
- package/components/layout/Sidebar/SidebarList.vue +11 -4
- package/components/layout/Sidebar/SidebarListItem.vue +113 -13
- package/components/layout/Sidebar/SidebarProfile.vue +42 -0
- package/components/layout/Sidebar/SidebarTitle.vue +45 -0
- package/components/layout/Topbar/Topbar.vue +11 -9
- package/components/layout/routebuilder.js +2 -2
- package/defaults/i18n.js +37 -0
- package/defaults/vuetify.js +34 -0
- package/layouts/default.vue +35 -11
- package/layouts/empty.vue +10 -0
- package/module.js +7 -5
- package/package.json +6 -4
- package/pages/index.vue +19 -17
- package/static/mapo/ckeditor/plugins/image2/dev/assets/image1.jpg +0 -0
- package/static/mapo/ckeditor/plugins/image2/dev/assets/image2.jpg +0 -0
- package/static/mapo/ckeditor/plugins/image2/dev/contents.css +35 -0
- package/static/mapo/ckeditor/plugins/image2/dev/image2.html +338 -0
- package/static/mapo/ckeditor/plugins/image2/dialogs/image2.js +557 -0
- package/static/mapo/ckeditor/plugins/image2/icons/hidpi/image.png +0 -0
- package/static/mapo/ckeditor/plugins/image2/icons/image.png +0 -0
- package/static/mapo/ckeditor/plugins/image2/lang/af.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/ar.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/az.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/bg.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/bn.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/bs.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/ca.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/cs.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/cy.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/da.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/de-ch.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/de.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/el.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/en-au.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/en-ca.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/en-gb.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/en.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/eo.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/es-mx.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/es.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/et.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/eu.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/fa.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/fi.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/fo.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/fr-ca.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/fr.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/gl.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/gu.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/he.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/hi.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/hr.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/hu.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/id.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/is.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/it.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/ja.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/ka.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/km.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/ko.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/ku.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/lt.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/lv.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/mk.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/mn.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/ms.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/nb.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/nl.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/no.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/oc.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/pl.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/pt-br.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/pt.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/ro.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/ru.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/si.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/sk.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/sl.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/sq.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/sr-latn.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/sr.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/sv.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/th.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/tr.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/tt.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/ug.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/uk.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/vi.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/zh-cn.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/lang/zh.js +21 -0
- package/static/mapo/ckeditor/plugins/image2/plugin.js +1798 -0
- package/static/mapo/ckeditor/plugins/image2/samples/assets/image1.jpg +0 -0
- package/static/mapo/ckeditor/plugins/image2/samples/assets/image2.jpg +0 -0
- package/static/mapo/ckeditor/plugins/image2/samples/image2.html +68 -0
- package/static/mapo/ckeditor/skins/moono/dev/icons16.png +0 -0
- package/static/mapo/ckeditor/skins/moono/dev/icons16.svg +2374 -0
- package/static/mapo/ckeditor/skins/moono/dev/icons32.png +0 -0
- package/static/mapo/ckeditor/skins/moono/dev/icons32.svg +2722 -0
- package/static/mapo/ckeditor/skins/moono/dev/locations.json +144 -0
- package/static/mapo/ckeditor/skins/moono/dialog.css +5 -0
- package/static/mapo/ckeditor/skins/moono/dialog_ie.css +5 -0
- package/static/mapo/ckeditor/skins/moono/dialog_ie7.css +5 -0
- package/static/mapo/ckeditor/skins/moono/dialog_ie8.css +5 -0
- package/static/mapo/ckeditor/skins/moono/dialog_iequirks.css +5 -0
- package/static/mapo/ckeditor/skins/moono/editor.css +5 -0
- package/static/mapo/ckeditor/skins/moono/editor_gecko.css +5 -0
- package/static/mapo/ckeditor/skins/moono/editor_ie.css +5 -0
- package/static/mapo/ckeditor/skins/moono/editor_ie7.css +5 -0
- package/static/mapo/ckeditor/skins/moono/editor_ie8.css +5 -0
- package/static/mapo/ckeditor/skins/moono/editor_iequirks.css +5 -0
- package/static/mapo/ckeditor/skins/moono/icons.png +0 -0
- package/static/mapo/ckeditor/skins/moono/icons_hidpi.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/anchor.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/arrow.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/close.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/hidpi/anchor.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/hidpi/close.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/lock-open.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/lock.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/refresh.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/spinner.gif +0 -0
- package/static/mapo/ckeditor/skins/moono/readme.md +49 -0
- package/static/mapo/ckeditor/skins/moono/skin.js +10 -0
- package/static/mapo/ckeditor/skins/moono-dark/dialog.css +5 -0
- package/static/mapo/ckeditor/skins/moono-dark/dialog_ie.css +5 -0
- package/static/mapo/ckeditor/skins/moono-dark/dialog_ie7.css +5 -0
- package/static/mapo/ckeditor/skins/moono-dark/dialog_ie8.css +5 -0
- package/static/mapo/ckeditor/skins/moono-dark/dialog_iequirks.css +5 -0
- package/static/mapo/ckeditor/skins/moono-dark/editor.css +5 -0
- package/static/mapo/ckeditor/skins/moono-dark/editor_gecko.css +5 -0
- package/static/mapo/ckeditor/skins/moono-dark/editor_ie.css +5 -0
- package/static/mapo/ckeditor/skins/moono-dark/editor_ie7.css +5 -0
- package/static/mapo/ckeditor/skins/moono-dark/editor_ie8.css +5 -0
- package/static/mapo/ckeditor/skins/moono-dark/editor_iequirks.css +5 -0
- package/static/mapo/ckeditor/skins/moono-dark/icons.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/icons_hidpi.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/arrow.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/close.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/close.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/lock-open.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/lock.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/refresh.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/lock-open.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/lock.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/refresh.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/readme.md +51 -0
- package/static/mapo/ckeditor/skins/moono-dark/skin.js +5 -0
- package/static/mapo/tinymce-skins/mapo-dark/content.inline.min.css +7 -0
- package/static/mapo/tinymce-skins/mapo-dark/content.min.css +7 -0
- package/static/mapo/tinymce-skins/mapo-dark/content.mobile.min.css +7 -0
- package/static/mapo/tinymce-skins/mapo-dark/skin.min.css +7 -0
- package/static/mapo/tinymce-skins/mapo-dark/skin.mobile.min.css +7 -0
- package/static/mapo/tinymce-skins/mapo-light/content.inline.min.css +7 -0
- package/static/mapo/tinymce-skins/mapo-light/content.min.css +7 -0
- package/static/mapo/tinymce-skins/mapo-light/content.mobile.min.css +7 -0
- package/static/mapo/tinymce-skins/mapo-light/skin.min.css +7 -0
- package/static/mapo/tinymce-skins/mapo-light/skin.mobile.min.css +7 -0
- package/translations/en-US.js +177 -0
- package/translations/it-IT.js +180 -0
- package/LICENSE.md +0 -20
- package/components/Detail/DetailField.vue +0 -132
- package/components/Detail/defaults.js +0 -55
- package/components/fields/M2mField.vue +0 -95
- package/components/fields/MediaField.vue +0 -195
- package/components/fields/MediaM2mField.vue +0 -238
- package/components/fields/TinyMce/TinyMce.vue +0 -180
- package/components/fields/TinyMce/defaults.js +0 -55
- package/components/layout/Sidebar/SidebarFooter.vue +0 -70
- package/defaults.js +0 -29
- package/layouts/error.vue +0 -45
- /package/components/{fields/TinyMce → Form/fields/wygEditor}/utils/events.js +0 -0
- /package/components/{fields/TinyMce/utils/script.injector.js → Form/fields/wygEditor/utils/tinymce.injector.js} +0 -0
- /package/static/{favicon.ico → mapo/favicon.ico} +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-dialog v-model="dialog" width="90vw">
|
|
3
|
+
<template v-slot:activator="{ on, attrs }">
|
|
4
|
+
<v-btn tile block @click="openPreview(true)" color="primary" class="mb-2">
|
|
5
|
+
{{ $t("mapo.showPreview") }}</v-btn
|
|
6
|
+
>
|
|
7
|
+
</template>
|
|
8
|
+
<v-card class="iframe-card">
|
|
9
|
+
<iframe :src="computedUrl" class="iframe-preview"></iframe>
|
|
10
|
+
</v-card>
|
|
11
|
+
</v-dialog>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<style lang="scss" scoped>
|
|
15
|
+
.iframe-card {
|
|
16
|
+
height: 90vh;
|
|
17
|
+
min-height: 90vh;
|
|
18
|
+
}
|
|
19
|
+
.iframe-preview {
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 100%;
|
|
22
|
+
border: none;
|
|
23
|
+
}
|
|
24
|
+
</style>
|
|
25
|
+
|
|
26
|
+
<script>
|
|
27
|
+
export default {
|
|
28
|
+
name: "PagePreview",
|
|
29
|
+
props: {
|
|
30
|
+
pageUrl: {
|
|
31
|
+
type: String,
|
|
32
|
+
reruired: true,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
data() {
|
|
36
|
+
return {
|
|
37
|
+
dialog: false,
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
methods: {
|
|
41
|
+
openPreview() {
|
|
42
|
+
this.dialog = true;
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
computed: {
|
|
46
|
+
checkifUrlIsAbsolute() {
|
|
47
|
+
return this.pageUrl.startsWith("http");
|
|
48
|
+
},
|
|
49
|
+
computedUrl() {
|
|
50
|
+
if (this.checkifUrlIsAbsolute) {
|
|
51
|
+
return this.pageUrl;
|
|
52
|
+
} else {
|
|
53
|
+
return `/${this.pageUrl}`;
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
</script>
|
package/components/SnackBar.vue
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<v-snackbar v-model="snackbar">
|
|
3
3
|
{{ message }}
|
|
4
4
|
<template v-slot:action="{ attrs }">
|
|
5
|
-
<v-btn color="
|
|
6
|
-
|
|
5
|
+
<v-btn :color="color" text v-bind="attrs" @click="closeSnack">
|
|
6
|
+
{{ $t("mapo.close") }}
|
|
7
7
|
</v-btn>
|
|
8
8
|
</template>
|
|
9
9
|
</v-snackbar>
|
|
@@ -23,7 +23,7 @@ export default {
|
|
|
23
23
|
data: () => ({
|
|
24
24
|
snackbar: false,
|
|
25
25
|
message: null,
|
|
26
|
-
color: "
|
|
26
|
+
color: "primary",
|
|
27
27
|
}),
|
|
28
28
|
computed: {
|
|
29
29
|
...mapGetters({
|
|
@@ -34,7 +34,6 @@ export default {
|
|
|
34
34
|
closeSnack() {
|
|
35
35
|
this.snackbar = false;
|
|
36
36
|
this.message = null;
|
|
37
|
-
this.color = "green";
|
|
38
37
|
},
|
|
39
38
|
},
|
|
40
39
|
|
|
@@ -48,7 +47,7 @@ export default {
|
|
|
48
47
|
if (val) {
|
|
49
48
|
this.snackbar = true;
|
|
50
49
|
this.message = val.message;
|
|
51
|
-
this.color = val.color ||
|
|
50
|
+
this.color = val.color || "primary";
|
|
52
51
|
} else {
|
|
53
52
|
this.closeSnack();
|
|
54
53
|
}
|
|
@@ -57,7 +56,6 @@ export default {
|
|
|
57
56
|
};
|
|
58
57
|
</script>
|
|
59
58
|
|
|
60
|
-
|
|
61
59
|
<docs>
|
|
62
60
|
### Example usage:
|
|
63
61
|
|
|
@@ -68,4 +66,4 @@ this.$mapo.$snack.open({
|
|
|
68
66
|
});
|
|
69
67
|
```
|
|
70
68
|
|
|
71
|
-
</docs>
|
|
69
|
+
</docs>
|
|
@@ -1,46 +1,56 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<v-navigation-drawer
|
|
3
|
-
v-model="
|
|
3
|
+
v-model="drawer"
|
|
4
4
|
:mini-variant.sync="miniVariant"
|
|
5
5
|
width="300"
|
|
6
6
|
:clipped="this.$store.getters['mapo/app/clipped']"
|
|
7
7
|
fixed
|
|
8
8
|
app
|
|
9
9
|
>
|
|
10
|
-
<div class="
|
|
11
|
-
<div>
|
|
12
|
-
<v-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<v-list-item-icon v-else>
|
|
17
|
-
<v-icon>mdi-account</v-icon>
|
|
18
|
-
</v-list-item-icon>
|
|
19
|
-
<v-list-item-title>{{
|
|
20
|
-
this.$mapo.$auth.user.username
|
|
21
|
-
}}</v-list-item-title>
|
|
22
|
-
<v-btn icon @click.stop="miniVariant = !miniVariant">
|
|
23
|
-
<v-icon>mdi-chevron-left</v-icon>
|
|
24
|
-
</v-btn>
|
|
25
|
-
</v-list-item>
|
|
10
|
+
<div class="menu--container">
|
|
11
|
+
<div class="menu--container-top">
|
|
12
|
+
<component v-if="componentExists('MapoSidebarTitleTopSlot')" :is="'MapoSidebarTitleTopSlot'" />
|
|
13
|
+
<component v-if="componentExists('MapoSidebarTitleSlot')" :is="'MapoSidebarTitleSlot'" />
|
|
14
|
+
<SidebarTitle v-else />
|
|
15
|
+
<component v-if="componentExists('MapoSidebarTitleBottomSlot')" :is="'MapoSidebarTitleBottomSlot'" />
|
|
26
16
|
<v-divider></v-divider>
|
|
27
17
|
</div>
|
|
28
|
-
<div class="
|
|
29
|
-
<
|
|
30
|
-
<
|
|
18
|
+
<div class="menu--container-center">
|
|
19
|
+
<component v-if="componentExists('MapoSidebarListTopSlot')" :is="'MapoSidebarListTopSlot'" />
|
|
20
|
+
<component v-if="componentExists('MapoSidebarListSlot')" :is="'MapoSidebarListSlot'" />
|
|
21
|
+
<SidebarList v-else :force-collapse="miniVariant" />
|
|
22
|
+
<component v-if="componentExists('MapoSidebarListBottomSlot')" :is="'MapoSidebarListBottomSlot'" />
|
|
31
23
|
</div>
|
|
24
|
+
<div class="menu--container-bottom">
|
|
25
|
+
<v-divider></v-divider>
|
|
26
|
+
<component v-if="componentExists('MapoSidebarListFooterTopSlot')" :is="'MapoSidebarListFooterTopSlot'" />
|
|
27
|
+
<component v-if="componentExists('MapoSidebarListFooterSlot')" :is="'MapoSidebarListFooterSlot'" />
|
|
28
|
+
<SidebarList v-else footer :force-collapse="miniVariant" />
|
|
29
|
+
<component v-if="componentExists('MapoSidebarListFooterBottomSlot')" :is="'MapoSidebarListFooterBottomSlot'" />
|
|
30
|
+
<v-divider></v-divider>
|
|
31
|
+
<component v-if="componentExists('MapoLogoutButtonTopSlot')" :is="'MapoLogoutButtonTopSlot'" />
|
|
32
|
+
<component v-if="componentExists('MapoLogoutButtonSlot')" :is="'MapoLogoutButtonSlot'" />
|
|
33
|
+
<LogoutButton v-else />
|
|
34
|
+
<component v-if="componentExists('MapoLogoutButtonBottomSlot')" :is="'MapoLogoutButtonBottomSlot'" />
|
|
35
|
+
</div>
|
|
32
36
|
</div>
|
|
33
37
|
</v-navigation-drawer>
|
|
34
38
|
</template>
|
|
35
39
|
|
|
36
40
|
<style lang="scss" scoped>
|
|
37
|
-
|
|
38
|
-
.menu_container {
|
|
41
|
+
.menu--container {
|
|
39
42
|
display: flex;
|
|
40
43
|
flex-direction: column;
|
|
41
44
|
height: 100%;
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
&-top{
|
|
46
|
+
justify-self: flex-start;
|
|
47
|
+
}
|
|
48
|
+
&-center{
|
|
49
|
+
flex: 1;
|
|
50
|
+
}
|
|
51
|
+
&-bottom{
|
|
52
|
+
justify-self: flex-end;
|
|
53
|
+
}
|
|
44
54
|
}
|
|
45
55
|
</style>
|
|
46
56
|
|
|
@@ -48,13 +58,8 @@
|
|
|
48
58
|
// @vuese
|
|
49
59
|
export default {
|
|
50
60
|
name: "Sidebar",
|
|
51
|
-
data() {
|
|
52
|
-
return {
|
|
53
|
-
miniVariant: false
|
|
54
|
-
};
|
|
55
|
-
},
|
|
56
61
|
computed: {
|
|
57
|
-
|
|
62
|
+
drawer: {
|
|
58
63
|
get() {
|
|
59
64
|
return this.$store.getters["mapo/app/drawer"];
|
|
60
65
|
},
|
|
@@ -62,18 +67,22 @@ export default {
|
|
|
62
67
|
if (this.$store.getters["mapo/app/drawer"] !== value)
|
|
63
68
|
this.$store.dispatch("mapo/app/toggleSidebarDrawer");
|
|
64
69
|
return value;
|
|
65
|
-
}
|
|
70
|
+
},
|
|
66
71
|
},
|
|
67
|
-
|
|
68
|
-
|
|
72
|
+
miniVariant: {
|
|
73
|
+
get() {
|
|
74
|
+
return this.$store.getters["mapo/app/minivariant"];
|
|
75
|
+
},
|
|
76
|
+
set(value) {
|
|
77
|
+
if (this.$store.getters["mapo/app/minivariant"] !== value)
|
|
78
|
+
this.$store.dispatch("mapo/app/toggleSidebarMinivariant");
|
|
79
|
+
return value;
|
|
80
|
+
},
|
|
69
81
|
},
|
|
70
|
-
avatar() {
|
|
71
|
-
return this.$mapo.$auth.user.avatar;
|
|
72
|
-
}
|
|
73
82
|
},
|
|
74
|
-
methods:
|
|
75
|
-
|
|
76
|
-
return
|
|
83
|
+
methods:{
|
|
84
|
+
componentExists(name){
|
|
85
|
+
return name in this.$options.components;
|
|
77
86
|
}
|
|
78
87
|
}
|
|
79
88
|
};
|
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
:key="i"
|
|
6
6
|
:link="item.link"
|
|
7
7
|
:label="item.label"
|
|
8
|
+
:meta="item.meta"
|
|
8
9
|
:childrens="item.childrens"
|
|
9
10
|
:icon="item.icon"
|
|
10
11
|
:force-collapse="forceCollapse"
|
|
12
|
+
:spider-menu="spiderMenu"
|
|
11
13
|
/>
|
|
12
14
|
</v-list>
|
|
13
15
|
</template>
|
|
@@ -19,19 +21,24 @@ import { buildRoutes } from "../routebuilder";
|
|
|
19
21
|
export default {
|
|
20
22
|
name: "SidebarList",
|
|
21
23
|
props: {
|
|
22
|
-
|
|
24
|
+
footer: Boolean,
|
|
25
|
+
forceCollapse: Boolean,
|
|
26
|
+
spiderMenu: {
|
|
23
27
|
type: Boolean,
|
|
24
|
-
default
|
|
28
|
+
default() {
|
|
29
|
+
const { spiderMenu } = this.$mapo.$options?.ui?.sidebar || {};
|
|
30
|
+
return spiderMenu == undefined ? true : spiderMenu;
|
|
31
|
+
}
|
|
25
32
|
}
|
|
26
33
|
},
|
|
27
34
|
data() {
|
|
28
35
|
return {
|
|
29
|
-
defaultIcon: ({label}) => `mdi-alpha-${label[0]}-
|
|
36
|
+
defaultIcon: ({label}) => `mdi-alpha-${label[0]}-box-${ this.footer ? '' : 'outline'}`.toLowerCase(),
|
|
30
37
|
routes: this.routes,
|
|
31
38
|
};
|
|
32
39
|
},
|
|
33
40
|
mounted() {
|
|
34
|
-
this.routes = this.buildRoutes(this.$router.options.routes.filter(
|
|
41
|
+
this.routes = this.buildRoutes(this.$router.options.routes.filter(({ meta }) => !!meta?.sidebarFooter == this.footer));
|
|
35
42
|
},
|
|
36
43
|
methods: {
|
|
37
44
|
buildRoutes(routes) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
2
|
+
<div v-if="userCanSee" :class="{ child, expanded, 'spider-menu': spiderMenu }">
|
|
3
3
|
<v-list-item
|
|
4
4
|
:style="indent"
|
|
5
5
|
:exact-path="expanded"
|
|
6
|
+
:input-value="!expanded && !link && activeChild"
|
|
6
7
|
@click.native="!link && (expanded = !expanded)"
|
|
7
8
|
link
|
|
8
9
|
:to="link"
|
|
@@ -11,7 +12,7 @@
|
|
|
11
12
|
<v-icon>{{ icon }}</v-icon>
|
|
12
13
|
</v-list-item-icon>
|
|
13
14
|
<v-list-item-title>
|
|
14
|
-
{{ label }}
|
|
15
|
+
{{ label.translate ? $t(label.translate) : label }}
|
|
15
16
|
</v-list-item-title>
|
|
16
17
|
<v-icon
|
|
17
18
|
class="expand-icon"
|
|
@@ -22,17 +23,23 @@
|
|
|
22
23
|
>
|
|
23
24
|
</v-list-item>
|
|
24
25
|
|
|
25
|
-
<div
|
|
26
|
+
<div
|
|
27
|
+
class="child-menu"
|
|
28
|
+
:style="indent"
|
|
29
|
+
v-if="childrens.length && expanded && !forceCollapse"
|
|
30
|
+
>
|
|
26
31
|
<SidebarListItem
|
|
27
|
-
class="sidebar__list__item"
|
|
28
32
|
v-for="(item, i) in childrens"
|
|
29
33
|
:key="i"
|
|
30
|
-
:force-collapse="forceCollapse"
|
|
31
34
|
:link="item.link"
|
|
32
35
|
:label="item.label"
|
|
36
|
+
:meta="item.meta"
|
|
33
37
|
:childrens="item.childrens"
|
|
34
38
|
:depth="(depth || 0) + 1"
|
|
35
39
|
:icon="item.icon"
|
|
40
|
+
:force-collapse="forceCollapse"
|
|
41
|
+
:spider-menu="spiderMenu"
|
|
42
|
+
child
|
|
36
43
|
/>
|
|
37
44
|
</div>
|
|
38
45
|
</div>
|
|
@@ -41,6 +48,17 @@
|
|
|
41
48
|
<style lang="scss" scoped>
|
|
42
49
|
@import "@mapomodule/uikit/assets/variables.scss";
|
|
43
50
|
|
|
51
|
+
.v-list-item::after {
|
|
52
|
+
content: "";
|
|
53
|
+
position: absolute;
|
|
54
|
+
background: rgba(0, 0, 0, 0.2);
|
|
55
|
+
height: 100%;
|
|
56
|
+
width: 4px;
|
|
57
|
+
left: 0;
|
|
58
|
+
}
|
|
59
|
+
.v-list-item.v-list-item--active::after {
|
|
60
|
+
background: var(--v-primary-base);
|
|
61
|
+
}
|
|
44
62
|
.expand-icon {
|
|
45
63
|
margin: 0 0 0 auto;
|
|
46
64
|
cursor: pointer;
|
|
@@ -49,6 +67,59 @@
|
|
|
49
67
|
border-radius: 50%;
|
|
50
68
|
}
|
|
51
69
|
}
|
|
70
|
+
.spider-menu.child {
|
|
71
|
+
.v-list-item__icon {
|
|
72
|
+
&::after {
|
|
73
|
+
content: "";
|
|
74
|
+
position: absolute;
|
|
75
|
+
width: 5px;
|
|
76
|
+
height: 30px;
|
|
77
|
+
top: -9px;
|
|
78
|
+
margin-left: -4px;
|
|
79
|
+
border-bottom: solid 3px #acacac;
|
|
80
|
+
border-left: solid 3px #acacac;
|
|
81
|
+
z-index: -1;
|
|
82
|
+
}
|
|
83
|
+
&::before {
|
|
84
|
+
content: "";
|
|
85
|
+
position: absolute;
|
|
86
|
+
width: 5px;
|
|
87
|
+
height: 10px;
|
|
88
|
+
top: 21px;
|
|
89
|
+
margin-left: -4px;
|
|
90
|
+
border-left: solid 3px #acacac;
|
|
91
|
+
z-index: -1;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
.child-menu {
|
|
95
|
+
position: relative;
|
|
96
|
+
&::after {
|
|
97
|
+
content: "";
|
|
98
|
+
position: absolute;
|
|
99
|
+
width: 0px;
|
|
100
|
+
height: 100%;
|
|
101
|
+
top: -9px;
|
|
102
|
+
margin-left: -4px;
|
|
103
|
+
border-left: solid 3px #acacac;
|
|
104
|
+
z-index: -1;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
.spider-menu.child:last-child {
|
|
109
|
+
.v-list-item__icon {
|
|
110
|
+
&::before {
|
|
111
|
+
height: 0px;
|
|
112
|
+
}
|
|
113
|
+
&::after {
|
|
114
|
+
border-bottom-left-radius: 3px;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
.child-menu {
|
|
118
|
+
&::after {
|
|
119
|
+
height: 0px;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
52
123
|
</style>
|
|
53
124
|
|
|
54
125
|
<script>
|
|
@@ -56,30 +127,59 @@ export default {
|
|
|
56
127
|
name: "SidebarListItem",
|
|
57
128
|
data() {
|
|
58
129
|
return {
|
|
59
|
-
expanded: false
|
|
130
|
+
expanded: false,
|
|
131
|
+
nestDepth: 14,
|
|
60
132
|
};
|
|
61
133
|
},
|
|
62
134
|
computed: {
|
|
63
135
|
indent() {
|
|
64
136
|
return {
|
|
65
|
-
paddingLeft: `calc(1rem + ${+this.depth *
|
|
66
|
-
marginLeft:
|
|
137
|
+
paddingLeft: `calc(1rem + ${+this.depth * this.nestDepth}px)`,
|
|
138
|
+
marginLeft:
|
|
139
|
+
this.depth > 1 && `calc(-1rem - ${(this.depth - 1) * this.nestDepth}px)`,
|
|
67
140
|
};
|
|
68
141
|
},
|
|
69
142
|
rotate() {
|
|
70
143
|
return {
|
|
71
144
|
transform: this.expanded ? "rotate(180deg)" : "rotate(0deg)",
|
|
72
|
-
transition: "transform 225ms cubic-bezier(0.4, 0, 0.2, 1)"
|
|
145
|
+
transition: "transform 225ms cubic-bezier(0.4, 0, 0.2, 1)",
|
|
73
146
|
};
|
|
74
|
-
}
|
|
147
|
+
},
|
|
148
|
+
activeChild() {
|
|
149
|
+
return (this.childrens || []).some((child) =>
|
|
150
|
+
this.$nuxt.$route.path.startsWith(child.link)
|
|
151
|
+
);
|
|
152
|
+
},
|
|
153
|
+
userCanSee() {
|
|
154
|
+
return this.checkPermissions();
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
methods: {
|
|
158
|
+
checkPermissions(child = undefined) {
|
|
159
|
+
const item = child || this;
|
|
160
|
+
const middleware = this.$mapo.$auth.getRouteMiddlewares({ meta: item.meta });
|
|
161
|
+
if (middleware.includes("permissions")) {
|
|
162
|
+
const { model } = item.meta?.permissions || {};
|
|
163
|
+
return this.$store.getters["mapo/user/hasModelPermission"](model, "view");
|
|
164
|
+
}
|
|
165
|
+
if (middleware.includes("auth")) {
|
|
166
|
+
return this.$mapo.$auth.user.isLoggedIn;
|
|
167
|
+
}
|
|
168
|
+
return (
|
|
169
|
+
item.childrens.length == 0 || item.childrens.some((c) => this.checkPermissions(c))
|
|
170
|
+
);
|
|
171
|
+
},
|
|
75
172
|
},
|
|
76
173
|
props: {
|
|
77
174
|
link: String,
|
|
78
|
-
label: String,
|
|
175
|
+
label: String | Object,
|
|
79
176
|
icon: String,
|
|
80
177
|
childrens: Array,
|
|
178
|
+
meta: Object,
|
|
81
179
|
depth: Number,
|
|
82
|
-
forceCollapse: Boolean
|
|
83
|
-
|
|
180
|
+
forceCollapse: Boolean,
|
|
181
|
+
child: Boolean,
|
|
182
|
+
spiderMenu: Boolean,
|
|
183
|
+
},
|
|
84
184
|
};
|
|
85
185
|
</script>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-list-item>
|
|
3
|
+
<v-list-item-avatar v-if="avatar">
|
|
4
|
+
<v-img :src="avatar"></v-img>
|
|
5
|
+
</v-list-item-avatar>
|
|
6
|
+
<v-list-item-icon v-else>
|
|
7
|
+
<v-icon>mdi-account</v-icon>
|
|
8
|
+
</v-list-item-icon>
|
|
9
|
+
<v-list-item-title>
|
|
10
|
+
<span v-if="isLoggedIn">
|
|
11
|
+
{{ username }}
|
|
12
|
+
</span>
|
|
13
|
+
<NuxtLink v-else to="/login">{{ $t("mapo.login") }}</NuxtLink>
|
|
14
|
+
</v-list-item-title>
|
|
15
|
+
<v-btn icon @click.stop="toggleMiniVariant">
|
|
16
|
+
<v-icon>mdi-chevron-left</v-icon>
|
|
17
|
+
</v-btn>
|
|
18
|
+
</v-list-item>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
// @vuese
|
|
24
|
+
export default {
|
|
25
|
+
computed: {
|
|
26
|
+
username() {
|
|
27
|
+
return this.isLoggedIn ? this.$mapo.$auth.user.username : "";
|
|
28
|
+
},
|
|
29
|
+
avatar() {
|
|
30
|
+
return this.$mapo.$auth.user.avatar;
|
|
31
|
+
},
|
|
32
|
+
isLoggedIn() {
|
|
33
|
+
return this.$mapo.$auth.user.isLoggedIn;
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
methods: {
|
|
37
|
+
toggleMiniVariant() {
|
|
38
|
+
this.$store.dispatch("mapo/app/toggleSidebarMinivariant");
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
</script>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-list-item class="sidebar-title--container">
|
|
3
|
+
<v-list-item-avatar class="sidebar-title--logo" v-if="logo">
|
|
4
|
+
<v-img :src="logo"></v-img>
|
|
5
|
+
</v-list-item-avatar>
|
|
6
|
+
<v-list-item-icon v-else>
|
|
7
|
+
<v-icon color="secondary">mdi-artstation</v-icon>
|
|
8
|
+
</v-list-item-icon>
|
|
9
|
+
<v-list-item-title>
|
|
10
|
+
<b>{{title}}</b>
|
|
11
|
+
</v-list-item-title>
|
|
12
|
+
<v-btn icon @click.stop="toggleMiniVariant">
|
|
13
|
+
<v-icon>mdi-chevron-left</v-icon>
|
|
14
|
+
</v-btn>
|
|
15
|
+
</v-list-item>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<style lang="scss">
|
|
19
|
+
.sidebar-title--container{
|
|
20
|
+
background: var(--v-primary-base);
|
|
21
|
+
color: var(--v-secondary-base);
|
|
22
|
+
}
|
|
23
|
+
.sidebar-title--logo{
|
|
24
|
+
left: -8px;
|
|
25
|
+
}
|
|
26
|
+
</style>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
// @vuese
|
|
30
|
+
export default {
|
|
31
|
+
computed:{
|
|
32
|
+
title(){
|
|
33
|
+
return this.$mapo.$options?.ui?.panelName || "BACKOFFICE"
|
|
34
|
+
},
|
|
35
|
+
logo(){
|
|
36
|
+
return this.$mapo.$options?.ui?.panelLogo
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
methods: {
|
|
40
|
+
toggleMiniVariant() {
|
|
41
|
+
this.$store.dispatch("mapo/app/toggleSidebarMinivariant");
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
</script>
|
|
@@ -6,22 +6,24 @@
|
|
|
6
6
|
flat
|
|
7
7
|
dense
|
|
8
8
|
>
|
|
9
|
-
<v-
|
|
10
|
-
<
|
|
9
|
+
<component v-if="componentExists('MapoTopBarLeftSlot')" :is="'MapoTopBarLeftSlot'" />
|
|
10
|
+
<component v-if="componentExists('MapoTopBarToggleIconSlot')" :is="'MapoTopBarToggleIconSlot'" :toggleSidebarDrawer="toggleSidebarDrawer" />
|
|
11
|
+
<v-app-bar-nav-icon v-else @click.stop="toggleSidebarDrawer" />
|
|
12
|
+
<component v-if="componentExists('MapoTopBarTitleSlot')" :is="'MapoTopBarTitleSlot'"/>
|
|
13
|
+
<v-spacer></v-spacer>
|
|
14
|
+
<component v-if="componentExists('MapoTopBarRightSlot')" :is="'MapoTopBarRightSlot'"/>
|
|
11
15
|
</v-app-bar>
|
|
12
16
|
</template>
|
|
13
17
|
|
|
14
18
|
<script>
|
|
15
|
-
|
|
19
|
+
import { mapActions } from 'vuex';
|
|
16
20
|
export default {
|
|
17
21
|
name: "Topbar",
|
|
18
|
-
props: {
|
|
19
|
-
title: String
|
|
20
|
-
},
|
|
21
22
|
methods: {
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
...mapActions("mapo/app", ["toggleSidebarDrawer"]),
|
|
24
|
+
componentExists(name){
|
|
25
|
+
return name in this.$options.components;
|
|
24
26
|
}
|
|
25
|
-
}
|
|
27
|
+
},
|
|
26
28
|
};
|
|
27
29
|
</script>
|
|
@@ -22,7 +22,7 @@ function buildRoutes(routes, defaultIcon) {
|
|
|
22
22
|
|
|
23
23
|
function nestReduce(array, defaultIcon) {
|
|
24
24
|
return array.reduce((stack, route) => {
|
|
25
|
-
const names = route.relPath.split("/");
|
|
25
|
+
const names = (route.relPath || "").split("/");
|
|
26
26
|
if (names.length === 1) {
|
|
27
27
|
stack.push(route);
|
|
28
28
|
} else {
|
|
@@ -31,7 +31,7 @@ function nestReduce(array, defaultIcon) {
|
|
|
31
31
|
if (pIndex === -1) {
|
|
32
32
|
const label = (route.meta && route.meta.parentLabel) || name
|
|
33
33
|
const icon = (route.meta && route.meta.parentIcon) || getDefaultIcon({ route, label }, defaultIcon)
|
|
34
|
-
stack.push({ name, label, icon, childrens: [] });
|
|
34
|
+
stack.push({ name, label, icon, relPath: name, childrens: [] });
|
|
35
35
|
pIndex = stack.length - 1;
|
|
36
36
|
}
|
|
37
37
|
stack[pIndex].childrens.push(
|
package/defaults/i18n.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
detectBrowserLanguage: {
|
|
3
|
+
useCookie: true,
|
|
4
|
+
cookieKey: "i18n_redirected",
|
|
5
|
+
redirectOn: "root",
|
|
6
|
+
},
|
|
7
|
+
locales: [
|
|
8
|
+
{
|
|
9
|
+
code: "en",
|
|
10
|
+
name: "English",
|
|
11
|
+
file: "en-US.js",
|
|
12
|
+
iso: "en-US",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
code: "it",
|
|
16
|
+
name: "Italiano",
|
|
17
|
+
file: "it-IT.js",
|
|
18
|
+
iso: "it-IT",
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
lazy: true,
|
|
22
|
+
langDir: __dirname + "/../translations/",
|
|
23
|
+
defaultLocale: "en",
|
|
24
|
+
strategy: "no_prefix",
|
|
25
|
+
onBeforeLanguageSwitch: (oldLocale, newLocale, isInitialSetup, context) => {
|
|
26
|
+
const locale =
|
|
27
|
+
context.i18n.locales.find((l) => l.code === newLocale) || {};
|
|
28
|
+
const isRTL = locale.dir === "rtl";
|
|
29
|
+
if (isInitialSetup) {
|
|
30
|
+
context.app.vuetify.preset.rtl = isRTL;
|
|
31
|
+
}
|
|
32
|
+
context.app.vuetify.framework.lang.current = locale.iso
|
|
33
|
+
? locale.iso.split("-")[0]
|
|
34
|
+
: locale.code;
|
|
35
|
+
context.app.vuetify.framework.rtl = isRTL;
|
|
36
|
+
},
|
|
37
|
+
};
|