Skip to content

Commit d9407c4

Browse files
authored
fix: correct typos in typescript interface names (#7337)
1 parent 2c8dad9 commit d9407c4

File tree

12 files changed

+26
-26
lines changed

12 files changed

+26
-26
lines changed

backend/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func Start() {
4545
gob.Register(psession.SessionUser{})
4646
cache.Init()
4747
session.Init()
48-
gin.SetMode("debug")
48+
gin.SetMode(gin.DebugMode)
4949
cron.Run()
5050
InitOthers()
5151
business.Init()

frontend/src/views/app-store/detail/install/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ import { loadResourceLimit } from '@/api/modules/container';
163163
const extensions = [yaml(), oneDark];
164164
const router = useRouter();
165165
166-
interface InstallRrops {
166+
interface InstallProps {
167167
params?: App.AppParams;
168168
app: any;
169169
}
170170
171-
const installData = ref<InstallRrops>({
171+
const installData = ref<InstallProps>({
172172
app: {},
173173
});
174174
const open = ref(false);
@@ -233,7 +233,7 @@ const resetForm = () => {
233233
Object.assign(req, initData());
234234
};
235235
236-
const acceptParams = async (props: InstallRrops) => {
236+
const acceptParams = async (props: InstallProps) => {
237237
resetForm();
238238
if (props.app.versions != undefined) {
239239
installData.value = props;

frontend/src/views/app-store/installed/check/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ import { ref } from 'vue';
5555
import { useRouter } from 'vue-router';
5656
const router = useRouter();
5757
58-
interface CheckRrops {
58+
interface CheckProps {
5959
items: App.AppInstallResource[];
6060
installID: Number;
6161
key: string;
6262
}
63-
const installData = ref<CheckRrops>({
63+
const installData = ref<CheckProps>({
6464
items: [],
6565
installID: 0,
6666
key: '',
@@ -70,7 +70,7 @@ const map = new Map();
7070
const forceDelete = ref(false);
7171
const em = defineEmits(['close']);
7272
73-
const acceptParams = (props: CheckRrops) => {
73+
const acceptParams = (props: CheckProps) => {
7474
map.clear();
7575
forceDelete.value = false;
7676
installData.value.installID = props.installID;

frontend/src/views/website/runtime/dotnet/operate/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ import { FormInstance } from 'element-plus';
160160
import { reactive, ref, watch } from 'vue';
161161
import DrawerHeader from '@/components/drawer-header/index.vue';
162162
163-
interface OperateRrops {
163+
interface OperateProps {
164164
id?: number;
165165
mode: string;
166166
type: string;
@@ -376,7 +376,7 @@ const getRuntime = async (id: number) => {
376376
} catch (error) {}
377377
};
378378
379-
const acceptParams = async (props: OperateRrops) => {
379+
const acceptParams = async (props: OperateProps) => {
380380
mode.value = props.mode;
381381
scripts.value = [];
382382
if (props.mode === 'create') {

frontend/src/views/website/runtime/go/operate/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ import { FormInstance } from 'element-plus';
166166
import { reactive, ref, watch } from 'vue';
167167
import DrawerHeader from '@/components/drawer-header/index.vue';
168168
169-
interface OperateRrops {
169+
interface OperateProps {
170170
id?: number;
171171
mode: string;
172172
type: string;
@@ -382,7 +382,7 @@ const getRuntime = async (id: number) => {
382382
} catch (error) {}
383383
};
384384
385-
const acceptParams = async (props: OperateRrops) => {
385+
const acceptParams = async (props: OperateProps) => {
386386
mode.value = props.mode;
387387
scripts.value = [];
388388
if (props.mode === 'create') {

frontend/src/views/website/runtime/java/operate/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ import { FormInstance } from 'element-plus';
166166
import { reactive, ref, watch } from 'vue';
167167
import DrawerHeader from '@/components/drawer-header/index.vue';
168168
169-
interface OperateRrops {
169+
interface OperateProps {
170170
id?: number;
171171
mode: string;
172172
type: string;
@@ -382,7 +382,7 @@ const getRuntime = async (id: number) => {
382382
} catch (error) {}
383383
};
384384
385-
const acceptParams = async (props: OperateRrops) => {
385+
const acceptParams = async (props: OperateProps) => {
386386
mode.value = props.mode;
387387
scripts.value = [];
388388
if (props.mode === 'create') {

frontend/src/views/website/runtime/node/module/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import { MsgError, MsgSuccess } from '@/utils/message';
4949
import i18n from '@/lang';
5050
import { Runtime } from '@/api/interface/runtime';
5151
52-
interface NoodeRrops {
52+
interface NodeProps {
5353
packageManager: string;
5454
id: number;
5555
}
@@ -76,7 +76,7 @@ const buttons = [
7676
},
7777
];
7878
79-
const acceptParams = async (props: NoodeRrops) => {
79+
const acceptParams = async (props: NodeProps) => {
8080
id.value = props.id;
8181
packageManager.value = props.packageManager;
8282
module.value = '';

frontend/src/views/website/runtime/node/operate/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ import { FormInstance } from 'element-plus';
216216
import { computed, reactive, ref, watch } from 'vue';
217217
import DrawerHeader from '@/components/drawer-header/index.vue';
218218
219-
interface OperateRrops {
219+
interface OperateProps {
220220
id?: number;
221221
mode: string;
222222
type: string;
@@ -482,7 +482,7 @@ const getRuntime = async (id: number) => {
482482
} catch (error) {}
483483
};
484484
485-
const acceptParams = async (props: OperateRrops) => {
485+
const acceptParams = async (props: OperateProps) => {
486486
mode.value = props.mode;
487487
scripts.value = [];
488488
if (props.mode === 'create') {

frontend/src/views/website/runtime/php/check/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ import { useRouter } from 'vue-router';
5555
import { DeleteRuntime } from '@/api/modules/runtime';
5656
const router = useRouter();
5757
58-
interface CheckRrops {
58+
interface CheckProps {
5959
items: App.AppInstallResource[];
6060
installID: Number;
6161
key: string;
6262
}
63-
const installData = ref<CheckRrops>({
63+
const installData = ref<CheckProps>({
6464
items: [],
6565
installID: 0,
6666
key: '',
@@ -70,7 +70,7 @@ const map = new Map();
7070
const forceDelete = ref(false);
7171
const em = defineEmits(['close']);
7272
73-
const acceptParams = (props: CheckRrops) => {
73+
const acceptParams = (props: CheckProps) => {
7474
map.clear();
7575
forceDelete.value = false;
7676
installData.value.installID = props.installID;

frontend/src/views/website/runtime/php/create/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ import Params from '../param/index.vue';
166166
import EditParams from '../edit/index.vue';
167167
import DrawerHeader from '@/components/drawer-header/index.vue';
168168
169-
interface OperateRrops {
169+
interface OperateProps {
170170
id?: number;
171171
mode: string;
172172
type: string;
@@ -396,7 +396,7 @@ const changePHPExtension = () => {
396396
runtime.params['PHP_EXTENSIONS'] = extensions.value.split(',');
397397
};
398398
399-
const acceptParams = async (props: OperateRrops) => {
399+
const acceptParams = async (props: OperateProps) => {
400400
mode.value = props.mode;
401401
initParam.value = false;
402402
if (props.mode === 'create') {

0 commit comments

Comments
 (0)