mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-21 13:34:04 +03:00
1 parent
2b9f4f84da
commit
a87559696c
2 files changed
+2
-2
No files matched your search
@@ -37,7 +37,7 @@ const schemaUrl = useQueryParamOrStorage<string>({ name: 'schema', storageName:
|
|||||||
const { schemas, errors: validationErrors } = useJsonSchemaValidation({ json: jsonContent, schemaUrl, schemaData });
|
const { schemas, errors: validationErrors } = useJsonSchemaValidation({ json: jsonContent, schemaUrl, schemaData });
|
||||||
|
|
||||||
const indentSize = useITStorage('json-linter:indent-size', 3);
|
const indentSize = useITStorage('json-linter:indent-size', 3);
|
||||||
const autoRepair = useITStorage('json-linter:repair', false);
|
const autoRepair = useITStorage('json-linter:repair', true);
|
||||||
const cleanJson = computed(() => {
|
const cleanJson = computed(() => {
|
||||||
try {
|
try {
|
||||||
let jsonContentValue = jsonContent.value;
|
let jsonContentValue = jsonContent.value;
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ const schemaData = useITStorage('json-prettify:schema-data', '');
|
|||||||
const indentSize = useITStorage('json-prettify:indent-size', 3);
|
const indentSize = useITStorage('json-prettify:indent-size', 3);
|
||||||
const sortKeys = useITStorage('json-prettify:sort-keys', true);
|
const sortKeys = useITStorage('json-prettify:sort-keys', true);
|
||||||
const unescapeUnicode = useITStorage('json-prettify:unescape-unicode', false);
|
const unescapeUnicode = useITStorage('json-prettify:unescape-unicode', false);
|
||||||
const repairJson = useITStorage('json-prettify:repair-json', false);
|
const repairJson = useITStorage('json-prettify:repair-json', true);
|
||||||
const cleanJson = computed(() => withDefaultOnError(() => formatJson({ rawJson, indentSize, sortKeys, unescapeUnicode, repairJson }), ''));
|
const cleanJson = computed(() => withDefaultOnError(() => formatJson({ rawJson, indentSize, sortKeys, unescapeUnicode, repairJson }), ''));
|
||||||
|
|
||||||
const rawJsonValidation = useValidation({
|
const rawJsonValidation = useValidation({
|
||||||
|
|||||||
Reference in new issue
Block a user