新建命令正则匹配功能改为直接导入命令

This commit is contained in:
fofolee
2024-05-07 13:07:08 +08:00
parent 897d597885
commit 545d4b3b31
5 changed files with 125 additions and 125 deletions

View File

@@ -1,63 +1,60 @@
const routes = [{
path: '/configuration',
name: 'configuration',
component: () =>
import ('pages/ConfigurationPage.vue')
},
{
path: '/code',
name: 'code',
component: () =>
import ('pages/RunCodePage.vue')
},
{
path: '/newcommand',
name: 'newcommand',
component: () =>
import ('pages/ConfigurationPage.vue')
},
{
path: '/:type(default|files|img|key|regex|over|window|professional)_:uid(\\w+)',
name: 'command',
component: () =>
import ('pages/CommandPage.vue')
},
{
path: '/panel_:tags(\\w+)',
name: 'panel',
component: () =>
import ('pages/ConfigurationPage.vue')
},
{
path: '/needupdate',
name: 'needupdate',
props: true,
component: () =>
import ('pages/updateWarningPage.vue')
},
{
path: '/',
name: 'loading',
component: () =>
import ('pages/LoadingPage.vue')
}, {
path: '/share',
name: 'share',
component: () =>
import ('pages/ShareCenterPage.vue')
},
{
path: '/feature_:featuretype(\\w+)',
name: 'feature',
component: () =>
import ('pages/FeaturesPage.vue')
},
{
path: '/server',
name: 'server',
component: () =>
import ('pages/ServerPage.vue')
}
]
const routes = [
{
path: "/configuration",
name: "configuration",
component: () => import("pages/ConfigurationPage.vue"),
},
{
path: "/code",
name: "code",
component: () => import("pages/RunCodePage.vue"),
},
{
path: "/newcommand",
name: "newcommand",
component: () => import("pages/ConfigurationPage.vue"),
},
{
path: "/importcommand",
name: "importcommand",
component: () => import("pages/ConfigurationPage.vue"),
},
{
path: "/:type(default|files|img|key|regex|over|window|professional)_:uid(\\w+)",
name: "command",
component: () => import("pages/CommandPage.vue"),
},
{
path: "/panel_:tags(\\w+)",
name: "panel",
component: () => import("pages/ConfigurationPage.vue"),
},
{
path: "/needupdate",
name: "needupdate",
props: true,
component: () => import("pages/updateWarningPage.vue"),
},
{
path: "/",
name: "loading",
component: () => import("pages/LoadingPage.vue"),
},
{
path: "/share",
name: "share",
component: () => import("pages/ShareCenterPage.vue"),
},
{
path: "/feature_:featuretype(\\w+)",
name: "feature",
component: () => import("pages/FeaturesPage.vue"),
},
{
path: "/server",
name: "server",
component: () => import("pages/ServerPage.vue"),
},
];
export default routes
export default routes;