mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-05-30 07:01:04 +00:00
Use import type (#406)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/example-vue authors & contributors
|
// Copyright 2017-2020 @polkadot/example-vue authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Prefix } from '@polkadot/util-crypto/address/types';
|
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
||||||
|
|
||||||
import Vue, { VNode } from 'vue';
|
import Vue, { VNode } from 'vue';
|
||||||
import keyring from '@polkadot/ui-keyring';
|
import keyring from '@polkadot/ui-keyring';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ledger authors & contributors
|
// Copyright 2017-2020 @polkadot/ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { TransportDef } from './types';
|
import type Transport from '@ledgerhq/hw-transport';
|
||||||
|
import type { TransportDef } from './types';
|
||||||
|
|
||||||
import Transport from '@ledgerhq/hw-transport';
|
|
||||||
import LedgerWebUSB from '@ledgerhq/hw-transport-webusb';
|
import LedgerWebUSB from '@ledgerhq/hw-transport-webusb';
|
||||||
|
|
||||||
const transports: TransportDef[] = [
|
const transports: TransportDef[] = [
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ledger authors & contributors
|
// Copyright 2017-2020 @polkadot/ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { TransportDef } from './types';
|
import type Transport from '@ledgerhq/hw-transport';
|
||||||
|
import type { TransportDef } from './types';
|
||||||
|
|
||||||
import Transport from '@ledgerhq/hw-transport';
|
|
||||||
import LedgerHid from '@ledgerhq/hw-transport-node-hid-singleton';
|
import LedgerHid from '@ledgerhq/hw-transport-node-hid-singleton';
|
||||||
|
|
||||||
const transports: TransportDef[] = [
|
const transports: TransportDef[] = [
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ledger authors & contributors
|
// Copyright 2017-2020 @polkadot/ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { TransportDef } from './types';
|
import type { TransportDef } from './types';
|
||||||
|
|
||||||
const transports: TransportDef[] = [];
|
const transports: TransportDef[] = [];
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ledger authors & contributors
|
// Copyright 2017-2020 @polkadot/ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import Transport from '@ledgerhq/hw-transport';
|
import type Transport from '@ledgerhq/hw-transport';
|
||||||
import { AccountOptions, LedgerAddress, LedgerSignature, LedgerTypes, LedgerVersion } from './types';
|
import type { AccountOptions, LedgerAddress, LedgerSignature, LedgerTypes, LedgerVersion } from './types';
|
||||||
|
|
||||||
import { ResponseBase, SubstrateApp, newKusamaApp, newPolkadotApp } from '@zondax/ledger-polkadot';
|
import { ResponseBase, SubstrateApp, newKusamaApp, newPolkadotApp } from '@zondax/ledger-polkadot';
|
||||||
import transports from '@polkadot/ledger-transports';
|
import transports from '@polkadot/ledger-transports';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright 2017-2020 @polkadot/react-identicon authors & contributors
|
// Copyright 2017-2020 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Prefix } from '@polkadot/util-crypto/address/types';
|
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
||||||
import { IdentityProps as Props, Props as ComponentProps } from './types';
|
import type { IdentityProps as Props, Props as ComponentProps } from './types';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import CopyToClipboard from 'react-copy-to-clipboard';
|
import CopyToClipboard from 'react-copy-to-clipboard';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/react-identicon authors & contributors
|
// Copyright 2017-2020 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Props } from '../types';
|
import type { Props } from '../types';
|
||||||
|
|
||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
import { beachballIcon } from '@polkadot/ui-shared';
|
import { beachballIcon } from '@polkadot/ui-shared';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/react-identicon authors & contributors
|
// Copyright 2017-2020 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Props } from '../types';
|
import type { Props } from '../types';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/react-identicon authors & contributors
|
// Copyright 2017-2020 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Props } from '../types';
|
import type { Props } from '../types';
|
||||||
|
|
||||||
import makeBlockie from 'ethereum-blockies-base64';
|
import makeBlockie from 'ethereum-blockies-base64';
|
||||||
import React, { useMemo } from 'react';
|
import React, { useMemo } from 'react';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/react-identicon authors & contributors
|
// Copyright 2017-2020 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Props } from '../types';
|
import type { Props } from '../types';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import jdenticon from 'jdenticon';
|
import jdenticon from 'jdenticon';
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
// - Move constants to file-level
|
// - Move constants to file-level
|
||||||
// - Overall it is now just a static component, expecting an address as an input value
|
// - Overall it is now just a static component, expecting an address as an input value
|
||||||
|
|
||||||
import { Circle } from '@polkadot/ui-shared/icons/types';
|
import type { Circle } from '@polkadot/ui-shared/icons/types';
|
||||||
import { Props } from '../types';
|
import type { Props } from '../types';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { polkadotIcon } from '@polkadot/ui-shared';
|
import { polkadotIcon } from '@polkadot/ui-shared';
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
// Copyright 2018-2020 @polkadot/react-identicon authors & contributors
|
// Copyright 2018-2020 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Prefix } from '@polkadot/util-crypto/address/types';
|
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
export interface BaseProps {
|
export interface BaseProps {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright 2017-2020 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2017-2020 @polkadot/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Prefix } from '@polkadot/util-crypto/address/types';
|
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
||||||
import { Props as ComponentProps } from './types';
|
import type { Props as ComponentProps } from './types';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { isHex, isU8a, u8aToHex } from '@polkadot/util';
|
import { isHex, isU8a, u8aToHex } from '@polkadot/util';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2017-2020 @polkadot/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Props } from '../types';
|
import type { Props } from '../types';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { View } from 'react-native';
|
import { View } from 'react-native';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright 2018-2020 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2018-2020 @polkadot/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Circle as CircleType } from '@polkadot/ui-shared/icons/types';
|
import type { Circle as CircleType } from '@polkadot/ui-shared/icons/types';
|
||||||
import { Props } from '../types';
|
import type { Props } from '../types';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { View } from 'react-native';
|
import { View } from 'react-native';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { KeyringInstance, KeyringPair } from '@polkadot/keyring/types';
|
import type { KeyringInstance, KeyringPair } from '@polkadot/keyring/types';
|
||||||
import { Prefix } from '@polkadot/util-crypto/address/types';
|
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
||||||
import { AddressSubject } from './observable/types';
|
import type { AddressSubject } from './observable/types';
|
||||||
import { KeyringOptions, KeyringStore } from './types';
|
import type { KeyringOptions, KeyringStore } from './types';
|
||||||
|
|
||||||
import { createTestKeyring } from '@polkadot/keyring/testing';
|
import { createTestKeyring } from '@polkadot/keyring/testing';
|
||||||
import { isBoolean, isString } from '@polkadot/util';
|
import { isBoolean, isString } from '@polkadot/util';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { KeyringPair, KeyringPair$Meta, KeyringPair$Json } from '@polkadot/keyring/types';
|
import type { KeyringPair, KeyringPair$Meta, KeyringPair$Json } from '@polkadot/keyring/types';
|
||||||
import { KeypairType } from '@polkadot/util-crypto/types';
|
import type { KeypairType } from '@polkadot/util-crypto/types';
|
||||||
import { AddressSubject, SingleAddress } from './observable/types';
|
import type { AddressSubject, SingleAddress } from './observable/types';
|
||||||
import { CreateResult, KeyringAddress, KeyringAddressType, KeyringItemType, KeyringJson, KeyringJson$Meta, KeyringOptions, KeyringStruct } from './types';
|
import type { CreateResult, KeyringAddress, KeyringAddressType, KeyringItemType, KeyringJson, KeyringJson$Meta, KeyringOptions, KeyringStruct } from './types';
|
||||||
|
|
||||||
import BN from 'bn.js';
|
import BN from 'bn.js';
|
||||||
import { createPair } from '@polkadot/keyring/pair';
|
import { createPair } from '@polkadot/keyring/pair';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { SubjectInfo, AddressSubject, SingleAddress } from './types';
|
import type { SubjectInfo, AddressSubject, SingleAddress } from './types';
|
||||||
import { KeyringJson, KeyringStore } from '../types';
|
import type { KeyringJson, KeyringStore } from '../types';
|
||||||
|
|
||||||
import { BehaviorSubject } from 'rxjs';
|
import { BehaviorSubject } from 'rxjs';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { SubjectInfo } from './types';
|
import type { SubjectInfo } from './types';
|
||||||
|
|
||||||
import { combineLatest } from 'rxjs';
|
import { combineLatest } from 'rxjs';
|
||||||
import { map } from 'rxjs/operators';
|
import { map } from 'rxjs/operators';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { BehaviorSubject } from 'rxjs';
|
import type { BehaviorSubject } from 'rxjs';
|
||||||
import { KeyringSectionOption } from '../options/types';
|
import type { KeyringSectionOption } from '../options/types';
|
||||||
import { KeyringJson, KeyringStore } from '../types';
|
import type { KeyringJson, KeyringStore } from '../types';
|
||||||
|
|
||||||
export interface SingleAddress {
|
export interface SingleAddress {
|
||||||
json: KeyringJson;
|
json: KeyringJson;
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { KeyringStruct } from '../types';
|
import type { KeyringStruct } from '../types';
|
||||||
|
|
||||||
import { KeyringOption } from '.';
|
import { KeyringOption } from '.';
|
||||||
|
|
||||||
const keyringOption = new KeyringOption();
|
const keyringOption = new KeyringOption();
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { KeyringStruct } from '../types';
|
import type { KeyringStruct } from '../types';
|
||||||
import { SingleAddress } from '../observable/types';
|
import type { SingleAddress } from '../observable/types';
|
||||||
import { KeyringOptions, KeyringOptionInstance, KeyringSectionOption, KeyringSectionOptions } from './types';
|
import type { KeyringOptions, KeyringOptionInstance, KeyringSectionOption, KeyringSectionOptions } from './types';
|
||||||
|
|
||||||
import { BehaviorSubject } from 'rxjs';
|
import { BehaviorSubject } from 'rxjs';
|
||||||
import { assert } from '@polkadot/util';
|
import { assert } from '@polkadot/util';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { KeyringSectionOption } from './types';
|
import type { KeyringSectionOption } from './types';
|
||||||
|
|
||||||
import { isUndefined } from '@polkadot/util';
|
import { isUndefined } from '@polkadot/util';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { KeyringItemType, KeyringStruct } from '../types';
|
import type { KeyringItemType, KeyringStruct } from '../types';
|
||||||
|
|
||||||
export interface KeyringSectionOption {
|
export interface KeyringSectionOption {
|
||||||
key: string | null;
|
key: string | null;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { KeyringStore, KeyringJson } from '../types';
|
import type { KeyringStore, KeyringJson } from '../types';
|
||||||
|
|
||||||
import store from 'store';
|
import store from 'store';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { KeyringStore, KeyringJson } from '../types';
|
import type { KeyringStore, KeyringJson } from '../types';
|
||||||
|
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import mkdirp from 'mkdirp';
|
import mkdirp from 'mkdirp';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Hash } from '@polkadot/types/interfaces';
|
import type { Hash } from '@polkadot/types/interfaces';
|
||||||
import { KeyringInstance as BaseKeyringInstance, KeyringPair, KeyringPair$Meta, KeyringPair$Json, KeyringOptions as KeyringOptionsBase } from '@polkadot/keyring/types';
|
import type { KeyringInstance as BaseKeyringInstance, KeyringPair, KeyringPair$Meta, KeyringPair$Json, KeyringOptions as KeyringOptionsBase } from '@polkadot/keyring/types';
|
||||||
import { KeypairType } from '@polkadot/util-crypto/types';
|
import type { KeypairType } from '@polkadot/util-crypto/types';
|
||||||
import { AddressSubject, SingleAddress } from './observable/types';
|
import type { AddressSubject, SingleAddress } from './observable/types';
|
||||||
|
|
||||||
export interface ContractMeta {
|
export interface ContractMeta {
|
||||||
abi: string;
|
abi: string;
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import type { Option, SettingsStruct } from './types';
|
||||||
|
|
||||||
import EventEmitter from 'eventemitter3';
|
import EventEmitter from 'eventemitter3';
|
||||||
import store from 'store';
|
import store from 'store';
|
||||||
import { isUndefined } from '@polkadot/util';
|
import { isUndefined } from '@polkadot/util';
|
||||||
|
|
||||||
import { CAMERA_DEFAULT, CAMERA, CRYPTOS, CRYPTOS_ETH, ENDPOINT_DEFAULT, ENDPOINTS, ICON_DEFAULT, ICONS, LANGUAGE_DEFAULT, LEDGER_CONN, LEDGER_CONN_DEFAULT, LOCKING_DEFAULT, LOCKING, PREFIX_DEFAULT, PREFIXES, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './defaults';
|
import { CAMERA_DEFAULT, CAMERA, CRYPTOS, CRYPTOS_ETH, ENDPOINT_DEFAULT, ENDPOINTS, ICON_DEFAULT, ICONS, LANGUAGE_DEFAULT, LEDGER_CONN, LEDGER_CONN_DEFAULT, LOCKING_DEFAULT, LOCKING, PREFIX_DEFAULT, PREFIXES, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './defaults';
|
||||||
import { Option, SettingsStruct } from './types';
|
|
||||||
|
|
||||||
type ChangeCallback = (settings: SettingsStruct) => void;
|
type ChangeCallback = (settings: SettingsStruct) => void;
|
||||||
type OnTypes = 'change';
|
type OnTypes = 'change';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Option } from '../types';
|
import type { Option } from '../types';
|
||||||
|
|
||||||
export const CRYPTOS: Option[] = [
|
export const CRYPTOS: Option[] = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Option } from '../types';
|
import type { Option } from '../types';
|
||||||
|
|
||||||
export const ENDPOINTS: Option[] = [{
|
export const ENDPOINTS: Option[] = [{
|
||||||
info: 'local',
|
info: 'local',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Option } from '../types';
|
import type { Option } from '../types';
|
||||||
|
|
||||||
import { CRYPTOS, CRYPTOS_ETH } from './crypto';
|
import { CRYPTOS, CRYPTOS_ETH } from './crypto';
|
||||||
import { ENDPOINTS, ENDPOINT_DEFAULT } from './endpoints';
|
import { ENDPOINTS, ENDPOINT_DEFAULT } from './endpoints';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Option } from '../types';
|
import type { Option } from '../types';
|
||||||
|
|
||||||
export const LEDGER_CONN_DEFAULT = 'none';
|
export const LEDGER_CONN_DEFAULT = 'none';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Option } from '../types';
|
import type { Option } from '../types';
|
||||||
|
|
||||||
import { available } from '@polkadot/networks';
|
import { available } from '@polkadot/networks';
|
||||||
|
|
||||||
export const PREFIX_DEFAULT = -1;
|
export const PREFIX_DEFAULT = -1;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Option } from '../types';
|
import type { Option } from '../types';
|
||||||
|
|
||||||
import { isPolkadot } from './type';
|
import { isPolkadot } from './type';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-shared authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-shared authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { ColorGen } from './types';
|
import type { ColorGen } from './types';
|
||||||
|
|
||||||
import newSeeder from './seeder';
|
import newSeeder from './seeder';
|
||||||
import newColors from './colors';
|
import newColors from './colors';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
// Copyright 2016 Dan Finlay
|
// Copyright 2016 Dan Finlay
|
||||||
|
|
||||||
import { ColorGen, Seeder } from './types';
|
import type { ColorGen, Seeder } from './types';
|
||||||
|
|
||||||
import Color from 'color';
|
import Color from 'color';
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
// Copyright 2016 Dan Finlay
|
// Copyright 2016 Dan Finlay
|
||||||
|
|
||||||
import { Options } from '../types';
|
import type { Options } from '../types';
|
||||||
|
|
||||||
import colors from './colors';
|
import colors from './colors';
|
||||||
import newContainer from './container';
|
import newContainer from './container';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-shared authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-shared authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Seeder } from './types';
|
import type { Seeder } from './types';
|
||||||
|
|
||||||
import newSeeder from './seeder';
|
import newSeeder from './seeder';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/ui-shared authors & contributors
|
// Copyright 2017-2020 @polkadot/ui-shared authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Seeder } from './types';
|
import type { Seeder } from './types';
|
||||||
|
|
||||||
import { isU8a, stringToU8a } from '@polkadot/util';
|
import { isU8a, stringToU8a } from '@polkadot/util';
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
// Copyright 2016 Dan Finlay
|
// Copyright 2016 Dan Finlay
|
||||||
|
|
||||||
import { Seeder } from '../types';
|
import type { Seeder } from '../types';
|
||||||
|
|
||||||
import newCircle from '../svg/circle';
|
import newCircle from '../svg/circle';
|
||||||
import { SHAPE_COUNT } from '../defaults';
|
import { SHAPE_COUNT } from '../defaults';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
// Copyright 2016 Dan Finlay
|
// Copyright 2016 Dan Finlay
|
||||||
|
|
||||||
import { Seeder } from '../types';
|
import type { Seeder } from '../types';
|
||||||
|
|
||||||
import newRect from '../svg/rect';
|
import newRect from '../svg/rect';
|
||||||
import { SHAPE_COUNT } from '../defaults';
|
import { SHAPE_COUNT } from '../defaults';
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
// https://github.com/paritytech/oo7/blob/251ba2b7c45503b68eab4320c270b5afa9bccb60/packages/polkadot-identicon/src/index.jsx
|
// https://github.com/paritytech/oo7/blob/251ba2b7c45503b68eab4320c270b5afa9bccb60/packages/polkadot-identicon/src/index.jsx
|
||||||
|
|
||||||
import { Circle, Options } from './types';
|
import type { Circle, Options } from './types';
|
||||||
|
|
||||||
import { blake2AsU8a, decodeAddress } from '@polkadot/util-crypto';
|
import { blake2AsU8a, decodeAddress } from '@polkadot/util-crypto';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/vue-identicon authors & contributors
|
// Copyright 2017-2020 @polkadot/vue-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Prefix } from '@polkadot/util-crypto/address/types';
|
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
||||||
|
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { isHex, isU8a, u8aToHex } from '@polkadot/util';
|
import { isHex, isU8a, u8aToHex } from '@polkadot/util';
|
||||||
|
|||||||
Reference in New Issue
Block a user