feat(Url Parser): add Open URL button for url params that contains xxx://

Fix #1682
This commit is contained in:
ShareVB committed 2025-12-06 18:53:25 +01:00
1 parent 057999596d
commit acaa5d7ccd
2 files changed
+6 -2

No files matched your search

+1
View File
@@ -4475,6 +4475,7 @@ tools:
label-your-url-to-parse: 'Your url to parse:' label-your-url-to-parse: 'Your url to parse:'
placeholder-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 url-must-have-http-or-https-prefix: Url must have http:// or https:// prefix
button-open-url: Open URL
text-to-binary: text-to-binary:
title: Text to UTF-8 binary title: Text to UTF-8 binary
description: Convert text to its UTF-8 binary representation and vice-versa. description: Convert text to its UTF-8 binary representation and vice-versa.
+5 -2
View File
@@ -88,8 +88,11 @@ const properties: { title: string; key: keyof URL }[] = [
<icon-mdi-arrow-right-bottom /> <icon-mdi-arrow-right-bottom />
</div> </div>
<InputCopyable :value="param.key" readonly /> <InputCopyable :value="param.key" readonly mr-1 style="width: 40%" />
<InputCopyable :value="param.value" readonly /> <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> </div>
</c-card> </c-card>
</template> </template>