Skip to content

Commit

Permalink
feat: 组件支持固定
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 19, 2024
1 parent c75cfe9 commit 7f301ce
Show file tree
Hide file tree
Showing 34 changed files with 979 additions and 11 deletions.
4 changes: 4 additions & 0 deletions web/src/views/app/IndexView.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<script setup lang="ts">
defineOptions({
name: 'app-index'
})
import VersionModal from '@/views/app/VersionModal.vue'
import { NButton, NDataTable, NPopconfirm, NSwitch } from 'naive-ui'
Expand Down
4 changes: 4 additions & 0 deletions web/src/views/apps/fail2ban/IndexView.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<script setup lang="ts">
defineOptions({
name: 'apps-fail2ban-index'
})
import { NButton, NDataTable, NInput, NPopconfirm, NSwitch } from 'naive-ui'
import fail2ban from '@/api/apps/fail2ban'
Expand Down
4 changes: 4 additions & 0 deletions web/src/views/apps/frp/IndexView.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<script setup lang="ts">
defineOptions({
name: 'apps-frp-index'
})
import Editor from '@guolao/vue-monaco-editor'
import { NButton, NPopconfirm } from 'naive-ui'
Expand Down
4 changes: 4 additions & 0 deletions web/src/views/apps/gitea/IndexView.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<script setup lang="ts">
defineOptions({
name: 'apps-gitea-index'
})
import Editor from '@guolao/vue-monaco-editor'
import { NButton, NPopconfirm } from 'naive-ui'
Expand Down
4 changes: 4 additions & 0 deletions web/src/views/apps/mysql/IndexView.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<script setup lang="ts">
defineOptions({
name: 'apps-mysql-index'
})
import Editor from '@guolao/vue-monaco-editor'
import { NButton, NDataTable, NInput, NPopconfirm } from 'naive-ui'
Expand Down
4 changes: 4 additions & 0 deletions web/src/views/apps/nginx/IndexView.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<script setup lang="ts">
defineOptions({
name: 'apps-nginx-index'
})
import Editor from '@guolao/vue-monaco-editor'
import { NButton, NDataTable, NPopconfirm } from 'naive-ui'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<script setup lang="ts">
defineOptions({
name: 'apps-php81-index'
})
import Editor from '@guolao/vue-monaco-editor'
import { NButton, NDataTable, NPopconfirm } from 'naive-ui'
import php from '@/api/apps/php'
import systemctl from '@/api/panel/systemctl'
import { renderIcon } from '@/utils'
const route = useRoute()
const currentTab = ref('status')
const version = Number(route.meta.php)
const version = Number(81)
const status = ref(false)
const isEnabled = ref(false)
const config = ref('')
Expand Down
5 changes: 2 additions & 3 deletions web/src/views/apps/php81/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ export default {
{
name: 'apps-php81-index',
path: '',
component: () => import('../php/IndexView.vue'),
component: () => import('./IndexView.vue'),
meta: {
title: 'PHP 8.1',
icon: 'logos:php',
role: ['admin'],
requireAuth: true,
php: 81
requireAuth: true
}
}
]
Expand Down
Loading

0 comments on commit 7f301ce

Please sign in to comment.