mirror of
https://github.com/koush/scrypted.git
synced 2026-02-14 02:42:06 +00:00
78 lines
2.0 KiB
TypeScript
78 lines
2.0 KiB
TypeScript
import VueRouter from "vue-router";
|
|
|
|
import Device from "./components/Device.vue";
|
|
import Devices from "./components/Devices.vue";
|
|
import AggregateComponent from "./components/AggregateComponent.vue";
|
|
import AutomationComponent from "./components/automation/AutomationComponent.vue";
|
|
import ScriptComponent from "./components/ScriptComponent.vue";
|
|
import PluginComponent from "./components/plugin/PluginComponent.vue";
|
|
import InstallPlugin from "./components/plugin/InstallPlugin.vue";
|
|
import LogComponent from "./components/builtin/LogComponent.vue";
|
|
import SettingsComponent from "./components/builtin/SettingsComponent.vue";
|
|
import PtyComponent from "./components/builtin/PtyComponent.vue";
|
|
import UsersComponent from "./components/UsersComponent.vue";
|
|
|
|
let router = new VueRouter({
|
|
routes: [
|
|
{
|
|
path: "/device",
|
|
component: Devices
|
|
},
|
|
{
|
|
path: "/",
|
|
redirect: '/component/plugin',
|
|
},
|
|
{
|
|
path: "/component/automation",
|
|
component: AutomationComponent
|
|
},
|
|
{
|
|
path: "/component/shell",
|
|
component: PtyComponent,
|
|
props: {
|
|
title: "Terminal",
|
|
nativeId: "terminalservice",
|
|
control: true,
|
|
}
|
|
},
|
|
{
|
|
path: "/component/plugin",
|
|
component: PluginComponent
|
|
},
|
|
{
|
|
path: "/component/script",
|
|
component: ScriptComponent
|
|
},
|
|
{
|
|
path: "/component/plugin/install",
|
|
component: InstallPlugin
|
|
},
|
|
{
|
|
path: "/component/plugin/install/*",
|
|
component: InstallPlugin
|
|
},
|
|
{
|
|
path: "/component/aggregate",
|
|
component: AggregateComponent
|
|
},
|
|
{
|
|
path: "/component/settings",
|
|
component: SettingsComponent
|
|
},
|
|
{
|
|
path: "/component/users",
|
|
component: UsersComponent
|
|
},
|
|
{
|
|
path: "/component/log/:path*",
|
|
component: LogComponent
|
|
},
|
|
{
|
|
path: "/device/:id",
|
|
component: Device
|
|
}
|
|
]
|
|
});
|
|
|
|
export default router;
|
|
|