mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-30 09:00:21 +03:00
1 parent
937ddc64c7
commit
91f565f839
6 files changed
+70
No files matched your search
@@ -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>
|
||||
@@ -0,0 +1,3 @@
|
||||
declare module 'to-double-quotes' {
|
||||
export default function convert(s: string): string;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
declare module 'to-single-quotes' {
|
||||
export default function convert(s: string): string;
|
||||
}
|
||||
Reference in new issue
Block a user