mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-19 14:09:31 +02:00
chore: show new tools in landing
This commit is contained in:
9
.idea/workspace.xml
generated
9
.idea/workspace.xml
generated
@@ -5,13 +5,10 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="b30e2810-c4c1-4aad-b134-794e52cc1c7d" name="Changes" comment="chore: text result extensions">
|
<list default="true" id="b30e2810-c4c1-4aad-b134-794e52cc1c7d" name="Changes" comment="chore: text result extensions">
|
||||||
<change afterPath="$PROJECT_DIR$/src/pages/tools/pdf/rotate-pdf/index.tsx" afterDir="false" />
|
|
||||||
<change afterPath="$PROJECT_DIR$/src/pages/tools/pdf/rotate-pdf/meta.ts" afterDir="false" />
|
|
||||||
<change afterPath="$PROJECT_DIR$/src/pages/tools/pdf/rotate-pdf/rotate-pdf.service.test.ts" afterDir="false" />
|
|
||||||
<change afterPath="$PROJECT_DIR$/src/pages/tools/pdf/rotate-pdf/service.ts" afterDir="false" />
|
|
||||||
<change afterPath="$PROJECT_DIR$/src/pages/tools/pdf/rotate-pdf/types.ts" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/pages/tools/pdf/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/pages/tools/pdf/index.ts" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/components/Hero.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/Hero.tsx" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/config/uiConfig.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/config/uiConfig.ts" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/tools/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/tools/index.ts" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
@@ -19,9 +19,9 @@ const exampleTools: { label: string; url: string }[] = [
|
|||||||
{ label: 'Sort a list', url: '/list/sort' },
|
{ label: 'Sort a list', url: '/list/sort' },
|
||||||
{ label: 'Compress PNG', url: '/png/compress-png' },
|
{ label: 'Compress PNG', url: '/png/compress-png' },
|
||||||
{ label: 'Split a text', url: '/string/split' },
|
{ label: 'Split a text', url: '/string/split' },
|
||||||
{ label: 'Calculate number sum', url: '/number/sum' },
|
{ label: 'Split PDF', url: '/pdf/split-pdf' },
|
||||||
{ label: 'Shuffle a list', url: '/list/shuffle' },
|
{ label: 'Trim video', url: '/video/trim' },
|
||||||
{ label: 'Change colors in image', url: '/png/change-colors-in-png' }
|
{ label: 'Calculate number sum', url: '/number/sum' }
|
||||||
];
|
];
|
||||||
export default function Hero() {
|
export default function Hero() {
|
||||||
const [inputValue, setInputValue] = useState<string>('');
|
const [inputValue, setInputValue] = useState<string>('');
|
||||||
|
@@ -16,12 +16,12 @@ export const tools: DefinedTool[] = [
|
|||||||
...imageTools,
|
...imageTools,
|
||||||
...stringTools,
|
...stringTools,
|
||||||
...jsonTools,
|
...jsonTools,
|
||||||
|
...pdfTools,
|
||||||
...listTools,
|
...listTools,
|
||||||
...csvTools,
|
...csvTools,
|
||||||
...videoTools,
|
...videoTools,
|
||||||
...numberTools,
|
...numberTools,
|
||||||
...timeTools,
|
...timeTools
|
||||||
...pdfTools
|
|
||||||
];
|
];
|
||||||
const categoriesConfig: {
|
const categoriesConfig: {
|
||||||
type: ToolCategory;
|
type: ToolCategory;
|
||||||
@@ -91,6 +91,11 @@ const categoriesConfig: {
|
|||||||
'Tools for working with time and date – draw clocks and calendars, generate time and date sequences, calculate average time, convert between time zones, and much more.'
|
'Tools for working with time and date – draw clocks and calendars, generate time and date sequences, calculate average time, convert between time zones, and much more.'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
// use for changelogs
|
||||||
|
// console.log(
|
||||||
|
// 'tools',
|
||||||
|
// tools.map(({ name, type }) => ({ type, name }))
|
||||||
|
// );
|
||||||
export const filterTools = (
|
export const filterTools = (
|
||||||
tools: DefinedTool[],
|
tools: DefinedTool[],
|
||||||
query: string
|
query: string
|
||||||
|
Reference in New Issue
Block a user