@frigear-nu/account 0.1.1 → 0.1.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.
Files changed (40) hide show
  1. package/README.md +21 -9
  2. package/dist/module.d.mts +3 -1
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +32 -4
  5. package/dist/runtime/app/components/Account/AccountApiTokenSlideover.d.vue.ts +3 -3
  6. package/dist/runtime/app/components/Account/AccountApiTokenSlideover.vue +2 -1
  7. package/dist/runtime/app/components/Account/AccountApiTokenSlideover.vue.d.ts +3 -3
  8. package/dist/runtime/app/components/Account/AccountChangeEmailSlideover.d.vue.ts +14 -0
  9. package/dist/runtime/app/components/Account/AccountChangeEmailSlideover.vue +54 -0
  10. package/dist/runtime/app/components/Account/AccountChangeEmailSlideover.vue.d.ts +14 -0
  11. package/dist/runtime/app/components/Account/AccountHeader.d.vue.ts +10 -1
  12. package/dist/runtime/app/components/Account/AccountHeader.vue +6 -3
  13. package/dist/runtime/app/components/Account/AccountHeader.vue.d.ts +10 -1
  14. package/dist/runtime/app/components/Account/AccountIdentity.vue +13 -0
  15. package/dist/runtime/app/components/Account/AccountMenu.vue +13 -3
  16. package/dist/runtime/app/components/Account/AccountPasskeySlideover.d.vue.ts +10 -0
  17. package/dist/runtime/app/components/Account/AccountPasskeySlideover.vue +60 -0
  18. package/dist/runtime/app/components/Account/AccountPasskeySlideover.vue.d.ts +10 -0
  19. package/dist/runtime/app/composables/useAccount.d.ts +2 -2
  20. package/dist/runtime/app/composables/useAccount.js +4 -3
  21. package/dist/runtime/app/composables/useAccountNav.d.ts +1 -1
  22. package/dist/runtime/app/layouts/account.d.vue.ts +2 -2
  23. package/dist/runtime/app/layouts/account.vue +15 -13
  24. package/dist/runtime/app/layouts/account.vue.d.ts +2 -2
  25. package/dist/runtime/app/middleware/bootstrap.d.ts +2 -0
  26. package/dist/runtime/app/middleware/bootstrap.js +5 -0
  27. package/dist/runtime/app/pages/api-tokens.vue +23 -28
  28. package/dist/runtime/app/pages/documents.vue +22 -7
  29. package/dist/runtime/app/pages/index.vue +3 -6
  30. package/dist/runtime/app/pages/profile.vue +50 -89
  31. package/dist/runtime/app/pages/security.vue +60 -74
  32. package/dist/runtime/app/plugins/bootstrap.client.d.ts +2 -0
  33. package/dist/runtime/app/plugins/bootstrap.client.js +4 -0
  34. package/dist/runtime/app/utils/api-tokens.d.ts +3 -14
  35. package/dist/runtime/i18n/lang/da.json +13 -10
  36. package/dist/runtime/i18n/lang/en.json +13 -10
  37. package/package.json +13 -13
  38. package/dist/runtime/app/components/Account/AccountHeaderRight.vue +0 -18
  39. /package/dist/runtime/app/components/Account/{AccountHeaderRight.d.vue.ts → AccountIdentity.d.vue.ts} +0 -0
  40. /package/dist/runtime/app/components/Account/{AccountHeaderRight.vue.d.ts → AccountIdentity.vue.d.ts} +0 -0
@@ -39,14 +39,14 @@
39
39
  "system": "System"
40
40
  },
41
41
  "overview": {
42
- "title": "Konto",
43
- "description": "Dine oplysninger og alt, der hører til din konto.",
44
42
  "shortcuts": "Din konto",
45
43
  "empty": "Her er ikke noget endnu."
46
44
  },
47
45
  "profile": {
48
- "title": "Profil",
49
- "description": "Skift dine brugeroplysninger.",
46
+ "details": {
47
+ "title": "Navn og avatar",
48
+ "description": "Sådan ser andre dig."
49
+ },
50
50
  "name": {
51
51
  "label": "Navn",
52
52
  "description": "Dit fulde navn.",
@@ -54,10 +54,12 @@
54
54
  },
55
55
  "email": {
56
56
  "label": "E-mail",
57
- "description": "Din awesome e-mail.",
57
+ "address": "Adresse",
58
+ "description": "Hvor vi sender beskeder, og hvordan du logger ind.",
58
59
  "change": {
59
60
  "title": "Skift din e-mail",
60
61
  "label": "Ny e-mail",
62
+ "current": "Din adresse er nu {email}.",
61
63
  "sent": {
62
64
  "title": "Tjek din indbakke",
63
65
  "description": "Vi har sendt et link til din nye adresse. Ændringen træder først i kraft når du bekræfter den."
@@ -76,13 +78,13 @@
76
78
  },
77
79
  "save": "Gem profil",
78
80
  "saved": "Profil opdateret",
79
- "saveFailed": "Kunne ikke opdatere din profil.",
80
- "cancel": "Annuller"
81
+ "saveFailed": "Kunne ikke opdatere din profil."
81
82
  },
82
83
  "documents": {
83
84
  "title": "Dokumenter",
84
85
  "description": "Dine dokumenter.",
85
86
  "download": "Download",
87
+ "downloadNamed": "Download {name}",
86
88
  "empty": "Ingen dokumenter til dig endnu."
87
89
  },
88
90
  "security": {
@@ -112,7 +114,7 @@
112
114
  },
113
115
  "passkeys": {
114
116
  "title": "Passkeys",
115
- "register": "Registrér en passkey",
117
+ "add": "Tilføj passkey",
116
118
  "description": "Log ind med fingeraftryk, ansigt eller enhedens pinkode i stedet for et password.",
117
119
  "unnamed": "Passkey",
118
120
  "created": "Tilføjet {date}",
@@ -124,16 +126,17 @@
124
126
  "empty": "Du har ikke tilføjet nogen passkeys endnu.",
125
127
  "name": {
126
128
  "label": "Navn på passkey",
129
+ "description": "Valgfrit. Gør det nemmere at kende dine passkeys fra hinanden.",
127
130
  "placeholder": "Navn, fx MacBook"
128
131
  },
129
132
  "registered": "Passkey tilføjet.",
130
133
  "registerError": "Kunne ikke registrere passkey.",
131
134
  "removed": "Passkey fjernet.",
132
135
  "removeError": "Kunne ikke fjerne passkey.",
133
- "loadError": "Kunne ikke hente dine passkeys."
136
+ "loadError": "Kunne ikke hente dine passkeys.",
137
+ "tryAgain": "Prøv igen"
134
138
  }
135
139
  },
136
- "signedInAs": "Logget ind som",
137
140
  "apiTokens": {
138
141
  "title": "API-nøgler",
139
142
  "description": "Opret nøgler til scripts og værktøjer.",
@@ -39,14 +39,14 @@
39
39
  "system": "System"
40
40
  },
41
41
  "overview": {
42
- "title": "Account",
43
- "description": "Your details and everything that belongs to your account.",
44
42
  "shortcuts": "Your account",
45
43
  "empty": "Nothing here yet."
46
44
  },
47
45
  "profile": {
48
- "title": "Profile",
49
- "description": "Change your information.",
46
+ "details": {
47
+ "title": "Name and avatar",
48
+ "description": "How you appear to others."
49
+ },
50
50
  "name": {
51
51
  "label": "Name",
52
52
  "description": "Your full name.",
@@ -54,10 +54,12 @@
54
54
  },
55
55
  "email": {
56
56
  "label": "E-mail",
57
- "description": "Your awesome E-mail.",
57
+ "address": "Address",
58
+ "description": "Where we send messages and how you sign in.",
58
59
  "change": {
59
60
  "title": "Change e-mail",
60
61
  "label": "New e-mail",
62
+ "current": "Your address is now {email}.",
61
63
  "sent": {
62
64
  "title": "Check your inbox",
63
65
  "description": "We sent a link to your new address. It takes effect once you confirm it."
@@ -76,13 +78,13 @@
76
78
  },
77
79
  "save": "Save profile",
78
80
  "saved": "Profile updated",
79
- "saveFailed": "Could not update your profile.",
80
- "cancel": "Cancel"
81
+ "saveFailed": "Could not update your profile."
81
82
  },
82
83
  "documents": {
83
84
  "title": "Documents",
84
85
  "description": "Your documents.",
85
86
  "download": "Download",
87
+ "downloadNamed": "Download {name}",
86
88
  "empty": "No documents for you yet."
87
89
  },
88
90
  "security": {
@@ -112,7 +114,7 @@
112
114
  },
113
115
  "passkeys": {
114
116
  "title": "Passkeys",
115
- "register": "Register a passkey",
117
+ "add": "Add passkey",
116
118
  "description": "Sign in with your fingerprint, face or device PIN instead of a password.",
117
119
  "unnamed": "Passkey",
118
120
  "created": "Added {date}",
@@ -124,16 +126,17 @@
124
126
  "empty": "You have not added any passkeys yet.",
125
127
  "name": {
126
128
  "label": "Passkey name",
129
+ "description": "Optional. Helps you tell your passkeys apart.",
127
130
  "placeholder": "Name, e.g. MacBook"
128
131
  },
129
132
  "registered": "Passkey added.",
130
133
  "registerError": "Could not register the passkey.",
131
134
  "removed": "Passkey removed.",
132
135
  "removeError": "Could not remove the passkey.",
133
- "loadError": "Could not load your passkeys."
136
+ "loadError": "Could not load your passkeys.",
137
+ "tryAgain": "Try again"
134
138
  }
135
139
  },
136
- "signedInAs": "Signed in as",
137
140
  "apiTokens": {
138
141
  "title": "API tokens",
139
142
  "description": "Create tokens for scripts and tools.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frigear-nu/account",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "A module for managing the account area (profile, email, password, security) in the main frigear app.",
5
5
  "homepage": "https://docs.frigear.dev/modules/account",
6
6
  "repository": {
@@ -24,10 +24,10 @@
24
24
  "playground"
25
25
  ],
26
26
  "dependencies": {
27
- "@frigear-nu/module-kit": "1.1.1",
28
- "@frigear-nu/auth": "0.1.2",
29
- "@frigear-nu/ui": "0.1.1",
30
- "@frigear-nu/users": "1.1.2",
27
+ "@frigear-nu/module-kit": "1.1.3",
28
+ "@frigear-nu/auth": "0.1.4",
29
+ "@frigear-nu/ui": "0.1.3",
30
+ "@frigear-nu/users": "1.1.4",
31
31
  "@libsql/client": "^0.18.0",
32
32
  "@nuxt/kit": "^4.6.1",
33
33
  "@vueuse/core": "^15.0.0",
@@ -36,10 +36,10 @@
36
36
  "zod": "^4.6.5"
37
37
  },
38
38
  "peerDependencies": {
39
- "@frigear-nu/authorization": "0.1.1",
40
- "@frigear-nu/menu": "0.1.1",
41
- "@frigear-nu/widget": "0.1.1",
42
- "@nuxt/ui": "^4.11.2",
39
+ "@frigear-nu/authorization": "0.1.3",
40
+ "@frigear-nu/menu": "0.1.3",
41
+ "@frigear-nu/widget": "0.1.3",
42
+ "@nuxt/ui": "^4.12.0",
43
43
  "@nuxthub/core": "^0.10.8"
44
44
  },
45
45
  "peerDependenciesMeta": {
@@ -57,15 +57,15 @@
57
57
  }
58
58
  },
59
59
  "devDependencies": {
60
- "@frigear-nu/authorization": "0.1.1",
61
- "@frigear-nu/menu": "0.1.1",
62
- "@frigear-nu/widget": "0.1.1",
60
+ "@frigear-nu/authorization": "0.1.3",
61
+ "@frigear-nu/menu": "0.1.3",
62
+ "@frigear-nu/widget": "0.1.3",
63
63
  "@nuxt/devtools": "^3.4.2",
64
64
  "@nuxt/eslint-config": "^1.17.0",
65
65
  "@nuxt/module-builder": "^1.0.3",
66
66
  "@nuxt/schema": "^4.6.1",
67
67
  "@nuxt/test-utils": "^4.3.2",
68
- "@nuxt/ui": "^4.11.2",
68
+ "@nuxt/ui": "^4.12.0",
69
69
  "@nuxthub/core": "^0.10.8",
70
70
  "@types/node": "^26.6.5",
71
71
  "changelogen": "^0.6.2",
@@ -1,18 +0,0 @@
1
- <script setup>
2
- const t = useModuleT("account");
3
- const { user } = useUserSession();
4
- </script>
5
-
6
- <template>
7
- <div
8
- v-if="user"
9
- class="flex flex-col"
10
- >
11
- <div class="text-sm text-muted">
12
- {{ t("signedInAs", "Signed in as") }}
13
- </div>
14
- <div class="text-primary">
15
- {{ user.email }}
16
- </div>
17
- </div>
18
- </template>