diff --git a/assets/js/misc/index.ts b/assets/js/misc/index.ts index 94a49671..e9b6f873 100644 --- a/assets/js/misc/index.ts +++ b/assets/js/misc/index.ts @@ -1,3 +1,5 @@ +import type { NavItem } from '@nuxt/content/dist/runtime/types'; + export function resolveObjPath(o: object, s: string): any { s = s.replace(/\[(\w+)\]/g, '.$1'); // convert indexes to properties s = s.replace(/^\./, ''); // strip a leading dot @@ -40,7 +42,7 @@ export function isLocalPath(link: string, base?: string): boolean { } -export const findDeepObject = (obj: Record, condition: (v: any) => boolean): Record | null => { +export const findDeepObject = (obj: NavItem, condition: (v: NavItem) => boolean): NavItem | null => { if (condition(obj)) { return obj; } diff --git a/components/content/ApiPermissions.vue b/components/content/ApiPermissions.vue index 829ba6f2..9718d189 100644 --- a/components/content/ApiPermissions.vue +++ b/components/content/ApiPermissions.vue @@ -2,14 +2,14 @@ - - + + - +
PermissonDescription{{ $t('_api._permissions.title') }}{{ $t('_api._permissions.description') }}
{{ permission }}{{ $t(`_api._permissions.${permission}`) }}{{ $t(`_api._permissions._types.${permission}`) }}
diff --git a/components/docs/AsideNav.vue b/components/docs/AsideNav.vue index 07a695d6..2282c1e2 100644 --- a/components/docs/AsideNav.vue +++ b/components/docs/AsideNav.vue @@ -1,61 +1,78 @@ \ No newline at end of file diff --git a/components/g/Nav.vue b/components/g/Nav.vue index 046a9719..28016241 100644 --- a/components/g/Nav.vue +++ b/components/g/Nav.vue @@ -9,7 +9,7 @@