Skip to content

Commit

Permalink
repo-sync-2024-02-22T15:47:15+0800
Browse files Browse the repository at this point in the history
  • Loading branch information
yinrouni authored and 霓君 committed Feb 22, 2024
1 parent 9e91c6e commit 1e273b3
Show file tree
Hide file tree
Showing 12 changed files with 178 additions and 105 deletions.
8 changes: 6 additions & 2 deletions LEGAL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
Legal Disclaimer

Within this source code, the comments in Chinese shall be the original, governing version. Any comment in other languages are for reference only. In the event of any conflict between the Chinese language version comments and other language version comments, the Chinese language version shall prevail.
Within this source code, the comments in Chinese shall be the original, governing
version. Any comment in other languages are for reference only. In the event of any
conflict between the Chinese language version comments and other language version
comments, the Chinese language version shall prevail.

法律免责声明

关于代码注释部分,中文注释为官方版本,其它语言注释仅做参考。中文注释可能与其它语言注释存在不一致,当中文注释与其它语言注释存在不一致时,请以中文注释为准。
关于代码注释部分,中文注释为官方版本,其它语言注释仅做参考。中文注释可能与其它语言注释存
在不一致,当中文注释与其它语言注释存在不一致时,请以中文注释为准。
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
"start": "pnpm run dev",
"lint": "umi lint",
"prepare": "husky install",
"ci": "pnpm run lint:js & pnpm run lint:css & pnpm run lint:format",
"lint:js": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
"lint:css": "stylelint --allow-empty-input 'src/**/*.{css,less}'",
"lint:format": "prettier --check *.json 'src/**/*.{js,jsx,ts,tsx,css,less,md,json}'",
"lint:typing": "tsc --noEmit"
"lint:typing": "tsc --noEmit",
"format-all": "prettier --write '**/src/**/*.{html,js,jsx,ts,tsx,css,less,json}' **/*.md"
},
"dependencies": {
"@ant-design/icons": "^5.2.6",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/login/component/change-password/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const ChangePasswordModal = ({ visible, close }: IChangePasswordModal) =>
value.newPassword,
value.verifiedNewPassword,
);
if (status?.code == 0) {
if (status?.code === 0) {
message.success('账户密码修改成功');
close();
await API.AuthController.logout(
Expand Down
2 changes: 1 addition & 1 deletion src/modules/login/login.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ export class LoginService extends Model {
newPasswordHash: sha256(newPwd).toString(),
confirmPasswordHash: sha256(verifiedNewPwd).toString(),
});
return res.status
return res.status;
};
}
2 changes: 1 addition & 1 deletion src/modules/node/node.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class NodeService extends Model implements NodeServiceProtocol {
nodeRemark?: string;
srcNetAddress: string;
}): Promise<void> {
const { status } = await API.NodeController.createNode({ ...info});
const { status } = await API.NodeController.createNode({ ...info });
if (status?.code !== 0) throw new Error(status?.msg);
}
async deleteNodeRoute(routerId: string): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/task-details/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
margin-bottom: 12px;
}

.ant-descriptions-row{
.ant-descriptions-row {
.ant-descriptions-item {
padding-bottom: 12px;
}
Expand Down
17 changes: 10 additions & 7 deletions src/services/ezpsi-board/DataController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ export async function queryDataTableInformation(
body?: API.GetDataTableInformatinoRequest,
options?: { [key: string]: any },
) {
return request<API.SecretPadResponse_DataTableInformationVo_>('/api/v1alpha1/data/count', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
return request<API.SecretPadResponse_DataTableInformationVo_>(
'/api/v1alpha1/data/count',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
},
data: body,
...(options || {}),
});
);
}

/** 此处后端没有提供注释 POST /api/v1alpha1/data/version */
Expand Down
23 changes: 16 additions & 7 deletions src/services/ezpsi-board/NodeController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import request from 'umi-request';
@param request create node request
@return successful SecretPadResponse with nodeId
POST /api/v1alpha1/node/create */
export async function createNode(body?: API.CreateNodeRequest, options?: { [key: string]: any }) {
export async function createNode(
body?: API.CreateNodeRequest,
options?: { [key: string]: any },
) {
return request<API.SecretPadResponse_String_>('/api/v1alpha1/node/create', {
method: 'POST',
headers: {
Expand All @@ -18,7 +21,10 @@ export async function createNode(body?: API.CreateNodeRequest, options?: { [key:
}

/** 此处后端没有提供注释 POST /api/v1alpha1/node/delete */
export async function deleteNode(body?: API.DeleteNodeIdRequest, options?: { [key: string]: any }) {
export async function deleteNode(
body?: API.DeleteNodeIdRequest,
options?: { [key: string]: any },
) {
return request<API.SecretPadResponse_Void_>('/api/v1alpha1/node/delete', {
method: 'POST',
headers: {
Expand Down Expand Up @@ -74,9 +80,12 @@ export async function upload(files?: File[], options?: { [key: string]: any }) {
if (files) {
formData.append('file', files[0] || '');
}
return request<API.SecretPadResponse_UploadNodeResultVO_>('/api/v1alpha1/node/upload', {
method: 'POST',
data: formData,
...(options || {}),
});
return request<API.SecretPadResponse_UploadNodeResultVO_>(
'/api/v1alpha1/node/upload',
{
method: 'POST',
data: formData,
...(options || {}),
},
);
}
32 changes: 22 additions & 10 deletions src/services/ezpsi-board/NodeRouteController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,28 @@ export async function queryCollaborationList(options?: { [key: string]: any }) {
}

/** 此处后端没有提供注释 POST /api/v1alpha1/nodeRoute/refresh */
export async function refresh(body?: API.RouterIdRequest, options?: { [key: string]: any }) {
return request<API.SecretPadResponse_NodeRouterVO_>('/api/v1alpha1/nodeRoute/refresh', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
export async function refresh(
body?: API.RouterIdRequest,
options?: { [key: string]: any },
) {
return request<API.SecretPadResponse_NodeRouterVO_>(
'/api/v1alpha1/nodeRoute/refresh',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
},
data: body,
...(options || {}),
});
);
}

/** 此处后端没有提供注释 POST /api/v1alpha1/nodeRoute/test */
export async function test(body?: API.RouterAddressRequest, options?: { [key: string]: any }) {
export async function test(
body?: API.RouterAddressRequest,
options?: { [key: string]: any },
) {
return request<API.SecretPadResponse_Boolean_>('/api/v1alpha1/nodeRoute/test', {
method: 'POST',
headers: {
Expand All @@ -38,7 +47,10 @@ export async function test(body?: API.RouterAddressRequest, options?: { [key: st
}

/** 此处后端没有提供注释 POST /api/v1alpha1/nodeRoute/update */
export async function update(body?: API.UpdateNodeRouterRequest, options?: { [key: string]: any }) {
export async function update(
body?: API.UpdateNodeRouterRequest,
options?: { [key: string]: any },
) {
return request<API.SecretPadResponse_String_>('/api/v1alpha1/nodeRoute/update', {
method: 'POST',
headers: {
Expand Down
Loading

0 comments on commit 1e273b3

Please sign in to comment.