Skip to content

Commit

Permalink
fix(router): remove auto-save linting and format
Browse files Browse the repository at this point in the history
  • Loading branch information
akanoce committed Mar 12, 2024
1 parent 09c68cd commit fbe8341
Showing 1 changed file with 66 additions and 71 deletions.
137 changes: 66 additions & 71 deletions src/router.ts
Original file line number Diff line number Diff line change
@@ -1,78 +1,73 @@
import Vue from "vue";
import Router from "vue-router";
import Frame from "./views/Frame.vue";
import Home from "./views/Home.vue";
import Account from "./views/Account.vue";
import Block from "./views/Block.vue";
import Tx from "./views/Tx.vue";
import Search from "./views/Search.vue";
import Vue from 'vue'
import Router from 'vue-router'
import Frame from './views/Frame.vue'
import Home from './views/Home.vue'
import Account from './views/Account.vue'
import Block from './views/Block.vue'
import Tx from './views/Tx.vue'
import Search from './views/Search.vue'

import AccountSummary from "./views/AccountSummary.vue";
import AccountEvents from "./views/AccountEvents.vue";
import AccountTransfers from "./views/AccountTransfers.vue";
import AccountSummary from './views/AccountSummary.vue'
import AccountEvents from './views/AccountEvents.vue'
import AccountTransfers from './views/AccountTransfers.vue'

Vue.use(Router);
Vue.use(Router)

export default new Router({
mode: "hash",
routes: [
{
path: "/:net(main|test|solo)?",
children: [
mode: 'hash',
routes: [
{
path: "",
name: "home",
component: Home,
path: '/:net(main|test|solo)?',
children: [
{
path: '',
name: 'home',
component: Home,
},
{
path: 'blocks/:id',
name: 'block',
component: Block
},
{
path: 'txs/:id',
name: 'tx',
component: Tx
},
{
path: 'accounts/:address',
component: Account,
name: 'account',
redirect: { name: 'summary' },
children: [{
name: 'summary',
path: '',
component: AccountSummary
}, {
name: 'transfers',
path: 'transfers',
component: AccountTransfers
}, {
name: 'events',
path: 'events',
component: AccountEvents
}, {
name: 'deposit',
path: 'deposit',
component: AccountSummary,
}]
},
{
path: 'search',
name: 'search',
component: Search
}
],
component: Frame
},
{
path: "blocks/:id",
name: "block",
component: Block,
},
{
path: "txs/:id",
name: "tx",
component: Tx,
},
{
path: "accounts/:address",
component: Account,
name: "account",
redirect: { name: "summary" },
children: [
{
name: "summary",
path: "",
component: AccountSummary,
},
{
name: "transfers",
path: "transfers",
component: AccountTransfers,
},
{
name: "events",
path: "events",
component: AccountEvents,
},
{
name: "deposit",
path: "deposit",
component: AccountSummary,
},
],
},
{
path: "search",
name: "search",
component: Search,
},
],
component: Frame,
},
{
path: "*",
redirect: { name: "home" },
},
],
});
path: '*',
redirect: { name: 'home' }
}
]
})

0 comments on commit fbe8341

Please sign in to comment.