mirror of https://github.com/Lissy93/dashy.git
Merge pull request #18 from Lissy93/bug-fix_17-config-editor-freeze
Removes explicit use of Ajv. Fixes #17
This commit is contained in:
commit
a8400c416c
|
@ -13,7 +13,6 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ajv": "^8.5.0",
|
"ajv": "^8.5.0",
|
||||||
"ajv7": "npm:ajv@^7.2.2",
|
|
||||||
"axios": "^0.21.1",
|
"axios": "^0.21.1",
|
||||||
"connect": "^3.7.0",
|
"connect": "^3.7.0",
|
||||||
"crypto-js": "^4.0.0",
|
"crypto-js": "^4.0.0",
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
import VJsoneditor from 'v-jsoneditor';
|
import VJsoneditor from 'v-jsoneditor';
|
||||||
import { localStorageKeys } from '@/utils/defaults';
|
import { localStorageKeys } from '@/utils/defaults';
|
||||||
import configSchema from '@/utils/ConfigSchema.json';
|
import configSchema from '@/utils/ConfigSchema.json';
|
||||||
import Ajv from 'ajv7';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'JsonEditor',
|
name: 'JsonEditor',
|
||||||
|
@ -49,12 +48,6 @@ export default {
|
||||||
mode: 'tree',
|
mode: 'tree',
|
||||||
modes: ['tree', 'code', 'preview'],
|
modes: ['tree', 'code', 'preview'],
|
||||||
name: 'config',
|
name: 'config',
|
||||||
ajv: new Ajv({
|
|
||||||
allErrors: true,
|
|
||||||
verbose: true,
|
|
||||||
jsPropertySyntax: false,
|
|
||||||
$data: true,
|
|
||||||
}),
|
|
||||||
onValidationError: this.validationErrors,
|
onValidationError: this.validationErrors,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue