Skip to content

Commit 11720e6

Browse files
committed
feat(tools): new badge for recently created tools
1 parent ac89490 commit 11720e6

File tree

33 files changed

+320
-100
lines changed

33 files changed

+320
-100
lines changed

package-lock.json

Lines changed: 137 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@
2525
"cronstrue": "^2.2.0",
2626
"crypto-js": "^4.1.1",
2727
"date-fns": "^2.28.0",
28-
"figue": "^1.1.0",
28+
"figue": "^1.2.0",
2929
"highlight.js": "^11.5.1",
3030
"lodash": "^4.17.21",
31+
"mathjs": "^10.6.0",
3132
"naive-ui": "^2.28.0",
3233
"pinia": "^2.0.11",
3334
"plausible-tracker": "^0.3.5",

scripts/create-tool.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,24 @@ createToolFile(
3939
4040
<style lang="less" scoped>
4141
</style>
42-
`
42+
`,
4343
);
4444

4545
createToolFile(
4646
`index.ts`,
4747
`
4848
import { ArrowsShuffle } from '@vicons/tabler';
49-
import type { ITool } from './../Tool';
49+
import { defineTool } from '../tool';
5050
51-
export const tool: ITool = {
51+
export const tool = defineTool({
5252
name: '${toolNameTitleCase}',
5353
path: '/${toolName}',
5454
description: '',
5555
keywords: ['${toolName.split('-').join("', '")}'],
5656
component: () => import('./${toolName}.vue'),
5757
icon: ArrowsShuffle,
5858
};
59-
`
59+
`,
6060
);
6161

6262
createToolFile(`${toolName}.service.ts`, ``);
@@ -69,7 +69,7 @@ import { expect, describe, it } from 'vitest';
6969
// describe('${toolName}', () => {
7070
//
7171
// })
72-
`
72+
`,
7373
);
7474

7575
const toolsIndex = join(toolsDir, 'index.ts');

0 commit comments

Comments
 (0)