Skip to content

Commit

Permalink
refactor: updated typings
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Aug 5, 2024
1 parent 3780476 commit 78108fa
Show file tree
Hide file tree
Showing 735 changed files with 18,598 additions and 10,458 deletions.
7,523 changes: 7,523 additions & 0 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ import Chart from './ui/chart/Chart.vue';
import Metric from './ui/chart/Metric.vue';
import ContextMenu from './ui/context-menu/ContextMenu.vue';
import ContextMenuList from './ui/context-menu/ContextMenuList.vue';
import * as date from './ui/date/date';
import DateRangePicker from './ui/date/DateRangePicker.vue';
import DateTimeRangePicker from './ui/date/DateTimeRangePicker.vue';
import RangePicker from './ui/date/RangePicker.vue';
import * as date from './ui/date/date';
import ConfirmDialog from './ui/dialog/ConfirmDialog.vue';
import CreateEditDialog from './ui/dialog/CreateEditDialog.vue';
import Dialog from './ui/dialog/Dialog.vue';
Expand All @@ -96,6 +96,7 @@ import FileActions from './ui/file/FileActions.vue';
import FileDiff from './ui/file/FileDiff.vue';
import FileEditor from './ui/file/FileEditor.vue';
import FileEditorCreateWithAiDialog from './ui/file/FileEditorCreateWithAiDialog.vue';
import * as fileEditorDropZone from './ui/file/fileEditorDropZone';
import FileEditorNavMenu from './ui/file/FileEditorNavMenu.vue';
import FileEditorNavMenuContextMenu from './ui/file/FileEditorNavMenuContextMenu.vue';
import FileEditorNavTabs from './ui/file/FileEditorNavTabs.vue';
Expand All @@ -105,23 +106,21 @@ import FileEditorSettingsDialog from './ui/file/FileEditorSettingsDialog.vue';
import FileTab from './ui/file/FileTab.vue';
import FileUpload from './ui/file/FileUpload.vue';
import UploadFilesDialog from './ui/file/UploadFilesDialog.vue';
import * as fileEditorDropZone from './ui/file/fileEditorDropZone';
import * as filter from './ui/filter/filter';
import FilterCondition from './ui/filter/FilterCondition.vue';
import FilterConditionList from './ui/filter/FilterConditionList.vue';
import FilterInput from './ui/filter/FilterInput.vue';
import FilterSelect from './ui/filter/FilterSelect.vue';
import * as filter from './ui/filter/filter';
import Form from './ui/form/Form.vue';
import FormItem from './ui/form/FormItem.vue';
import FormTableField from './ui/form/FormTableField.vue';
import * as formTable from './ui/form/formTable';
import FormTableField from './ui/form/FormTableField.vue';
import useForm from './ui/form/useForm';
import AtomMaterialIcon from './ui/icon/AtomMaterialIcon.vue';
import * as icon from './ui/icon/icon';
import Icon from './ui/icon/Icon.vue';
import MenuItemIcon from './ui/icon/MenuItemIcon.vue';
import * as icon from './ui/icon/icon';
import InputList from './ui/input/InputList.vue';
import LexicalEditor from './ui/lexical/LexicalEditor.vue';
import BlockOptionsDropdownList from './ui/lexical/components/BlockOptionsDropdownList.vue';
import DropdownButton from './ui/lexical/components/DropdownButton.vue';
import FloatLinkEditor from './ui/lexical/components/FloatLinkEditor.vue';
Expand All @@ -137,6 +136,7 @@ import useLexicalList from './ui/lexical/composables/useLexicalList';
import useLexicalMounted from './ui/lexical/composables/useLexicalMounted';
import useRichTextSetup from './ui/lexical/composables/useRichTextSetup';
import useVariableSetup from './ui/lexical/composables/useVariableSetup';
import LexicalEditor from './ui/lexical/LexicalEditor.vue';
import * as ImageNode from './ui/lexical/nodes/ImageNode';
import * as VariableNode from './ui/lexical/nodes/VariableNode';
import LexicalAutoFocusPlugin from './ui/lexical/plugins/LexicalAutoFocusPlugin.vue';
Expand Down Expand Up @@ -174,6 +174,12 @@ import NavTabs from './ui/nav/NavTabs.vue';
import InputSelect from './ui/select/InputSelect.vue';
import Switch from './ui/switch/Switch.vue';
import ActionTab from './ui/tab/ActionTab.vue';
import * as action from './ui/table/action';
import * as column from './ui/table/column';
import * as data from './ui/table/data';
import * as header from './ui/table/header';
import * as pagination from './ui/table/pagination';
import * as store from './ui/table/store';
import Table from './ui/table/Table.vue';
import TableActions from './ui/table/TableActions.vue';
import TableCell from './ui/table/TableCell.vue';
Expand All @@ -183,12 +189,6 @@ import TableHeaderAction from './ui/table/TableHeaderAction.vue';
import TableHeaderDialog from './ui/table/TableHeaderDialog.vue';
import TableHeaderDialogFilter from './ui/table/TableHeaderDialogFilter.vue';
import TableHeaderDialogSort from './ui/table/TableHeaderDialogSort.vue';
import * as action from './ui/table/action';
import * as column from './ui/table/column';
import * as data from './ui/table/data';
import * as header from './ui/table/header';
import * as pagination from './ui/table/pagination';
import * as store from './ui/table/store';
import CheckTag from './ui/tag/CheckTag.vue';
import CheckTagGroup from './ui/tag/CheckTagGroup.vue';
import LinkTag from './ui/tag/LinkTag.vue';
Expand Down Expand Up @@ -281,10 +281,10 @@ export {
Metric as ClMetric,
ContextMenu as ClContextMenu,
ContextMenuList as ClContextMenuList,
date as date,
DateRangePicker as ClDateRangePicker,
DateTimeRangePicker as ClDateTimeRangePicker,
RangePicker as ClRangePicker,
date as date,
ConfirmDialog as ClConfirmDialog,
CreateEditDialog as ClCreateEditDialog,
Dialog as ClDialog,
Expand All @@ -298,6 +298,7 @@ export {
FileDiff as ClFileDiff,
FileEditor as ClFileEditor,
FileEditorCreateWithAiDialog as ClFileEditorCreateWithAiDialog,
fileEditorDropZone as fileEditorDropZone,
FileEditorNavMenu as ClFileEditorNavMenu,
FileEditorNavMenuContextMenu as ClFileEditorNavMenuContextMenu,
FileEditorNavTabs as ClFileEditorNavTabs,
Expand All @@ -307,23 +308,21 @@ export {
FileTab as ClFileTab,
FileUpload as ClFileUpload,
UploadFilesDialog as ClUploadFilesDialog,
fileEditorDropZone as fileEditorDropZone,
filter as filter,
FilterCondition as ClFilterCondition,
FilterConditionList as ClFilterConditionList,
FilterInput as ClFilterInput,
FilterSelect as ClFilterSelect,
filter as filter,
Form as ClForm,
FormItem as ClFormItem,
FormTableField as ClFormTableField,
formTable as formTable,
FormTableField as ClFormTableField,
useForm as useForm,
AtomMaterialIcon as ClAtomMaterialIcon,
icon as icon,
Icon as ClIcon,
MenuItemIcon as ClMenuItemIcon,
icon as icon,
InputList as ClInputList,
LexicalEditor as ClLexicalEditor,
BlockOptionsDropdownList as ClBlockOptionsDropdownList,
DropdownButton as ClDropdownButton,
FloatLinkEditor as ClFloatLinkEditor,
Expand All @@ -339,6 +338,7 @@ export {
useLexicalMounted as useLexicalMounted,
useRichTextSetup as useRichTextSetup,
useVariableSetup as useVariableSetup,
LexicalEditor as ClLexicalEditor,
ImageNode as ImageNode,
VariableNode as VariableNode,
LexicalAutoFocusPlugin as ClLexicalAutoFocusPlugin,
Expand Down Expand Up @@ -376,6 +376,12 @@ export {
InputSelect as ClInputSelect,
Switch as ClSwitch,
ActionTab as ClActionTab,
action as action,
column as column,
data as data,
header as header,
pagination as pagination,
store as store,
Table as ClTable,
TableActions as ClTableActions,
TableCell as ClTableCell,
Expand All @@ -385,12 +391,6 @@ export {
TableHeaderDialog as ClTableHeaderDialog,
TableHeaderDialogFilter as ClTableHeaderDialogFilter,
TableHeaderDialogSort as ClTableHeaderDialogSort,
action as action,
column as column,
data as data,
header as header,
pagination as pagination,
store as store,
CheckTag as ClCheckTag,
CheckTagGroup as ClCheckTagGroup,
LinkTag as ClLinkTag,
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import BlankLayout from './BlankLayout.vue';
import NormalLayout from './NormalLayout.vue';
import Header from './components/Header.vue';
import Sidebar from './components/Sidebar.vue';
import SidebarItem from './components/SidebarItem.vue';
Expand All @@ -9,10 +8,10 @@ import useDetail from './content/detail/useDetail';
import ListLayout from './content/list/ListLayout.vue';
import useList from './content/list/useList';
import SimpleLayout from './content/simple/SimpleLayout.vue';
import NormalLayout from './NormalLayout.vue';

export {
BlankLayout as ClBlankLayout,
NormalLayout as ClNormalLayout,
Header as ClHeader,
Sidebar as ClSidebar,
SidebarItem as ClSidebarItem,
Expand All @@ -22,4 +21,5 @@ export {
ListLayout as ClListLayout,
useList as useList,
SimpleLayout as ClSimpleLayout,
NormalLayout as ClNormalLayout,
};
1 change: 1 addition & 0 deletions src/views/git/detail/tabs/GitDetailTabSpiders.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup lang="ts">
defineOptions({ name: 'ClGitDetailTabSpiders' });
defineOptions({ name: 'ClGitDetailTabSpiders' });
</script>

<template>
Expand Down
32 changes: 16 additions & 16 deletions src/views/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import LogsView from './deps/task/LogsView.vue';
import TaskAction from './deps/task/TaskAction.vue';
import EnvironmentList from './environment/list/EnvironmentList.vue';
import useEnvironmentList from './environment/list/useEnvironmentList';
import GitDetail from './git/detail/GitDetail.vue';
import GitDetailActionsChanges from './git/detail/actions/GitDetailActionsChanges.vue';
import GitDetailActionsCommon from './git/detail/actions/GitDetailActionsCommon.vue';
import GitDetailActionsFiles from './git/detail/actions/GitDetailActionsFiles.vue';
import GitDetailActionsSpiders from './git/detail/actions/GitDetailActionsSpiders.vue';
import GitDetail from './git/detail/GitDetail.vue';
import GitDetailTabChanges from './git/detail/tabs/GitDetailTabChanges.vue';
import GitDetailTabFiles from './git/detail/tabs/GitDetailTabFiles.vue';
import GitDetailTabLogs from './git/detail/tabs/GitDetailTabLogs.vue';
Expand All @@ -34,29 +34,29 @@ import Home from './home/Home.vue';
import Login from './login/Login.vue';
import Disclaimer from './misc/Disclaimer.vue';
import MySettings from './misc/MySettings.vue';
import NodeDetail from './node/detail/NodeDetail.vue';
import NodeDetailActionsCommon from './node/detail/actions/NodeDetailActionsCommon.vue';
import NodeDetail from './node/detail/NodeDetail.vue';
import NodeDetailTabMonitoring from './node/detail/tabs/NodeDetailTabMonitoring.vue';
import NodeDetailTabOverview from './node/detail/tabs/NodeDetailTabOverview.vue';
import NodeDetailTabTasks from './node/detail/tabs/NodeDetailTabTasks.vue';
import NodeList from './node/list/NodeList.vue';
import useNodeList from './node/list/useNodeList';
import NotificationAlertDetail from './notification/alert/detail/NotificationAlertDetail.vue';
import NotificationAlertDetailActionsCommon from './notification/alert/detail/actions/NotificationAlertDetailActionsCommon.vue';
import NotificationAlertDetail from './notification/alert/detail/NotificationAlertDetail.vue';
import NotificationAlertDetailTabOverview from './notification/alert/detail/tabs/NotificationAlertDetailTabOverview.vue';
import useNotificationAlertDetail from './notification/alert/detail/useNotificationAlertDetail';
import NotificationAlertList from './notification/alert/list/NotificationAlertList.vue';
import useNotificationAlertList from './notification/alert/list/useNotificationAlertList';
import NotificationChannelDetail from './notification/channel/detail/NotificationChannelDetail.vue';
import NotificationChannelDetailActionsCommon from './notification/channel/detail/actions/NotificationChannelDetailActionsCommon.vue';
import NotificationChannelDetail from './notification/channel/detail/NotificationChannelDetail.vue';
import NotificationChannelDetailTabOverview from './notification/channel/detail/tabs/NotificationChannelDetailTabOverview.vue';
import NotificationChannelList from './notification/channel/list/NotificationChannelList.vue';
import useNotificationChannelList from './notification/channel/list/useNotificationChannelList';
import NotificationRequestList from './notification/request/list/NotificationRequestList.vue';
import useNotificationRequestList from './notification/request/list/useNotificationRequestList';
import NotificationSettingDetail from './notification/setting/detail/NotificationSettingDetail.vue';
import NotificationSettingDetailActionsCommon from './notification/setting/detail/actions/NotificationSettingDetailActionsCommon.vue';
import NotificationSettingDetailActionsTemplate from './notification/setting/detail/actions/NotificationSettingDetailActionsTemplate.vue';
import NotificationSettingDetail from './notification/setting/detail/NotificationSettingDetail.vue';
import NotificationSettingDetailTabChannels from './notification/setting/detail/tabs/NotificationSettingDetailTabChannels.vue';
import NotificationSettingDetailTabMailConfig from './notification/setting/detail/tabs/NotificationSettingDetailTabMailConfig.vue';
import NotificationSettingDetailTabOverview from './notification/setting/detail/tabs/NotificationSettingDetailTabOverview.vue';
Expand All @@ -75,11 +75,11 @@ import ScheduleDetailTabTasks from './schedule/detail/tabs/ScheduleDetailTabTask
import useScheduleDetail from './schedule/detail/useScheduleDetail';
import ScheduleList from './schedule/list/ScheduleList.vue';
import useScheduleList from './schedule/list/useScheduleList';
import SpiderDetail from './spider/detail/SpiderDetail.vue';
import SpiderDetailActionsCommon from './spider/detail/actions/SpiderDetailActionsCommon.vue';
import SpiderDetailActionsData from './spider/detail/actions/SpiderDetailActionsData.vue';
import SpiderDetailActionsDatabase from './spider/detail/actions/SpiderDetailActionsDatabase.vue';
import SpiderDetailActionsFiles from './spider/detail/actions/SpiderDetailActionsFiles.vue';
import SpiderDetail from './spider/detail/SpiderDetail.vue';
import SpiderDetailTabData from './spider/detail/tabs/SpiderDetailTabData.vue';
import SpiderDetailTabFiles from './spider/detail/tabs/SpiderDetailTabFiles.vue';
import SpiderDetailTabOverview from './spider/detail/tabs/SpiderDetailTabOverview.vue';
Expand All @@ -90,20 +90,20 @@ import useSpiderDetail from './spider/detail/useSpiderDetail';
import SpiderList from './spider/list/SpiderList.vue';
import useSpiderList from './spider/list/useSpiderList';
import SystemDetail from './system/detail/SystemDetail.vue';
import TaskDetail from './task/detail/TaskDetail.vue';
import TaskDetailActionsCommon from './task/detail/actions/TaskDetailActionsCommon.vue';
import TaskDetailActionsData from './task/detail/actions/TaskDetailActionsData.vue';
import TaskDetailActionsLogs from './task/detail/actions/TaskDetailActionsLogs.vue';
import TaskDetailTabData from './task/detail/tabs/TaskDetailTabData.vue';
import TaskDetailTabLogs from './task/detail/tabs/TaskDetailTabLogs.vue';
import TaskDetailTabOverview from './task/detail/tabs/TaskDetailTabOverview.vue';
import TaskDetail from './task/detail/TaskDetail.vue';
import useTaskDetail from './task/detail/useTaskDetail';
import TaskList from './task/list/TaskList.vue';
import useTaskList from './task/list/useTaskList';
import TokenList from './token/list/TokenList.vue';
import useTokenList from './token/list/useTokenList';
import UserDetail from './user/detail/UserDetail.vue';
import UserDetailTabOverview from './user/detail/tabs/UserDetailTabOverview.vue';
import UserDetail from './user/detail/UserDetail.vue';
import useUserDetail from './user/detail/useUserDetail';
import UserList from './user/list/UserList.vue';
import useUserList from './user/list/useUserList';
Expand All @@ -128,11 +128,11 @@ export {
TaskAction as ClTaskAction,
EnvironmentList as ClEnvironmentList,
useEnvironmentList as useEnvironmentList,
GitDetail as ClGitDetail,
GitDetailActionsChanges as ClGitDetailActionsChanges,
GitDetailActionsCommon as ClGitDetailActionsCommon,
GitDetailActionsFiles as ClGitDetailActionsFiles,
GitDetailActionsSpiders as ClGitDetailActionsSpiders,
GitDetail as ClGitDetail,
GitDetailTabChanges as ClGitDetailTabChanges,
GitDetailTabFiles as ClGitDetailTabFiles,
GitDetailTabLogs as ClGitDetailTabLogs,
Expand All @@ -145,29 +145,29 @@ export {
Login as ClLogin,
Disclaimer as ClDisclaimer,
MySettings as ClMySettings,
NodeDetail as ClNodeDetail,
NodeDetailActionsCommon as ClNodeDetailActionsCommon,
NodeDetail as ClNodeDetail,
NodeDetailTabMonitoring as ClNodeDetailTabMonitoring,
NodeDetailTabOverview as ClNodeDetailTabOverview,
NodeDetailTabTasks as ClNodeDetailTabTasks,
NodeList as ClNodeList,
useNodeList as useNodeList,
NotificationAlertDetail as ClNotificationAlertDetail,
NotificationAlertDetailActionsCommon as ClNotificationAlertDetailActionsCommon,
NotificationAlertDetail as ClNotificationAlertDetail,
NotificationAlertDetailTabOverview as ClNotificationAlertDetailTabOverview,
useNotificationAlertDetail as useNotificationAlertDetail,
NotificationAlertList as ClNotificationAlertList,
useNotificationAlertList as useNotificationAlertList,
NotificationChannelDetail as ClNotificationChannelDetail,
NotificationChannelDetailActionsCommon as ClNotificationChannelDetailActionsCommon,
NotificationChannelDetail as ClNotificationChannelDetail,
NotificationChannelDetailTabOverview as ClNotificationChannelDetailTabOverview,
NotificationChannelList as ClNotificationChannelList,
useNotificationChannelList as useNotificationChannelList,
NotificationRequestList as ClNotificationRequestList,
useNotificationRequestList as useNotificationRequestList,
NotificationSettingDetail as ClNotificationSettingDetail,
NotificationSettingDetailActionsCommon as ClNotificationSettingDetailActionsCommon,
NotificationSettingDetailActionsTemplate as ClNotificationSettingDetailActionsTemplate,
NotificationSettingDetail as ClNotificationSettingDetail,
NotificationSettingDetailTabChannels as ClNotificationSettingDetailTabChannels,
NotificationSettingDetailTabMailConfig as ClNotificationSettingDetailTabMailConfig,
NotificationSettingDetailTabOverview as ClNotificationSettingDetailTabOverview,
Expand All @@ -186,11 +186,11 @@ export {
useScheduleDetail as useScheduleDetail,
ScheduleList as ClScheduleList,
useScheduleList as useScheduleList,
SpiderDetail as ClSpiderDetail,
SpiderDetailActionsCommon as ClSpiderDetailActionsCommon,
SpiderDetailActionsData as ClSpiderDetailActionsData,
SpiderDetailActionsDatabase as ClSpiderDetailActionsDatabase,
SpiderDetailActionsFiles as ClSpiderDetailActionsFiles,
SpiderDetail as ClSpiderDetail,
SpiderDetailTabData as ClSpiderDetailTabData,
SpiderDetailTabFiles as ClSpiderDetailTabFiles,
SpiderDetailTabOverview as ClSpiderDetailTabOverview,
Expand All @@ -201,20 +201,20 @@ export {
SpiderList as ClSpiderList,
useSpiderList as useSpiderList,
SystemDetail as ClSystemDetail,
TaskDetail as ClTaskDetail,
TaskDetailActionsCommon as ClTaskDetailActionsCommon,
TaskDetailActionsData as ClTaskDetailActionsData,
TaskDetailActionsLogs as ClTaskDetailActionsLogs,
TaskDetailTabData as ClTaskDetailTabData,
TaskDetailTabLogs as ClTaskDetailTabLogs,
TaskDetailTabOverview as ClTaskDetailTabOverview,
TaskDetail as ClTaskDetail,
useTaskDetail as useTaskDetail,
TaskList as ClTaskList,
useTaskList as useTaskList,
TokenList as ClTokenList,
useTokenList as useTokenList,
UserDetail as ClUserDetail,
UserDetailTabOverview as ClUserDetailTabOverview,
UserDetail as ClUserDetail,
useUserDetail as useUserDetail,
UserList as ClUserList,
useUserList as useUserList,
Expand Down
2 changes: 1 addition & 1 deletion src/views/login/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useStore } from 'vuex';
import { useRoute, useRouter } from 'vue-router';
import { ElMessage } from 'element-plus';
import { User, Lock } from '@element-plus/icons-vue';
import logo from '@/assets/svg/logo-main.svg';
import logo from '@/assets/svg/logo-main.svg?url';
import useRequest from '@/services/request';
import { isValidUsername } from '@/utils/validate';
import { setGlobalLang, translate } from '@/utils/i18n';
Expand Down
1 change: 1 addition & 0 deletions src/views/project/detail/tabs/ProjectDetailTabSpiders.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup lang="ts">
defineOptions({ name: 'ClProjectDetailTabSpiders' });
defineOptions({ name: 'ClProjectDetailTabSpiders' });
</script>

<template>
Expand Down
2 changes: 0 additions & 2 deletions typings/components/badge/GitHubStarBadge.vue.d.ts

This file was deleted.

Loading

0 comments on commit 78108fa

Please sign in to comment.