@frigear-nu/account 0.0.6 → 0.0.7
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/README.md +5 -0
- package/dist/module.json +1 -1
- package/dist/runtime/i18n/lang/da.json +13 -1
- package/dist/runtime/i18n/lang/en.json +13 -1
- package/dist/runtime/menus.js +6 -0
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -69,3 +69,8 @@ await updateProfileDetails({ name: 'Ada Lovelace' })
|
|
|
69
69
|
await changeEmailAddress({ email: 'ada@example.com' })
|
|
70
70
|
await changePassword({ currentPassword: 'old', newPassword: 'new-password', confirmNewPassword: 'new-password' })
|
|
71
71
|
```
|
|
72
|
+
|
|
73
|
+
## Translations
|
|
74
|
+
|
|
75
|
+
Strings live under the `account.*` namespace in `da`/`en` locale files and can be overridden in your app's
|
|
76
|
+
`i18n/locales/<code>.json`. See the [documentation](https://docs.frigear.dev/modules/account#translations).
|
package/dist/module.json
CHANGED
|
@@ -2,7 +2,19 @@
|
|
|
2
2
|
"account": {
|
|
3
3
|
"title": "Konto",
|
|
4
4
|
"menu": {
|
|
5
|
-
"label": "Konto Menu"
|
|
5
|
+
"label": "Konto Menu",
|
|
6
|
+
"account": {
|
|
7
|
+
"label": "Konto",
|
|
8
|
+
"description": "Din konto."
|
|
9
|
+
},
|
|
10
|
+
"profile": {
|
|
11
|
+
"label": "Profil",
|
|
12
|
+
"description": "Administrer dine profiloplysninger og e-mailadresse."
|
|
13
|
+
},
|
|
14
|
+
"security": {
|
|
15
|
+
"label": "Sikkerhed",
|
|
16
|
+
"description": "Skift din adgangskode og administrer adgangsnøgler."
|
|
17
|
+
}
|
|
6
18
|
},
|
|
7
19
|
"identificationCode": {
|
|
8
20
|
"title": "Frigear ID",
|
|
@@ -2,7 +2,19 @@
|
|
|
2
2
|
"account": {
|
|
3
3
|
"title": "Account",
|
|
4
4
|
"menu": {
|
|
5
|
-
"label": "Dashboard Menu"
|
|
5
|
+
"label": "Dashboard Menu",
|
|
6
|
+
"account": {
|
|
7
|
+
"label": "Account",
|
|
8
|
+
"description": "Your account."
|
|
9
|
+
},
|
|
10
|
+
"profile": {
|
|
11
|
+
"label": "Profile",
|
|
12
|
+
"description": "Manage your profile details and email address."
|
|
13
|
+
},
|
|
14
|
+
"security": {
|
|
15
|
+
"label": "Security",
|
|
16
|
+
"description": "Change your password and manage passkeys."
|
|
17
|
+
}
|
|
6
18
|
},
|
|
7
19
|
"identificationCode": {
|
|
8
20
|
"title": "Frigear ID",
|
package/dist/runtime/menus.js
CHANGED
|
@@ -5,7 +5,9 @@ export default defineMenuSource(() => {
|
|
|
5
5
|
extendMenuItem("account.dropdown", {
|
|
6
6
|
id: "account",
|
|
7
7
|
label: "Account",
|
|
8
|
+
labelKey: "account.menu.account.label",
|
|
8
9
|
description: "Your account.",
|
|
10
|
+
descriptionKey: "account.menu.account.description",
|
|
9
11
|
icon: "i-lucide-layout-dashboard",
|
|
10
12
|
to: config.pages.index,
|
|
11
13
|
order: -99
|
|
@@ -15,7 +17,9 @@ export default defineMenuSource(() => {
|
|
|
15
17
|
const profileItem = defineMenuItem({
|
|
16
18
|
id: "profile",
|
|
17
19
|
label: "Profile",
|
|
20
|
+
labelKey: "account.menu.profile.label",
|
|
18
21
|
description: "Manage your profile details and email address.",
|
|
22
|
+
descriptionKey: "account.menu.profile.description",
|
|
19
23
|
icon: "i-lucide-user-round-pen",
|
|
20
24
|
to: config.pages.profile,
|
|
21
25
|
order: 10
|
|
@@ -27,7 +31,9 @@ export default defineMenuSource(() => {
|
|
|
27
31
|
extendMenuItem("account", {
|
|
28
32
|
id: "security",
|
|
29
33
|
label: "Security",
|
|
34
|
+
labelKey: "account.menu.security.label",
|
|
30
35
|
description: "Change your password and manage passkeys.",
|
|
36
|
+
descriptionKey: "account.menu.security.description",
|
|
31
37
|
icon: "i-lucide-shield-user",
|
|
32
38
|
to: config.pages.security,
|
|
33
39
|
order: 20
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frigear-nu/account",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "A module for managing the account area (profile, email, password, security) in the main frigear app.",
|
|
5
|
+
"homepage": "https://docs.frigear.dev/modules/account",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
7
|
-
"url": "
|
|
8
|
+
"url": "git+https://github.com/frigear-nu/frigear-nu.git",
|
|
9
|
+
"directory": "packages/account"
|
|
8
10
|
},
|
|
9
11
|
"license": "MIT",
|
|
10
12
|
"type": "module",
|
|
@@ -22,14 +24,14 @@
|
|
|
22
24
|
"playground"
|
|
23
25
|
],
|
|
24
26
|
"dependencies": {
|
|
25
|
-
"@frigear-nu/users": "1.0.
|
|
27
|
+
"@frigear-nu/users": "1.0.8",
|
|
26
28
|
"@libsql/client": "^0.18.0",
|
|
27
29
|
"@nuxt/kit": "^4.6.0",
|
|
28
30
|
"drizzle-kit": "^0.31.11",
|
|
29
31
|
"drizzle-orm": "^0.45.3",
|
|
30
32
|
"zod": "^4.6.5",
|
|
31
|
-
"@frigear-nu/menu": "0.0.
|
|
32
|
-
"@frigear-nu/module-kit": "0.1.
|
|
33
|
+
"@frigear-nu/menu": "0.0.8",
|
|
34
|
+
"@frigear-nu/module-kit": "0.1.6",
|
|
33
35
|
"@vueuse/core": "^15.0.0"
|
|
34
36
|
},
|
|
35
37
|
"peerDependencies": {
|