MyCrypto/common/config/navigation.ts
William O'Beirne aa0f9cd455 Electron Redesign (#1505)
* Frameless Electron. Separate electron template. Generecize navigation link. Move nav info to config.

* Add controls for language and node, network status to sidebar.

* Sticky headers

* Move custom node modal into standalone component. Render modals via portal. Add custom node modal opening to electron node list.

* Conditional styling based on environment.

* Fix active node highlight

* Add frame back in, draggable only on OSX, fix sidebar scroll.

* Remove panel content after delay.

* Adjust window sizes

* Style desktop help nav icon

* Remove unused var

* Move style to param

* Remove unused

* Update snapshot

* Fix oversized stretching, zindex fighting

* Make electron work better with various screen sizes

* Remove not-working https option for electron

* Add beta banner

* Fix web footer

* Address changes
2018-04-16 18:30:58 -05:00

54 lines
853 B
TypeScript

import { knowledgeBaseURL } from './data';
export interface NavigationLink {
name: string;
to: string;
external?: boolean;
disabled?: boolean;
}
export const navigationLinks: NavigationLink[] = [
{
name: 'NAV_VIEW',
to: '/account'
},
{
name: 'NAV_GENERATEWALLET',
to: '/generate'
},
{
name: 'NAV_SWAP',
to: '/swap'
},
{
name: 'NAV_CONTRACTS',
to: '/contracts'
},
{
name: 'NAV_ENS',
to: '/ens'
},
{
name: 'NAV_SIGN',
to: '/sign-and-verify-message'
},
{
name: 'NAV_TXSTATUS',
to: '/tx-status'
},
{
name: 'NAV_BROADCAST',
to: '/pushTx'
},
{
name: 'NAV_SUPPORT_US',
to: '/support-us',
disabled: !process.env.BUILD_ELECTRON
},
{
name: 'NAV_HELP',
to: knowledgeBaseURL,
external: true
}
].filter(link => !link.disabled);