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> <td>Support multi-interface scenario testing</td>
</tr> </tr>
<tr> <tr>
<td>Quickly record test script via brower plug-in</td> <td>Quickly record test script via browser plug-in</td>
</tr> </tr>
<tr> <tr>
<td rowspan="2">Test Report</td> <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> <td>Support parameterized testing</td>
</tr> </tr>
<tr> <tr>
<td>Quickly record test script via brower plug-in</td> <td>Quickly record test script via browser plug-in</td>
</tr> </tr>
<tr> <tr>
<td rowspan="4">Test Report</td> <td rowspan="4">Test Report</td>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -12,14 +12,14 @@ function stringHash(str: string): number {
} }
class Debug { class Debug {
private flaged: boolean; private flagged: boolean;
public log: (...args: any) => void; public log: (...args: any) => void;
constructor(flag: string) { 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 h = stringHash(flag) % 360;
const flagStyle = format( const flagStyle = format(
'background: hsl({0}, 50%, 80%); ' + 'background: hsl({0}, 50%, 80%); ' +

View File

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

View File

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

View File

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

View File

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

View File

@ -11,7 +11,7 @@
</template> </template>
<div class="form"> <div class="form">
<a-form ref="memberFormRef" :model="form" size="large" layout="vertical"> <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 <a-select
v-model="form.projectIds" v-model="form.projectIds"
multiple multiple

View File

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

View File

@ -30,6 +30,6 @@ export default {
'organization.member.deleteMemberSuccess': 'Delete successful', 'organization.member.deleteMemberSuccess': 'Delete successful',
'organization.member.batchModalSuccess': 'Successfully added', 'organization.member.batchModalSuccess': 'Successfully added',
'organization.member.batchUpdateSuccess': 'Successfully updated', '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', '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.deleteMemberSuccess': '删除成功',
'organization.member.batchModalSuccess': '添加成功', 'organization.member.batchModalSuccess': '添加成功',
'organization.member.batchUpdateSuccess': '更新成功', 'organization.member.batchUpdateSuccess': '更新成功',
'organization.member.proejct': '项目', 'organization.member.project': '项目',
'organization.member.selectUserScope': '请为以上成员选择用户组', 'organization.member.selectUserScope': '请为以上成员选择用户组',
}; };

View File

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

View File

@ -50,6 +50,6 @@ export default {
'organization.service.deleteMemberSuccess': 'Delete successful', 'organization.service.deleteMemberSuccess': 'Delete successful',
'organization.service.batchModalSuccess': 'Successfully added', 'organization.service.batchModalSuccess': 'Successfully added',
'organization.service.batchUpdateSuccess': 'Successfully updated', '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', '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.deleteMemberSuccess': '删除成功',
'organization.service.batchModalSuccess': '添加成功', 'organization.service.batchModalSuccess': '添加成功',
'organization.service.batchUpdateSuccess': '更新成功', 'organization.service.batchUpdateSuccess': '更新成功',
'organization.service.proejct': '项目', 'organization.service.project': '项目',
'organization.service.selectUserScope': '请为以上成员选择用户组', 'organization.service.selectUserScope': '请为以上成员选择用户组',
}; };

View File

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

View File

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

View File

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

View File

@ -15,8 +15,8 @@
v-model="searchKeys.name" v-model="searchKeys.name"
:max-length="250" :max-length="250"
:placeholder="t('system.plugin.searchPlugin')" :placeholder="t('system.plugin.searchPlugin')"
@search="searchHanlder" @search="searchHandler"
@press-enter="searchHanlder" @press-enter="searchHandler"
></a-input-search> ></a-input-search>
</a-col> </a-col>
</a-row> </a-row>
@ -53,7 +53,7 @@
</a-table-column> </a-table-column>
<a-table-column :title="t('system.plugin.tableColunmApplicationScene')" data-index="scenario"> <a-table-column :title="t('system.plugin.tableColunmApplicationScene')" data-index="scenario">
<template #cell="{ record }">{{ <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> }}</template>
</a-table-column> </a-table-column>
<a-table-column :title="t('system.user.tableColunmOrg')" :width="300"> <a-table-column :title="t('system.user.tableColunmOrg')" :width="300">
@ -215,7 +215,7 @@
value: 'API', value: 'API',
}, },
{ {
label: 'system.plugin.proMangement', label: 'system.plugin.projectManagement',
value: 'PLATFORM', value: 'PLATFORM',
}, },
]); ]);
@ -239,7 +239,7 @@
loading.value = false; loading.value = false;
} }
}; };
const searchHanlder = () => { const searchHandler = () => {
filterData.value = data.value.filter( filterData.value = data.value.filter(
(item) => item.name?.includes(searchKeys.name) && item.scenario?.indexOf(searchKeys.scene) !== -1 (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.uploadFileTip': 'Please upload the file and submit it!',
'system.plugin.uploadOpenSource': 'Open Source', 'system.plugin.uploadOpenSource': 'Open Source',
'system.plugin.uploadCompSource': 'Enterprise Edition', 'system.plugin.uploadCompSource': 'Enterprise Edition',
'system.plugin.secneApi': 'Interface Testing', 'system.plugin.sceneApi': 'Interface Testing',
'system.plugin.secneProManger': 'Project Management', 'system.plugin.sceneManagement': 'Project Management',
'system.resourcePool.deletePoolSuccess': 'Deleted successfully', 'system.resourcePool.deletePoolSuccess': 'Deleted successfully',
'system.plugin.sizeExceedTip': 'The file size exceeds the limit', 'system.plugin.sizeExceedTip': 'The file size exceeds the limit',
'system.plugin.showScriptTitle': 'View the script ({name})', 'system.plugin.showScriptTitle': 'View the script ({name})',
@ -101,5 +101,5 @@ export default {
'system.resourcePool.useUI': ' UI test', 'system.resourcePool.useUI': ' UI test',
'system.plugin.all': 'All', 'system.plugin.all': 'All',
'system.plugin.apiTest': 'API Test', '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.uploadFileTip': '请上传文件再提交!',
'system.plugin.uploadOpenSource': '开源版', 'system.plugin.uploadOpenSource': '开源版',
'system.plugin.uploadCompSource': '企业版', 'system.plugin.uploadCompSource': '企业版',
'system.plugin.secneApi': '接口测试', 'system.plugin.sceneApi': '接口测试',
'system.plugin.secneProManger': '项目管理', 'system.plugin.sceneManagement': '项目管理',
'system.plugin.sizeExceedTip': '文件大小超出限制!', 'system.plugin.sizeExceedTip': '文件大小超出限制!',
'system.plugin.showScriptTitle': '查看脚本({name})', 'system.plugin.showScriptTitle': '查看脚本({name})',
'system.plugin.all': '全部', 'system.plugin.all': '全部',
'system.plugin.apiTest': '接口测试', 'system.plugin.apiTest': '接口测试',
'system.plugin.proMangement': '项目管理', 'system.plugin.projectManagement': '项目管理',
}; };