@hostlink/nuxt-light 0.0.4 → 0.0.6
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 +19 -4
- package/dist/runtime/components/l-add-btn.vue +2 -0
- package/dist/runtime/components/l-app-main.vue +2 -1
- package/dist/runtime/components/l-app.vue +1 -1
- package/dist/runtime/components/l-btn.vue +2 -0
- package/dist/runtime/components/l-date-picker.vue +1 -0
- package/dist/runtime/components/l-file-manager-move.vue +2 -0
- package/dist/runtime/components/l-file-manager-preview.vue +1 -0
- package/dist/runtime/components/l-file-manager.vue +4 -2
- package/dist/runtime/components/l-file.vue +1 -0
- package/dist/runtime/components/l-form.vue +3 -0
- package/dist/runtime/components/l-input.vue +1 -0
- package/dist/runtime/components/l-login.vue +3 -1
- package/dist/runtime/components/l-page.vue +2 -1
- package/dist/runtime/components/l-select.vue +1 -1
- package/dist/runtime/components/l-table.vue +3 -2
- package/dist/runtime/components/l-time-picker.vue +2 -1
- package/dist/runtime/light.d.ts +4 -1
- package/dist/runtime/light.mjs +4 -1
- package/dist/runtime/pages/User/profile.vue +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver, addComponentsDir,
|
|
1
|
+
import { defineNuxtModule, createResolver, addComponentsDir, addImports, addPlugin } from '@nuxt/kit';
|
|
2
2
|
import AutoImport from 'unplugin-auto-import/vite';
|
|
3
3
|
|
|
4
4
|
const module = defineNuxtModule({
|
|
@@ -41,9 +41,24 @@ const module = defineNuxtModule({
|
|
|
41
41
|
addComponentsDir({
|
|
42
42
|
path: resolver.resolve("./runtime/components")
|
|
43
43
|
});
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
const composables = resolver.resolve("./runtime/composables");
|
|
45
|
+
addImports([
|
|
46
|
+
{ name: "q", from: composables },
|
|
47
|
+
{ name: "addObject", from: composables },
|
|
48
|
+
{ name: "f", from: composables },
|
|
49
|
+
{ name: "getApiUrl", from: composables },
|
|
50
|
+
{ name: "getCurrentUser", from: composables },
|
|
51
|
+
{ name: "id", from: composables },
|
|
52
|
+
{ name: "list", from: composables },
|
|
53
|
+
{ name: "listData", from: composables },
|
|
54
|
+
{ name: "m", from: composables },
|
|
55
|
+
{ name: "mutation", from: composables },
|
|
56
|
+
{ name: "q", from: composables },
|
|
57
|
+
{ name: "removeObject", from: composables },
|
|
58
|
+
{ name: "t", from: composables },
|
|
59
|
+
{ name: "updateObject", from: composables },
|
|
60
|
+
{ name: "viewAs", from: composables }
|
|
61
|
+
]);
|
|
47
62
|
addPlugin(resolver.resolve("./runtime/plugin"));
|
|
48
63
|
}
|
|
49
64
|
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { VariableType } from "json-to-graphql-query";
|
|
3
3
|
import { useI18n } from "vue-i18n";
|
|
4
|
+
import { ref } from 'vue';
|
|
5
|
+
import { useQuasar } from 'quasar';
|
|
4
6
|
|
|
5
7
|
const quasar = useQuasar();
|
|
6
8
|
const emit = defineEmits(["input", "close"]);
|
|
@@ -307,7 +309,7 @@ const onRenameRow = (row) => {
|
|
|
307
309
|
title: "Error",
|
|
308
310
|
message: e.message,
|
|
309
311
|
});
|
|
310
|
-
|
|
312
|
+
|
|
311
313
|
return;
|
|
312
314
|
}
|
|
313
315
|
|
|
@@ -485,7 +487,7 @@ const reloadStorage = async () => {
|
|
|
485
487
|
|
|
486
488
|
<q-drawer side="right" show-if-above bordered>
|
|
487
489
|
|
|
488
|
-
<l-file-manager-preview v-model="preview" v-if="preview" :key="preview.path"/>
|
|
490
|
+
<l-file-manager-preview v-model="preview" v-if="preview" :key="preview.path" />
|
|
489
491
|
</q-drawer>
|
|
490
492
|
|
|
491
493
|
<q-page-container :style="{ height }">
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { useRouter, useRoute } from "vue-router"
|
|
2
3
|
const router = useRouter();
|
|
3
4
|
const route = useRoute();
|
|
4
5
|
|
|
@@ -61,7 +62,7 @@ if (props.deleteBtn) {
|
|
|
61
62
|
showDeleteBtn = true
|
|
62
63
|
}
|
|
63
64
|
|
|
64
|
-
if(props.addBtn){
|
|
65
|
+
if (props.addBtn) {
|
|
65
66
|
showToolbar = true
|
|
66
67
|
showAddBtn = true
|
|
67
68
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { useQuasar } from 'quasar';
|
|
3
|
+
import { useRoute } from 'vue-router';
|
|
4
|
+
import { ref, computed, onMounted } from "vue";
|
|
5
|
+
|
|
3
6
|
const route = useRoute();
|
|
4
7
|
const module = route.path.split("/")[1];
|
|
5
8
|
const errors = ref([]);
|
|
6
9
|
|
|
7
|
-
|
|
8
|
-
|
|
9
10
|
const props = defineProps({
|
|
10
11
|
columns: {
|
|
11
12
|
type: Array,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { computed, ref } from "vue";
|
|
2
3
|
const props = defineProps(["modelValue"]);
|
|
3
4
|
const emit = defineEmits(["update:modelValue"]);
|
|
4
5
|
const popup = ref(null);
|
|
5
6
|
const localValue = computed({
|
|
6
7
|
get: () => props.modelValue,
|
|
7
8
|
set: (value) => {
|
|
8
|
-
|
|
9
|
+
// popup.value.hide();
|
|
9
10
|
emit('update:modelValue', value)
|
|
10
11
|
}
|
|
11
12
|
|
package/dist/runtime/light.d.ts
CHANGED
|
@@ -5,5 +5,8 @@ interface Light {
|
|
|
5
5
|
}
|
|
6
6
|
export declare function useLight(): Light;
|
|
7
7
|
import q from "./composables/q";
|
|
8
|
+
import m from "./composables/m";
|
|
9
|
+
import f from "./composables/f";
|
|
8
10
|
import getCurrentUser from "./composables/getCurrentUser";
|
|
9
|
-
|
|
11
|
+
import login from "./composables/login";
|
|
12
|
+
export { q, getCurrentUser, login, m, f };
|
package/dist/runtime/light.mjs
CHANGED
|
@@ -16,5 +16,8 @@ export function useLight() {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
import q from "./composables/q.mjs";
|
|
19
|
+
import m from "./composables/m.mjs";
|
|
20
|
+
import f from "./composables/f.mjs";
|
|
19
21
|
import getCurrentUser from "./composables/getCurrentUser.mjs";
|
|
20
|
-
|
|
22
|
+
import login from "./composables/login.mjs";
|
|
23
|
+
export { q, getCurrentUser, login, m, f };
|
|
@@ -5,7 +5,7 @@ const my = await q("my", ["username", "first_name", "last_name", "email", "phone
|
|
|
5
5
|
<template>
|
|
6
6
|
<l-page title="User profile">
|
|
7
7
|
<template #header>
|
|
8
|
-
<q-btn rounded icon="sym_o_key" to="update-password" outline color="primary"
|
|
8
|
+
<q-btn rounded icon="sym_o_key" to="update-password" outline color="primary" label="Update password"></q-btn>
|
|
9
9
|
</template>
|
|
10
10
|
<l-card>
|
|
11
11
|
<l-list>
|