mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-25 15:15:23 +03:00
feat: script:create:tool command supports specifying tool categories: pnpm script:create:tool [tool-name] [category-name] feat: A locales folder can be created independently under each tool to support independent configuration of the tool's own internationalization, making developers more focused and reducing file modification conflicts perf: Optimize the script:create:tool command to create generated files, reduce the chance of public file modification conflicts, and allow developers to focus more on developing their own perf: Improve the category field in defineTool for existing tools
24 lines
450 B
TypeScript
24 lines
450 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[]
|
|
footer?: string
|
|
category: string
|
|
}
|
|
|
|
export interface ToolCategory {
|
|
name: string
|
|
components: Tool[]
|
|
}
|
|
|
|
export type ToolWithCategory = Tool & { category: string };
|