@hostlink/nuxt-light 1.0.9 → 1.0.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
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.0.9"
4
+ "version": "1.0.11"
5
5
  }
@@ -1,14 +1,24 @@
1
1
  <script setup>
2
- import { q, m } from '../../../'
3
- import { useRouter } from "vue-router"
2
+ import { q, m } from '#imports'
3
+ import { useRouter, useRoute } from "vue-router"
4
+ import { Notify } from 'quasar';
5
+
4
6
  const system = await q("system", ["passwordPolicy"]);
5
7
  const router = useRouter();
8
+ const route = useRoute();
9
+ const id = route.params.user_id;
6
10
 
7
- const onSubmit = async (data, form) => {
11
+ const onSubmit = async (data) => {
8
12
  return await m("updateUserPassword", {
9
- id: route.params.user_id,
13
+ id: parseInt(id),
10
14
  password: data.password
11
15
  }).then(() => {
16
+ Notify.create({
17
+ message: "Password changed successfully",
18
+ color: "positive",
19
+ icon: "check"
20
+ });
21
+
12
22
  router.push("/User");
13
23
  });
14
24
  }
@@ -17,7 +27,8 @@ const onSubmit = async (data, form) => {
17
27
  <template>
18
28
  <l-page>
19
29
  <FormKit type="l-form" @submit="onSubmit">
20
- <FormKit type="l-input" name="password" :validation="system.passwordPolicy" label="Password" input-type="password"></FormKit>
30
+ <FormKit type="l-input" name="password" :validation="system.passwordPolicy" label="Password"
31
+ input-type="password"></FormKit>
21
32
  </FormKit>
22
33
  </l-page>
23
34
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": "@hostlink/nuxt-light",
6
6
  "license": "MIT",
@@ -39,7 +39,7 @@
39
39
  "@nuxt/module-builder": "^0.5.2",
40
40
  "@quasar/extras": "^1.16.6",
41
41
  "axios": "^1.5.0",
42
- "formkit-quasar": "^0.0.14",
42
+ "formkit-quasar": "^0.0.15",
43
43
  "json-to-graphql-query": "^2.2.5",
44
44
  "quasar": "^2.12.5",
45
45
  "vue-i18n": "^9.2.2",