@frigear-nu/oauth-server 0.0.5 → 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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@frigear-nu/oauth-server",
3
3
  "configKey": "oauthServer",
4
- "version": "0.0.5",
4
+ "version": "0.0.7",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.3",
7
7
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineNuxtModule, createResolver, hasNuxtModule, addServerHandler, addServerImportsDir, addImports, extendPages } from '@nuxt/kit';
2
- import { registerModule, registerDatabaseTable, defineModulePage, moduleApiUrl } from '@frigear-nu/module-kit/utils';
2
+ import { registerModule, registerLocales, registerDatabaseTable, defineModulePage, moduleApiUrl } from '@frigear-nu/module-kit/utils';
3
3
 
4
4
  const MODULE_NAME = "@frigear-nu/oauth-server";
5
5
  const API_NAME = "oauthServer";
@@ -30,6 +30,7 @@ const module$1 = defineNuxtModule({
30
30
  const resolver = createResolver(import.meta.url);
31
31
  const settings = options.settings ?? {};
32
32
  const withMenus = hasNuxtModule("@frigear-nu/menu");
33
+ registerLocales(nuxt, resolver.resolve("./runtime/i18n/lang"));
33
34
  const authorizePath = settings.pages?.authorize === false ? "/authorize" : resolvePagePath(settings.pages?.authorize ?? true, "/authorize");
34
35
  const adminPath = resolvePagePath(settings.pages?.admin, "/admin/oauth");
35
36
  const applicationsPath = resolvePagePath(settings.pages?.applications, "/account/applications");
@@ -0,0 +1,14 @@
1
+ {
2
+ "oauthServer": {
3
+ "menu": {
4
+ "applications": {
5
+ "label": "Applikationer",
6
+ "description": "Applikationer du kan logge ind på."
7
+ },
8
+ "admin": {
9
+ "label": "OAuth-applikationer",
10
+ "description": "Administrer de applikationer, brugere kan logge ind på."
11
+ }
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "oauthServer": {
3
+ "menu": {
4
+ "applications": {
5
+ "label": "Applications",
6
+ "description": "Applications you can sign in to."
7
+ },
8
+ "admin": {
9
+ "label": "OAuth applications",
10
+ "description": "Manage the applications users can sign in to."
11
+ }
12
+ }
13
+ }
14
+ }
@@ -5,7 +5,9 @@ export default defineMenuSource(() => {
5
5
  const item = defineMenuItem({
6
6
  id: "oauth-applications",
7
7
  label: "Applications",
8
+ labelKey: "oauthServer.menu.applications.label",
8
9
  description: "Applications you can sign in to.",
10
+ descriptionKey: "oauthServer.menu.applications.description",
9
11
  icon: "i-lucide-layout-grid",
10
12
  to: config.pages.applications,
11
13
  order: 50
@@ -17,7 +19,9 @@ export default defineMenuSource(() => {
17
19
  extendMenuItem("dashboard.account", defineMenuItem({
18
20
  id: "oauth-admin",
19
21
  label: "OAuth applications",
22
+ labelKey: "oauthServer.menu.admin.label",
20
23
  description: "Manage the applications users can sign in to.",
24
+ descriptionKey: "oauthServer.menu.admin.description",
21
25
  icon: "i-lucide-key-round",
22
26
  to: config.pages.admin,
23
27
  order: 90,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frigear-nu/oauth-server",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "OAuth 2.0 / OpenID Connect server for the frigear ecosystem: register applications that users with certain roles may sign in to.",
5
5
  "url": "https://docs.frigear.nu/modules/oauth-server",
6
6
  "author": {
@@ -8,6 +8,7 @@
8
8
  "email": "kontakt@frigear.nu",
9
9
  "url": "https://frigear.nu"
10
10
  },
11
+ "homepage": "https://docs.frigear.dev/modules/oauth-server",
11
12
  "repository": {
12
13
  "type": "git",
13
14
  "url": "git+https://github.com/frigear-nu/frigear-nu.git",
@@ -36,9 +37,9 @@
36
37
  "playground"
37
38
  ],
38
39
  "dependencies": {
39
- "@frigear-nu/menu": "0.0.6",
40
- "@frigear-nu/module-kit": "0.1.4",
41
- "@frigear-nu/users": "1.0.6",
40
+ "@frigear-nu/menu": "0.0.8",
41
+ "@frigear-nu/module-kit": "0.1.6",
42
+ "@frigear-nu/users": "1.0.8",
42
43
  "@libsql/client": "^0.18.0",
43
44
  "@nuxt/kit": "^4.6.0",
44
45
  "drizzle-kit": "^0.31.11",
@@ -67,7 +68,7 @@
67
68
  "@types/node": "latest",
68
69
  "changelogen": "^0.6.2",
69
70
  "eslint": "^10.10.0",
70
- "nuxt": "^4.6.0",
71
+ "nuxt": "^4.6.1",
71
72
  "typescript": "^6.0.3",
72
73
  "vitest": "^5.0.1",
73
74
  "vue-tsc": "^3.3.11"