refactor(frontend): 重构前端第二版
This commit is contained in:
1 parent
2631f78b00
commit
4b562cfa82
205 files changed
+15399
-12015
No files matched your search
@@ -1,4 +1,4 @@
|
||||
/**
|
||||
/**
|
||||
* features/admin/modules/schedules/SchedulesPage.vue
|
||||
* 定时任务管理独立页面。路由:/admin/schedules
|
||||
*/
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
ArrowLeft, ChevronDown, ChevronUp, Download, Edit3, Eye, FlaskConical,
|
||||
Plus, Power, PowerOff, RefreshCw, Rocket, Settings2, Trash2,
|
||||
} from 'lucide-vue-next';
|
||||
import DeleteConfirmDialog from '@/components/DeleteConfirmDialog.vue';
|
||||
import DeleteConfirmDialog from '@/shared/components/DeleteConfirmDialog.vue';
|
||||
import { useSchedulesAdmin } from './composables/useSchedulesAdmin';
|
||||
|
||||
const admin = useSchedulesAdmin();
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/**
|
||||
/**
|
||||
* features/admin/modules/schedules/composables/useSchedulesAdmin.ts
|
||||
* 定时任务管理:概览、工作台、创建/编辑、试运行。
|
||||
*/
|
||||
import { computed, ref, watch } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { listAdminAgents, listAdminUsers } from '@/api/admin';
|
||||
import { listAdminAgents, listAdminUsers } from '@/features/admin/api/admin.api';
|
||||
import { getKbGroups, type KbGroup } from '@/api/kb';
|
||||
import {
|
||||
createAdminSchedule,
|
||||
@@ -21,9 +21,9 @@ import {
|
||||
type ScheduleRun,
|
||||
type ScheduleTask,
|
||||
type TestScheduleRunResult,
|
||||
} from '@/api/schedule';
|
||||
import { useMessage } from '@/composables/useMessage';
|
||||
import { getAuthHeaders } from '@/utils/auth';
|
||||
} from '@/features/admin/api/schedule.api';
|
||||
import { useMessage } from '@/shared/composables/useMessage';
|
||||
import { getAuthHeaders } from '@/shared/utils/auth';
|
||||
import type { AdminAgentOption, AdminUserRow } from '@/features/admin/types/admin.types';
|
||||
|
||||
export function useSchedulesAdmin() {
|
||||
|
||||
Reference in new issue
Block a user