Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/views/app-store/detail/install/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/views/app-store/installed/check/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/website/runtime/dotnet/operate/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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') {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/website/runtime/go/operate/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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') {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/website/runtime/java/operate/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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') {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/website/runtime/node/module/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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 = '';
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/website/runtime/node/operate/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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') {
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/views/website/runtime/php/check/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/website/runtime/php/create/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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') {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/website/runtime/python/operate/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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') {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/website/website/check/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
Loading