diff --git a/backend/server/server.go b/backend/server/server.go index c065bd0e7..5035fdfd2 100644 --- a/backend/server/server.go +++ b/backend/server/server.go @@ -45,7 +45,7 @@ func Start() { gob.Register(psession.SessionUser{}) cache.Init() session.Init() - gin.SetMode("debug") + gin.SetMode(gin.DebugMode) cron.Run() InitOthers() business.Init() diff --git a/frontend/src/views/app-store/detail/install/index.vue b/frontend/src/views/app-store/detail/install/index.vue index 62ae3a4f0..39db5e87b 100644 --- a/frontend/src/views/app-store/detail/install/index.vue +++ b/frontend/src/views/app-store/detail/install/index.vue @@ -163,12 +163,12 @@ import { loadResourceLimit } from '@/api/modules/container'; const extensions = [yaml(), oneDark]; const router = useRouter(); -interface InstallRrops { +interface InstallProps { params?: App.AppParams; app: any; } -const installData = ref({ +const installData = ref({ app: {}, }); const open = ref(false); @@ -233,7 +233,7 @@ const resetForm = () => { Object.assign(req, initData()); }; -const acceptParams = async (props: InstallRrops) => { +const acceptParams = async (props: InstallProps) => { resetForm(); if (props.app.versions != undefined) { installData.value = props; diff --git a/frontend/src/views/app-store/installed/check/index.vue b/frontend/src/views/app-store/installed/check/index.vue index 9006d8d2f..e21f39d4a 100644 --- a/frontend/src/views/app-store/installed/check/index.vue +++ b/frontend/src/views/app-store/installed/check/index.vue @@ -55,12 +55,12 @@ import { ref } from 'vue'; import { useRouter } from 'vue-router'; const router = useRouter(); -interface CheckRrops { +interface CheckProps { items: App.AppInstallResource[]; installID: Number; key: string; } -const installData = ref({ +const installData = ref({ items: [], installID: 0, key: '', @@ -70,7 +70,7 @@ const map = new Map(); const forceDelete = ref(false); const em = defineEmits(['close']); -const acceptParams = (props: CheckRrops) => { +const acceptParams = (props: CheckProps) => { map.clear(); forceDelete.value = false; installData.value.installID = props.installID; diff --git a/frontend/src/views/website/runtime/dotnet/operate/index.vue b/frontend/src/views/website/runtime/dotnet/operate/index.vue index 314b29908..35b03b337 100644 --- a/frontend/src/views/website/runtime/dotnet/operate/index.vue +++ b/frontend/src/views/website/runtime/dotnet/operate/index.vue @@ -160,7 +160,7 @@ import { FormInstance } from 'element-plus'; import { reactive, ref, watch } from 'vue'; import DrawerHeader from '@/components/drawer-header/index.vue'; -interface OperateRrops { +interface OperateProps { id?: number; mode: string; type: string; @@ -376,7 +376,7 @@ const getRuntime = async (id: number) => { } catch (error) {} }; -const acceptParams = async (props: OperateRrops) => { +const acceptParams = async (props: OperateProps) => { mode.value = props.mode; scripts.value = []; if (props.mode === 'create') { diff --git a/frontend/src/views/website/runtime/go/operate/index.vue b/frontend/src/views/website/runtime/go/operate/index.vue index b18dc9458..640ee6110 100644 --- a/frontend/src/views/website/runtime/go/operate/index.vue +++ b/frontend/src/views/website/runtime/go/operate/index.vue @@ -166,7 +166,7 @@ import { FormInstance } from 'element-plus'; import { reactive, ref, watch } from 'vue'; import DrawerHeader from '@/components/drawer-header/index.vue'; -interface OperateRrops { +interface OperateProps { id?: number; mode: string; type: string; @@ -382,7 +382,7 @@ const getRuntime = async (id: number) => { } catch (error) {} }; -const acceptParams = async (props: OperateRrops) => { +const acceptParams = async (props: OperateProps) => { mode.value = props.mode; scripts.value = []; if (props.mode === 'create') { diff --git a/frontend/src/views/website/runtime/java/operate/index.vue b/frontend/src/views/website/runtime/java/operate/index.vue index a6e2e5187..73276cc2f 100644 --- a/frontend/src/views/website/runtime/java/operate/index.vue +++ b/frontend/src/views/website/runtime/java/operate/index.vue @@ -166,7 +166,7 @@ import { FormInstance } from 'element-plus'; import { reactive, ref, watch } from 'vue'; import DrawerHeader from '@/components/drawer-header/index.vue'; -interface OperateRrops { +interface OperateProps { id?: number; mode: string; type: string; @@ -382,7 +382,7 @@ const getRuntime = async (id: number) => { } catch (error) {} }; -const acceptParams = async (props: OperateRrops) => { +const acceptParams = async (props: OperateProps) => { mode.value = props.mode; scripts.value = []; if (props.mode === 'create') { diff --git a/frontend/src/views/website/runtime/node/module/index.vue b/frontend/src/views/website/runtime/node/module/index.vue index 2b6f9b686..5f7fa01ff 100644 --- a/frontend/src/views/website/runtime/node/module/index.vue +++ b/frontend/src/views/website/runtime/node/module/index.vue @@ -49,7 +49,7 @@ import { MsgError, MsgSuccess } from '@/utils/message'; import i18n from '@/lang'; import { Runtime } from '@/api/interface/runtime'; -interface NoodeRrops { +interface NodeProps { packageManager: string; id: number; } @@ -76,7 +76,7 @@ const buttons = [ }, ]; -const acceptParams = async (props: NoodeRrops) => { +const acceptParams = async (props: NodeProps) => { id.value = props.id; packageManager.value = props.packageManager; module.value = ''; diff --git a/frontend/src/views/website/runtime/node/operate/index.vue b/frontend/src/views/website/runtime/node/operate/index.vue index 30d5710b2..54f8d1119 100644 --- a/frontend/src/views/website/runtime/node/operate/index.vue +++ b/frontend/src/views/website/runtime/node/operate/index.vue @@ -216,7 +216,7 @@ import { FormInstance } from 'element-plus'; import { computed, reactive, ref, watch } from 'vue'; import DrawerHeader from '@/components/drawer-header/index.vue'; -interface OperateRrops { +interface OperateProps { id?: number; mode: string; type: string; @@ -482,7 +482,7 @@ const getRuntime = async (id: number) => { } catch (error) {} }; -const acceptParams = async (props: OperateRrops) => { +const acceptParams = async (props: OperateProps) => { mode.value = props.mode; scripts.value = []; if (props.mode === 'create') { diff --git a/frontend/src/views/website/runtime/php/check/index.vue b/frontend/src/views/website/runtime/php/check/index.vue index f43306583..69e208bb8 100644 --- a/frontend/src/views/website/runtime/php/check/index.vue +++ b/frontend/src/views/website/runtime/php/check/index.vue @@ -55,12 +55,12 @@ import { useRouter } from 'vue-router'; import { DeleteRuntime } from '@/api/modules/runtime'; const router = useRouter(); -interface CheckRrops { +interface CheckProps { items: App.AppInstallResource[]; installID: Number; key: string; } -const installData = ref({ +const installData = ref({ items: [], installID: 0, key: '', @@ -70,7 +70,7 @@ const map = new Map(); const forceDelete = ref(false); const em = defineEmits(['close']); -const acceptParams = (props: CheckRrops) => { +const acceptParams = (props: CheckProps) => { map.clear(); forceDelete.value = false; installData.value.installID = props.installID; diff --git a/frontend/src/views/website/runtime/php/create/index.vue b/frontend/src/views/website/runtime/php/create/index.vue index 5a276557f..ed4d9a15d 100644 --- a/frontend/src/views/website/runtime/php/create/index.vue +++ b/frontend/src/views/website/runtime/php/create/index.vue @@ -166,7 +166,7 @@ import Params from '../param/index.vue'; import EditParams from '../edit/index.vue'; import DrawerHeader from '@/components/drawer-header/index.vue'; -interface OperateRrops { +interface OperateProps { id?: number; mode: string; type: string; @@ -396,7 +396,7 @@ const changePHPExtension = () => { runtime.params['PHP_EXTENSIONS'] = extensions.value.split(','); }; -const acceptParams = async (props: OperateRrops) => { +const acceptParams = async (props: OperateProps) => { mode.value = props.mode; initParam.value = false; if (props.mode === 'create') { diff --git a/frontend/src/views/website/runtime/python/operate/index.vue b/frontend/src/views/website/runtime/python/operate/index.vue index 552c03dac..e067690f8 100644 --- a/frontend/src/views/website/runtime/python/operate/index.vue +++ b/frontend/src/views/website/runtime/python/operate/index.vue @@ -160,7 +160,7 @@ import { FormInstance } from 'element-plus'; import { reactive, ref, watch } from 'vue'; import DrawerHeader from '@/components/drawer-header/index.vue'; -interface OperateRrops { +interface OperateProps { id?: number; mode: string; type: string; @@ -376,7 +376,7 @@ const getRuntime = async (id: number) => { } catch (error) {} }; -const acceptParams = async (props: OperateRrops) => { +const acceptParams = async (props: OperateProps) => { mode.value = props.mode; scripts.value = []; if (props.mode === 'create') { diff --git a/frontend/src/views/website/website/check/index.vue b/frontend/src/views/website/website/check/index.vue index 825adada3..c481f3038 100644 --- a/frontend/src/views/website/website/check/index.vue +++ b/frontend/src/views/website/website/check/index.vue @@ -34,14 +34,14 @@ import { ref } from 'vue'; import { useRouter } from 'vue-router'; const router = useRouter(); -interface InstallRrops { +interface InstallProps { items: Website.CheckRes[]; } let open = ref(false); let items = ref([]); -const acceptParams = async (props: InstallRrops) => { +const acceptParams = async (props: InstallProps) => { items.value = props.items; open.value = true; };