mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-19 14:09:31 +02:00
fix: examples and giving rigth input's names
This commit is contained in:
@@ -30,7 +30,8 @@ Queen,"Bohemian Rhapsody",Rock
|
|||||||
Nirvana,"Smells Like Teen Spirit",Grunge
|
Nirvana,"Smells Like Teen Spirit",Grunge
|
||||||
Michael Jackson,"Billie Jean",Pop
|
Michael Jackson,"Billie Jean",Pop
|
||||||
Stevie Wonder,"Superstition",Funk`,
|
Stevie Wonder,"Superstition",Funk`,
|
||||||
sampleResult: ` - The Beatles
|
sampleResult: `-
|
||||||
|
- The Beatles
|
||||||
- Yesterday
|
- Yesterday
|
||||||
- Pop Rock
|
- Pop Rock
|
||||||
-
|
-
|
||||||
@@ -62,7 +63,8 @@ Stevie Wonder,"Superstition",Funk`,
|
|||||||
Venus,0.815,0
|
Venus,0.815,0
|
||||||
Earth,1.000,1
|
Earth,1.000,1
|
||||||
Mars,0.107,2`,
|
Mars,0.107,2`,
|
||||||
sampleResult: ` planet: Venus
|
sampleResult: `-
|
||||||
|
planet: Venus
|
||||||
relative mass: 0.815
|
relative mass: 0.815
|
||||||
satellites: '0'
|
satellites: '0'
|
||||||
-
|
-
|
||||||
@@ -88,7 +90,8 @@ milk;2;3.50
|
|||||||
bread;1;4.25
|
bread;1;4.25
|
||||||
#apples;4;1.99
|
#apples;4;1.99
|
||||||
cheese;1;8.99`,
|
cheese;1;8.99`,
|
||||||
sampleResult: ` item: milk
|
sampleResult: `-
|
||||||
|
item: milk
|
||||||
quantity: 2
|
quantity: 2
|
||||||
price: 3.50
|
price: 3.50
|
||||||
-
|
-
|
||||||
@@ -188,8 +191,10 @@ export default function CsvToYaml({
|
|||||||
<ToolContent
|
<ToolContent
|
||||||
title={title}
|
title={title}
|
||||||
input={input}
|
input={input}
|
||||||
inputComponent={<ToolTextInput value={input} onChange={setInput} />}
|
inputComponent={
|
||||||
resultComponent={<ToolTextResult value={result} />}
|
<ToolTextInput title={'Input CSV'} value={input} onChange={setInput} />
|
||||||
|
}
|
||||||
|
resultComponent={<ToolTextResult title={'Output YAML'} value={result} />}
|
||||||
initialValues={initialValues}
|
initialValues={initialValues}
|
||||||
exampleCards={exampleCards}
|
exampleCards={exampleCards}
|
||||||
getGroups={getGroups}
|
getGroups={getGroups}
|
||||||
|
Reference in New Issue
Block a user