Files
it-tools/src/tools/basic-auth-generator/basic-auth-generator.vue
T
ShareVB 207b2ab54d Squashed commit of the following:
commit d20c027957ddbdd26194550cfbf5917c43585779
Merge: d91a867c 63fbd3b4
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Thu Dec 12 23:42:30 2024 +0100

    Merge branch 'main' into translatable

commit d91a867cf113369bd23b297b15040042ac74daca
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Sun Oct 27 13:48:36 2024 +0000

    update

commit 9c023636c655554a560f03035cfbeaf7d0fed8f7
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Sun Oct 27 13:48:03 2024 +0000

    update

commit 32ca8e35de981811b6445d166367918bb64df67c
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Sun Oct 27 13:47:19 2024 +0000

    update

commit 2b94b06ac1236788018617b2ad77c35a8e65355e
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Sun Oct 27 13:46:19 2024 +0000

    update

commit aca9d139434ead3b6f6b827928f1ccddfcacf68f
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Sun Oct 27 13:43:36 2024 +0000

    update

commit 78267978388d756879bb059d02e19b8ff37001e0
Merge: f9031a98 0b1b98f9
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Sat Oct 26 00:08:54 2024 +0200

    Merge branch 'main' into translatable

commit f9031a98f66ef9ef94dec43ca3eec49a070e6a59
Merge: eaab7a8b f8366664
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Thu Oct 24 22:24:45 2024 +0200

    Merge branch 'main' into translatable

commit eaab7a8ba26c07603c46a4f48d7b77bc79588c5f
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Sun Sep 29 20:22:32 2024 +0000

    regex update

commit 3cc6a2547e6de9b99fddf527e5c2eda1de9a3d53
Merge: e0291730 1c35ac37
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Sun Sep 29 22:20:54 2024 +0200

    Merge branch 'main' into translatable

commit e02917305eb5ee50efa67c6b3918a6e6253a2999
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Sat Sep 21 10:11:08 2024 +0000

    improve regex

commit c69d55afe1b20570102f5b3a57e53983d8366f10
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Sat Sep 21 09:41:53 2024 +0000

    fix

commit 24c9131f80377a74543e0ed1a4a6d2fc470225d6
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Sat Sep 21 09:40:54 2024 +0000

    search

commit e3992d9187f06f74ef9222fb94d66d57717dc25e
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Sat Sep 21 09:30:17 2024 +0000

    copy

commit 563900dc1130495293d2db418f86922a6c31f9e0
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Fri Sep 20 20:11:39 2024 +0000

    improve

commit 95a1939cfcaf8fee797d86beba809ffa27f93c14
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Fri Sep 20 20:09:47 2024 +0000

    improve

commit 75c790062da0e115494a6b1440fd6d81427205db
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Fri Sep 20 20:02:57 2024 +0000

    fix

commit bb7d703cc5f1583fbbeca6cf1f30b87cf1045de5
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Fri Sep 20 19:59:02 2024 +0000

    regex

commit 6b8cfca29d62c775f3b790e025707283d235be51
Merge: 9fa9dc04 f5c4ab19
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Fri Sep 20 20:50:51 2024 +0200

    Merge branch 'main' into translatable

commit 9fa9dc047ea3d93fba242c77aef2ba747f6f9240
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Thu Sep 5 17:28:55 2024 +0000

    revert

commit 3eefdacf9c7281b845fae5a418815cb0f018ce9e
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Thu Sep 5 17:26:23 2024 +0000

    fix

commit ab7b3a6588f9d1f05db5286a722717b359b37177
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Thu Sep 5 17:21:43 2024 +0000

    copy

commit 917ff521ea6073e5fbf4862e3af5f81fbc6747ef
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Thu Sep 5 17:01:34 2024 +0000

    more tools

commit c756058c5c759066bbc4672f29cc39b52f55a0da
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Thu Sep 5 16:46:55 2024 +0000

    json xml texts

commit f5a5ca65507cf33a9c0aaf11aa8702f691941762
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Thu Sep 5 16:31:40 2024 +0000

    email-normalizer-texts

commit 0a72a2b24b128fccee6349966d7c5047bfc849ba
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Thu Sep 5 16:12:26 2024 +0000

    ascii-texts

commit 8e4a2206a72e087d3e06b7c6864350ba21a97921
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Tue Sep 3 16:54:31 2024 +0000

    qr code generator

commit ff46f178ce8073cc0ce574a39b8f0caf0b53c612
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Tue Aug 27 17:04:48 2024 +0000

    fix

commit 42170052eca699b68610299c0f50103ef9ba2234
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Tue Aug 27 17:02:01 2024 +0000

    fix

commit 867d415fea8e5fd7d48c9d6c3ac2dd702d3da582
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Tue Aug 27 16:47:17 2024 +0000

    copy

commit a97e1897e59d5701aef9f99349d24600a12ca505
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Tue Aug 27 16:28:27 2024 +0000

    markdown-to-html

commit b986c49df60c28f4256cf6e53e2ca007d97bba89
Merge: 028a4ce3 87984e20
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Tue Aug 27 18:12:30 2024 +0200

    Merge branch 'main' into translatable

commit 028a4ce3258342467dc1d9b8c9847706fa3e3816
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Thu Aug 15 19:13:03 2024 +0000

    fix

commit bff4984998a293e6455ad2695061c2aff2c08569
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Thu Aug 15 18:58:26 2024 +0000

    fix

commit c6ca07e7a0374aeb3f97c0afde1a4b16976cebaf
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Thu Aug 15 16:51:14 2024 +0000

    fix

commit 6892b68819f036580bbf302a3ab3bd9d03bf07b4
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Thu Aug 15 16:43:17 2024 +0000

    more texts

commit 7c5f6e7797ec91d42a1a6bef6a241f2be1c38a91
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Thu Aug 15 14:44:39 2024 +0000

    email normalizer

commit 174046079e3b35ee1e7cb505d3456b394eadab79
Merge: a81514d3 318fb6ef
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Thu Aug 15 16:38:40 2024 +0200

    Merge branch 'main' into translatable

commit a81514d383bec3049c00ed434904bb7363864388
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Mon Aug 12 17:39:18 2024 +0000

    more tools

commit 5ceb46855df890280e6256cc8665512c676d8ae8
Merge: 703e5e6a f1a5489e
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Mon Aug 12 19:30:26 2024 +0200

    Merge branch 'main' into translatable

commit 703e5e6abb7cad27d5a3bd60fd1b31e0427cb1c0
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Fri Aug 2 14:58:35 2024 +0000

    update

commit 1d15baaf291e5898b9ffcab58d85033a5fca5f7e
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Fri Jun 21 20:34:05 2024 +0000

    package

commit e926a79180e4c93a3b899a0f81ea925a03d208a1
Author: steffenrapp <88974099+steffenrapp@users.noreply.github.com>
Date:   Fri Jun 21 20:25:47 2024 +0000

    fix(i18n): Make rest of the tools translatable and translate them to German
2025-07-06 19:33:01 +02:00

55 lines
1.5 KiB
Vue

<script setup lang="ts">
import { useCopy } from '@/composable/copy';
import { textToBase64 } from '@/utils/base64';
const username = ref('');
const password = ref('');
const header = computed(() => `Authorization: Basic ${textToBase64(`${username.value}:${password.value}`)}`);
const { t } = useI18n();
const { copy } = useCopy({ source: header, text: t('tools.basic-auth-generator.copied') });
</script>
<template>
<div>
<c-input-text
v-model:value="username"
:label="t('tools.basic-auth-generator.username')"
:placeholder="t('tools.basic-auth-generator.yourusername')"
clearable
raw-text
mb-5
/>
<c-input-text
v-model:value="password"
:label="t('tools.basic-auth-generator.password')"
:placeholder="t('tools.basic-auth-generator.yourpassword')"
clearable
raw-text
mb-2
type="password"
/>
<c-card>
<n-statistic label="Authorization header:" class="header">
<n-scrollbar x-scrollable style="max-width: 550px; margin-bottom: -10px; padding-bottom: 10px" trigger="none">
{{ header }}
</n-scrollbar>
</n-statistic>
</c-card>
<div mt-5 flex justify-center>
<c-button @click="copy()">
{{ t('tools.basic-auth-generator.button.copy') }}
</c-button>
</div>
</div>
</template>
<style lang="less" scoped>
::v-deep(.n-statistic-value__content) {
font-family: monospace;
font-size: 17px !important;
white-space: nowrap;
}
</style>