feat(new tool): Quote Converter

Fix #637
This commit is contained in:
ShareVB committed 2025-05-08 15:35:47 +02:00
1 parent 937ddc64c7
commit 91f565f839
6 files changed
+70

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { Quote } from '@vicons/tabler';
import { defineTool } from '../tool';
export const tool = defineTool({
name: 'Quote Converter',
path: '/quote-converter',
description: 'Convert quoted string from/to \' and "',
keywords: ['quote', 'converter'],
component: () => import('./quote-converter.vue'),
icon: Quote,
createdAt: new Date('2025-05-01'),
category: 'Development',
});
@@ -0,0 +1,26 @@
<script setup lang="ts">
import toDoubleQuotes from 'to-double-quotes';
import toSingleQuotes from 'to-single-quotes';
</script>
<template>
<div>
<c-card title="Single quotes to double quotes" mb-2>
<format-transformer
input-label="Single quoted string"
input-placeholder="Paste your single quoted string here..."
output-label="Double quoted string"
:transformer="toDoubleQuotes"
/>
</c-card>
<c-card title="Double quotes to single quotes">
<format-transformer
input-label="Double quoted string"
input-placeholder="Paste your double quoted string here..."
output-label="Single quoted string"
:transformer="toSingleQuotes"
/>
</c-card>
</div>
</template>
+3
View File
@@ -0,0 +1,3 @@
declare module 'to-double-quotes' {
export default function convert(s: string): string;
}
+3
View File
@@ -0,0 +1,3 @@
declare module 'to-single-quotes' {
export default function convert(s: string): string;
}