mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-05-29 22:51:04 +00:00
Bump dev (w/ eslint adjustments) (#750)
This commit is contained in:
@@ -6,8 +6,6 @@ import { objectSpread } from '@polkadot/util';
|
||||
|
||||
type ChainDef = string[];
|
||||
|
||||
const chains: Record <string, ChainDef> = selectableNetworks
|
||||
export const chains: Record <string, ChainDef> = /*#__PURE__*/ selectableNetworks
|
||||
.filter((n) => n.genesisHash.length)
|
||||
.reduce((chains, { genesisHash, network }) => objectSpread(chains, { [network]: genesisHash }), {});
|
||||
|
||||
export { chains };
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
|
||||
import type { Option } from '../types.js';
|
||||
|
||||
export const ENDPOINTS: Option[] = [{
|
||||
info: 'local',
|
||||
text: 'Local Node (Own, 127.0.0.1:9944)',
|
||||
value: 'ws://127.0.0.1:9944/'
|
||||
}];
|
||||
export const ENDPOINTS: Option[] = [
|
||||
{
|
||||
info: 'local',
|
||||
text: 'Local Node (Own, 127.0.0.1:9944)',
|
||||
value: 'ws://127.0.0.1:9944/'
|
||||
}
|
||||
];
|
||||
|
||||
export const ENDPOINT_DEFAULT = ENDPOINTS[0];
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
|
||||
import type { Option } from '../types.js';
|
||||
|
||||
import { CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER } from './crypto.js';
|
||||
import { ENDPOINT_DEFAULT, ENDPOINTS } from './endpoints.js';
|
||||
import { LEDGER_CONN, LEDGER_CONN_DEFAULT } from './ledger.js';
|
||||
import { PREFIX_DEFAULT, PREFIXES } from './ss58.js';
|
||||
import { ICON_DEFAULT, ICON_DEFAULT_HOST, ICONS, NOTIFICATION_DEFAULT, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './ui.js';
|
||||
export { CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER } from './crypto.js';
|
||||
export { ENDPOINT_DEFAULT, ENDPOINTS } from './endpoints.js';
|
||||
export { LEDGER_CONN, LEDGER_CONN_DEFAULT } from './ledger.js';
|
||||
export { PREFIX_DEFAULT, PREFIXES } from './ss58.js';
|
||||
export { ICON_DEFAULT, ICON_DEFAULT_HOST, ICONS, NOTIFICATION_DEFAULT, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './ui.js';
|
||||
|
||||
const CAMERA_DEFAULT = 'off';
|
||||
export const CAMERA_DEFAULT = 'off';
|
||||
|
||||
const CAMERA: Option[] = [
|
||||
export const CAMERA: Option[] = [
|
||||
{
|
||||
info: 'on',
|
||||
text: 'Allow camera access',
|
||||
@@ -24,11 +24,11 @@ const CAMERA: Option[] = [
|
||||
}
|
||||
];
|
||||
|
||||
const LANGUAGE_DEFAULT = 'default';
|
||||
export const LANGUAGE_DEFAULT = 'default';
|
||||
|
||||
const LOCKING_DEFAULT = 'session';
|
||||
export const LOCKING_DEFAULT = 'session';
|
||||
|
||||
const LOCKING: Option[] = [
|
||||
export const LOCKING: Option[] = [
|
||||
{
|
||||
info: 'session',
|
||||
text: 'Once per session',
|
||||
@@ -41,9 +41,9 @@ const LOCKING: Option[] = [
|
||||
}
|
||||
];
|
||||
|
||||
const METADATA_UP_DEFAULT = 'off';
|
||||
export const METADATA_UP_DEFAULT = 'off';
|
||||
|
||||
const METADATA_UP: Option[] = [
|
||||
export const METADATA_UP: Option[] = [
|
||||
{
|
||||
info: 'off',
|
||||
text: 'Do not auto-update extension metadata',
|
||||
@@ -56,9 +56,9 @@ const METADATA_UP: Option[] = [
|
||||
}
|
||||
];
|
||||
|
||||
const STORAGE_DEFAULT = 'off';
|
||||
export const STORAGE_DEFAULT = 'off';
|
||||
|
||||
const STORAGE: Option[] = [
|
||||
export const STORAGE: Option[] = [
|
||||
{
|
||||
info: 'on',
|
||||
text: 'Allow local in-browser account storage',
|
||||
@@ -70,32 +70,3 @@ const STORAGE: Option[] = [
|
||||
value: 'off'
|
||||
}
|
||||
];
|
||||
|
||||
export {
|
||||
CAMERA_DEFAULT,
|
||||
CAMERA,
|
||||
CRYPTOS,
|
||||
CRYPTOS_ETH,
|
||||
CRYPTOS_LEDGER,
|
||||
ENDPOINT_DEFAULT,
|
||||
ENDPOINTS,
|
||||
ICON_DEFAULT,
|
||||
ICON_DEFAULT_HOST,
|
||||
ICONS,
|
||||
LANGUAGE_DEFAULT,
|
||||
LEDGER_CONN_DEFAULT,
|
||||
LEDGER_CONN,
|
||||
LOCKING_DEFAULT,
|
||||
LOCKING,
|
||||
METADATA_UP,
|
||||
METADATA_UP_DEFAULT,
|
||||
NOTIFICATION_DEFAULT,
|
||||
PREFIX_DEFAULT,
|
||||
PREFIXES,
|
||||
STORAGE,
|
||||
STORAGE_DEFAULT,
|
||||
UIMODE_DEFAULT,
|
||||
UIMODES,
|
||||
UITHEME_DEFAULT,
|
||||
UITHEMES
|
||||
};
|
||||
|
||||
@@ -5,13 +5,13 @@ import type { Option } from '../types.js';
|
||||
|
||||
import { isPolkadot } from './type.js';
|
||||
|
||||
const LANGUAGE_DEFAULT = 'default';
|
||||
export const LANGUAGE_DEFAULT = 'default';
|
||||
|
||||
const UIMODE_DEFAULT = !isPolkadot && typeof window !== 'undefined' && window.location.host.includes('ui-light')
|
||||
export const UIMODE_DEFAULT = !isPolkadot && typeof window !== 'undefined' && window.location.host.includes('ui-light')
|
||||
? 'light'
|
||||
: 'full';
|
||||
|
||||
const UIMODES: Option[] = [
|
||||
export const UIMODES: Option[] = [
|
||||
{
|
||||
info: 'full',
|
||||
text: 'Fully featured',
|
||||
@@ -24,11 +24,11 @@ const UIMODES: Option[] = [
|
||||
}
|
||||
];
|
||||
|
||||
const UITHEME_DEFAULT = isPolkadot
|
||||
export const UITHEME_DEFAULT = isPolkadot
|
||||
? 'polkadot'
|
||||
: 'substrate';
|
||||
|
||||
const UITHEMES: Option[] = [
|
||||
export const UITHEMES: Option[] = [
|
||||
{
|
||||
info: 'polkadot',
|
||||
text: 'Polkadot',
|
||||
@@ -41,13 +41,13 @@ const UITHEMES: Option[] = [
|
||||
}
|
||||
];
|
||||
|
||||
const ICON_DEFAULT = 'default';
|
||||
export const ICON_DEFAULT = 'default';
|
||||
|
||||
const ICON_DEFAULT_HOST = isPolkadot
|
||||
export const ICON_DEFAULT_HOST = isPolkadot
|
||||
? 'polkadot'
|
||||
: 'substrate';
|
||||
|
||||
const ICONS: Option[] = [
|
||||
export const ICONS: Option[] = [
|
||||
{
|
||||
info: 'default',
|
||||
text: 'Default for the connected node',
|
||||
@@ -70,16 +70,4 @@ const ICONS: Option[] = [
|
||||
}
|
||||
];
|
||||
|
||||
const NOTIFICATION_DEFAULT = 'popup';
|
||||
|
||||
export {
|
||||
ICON_DEFAULT,
|
||||
ICON_DEFAULT_HOST,
|
||||
ICONS,
|
||||
LANGUAGE_DEFAULT,
|
||||
NOTIFICATION_DEFAULT,
|
||||
UIMODE_DEFAULT,
|
||||
UIMODES,
|
||||
UITHEME_DEFAULT,
|
||||
UITHEMES
|
||||
};
|
||||
export const NOTIFICATION_DEFAULT = 'popup';
|
||||
|
||||
Reference in New Issue
Block a user