aboutsummaryrefslogtreecommitdiff
path: root/src/tools/hmac-generator/hmac-generator.vue
diff options
context:
space:
mode:
authorGravatar Corentin THOMASSET <corentin.thomasset74@gmail.com> 2023-08-07 17:30:00 +0200
committerGravatar GitHub <noreply@github.com> 2023-08-07 15:30:00 +0000
commitdfa1ba85548508e680f68200ea521be95c3eafe0 (patch)
treec166b635e5eb006806bd40a88252d90735be9ca4 /src/tools/hmac-generator/hmac-generator.vue
parent6498c9b0fa0427d567506dbd4a6e87d227b138d4 (diff)
downloadit-tools-dfa1ba85548508e680f68200ea521be95c3eafe0.tar.gz
it-tools-dfa1ba85548508e680f68200ea521be95c3eafe0.tar.zst
it-tools-dfa1ba85548508e680f68200ea521be95c3eafe0.zip
feat(ui): added c-select in the ui lib (#550)
* feat(ui): added c-select in the ui lib * refactor(ui): switched n-select to c-select
Diffstat (limited to 'src/tools/hmac-generator/hmac-generator.vue')
-rw-r--r--src/tools/hmac-generator/hmac-generator.vue60
1 files changed, 29 insertions, 31 deletions
diff --git a/src/tools/hmac-generator/hmac-generator.vue b/src/tools/hmac-generator/hmac-generator.vue
index 463e27b..fda3988 100644
--- a/src/tools/hmac-generator/hmac-generator.vue
+++ b/src/tools/hmac-generator/hmac-generator.vue
@@ -51,37 +51,35 @@ const { copy } = useCopy({ source: hmac });
<c-input-text v-model:value="secret" raw-text placeholder="Enter the secret key..." label="Secret key" clearable />
<div flex gap-2>
- <n-form-item label="Hashing function" flex-1>
- <n-select
- v-model:value="hashFunction"
- placeholder="Select an hashing function..."
- :options="Object.keys(algos).map((label) => ({ label, value: label }))"
- />
- </n-form-item>
- <n-form-item label="Output encoding" flex-1>
- <n-select
- v-model:value="encoding"
- placeholder="Select the result encoding..."
- :options="[
- {
- label: 'Binary (base 2)',
- value: 'Bin',
- },
- {
- label: 'Hexadecimal (base 16)',
- value: 'Hex',
- },
- {
- label: 'Base64 (base 64)',
- value: 'Base64',
- },
- {
- label: 'Base64-url (base 64 with url safe chars)',
- value: 'Base64url',
- },
- ]"
- />
- </n-form-item>
+ <c-select
+ v-model:value="hashFunction" label="Hashing function"
+ flex-1
+ placeholder="Select an hashing function..."
+ :options="Object.keys(algos).map((label) => ({ label, value: label }))"
+ />
+ <c-select
+ v-model:value="encoding" label="Output encoding"
+ flex-1
+ placeholder="Select the result encoding..."
+ :options="[
+ {
+ label: 'Binary (base 2)',
+ value: 'Bin',
+ },
+ {
+ label: 'Hexadecimal (base 16)',
+ value: 'Hex',
+ },
+ {
+ label: 'Base64 (base 64)',
+ value: 'Base64',
+ },
+ {
+ label: 'Base64-url (base 64 with url safe chars)',
+ value: 'Base64url',
+ },
+ ]"
+ />
</div>
<input-copyable v-model:value="hmac" type="textarea" placeholder="The result of the HMAC..." label="HMAC of your text" />
<div flex justify-center>