@hostlink/nuxt-light 1.20.6 → 1.21.1
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/module.mjs +1 -3
- package/dist/runtime/components/l-app.vue +16 -0
- package/dist/runtime/components/l-file-manager copy.vue +750 -0
- package/dist/runtime/components/l-file-manager-move.vue +13 -8
- package/dist/runtime/components/l-file-manager-preview.vue +39 -46
- package/dist/runtime/components/l-file-manager.vue +275 -140
- package/dist/runtime/components/l-login.vue +4 -4
- package/dist/runtime/components/l-user-overview.vue +34 -65
- package/dist/runtime/lib/getCurrentUser.d.ts +2 -1
- package/dist/runtime/lib/getCurrentUser.js +11 -4
- package/dist/runtime/lib/getObject.js +3 -4
- package/dist/runtime/lib/index.d.ts +0 -2
- package/dist/runtime/lib/index.js +0 -2
- package/dist/runtime/lib/isGranted.js +10 -1
- package/dist/runtime/pages/MailLog/index.vue +1 -10
- package/dist/runtime/pages/Permission/all.vue +8 -6
- package/dist/runtime/pages/Permission/export.vue +8 -9
- package/dist/runtime/pages/Permission/index.vue +1 -0
- package/dist/runtime/pages/System/fs.vue +20 -7
- package/dist/runtime/pages/User/setting/bio-auth.vue +22 -19
- package/dist/runtime/pages/User/setting/open_id.vue +9 -11
- package/dist/runtime/plugin.js +6 -2
- package/package.json +2 -2
- package/dist/runtime/lib/listObject.d.ts +0 -2
- package/dist/runtime/lib/listObject.js +0 -10
- package/dist/runtime/lib/loadObject.d.ts +0 -1
- package/dist/runtime/lib/loadObject.js +0 -10
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -278,14 +278,12 @@ const module = defineNuxtModule({
|
|
|
278
278
|
{ name: "f", from },
|
|
279
279
|
{ name: "getApiUrl", from },
|
|
280
280
|
{ name: "getCurrentUser", from },
|
|
281
|
-
{ name: "getObject", from },
|
|
282
|
-
{ name: "loadObject", from },
|
|
281
|
+
{ name: "getObject", from: index },
|
|
283
282
|
{ name: "list", from },
|
|
284
283
|
{ name: "m", from },
|
|
285
284
|
{ name: "q", from },
|
|
286
285
|
{ name: "removeObject", from },
|
|
287
286
|
{ name: "t", from },
|
|
288
|
-
{ name: "listObject", from },
|
|
289
287
|
{ name: "useLight", from: index },
|
|
290
288
|
{ name: "isGranted", from },
|
|
291
289
|
{ name: "sv", from },
|
|
@@ -19,6 +19,7 @@ const app = ref(null)
|
|
|
19
19
|
try {
|
|
20
20
|
app.value = (await q({
|
|
21
21
|
app: {
|
|
22
|
+
version: true,
|
|
22
23
|
company: true,
|
|
23
24
|
companyLogo: true,
|
|
24
25
|
logged: true,
|
|
@@ -43,6 +44,21 @@ try {
|
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
46
|
|
|
47
|
+
const compatible_version = "1.16.0";
|
|
48
|
+
|
|
49
|
+
if (app.value.version != "dev") {
|
|
50
|
+
//check version must be larger or equal to compatible_version
|
|
51
|
+
if (app.value.version <= compatible_version) {
|
|
52
|
+
quasar.dialog({
|
|
53
|
+
title: 'Error',
|
|
54
|
+
message: `This app is not compatible with this version of the server. Please update the light api to version ${compatible_version} or higher.`,
|
|
55
|
+
ok: 'Reload',
|
|
56
|
+
}).onOk(() => {
|
|
57
|
+
window.location.reload();
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
46
62
|
if (app.value.facebookAppId) {
|
|
47
63
|
|
|
48
64
|
//load facebook sdk
|