mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-25 00:49:32 +02:00
feat: tools normalized
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
import {RouteObject} from "react-router-dom";
|
||||
import {lazy} from "react";
|
||||
import {PngConfig} from "./png/PngConfig";
|
||||
|
||||
const PngHome = lazy(() => import("./index"));
|
||||
|
||||
export const ImagesConfig: RouteObject[] = [
|
||||
{path: '', element: <PngHome/>},
|
||||
{path: 'png', children: PngConfig},
|
||||
]
|
3
src/pages/images/imageTools.ts
Normal file
3
src/pages/images/imageTools.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { pngTools } from './png/pngTools';
|
||||
|
||||
export const imageTools = [...pngTools];
|
@@ -1,5 +1,5 @@
|
||||
import {Box} from "@mui/material";
|
||||
import { Box } from '@mui/material';
|
||||
|
||||
export default function ImageHome() {
|
||||
return (<Box></Box>)
|
||||
return <Box></Box>;
|
||||
}
|
||||
|
@@ -1,10 +0,0 @@
|
||||
import {RouteObject} from "react-router-dom";
|
||||
import {lazy} from "react";
|
||||
|
||||
const ChangeColorsInPng = lazy(() => import("./change-colors-in-png"));
|
||||
const PngHome = lazy(() => import("./"));
|
||||
|
||||
export const PngConfig: RouteObject[] = [
|
||||
{path: '', element: <PngHome/>},
|
||||
{path: 'change-colors-in-png', element: <ChangeColorsInPng/>}
|
||||
]
|
@@ -1,4 +1,4 @@
|
||||
import { Box } from "@mui/material";
|
||||
import { Box } from '@mui/material';
|
||||
|
||||
export default function ChangeColorsInPng() {
|
||||
return <Box></Box>;
|
||||
|
11
src/pages/images/png/change-colors-in-png/meta.ts
Normal file
11
src/pages/images/png/change-colors-in-png/meta.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { defineTool } from '../../../../tools/defineTool';
|
||||
import { lazy } from 'react';
|
||||
|
||||
export const tool = defineTool('png', {
|
||||
path: 'change-colors',
|
||||
name: 'Change colors in PNG',
|
||||
description:
|
||||
"World's simplest browser-based utility for splitting text. Load your text in the input form on the left and you'll automatically get pieces of this text on the right. Powerful, free, and fast. Load text – get chunks.",
|
||||
keywords: ['png', 'split'],
|
||||
component: lazy(() => import('./index'))
|
||||
});
|
@@ -1,5 +1,5 @@
|
||||
import {Box} from "@mui/material";
|
||||
import { Box } from '@mui/material';
|
||||
|
||||
export default function PngHome() {
|
||||
return (<Box></Box>)
|
||||
return <Box></Box>;
|
||||
}
|
||||
|
3
src/pages/images/png/pngTools.ts
Normal file
3
src/pages/images/png/pngTools.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { tool as changeColorsInPng } from './change-colors-in-png/meta';
|
||||
|
||||
export const pngTools = [changeColorsInPng];
|
Reference in New Issue
Block a user