2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-07 08:17:14 +08:00

feat: 一堆调整

This commit is contained in:
2025-12-01 19:37:19 +08:00
parent a64a1ba5c8
commit 5fdce07190
28 changed files with 304 additions and 122 deletions

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import app from '@/api/panel/app'
import cron from '@/api/panel/cron'
import dashboard from '@/api/panel/dashboard'
import dashboard from '@/api/panel/home'
import website from '@/api/panel/website'
import Editor from '@guolao/vue-monaco-editor'
import { CronNaive } from '@vue-js-cron/naive-ui'

View File

@@ -5,7 +5,6 @@ defineOptions({
import CreateModal from '@/views/task/CreateModal.vue'
import CronView from '@/views/task/CronView.vue'
import SystemView from '@/views/task/SystemView.vue'
import TaskView from '@/views/task/TaskView.vue'
import { NButton } from 'naive-ui'
import { useGettext } from 'vue3-gettext'
@@ -21,7 +20,6 @@ const create = ref(false)
<template #tabbar>
<n-tabs v-model:value="current" animated>
<n-tab name="cron" :tab="$gettext('Scheduled Tasks')" />
<n-tab name="system" :tab="$gettext('System Processes')" />
<n-tab name="task" :tab="$gettext('Panel Tasks')" />
</n-tabs>
</template>
@@ -32,7 +30,6 @@ const create = ref(false)
</n-button>
</n-flex>
<cron-view v-if="current === 'cron'" />
<system-view v-if="current === 'system'" />
<task-view v-if="current === 'task'" />
</n-flex>
</common-page>

View File

@@ -15,7 +15,7 @@ export default {
path: '',
component: () => import('./IndexView.vue'),
meta: {
title: 'Tasks',
title: 'Task',
icon: 'mdi:timetable',
role: ['admin'],
requireAuth: true