@hostlink/nuxt-light 1.10.2 → 1.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/runtime/components/L/Revision.vue +3 -2
- package/dist/runtime/components/l-app-main.vue +4 -4
- package/dist/runtime/components/l-app.vue +2 -1
- package/dist/runtime/components/l-card.vue +6 -3
- package/dist/runtime/components/l-file-upload.vue +7 -5
- package/dist/runtime/components/l-form.vue +3 -2
- package/dist/runtime/components/l-login.vue +2 -2
- package/dist/runtime/formkit/Form.vue +3 -2
- package/package.json +2 -2
package/dist/module.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { Dialog, Notify } from "quasar"
|
|
2
|
+
import { useQuasar,Dialog, Notify } from "quasar"
|
|
3
3
|
import { computed, ref, reactive } from "vue";
|
|
4
4
|
import { q, m } from "#imports";
|
|
5
5
|
|
|
6
6
|
import * as Diff2Html from 'diff2html';
|
|
7
7
|
import 'diff2html/bundles/css/diff2html.min.css';
|
|
8
8
|
|
|
9
|
+
const quasar = useQuasar();
|
|
9
10
|
/* const diffs = '--- a/server/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go\n+++ b/server/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go\n@@ -1035,6 +1035,17 @@ func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (\n \n // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n \n+func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {\n+\tr0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)))\n+\tn = int(r0)\n+\tif e1 != 0 {\n+\t\terr = errnoErr(e1)\n+\t}\n+\treturn\n+}\n+\n+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n+\n func read(fd int, p []byte) (n int, err error) {\n \tvar _p0 unsafe.Pointer\n \tif len(p) > 0 {\n';
|
|
10
11
|
const html = Diff2Html.html(diffs, {
|
|
11
12
|
drawFileList: true,
|
|
@@ -57,7 +58,7 @@ const onClick = (revision) => {
|
|
|
57
58
|
|
|
58
59
|
const onRestore = () => {
|
|
59
60
|
//confirm restore
|
|
60
|
-
|
|
61
|
+
quasar.dialog({
|
|
61
62
|
title: 'Restore',
|
|
62
63
|
message: 'Are you sure you want to restore selected fields?',
|
|
63
64
|
ok: 'Yes',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { useRoute, useRouter } from 'vue-router';
|
|
3
3
|
import { useLight, q, m } from "#imports";
|
|
4
|
-
import { useQuasar, Loading
|
|
4
|
+
import { useQuasar, Loading } from 'quasar';
|
|
5
5
|
import { useI18n } from 'vue-i18n';
|
|
6
6
|
import { ref, computed, reactive, provide, watch, toRaw } from 'vue';
|
|
7
7
|
import { useRuntimeConfig } from 'nuxt/app';
|
|
@@ -228,7 +228,7 @@ const onToggleFav = async () => {
|
|
|
228
228
|
return;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
|
|
231
|
+
quasar.dialog({
|
|
232
232
|
title: 'Add to favorite',
|
|
233
233
|
message: 'Enter favorite label',
|
|
234
234
|
prompt: {
|
|
@@ -312,7 +312,7 @@ if (route.fullPath == "/" && my.default_page) {
|
|
|
312
312
|
</q-tooltip>
|
|
313
313
|
<q-menu>
|
|
314
314
|
<q-list>
|
|
315
|
-
<q-item v-for=" language
|
|
315
|
+
<q-item v-for=" language in languages " :key="language.value" v-close-popup clickable
|
|
316
316
|
@click="onChangeLocale(language.value)" :active="language.value == my.language">
|
|
317
317
|
<q-item-section>
|
|
318
318
|
<q-item-label>{{ language.name }}</q-item-label>
|
|
@@ -413,7 +413,7 @@ if (route.fullPath == "/" && my.default_page) {
|
|
|
413
413
|
|
|
414
414
|
<q-page-container :class="containerClass" :style="containerStyle"> <!-- Error message -->
|
|
415
415
|
<slot name="header"></slot>
|
|
416
|
-
<q-banner dense inline-actions class="bg-grey-4 q-ma-md" v-for=" error
|
|
416
|
+
<q-banner dense inline-actions class="bg-grey-4 q-ma-md" v-for=" error in errors " rounded>
|
|
417
417
|
{{ error }}
|
|
418
418
|
|
|
419
419
|
<template v-slot:action>
|
|
@@ -3,7 +3,7 @@ import { provide, ref } from 'vue'
|
|
|
3
3
|
import { useLight, watch } from "#imports";
|
|
4
4
|
import { useRuntimeConfig } from 'nuxt/app'
|
|
5
5
|
import { setApiUrl } from '@hostlink/light'
|
|
6
|
-
import { Dialog } from 'quasar'
|
|
6
|
+
import { useQuasar, Dialog } from 'quasar'
|
|
7
7
|
import { q } from '#imports'
|
|
8
8
|
import { useRoute } from "#vue-router";
|
|
9
9
|
const config = useRuntimeConfig();
|
|
@@ -23,6 +23,7 @@ try {
|
|
|
23
23
|
light.setCompany(app.company);
|
|
24
24
|
light.setCompanyLogo(app.companyLogo);
|
|
25
25
|
} catch (e) {
|
|
26
|
+
|
|
26
27
|
Dialog.create({
|
|
27
28
|
title: 'Error',
|
|
28
29
|
message: 'Error loading api data. Please reload the page.',
|
|
@@ -3,6 +3,8 @@ import { useLight, q, m } from '#imports'
|
|
|
3
3
|
import { ref, computed, useSlots, onMounted } from 'vue'
|
|
4
4
|
import { type QCardProps } from 'quasar';
|
|
5
5
|
|
|
6
|
+
const emit = defineEmits(["close"]);
|
|
7
|
+
|
|
6
8
|
const minimized = defineModel<boolean>("minimized", { default: false })
|
|
7
9
|
const maximized = defineModel<boolean>("maximized", { default: false })
|
|
8
10
|
|
|
@@ -133,8 +135,9 @@ onMounted(async () => {
|
|
|
133
135
|
}
|
|
134
136
|
})
|
|
135
137
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
+
const onClose = () => {
|
|
139
|
+
emit("close");
|
|
140
|
+
}
|
|
138
141
|
|
|
139
142
|
</script>
|
|
140
143
|
<template>
|
|
@@ -161,7 +164,7 @@ onMounted(async () => {
|
|
|
161
164
|
v-if="minimizable && !maximized" />
|
|
162
165
|
<q-btn dense flat @click="maximized = !maximized"
|
|
163
166
|
:icon="maximized ? 'sym_o_select_window_2' : 'sym_o_crop_square'" v-if="maximizable" />
|
|
164
|
-
<q-btn dense flat icon="sym_o_close" v-close-popup v-if="closeable" />
|
|
167
|
+
<q-btn dense flat icon="sym_o_close" v-close-popup v-if="closeable" @click="onClose" />
|
|
165
168
|
</q-bar>
|
|
166
169
|
<slot v-if="!minimized || maximized"></slot>
|
|
167
170
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { ref, computed, useAttrs } from "vue";
|
|
3
3
|
import { useLight, m, q } from '#imports';
|
|
4
|
-
import { Loading,
|
|
4
|
+
import { Loading, useQuasar } from "quasar";
|
|
5
5
|
import { useI18n } from "vue-i18n";
|
|
6
6
|
import { format } from 'quasar'
|
|
7
7
|
const { humanStorageSize } = format
|
|
8
8
|
const light = useLight();
|
|
9
9
|
const i18n = useI18n();
|
|
10
|
+
const quasar = useQuasar();
|
|
10
11
|
|
|
11
12
|
const { system } = await q({
|
|
12
13
|
system: {
|
|
@@ -71,7 +72,7 @@ const rename = ref(true);
|
|
|
71
72
|
const onUploadFile = async () => {
|
|
72
73
|
|
|
73
74
|
if (!uploadFile.value) {
|
|
74
|
-
|
|
75
|
+
quasar.dialog({
|
|
75
76
|
title: "Error",
|
|
76
77
|
message: i18n.t("Please select a file"),
|
|
77
78
|
color: "negative"
|
|
@@ -81,7 +82,7 @@ const onUploadFile = async () => {
|
|
|
81
82
|
|
|
82
83
|
//check file size
|
|
83
84
|
if (uploadFile.value.size > system.maxUploadSize) {
|
|
84
|
-
|
|
85
|
+
quasar.dialog({
|
|
85
86
|
title: "Error",
|
|
86
87
|
message: "File size is too big. Max size is " + humanStorageSize(system.maxUploadSize),
|
|
87
88
|
color: "negative"
|
|
@@ -111,7 +112,7 @@ const onUploadFile = async () => {
|
|
|
111
112
|
uploadFile.value = null;
|
|
112
113
|
return;
|
|
113
114
|
} catch (e: any) {
|
|
114
|
-
|
|
115
|
+
quasar.dialog({
|
|
115
116
|
title: i18n.t("Error"),
|
|
116
117
|
message: e.message,
|
|
117
118
|
});
|
|
@@ -134,7 +135,8 @@ const onUploadFile = async () => {
|
|
|
134
135
|
</q-card-section>
|
|
135
136
|
|
|
136
137
|
<q-card-actions align="right">
|
|
137
|
-
<q-btn flat :label="$t('Cancel')" :color="$light.color" @click="uploadFile = null"
|
|
138
|
+
<q-btn flat :label="$t('Cancel')" :color="$light.color" @click="uploadFile = null"
|
|
139
|
+
v-close-popup></q-btn>
|
|
138
140
|
<q-btn flat :label="$t('Upload')" :color="$light.color" @click="onUploadFile"></q-btn>
|
|
139
141
|
</q-card-actions>
|
|
140
142
|
</l-card>
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { ref } from "vue";
|
|
3
3
|
import { useRouter, useRoute } from "vue-router";
|
|
4
|
-
import {
|
|
4
|
+
import { useQuasar } from "quasar";
|
|
5
5
|
import { model } from "@hostlink/light"
|
|
6
6
|
|
|
7
7
|
const route = useRoute();
|
|
8
8
|
const router = useRouter();
|
|
9
|
+
const quasar = useQuasar();
|
|
9
10
|
|
|
10
11
|
const form = ref(null);
|
|
11
12
|
const props = defineProps({
|
|
@@ -59,7 +60,7 @@ const save = async () => {
|
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
62
|
} catch (e) {
|
|
62
|
-
|
|
63
|
+
quasar.dialog({
|
|
63
64
|
title: "Error",
|
|
64
65
|
message: e.message,
|
|
65
66
|
ok: "OK"
|
|
@@ -50,7 +50,7 @@ const forgetPassword = async () => {
|
|
|
50
50
|
|
|
51
51
|
try {
|
|
52
52
|
await m("forgetPassword", { email: email });
|
|
53
|
-
|
|
53
|
+
qua.dialog({
|
|
54
54
|
title: "Enter your code",
|
|
55
55
|
message: "Please enter the code sent to your email, your code will expire in 10 minutes",
|
|
56
56
|
prompt: {
|
|
@@ -65,7 +65,7 @@ const forgetPassword = async () => {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
if (await m("verifyCode", { code: code, email: email })) {
|
|
68
|
-
|
|
68
|
+
qua.dialog({
|
|
69
69
|
title: "Reset password",
|
|
70
70
|
message: "Please enter your new password",
|
|
71
71
|
prompt: {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { ref } from 'vue'
|
|
3
3
|
import { useRouter, useRoute } from "vue-router";
|
|
4
|
-
import { Dialog, Notify } from "quasar";
|
|
4
|
+
import { useQuasar, Dialog, Notify } from "quasar";
|
|
5
5
|
import { model } from "@hostlink/light"
|
|
6
6
|
|
|
7
7
|
const route = useRoute();
|
|
8
8
|
const router = useRouter();
|
|
9
|
+
const quasar = useQuasar();
|
|
9
10
|
|
|
10
11
|
let props = defineProps({
|
|
11
12
|
context: Object
|
|
@@ -60,7 +61,7 @@ if (!props.context.onSubmit) {
|
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
} catch (e) {
|
|
63
|
-
|
|
64
|
+
quasar.dialog({
|
|
64
65
|
title: "Error",
|
|
65
66
|
message: e.message,
|
|
66
67
|
ok: "OK"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hostlink/nuxt-light",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.4",
|
|
4
4
|
"description": "HostLink Nuxt Light Framework",
|
|
5
5
|
"repository": "@hostlink/nuxt-light",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"diff2html": "^3.4.47",
|
|
45
45
|
"formkit-quasar": "^0.0.15",
|
|
46
46
|
"json-to-graphql-query": "^2.2.5",
|
|
47
|
-
"quasar": "^2.15.
|
|
47
|
+
"quasar": "^2.15.4",
|
|
48
48
|
"vue-i18n": "^9.2.2",
|
|
49
49
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
|
|
50
50
|
},
|