fix: create-tool.mjs

This commit is contained in:
Ibrahima G. Coulibaly
2024-06-24 01:16:00 +01:00
parent 834d02e1b5
commit 9657e60eca
3 changed files with 17 additions and 8 deletions

21
.idea/workspace.xml generated
View File

@@ -4,9 +4,10 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="b30e2810-c4c1-4aad-b134-794e52cc1c7d" name="Changes" comment="fix: create-tool.mjs"> <list default="true" id="b30e2810-c4c1-4aad-b134-794e52cc1c7d" name="Changes" comment="fix: readme">
<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$/Readme.md" beforeDir="false" afterPath="$PROJECT_DIR$/Readme.md" afterDir="false" /> <change beforePath="$PROJECT_DIR$/scripts/create-tool.mjs" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/create-tool.mjs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/pages/image/png/change-colors-in-png/meta.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/pages/image/png/change-colors-in-png/meta.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" />
@@ -159,7 +160,7 @@
<workItem from="1719092003308" duration="14856000" /> <workItem from="1719092003308" duration="14856000" />
<workItem from="1719164664347" duration="2033000" /> <workItem from="1719164664347" duration="2033000" />
<workItem from="1719166718305" duration="1783000" /> <workItem from="1719166718305" duration="1783000" />
<workItem from="1719168519203" duration="7368000" /> <workItem from="1719168519203" duration="8034000" />
</task> </task>
<task id="LOCAL-00001" summary="feat: use vite and ts"> <task id="LOCAL-00001" summary="feat: use vite and ts">
<option name="closed" value="true" /> <option name="closed" value="true" />
@@ -505,7 +506,15 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1719187088285</updated> <updated>1719187088285</updated>
</task> </task>
<option name="localTasksCounter" value="44" /> <task id="LOCAL-00044" summary="fix: readme">
<option name="closed" value="true" />
<created>1719187190823</created>
<option name="number" value="00044" />
<option name="presentableId" value="LOCAL-00044" />
<option name="project" value="LOCAL" />
<updated>1719187190823</updated>
</task>
<option name="localTasksCounter" value="45" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
@@ -546,12 +555,12 @@
<MESSAGE value="feat: create tool script" /> <MESSAGE value="feat: create tool script" />
<MESSAGE value="fix: missing files" /> <MESSAGE value="fix: missing files" />
<MESSAGE value="fix: create tool" /> <MESSAGE value="fix: create tool" />
<MESSAGE value="fix: readme" />
<MESSAGE value="fix: build" /> <MESSAGE value="fix: build" />
<MESSAGE value="chore: CODEOWNERS" /> <MESSAGE value="chore: CODEOWNERS" />
<MESSAGE value="ci: fix" /> <MESSAGE value="ci: fix" />
<MESSAGE value="fix: create-tool.mjs" /> <MESSAGE value="fix: create-tool.mjs" />
<option name="LAST_COMMIT_MESSAGE" value="fix: create-tool.mjs" /> <MESSAGE value="fix: readme" />
<option name="LAST_COMMIT_MESSAGE" value="fix: readme" />
</component> </component>
<component name="XSLT-Support.FileAssociations.UIState"> <component name="XSLT-Support.FileAssociations.UIState">
<expand /> <expand />

View File

@@ -80,7 +80,7 @@ import { lazy } from 'react';
export const tool = defineTool('${folder.split(sep)[folder.split(sep).length - 1]}', { export const tool = defineTool('${folder.split(sep)[folder.split(sep).length - 1]}', {
name: '${toolNameTitleCase}', name: '${toolNameTitleCase}',
path: '/${toolName}', path: '${toolName}',
// image, // image,
description: '', description: '',
keywords: ['${toolName.split('-').join('\', \'')}'], keywords: ['${toolName.split('-').join('\', \'')}'],

View File

@@ -4,7 +4,7 @@ import image from '@assets/text.png';
export const tool = defineTool('png', { export const tool = defineTool('png', {
name: 'Change colors in png', name: 'Change colors in png',
path: '/change-colors-in-png', path: 'change-colors-in-png',
image, image,
description: '', description: '',
keywords: ['change', 'colors', 'in', 'png'], keywords: ['change', 'colors', 'in', 'png'],