mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-27 19:48:01 +00:00
Add isHardware flags (#210)
* Add isHardware flags * Ledger connection options
This commit is contained in:
@@ -6,6 +6,7 @@ import { Option } from '../types';
|
||||
|
||||
import { CRYPTOS } from './crypto';
|
||||
import { ENDPOINTS, ENDPOINT_DEFAULT } from './endpoints';
|
||||
import { LEDGER_CONN, LEDGER_CONN_DEFAULT } from './ledger';
|
||||
import { PREFIXES, PREFIX_DEFAULT } from './ss58';
|
||||
import { ICON_DEFAULT, ICON_DEFAULT_HOST, ICONS, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './ui';
|
||||
|
||||
@@ -43,6 +44,8 @@ export {
|
||||
ICONS,
|
||||
LANGUAGE_DEFAULT,
|
||||
LANGUAGES,
|
||||
LEDGER_CONN_DEFAULT,
|
||||
LEDGER_CONN,
|
||||
LOCKING_DEFAULT,
|
||||
LOCKING,
|
||||
PREFIX_DEFAULT,
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
// Copyright 2017-2019 @polkadot/ui-settings 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 { Option } from '../types';
|
||||
|
||||
export const LEDGER_CONN_DEFAULT = 'none';
|
||||
|
||||
export const LEDGER_CONN: Option[] = [
|
||||
{
|
||||
info: 'none',
|
||||
text: 'Do not attach Ledger devices',
|
||||
value: 'none'
|
||||
},
|
||||
{
|
||||
info: 'u2f',
|
||||
text: 'Attach Ledger via U2F',
|
||||
value: 'u2f'
|
||||
},
|
||||
{
|
||||
info: 'webusb',
|
||||
text: 'Attach Ledger via WebUSB',
|
||||
value: 'webusb'
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user