-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(router): remove auto-save linting and format
- Loading branch information
Showing
1 changed file
with
66 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' } | ||
} | ||
] | ||
}) |