@hostlink/nuxt-light 1.8.10 → 1.8.11
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
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -26,6 +26,8 @@ const module = defineNuxtModule({
|
|
|
26
26
|
const index = resolver.resolve("./runtime/index");
|
|
27
27
|
const SystemValue = resolver.resolve("./runtime/lib/SystemValue");
|
|
28
28
|
addImports([
|
|
29
|
+
{ name: "id", from },
|
|
30
|
+
{ name: "getID", from },
|
|
29
31
|
{ name: "addObject", from },
|
|
30
32
|
{ name: "f", from },
|
|
31
33
|
{ name: "getApiUrl", from },
|
|
@@ -18,5 +18,6 @@ export { default as sv } from "./sv";
|
|
|
18
18
|
export { default as model } from "./model";
|
|
19
19
|
export declare const notify: (message: string, color?: string) => void;
|
|
20
20
|
export { default as getID } from "./getID";
|
|
21
|
+
export { default as id } from "./getID";
|
|
21
22
|
export declare const getApiBase: () => {};
|
|
22
23
|
export { getGQLFields } from '@hostlink/light';
|
|
@@ -26,6 +26,7 @@ export const notify = function(message, color = "positive") {
|
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
28
|
export { default as getID } from "./getID.mjs";
|
|
29
|
+
export { default as id } from "./getID.mjs";
|
|
29
30
|
export const getApiBase = () => {
|
|
30
31
|
const config = useRuntimeConfig();
|
|
31
32
|
return config?.public?.apiBase ?? "/api/";
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { useLight } from "#imports";
|
|
2
|
+
import { useLight, getID, model } from "#imports";
|
|
3
3
|
import { useRoute } from "vue-router"
|
|
4
4
|
import { ref } from 'vue';
|
|
5
5
|
|
|
6
|
+
|
|
6
7
|
const route = useRoute();
|
|
7
8
|
const light = useLight();
|
|
8
9
|
|
|
9
10
|
const tab = ref('overview');
|
|
10
11
|
const id = route.params.user_id;
|
|
12
|
+
/* const a = await model("User").get({ user_id: getID() }, {
|
|
13
|
+
name: true
|
|
14
|
+
}); */
|
|
15
|
+
|
|
11
16
|
</script>
|
|
12
17
|
|
|
13
18
|
<template>
|
|
14
19
|
<l-page edit-btn>
|
|
20
|
+
|
|
15
21
|
<template #header>
|
|
16
22
|
<l-btn to="change-password" icon="sym_o_key" permission="user.changePassword"
|
|
17
23
|
label="Change password"></l-btn>
|