fix: correct typos in typescript interface names (#7337)

pull/7340/head
igophper 2024-12-12 09:51:21 +08:00 committed by GitHub
parent 2c8dad980b
commit d9407c425f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 26 additions and 26 deletions

View File

@ -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()

View File

@ -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<InstallRrops>({
const installData = ref<InstallProps>({
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;

View File

@ -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<CheckRrops>({
const installData = ref<CheckProps>({
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;

View File

@ -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') {

View File

@ -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') {

View File

@ -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') {

View File

@ -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 = '';

View File

@ -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') {

View File

@ -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<CheckRrops>({
const installData = ref<CheckProps>({
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;

View File

@ -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') {

View File

@ -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') {

View File

@ -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;
};