@hostlink/nuxt-light 1.0.1 → 1.0.3
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 +2 -13
- package/dist/runtime/components/l-app-main.vue +13 -4
- package/dist/runtime/components/l-card.vue +1 -1
- package/dist/runtime/components/l-col.vue +1 -1
- package/dist/runtime/components/l-customizer.vue +3 -4
- package/dist/runtime/components/l-file-manager.vue +4 -4
- package/dist/runtime/components/l-input-xlsx.vue +78 -0
- package/dist/runtime/components/l-login.vue +17 -9
- package/dist/runtime/components/l-page.vue +7 -0
- package/dist/runtime/components/l-row.vue +4 -2
- package/dist/runtime/components/l-table.vue +5 -4
- package/dist/runtime/formkit/File.vue +51 -0
- package/dist/runtime/formkit/Form.vue +2 -2
- package/dist/runtime/formkit/InputXlsx.vue +22 -0
- package/dist/runtime/formkit/Toggle.vue +18 -0
- package/dist/runtime/formkit/index.mjs +12 -0
- package/dist/runtime/lib/index.mjs +1 -1
- package/dist/runtime/locales/en.json +5 -12
- package/dist/runtime/locales/zh-hk.json +15 -2
- package/dist/runtime/pages/Permission/all.vue +1 -1
- package/dist/runtime/pages/Role/add.vue +1 -5
- package/dist/runtime/pages/Role/index.vue +21 -5
- package/dist/runtime/pages/System/database/backup.vue +25 -2
- package/dist/runtime/pages/System/database/table.vue +5 -3
- package/dist/runtime/pages/System/index.vue +3 -2
- package/dist/runtime/pages/System/menu/index.vue +6 -1
- package/dist/runtime/pages/System/package.vue +21 -2
- package/dist/runtime/pages/System/setting.vue +65 -9
- package/dist/runtime/pages/System/test.vue +1 -0
- package/dist/runtime/pages/System/view_as.vue +38 -11
- package/dist/runtime/pages/Translate/index.vue +5 -4
- package/dist/runtime/pages/User/_user_id/edit.vue +13 -12
- package/dist/runtime/pages/User/add.vue +18 -10
- package/dist/runtime/pages/User/setting/bio-auth.vue +4 -7
- package/dist/runtime/pages/User/setting/password.vue +29 -11
- package/dist/runtime/pages/User/setting/two-factor-auth.vue +13 -7
- package/dist/types.d.mts +2 -2
- package/package.json +2 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { ref, reactive } from "vue"
|
|
3
|
-
import { q, m, notify } from '
|
|
3
|
+
import { q, m, notify } from '#imports'
|
|
4
4
|
|
|
5
5
|
const my = await q("my", ["twoFactorEnabled"])
|
|
6
6
|
const my2FA = await m("my2FA", [])
|
|
@@ -36,24 +36,30 @@ if (my.twoFactorEnabled) {
|
|
|
36
36
|
</p>
|
|
37
37
|
<p>
|
|
38
38
|
For Android user, install
|
|
39
|
-
<
|
|
40
|
-
href="https://play.google.com/store/apps/details?id=com.azure.authenticator">Authenticator</
|
|
39
|
+
<a type="primary" target="_blank"
|
|
40
|
+
href="https://play.google.com/store/apps/details?id=com.azure.authenticator">Authenticator</a>
|
|
41
41
|
</p>
|
|
42
42
|
|
|
43
43
|
<p>
|
|
44
44
|
For iOS user, install
|
|
45
|
-
<
|
|
46
|
-
href="https://apps.apple.com/us/app/microsoft-authenticator/id983156458">Authenticator</
|
|
45
|
+
<a type="primary" target="_blank"
|
|
46
|
+
href="https://apps.apple.com/us/app/microsoft-authenticator/id983156458">Authenticator</a>
|
|
47
47
|
</p>
|
|
48
48
|
</div>
|
|
49
49
|
<q-img :src="my2FA.image" width="250px" />
|
|
50
|
+
<p>
|
|
51
|
+
Secret : {{ my2FA.secret }}
|
|
52
|
+
</p>
|
|
53
|
+
|
|
50
54
|
<l-input v-model="obj.code" label="Code"
|
|
51
55
|
hint="Please scan the QR code with your authenticator app, and enter the code" required />
|
|
52
56
|
</l-form>
|
|
53
57
|
<div v-else>
|
|
54
58
|
<q-card-section>
|
|
55
|
-
|
|
56
|
-
|
|
59
|
+
<div>
|
|
60
|
+
Your 2FA is enabled
|
|
61
|
+
</div>
|
|
62
|
+
<l-btn @click="show = true" label="Reset your 2FA" icon="sym_o_refresh" />
|
|
57
63
|
</q-card-section>
|
|
58
64
|
|
|
59
65
|
</div>
|
package/dist/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import type { ModuleOptions } from './module'
|
|
2
|
+
import type { ModuleOptions } from './module.js'
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
declare module '@nuxt/schema' {
|
|
@@ -13,4 +13,4 @@ declare module 'nuxt/schema' {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
export type { ModuleOptions, default } from './module'
|
|
16
|
+
export type { ModuleOptions, default } from './module.js'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hostlink/nuxt-light",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "HostLink Nuxt Light Framework",
|
|
5
5
|
"repository": "@hostlink/nuxt-light",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,15 +39,13 @@
|
|
|
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.
|
|
42
|
+
"formkit-quasar": "^0.0.14",
|
|
43
43
|
"json-to-graphql-query": "^2.2.5",
|
|
44
44
|
"quasar": "^2.12.5",
|
|
45
|
-
"unplugin-auto-import": "^0.16.6",
|
|
46
45
|
"vue-i18n": "^9.2.2",
|
|
47
46
|
"xlsx": "^0.18.5"
|
|
48
47
|
},
|
|
49
48
|
"devDependencies": {
|
|
50
|
-
"@nuxt/content": "^2.8.2",
|
|
51
49
|
"@nuxt/devtools": "latest",
|
|
52
50
|
"@nuxt/eslint-config": "^0.2.0",
|
|
53
51
|
"@nuxt/schema": "^3.7.4",
|