mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-23 16:09:30 +02:00
chore: text result extensions
This commit is contained in:
@@ -150,7 +150,9 @@ export default function CsvToJson({ title }: ToolComponentProps) {
|
||||
inputComponent={
|
||||
<ToolTextInput title="Input CSV" value={input} onChange={setInput} />
|
||||
}
|
||||
resultComponent={<ToolTextResult title="Output JSON" value={result} />}
|
||||
resultComponent={
|
||||
<ToolTextResult title="Output JSON" value={result} extension={'json'} />
|
||||
}
|
||||
getGroups={({ values, updateField }) => [
|
||||
{
|
||||
title: 'Input CSV Format',
|
||||
|
@@ -79,7 +79,9 @@ export default function CsvToXml({ title }: ToolComponentProps) {
|
||||
inputComponent={
|
||||
<ToolTextInput title="Input CSV" value={input} onChange={setInput} />
|
||||
}
|
||||
resultComponent={<ToolTextResult title="Output XML" value={result} />}
|
||||
resultComponent={
|
||||
<ToolTextResult title="Output XML" value={result} extension={'xml'} />
|
||||
}
|
||||
getGroups={({ values, updateField }) => [
|
||||
{
|
||||
title: 'Input CSV Format',
|
||||
|
@@ -60,7 +60,13 @@ export default function MinifyJson({ title }: ToolComponentProps) {
|
||||
inputComponent={
|
||||
<ToolTextInput title="Input JSON" value={input} onChange={setInput} />
|
||||
}
|
||||
resultComponent={<ToolTextResult title="Minified JSON" value={result} />}
|
||||
resultComponent={
|
||||
<ToolTextResult
|
||||
title="Minified JSON"
|
||||
value={result}
|
||||
extension={'json'}
|
||||
/>
|
||||
}
|
||||
initialValues={initialValues}
|
||||
getGroups={null}
|
||||
toolInfo={{
|
||||
|
@@ -130,7 +130,13 @@ export default function PrettifyJson({ title }: ToolComponentProps) {
|
||||
inputComponent={
|
||||
<ToolTextInput title={'Input JSON'} value={input} onChange={setInput} />
|
||||
}
|
||||
resultComponent={<ToolTextResult title={'Pretty JSON'} value={result} />}
|
||||
resultComponent={
|
||||
<ToolTextResult
|
||||
title={'Pretty JSON'}
|
||||
value={result}
|
||||
extension={'json'}
|
||||
/>
|
||||
}
|
||||
initialValues={initialValues}
|
||||
getGroups={({ values, updateField }) => [
|
||||
{
|
||||
|
@@ -109,7 +109,9 @@ export default function StringifyJson({ title }: ToolComponentProps) {
|
||||
onChange={setInput}
|
||||
/>
|
||||
}
|
||||
resultComponent={<ToolTextResult title="JSON String" value={result} />}
|
||||
resultComponent={
|
||||
<ToolTextResult title="JSON String" value={result} extension={'json'} />
|
||||
}
|
||||
getGroups={({ values, updateField }) => [
|
||||
{
|
||||
title: 'Indentation',
|
||||
|
@@ -6,7 +6,7 @@ export const meta = defineTool('pdf', {
|
||||
shortDescription: 'Extract specific pages from a PDF file',
|
||||
description:
|
||||
'Extract specific pages from a PDF file using page numbers or ranges (e.g., 1,5-8)',
|
||||
icon: 'mdi:file-pdf-box',
|
||||
icon: 'material-symbols-light:call-split-rounded',
|
||||
component: lazy(() => import('./index')),
|
||||
keywords: ['pdf', 'split', 'extract', 'pages', 'range', 'document'],
|
||||
path: 'split-pdf'
|
||||
|
Reference in New Issue
Block a user