mirror of https://github.com/1Panel-dev/1Panel
fix: correct typos in typescript interface names (#7337)
parent
2c8dad980b
commit
d9407c425f
|
@ -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()
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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') {
|
||||
|
|
|
@ -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') {
|
||||
|
|
|
@ -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') {
|
||||
|
|
|
@ -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 = '';
|
||||
|
|
|
@ -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') {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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') {
|
||||
|
|
|
@ -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') {
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue