mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
feat(Url Parser): add Open URL button for url params that contains xxx://
Fix #1682
This commit is contained in:
1 parent
057999596d
commit
acaa5d7ccd
2 files changed
+6
-2
No files matched your search
@@ -4475,6 +4475,7 @@ tools:
|
||||
label-your-url-to-parse: 'Your url to parse:'
|
||||
placeholder-your-url-to-parse: Your url to parse...
|
||||
url-must-have-http-or-https-prefix: Url must have http:// or https:// prefix
|
||||
button-open-url: Open URL
|
||||
text-to-binary:
|
||||
title: Text to UTF-8 binary
|
||||
description: Convert text to its UTF-8 binary representation and vice-versa.
|
||||
|
||||
@@ -88,8 +88,11 @@ const properties: { title: string; key: keyof URL }[] = [
|
||||
<icon-mdi-arrow-right-bottom />
|
||||
</div>
|
||||
|
||||
<InputCopyable :value="param.key" readonly />
|
||||
<InputCopyable :value="param.value" readonly />
|
||||
<InputCopyable :value="param.key" readonly mr-1 style="width: 40%" />
|
||||
<InputCopyable :value="param.value" readonly mr-1 />
|
||||
<c-button v-if="/^[a-z]+:\/\//.test(param.value || '')" target="_blank" :href="param.value">
|
||||
{{ t('tools.url-parser.texts.button-open-url') }}
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
</template>
|
||||
|
||||
Reference in new issue
Block a user