WIP: Enable OpenAPI spec generation and integrate with frontend #21
2 changed files with 6 additions and 29 deletions
27
frontend/typed-router.d.ts
vendored
27
frontend/typed-router.d.ts
vendored
|
@ -1,27 +0,0 @@
|
|||
/* eslint-disable */
|
||||
/* prettier-ignore */
|
||||
// @ts-nocheck
|
||||
// Generated by unplugin-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.
|
||||
|
||||
declare module 'vue-router/auto-routes' {
|
||||
import type {
|
||||
RouteRecordInfo,
|
||||
ParamValue,
|
||||
ParamValueOneOrMore,
|
||||
ParamValueZeroOrMore,
|
||||
ParamValueZeroOrOne,
|
||||
} from 'vue-router'
|
||||
|
||||
/**
|
||||
* Route name map generated by unplugin-vue-router
|
||||
*/
|
||||
export interface RouteNamedMap {
|
||||
'/': RouteRecordInfo<'/', '/', Record<never, never>, Record<never, never>>,
|
||||
'/cert-request': RouteRecordInfo<'/cert-request', '/cert-request', Record<never, never>, Record<never, never>>,
|
||||
'/certificates/': RouteRecordInfo<'/certificates/', '/certificates', Record<never, never>, Record<never, never>>,
|
||||
'/certificates/[fingerprint]': RouteRecordInfo<'/certificates/[fingerprint]', '/certificates/:fingerprint', { fingerprint: ParamValue<true> }, { fingerprint: ParamValue<false> }>,
|
||||
'/certificates/new': RouteRecordInfo<'/certificates/new', '/certificates/new', Record<never, never>, Record<never, never>>,
|
||||
}
|
||||
}
|
|
@ -9,7 +9,9 @@ import { fileURLToPath, URL } from 'node:url'
|
|||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
VueRouter(),
|
||||
VueRouter({
|
||||
dts: './src/generated/typed-routes.d.ts'
|
||||
}),
|
||||
Vue({
|
||||
template: { transformAssetUrls },
|
||||
}),
|
||||
|
@ -19,7 +21,9 @@ export default defineConfig({
|
|||
configFile: 'src/styles/settings.scss',
|
||||
},
|
||||
}),
|
||||
Components(),
|
||||
Components({
|
||||
dts: './src/generated/components.d.ts',
|
||||
}),
|
||||
ViteFonts({
|
||||
google: {
|
||||
families: [ {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue