Files
tools-web/src/router/router.ts
T
2026-03-02 15:52:59 +08:00

663 lines
22 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//对外暴露配置路由(常量路由)
export const constantRoute = [
//首页
{
path: '/',
component: () => import('@/components/Home/Home.vue'),
name: 'home',
meta: {
keywords: 'tools-web,在线工具,开发人员工具,时间戳转换,加密,解密,md5,进制转换,二维码,正则表达式,json格式化,照片处理,字数统计',
description: 'tools-web,在线工具,在线工具大全,开发人员工具,日常生活工具,办公助手,时间戳转换,加密,解密,md5,进制转换,二维码,正则表达式,json格式化,照片处理,字数统计',
}
},
//工具
{
path: '/timetran',
component: () => import('@/components/Tools/TimeTran/TimeTran.vue'),
name: 'timetran',
meta: {
title: "时间戳转换",
keywords: '时间,日期转换时间戳,Unix时间戳',
description: 'Unix时间戳转换可以把Unix时间转成北京时间。',
}
},
{
path: '/md5',
component: () => import('@/components/Tools/MD5/MD5.vue'),
name: 'MD5',
meta: {
title: "MD5在线加密",
keywords: 'md5加密,md5在线加密,md5',
description: '在线md5加密,一键生成md5加密字符串,可生成16位或32位md5加密字符串,md5双重加密',
}
},
{
path: '/json',
component: () => import('@/components/Tools/JsonTran/JsonTran.vue'),
name: 'json',
meta: {
title: "Json在线转换",
keywords: 'json编辑器,json格式化,json压缩,json转义,json去转义',
description: '提供实时编辑和预览JSON 数据,语法高亮、校验、格式化、转义,去转义、压缩等功能,可以提高阅读修改的效率和准确性',
}
},
{
path: '/reg',
component: () => import('@/components/Tools/RegTest/RegTest.vue'),
name: 'reg',
meta: {
title: "正则表达式测试",
keywords: '正则表达式测试工具,常用正则表达式,在线正则表达式',
description: '正则表达式测试工具,常用正则表达式,在线正则表达式',
}
},
{
path: '/unicode',
component: () => import('@/components/Tools/Unicode/Unicode.vue'),
name: 'unicode',
meta: {
title: "Unicode转中文",
keywords: '在线Unicode编码转换,中文转UnicodeUnicode转中文',
description: '在线Unicode编码转换,中文转Unicode,Unicode转中文,在文本框里输入要转换的内容,然后点击要转换的类型按钮,转换完成后即可看到对应的内容。..',
}
},
{
path: '/wordcount',
component: () => import('@/components/Tools/WordCount/WordCount.vue'),
name: 'wordcount',
meta: {
title: "在线字数统计",
keywords: '在线字数计算器,计算字数,在线字数统计器,字数计数器',
description: '在线字数计数器,主要是方便计算字数,以控制文字数量的小工具(小说作者、论文、文案文档、文字编辑必备工具)。',
}
},
{
path: '/ip',
component: () => import('@/components/Tools/Ip/Ip.vue'),
name: 'ip',
meta: {
title: "IP查询",
keywords: 'ip,ip查询,ip地址查询,ip138,查ip,我的ip,公网ip,ip归属地查询',
description: '公网ip地址归属地查询',
}
},
{
path: '/scaletran',
component: () => import('@/components/Tools/ScaleTran/ScaleTran.vue'),
name: 'scaletran',
meta: {
title: "常用进制转换",
keywords: '进制转换,进制转换工具,10进制转2进制,2进制转10进制,10进制转62进制,62进制转10进制',
description: '常用进制转换工具,支持32进制以上进制转换',
}
},
{
path: '/signimage',
component: () => import('@/components/Tools/SignImage/SignImage.vue'),
name: 'signimage',
meta: {
title: "在线编辑图片",
keywords: '在线图片裁剪,图片标注,图片滤镜,图片画笔、图片旋转、图片文字,图片美,图片尺寸调整化',
description: '在线图片裁剪,图片标注,图片滤镜,图片画笔、图片旋转、图片文字,图片尺寸调整等操作',
}
},
{
path: '/randompassword',
component: () => import('@/components/Tools/RandomPassword/RandomPassword.vue'),
name: 'random_password',
meta: {
title: "随机密码生成",
keywords: '在线生成随机密码,批量生成随机密码,密码生成',
description: '在线随机密码生成',
}
},
{
path: '/urlencode',
component: () => import('@/components/Tools/UrlEncode/UrlEncode.vue'),
name: 'urlencode',
meta: {
title: "URL编码/解码",
keywords: 'url编码,url解码,url加密,url解密',
description: '在线url编码,在线url解码工具',
}
},
{
path: '/ascii',
component: () => import('@/components/Tools/ASCII/ASCII.vue'),
name: 'ascii',
meta: {
title: "ASCII码表",
keywords: 'asciiascii码表,ascii对照表,ascii控制字符,ascii打印字符,ascii扩展码',
description: 'ascii全面对照表,包含控制字符,打印字符,扩展码',
}
},
{
path: '/uuid',
component: () => import('@/components/Tools/UUID/UUID.vue'),
name: 'uuid',
meta: {
title: "UUID生成器",
keywords: 'UUID生成器',
description: 'uuid生成器,批量uuid生成',
}
},
{
path: '/barrage',
component: () => import('@/components/Tools/Barrage/Barrage.vue'),
name: 'barrage',
meta: {
title: "手持弹幕",
keywords: '手持弹幕,弹幕工具',
description: '手持弹幕是一种新型的互动沟通工具,可以方便地为各种户外活动、演出嘉年华等活动增加趣味性和互动性。手持弹幕具有轻便、易携带、易操作等优点,可以让每个参与者都变成活动的一部分。同时,手持弹幕还可以通过预先编写的文本、表情等形式,表达参与者的情感和想法,实现沟通互动。在社交媒体时代,手持弹幕的使用也带来了更广泛的社交效应,增加了活动的互动性和传播度。无论是举办方还是参与者,手持弹幕都是一个非常有价值的互动工具。',
}
},
{
path: '/unit',
component: () => import('@/components/Tools/Unit/Unit.vue'),
name: 'unit',
meta: {
title: "单位转换",
keywords: '在线单位换算,长度单位换算,面积单位换算,时间单位换算,重量单位换算,温度单位换算,压力单位换算,热量单位换算,功率单位换算。',
description: '在线单位换算,长度单位换算,面积单位换算,时间单位换算,重量单位换算,温度单位换算,压力单位换算,热量单位换算,功率单位换算。',
}
},
{
path: '/qrcode',
component: () => import('@/components/Tools/Qrcode/Qrcode.vue'),
name: 'qrcode',
meta: {
title: "二维码生成",
keywords: '二维码,qrcode,二维码制作,二维码生成,微信二维码',
description: '在线生成二维码,logo二维码',
}
},
{
path: '/decision',
component: () => import('@/components/Tools/Decision/Decision.vue'),
name: 'decision',
meta: {
title: "帮我决定",
keywords: '选择困难,难以决定,今天吃什么,现在做什么,自定义选项都给你安排的明明白白',
description: '选择困难症,自定义选择内容',
}
},
{
path: '/morse',
component: () => import('@/components/Tools/Morse/Morse.vue'),
name: 'morse',
meta: {
title: "摩斯电码",
keywords: 'morse电码,摩斯电码',
description: '摩斯电码编码解码',
}
},
{
path: '/random',
component: () => import('@/components/Tools/Random/Random.vue'),
name: 'random',
meta: {
title: "生成随机数",
keywords: '随机数生成,随机数',
description: '可定制范围内进行随机数字,可用于抽奖、点名等用途',
}
},
{
path: '/numbertochinese',
component: () => import('@/components/Tools/NumberToChinese/NumberToChinese.vue'),
name: 'numberToChinese',
meta: {
title: "数字转金额大写",
keywords: '数字转中文,数字转大写,中文转数字,大写转数字,数字中文互转',
description: '在线数字一键转换成人民币大写,中文大写金额数字应用正楷或行书填写',
}
},
{
path: '/diff',
component: () => import('@/components/Tools/Diff/Diff.vue'),
name: 'diff',
meta: {
title: "文本对比",
keywords: '中文比对,代码比对,代码对比,文本比对,英文比对',
description: '文本差异比对支持中文、英文、代码比对',
}
},
{
path: '/markdown',
component: () => import('@/components/Tools/Markdown/Markdown.vue'),
name: 'markdown',
meta: {
title: "markdown编辑器",
keywords: '在线创建或编辑markdown, 实时预览,导出markdown',
description: '在线markdown编辑器',
}
},
{
path: '/texttoimg',
component: () => import('@/components/Tools/TextToImg/TextToImg.vue'),
name: 'textToImg',
meta: {
title: "文本转图片",
keywords: '文本生成图片,文本生成长图,推广长图',
description: '把文本转换成图片,生成长图,具有超多个性文字排版',
}
},
{
path: '/webinfo',
component: () => import('@/components/Tools/WebInfo/WebInfo.vue'),
name: 'webInfo',
meta: {
title: "网站favicon获取",
keywords: '获取网站logo,获取网站icon,获取网站favicon,获取网站标题,获取网站关键词,获取网站描述',
description: '获取网站logo、icon、favicon、标题、关键词、描述等信息',
}
},
{
path: '/bar',
component: () => import('@/components/Tools/Chart/Bar/Bar.vue'),
name: 'bar',
meta: {
title: "柱状图",
keywords: '柱状图',
description: '在线制作柱状图,像做表格一样制作可视化图表,支持导出静态或动态图表',
}
},
{
path: '/line',
component: () => import('@/components/Tools/Chart/Line/Line.vue'),
name: 'line',
meta: {
title: "折线图",
keywords: '折线图',
description: '在线制作折线图,像做表格一样制作可视化图表,支持导出静态或动态图表',
}
},
{
path: '/pie',
component: () => import('@/components/Tools/Chart/Pie/Pie.vue'),
name: 'pie',
meta: {
title: "饼图",
keywords: '饼图',
description: '在线制作饼图,像做表格一样制作可视化图表,支持导出静态或动态图表',
}
},
{
path: '/scatter',
component: () => import('@/components/Tools/Chart/Scatter/Scatter.vue'),
name: 'scatter',
meta: {
title: "散点图",
keywords: '散点图',
description: '在线制作散点图,像做表格一样制作可视化图表,支持导出静态或动态图表',
}
},
{
path: '/coin',
component: () => import('@/components/Tools/Coin/Coin.vue'),
name: 'coin',
meta: {
title: "抛硬币",
keywords: '抛硬币,硬币',
description: '在线抛硬币,选择困难那么交给硬币来帮你选择吧',
}
},
{
path: '/dice',
component: () => import('@/components/Tools/Dice/Dice.vue'),
name: 'dice',
meta: {
title: "投骰子",
keywords: '投骰子,骰子,自定义骰子',
description: '在线投骰子,可自定义骰子数量,简单好用的骰子工具',
}
},
{
path: '/textremoveduplicate',
component: () => import('@/components/Tools/TextRemoveDuplicate/TextRemoveDuplicate.vue'),
name: 'textRemoveDuplicate',
meta: {
title: "文本去重",
keywords: '文本去重,文本排重,文本去除重复',
description: '可以删除或去除文本或字符串中的重复行',
}
},
{
path: '/imgcut',
component: () => import('@/components/Tools/ImgCut/ImgCut.vue'),
name: 'imgCut',
meta: {
title: "图片切割",
keywords: '图片分割,图片切割,四宫格,九宫格,十六宫格',
description: '将图片分割成四宫格、九宫格、十六宫格,支持自定义行与列',
}
},
{
path: '/httpstatuscode',
component: () => import('@/components/Tools/HttpStatusCode/HttpStatusCode.vue'),
name: 'HttpStatusCode',
meta: {
title: "HTTP状态码",
keywords: 'http状态码',
description: '所有http状态对应的名称和含义解释',
}
},
{
path: '/jwt',
component: () => import('@/components/Tools/JWT/JWT.vue'),
name: 'jwt',
meta: {
title: "JWT解析",
keywords: 'jwt解析,jwt解码,JSON Web Token解析',
description: '解析和解码JSON Web Tokenjwt',
}
},
{
path: '/htmlentity',
component: () => import('@/components/Tools/HtmlEntity/HtmlEntity.vue'),
name: 'HtmlEntity',
meta: {
title: "html实体转义",
keywords: 'html实体转义',
description: 'html实体转义,实体转义成html',
}
},
{
path: '/colorpicker',
component: () => import('@/components/Tools/ColorPicker/ColorPicker.vue'),
name: 'ColorPicker',
meta: {
title: "Color选择器",
keywords: '颜色选择器,Color选择器',
description: '颜色选择器、在各种颜色空间如十六进制、rgb、hsl、css等等之间转换颜色',
}
},
{
path: '/asciiwordpic',
component: () => import('@/components/Tools/ASCIIWordPic/ASCIIWordPic.vue'),
name: 'asciiWordPic',
meta: {
title: "ASCII字形生成器",
keywords: 'ASCII画,字形画,字形生成器',
description: '在线生成字形ASCII画',
}
},
{
path: '/jsforamt',
component: () => import('@/components/Tools/JSFormat/JSFormat.vue'),
name: 'JSForamt',
meta: {
title: "js代码格式化/压缩",
keywords: 'js代码格式化,js格式化,js压缩,javascript格式化',
description: 'JS格式化/压缩工具,提供在线JS格式化、JS压缩、JS混淆、JS解密',
}
},
{
path: '/htmlformat',
component: () => import('@/components/Tools/HtmlFormat/HtmlFormat.vue'),
name: 'HtmlFormat',
meta: {
title: "html代码格式化",
keywords: 'html格式化,xml格式化',
description: '提供在线html、xml格式化',
}
},
{
path: '/cssformat',
component: () => import('@/components/Tools/CssFormat/CssFormat.vue'),
name: 'CssFormat',
meta: {
title: "css代码格式化/压缩",
keywords: 'css格式化,css压缩',
description: '提供在线css格式化,在线css压缩工具',
}
},
{
path: '/textedit',
component: () => import('@/components/Tools/TextEdit/TextEdit.vue'),
name: 'TextEdit',
meta: {
title: "在线文本编辑/HTML获取",
keywords: '文本编辑,富文本预览,在线编辑文本,文本编辑获取html',
description: '在线富文本编辑, html实时预览,在线编辑文本,文本编辑获取html',
}
},
{
path: '/base64',
component: () => import('@/components/Tools/Base64/Base64.vue'),
name: 'Base64',
meta: {
title: "Base64加解密",
keywords: 'Base64,base64加密,base64解密,base64编码,base64解码',
description: '在线Base64加解密工具,支持文本的Base64编码和解码',
}
},
{
path: '/baseconverter',
component: () => import('@/components/Tools/BaseConverter/BaseConverter.vue'),
name: 'baseconverter',
meta: {
title: "进制转换计算器",
keywords: '进制转换,二进制,八进制,十进制,十六进制,进制计算器',
description: '在线进制转换计算器,支持二进制、八进制、十进制、十六进制等多种进制之间的相互转换',
}
},
{
path: '/storageconverter',
component: () => import('@/components/Tools/StorageConverter/StorageConverter.vue'),
name: 'storageconverter',
meta: {
title: "数据存储单位换算",
keywords: '存储单位换算,字节,KB,MB,GB,TB,PB,EB',
description: '在线数据存储单位换算工具,支持字节、KB、MB、GB、TB、PB、EB等存储单位之间的相互转换',
}
},
{
path: '/hashcalculator',
component: () => import('@/components/Tools/HashCalculator/HashCalculator.vue'),
name: 'hashcalculator',
meta: {
title: "Hash计算器",
keywords: 'Hash计算器,MD5,SHA-1,SHA-256,SHA-384,SHA-512',
description: '在线Hash计算器,支持MD5、SHA-1、SHA-256、SHA-384、SHA-512等多种哈希算法',
}
},
{
path: '/xmlformat',
component: () => import('@/components/Tools/XmlFormat/XmlFormat.vue'),
name: 'xmlformat',
meta: {
title: "XML格式化",
keywords: 'XML格式化,XML压缩,XML美化',
description: '在线XML格式化工具,用于美化和压缩XML代码,支持自定义缩进大小',
}
},
{
path: '/sqlformat',
component: () => import('@/components/Tools/SqlFormat/SqlFormat.vue'),
name: 'sqlformat',
meta: {
title: "SQL格式化",
keywords: 'SQL格式化,SQL压缩,SQL美化',
description: '在线SQL格式化工具,用于美化和压缩SQL代码,支持自定义缩进大小',
}
},
{
path: '/textreplace',
component: () => import('@/components/Tools/TextReplace/TextReplace.vue'),
name: 'textreplace',
meta: {
title: "文本替换",
keywords: '文本替换,正则表达式替换,批量替换',
description: '在线文本替换工具,支持普通文本和正则表达式替换,可用于批量修改文本内容',
}
},
{
path: '/textworkflow',
component: () => import('@/components/Tools/TextWorkflow/TextWorkflow.vue'),
name: 'textworkflow',
meta: {
title: "文本处理工作流",
keywords: '文本处理,工作流,批量处理',
description: '在线文本处理工作流工具,允许用户定义一系列文本处理步骤并按顺序执行',
}
},
{
path: '/emoji',
component: () => import('@/components/Tools/Emoji/Emoji.vue'),
name: 'emoji',
meta: {
title: "Emoji表情大全",
keywords: 'Emoji,表情符号,表情大全',
description: '在线Emoji表情大全,提供各种分类的Emoji表情,点击即可复制到剪贴板',
}
},
{
path: '/wordfrequency',
component: () => import('@/components/Tools/WordFrequency/WordFrequency.vue'),
name: 'wordfrequency',
meta: {
title: "词频统计",
keywords: '词频统计,文本分析,关键词提取',
description: '在线词频统计工具,用于统计文本中单词出现的频率,可用于文本分析、关键词提取等场景',
}
},
{
path: '/wordcloud',
component: () => import('@/components/Tools/WordCloud/WordCloud.vue'),
name: 'wordcloud',
meta: {
title: "词云生成",
keywords: '词云,文本可视化,词频分析',
description: '根据输入文本生成词云图,支持自定义词云形状和颜色',
}
},
{
path: '/lottery',
component: () => import('@/components/Tools/Lottery/Lottery.vue'),
name: 'lottery',
meta: {
title: "抽签工具",
keywords: '抽签,随机选择,抽奖',
description: '输入多个选项,随机抽取一个或多个结果',
}
},
{
path: '/rockpaperscissors',
component: () => import('@/components/Tools/RockPaperScissors/RockPaperScissors.vue'),
name: 'rockpaperscissors',
meta: {
title: "剪刀石头布",
keywords: '剪刀石头布,游戏,对战',
description: '与电脑对战的剪刀石头布游戏',
}
},
{
path: '/wheel',
component: () => import('@/components/Tools/Wheel/Wheel.vue'),
name: 'wheel',
meta: {
title: "转盘工具",
keywords: '转盘,随机选择,抽奖',
description: '自定义选项,旋转转盘随机选择结果',
}
},
{
path: '/imagecolorpicker',
component: () => import('@/components/Tools/ImageColorPicker/ImageColorPicker.vue'),
name: 'imagecolorpicker',
meta: {
title: "传图取色",
keywords: '图片取色,颜色提取,色彩分析',
description: '上传图片并点击图片获取颜色值',
}
},
{
path: '/pomodoro',
component: () => import('@/components/Tools/Pomodoro/Pomodoro.vue'),
name: 'pomodoro',
meta: {
title: "番茄时钟",
keywords: '番茄工作法,时间管理,专注',
description: '专注工作和休息的时间管理工具',
}
},
{
path: '/calculator',
component: () => import('@/components/Tools/Calculator/Calculator.vue'),
name: 'calculator',
meta: {
title: "简易计算器",
keywords: '计算器,加减乘除,数学计算',
description: '基本的加减乘除计算工具',
}
},
{
path: '/reactiontest',
component: () => import('@/components/Tools/ReactionTest/ReactionTest.vue'),
name: 'reactiontest',
meta: {
title: "反应速度测试",
keywords: '反应速度,测试,游戏',
description: '测试你的反应速度,点击变色的方块',
}
},
{
path: '/m3u8player',
component: () => import('@/components/Tools/M3U8Player/M3U8Player.vue'),
name: 'm3u8player',
meta: {
title: "m3u8在线播放",
keywords: 'm3u8,视频播放,流媒体',
description: '播放m3u8格式的视频流',
}
},
{
path: '/imagewatermark',
component: () => import('@/components/Tools/ImageWatermark/ImageWatermark.vue'),
name: 'imagewatermark',
meta: {
title: "图片水印添加",
keywords: '图片水印,水印添加,图片处理',
description: '上传图片并添加文字水印',
}
},
{
path: '/colorpalette',
component: () => import('@/components/Tools/ColorPalette/ColorPalette.vue'),
name: 'colorpalette',
meta: {
title: "色板工具",
keywords: '色板,颜色,渐变色,Material Design',
description: '提供各种颜色的色板,点击颜色可复制颜色值',
}
},
// 关于
{
path: '/about',
component: () => import('@/components/Home/About.vue'),
name: 'about',
meta: {
title: "关于",
keywords: '关于ranblogs,关于工具站',
description: '',
}
},
//其他路由
{
path: '/404',
component: () => import('@/components/404/404.vue'),
name: '404',
meta: {
title: "404"
}
},
{
//重定向
path: '/:pathMatch(.*)*',
redirect: '/404',
name: 'Any',
},
]