-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
index.ts
80 lines (74 loc) · 1.76 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Copyright 2017-2019 @polkadot/apps-routing authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { Routing, Routes } from './types';
import appSettings from '@polkadot/ui-settings';
import template from './123code';
import accounts from './accounts';
import addressbook from './addressbook';
import claims from './claims';
import contracts from './contracts';
import council from './council';
// import dashboard from './dashboard';
import democracy from './democracy';
import explorer from './explorer';
import extrinsics from './extrinsics';
import genericAsset from './generic-asset';
import js from './js';
import parachains from './parachains';
import settings from './settings';
import staking from './staking';
import storage from './storage';
import sudo from './sudo';
import techcomm from './techcomm';
import toolbox from './toolbox';
import transfer from './transfer';
import treasury from './treasury';
const routes: Routes = appSettings.uiMode === 'light'
? ([] as Routes).concat(
// dashboard,
explorer,
accounts,
addressbook,
claims,
transfer,
genericAsset,
null,
staking,
democracy,
council,
// TODO Not sure about the inclusion of treasury & parachains here
null,
settings
)
: ([] as Routes).concat(
// dashboard,
explorer,
accounts,
addressbook,
claims,
transfer,
genericAsset,
null,
staking,
democracy,
council,
treasury,
techcomm,
parachains,
null,
contracts,
storage,
extrinsics,
sudo,
null,
settings,
toolbox,
js,
template
);
const setup: Routing = {
default: 'explorer',
routes
};
export default setup;