mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-21 21:44:40 +03:00
47 lines
949 B
TypeScript
47 lines
949 B
TypeScript
import type { Component } from 'vue';
|
|
|
|
export interface Tool {
|
|
name: string
|
|
path: string
|
|
description: string
|
|
keywords: string[]
|
|
component: () => Promise<Component>
|
|
icon: Component
|
|
redirectFrom?: string[]
|
|
isNew: boolean
|
|
createdAt?: Date
|
|
npmPackages?: string[]
|
|
externAccessDescription?: string
|
|
footer?: string
|
|
category: string
|
|
externalHTMLContent?: string
|
|
}
|
|
|
|
export interface ExternalTool {
|
|
name: string
|
|
path: string
|
|
description?: string
|
|
keywords?: string[]
|
|
icon?: Component
|
|
redirectFrom?: string[]
|
|
isNew: boolean
|
|
createdAt?: Date
|
|
category: string
|
|
markdownContent?: string
|
|
href?: string
|
|
}
|
|
|
|
export interface ToolCategory {
|
|
name: string
|
|
components: Tool[]
|
|
}
|
|
|
|
export interface ToolsFilter {
|
|
excludeCategoryFilterRegex?: string
|
|
includeCategoryFilterRegex?: string
|
|
excludeToolsFilterRegex?: string
|
|
includeToolsFilterRegex?: string
|
|
}
|
|
|
|
export type ToolWithCategory = Tool & { category: string };
|