Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop-2.1.0' into develop-2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
v_wbmqwang(王盟卿) committed Feb 28, 2024
2 parents dd1a606 + 42cbdeb commit 3ae8375
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
9 changes: 9 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Release 2.1.0

#### Major Features and Improvements
**Major Features**

* Added table targeting search for summary display
* Limit the zoom range of line charts and bar charts
* Display problem optimization

# Release 2.0.0

#### Major Features and Improvements
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>fateboard</groupId>
<artifactId>fateboard</artifactId>
<version>2.0.0</version>
<version>2.1.0</version>

<parent>
<groupId>org.springframework.boot</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import axios, {
import { ElMessage } from 'element-plus';
import { isBoolean, isNull, isObject, isUndefined } from 'lodash';
import toFile from '../toFile';
import JSYmal from 'js-yaml';

export interface BasicConfigForParameter extends CreateAxiosDefaults<unknown> {
ConsolePrinting?: boolean;
Expand Down Expand Up @@ -149,7 +150,12 @@ export default function HTTPRequest<B extends BasicConfigForParameter>(
const fileReader: FileReader = new FileReader();

fileReader.addEventListener('loadend', function () {
const result = JSON.parse(<string>fileReader.result);
let result
if (filename.match(/json/i)) {
result = JSON.parse(<string>fileReader.result);
} else {
result = JSYmal.load(fileReader.result)
}
if (result.code !== undefined) {
resolve(<unknown>bodyExplain(result));
} else {
Expand Down
3 changes: 2 additions & 1 deletion resources-front-end/packages/fate-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"build:dev": "tsc && webpack --mode=development"
},
"dependencies": {
"axios": "^1.5.1",
"axios": "^1.6.4",
"js-yaml": "^4.1.0",
"encryptlong": "^3.1.4",
"file-saver": "^2.0.5"
},
Expand Down
1 change: 1 addition & 0 deletions resources-front-end/packages/fate-tools/shims.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
declare module 'encryptlong';
declare module 'file-saver';
declare module 'lodash-es';
declare module 'js-yaml';

0 comments on commit 3ae8375

Please sign in to comment.