mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-27 17:50:53 +01:00
- Introduced new interfaces for various store modules including environment, file, git, layout, node, notification alerts, channels, requests, settings, plugins, projects, roles, schedules, spiders, systems, tags, tasks, tokens, and users. - Each module includes state, getters, mutations, and actions definitions to enhance type safety and maintainability. - Added utility interfaces for file handling and view-specific types for database, git, login, node, project, result, schedule, spider, task, and user. - Improved overall structure and organization of TypeScript typings for better developer experience.
32 lines
710 B
TypeScript
32 lines
710 B
TypeScript
import {
|
|
DATA_FIELD_TYPE_AUDIO,
|
|
DATA_FIELD_TYPE_CURRENCY,
|
|
DATA_FIELD_TYPE_TIME,
|
|
DATA_FIELD_TYPE_GENERAL,
|
|
DATA_FIELD_TYPE_IMAGE,
|
|
DATA_FIELD_TYPE_NUMERIC,
|
|
DATA_FIELD_TYPE_URL,
|
|
DATA_FIELD_TYPE_VIDEO,
|
|
DATA_FIELD_TYPE_HTML,
|
|
DATA_FIELD_TYPE_LONG_TEXT,
|
|
} from '@/constants/dataFields';
|
|
|
|
export declare global {
|
|
interface DataField {
|
|
key?: string;
|
|
type?: DataFieldType;
|
|
}
|
|
|
|
type DataFieldType =
|
|
| DATA_FIELD_TYPE_GENERAL
|
|
| DATA_FIELD_TYPE_NUMERIC
|
|
| DATA_FIELD_TYPE_TIME
|
|
| DATA_FIELD_TYPE_CURRENCY
|
|
| DATA_FIELD_TYPE_URL
|
|
| DATA_FIELD_TYPE_IMAGE
|
|
| DATA_FIELD_TYPE_AUDIO
|
|
| DATA_FIELD_TYPE_VIDEO
|
|
| DATA_FIELD_TYPE_HTML
|
|
| DATA_FIELD_TYPE_LONG_TEXT;
|
|
}
|