mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-26 01:36:15 -04:00
feat: externalized tool configuration
This commit is contained in:
parent
c3adfe30ec
commit
690bd099ef
31 changed files with 387 additions and 300 deletions
|
@ -1,13 +1,14 @@
|
|||
import {RouteConfig} from '@nuxt/types/config/router';
|
||||
|
||||
interface ToolConfig {
|
||||
title: string;
|
||||
description: string;
|
||||
icon: string;
|
||||
keywords: string[];
|
||||
path?: string
|
||||
}
|
||||
|
||||
type ToolConfigMethod = () => ToolConfig;
|
||||
type ToolRouteConfig = RouteConfig & {config: ToolConfig}
|
||||
interface ToolRouteConfig extends ToolConfig{
|
||||
componentPath: string
|
||||
}
|
||||
|
||||
export {ToolConfig, ToolConfigMethod, ToolRouteConfig}
|
||||
export {ToolConfig, ToolRouteConfig}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue