build: 拼写检查修改

This commit is contained in:
fit2-zhao 2023-08-14 10:08:47 +08:00 committed by fit2-zhao
parent 39dc39f72b
commit 28a9338a85
26 changed files with 59 additions and 59 deletions

View File

@ -84,7 +84,7 @@ curl -sSL https://github.com/metersphere/metersphere/releases/latest/download/qu
<td>Support multi-interface scenario testing</td>
</tr>
<tr>
<td>Quickly record test script via brower plug-in</td>
<td>Quickly record test script via browser plug-in</td>
</tr>
<tr>
<td rowspan="2">Test Report</td>
@ -108,7 +108,7 @@ curl -sSL https://github.com/metersphere/metersphere/releases/latest/download/qu
<td>Support parameterized testing</td>
</tr>
<tr>
<td>Quickly record test script via brower plug-in</td>
<td>Quickly record test script via browser plug-in</td>
</tr>
<tr>
<td rowspan="4">Test Report</td>

View File

@ -1,7 +1,7 @@
import MSR from '@/api/http/index';
import * as orgUrl from '@/api/requrls/setting/system/organizationAndProject';
import { TableQueryParams } from '@/models/common';
import { AddUserToOrgOrPorjectParams } from '@/models/setting/systemOrg';
import { AddUserToOrgOrProjectParams } from '@/models/setting/systemOrg';
// 获取组织列表
export function postOrgTable(data: TableQueryParams) {
@ -23,7 +23,7 @@ export function postUserTableByOrgId(data: TableQueryParams) {
return MSR.post({ url: orgUrl.postOrgMemberUrl, data });
}
// 给组织或项目添加成员
export function addUserToOrgOrProject(data: AddUserToOrgOrPorjectParams) {
export function addUserToOrgOrProject(data: AddUserToOrgOrProjectParams) {
return MSR.post({ url: data.projectId ? orgUrl.postAddProjectMemberUrl : orgUrl.postAddOrgMemberUrl, data });
}
// 获取用户下拉选项

View File

@ -54,7 +54,7 @@
</div>
</template>
<script lang="ts" name="StyleOpreation" setup>
<script lang="ts" name="StyleOperation" setup>
import { ref, computed } from 'vue';
import { useI18n } from '@/hooks/useI18n';

View File

@ -23,7 +23,7 @@
</div>
</template>
<script lang="ts" name="StyleOpreation" setup>
<script lang="ts" name="StyleOperation" setup>
import { nextTick, onMounted, reactive, ref } from 'vue';
import { useI18n } from '@/hooks/useI18n';

View File

@ -20,11 +20,11 @@ const entityMap = '</map>';
function concatNodes(node: any) {
let result = '';
const datas = node.data;
result += nodeCreated + datas.created + nodeId + datas.id + nodeText + datas.text + nodeSuffix;
if (datas.priority) {
const nodeData = node.data;
result += nodeCreated + nodeData.created + nodeId + nodeData.id + nodeText + nodeData.text + nodeSuffix;
if (nodeData.priority) {
const mapped = priorities.find((d) => {
return d.jp === datas.priority;
return d.jp === nodeData.priority;
});
if (mapped) {
result += iconTextPrefix + mapped.mp + iconTextSuffix;

View File

@ -60,7 +60,7 @@ const MimeType = () => {
return mimetype + SPLITOR + text;
}
function registMimeTypeProtocol(type: string, sign: string): void {
function registerMimeTypeProtocol(type: string, sign: string): void {
if (sign && SIGN[sign]) {
throw new Error('sign has registered!');
}
@ -82,7 +82,7 @@ const MimeType = () => {
}
return {
registMimeTypeProtocol,
registerMimeTypeProtocol,
getMimeTypeProtocol,
getSpitor,
getMimeType,

View File

@ -44,13 +44,13 @@ function createDragRuntime(this: DragRuntimeOptions) {
let maxY: number;
let containerY: number;
let freeHorizen = false;
let freeVirtical = false;
let freeVertical = false;
let frame: number | null = null;
function move(direction: 'left' | 'top' | 'right' | 'bottom' | false, speed?: number) {
if (!direction) {
freeHorizen = false;
freeVirtical = false;
freeVertical = false;
if (frame) {
cancelAnimationFrame(frame);
}
@ -143,10 +143,10 @@ function createDragRuntime(this: DragRuntimeOptions) {
} else if (osy > maxY - BOUND_CHECK) {
move('top', BOUND_CHECK + osy - maxY);
} else {
freeVirtical = true;
freeVertical = true;
}
if (freeHorizen && freeVirtical) {
if (freeHorizen && freeVertical) {
move(false);
}
}

View File

@ -60,7 +60,7 @@ function InputRuntime(this: any) {
timer = setTimeout(() => {
const box = focusNode.getRenderBox('TextRenderer');
this.receiverElement.style.left = `${Math.round(box.x)}px`;
this.receiverElement.style.top = `${debug.flaged ? Math.round(box.bottom + 30) : Math.round(box.y)}px`;
this.receiverElement.style.top = `${debug.flagged ? Math.round(box.bottom + 30) : Math.round(box.y)}px`;
timer = null;
});
}
@ -69,7 +69,7 @@ function InputRuntime(this: any) {
// let the receiver follow the current selected node position
// setup everything to go
const setupReciverElement = () => {
if (debug.flaged) {
if (debug.flagged) {
this.receiverElement.classList.add('debug');
}

View File

@ -12,14 +12,14 @@ function stringHash(str: string): number {
}
class Debug {
private flaged: boolean;
private flagged: boolean;
public log: (...args: any) => void;
constructor(flag: string) {
this.flaged = window.location.search.indexOf(flag) !== -1;
this.flagged = window.location.search.indexOf(flag) !== -1;
if (this.flaged) {
if (this.flagged) {
const h = stringHash(flag) % 360;
const flagStyle = format(
'background: hsl({0}, 50%, 80%); ' +

View File

@ -1,6 +1,6 @@
function format(template?: string | null, parm?: any, ...args: any[]) {
let tmp = parm;
if (typeof parm !== 'object') {
function format(template?: string | null, param?: any, ...args: any[]) {
let tmp = param;
if (typeof param !== 'object') {
tmp = [].slice.call(args, 1);
}
return String(template).replace(/\{(\w+)\}/gi, (match, $key) => {

View File

@ -2,7 +2,7 @@ enum menuEnum {
APITEST = 'apiTest',
BUGMANAGEMENT = 'bugManagement',
FEATURETEST = 'featureTest',
PERFORMANCETEST = 'performanceTest',
PERFORMANCE_TEST = 'performanceTest',
PROJECTMANAGEMENT = 'projectManagement',
SETTING = 'setting',
TESTPLAN = 'testPlan',

View File

@ -1,4 +1,4 @@
export interface AddUserToOrgOrPorjectParams {
export interface AddUserToOrgOrProjectParams {
userIds?: string[];
organizationId?: string;
projectId?: string;

View File

@ -4,7 +4,7 @@ import menuEnum from '@/enums/menuEnum';
const PerformanceTest: AppRouteRecordRaw = {
path: '/performance-test',
name: menuEnum.PERFORMANCETEST,
name: menuEnum.PERFORMANCE_TEST,
redirect: '/performance-test/index',
component: DEFAULT_LAYOUT,
meta: {

View File

@ -11,7 +11,7 @@
</template>
<div class="form">
<a-form ref="memberFormRef" :model="form" size="large" layout="vertical">
<a-form-item v-if="type === 'edit'" :label="t('organization.member.proejct')" asterisk-position="end">
<a-form-item v-if="type === 'edit'" :label="t('organization.member.project')" asterisk-position="end">
<a-select
v-model="form.projectIds"
multiple

View File

@ -20,7 +20,7 @@
:action-config="tableBatchActions"
@selected-change="handleTableSelect"
v-on="propsEvent"
@batch-action="handelTableBatch"
@batch-action="handleTableBatch"
>
<template #project="{ record }">
<a-tooltip :content="(record.projectIdNameMap||[]).map((e: any) => e.name).join(',')">
@ -323,7 +323,7 @@
if (currentType) batchModalRef.value.batchRequestFun(currentType.request, params);
};
//
const handelTableBatch = (actionItem: any) => {
const handleTableBatch = (actionItem: any) => {
showBatchModal.value = true;
treeData.value = [];
batchAction.value = actionItem.eventTag;

View File

@ -30,6 +30,6 @@ export default {
'organization.member.deleteMemberSuccess': 'Delete successful',
'organization.member.batchModalSuccess': 'Successfully added',
'organization.member.batchUpdateSuccess': 'Successfully updated',
'organization.member.proejct': 'Project',
'organization.member.project': 'Project',
'organization.member.selectUserScope': 'Please select a user group for the above members',
};

View File

@ -29,6 +29,6 @@ export default {
'organization.member.deleteMemberSuccess': '删除成功',
'organization.member.batchModalSuccess': '添加成功',
'organization.member.batchUpdateSuccess': '更新成功',
'organization.member.proejct': '项目',
'organization.member.project': '项目',
'organization.member.selectUserScope': '请为以上成员选择用户组',
};

View File

@ -56,7 +56,7 @@
<a-button v-else type="outline" class="arco-btn-outline--secondary" size="mini">{{
t('organization.service.testLink')
}}</a-button>
<a-button type="outline" class="arco-btn-outline--secondary" size="mini" @click="editHanlder(item)">{{
<a-button type="outline" class="arco-btn-outline--secondary" size="mini" @click="editHandler(item)">{{
t('organization.service.edit')
}}</a-button>
<a-button
@ -64,7 +64,7 @@
type="outline"
class="arco-btn-outline--secondary"
size="mini"
@click="resetHanlder(item)"
@click="resetHandler(item)"
>{{ t('organization.service.reset') }}</a-button
>
</a-space>
@ -160,10 +160,10 @@
const serviceVisible = ref<boolean>(false);
let createRules = reactive([]);
const editHanlder = (item: any) => {
const editHandler = (item: any) => {
serviceVisible.value = true;
};
const resetHanlder = (item: any) => {};
const resetHandler = (item: any) => {};
onMounted(() => {
setTimeout(() => {

View File

@ -50,6 +50,6 @@ export default {
'organization.service.deleteMemberSuccess': 'Delete successful',
'organization.service.batchModalSuccess': 'Successfully added',
'organization.service.batchUpdateSuccess': 'Successfully updated',
'organization.service.proejct': 'Project',
'organization.service.project': 'Project',
'organization.service.selectUserScope': 'Please select a user group for the above members',
};

View File

@ -45,6 +45,6 @@ export default {
'organization.service.deleteMemberSuccess': '删除成功',
'organization.service.batchModalSuccess': '添加成功',
'organization.service.batchUpdateSuccess': '更新成功',
'organization.service.proejct': '项目',
'organization.service.project': '项目',
'organization.service.selectUserScope': '请为以上成员选择用户组',
};

View File

@ -70,8 +70,8 @@
:ok-text="t('system.authorized.authorization')"
:ok-loading="drawerLoading"
:width="480"
@confirm="confirmHanlder"
@cancel="cancelHanlder"
@confirm="confirmHandler"
@cancel="cancelHandler"
>
<a-form ref="authFormRef" :model="authorizedForm" layout="vertical">
<a-row class="grid-demo">
@ -141,7 +141,7 @@
const authFormRef = ref<FormInstance | null>(null);
const fileList = ref([]);
const confirmHanlder = () => {
const confirmHandler = () => {
authFormRef.value?.validate(async (errors: undefined | Record<string, ValidatedError>) => {
if (!errors) {
drawerLoading.value = true;
@ -160,7 +160,7 @@
});
};
const cancelHanlder = () => {
const cancelHandler = () => {
authDrawer.value = false;
fileList.value = [];
authFormRef.value?.resetFields();

View File

@ -4,11 +4,11 @@
<a-input
v-model:model-value="operUser"
class="filter-item"
:placeholder="t('system.log.operaterPlaceholder')"
:placeholder="t('system.log.operatorPlaceholder')"
allow-clear
>
<template #prefix>
{{ t('system.log.operater') }}
{{ t('system.log.operator') }}
</template>
</a-input>
<a-range-picker
@ -174,7 +174,7 @@
level: 0,
value: levelTop[1],
},
label: t('system.log.orgnization'),
label: t('system.log.organization'),
children: res.organizationList.map((e) => ({
value: {
level: levelTop[1],

View File

@ -1,6 +1,6 @@
export default {
'system.log.operater': '操作人',
'system.log.operaterPlaceholder': '请输入用户名/邮箱',
'system.log.operator': '操作人',
'system.log.operatorPlaceholder': '请输入用户名/邮箱',
'system.log.operateTime': '操作时间',
'system.log.operateRange': '操作范围',
'system.log.operateType': '操作类型',
@ -9,7 +9,7 @@ export default {
'system.log.operateName': '名称',
'system.log.operateNamePlaceholder': '请输入用例/环境/菜单名',
'system.log.system': '系统',
'system.log.orgnization': '组织',
'system.log.organization': '组织',
'system.log.project': '项目',
'system.log.search': '查询',
'system.log.reset': '重置',

View File

@ -15,8 +15,8 @@
v-model="searchKeys.name"
:max-length="250"
:placeholder="t('system.plugin.searchPlugin')"
@search="searchHanlder"
@press-enter="searchHanlder"
@search="searchHandler"
@press-enter="searchHandler"
></a-input-search>
</a-col>
</a-row>
@ -53,7 +53,7 @@
</a-table-column>
<a-table-column :title="t('system.plugin.tableColunmApplicationScene')" data-index="scenario">
<template #cell="{ record }">{{
record.scenario === 'API' ? t('system.plugin.secneApi') : t('system.plugin.secneProManger')
record.scenario === 'API' ? t('system.plugin.sceneApi') : t('system.plugin.sceneManagement')
}}</template>
</a-table-column>
<a-table-column :title="t('system.user.tableColunmOrg')" :width="300">
@ -215,7 +215,7 @@
value: 'API',
},
{
label: 'system.plugin.proMangement',
label: 'system.plugin.projectManagement',
value: 'PLATFORM',
},
]);
@ -239,7 +239,7 @@
loading.value = false;
}
};
const searchHanlder = () => {
const searchHandler = () => {
filterData.value = data.value.filter(
(item) => item.name?.includes(searchKeys.name) && item.scenario?.indexOf(searchKeys.scene) !== -1
);

View File

@ -83,8 +83,8 @@ export default {
'system.plugin.uploadFileTip': 'Please upload the file and submit it!',
'system.plugin.uploadOpenSource': 'Open Source',
'system.plugin.uploadCompSource': 'Enterprise Edition',
'system.plugin.secneApi': 'Interface Testing',
'system.plugin.secneProManger': 'Project Management',
'system.plugin.sceneApi': 'Interface Testing',
'system.plugin.sceneManagement': 'Project Management',
'system.resourcePool.deletePoolSuccess': 'Deleted successfully',
'system.plugin.sizeExceedTip': 'The file size exceeds the limit',
'system.plugin.showScriptTitle': 'View the script ({name})',
@ -101,5 +101,5 @@ export default {
'system.resourcePool.useUI': ' UI test',
'system.plugin.all': 'All',
'system.plugin.apiTest': 'API Test',
'system.plugin.proMangement': 'Project Management',
'system.plugin.projectManagement': 'Project Management',
};

View File

@ -76,11 +76,11 @@ export default {
'system.plugin.uploadFileTip': '请上传文件再提交!',
'system.plugin.uploadOpenSource': '开源版',
'system.plugin.uploadCompSource': '企业版',
'system.plugin.secneApi': '接口测试',
'system.plugin.secneProManger': '项目管理',
'system.plugin.sceneApi': '接口测试',
'system.plugin.sceneManagement': '项目管理',
'system.plugin.sizeExceedTip': '文件大小超出限制!',
'system.plugin.showScriptTitle': '查看脚本({name})',
'system.plugin.all': '全部',
'system.plugin.apiTest': '接口测试',
'system.plugin.proMangement': '项目管理',
'system.plugin.projectManagement': '项目管理',
};