File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Vendored
-86
File diff suppressed because one or more lines are too long
+55
File diff suppressed because one or more lines are too long
+2
-2
@@ -5,7 +5,7 @@ enableProgressBars: false
|
||||
nodeLinker: node-modules
|
||||
|
||||
plugins:
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.js
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
|
||||
spec: "@yarnpkg/plugin-interactive-tools"
|
||||
|
||||
yarnPath: .yarn/releases/yarn-2.1.1.cjs
|
||||
yarnPath: .yarn/releases/yarn-2.2.2.cjs
|
||||
|
||||
+10
-9
@@ -8,12 +8,13 @@
|
||||
"packages/*"
|
||||
],
|
||||
"resolutions": {
|
||||
"@polkadot/api": "^1.32.0-beta.10",
|
||||
"@polkadot/api": "^1.32.0-beta.14",
|
||||
"@polkadot/keyring": "^3.4.1",
|
||||
"@polkadot/types": "^1.32.0-beta.10",
|
||||
"@polkadot/types": "^1.32.0-beta.14",
|
||||
"@polkadot/util": "^3.4.1",
|
||||
"@polkadot/util-crypto": "^3.4.1",
|
||||
"babel-core": "^7.0.0-bridge.0"
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"typescript": "^4.0.2"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "yarn build:code && yarn build:zip",
|
||||
@@ -31,13 +32,13 @@
|
||||
"watch": "cd packages/extension && yarn polkadot-exec-webpack --config webpack.config.js --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.11.1",
|
||||
"@polkadot/dev": "^0.55.43",
|
||||
"@polkadot/typegen": "^1.32.0-beta.10",
|
||||
"@types/jest": "^26.0.10",
|
||||
"copy-webpack-plugin": "^6.0.3",
|
||||
"@babel/core": "^7.11.5",
|
||||
"@polkadot/dev": "^0.55.45",
|
||||
"@polkadot/typegen": "^1.32.0-beta.14",
|
||||
"@types/jest": "^26.0.13",
|
||||
"copy-webpack-plugin": "^6.1.0",
|
||||
"sinon-chrome": "^3.0.1",
|
||||
"stylelint": "^13.6.1",
|
||||
"stylelint": "^13.7.0",
|
||||
"stylelint-config-recommended": "^3.0.0",
|
||||
"stylelint-config-styled-components": "^0.1.1"
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"license": "Apache-2",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.11.2",
|
||||
"@polkadot/api": "^1.32.0-beta.10",
|
||||
"@polkadot/api": "^1.32.0-beta.14",
|
||||
"@polkadot/extension-inject": "0.33.0-beta.10",
|
||||
"@polkadot/keyring": "^3.4.1",
|
||||
"@polkadot/ui-keyring": "^0.58.1"
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
/* eslint-disable no-use-before-define */
|
||||
|
||||
import { InjectedAccount, MetadataDef, ProviderList, ProviderMeta, InjectedMetadataKnown } from '@polkadot/extension-inject/types';
|
||||
import { JsonRpcResponse } from '@polkadot/rpc-provider/types';
|
||||
import { KeypairType } from '@polkadot/util-crypto/types';
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
"@types/react-router": "^5.1.8",
|
||||
"@types/react-router-dom": "^5.1.5",
|
||||
"@types/sinon-chrome": "^2.2.9",
|
||||
"@types/styled-components": "^5.1.2",
|
||||
"@types/styled-components": "^5.1.3",
|
||||
"enzyme": "^3.11.0",
|
||||
"enzyme-adapter-react-16": "^1.15.3",
|
||||
"enzyme-adapter-react-16": "^1.15.4",
|
||||
"sinon-chrome": "^3.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,11 +56,7 @@ function DerivationPath ({ className, defaultPath, isError, onChange }: Props):
|
||||
);
|
||||
}
|
||||
|
||||
interface UnlockableComponentProps {
|
||||
isUnlocked: boolean;
|
||||
}
|
||||
|
||||
const PathInput = styled.div<UnlockableComponentProps>`
|
||||
const PathInput = styled.div<{ isUnlocked: boolean }>`
|
||||
width: 100%;
|
||||
|
||||
& input {
|
||||
|
||||
@@ -45,6 +45,8 @@ const darkTheme = {
|
||||
textColorDanger: '#FF8686'
|
||||
};
|
||||
|
||||
export declare type Theme = typeof darkTheme;
|
||||
|
||||
const lightTheme: Theme = {
|
||||
...darkTheme,
|
||||
accountBackground: '#FFFFFF',
|
||||
@@ -72,6 +74,13 @@ const lightTheme: Theme = {
|
||||
textColorDanger: '#F24A4A'
|
||||
};
|
||||
|
||||
export const themes = {
|
||||
dark: darkTheme,
|
||||
light: lightTheme
|
||||
};
|
||||
|
||||
export declare type AvailableThemes = keyof typeof themes;
|
||||
|
||||
export function chooseTheme (): AvailableThemes {
|
||||
const preferredTheme = localStorage.getItem('theme');
|
||||
|
||||
@@ -85,12 +94,3 @@ export function chooseTheme (): AvailableThemes {
|
||||
? 'light'
|
||||
: 'dark';
|
||||
}
|
||||
|
||||
export declare type Theme = typeof darkTheme;
|
||||
|
||||
export const themes = {
|
||||
dark: darkTheme,
|
||||
light: lightTheme
|
||||
};
|
||||
|
||||
export declare type AvailableThemes = keyof typeof themes;
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
"@polkadot/extension-ui": "0.33.0-beta.10"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.55.43",
|
||||
"@polkadot/dev": "^0.55.45",
|
||||
"babel-loader": "^8.1.0",
|
||||
"extract-loader": "^5.1.0",
|
||||
"file-loader": "^6.0.0",
|
||||
"html-loader": "^1.1.0",
|
||||
"file-loader": "^6.1.0",
|
||||
"html-loader": "^1.3.0",
|
||||
"sinon-chrome": "^3.0.1",
|
||||
"thread-loader": "^2.1.3",
|
||||
"webpack": "^4.44.1",
|
||||
|
||||
Reference in New Issue
Block a user