glib-web 2.5.0 → 3.0.0-beta1
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/.eslintrc.js +0 -0
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/action.js +6 -1
- package/actions/analytics/logEvent.js +0 -0
- package/actions/auth/creditCard.js +0 -0
- package/actions/auth/restart.js +0 -0
- package/actions/auth/saveCsrfToken.js +0 -0
- package/actions/cables/push.js +0 -0
- package/actions/commands/copy.js +0 -0
- package/actions/commands/enqueue.js +17 -0
- package/actions/components/update.js +13 -14
- package/actions/dialogs/alert.js +0 -0
- package/actions/dialogs/close.js +0 -0
- package/actions/dialogs/notification.js +0 -0
- package/actions/dialogs/oauth.js +0 -0
- package/actions/dialogs/open.js +0 -0
- package/actions/dialogs/options.js +0 -0
- package/actions/dialogs/reload.js +0 -0
- package/actions/dialogs/show.js +0 -0
- package/actions/http/delete.js +0 -0
- package/actions/http/patch.js +0 -0
- package/actions/http/post.js +0 -0
- package/actions/http/put.js +0 -0
- package/actions/panels/scrollTo.js +0 -0
- package/actions/panels/scrollToBottom.js +0 -0
- package/actions/runMultiple.js +0 -0
- package/actions/sheets/select.js +0 -0
- package/actions/snackbars/alert.js +0 -0
- package/actions/snackbars/select.js +0 -0
- package/actions/timeouts/set.js +0 -0
- package/actions/tours/start.js +0 -0
- package/actions/windows/close.js +0 -0
- package/actions/windows/closeAll.js +0 -0
- package/actions/windows/closeWithReload.js +0 -0
- package/actions/windows/open.js +0 -0
- package/actions/windows/openWeb.js +0 -0
- package/actions/windows/print.js +0 -0
- package/actions/windows/refreshState.js +0 -0
- package/actions/windows/reload.js +0 -0
- package/actions/ws/push.js +0 -0
- package/app.vue +25 -26
- package/components/_button.vue +21 -28
- package/components/_chip.vue +14 -19
- package/components/_dropdownMenu.vue +10 -23
- package/components/_icon.vue +5 -5
- package/components/_message.vue +0 -0
- package/components/_responsive.vue +7 -21
- package/components/avatar.vue +11 -15
- package/components/banners/alert.vue +2 -7
- package/components/banners/select.vue +18 -30
- package/components/button.vue +5 -5
- package/components/calendar.vue +0 -0
- package/components/component.vue +96 -101
- package/components/datetime.vue +0 -0
- package/components/fab.vue +0 -0
- package/components/fields/_patternText.vue +5 -19
- package/components/fields/_select.vue +7 -28
- package/components/fields/autocomplete.vue +5 -21
- package/components/fields/check.vue +19 -11
- package/components/fields/country/countries.js +0 -0
- package/components/fields/country/field.vue +9 -27
- package/components/fields/country/regions.js +0 -0
- package/components/fields/creditCard.vue +0 -0
- package/components/fields/date.vue +5 -5
- package/components/fields/datetime.vue +5 -5
- package/components/fields/dynamicSelect.vue +8 -29
- package/components/fields/file.vue +0 -0
- package/components/fields/googlePlace.vue +0 -0
- package/components/fields/hidden.vue +0 -0
- package/components/fields/location.vue +0 -0
- package/components/fields/newRichText.vue +66 -53
- package/components/fields/otpField.vue +6 -14
- package/components/fields/phone/countries.js +0 -0
- package/components/fields/phone/field.vue +60 -78
- package/components/fields/phone/sprite.css +0 -0
- package/components/fields/radio.vue +16 -23
- package/components/fields/rating.vue +9 -16
- package/components/fields/richText.vue +8 -28
- package/components/fields/select.vue +10 -7
- package/components/fields/stripe/stripeFields.vue +0 -0
- package/components/fields/stripe/stripeIndividualFields.vue +0 -0
- package/components/fields/stripeExternalAccount.vue +10 -24
- package/components/fields/stripeToken.vue +0 -0
- package/components/fields/submit.vue +0 -0
- package/components/fields/text.vue +24 -40
- package/components/fields/textarea.vue +13 -27
- package/components/fields/timeZone.vue +9 -6
- package/components/fields/timer.vue +3 -10
- package/components/h1.vue +0 -0
- package/components/h2.vue +0 -0
- package/components/h3.vue +0 -0
- package/components/h5.vue +0 -0
- package/components/h6.vue +0 -0
- package/components/hr.vue +0 -0
- package/components/html.vue +0 -0
- package/components/icon.vue +0 -0
- package/components/image.vue +13 -20
- package/components/label.vue +0 -0
- package/components/markdown.vue +15 -8
- package/components/mixins/chart/annotation.js +0 -0
- package/components/mixins/chart/tooltip.js +0 -0
- package/components/mixins/dataset.js +0 -0
- package/components/mixins/events.js +17 -6
- package/components/mixins/extension.js +0 -0
- package/components/mixins/list/autoload.js +0 -0
- package/components/mixins/longClick.js +0 -0
- package/components/mixins/scrolling.js +0 -0
- package/components/mixins/styles.js +18 -15
- package/components/mixins/table/autoload.js +0 -0
- package/components/mixins/table/export.js +0 -0
- package/components/mixins/table/import.js +0 -0
- package/components/mixins/text.js +0 -0
- package/components/mixins/ws/actionCable.js +0 -0
- package/components/mixins/ws/phoenixSocket.js +0 -0
- package/components/multimedia/video.vue +0 -0
- package/components/p.vue +0 -0
- package/components/panels/carousel.vue +0 -0
- package/components/panels/column.vue +5 -5
- package/components/panels/custom.vue +15 -15
- package/components/panels/flow.vue +19 -13
- package/components/panels/form.vue +17 -28
- package/components/panels/grid.vue +15 -9
- package/components/panels/horizontal.vue +149 -18
- package/components/panels/list.vue +63 -70
- package/components/panels/responsive.vue +13 -33
- package/components/panels/scroll.vue +0 -0
- package/components/panels/split.vue +2 -2
- package/components/panels/table.vue +27 -61
- package/components/panels/timeline.vue +20 -30
- package/components/panels/vertical.vue +9 -14
- package/components/panels/web.vue +0 -0
- package/components/progressbar.vue +0 -0
- package/components/spacer.vue +0 -0
- package/components/switch.vue +0 -0
- package/components/tabBar.vue +27 -19
- package/index.js +68 -72
- package/keys.js +0 -0
- package/nav/appbar.vue +4 -4
- package/nav/dialog.vue +24 -34
- package/nav/drawer.vue +39 -51
- package/nav/drawerButton.vue +5 -7
- package/nav/drawerLabel.vue +2 -3
- package/nav/sheet.vue +18 -24
- package/nav/snackbar.vue +16 -26
- package/package.json +10 -11
- package/plugins/driverCustomBehavior.js +1 -1
- package/plugins/updatableComponent.js +1 -7
- package/plugins/vuetify.js +27 -0
- package/settings.json.example +0 -0
- package/static/plugins/alignment/alignment.js +0 -0
- package/static/plugins/alignment/alignment.min.js +0 -0
- package/static/plugins/beyondgrammar/beyondgrammar.js +0 -0
- package/static/plugins/beyondgrammar/beyondgrammar.min.js +0 -0
- package/static/plugins/blockcode/blockcode.js +0 -0
- package/static/plugins/blockcode/blockcode.min.js +0 -0
- package/static/plugins/clips/clips.js +0 -0
- package/static/plugins/clips/clips.min.js +0 -0
- package/static/plugins/counter/counter.js +0 -0
- package/static/plugins/counter/counter.min.js +0 -0
- package/static/plugins/definedlinks/definedlinks.js +0 -0
- package/static/plugins/definedlinks/definedlinks.min.js +0 -0
- package/static/plugins/handle/handle.js +0 -0
- package/static/plugins/handle/handle.min.js +0 -0
- package/static/plugins/icons/icons.js +0 -0
- package/static/plugins/icons/icons.min.js +0 -0
- package/static/plugins/imageposition/imageposition.js +0 -0
- package/static/plugins/imageposition/imageposition.min.js +0 -0
- package/static/plugins/inlineformat/inlineformat.js +0 -0
- package/static/plugins/inlineformat/inlineformat.min.js +0 -0
- package/static/plugins/removeformat/removeformat.js +0 -0
- package/static/plugins/removeformat/removeformat.min.js +0 -0
- package/static/plugins/selector/selector.js +0 -0
- package/static/plugins/selector/selector.min.js +0 -0
- package/static/plugins/specialchars/specialchars.js +0 -0
- package/static/plugins/specialchars/specialchars.min.js +0 -0
- package/static/plugins/textdirection/textdirection.js +0 -0
- package/static/plugins/textdirection/textdirection.min.js +0 -0
- package/static/plugins/textexpander/textexpander.js +0 -0
- package/static/plugins/textexpander/textexpander.min.js +0 -0
- package/static/plugins/underline/underline.js +0 -0
- package/static/plugins/underline/underline.min.js +0 -0
- package/static/redactorx.css +0 -0
- package/static/redactorx.js +0 -0
- package/static/redactorx.min.css +0 -0
- package/static/redactorx.min.js +0 -0
- package/static/redactorx.usm.min.js +0 -0
- package/styles/test.sass +0 -0
- package/styles/test.scss +0 -0
- package/templates/_menu.vue +0 -0
- package/templates/comment.vue +42 -19
- package/templates/featured.vue +8 -9
- package/templates/thumbnail-old.vue +188 -0
- package/templates/thumbnail.vue +5 -188
- package/templates/unsupported.vue +0 -0
- package/tsconfig.json +1 -1
- package/utils/dom.js +0 -0
- package/utils/eventBus.js +9 -2
- package/utils/helper.js +0 -0
- package/utils/history.js +7 -4
- package/utils/http.js +7 -2
- package/utils/launch.js +43 -51
- package/utils/mime_type.js +0 -0
- package/utils/private/ws.js +0 -0
- package/utils/public.js +6 -0
- package/utils/queue.js +110 -0
- package/utils/settings.js +3 -1
- package/utils/type.js +0 -0
- package/utils/uploader.js +0 -0
package/nav/dialog.vue
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<v-dialog
|
|
3
|
-
v-model="model"
|
|
4
|
-
:width="spec.width || 600"
|
|
5
|
-
:dark="false"
|
|
6
|
-
:fullscreen="fullscreen"
|
|
7
|
-
:sm-and-down="false"
|
|
8
|
-
:persistent="true"
|
|
9
|
-
>
|
|
2
|
+
<v-dialog :width="spec.width || 600" v-model="model" :fullscreen="fullscreen" :persistent="true">
|
|
10
3
|
<v-card>
|
|
11
4
|
<v-card-title v-if="title || showClose" class="text-h5" primary-title>
|
|
12
5
|
{{ title }}
|
|
13
|
-
<v-btn v-if="showClose"
|
|
14
|
-
<v-icon>close</v-icon>
|
|
15
|
-
</v-btn>
|
|
6
|
+
<v-btn v-if="showClose" icon="close" size="small" :flat="true" class="dialog-close" @click.native="close" />
|
|
16
7
|
</v-card-title>
|
|
17
8
|
|
|
18
9
|
<component :is="containerComponent" :spec="formSpec">
|
|
@@ -27,13 +18,7 @@
|
|
|
27
18
|
<v-card-actions v-if="spec.buttons">
|
|
28
19
|
<v-spacer></v-spacer>
|
|
29
20
|
|
|
30
|
-
<v-btn
|
|
31
|
-
v-for="(button, index) in spec.buttons"
|
|
32
|
-
:key="index"
|
|
33
|
-
color="primary"
|
|
34
|
-
text
|
|
35
|
-
@click="click(button, $event)"
|
|
36
|
-
>
|
|
21
|
+
<v-btn v-for="(button, index) in spec.buttons" :key="index" color="primary" text @click="click(button, $event)">
|
|
37
22
|
{{ button.text }}
|
|
38
23
|
</v-btn>
|
|
39
24
|
|
|
@@ -46,18 +31,20 @@
|
|
|
46
31
|
<script>
|
|
47
32
|
import Http from "../utils/http";
|
|
48
33
|
import Action from "../action";
|
|
49
|
-
import FormPanel from "../components/panels/form";
|
|
34
|
+
import FormPanel from "../components/panels/form.vue";
|
|
35
|
+
import { getCurrentInstance } from "vue";
|
|
36
|
+
|
|
50
37
|
|
|
51
38
|
export default {
|
|
52
39
|
components: {
|
|
53
|
-
"panels-form": FormPanel
|
|
40
|
+
"panels-form": FormPanel,
|
|
54
41
|
},
|
|
55
42
|
props: {
|
|
56
43
|
spec: { type: Object, required: true }, // Original spec. It might be different from the latest spec (after reloading).
|
|
57
44
|
stack: { type: Array, required: true },
|
|
58
|
-
vueApp: { type: Object, required: true }
|
|
45
|
+
vueApp: { type: Object, required: true },
|
|
59
46
|
},
|
|
60
|
-
data: function() {
|
|
47
|
+
data: function () {
|
|
61
48
|
return {
|
|
62
49
|
title: null,
|
|
63
50
|
message: null,
|
|
@@ -70,7 +57,7 @@ export default {
|
|
|
70
57
|
isFormDirty: false,
|
|
71
58
|
isFormSubmitted: false,
|
|
72
59
|
isMobile: false,
|
|
73
|
-
formSpec: null
|
|
60
|
+
formSpec: null,
|
|
74
61
|
};
|
|
75
62
|
},
|
|
76
63
|
computed: {
|
|
@@ -88,15 +75,16 @@ export default {
|
|
|
88
75
|
} else {
|
|
89
76
|
return false;
|
|
90
77
|
}
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
watch: {
|
|
94
|
-
model: function(val, oldVal) {
|
|
95
|
-
if (!val) {
|
|
96
|
-
this.$destroy();
|
|
97
|
-
}
|
|
98
|
-
}
|
|
78
|
+
},
|
|
99
79
|
},
|
|
80
|
+
// watch: {
|
|
81
|
+
// model: function (val, oldVal) {
|
|
82
|
+
// if (!val) {
|
|
83
|
+
// // this.$destroy();
|
|
84
|
+
// this.$.appContext.app.unmount()
|
|
85
|
+
// }
|
|
86
|
+
// },
|
|
87
|
+
// },
|
|
100
88
|
methods: {
|
|
101
89
|
$ready() {
|
|
102
90
|
this.$root.vueApp = this.vueApp;
|
|
@@ -140,7 +128,7 @@ export default {
|
|
|
140
128
|
this.message = "Loading...";
|
|
141
129
|
}
|
|
142
130
|
const url = Utils.url.appendParams(this.url, { _dialog: "v1" });
|
|
143
|
-
Http.execute({ url: url }, "GET", this, response => {
|
|
131
|
+
Http.execute({ url: url }, "GET", this, (response) => {
|
|
144
132
|
Utils.http.forceComponentUpdate(() => {
|
|
145
133
|
this.urlLoaded = true;
|
|
146
134
|
this.title = response.title;
|
|
@@ -161,8 +149,8 @@ export default {
|
|
|
161
149
|
}
|
|
162
150
|
|
|
163
151
|
this.model = true;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
152
|
+
},
|
|
153
|
+
},
|
|
166
154
|
};
|
|
167
155
|
</script>
|
|
168
156
|
|
|
@@ -171,11 +159,13 @@ export default {
|
|
|
171
159
|
padding: 16px 16px 20px 16px;
|
|
172
160
|
/* white-space: pre-wrap; */
|
|
173
161
|
}
|
|
162
|
+
|
|
174
163
|
.dialog-close {
|
|
175
164
|
right: 16px;
|
|
176
165
|
top: 12px;
|
|
177
166
|
position: absolute;
|
|
178
167
|
}
|
|
168
|
+
|
|
179
169
|
.v-card__text {
|
|
180
170
|
padding: 0 !important;
|
|
181
171
|
}
|
package/nav/drawer.vue
CHANGED
|
@@ -2,75 +2,62 @@
|
|
|
2
2
|
<!-- <v-navigation-drawer app fixed v-model="state" @input="updateState"> -->
|
|
3
3
|
<!-- <v-navigation-drawer mini-variant app v-model="state" @input="updateState"> -->
|
|
4
4
|
|
|
5
|
-
<
|
|
6
|
-
v-model="state"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
:dark="cssClasses.includes('dark')"
|
|
10
|
-
:permanent="cssClasses.includes('permanent')"
|
|
11
|
-
:style="style"
|
|
12
|
-
:expand-on-hover="expandOnHover()"
|
|
13
|
-
:mini-variant.sync="shrunk"
|
|
14
|
-
@input="updateState"
|
|
15
|
-
>
|
|
16
|
-
<template v-if="mini" v-slot:prepend>
|
|
17
|
-
<v-list-item>
|
|
18
|
-
<v-list-item-icon>
|
|
19
|
-
<v-icon v-if="!shrunk">mdi-chevron-left</v-icon>
|
|
20
|
-
<v-icon v-if="shrunk">mdi-chevron-right</v-icon>
|
|
21
|
-
</v-list-item-icon>
|
|
22
|
-
</v-list-item>
|
|
23
|
-
</template>
|
|
5
|
+
<div :class="cssClasses" :style="style">
|
|
6
|
+
<v-navigation-drawer v-model="state" app :dark="cssClasses.includes('dark') || null"
|
|
7
|
+
:permanent="cssClasses.includes('permanent')" :expand-on-hover="expandOnHover()" v-model:mini-variant="shrunk"
|
|
8
|
+
@input="updateState">
|
|
24
9
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
10
|
+
<template v-if="spec.header">
|
|
11
|
+
<panels-responsive :spec="spec.header" />
|
|
12
|
+
</template>
|
|
28
13
|
|
|
29
|
-
|
|
14
|
+
<glib-component v-if="spec.body" :spec="spec.body" />
|
|
30
15
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
16
|
+
<v-list :dense="true" class="pt-0">
|
|
17
|
+
<div v-for="(item, index) in spec.rows" :key="index" class="nav-item">
|
|
18
|
+
<div v-if="item.type == 'button'" class="indicator"></div>
|
|
19
|
+
<v-divider v-if="item.type == 'divider'" />
|
|
20
|
+
<nav-drawerLabel v-else-if="item.type == 'label'" :spec="item" />
|
|
21
|
+
<nav-drawerButton v-else :spec="item" />
|
|
22
|
+
</div>
|
|
23
|
+
</v-list>
|
|
39
24
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
25
|
+
<template v-if="spec.footer" v-slot:append>
|
|
26
|
+
<v-list-item>
|
|
27
|
+
<!-- Display the first line when the drawer is shrunk. Display the second line when the drawer is expanded -->
|
|
28
|
+
<div style="display: none">Show if expand</div>
|
|
29
|
+
<panels-responsive v-if="!shrunk" :spec="spec.footer" />
|
|
30
|
+
</v-list-item>
|
|
31
|
+
</template>
|
|
32
|
+
</v-navigation-drawer>
|
|
33
|
+
</div>
|
|
48
34
|
</template>
|
|
49
35
|
|
|
36
|
+
|
|
50
37
|
<script>
|
|
51
38
|
// import UrlUtils from "../utils/url";
|
|
52
|
-
import NavDrawerButton from "./drawerButton";
|
|
53
|
-
import NavDrawerLabel from "./drawerLabel";
|
|
39
|
+
import NavDrawerButton from "./drawerButton.vue";
|
|
40
|
+
import NavDrawerLabel from "./drawerLabel.vue";
|
|
54
41
|
import bus from "../utils/eventBus";
|
|
55
42
|
|
|
56
43
|
export default {
|
|
57
44
|
components: {
|
|
58
45
|
"nav-drawerButton": NavDrawerButton,
|
|
59
|
-
"nav-drawerLabel": NavDrawerLabel
|
|
46
|
+
"nav-drawerLabel": NavDrawerLabel,
|
|
60
47
|
},
|
|
61
48
|
// props: ["spec", "trigger", "permanent"],
|
|
62
49
|
props: {
|
|
63
50
|
spec: { type: Object, required: true },
|
|
64
51
|
trigger: { type: [Object, Date], default: null },
|
|
65
|
-
permanent: { type: Boolean, required: true }
|
|
52
|
+
permanent: { type: Boolean, required: true },
|
|
66
53
|
},
|
|
67
|
-
data: function() {
|
|
54
|
+
data: function () {
|
|
68
55
|
return {
|
|
69
56
|
// Using null as the starting value for its v-model will initialize the drawer as closed on mobile and as open on desktop.
|
|
70
57
|
// See https://vuetifyjs.com/en/components/navigation-drawers
|
|
71
58
|
state: null,
|
|
72
59
|
mini: true,
|
|
73
|
-
shrunk: true
|
|
60
|
+
shrunk: true,
|
|
74
61
|
};
|
|
75
62
|
},
|
|
76
63
|
computed: {
|
|
@@ -87,7 +74,7 @@ export default {
|
|
|
87
74
|
return this.$styles();
|
|
88
75
|
},
|
|
89
76
|
lgAndAbove() {
|
|
90
|
-
switch (this.$vuetify.
|
|
77
|
+
switch (this.$vuetify.display.name) {
|
|
91
78
|
case "xs":
|
|
92
79
|
case "sm":
|
|
93
80
|
case "md":
|
|
@@ -95,12 +82,12 @@ export default {
|
|
|
95
82
|
default:
|
|
96
83
|
return true;
|
|
97
84
|
}
|
|
98
|
-
}
|
|
85
|
+
},
|
|
99
86
|
},
|
|
100
87
|
watch: {
|
|
101
|
-
trigger: function(val, oldVal) {
|
|
88
|
+
trigger: function (val, oldVal) {
|
|
102
89
|
this.state = !this.state;
|
|
103
|
-
}
|
|
90
|
+
},
|
|
104
91
|
},
|
|
105
92
|
methods: {
|
|
106
93
|
$ready() {
|
|
@@ -116,8 +103,8 @@ export default {
|
|
|
116
103
|
},
|
|
117
104
|
expandOnHover() {
|
|
118
105
|
return this.mini;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
106
|
+
},
|
|
107
|
+
},
|
|
121
108
|
};
|
|
122
109
|
</script>
|
|
123
110
|
|
|
@@ -125,6 +112,7 @@ export default {
|
|
|
125
112
|
.nav-item {
|
|
126
113
|
position: relative;
|
|
127
114
|
}
|
|
115
|
+
|
|
128
116
|
.nav-item:hover .indicator,
|
|
129
117
|
.nav-item .indicator.active {
|
|
130
118
|
display: flex;
|
package/nav/drawerButton.vue
CHANGED
|
@@ -4,13 +4,11 @@
|
|
|
4
4
|
<common-icon :spec="spec.icon" />
|
|
5
5
|
</v-list-item-action>
|
|
6
6
|
|
|
7
|
-
<v-list-item-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</v-list-item-title>
|
|
13
|
-
</v-list-item-content>
|
|
7
|
+
<v-list-item-title>
|
|
8
|
+
<!-- <common-badge :spec="spec"> -->
|
|
9
|
+
{{ spec.text }}
|
|
10
|
+
<!-- </common-badge> -->
|
|
11
|
+
</v-list-item-title>
|
|
14
12
|
</v-list-item>
|
|
15
13
|
</template>
|
|
16
14
|
|
package/nav/drawerLabel.vue
CHANGED
package/nav/sheet.vue
CHANGED
|
@@ -1,27 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<v-
|
|
2
|
+
<v-dialog :width="600" v-model="model">
|
|
3
3
|
<v-list>
|
|
4
|
-
<v-subheader v-if="spec.message">{{ spec.message }}</v-subheader>
|
|
5
|
-
<template v-for="(button, index) of spec.buttons">
|
|
6
|
-
<v-list-item
|
|
7
|
-
:key="index"
|
|
8
|
-
color="primary"
|
|
9
|
-
@click="onClick(button, $event)"
|
|
10
|
-
>
|
|
4
|
+
<v-list-subheader v-if="spec.message">{{ spec.message }}</v-list-subheader>
|
|
5
|
+
<template v-for="(button, index) of spec.buttons" :key="index">
|
|
6
|
+
<v-list-item color="primary" @click="onClick(button, $event)">
|
|
11
7
|
<v-list-item-action v-if="button.icon">
|
|
12
8
|
<common-icon :spec="button.icon" />
|
|
13
9
|
</v-list-item-action>
|
|
14
10
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
|
|
12
|
+
<v-list-item-title>{{ button.text }}</v-list-item-title>
|
|
13
|
+
|
|
18
14
|
<!-- <v-list-item-title>{{ button.text }}</v-list-item-title> -->
|
|
19
15
|
</v-list-item>
|
|
20
16
|
</template>
|
|
21
17
|
</v-list>
|
|
22
|
-
|
|
23
|
-
<v-sheet height="60px"></v-sheet>
|
|
24
|
-
</v-bottom-sheet>
|
|
18
|
+
</v-dialog>
|
|
25
19
|
</template>
|
|
26
20
|
|
|
27
21
|
<script>
|
|
@@ -29,23 +23,23 @@ export default {
|
|
|
29
23
|
props: {
|
|
30
24
|
spec: { type: Object, required: true }
|
|
31
25
|
},
|
|
32
|
-
data: function() {
|
|
26
|
+
data: function () {
|
|
33
27
|
return {
|
|
34
|
-
model:
|
|
28
|
+
model: true
|
|
35
29
|
};
|
|
36
30
|
},
|
|
37
|
-
watch: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
},
|
|
31
|
+
// watch: {
|
|
32
|
+
// model: function (val, oldVal) {
|
|
33
|
+
// if (!val) {
|
|
34
|
+
// this.$destroy();
|
|
35
|
+
// }
|
|
36
|
+
// }
|
|
37
|
+
// },
|
|
44
38
|
methods: {
|
|
45
39
|
$ready() {
|
|
46
40
|
this.model = true;
|
|
47
41
|
},
|
|
48
|
-
onClick: function(spec, event) {
|
|
42
|
+
onClick: function (spec, event) {
|
|
49
43
|
this.model = false;
|
|
50
44
|
|
|
51
45
|
Utils.type.ifFunction(spec.onClickFunction, f => f());
|
package/nav/snackbar.vue
CHANGED
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<v-snackbar
|
|
3
|
-
|
|
4
|
-
:
|
|
5
|
-
:bottom="spec.verticalPosition == 'bottom'"
|
|
6
|
-
:left="spec.horizontalPosition == 'left'"
|
|
7
|
-
:right="spec.horizontalPosition == 'right'"
|
|
8
|
-
:color="color"
|
|
9
|
-
:timeout="spec.timeout"
|
|
10
|
-
>
|
|
2
|
+
<v-snackbar v-model="show" :top="spec.verticalPosition == 'top'" :bottom="spec.verticalPosition == 'bottom'"
|
|
3
|
+
:left="spec.horizontalPosition == 'left'" :right="spec.horizontalPosition == 'right'" :color="color"
|
|
4
|
+
:timeout="spec.timeout">
|
|
11
5
|
<common-message :spec="spec" />
|
|
12
6
|
|
|
13
|
-
<v-btn
|
|
14
|
-
v-for="(button, index) in spec.buttons"
|
|
15
|
-
:key="index"
|
|
16
|
-
text
|
|
17
|
-
@click="click(button, $event)"
|
|
18
|
-
>
|
|
7
|
+
<v-btn v-for="(button, index) in spec.buttons" :key="index" text @click="click(button, $event)">
|
|
19
8
|
{{ button.text }}
|
|
20
9
|
</v-btn>
|
|
21
10
|
|
|
@@ -34,32 +23,33 @@ export default {
|
|
|
34
23
|
spec: { type: Object, required: true },
|
|
35
24
|
vueApp: { type: Object, required: true }
|
|
36
25
|
},
|
|
37
|
-
data: function() {
|
|
26
|
+
data: function () {
|
|
38
27
|
return {
|
|
39
|
-
show:
|
|
28
|
+
show: true,
|
|
40
29
|
color: null,
|
|
41
30
|
indicator: false
|
|
42
31
|
};
|
|
43
32
|
},
|
|
44
|
-
watch: {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
},
|
|
33
|
+
// watch: {
|
|
34
|
+
// model: function (val, oldVal) {
|
|
35
|
+
// if (!val) {
|
|
36
|
+
// // this.$destroy();
|
|
37
|
+
// this.$.appContext.app.unmount()
|
|
38
|
+
// }
|
|
39
|
+
// },
|
|
40
|
+
// },
|
|
51
41
|
methods: {
|
|
52
42
|
$ready() {
|
|
53
43
|
const vm = this;
|
|
54
44
|
this.$type.ifArray(this.spec.styleClasses, val => {
|
|
55
45
|
["success", "info", "error", "warning"].forEach(color => {
|
|
56
46
|
if (val.includes(color)) {
|
|
57
|
-
vm.color = vm.$vuetify.theme.
|
|
47
|
+
vm.color = vm.$vuetify.theme.themes[color];
|
|
58
48
|
}
|
|
59
49
|
});
|
|
60
50
|
});
|
|
61
51
|
},
|
|
62
|
-
click: function(spec) {
|
|
52
|
+
click: function (spec) {
|
|
63
53
|
const onClick = spec["onClick"];
|
|
64
54
|
this.show = false;
|
|
65
55
|
GLib.action.execute(onClick, this);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glib-web",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
"author": "",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@fortawesome/fontawesome-free": "^5.0.0",
|
|
13
|
-
"@mdi/font": "^4.5.95",
|
|
14
12
|
"@rails/actioncable": "^6.0.0",
|
|
15
13
|
"@rails/activestorage": "^6.0.0-alpha",
|
|
16
14
|
"awesome-phonenumber": "2.15.0",
|
|
@@ -22,29 +20,30 @@
|
|
|
22
20
|
"phoenix": "^1.5.3",
|
|
23
21
|
"push.js": "^1.0.12",
|
|
24
22
|
"quill-image-drop-and-paste": "^1.2.14",
|
|
23
|
+
"tiny-emitter": "^2.1.0",
|
|
25
24
|
"turndown": "^7.1.1",
|
|
26
25
|
"turndown-plugin-gfm": "^1.0.2",
|
|
27
|
-
"vue": "2.
|
|
26
|
+
"vue": "3.2.47",
|
|
28
27
|
"vue-chartkick": "^0.6.1",
|
|
29
|
-
"vue-gtag": "^
|
|
28
|
+
"vue-gtag": "^2.0.1",
|
|
30
29
|
"vue-social-sharing": "^3.0.9",
|
|
31
30
|
"vue-youtube": "^1.4.0",
|
|
32
31
|
"vue2-editor": "^2.9.1",
|
|
33
32
|
"vue2-gmap-custom-marker": "^6.1.1",
|
|
34
33
|
"vue2-google-maps": "^0.10.6",
|
|
35
34
|
"vuedraggable": "^2.24.1",
|
|
36
|
-
"vuetify": "
|
|
35
|
+
"vuetify": "3.1.10"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
38
|
"@types/chart.js": "^2.9.34",
|
|
40
|
-
"
|
|
41
|
-
"eslint": "^6.4.0",
|
|
39
|
+
"eslint": "^8.36.0",
|
|
42
40
|
"eslint-config-prettier": "^6.3.0",
|
|
43
41
|
"eslint-loader": "^3.0.0",
|
|
44
42
|
"eslint-plugin-prettier": "^3.1.1",
|
|
45
|
-
"eslint-plugin-vue": "^
|
|
46
|
-
"eslint-plugin-vuetify": "^
|
|
43
|
+
"eslint-plugin-vue": "^9.9.0",
|
|
44
|
+
"eslint-plugin-vuetify": "^2.0.0-beta.2",
|
|
45
|
+
"material-design-icons-iconfont": "^6.7.0",
|
|
47
46
|
"prettier": "^1.18.2",
|
|
48
47
|
"typescript": "^4.9.5"
|
|
49
48
|
}
|
|
50
|
-
}
|
|
49
|
+
}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
install: (Vue, options) => {
|
|
3
|
-
// Vue.prototype.updatables = {};
|
|
4
|
-
|
|
5
3
|
Vue.mixin({
|
|
6
|
-
created: function() {
|
|
4
|
+
created: function () {
|
|
7
5
|
let spec = this.spec;
|
|
8
6
|
if (spec && spec.id && this.$registryEnabled()) {
|
|
9
7
|
GLib.component.register(spec.id, this);
|
|
10
|
-
// Object.assign(this.updatables, {
|
|
11
|
-
// [spec.id]: this
|
|
12
|
-
// });
|
|
13
|
-
// console.log("U", this.updatables);
|
|
14
8
|
}
|
|
15
9
|
},
|
|
16
10
|
methods: {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createVuetify } from "vuetify";
|
|
2
|
+
import 'material-design-icons-iconfont/dist/material-design-icons.css'
|
|
3
|
+
import { aliases, md } from 'vuetify/iconsets/md'
|
|
4
|
+
import 'vuetify/styles'
|
|
5
|
+
import Utils from '../utils/helper'
|
|
6
|
+
import * as components from 'vuetify/components'
|
|
7
|
+
import * as directives from 'vuetify/directives'
|
|
8
|
+
|
|
9
|
+
const opts = {
|
|
10
|
+
components,
|
|
11
|
+
directives,
|
|
12
|
+
icons: {
|
|
13
|
+
defaultSet: 'md',
|
|
14
|
+
aliases,
|
|
15
|
+
sets: {
|
|
16
|
+
md,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
theme: {
|
|
20
|
+
themes: Utils.settings.themes
|
|
21
|
+
},
|
|
22
|
+
display: {
|
|
23
|
+
smAndDown: true
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default new createVuetify(opts)
|
package/settings.json.example
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/static/redactorx.css
CHANGED
|
File without changes
|
package/static/redactorx.js
CHANGED
|
File without changes
|
package/static/redactorx.min.css
CHANGED
|
File without changes
|
package/static/redactorx.min.js
CHANGED
|
File without changes
|
|
File without changes
|
package/styles/test.sass
CHANGED
|
File without changes
|