diff --git a/.github/workflows/reuse-quality.yml b/.github/workflows/reuse-quality.yml index fed5d8da..230d5217 100644 --- a/.github/workflows/reuse-quality.yml +++ b/.github/workflows/reuse-quality.yml @@ -25,12 +25,12 @@ jobs: - name: Build types run: npm run build-types - - name: Type check - run: npm run check-types - - name: Build UI run: npm -w ui run build + - name: Type check + run: npm run check-types + - name: Init .env run: ./dev/init-env.sh diff --git a/package.json b/package.json index 123b6d6b..30750df1 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "build-types": "mkdir -p ui/src/components/vjsf && rm -f ui/src/components/vjsf/* && rm -rf node_modules/.cache/@data-fair/lib-types-builder && df-build-types . --vjsf-dir ui/src/components/vjsf", "prepare": "husky || true", "check-types": "tsc && npm -w ui run check-types", - "quality": "npm run lint && npm run build-types && npm run check-types && npm run test" + "quality": "npm run lint && npm run build-types && npm -w ui run build && npm run check-types && npm run test" }, "repository": { "type": "git", diff --git a/ui/.gitignore b/ui/.gitignore index 602415c5..7755a810 100644 --- a/ui/.gitignore +++ b/ui/.gitignore @@ -24,3 +24,6 @@ dist-ssr *.sln *.sw? + +# generated by the vite plugins (router, auto-imports, components) +dts diff --git a/ui/dts/auto-imports.d.ts b/ui/dts/auto-imports.d.ts deleted file mode 100644 index e04a32c1..00000000 --- a/ui/dts/auto-imports.d.ts +++ /dev/null @@ -1,320 +0,0 @@ -/* eslint-disable */ -/* prettier-ignore */ -/* oxlint-disable */ -/* oxfmt-ignore */ -// @ts-nocheck -// noinspection JSUnusedGlobalSymbols -// Generated by unplugin-auto-import -// biome-ignore lint: disable -export {} -declare global { - const $apiPath: typeof import('~/context').$apiPath - const $cspNonce: typeof import('~/context').$cspNonce - const $fetch: typeof import('~/context').$fetch - const $sdUrl: typeof import('~/context').$sdUrl - const $sitePath: typeof import('~/context').$sitePath - const $siteUrl: typeof import('~/context').$siteUrl - const $uiConfig: typeof import('~/context').$uiConfig - const EffectScope: typeof import('vue').EffectScope - const computed: typeof import('vue').computed - const computedDeepDiff: typeof import('@data-fair/lib-vue/deep-diff.js').computedDeepDiff - const createApp: typeof import('vue').createApp - const customRef: typeof import('vue').customRef - const defineAsyncComponent: typeof import('vue').defineAsyncComponent - const defineComponent: typeof import('vue').defineComponent - const dfDateMatchFilter: typeof import('@data-fair/lib-vuetify/date-match-filter.vue')['default'] - const dfDateRangePicker: typeof import('@data-fair/lib-vuetify/date-range-picker.vue')['default'] - const dfLangSwitcher: typeof import('@data-fair/lib-vuetify/lang-switcher.vue')['default'] - const dfNavigationRight: typeof import('@data-fair/lib-vuetify/navigation-right.vue')['default'] - const dfOwnerAvatar: typeof import('@data-fair/lib-vuetify/owner-avatar.vue')['default'] - const dfOwnerPick: typeof import('@data-fair/lib-vuetify/owner-pick.vue')['default'] - const dfPersonalMenu: typeof import('@data-fair/lib-vuetify/personal-menu.vue')['default'] - const dfSearchAddress: typeof import('@data-fair/lib-vuetify/search-address.vue')['default'] - const dfThemeSwitcher: typeof import('@data-fair/lib-vuetify/theme-switcher.vue')['default'] - const dfTutorialAlert: typeof import('@data-fair/lib-vuetify/tutorial-alert.vue')['default'] - const dfUiNotif: typeof import('@data-fair/lib-vuetify/ui-notif.vue')['default'] - const dfUiNotifAlert: typeof import('@data-fair/lib-vuetify/ui-notif-alert.vue')['default'] - const dfUserAvatar: typeof import('@data-fair/lib-vuetify/ui-user-avatar.vue')['default'] - const effectScope: typeof import('vue').effectScope - const formatBytes: typeof import('@data-fair/lib-vue/format/bytes.js').formatBytes - const getActiveHead: typeof import('@unhead/vue')['getActiveHead'] - const getCurrentInstance: typeof import('vue').getCurrentInstance - const getCurrentScope: typeof import('vue').getCurrentScope - const getCurrentWatcher: typeof import('vue').getCurrentWatcher - const h: typeof import('vue').h - const inject: typeof import('vue').inject - const injectHead: typeof import('@unhead/vue').injectHead - const isProxy: typeof import('vue').isProxy - const isReactive: typeof import('vue').isReactive - const isReadonly: typeof import('vue').isReadonly - const isRef: typeof import('vue').isRef - const isShallow: typeof import('vue').isShallow - const markRaw: typeof import('vue').markRaw - const mdiAccount: typeof import('@mdi/js').mdiAccount - const mdiAccountCircle: typeof import('@mdi/js').mdiAccountCircle - const mdiAccountGroup: typeof import('@mdi/js').mdiAccountGroup - const mdiAccountSwitch: typeof import('@mdi/js').mdiAccountSwitch - const mdiAlertCircle: typeof import('@mdi/js').mdiAlertCircle - const mdiBell: typeof import('@mdi/js').mdiBell - const mdiCalendar: typeof import('@mdi/js').mdiCalendar - const mdiCancel: typeof import('@mdi/js').mdiCancel - const mdiCellphone: typeof import('@mdi/js').mdiCellphone - const mdiCheck: typeof import('@mdi/js').mdiCheck - const mdiCheckCircle: typeof import('@mdi/js').mdiCheckCircle - const mdiCog: typeof import('@mdi/js').mdiCog - const mdiConnection: typeof import('@mdi/js').mdiConnection - const mdiContentCopy: typeof import('@mdi/js').mdiContentCopy - const mdiDelete: typeof import('@mdi/js').mdiDelete - const mdiDevices: typeof import('@mdi/js').mdiDevices - const mdiDotsVertical: typeof import('@mdi/js').mdiDotsVertical - const mdiDownload: typeof import('@mdi/js').mdiDownload - const mdiEmail: typeof import('@mdi/js').mdiEmail - const mdiEye: typeof import('@mdi/js').mdiEye - const mdiEyeOffOutline: typeof import('@mdi/js').mdiEyeOffOutline - const mdiEyeOutline: typeof import('@mdi/js').mdiEyeOutline - const mdiFamilyTree: typeof import('@mdi/js').mdiFamilyTree - const mdiFileTable: typeof import('@mdi/js').mdiFileTable - const mdiGraph: typeof import('@mdi/js').mdiGraph - const mdiInformation: typeof import('@mdi/js').mdiInformation - const mdiLoginVariant: typeof import('@mdi/js').mdiLoginVariant - const mdiMagnify: typeof import('@mdi/js').mdiMagnify - const mdiMonitorCellphoneStar: typeof import('@mdi/js').mdiMonitorCellphoneStar - const mdiPencil: typeof import('@mdi/js').mdiPencil - const mdiPlus: typeof import('@mdi/js').mdiPlus - const mdiRefresh: typeof import('@mdi/js').mdiRefresh - const mdiRobot: typeof import('@mdi/js').mdiRobot - const mdiRss: typeof import('@mdi/js').mdiRss - const mdiSend: typeof import('@mdi/js').mdiSend - const mdiShieldAlert: typeof import('@mdi/js').mdiShieldAlert - const mdiSort: typeof import('@mdi/js').mdiSort - const mdiSwapHorizontal: typeof import('@mdi/js').mdiSwapHorizontal - const mdiThemeLightDark: typeof import('@mdi/js').mdiThemeLightDark - const mdiWeb: typeof import('@mdi/js').mdiWeb - const nextTick: typeof import('vue').nextTick - const onActivated: typeof import('vue').onActivated - const onBeforeMount: typeof import('vue').onBeforeMount - const onBeforeRouteLeave: typeof import('vue-router').onBeforeRouteLeave - const onBeforeRouteUpdate: typeof import('vue-router').onBeforeRouteUpdate - const onBeforeUnmount: typeof import('vue').onBeforeUnmount - const onBeforeUpdate: typeof import('vue').onBeforeUpdate - const onDeactivated: typeof import('vue').onDeactivated - const onErrorCaptured: typeof import('vue').onErrorCaptured - const onMounted: typeof import('vue').onMounted - const onRenderTracked: typeof import('vue').onRenderTracked - const onRenderTriggered: typeof import('vue').onRenderTriggered - const onScopeDispose: typeof import('vue').onScopeDispose - const onServerPrefetch: typeof import('vue').onServerPrefetch - const onUnmounted: typeof import('vue').onUnmounted - const onUpdated: typeof import('vue').onUpdated - const onWatcherCleanup: typeof import('vue').onWatcherCleanup - const provide: typeof import('vue').provide - const reactive: typeof import('vue').reactive - const readonly: typeof import('vue').readonly - const ref: typeof import('vue').ref - const resolveComponent: typeof import('vue').resolveComponent - const shallowReactive: typeof import('vue').shallowReactive - const shallowReadonly: typeof import('vue').shallowReadonly - const shallowRef: typeof import('vue').shallowRef - const toRaw: typeof import('vue').toRaw - const toRef: typeof import('vue').toRef - const toRefs: typeof import('vue').toRefs - const toValue: typeof import('vue').toValue - const triggerRef: typeof import('vue').triggerRef - const unref: typeof import('vue').unref - const useAsyncAction: typeof import('@data-fair/lib-vue/async-action.js').useAsyncAction - const useAttrs: typeof import('vue').useAttrs - const useBooleanSearchParam: typeof import('@data-fair/lib-vue/reactive-search-params.js').useBooleanSearchParam - const useConceptFilters: typeof import('@data-fair/lib-vue/concept-filters.js').useConceptFilters - const useCssModule: typeof import('vue').useCssModule - const useCssVars: typeof import('vue').useCssVars - const useDisplayOwner: typeof import('@data-fair/lib-vue/owner.js').useDisplayOwner - const useEditFetch: typeof import('@data-fair/lib-vue/edit-fetch.js').useEditFetch - const useFetch: typeof import('@data-fair/lib-vue/fetch.js').useFetch - const useHead: typeof import('@unhead/vue').useHead - const useHeadSafe: typeof import('@unhead/vue').useHeadSafe - const useI18n: typeof import('vue-i18n').useI18n - const useId: typeof import('vue').useId - const useLeaveGuard: typeof import('@data-fair/lib-vue/leave-guard.js').useLeaveGuard - const useLink: typeof import('vue-router').useLink - const useLocaleDayjs: typeof import('@data-fair/lib-vue/locale-dayjs.js').useLocaleDayjs - const useModel: typeof import('vue').useModel - const useNumberSearchParam: typeof import('@data-fair/lib-vue/reactive-search-params.js').useNumberSearchParam - const useReactiveSearchParams: typeof import('@data-fair/lib-vue/reactive-search-params.js').useReactiveSearchParams - const useRedirects: typeof import('../src/composables/use-redirects').useRedirects - const useRoleLabels: typeof import('../src/composables/use-role-labels').useRoleLabels - const useRoute: typeof import('vue-router').useRoute - const useRouter: typeof import('vue-router').useRouter - const useSeoMeta: typeof import('@unhead/vue').useSeoMeta - const useServerHead: typeof import('@unhead/vue')['useServerHead'] - const useServerHeadSafe: typeof import('@unhead/vue')['useServerHeadSafe'] - const useServerSeoMeta: typeof import('@unhead/vue')['useServerSeoMeta'] - const useSession: typeof import('@data-fair/lib-vue/session.js').useSession - const useSessionAuthenticated: typeof import('@data-fair/lib-vue/session.js').useSessionAuthenticated - const useSlots: typeof import('vue').useSlots - const useStore: typeof import('../src/composables/use-store').useStore - const useStringSearchParam: typeof import('@data-fair/lib-vue/reactive-search-params.js').useStringSearchParam - const useStringsArraySearchParam: typeof import('@data-fair/lib-vue/reactive-search-params.js').useStringsArraySearchParam - const useTemplateRef: typeof import('vue').useTemplateRef - const useUiNotif: typeof import('@data-fair/lib-vue/ui-notif.js').useUiNotif - const useWS: typeof import('@data-fair/lib-vue/ws.js').useWS - const watch: typeof import('vue').watch - const watchDeepDiff: typeof import('@data-fair/lib-vue/deep-diff.js').watchDeepDiff - const watchEffect: typeof import('vue').watchEffect - const watchPostEffect: typeof import('vue').watchPostEffect - const watchSyncEffect: typeof import('vue').watchSyncEffect - const withUiNotif: typeof import('@data-fair/lib-vue/ui-notif.js').withUiNotif -} -// for type re-export -declare global { - // @ts-ignore - export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, ShallowRef, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' - import('vue') - // @ts-ignore - export type { Organization, User, Member, Partner, Invitation, Site, Limits } from '@sd/api/types' - import('@sd/api/types') -} - -// for vue template auto import -import { UnwrapRef } from 'vue' -declare module 'vue' { - interface GlobalComponents {} - interface ComponentCustomProperties { - readonly $apiPath: UnwrapRef - readonly $cspNonce: UnwrapRef - readonly $fetch: UnwrapRef - readonly $sdUrl: UnwrapRef - readonly $sitePath: UnwrapRef - readonly $siteUrl: UnwrapRef - readonly $uiConfig: UnwrapRef - readonly EffectScope: UnwrapRef - readonly computed: UnwrapRef - readonly computedDeepDiff: UnwrapRef - readonly createApp: UnwrapRef - readonly customRef: UnwrapRef - readonly defineAsyncComponent: UnwrapRef - readonly defineComponent: UnwrapRef - readonly effectScope: UnwrapRef - readonly formatBytes: UnwrapRef - readonly getCurrentInstance: UnwrapRef - readonly getCurrentScope: UnwrapRef - readonly getCurrentWatcher: UnwrapRef - readonly h: UnwrapRef - readonly inject: UnwrapRef - readonly injectHead: UnwrapRef - readonly isProxy: UnwrapRef - readonly isReactive: UnwrapRef - readonly isReadonly: UnwrapRef - readonly isRef: UnwrapRef - readonly isShallow: UnwrapRef - readonly markRaw: UnwrapRef - readonly mdiAccount: UnwrapRef - readonly mdiAccountCircle: UnwrapRef - readonly mdiAccountGroup: UnwrapRef - readonly mdiAccountSwitch: UnwrapRef - readonly mdiAlertCircle: UnwrapRef - readonly mdiBell: UnwrapRef - readonly mdiCancel: UnwrapRef - readonly mdiCellphone: UnwrapRef - readonly mdiCheck: UnwrapRef - readonly mdiCheckCircle: UnwrapRef - readonly mdiCog: UnwrapRef - readonly mdiConnection: UnwrapRef - readonly mdiContentCopy: UnwrapRef - readonly mdiDelete: UnwrapRef - readonly mdiDevices: UnwrapRef - readonly mdiDotsVertical: UnwrapRef - readonly mdiDownload: UnwrapRef - readonly mdiEmail: UnwrapRef - readonly mdiEye: UnwrapRef - readonly mdiEyeOffOutline: UnwrapRef - readonly mdiEyeOutline: UnwrapRef - readonly mdiFamilyTree: UnwrapRef - readonly mdiFileTable: UnwrapRef - readonly mdiGraph: UnwrapRef - readonly mdiInformation: UnwrapRef - readonly mdiLoginVariant: UnwrapRef - readonly mdiMagnify: UnwrapRef - readonly mdiMonitorCellphoneStar: UnwrapRef - readonly mdiPencil: UnwrapRef - readonly mdiPlus: UnwrapRef - readonly mdiRefresh: UnwrapRef - readonly mdiRobot: UnwrapRef - readonly mdiRss: UnwrapRef - readonly mdiSend: UnwrapRef - readonly mdiShieldAlert: UnwrapRef - readonly mdiSort: UnwrapRef - readonly mdiSwapHorizontal: UnwrapRef - readonly mdiThemeLightDark: UnwrapRef - readonly mdiWeb: UnwrapRef - readonly nextTick: UnwrapRef - readonly onActivated: UnwrapRef - readonly onBeforeMount: UnwrapRef - readonly onBeforeRouteLeave: UnwrapRef - readonly onBeforeRouteUpdate: UnwrapRef - readonly onBeforeUnmount: UnwrapRef - readonly onBeforeUpdate: UnwrapRef - readonly onDeactivated: UnwrapRef - readonly onErrorCaptured: UnwrapRef - readonly onMounted: UnwrapRef - readonly onRenderTracked: UnwrapRef - readonly onRenderTriggered: UnwrapRef - readonly onScopeDispose: UnwrapRef - readonly onServerPrefetch: UnwrapRef - readonly onUnmounted: UnwrapRef - readonly onUpdated: UnwrapRef - readonly onWatcherCleanup: UnwrapRef - readonly provide: UnwrapRef - readonly reactive: UnwrapRef - readonly readonly: UnwrapRef - readonly ref: UnwrapRef - readonly resolveComponent: UnwrapRef - readonly shallowReactive: UnwrapRef - readonly shallowReadonly: UnwrapRef - readonly shallowRef: UnwrapRef - readonly toRaw: UnwrapRef - readonly toRef: UnwrapRef - readonly toRefs: UnwrapRef - readonly toValue: UnwrapRef - readonly triggerRef: UnwrapRef - readonly unref: UnwrapRef - readonly useAsyncAction: UnwrapRef - readonly useAttrs: UnwrapRef - readonly useBooleanSearchParam: UnwrapRef - readonly useConceptFilters: UnwrapRef - readonly useCssModule: UnwrapRef - readonly useCssVars: UnwrapRef - readonly useDisplayOwner: UnwrapRef - readonly useEditFetch: UnwrapRef - readonly useFetch: UnwrapRef - readonly useHead: UnwrapRef - readonly useHeadSafe: UnwrapRef - readonly useI18n: UnwrapRef - readonly useId: UnwrapRef - readonly useLeaveGuard: UnwrapRef - readonly useLink: UnwrapRef - readonly useLocaleDayjs: UnwrapRef - readonly useModel: UnwrapRef - readonly useNumberSearchParam: UnwrapRef - readonly useReactiveSearchParams: UnwrapRef - readonly useRedirects: UnwrapRef - readonly useRoleLabels: UnwrapRef - readonly useRoute: UnwrapRef - readonly useRouter: UnwrapRef - readonly useSeoMeta: UnwrapRef - readonly useSession: UnwrapRef - readonly useSessionAuthenticated: UnwrapRef - readonly useSlots: UnwrapRef - readonly useStore: UnwrapRef - readonly useStringSearchParam: UnwrapRef - readonly useStringsArraySearchParam: UnwrapRef - readonly useTemplateRef: UnwrapRef - readonly useUiNotif: UnwrapRef - readonly useWS: UnwrapRef - readonly watch: UnwrapRef - readonly watchDeepDiff: UnwrapRef - readonly watchEffect: UnwrapRef - readonly watchPostEffect: UnwrapRef - readonly watchSyncEffect: UnwrapRef - readonly withUiNotif: UnwrapRef - } -} \ No newline at end of file diff --git a/ui/dts/components.d.ts b/ui/dts/components.d.ts deleted file mode 100644 index 86890abc..00000000 --- a/ui/dts/components.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* eslint-disable */ -// @ts-nocheck -// biome-ignore lint: disable -// oxlint-disable -// ------ -// Generated by unplugin-vue-components -// Read more: https://github.com/vuejs/core/pull/3399 - -export {} - -/* prettier-ignore */ -declare module 'vue' { - export interface GlobalComponents { - AddDepartmentMenu: typeof import('./../src/components/add-department-menu.vue')['default'] - AddMemberMenu: typeof import('./../src/components/add-member-menu.vue')['default'] - AddNhiMenu: typeof import('./../src/components/add-nhi-menu.vue')['default'] - AddOrganizationMenu: typeof import('./../src/components/add-organization-menu.vue')['default'] - AddPartnerMenu: typeof import('./../src/components/add-partner-menu.vue')['default'] - AddPartnerSuperadminMenu: typeof import('./../src/components/add-partner-superadmin-menu.vue')['default'] - AuthProvidersLoginLinks: typeof import('./../src/components/auth-providers-login-links.vue')['default'] - CancelDeletion: typeof import('./../src/components/cancel-deletion.vue')['default'] - ChangeHost: typeof import('./../src/components/change-host.vue')['default'] - ColorsPreview: typeof import('./../src/components/colors-preview.vue')['default'] - ConfirmMenu: typeof import('./../src/components/confirm-menu.vue')['default'] - DeleteDepartmentMenu: typeof import('./../src/components/delete-department-menu.vue')['default'] - DeleteMemberMenu: typeof import('./../src/components/delete-member-menu.vue')['default'] - DeleteNhiMenu: typeof import('./../src/components/delete-nhi-menu.vue')['default'] - DeletePartnerMenu: typeof import('./../src/components/delete-partner-menu.vue')['default'] - EditDepartmentMenu: typeof import('./../src/components/edit-department-menu.vue')['default'] - EditDepartmentsMenu: typeof import('./../src/components/edit-departments-menu.vue')['default'] - EditMemberMenu: typeof import('./../src/components/edit-member-menu.vue')['default'] - EditNhiMenu: typeof import('./../src/components/edit-nhi-menu.vue')['default'] - LayoutAppBar: typeof import('./../src/components/layout/layout-app-bar.vue')['default'] - LoadAvatar: typeof import('./../src/components/load-avatar.vue')['default'] - Logo: typeof import('./../src/components/logo.vue')['default'] - NotifyMenu: typeof import('./../src/components/notify-menu.vue')['default'] - OrganizationDepartments: typeof import('./../src/components/organization-departments.vue')['default'] - OrganizationMembers: typeof import('./../src/components/organization-members.vue')['default'] - OrganizationNhis: typeof import('./../src/components/organization-nhis.vue')['default'] - OrganizationPartners: typeof import('./../src/components/organization-partners.vue')['default'] - OrganizationStorage: typeof import('./../src/components/organization-storage.vue')['default'] - PartnerInvitation: typeof import('./../src/components/partner-invitation.vue')['default'] - PasswordReveal: typeof import('./../src/components/password-reveal.vue')['default'] - ResendInvitation: typeof import('./../src/components/resend-invitation.vue')['default'] - ResendPartnerInvitation: typeof import('./../src/components/resend-partner-invitation.vue')['default'] - RouterLink: typeof import('vue-router')['RouterLink'] - RouterView: typeof import('vue-router')['RouterView'] - SitePost: typeof import('./../src/components/site-post.vue')['default'] - VjsfPatchReqBody: typeof import('./../src/components/vjsf/vjsf-patch-req-body.vue')['default'] - VjsfPatchReqBodyDe: typeof import('./../src/components/vjsf/vjsf-patch-req-body-de.vue')['default'] - VjsfPatchReqBodyEn: typeof import('./../src/components/vjsf/vjsf-patch-req-body-en.vue')['default'] - VjsfPatchReqBodyEs: typeof import('./../src/components/vjsf/vjsf-patch-req-body-es.vue')['default'] - VjsfPatchReqBodyFr: typeof import('./../src/components/vjsf/vjsf-patch-req-body-fr.vue')['default'] - VjsfPatchReqBodyIt: typeof import('./../src/components/vjsf/vjsf-patch-req-body-it.vue')['default'] - VjsfPatchReqBodyPt: typeof import('./../src/components/vjsf/vjsf-patch-req-body-pt.vue')['default'] - VjsfPostReqBody: typeof import('./../src/components/vjsf/vjsf-post-req-body.vue')['default'] - VjsfPostReqBodyDe: typeof import('./../src/components/vjsf/vjsf-post-req-body-de.vue')['default'] - VjsfPostReqBodyEn: typeof import('./../src/components/vjsf/vjsf-post-req-body-en.vue')['default'] - VjsfPostReqBodyEs: typeof import('./../src/components/vjsf/vjsf-post-req-body-es.vue')['default'] - VjsfPostReqBodyFr: typeof import('./../src/components/vjsf/vjsf-post-req-body-fr.vue')['default'] - VjsfPostReqBodyIt: typeof import('./../src/components/vjsf/vjsf-post-req-body-it.vue')['default'] - VjsfPostReqBodyPt: typeof import('./../src/components/vjsf/vjsf-post-req-body-pt.vue')['default'] - } -} diff --git a/ui/dts/typed-router.d.ts b/ui/dts/typed-router.d.ts deleted file mode 100644 index 48bc6a29..00000000 --- a/ui/dts/typed-router.d.ts +++ /dev/null @@ -1,316 +0,0 @@ -/* eslint-disable */ -/* prettier-ignore */ -// oxfmt-ignore -// @ts-nocheck -// noinspection ES6UnusedImports -// Generated by vue-router. !! DO NOT MODIFY THIS FILE !! -// It's recommended to commit this file. -// Make sure to add this file to your tsconfig.json file as an "includes" or "files" entry. - -import type { - RouteRecordInfo, - ParamValue, - ParamValueOneOrMore, - ParamValueZeroOrMore, - ParamValueZeroOrOne, -} from 'vue-router' -import type { - _ExtractParamParserType, -} from 'vue-router/experimental' - -declare module 'vue-router' { - interface TypesConfig { - _ParamParsers: {} - RouteNamedMap: import('vue-router/auto-routes').RouteNamedMap - _RouteFileInfoMap: import('vue-router/auto-routes')._RouteFileInfoMap - } -} - -declare module 'vue-router/auto-routes' { - /** - * Route name map generated by vue-router - */ - export interface RouteNamedMap { - '/': RouteRecordInfo< - '/', - '/', - Record, - Record, - | never - >, - '/admin/oauth-tokens': RouteRecordInfo< - '/admin/oauth-tokens', - '/admin/oauth-tokens', - Record, - Record, - | never - >, - '/admin/organizations': RouteRecordInfo< - '/admin/organizations', - '/admin/organizations', - Record, - Record, - | never - >, - '/admin/password-lists': RouteRecordInfo< - '/admin/password-lists', - '/admin/password-lists', - Record, - Record, - | never - >, - '/admin/sites/': RouteRecordInfo< - '/admin/sites/', - '/admin/sites', - Record, - Record, - | never - >, - '/admin/sites/[id]': RouteRecordInfo< - '/admin/sites/[id]', - '/admin/sites/:id', - { id: ParamValue }, - { id: ParamValue }, - | never - >, - '/admin/users': RouteRecordInfo< - '/admin/users', - '/admin/users', - Record, - Record, - | never - >, - '/contact': RouteRecordInfo< - '/contact', - '/contact', - Record, - Record, - | never - >, - '/create-organization': RouteRecordInfo< - '/create-organization', - '/create-organization', - Record, - Record, - | never - >, - '/dev': RouteRecordInfo< - '/dev', - '/dev', - Record, - Record, - | never - >, - '/invitation': RouteRecordInfo< - '/invitation', - '/invitation', - Record, - Record, - | never - >, - '/login': RouteRecordInfo< - '/login', - '/login', - Record, - Record, - | never - >, - '/me': RouteRecordInfo< - '/me', - '/me', - Record, - Record, - | never - >, - '/organization/[id]/': RouteRecordInfo< - '/organization/[id]/', - '/organization/:id', - { id: ParamValue }, - { id: ParamValue }, - | never - >, - '/organization/[id]/department/[departmentId]': RouteRecordInfo< - '/organization/[id]/department/[departmentId]', - '/organization/:id/department/:departmentId', - { departmentId: ParamValue, id: ParamValue }, - { departmentId: ParamValue, id: ParamValue }, - | never - >, - '/site-admin/organizations': RouteRecordInfo< - '/site-admin/organizations', - '/site-admin/organizations', - Record, - Record, - | never - >, - '/site-admin/users': RouteRecordInfo< - '/site-admin/users', - '/site-admin/users', - Record, - Record, - | never - >, - } - - /** - * Route file to route info map by vue-router. - * Used by the \`sfc-typed-router\` Volar plugin to automatically type \`useRoute()\`. - * - * Each key is a file path relative to the project root with 2 properties: - * - routes: union of route names of the possible routes when in this page (passed to useRoute<...>()) - * - views: names of nested views (can be passed to ) - * - * @internal - */ - export interface _RouteFileInfoMap { - 'src/pages/index.vue': { - routes: - | '/' - views: - | never - pathParamNames: - | never - } - 'src/pages/admin/oauth-tokens.vue': { - routes: - | '/admin/oauth-tokens' - views: - | never - pathParamNames: - | never - } - 'src/pages/admin/organizations.vue': { - routes: - | '/admin/organizations' - views: - | never - pathParamNames: - | never - } - 'src/pages/admin/password-lists.vue': { - routes: - | '/admin/password-lists' - views: - | never - pathParamNames: - | never - } - 'src/pages/admin/sites/index.vue': { - routes: - | '/admin/sites/' - views: - | never - pathParamNames: - | never - } - 'src/pages/admin/sites/[id].vue': { - routes: - | '/admin/sites/[id]' - views: - | never - pathParamNames: - | 'id' - } - 'src/pages/admin/users.vue': { - routes: - | '/admin/users' - views: - | never - pathParamNames: - | never - } - 'src/pages/contact.vue': { - routes: - | '/contact' - views: - | never - pathParamNames: - | never - } - 'src/pages/create-organization.vue': { - routes: - | '/create-organization' - views: - | never - pathParamNames: - | never - } - 'src/pages/dev.vue': { - routes: - | '/dev' - views: - | never - pathParamNames: - | never - } - 'src/pages/invitation.vue': { - routes: - | '/invitation' - views: - | never - pathParamNames: - | never - } - 'src/pages/login.vue': { - routes: - | '/login' - views: - | never - pathParamNames: - | never - } - 'src/pages/me.vue': { - routes: - | '/me' - views: - | never - pathParamNames: - | never - } - 'src/pages/organization/[id]/index.vue': { - routes: - | '/organization/[id]/' - views: - | never - pathParamNames: - | never - } - 'src/pages/organization/[id]/department/[departmentId].vue': { - routes: - | '/organization/[id]/department/[departmentId]' - views: - | never - pathParamNames: - | 'departmentId' - } - 'src/pages/site-admin/organizations.vue': { - routes: - | '/site-admin/organizations' - views: - | never - pathParamNames: - | never - } - 'src/pages/site-admin/users.vue': { - routes: - | '/site-admin/users' - views: - | never - pathParamNames: - | never - } - } - - /** - * Get a union of possible route names in a certain route component file. - * Used by the \`sfc-typed-router\` Volar plugin to automatically type \`useRoute()\`. - * - * @internal - */ - export type _RouteNamesForFilePath = - _RouteFileInfoMap extends Record - ? Info['routes'] - : keyof RouteNamedMap -} - -export {} diff --git a/ui/package.json b/ui/package.json index 19621dc6..4f9763c3 100644 --- a/ui/package.json +++ b/ui/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "NODE_CONFIG_DIR=../api/config/ vite --configLoader native --port $DEV_UI_PORT", - "build": "vue-tsc -b && vite build", + "build": "vite build", "prepare-webfont-css": "", "preview": "vite preview", "check-types": "vue-tsc",