uppercase json & typos
This commit is contained in:
parent
7e9fae290b
commit
9d297ec867
@ -23,8 +23,8 @@ const jsonValidationRules = [
|
|||||||
<c-input-text
|
<c-input-text
|
||||||
v-model:value="rawLeftJson"
|
v-model:value="rawLeftJson"
|
||||||
:validation-rules="jsonValidationRules"
|
:validation-rules="jsonValidationRules"
|
||||||
label="Your first json"
|
label="Your first JSON"
|
||||||
placeholder="Paste your first json here..."
|
placeholder="Paste your first JSON here..."
|
||||||
rows="20"
|
rows="20"
|
||||||
multiline
|
multiline
|
||||||
test-id="leftJson"
|
test-id="leftJson"
|
||||||
@ -34,8 +34,8 @@ const jsonValidationRules = [
|
|||||||
<c-input-text
|
<c-input-text
|
||||||
v-model:value="rawRightJson"
|
v-model:value="rawRightJson"
|
||||||
:validation-rules="jsonValidationRules"
|
:validation-rules="jsonValidationRules"
|
||||||
label="Your json to compare"
|
label="Your JSON to compare"
|
||||||
placeholder="Paste your json to compare here..."
|
placeholder="Paste your JSON to compare here..."
|
||||||
rows="20"
|
rows="20"
|
||||||
multiline
|
multiline
|
||||||
test-id="rightJson"
|
test-id="rightJson"
|
||||||
|
|||||||
@ -16,10 +16,10 @@ const rules: UseValidationRule<string>[] = [
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<format-transformer
|
<format-transformer
|
||||||
input-label="Your raw json"
|
input-label="Your raw JSON"
|
||||||
:input-default="defaultValue"
|
:input-default="defaultValue"
|
||||||
input-placeholder="Paste your raw json here..."
|
input-placeholder="Paste your raw JSON here..."
|
||||||
output-label="Minify version of your JSON"
|
output-label="Minified version of your JSON"
|
||||||
output-language="json"
|
output-language="json"
|
||||||
:input-validation-rules="rules"
|
:input-validation-rules="rules"
|
||||||
:transformer="transformer"
|
:transformer="transformer"
|
||||||
|
|||||||
@ -23,8 +23,8 @@ const rules: UseValidationRule<string>[] = [
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<format-transformer
|
<format-transformer
|
||||||
input-label="Your raw json"
|
input-label="Your raw JSON"
|
||||||
input-placeholder="Paste your raw json here..."
|
input-placeholder="Paste your raw JSON here..."
|
||||||
output-label="CSV version of your JSON"
|
output-label="CSV version of your JSON"
|
||||||
:input-validation-rules="rules"
|
:input-validation-rules="rules"
|
||||||
:transformer="transformer"
|
:transformer="transformer"
|
||||||
|
|||||||
@ -37,14 +37,14 @@ const rawJsonValidation = useValidation({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<n-form-item
|
<n-form-item
|
||||||
label="Your raw json"
|
label="Your raw JSON"
|
||||||
:feedback="rawJsonValidation.message"
|
:feedback="rawJsonValidation.message"
|
||||||
:validation-status="rawJsonValidation.status"
|
:validation-status="rawJsonValidation.status"
|
||||||
>
|
>
|
||||||
<n-input
|
<n-input
|
||||||
ref="inputElement"
|
ref="inputElement"
|
||||||
v-model:value="rawJson"
|
v-model:value="rawJson"
|
||||||
placeholder="Paste your raw json here..."
|
placeholder="Paste your raw JSON here..."
|
||||||
type="textarea"
|
type="textarea"
|
||||||
rows="20"
|
rows="20"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
@ -53,7 +53,7 @@ const rawJsonValidation = useValidation({
|
|||||||
spellcheck="false"
|
spellcheck="false"
|
||||||
/>
|
/>
|
||||||
</n-form-item>
|
</n-form-item>
|
||||||
<n-form-item label="Prettify version of your json">
|
<n-form-item label="Prettified version of your JSON">
|
||||||
<TextareaCopyable :value="cleanJson" language="json" :follow-height-of="inputElement" />
|
<TextareaCopyable :value="cleanJson" language="json" :follow-height-of="inputElement" />
|
||||||
</n-form-item>
|
</n-form-item>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user