@elevenyellow.com/ark-switchain-plugin
Version:
Switchain plugin on Ark Desktop Wallet
40 lines (36 loc) • 660 B
JavaScript
module.exports = {
register() {
this.routes = [
{
path: "/switchain",
name: "switchain",
component: "MainPage"
},
{
path: "/stepper",
name: "stepper",
component: "StepperPage"
}
];
this.menuItems = [
{
routeName: "switchain",
title: "Switchain"
}
];
},
getComponentPaths() {
return this.routes.reduce((all, route) => {
return {
...all,
[route.component]: `pages/${route.component}.js`
};
}, {});
},
getRoutes() {
return this.routes;
},
getMenuItems() {
return this.menuItems;
}
};