From c90524bac1196f43239e128752b6d32298bacc5a Mon Sep 17 00:00:00 2001 From: taoran Date: Fri, 28 Jun 2024 12:12:50 +0800 Subject: [PATCH 1/7] feat: add favicon --- public/favicon.ico | Bin 0 -> 3933 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 public/favicon.ico diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..5ccb93998a40305c548e939b606f77e73d801fd8 GIT binary patch literal 3933 zcmeH~`8O0^8^D=&WF#2|qZC6SOV;{E8D<62`vq?MoZVmda?%KGrz21fxr-VG{F z>EnUa9yS}k)?)xovClj9Z~_3atFlZk)^HVmD3^6e{-^P&l(-mcc%BlJ)Z8TG^Z2cS zSYlr1(U^O-sjitL*CYGS4}+ZUpYS}OAv31EjD;6qyxB|eO*V$TP+VYZsK$;C1EnP) zz!E~>@HGet7H}uJaT&~se$ipTPIm-Q3$QKFbgR37TN;MkNB4A+GeQu2hRd!aKxh)T zfgTAY`fyY5Cv%-Cm2nAp@p7rH43yO`iLD{*h$G@x6It$yq zOZ5-}xq7yvlIP!OH3WGM3~xI2w{IRc#{v)0QkX&hxoa%(rr=k2cZT$dhB{!@z!G?3 zh^0i?JCb^2r+Ahurr2CCy`ZoDW*t|NIm>VD>;nD-ar<d@aWfGA;REez#nr zmGO242sNi6$^@>t05GcPLU#S=Omm&XjbwpvwlVXbZAy_P-^=d@f3%$2(uj z(=ZG>2Cksh3GjrNAoh1H)i0~RI%-vD@KheSA-8^b7YVl^eIj45$^+41q#mzt6Gxq& z&PXX7?&_imU#1Zo36};_n3--X-8AR?Cc`jT#|xhc!Sxp(N!cZwlBxDPE=+C+8BKmm z5#^3Xv|SFzKJ1_$&LqKD3!B({wsomGLR%% zRjAdQLdRfPbleJq|KW=51LX_$Olh^Qv;i^HmeJ@OTNbUgLX3Jpe{e>?Y-f|!*xWPY zrGIH-tPb0SB^*J2EkC!qFNgg>pL0YgY4h9?`xrW|Hu2ro^lDEodD86ZVA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e*Y4uLwlcM!rC?>d4|Z-U^)?;I zNge73!|NA?U?5=ZN6DfDJws)7Z=xwso1NRYpj+yP9sJidCWtN%9yR;wKHt6E&BkN? z)|1y$(zw4`Dl;OuJ!=FEFo3mY?6$HzZN5jdb+X~@(Utiu{}1i|{K1dK zsWdAX=ippQ#HDI|>f{Vy#{klG$)@peTIbCMJUJGY8%mxHbT3u8u#=vIxH%S@mI})~ zuFV$q+2nt+t{Wpc;t&31Dc4+D*vyD2#b)Z~?4gO;tl5gkI+Ah`l{3iL7w?Db6~MGS)QxwXtK?3Y0*Iwn2%U+Il|T&RPm&9mr2bdE1`85?2@icyyd{|0V2DD?mU literal 0 HcmV?d00001 From ba71938f01b8ab8fded4cbf7558febd4e07d7505 Mon Sep 17 00:00:00 2001 From: taoran Date: Thu, 4 Jul 2024 10:38:48 +0800 Subject: [PATCH 2/7] fix --- index.html | 3 ++- src/router/index.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 37e52b5..885284a 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,8 @@ - + + diff --git a/src/router/index.ts b/src/router/index.ts index 18296c3..e1f8074 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -33,7 +33,7 @@ router.afterEach((to) => { if (detailTitle) { document.title = detailTitle + '-' + import.meta.env.VITE_APP_TITLE } else { - document.title = import.meta.env.VITE_APP_TITLE + document.title = import.meta.env.VITE_APP_TITLE + '-' + import.meta.env.VITE_APP_DESC } //设置meta From ae62d59fa39097e3f6eaa2d239bd1be36d82e91a Mon Sep 17 00:00:00 2001 From: taoran Date: Fri, 5 Jul 2024 18:29:18 +0800 Subject: [PATCH 3/7] docs --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 6f2e1ff..ee13186 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,5 @@ dist-ssr *.njsproj *.sln *.sw? + +public/tools_ranblogs_sitemap.txt \ No newline at end of file From 3604407dd7c7ba0d174253fe73ac9a9b1e0c5348 Mon Sep 17 00:00:00 2001 From: taoran Date: Tue, 9 Jul 2024 18:25:17 +0800 Subject: [PATCH 4/7] =?UTF-8?q?fix:=20=E8=B7=AF=E7=94=B1=E5=90=8D=E7=A7=B0?= =?UTF-8?q?seo=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- src/router/router.ts | 38 +++++++++++++++++++------------------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index ee13186..9098747 100644 --- a/.gitignore +++ b/.gitignore @@ -26,4 +26,4 @@ dist-ssr *.sln *.sw? -public/tools_ranblogs_sitemap.txt \ No newline at end of file +public/sitemap.txt \ No newline at end of file diff --git a/src/router/router.ts b/src/router/router.ts index 0cefa78..2482fae 100644 --- a/src/router/router.ts +++ b/src/router/router.ts @@ -22,7 +22,7 @@ export const constantRoute = [ } }, { - path: '/MD5', + path: '/md5', component: () => import('@/components/Tools/MD5/MD5.vue'), name: 'MD5', meta: { @@ -102,7 +102,7 @@ export const constantRoute = [ } }, { - path: '/random_password', + path: '/randompassword', component: () => import('@/components/Tools/RandomPassword/RandomPassword.vue'), name: 'random_password', meta: { @@ -212,7 +212,7 @@ export const constantRoute = [ } }, { - path: '/numberToChinese', + path: '/numbertochinese', component: () => import('@/components/Tools/NumberToChinese/NumberToChinese.vue'), name: 'numberToChinese', meta: { @@ -242,7 +242,7 @@ export const constantRoute = [ } }, { - path: '/textToImg', + path: '/texttoimg', component: () => import('@/components/Tools/TextToImg/TextToImg.vue'), name: 'textToImg', meta: { @@ -252,7 +252,7 @@ export const constantRoute = [ } }, { - path: '/webInfo', + path: '/webinfo', component: () => import('@/components/Tools/WebInfo/WebInfo.vue'), name: 'webInfo', meta: { @@ -282,7 +282,7 @@ export const constantRoute = [ } }, { - path: '/Pie', + path: '/pie', component: () => import('@/components/Tools/Chart/Pie/Pie.vue'), name: 'pie', meta: { @@ -292,7 +292,7 @@ export const constantRoute = [ } }, { - path: '/Scatter', + path: '/scatter', component: () => import('@/components/Tools/Chart/Scatter/Scatter.vue'), name: 'scatter', meta: { @@ -302,7 +302,7 @@ export const constantRoute = [ } }, { - path: '/Coin', + path: '/coin', component: () => import('@/components/Tools/Coin/Coin.vue'), name: 'coin', meta: { @@ -312,7 +312,7 @@ export const constantRoute = [ } }, { - path: '/Dice', + path: '/dice', component: () => import('@/components/Tools/Dice/Dice.vue'), name: 'dice', meta: { @@ -322,7 +322,7 @@ export const constantRoute = [ } }, { - path: '/TextRemoveDuplicate', + path: '/textremoveduplicate', component: () => import('@/components/Tools/TextRemoveDuplicate/TextRemoveDuplicate.vue'), name: 'textRemoveDuplicate', meta: { @@ -332,7 +332,7 @@ export const constantRoute = [ } }, { - path: '/ImgCut', + path: '/imgcut', component: () => import('@/components/Tools/ImgCut/ImgCut.vue'), name: 'imgCut', meta: { @@ -342,7 +342,7 @@ export const constantRoute = [ } }, { - path: '/HttpStatusCode', + path: '/httpstatuscode', component: () => import('@/components/Tools/HttpStatusCode/HttpStatusCode.vue'), name: 'HttpStatusCode', meta: { @@ -362,7 +362,7 @@ export const constantRoute = [ } }, { - path: '/HtmlEntity', + path: '/htmlentity', component: () => import('@/components/Tools/HtmlEntity/HtmlEntity.vue'), name: 'HtmlEntity', meta: { @@ -372,7 +372,7 @@ export const constantRoute = [ } }, { - path: '/ColorPicker', + path: '/colorpicker', component: () => import('@/components/Tools/ColorPicker/ColorPicker.vue'), name: 'ColorPicker', meta: { @@ -382,7 +382,7 @@ export const constantRoute = [ } }, { - path: '/asciiWordPic', + path: '/asciiwordpic', component: () => import('@/components/Tools/ASCIIWordPic/ASCIIWordPic.vue'), name: 'asciiWordPic', meta: { @@ -392,7 +392,7 @@ export const constantRoute = [ } }, { - path: '/JSForamt', + path: '/jsforamt', component: () => import('@/components/Tools/JSFormat/JSFormat.vue'), name: 'JSForamt', meta: { @@ -402,7 +402,7 @@ export const constantRoute = [ } }, { - path: '/HtmlFormat', + path: '/htmlformat', component: () => import('@/components/Tools/HtmlFormat/HtmlFormat.vue'), name: 'HtmlFormat', meta: { @@ -412,7 +412,7 @@ export const constantRoute = [ } }, { - path: '/CssFormat', + path: '/cssformat', component: () => import('@/components/Tools/CssFormat/CssFormat.vue'), name: 'CssFormat', meta: { @@ -422,7 +422,7 @@ export const constantRoute = [ } }, { - path: '/TextEdit', + path: '/textedit', component: () => import('@/components/Tools/TextEdit/TextEdit.vue'), name: 'TextEdit', meta: { From d984af3ebe6567fc57c65f2dac0cfe346138991e Mon Sep 17 00:00:00 2001 From: taoran Date: Sat, 27 Jul 2024 00:24:12 +0800 Subject: [PATCH 5/7] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=A4=9A=E6=AC=A1?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=90=8E=E6=97=A0=E7=BB=93=E6=9E=9C=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E4=BF=AE=E5=A4=8D=E9=AA=B0=E5=AD=90=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E9=AA=B0=E5=AD=90=E5=9B=BE=E7=89=87=E4=B8=A2=E5=A4=B1?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Layout/Header/Header.vue | 4 +-- src/components/Tools/Dice/DiceCore.vue | 20 +++++++-------- src/components/Tools/tools.ts | 33 ++++++++++++------------- 3 files changed, 28 insertions(+), 29 deletions(-) diff --git a/src/components/Layout/Header/Header.vue b/src/components/Layout/Header/Header.vue index c731f23..40b5056 100644 --- a/src/components/Layout/Header/Header.vue +++ b/src/components/Layout/Header/Header.vue @@ -42,7 +42,7 @@ const searchTools = async (query: string) => { loading.value = true if (query) { searchParam.title = query - await toolsStore.getTools(searchParam) + options.value = await toolsStore.getTools(searchParam) } else { options.value = [] } @@ -129,7 +129,7 @@ onMounted(() => { size="large" > { let tmpValue = item.title.toLowerCase() let tmpDesc = item.desc.toLowerCase() - console.log(tmpValue.indexOf(title.toLowerCase())) + // console.log(tmpValue.indexOf(title.toLowerCase())) return tmpValue.indexOf(title.toLowerCase()) !== -1 || tmpDesc.indexOf(title.toLowerCase()) !== -1; }); } From dd38597204e387be9ba9ea7fea1d0efa5c244e22 Mon Sep 17 00:00:00 2001 From: taoran Date: Wed, 21 Aug 2024 12:02:33 +0800 Subject: [PATCH 6/7] docs --- README.md | 4 ++-- src/components/Home/About.vue | 6 +++--- src/components/Layout/Floor/Floor.vue | 2 +- src/components/Layout/Header/Header.vue | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b803a53..01309f7 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ [![vue](https://img.shields.io/badge/any_text-3.3.10-origin?label=vue)](vue) [![tailwindcss](https://img.shields.io/badge/any_text-3.3.5-yellow?label=tailwindcss)](tailwindcss) [![elementplus](https://img.shields.io/badge/any_text-2.7-blue?label=element-plus)](elementplus) -[![license](https://img.shields.io/github/license/taoran1401/tools-web)](LICENSE) +[![license](https://img.shields.io/github/license/naroat/tools-web)](LICENSE) @@ -51,7 +51,7 @@ npm install pnpm -g 克隆 ``` -git clone --depth=1 https://github.com/taoran1401/tools-web.git +git clone --depth=1 https://github.com/naroat/tools-web.git ``` 安装 diff --git a/src/components/Home/About.vue b/src/components/Home/About.vue index 5ac6efe..238c082 100644 --- a/src/components/Home/About.vue +++ b/src/components/Home/About.vue @@ -6,16 +6,16 @@

关于 Tools-Web

- Tools-Web 是一款免费开源的轻量在线工具箱,包含开发、文本、媒体、图表、生活、查询等实用工具;如果对您有帮助,请将其分享给您的朋友,并且添加到收藏夹中!顺便再点个⭐️吧! + Tools-Web 是一款免费开源的轻量在线工具箱,包含开发、文本、媒体、图表、生活、查询等实用工具;如果对您有帮助,请将其分享给您的朋友,并且添加到收藏夹中!顺便再点个⭐️吧!

技术

- 主要基于Vite + Vue + ElementPlus + Typescript + TailwindCss开发,某些工具使用了第三方开源库,您可以在仓库的 package.json 文件中找到完整的列表。 + 主要基于Vite + Vue + ElementPlus + Typescript + TailwindCss开发,某些工具使用了第三方开源库,您可以在仓库的 package.json 文件中找到完整的列表。

发现了 Bug?

- 如果您发现了 Bug,或者某些功能未能按预期工作,请在 GitHub 仓库的 issues 中提交错误报告。 + 如果您发现了 Bug,或者某些功能未能按预期工作,请在 GitHub 仓库的 issues 中提交错误报告。

diff --git a/src/components/Layout/Floor/Floor.vue b/src/components/Layout/Floor/Floor.vue index 95f83a3..7f15877 100644 --- a/src/components/Layout/Floor/Floor.vue +++ b/src/components/Layout/Floor/Floor.vue @@ -5,7 +5,7 @@ const appDesc = ref(import.meta.env.VITE_APP_DESC || '') diff --git a/src/components/Layout/Header/Header.vue b/src/components/Layout/Header/Header.vue index 40b5056..31763f9 100644 --- a/src/components/Layout/Header/Header.vue +++ b/src/components/Layout/Header/Header.vue @@ -163,7 +163,7 @@ onMounted(() => { content="GitHub仓库" placement="bottom" > - + From 6d471fef84cc2628a4a0a769796adb4d3cb6f374 Mon Sep 17 00:00:00 2001 From: taoran Date: Wed, 21 Aug 2024 18:08:54 +0800 Subject: [PATCH 7/7] =?UTF-8?q?fix:=20=E6=90=9C=E7=B4=A2=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Layout/Header/Header.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Layout/Header/Header.vue b/src/components/Layout/Header/Header.vue index 31763f9..ca74171 100644 --- a/src/components/Layout/Header/Header.vue +++ b/src/components/Layout/Header/Header.vue @@ -40,11 +40,10 @@ const searchParam = reactive({ //搜索工具 const searchTools = async (query: string) => { loading.value = true + options.value = [] if (query) { searchParam.title = query options.value = await toolsStore.getTools(searchParam) - } else { - options.value = [] } loading.value = false }