Support rusEFI logs
This commit is contained in:
parent
648b578176
commit
8e5dd04143
|
@ -17,7 +17,7 @@
|
|||
"antd": "^4.23.6",
|
||||
"kbar": "^0.1.0-beta.36",
|
||||
"lodash.debounce": "^4.0.8",
|
||||
"mlg-converter": "^0.7.1",
|
||||
"mlg-converter": "^0.8.0",
|
||||
"nanoid": "^4.0.0",
|
||||
"pako": "^2.0.4",
|
||||
"pocketbase": "^0.8.0-rc1",
|
||||
|
@ -41,8 +41,8 @@
|
|||
"@types/react-dom": "^18.0.8",
|
||||
"@types/react-redux": "^7.1.24",
|
||||
"@types/react-router-dom": "^5.3.3",
|
||||
"@typescript-eslint/eslint-plugin": "^5.41.0",
|
||||
"@typescript-eslint/parser": "^5.41.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
||||
"@typescript-eslint/parser": "^5.42.0",
|
||||
"@vitejs/plugin-react": "^2.2.0",
|
||||
"eslint": "^8.26.0",
|
||||
"eslint-plugin-flowtype": "^8.0.3",
|
||||
|
@ -7694,9 +7694,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/mlg-converter": {
|
||||
"version": "0.7.1",
|
||||
"resolved": "https://registry.npmjs.org/mlg-converter/-/mlg-converter-0.7.1.tgz",
|
||||
"integrity": "sha512-XiOeTRJuiaiQj652q+PT6zXsDtacV3bxtP4xKS9CaL2+7KSujNFMixBZCrBrPY8k/SyT5ki0BR8m3WbdW+C73Q==",
|
||||
"version": "0.8.0",
|
||||
"resolved": "https://registry.npmjs.org/mlg-converter/-/mlg-converter-0.8.0.tgz",
|
||||
"integrity": "sha512-npc2ds7cKgTiwtikN5PltGMi39XitDJAXj2TrWGHFWn01vtwQquNg/Y9nTI8KmAg7ZoswQX4CcbqLV4rUU79AA==",
|
||||
"bin": {
|
||||
"mlg-converter": "dist/cli.js"
|
||||
}
|
||||
|
@ -16568,9 +16568,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"mlg-converter": {
|
||||
"version": "0.7.1",
|
||||
"resolved": "https://registry.npmjs.org/mlg-converter/-/mlg-converter-0.7.1.tgz",
|
||||
"integrity": "sha512-XiOeTRJuiaiQj652q+PT6zXsDtacV3bxtP4xKS9CaL2+7KSujNFMixBZCrBrPY8k/SyT5ki0BR8m3WbdW+C73Q=="
|
||||
"version": "0.8.0",
|
||||
"resolved": "https://registry.npmjs.org/mlg-converter/-/mlg-converter-0.8.0.tgz",
|
||||
"integrity": "sha512-npc2ds7cKgTiwtikN5PltGMi39XitDJAXj2TrWGHFWn01vtwQquNg/Y9nTI8KmAg7ZoswQX4CcbqLV4rUU79AA=="
|
||||
},
|
||||
"moment": {
|
||||
"version": "2.29.4",
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
"antd": "^4.23.6",
|
||||
"kbar": "^0.1.0-beta.36",
|
||||
"lodash.debounce": "^4.0.8",
|
||||
"mlg-converter": "^0.7.1",
|
||||
"mlg-converter": "^0.8.0",
|
||||
"nanoid": "^4.0.0",
|
||||
"pako": "^2.0.4",
|
||||
"pocketbase": "^0.8.0-rc1",
|
||||
|
@ -52,8 +52,8 @@
|
|||
"@types/react-dom": "^18.0.8",
|
||||
"@types/react-redux": "^7.1.24",
|
||||
"@types/react-router-dom": "^5.3.3",
|
||||
"@typescript-eslint/eslint-plugin": "^5.41.0",
|
||||
"@typescript-eslint/parser": "^5.41.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
||||
"@typescript-eslint/parser": "^5.42.0",
|
||||
"@vitejs/plugin-react": "^2.2.0",
|
||||
"eslint": "^8.26.0",
|
||||
"eslint-plugin-flowtype": "^8.0.3",
|
||||
|
|
|
@ -45,7 +45,7 @@ class LogValidator implements ParserInterface {
|
|||
private checkMSL() {
|
||||
const lines = this.raw.split('\n');
|
||||
for (let index = 0; index < lines.length; index++) {
|
||||
if (lines[index].startsWith('Time')) {
|
||||
if (lines[index].startsWith('Time') || lines[index].startsWith('RPM')) {
|
||||
this.isMSLLogs = true;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ class MslLogParser implements ParserInterface {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (line.startsWith('Time')) {
|
||||
if (line.startsWith('Time') || line.startsWith('RPM')) {
|
||||
unitsIndex = lineIndex + 1;
|
||||
const fields = line.split('\t');
|
||||
const units = lines[unitsIndex].trim().split('\t');
|
||||
|
|
Loading…
Reference in New Issue