Auto Router, Discord Rules Page, & Vi18n lib (#52)
feat: Auto Router, Discord Rules Page, & Vi18n lib (#52)
This commit is contained in:
parent
262b8c578f
commit
8c59485898
51 changed files with 3479 additions and 782 deletions
11
apps/vdn-static/src/utils/smart-dest.ts
Normal file
11
apps/vdn-static/src/utils/smart-dest.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import type { RouteNamedMap } from "vue-router/auto-routes";
|
||||
|
||||
export type SmartDest =
|
||||
| { type: "internal"; internal: SmartInternalDest }
|
||||
| { type: "external"; external: SmartExternalDest };
|
||||
|
||||
export type SmartInternalDest =
|
||||
| { route: keyof RouteNamedMap; id?: string }
|
||||
| { route?: keyof RouteNamedMap; id: string };
|
||||
|
||||
export type SmartExternalDest = `https://${string}` | `http://${string}`;
|
||||
Loading…
Add table
Add a link
Reference in a new issue