diff options
author | 2023-06-25 15:00:50 +0200 | |
---|---|---|
committer | 2023-06-25 13:00:50 +0000 | |
commit | 05ea54547515f7fb1eed5f31ccbde10e36041fb1 (patch) | |
tree | 535e78ce534818e9a66ff3a2335499a53db1fe4c /src/tools/html-entities/html-entities.vue | |
parent | 5c3bebfe62ab2942f6378356fbb6be40e389c70e (diff) | |
download | it-tools-05ea54547515f7fb1eed5f31ccbde10e36041fb1.tar.gz it-tools-05ea54547515f7fb1eed5f31ccbde10e36041fb1.tar.zst it-tools-05ea54547515f7fb1eed5f31ccbde10e36041fb1.zip |
refactor(ui): replaced some n-input to c-input (#505)
Diffstat (limited to 'src/tools/html-entities/html-entities.vue')
-rw-r--r-- | src/tools/html-entities/html-entities.vue | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/src/tools/html-entities/html-entities.vue b/src/tools/html-entities/html-entities.vue index dc44a0d..a0f6102 100644 --- a/src/tools/html-entities/html-entities.vue +++ b/src/tools/html-entities/html-entities.vue @@ -7,7 +7,7 @@ const escapeInput = ref('<title>IT Tool</title>'); const escapeOutput = computed(() => escape(escapeInput.value)); const { copy: copyEscaped } = useCopy({ source: escapeOutput }); -const unescapeInput = ref('<title>IT Tool</title'); +const unescapeInput = ref('<title>IT Tool</title>'); const unescapeOutput = computed(() => unescape(unescapeInput.value)); const { copy: copyUnescaped } = useCopy({ source: unescapeOutput }); </script> @@ -15,21 +15,24 @@ const { copy: copyUnescaped } = useCopy({ source: unescapeOutput }); <template> <c-card title="Escape html entities"> <n-form-item label="Your string :"> - <n-input + <c-input-text v-model:value="escapeInput" - type="textarea" + multiline placeholder="The string to escape" - :autosize="{ minRows: 2 }" + rows="3" + autosize + raw-text /> </n-form-item> <n-form-item label="Your string escaped :"> - <n-input - type="textarea" + <c-input-text + multiline readonly placeholder="Your string escaped" :value="escapeOutput" - :autosize="{ minRows: 2 }" + rows="3" + autosize /> </n-form-item> @@ -41,21 +44,24 @@ const { copy: copyUnescaped } = useCopy({ source: unescapeOutput }); </c-card> <c-card title="Unescape html entities"> <n-form-item label="Your escaped string :"> - <n-input + <c-input-text v-model:value="unescapeInput" - type="textarea" + multiline placeholder="The string to unescape" - :autosize="{ minRows: 2 }" + rows="3" + autosize + raw-text /> </n-form-item> <n-form-item label="Your string unescaped :"> - <n-input + <c-input-text :value="unescapeOutput" - type="textarea" + multiline readonly placeholder="Your string unescaped" - :autosize="{ minRows: 2 }" + rows="3" + autosize /> </n-form-item> |