├── .npmignore ├── scripts ├── test.js ├── parity-ui.desktop ├── update-precompiled.sh ├── lint.sh ├── test.sh ├── install-deps.sh ├── build.sh ├── dryrun-npm.sh └── publish-snap.sh ├── .npmrc ├── test ├── npm │ ├── mocha.opts │ └── mocha.config.js ├── mocha.opts ├── babel.js ├── ignoreImports.js ├── npmJsonRpc.js └── e2e │ └── ethapi.js ├── assets ├── parity-logo.png ├── parity-logo-black.png ├── icon │ ├── small-white-512x512.png │ ├── small-white-1024x1024.png │ ├── EWF-Brandmark-white512px.png │ └── EWF-Brandmark-white1024px.png └── parity-logo-black-no-text.png ├── .istanbul.yml ├── .codeclimate.yml ├── .flowconfig ├── .gitignore ├── .stylelintrc.json ├── .editorconfig ├── .github └── ISSUE_TEMPLATE.md ├── .babelrc ├── src ├── DappRequests │ ├── README.md │ ├── RequestGroups │ │ ├── index.js │ │ ├── RequestGroupSubItem │ │ │ ├── index.js │ │ │ └── RequestGroupSubItem.css │ │ └── RequestGroups.css │ ├── dappRequests.css │ └── index.js ├── serviceWorker.js ├── Dapp │ ├── index.js │ └── dapp.css ├── Dapps │ ├── index.js │ └── DappCard │ │ ├── index.js │ │ └── dappCard.css ├── Status │ ├── index.js │ ├── Upgrade │ │ ├── index.js │ │ └── upgrade.js │ ├── Consensus │ │ └── index.js │ ├── DefaultAccount │ │ ├── index.js │ │ ├── AccountItem │ │ │ ├── index.js │ │ │ └── accountItem.css │ │ └── defaultAccount.css │ ├── SignerPending │ │ ├── index.js │ │ ├── EtherValue │ │ │ ├── index.js │ │ │ └── etherValue.js │ │ ├── RequestItem │ │ │ ├── index.js │ │ │ └── requestItem.css │ │ └── signerPending.css │ └── pluginStore.js ├── FirstRun │ ├── TnC │ │ └── index.js │ ├── index.js │ ├── Completed │ │ └── index.js │ ├── Welcome │ │ └── index.js │ ├── firstRun.css │ ├── firstRun.spec.js │ └── store.js ├── Requests │ └── index.js ├── Snackbar │ └── index.js ├── Application │ └── index.js ├── Connection │ └── index.js ├── Extension │ ├── index.js │ └── extension.css ├── ParityBar │ ├── index.js │ ├── SignerPending │ │ └── index.js │ └── _colors.css ├── PinMatrix │ └── index.js ├── SyncWarning │ ├── index.js │ └── syncWarning.css ├── Signer │ ├── Embedded │ │ ├── index.js │ │ ├── embedded.css │ │ └── embedded.js │ ├── PendingList │ │ ├── index.js │ │ └── pendingList.css │ ├── PendingItem │ │ ├── index.js │ │ └── pendingItem.css │ ├── utils │ │ ├── extension.js │ │ └── utils.js │ └── _layout.css ├── UpgradeParity │ ├── index.js │ └── upgradeParity.css ├── api-local │ └── accounts │ │ └── index.js ├── index.parity.ejs ├── inject.script.js ├── ShellExtend │ ├── index.js │ └── script.js ├── config.js ├── library.parity.js ├── dev.parity.html └── util │ └── csp.js ├── electron ├── installers │ └── windows │ │ └── installer.nsh ├── config.json ├── operations │ └── doesParityExist.js ├── messages │ └── index.js └── utils │ └── parityPath.js ├── i18n ├── nl │ ├── details_windows.js │ ├── web.js │ ├── dapp.js │ ├── addresses.js │ ├── tabBar.js │ ├── saveContract.js │ ├── contracts.js │ ├── parityBar.js │ ├── deleteAccount.js │ ├── extension.js │ ├── address.js │ ├── addressSelect.js │ ├── application.js │ ├── errors.js │ ├── editMeta.js │ ├── faucet.js │ ├── home.js │ ├── connection.js │ ├── contract.js │ ├── loadContract.js │ ├── accounts.js │ ├── account.js │ └── addAddress.js ├── zh │ ├── details_windows.js │ ├── web.js │ ├── dapp.js │ ├── addresses.js │ ├── tabBar.js │ ├── contracts.js │ ├── saveContract.js │ ├── parityBar.js │ ├── deleteAccount.js │ ├── addressSelect.js │ ├── address.js │ ├── extension.js │ ├── errors.js │ ├── application.js │ ├── editMeta.js │ ├── faucet.js │ ├── home.js │ ├── contract.js │ ├── loadContract.js │ ├── account.js │ ├── accounts.js │ └── connection.js ├── _default │ ├── details_windows.js │ ├── web.js │ ├── dapp.js │ ├── syncWarning.js │ ├── addresses.js │ ├── tabBar.js │ ├── saveContract.js │ ├── contracts.js │ ├── parityBar.js │ ├── deleteAccount.js │ ├── addressSelect.js │ ├── extension.js │ ├── address.js │ ├── requests.js │ ├── application.js │ ├── editMeta.js │ ├── faucet.js │ ├── errors.js │ ├── home.js │ ├── contract.js │ ├── loadContract.js │ ├── addAddress.js │ └── executeContract.js ├── zh-Hant-TW │ ├── details_windows.js │ ├── web.js │ ├── dapp.js │ ├── addresses.js │ ├── tabBar.js │ ├── contracts.js │ ├── saveContract.js │ ├── parityBar.js │ ├── deleteAccount.js │ ├── addressSelect.js │ ├── address.js │ ├── extension.js │ ├── errors.js │ ├── application.js │ ├── editMeta.js │ ├── faucet.js │ ├── home.js │ ├── contract.js │ ├── loadContract.js │ ├── account.js │ └── accounts.js ├── index.js ├── de │ └── index.js ├── en │ ├── index.js │ └── settings.js ├── languages.js ├── constants.js └── languages.spec.js ├── .travis.yml ├── webpack ├── test.js ├── rules │ ├── parity.js │ └── es6.js └── build.server.js └── .eslintrc.json /.npmignore: -------------------------------------------------------------------------------- 1 | scripts/ 2 | -------------------------------------------------------------------------------- /scripts/test.js: -------------------------------------------------------------------------------- 1 | // test script 37 2 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | save-prefix='' 2 | unsafe-perm=true 3 | -------------------------------------------------------------------------------- /test/npm/mocha.opts: -------------------------------------------------------------------------------- 1 | -r ./test/mocha.config 2 | -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- 1 | -r ./test/babel 2 | -r ./test/mocha.config 3 | -r ./test/ignoreImports 4 | -------------------------------------------------------------------------------- /assets/parity-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energywebfoundation/energyweb-ui/HEAD/assets/parity-logo.png -------------------------------------------------------------------------------- /.istanbul.yml: -------------------------------------------------------------------------------- 1 | instrumentation: 2 | root: src 3 | extensions: 4 | - .js 5 | reporting: 6 | dir: ./.coverage 7 | -------------------------------------------------------------------------------- /assets/parity-logo-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energywebfoundation/energyweb-ui/HEAD/assets/parity-logo-black.png -------------------------------------------------------------------------------- /assets/icon/small-white-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energywebfoundation/energyweb-ui/HEAD/assets/icon/small-white-512x512.png -------------------------------------------------------------------------------- /.codeclimate.yml: -------------------------------------------------------------------------------- 1 | engines: 2 | eslint: 3 | enabled: true 4 | channel: "eslint-2" 5 | 6 | ratings: 7 | paths: 8 | - "**.js" 9 | -------------------------------------------------------------------------------- /assets/icon/small-white-1024x1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energywebfoundation/energyweb-ui/HEAD/assets/icon/small-white-1024x1024.png -------------------------------------------------------------------------------- /assets/parity-logo-black-no-text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energywebfoundation/energyweb-ui/HEAD/assets/parity-logo-black-no-text.png -------------------------------------------------------------------------------- /assets/icon/EWF-Brandmark-white512px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energywebfoundation/energyweb-ui/HEAD/assets/icon/EWF-Brandmark-white512px.png -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | .*/node_modules/.* 3 | .*/bower_components/.* 4 | 5 | [include] 6 | .*/src/.* 7 | 8 | [libs] 9 | 10 | [options] 11 | -------------------------------------------------------------------------------- /assets/icon/EWF-Brandmark-white1024px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energywebfoundation/energyweb-ui/HEAD/assets/icon/EWF-Brandmark-white1024px.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | yarn.lock 2 | node_modules 3 | npm-debug.log 4 | build 5 | dist 6 | docs 7 | test/tmp 8 | .build 9 | .coverage 10 | .dist 11 | .happypack 12 | .npmjs 13 | .eslintcache 14 | -------------------------------------------------------------------------------- /scripts/parity-ui.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Encoding=UTF-8 4 | Name=energyweb-ui 5 | Comment=The Electron app for EnergyWeb UI 6 | Exec=energyweb-ui 7 | Terminal=true 8 | -------------------------------------------------------------------------------- /.stylelintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "stylelint-config-standard", 3 | "rules": { 4 | "selector-pseudo-class-no-unknown": [ 5 | true, { "ignorePseudoClasses": ["global"] } 6 | ] 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /scripts/update-precompiled.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | # change into main dir 5 | pushd `dirname $0` 6 | cd ../../ 7 | 8 | cargo update -p parity-ui-precompiled 9 | 10 | popd 11 | exit 0 12 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | [*] 3 | indent_style=space 4 | indent_size=2 5 | tab_width=2 6 | end_of_line=lf 7 | charset=utf-8 8 | trim_trailing_whitespace=true 9 | max_line_length=120 10 | insert_final_newline=true 11 | -------------------------------------------------------------------------------- /scripts/lint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # change into the js directory (one down from scripts) 4 | pushd `dirname $0` 5 | cd .. 6 | 7 | # run lint & tests and store the exit code 8 | EXITCODE=0 9 | npm run lint || EXITCODE=1 10 | 11 | # back to root 12 | popd 13 | 14 | # exit with exit code 15 | exit $EXITCODE 16 | -------------------------------------------------------------------------------- /scripts/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # change into the js directory (one down from scripts) 4 | pushd `dirname $0` 5 | cd .. 6 | 7 | # run lint & tests and store the exit code 8 | EXITCODE=0 9 | npm run test || EXITCODE=1 10 | 11 | # back to root 12 | popd 13 | 14 | # exit with exit code 15 | exit $EXITCODE 16 | -------------------------------------------------------------------------------- /scripts/install-deps.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # change into the js directory (one down from scripts) 4 | pushd `dirname $0` 5 | cd .. 6 | 7 | # install deps and store the exit code 8 | EXITCODE=0 9 | node --version 10 | npm --version 11 | npm install --progress=false || EXITCODE=1 12 | 13 | # back to root 14 | popd 15 | 16 | # exit with exit code 17 | exit $EXITCODE 18 | -------------------------------------------------------------------------------- /scripts/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # change into the js directory (one down from scripts) 4 | pushd `dirname $0` 5 | cd .. 6 | 7 | # run build (production) and store the exit code 8 | EXITCODE=0 9 | BUILDDIR=./.dist 10 | rm -rf $BUILDDIR 11 | mkdir -p $BUILDDIR/src 12 | BUILD_DEST=$BUILDDIR/build npm run ci:build || EXITCODE=1 13 | 14 | # back to root 15 | popd 16 | 17 | # exit with exit code 18 | exit $EXITCODE 19 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | _Before filing a new issue, please **provide the following information**._ 2 | 3 | > I'm running: 4 | > 5 | > - **Parity client version**: 0.0.0 6 | > - **EnergyWeb UI version**: 0.0.0 7 | > - **Operating system**: Windows / MacOS / Linux 8 | > - **Installed via**: installer / snap / binaries / from source 9 | > - **Fully synchronized**: no / yes 10 | > - **I tried to restart both EnergyWeb UI and Parity Ethereum client**: no / yes 11 | 12 | _Your issue description goes here below. Try to include **actual** vs. **expected behavior** and **steps to reproduce** the issue._ 13 | 14 | -------------------------------------------------------------------------------- /scripts/dryrun-npm.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | # variables 5 | PACKAGES=( "parity" ) 6 | 7 | # change into the build directory 8 | BASEDIR=`dirname $0` 9 | cd $BASEDIR/.. 10 | 11 | # build all packages 12 | echo "*** Building packages for npmjs" 13 | echo "$NPM_TOKEN" >> ~/.npmrc 14 | 15 | for PACKAGE in ${PACKAGES[@]} 16 | do 17 | echo "*** Building $PACKAGE" 18 | LIBRARY=$PACKAGE npm run ci:build:npm 19 | DIRECTORY=.npmjs/$PACKAGE 20 | 21 | cd $DIRECTORY 22 | 23 | echo "*** Publishing $PACKAGE from $DIRECTORY" 24 | echo "npm publish --access public || true" 25 | cd ../.. 26 | 27 | done 28 | cd .. 29 | 30 | # exit with exit code 31 | exit 0 32 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "env", 4 | "stage-0", 5 | "react" 6 | ], 7 | "plugins": [ 8 | "transform-decorators-legacy", 9 | "transform-class-properties", 10 | "transform-object-rest-spread", 11 | "transform-es2015-modules-commonjs", 12 | "transform-runtime" 13 | ], 14 | "retainLines": true, 15 | "env": { 16 | "modules": false, 17 | "production": { 18 | "plugins": [ 19 | "transform-react-remove-prop-types" 20 | ] 21 | }, 22 | "development": { 23 | "plugins": [ 24 | ["react-intl", { "messagesDir": "./.build/i18n/" }], 25 | "react-hot-loader/babel" 26 | ] 27 | }, 28 | "test": { 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/DappRequests/README.md: -------------------------------------------------------------------------------- 1 | # Terminology used 2 | 3 | To be clear with the terminology used in the code here: 4 | 5 | - a *method* is an allowed JSON-RPC api method or a shell method 6 | - a *methodGroup* is the grouping of similar methods (see `methodGroups.js`) 7 | - a *permission* is a boolean which tells if an app is allowed to call a method or not 8 | - a *request* is when an app prompts the shell to call a method 9 | - a *requestGroup* is a map of the following form 10 | ```javascript 11 | { 12 | appId1: { 13 | methodGroup1: [request1, request2] // This is a requestGroup sub-item 14 | }, 15 | appId2: { 16 | methodGroup1: [request1] 17 | methodGroup2: [request3] 18 | }, 19 | // ... 20 | } 21 | ``` 22 | -------------------------------------------------------------------------------- /electron/installers/windows/installer.nsh: -------------------------------------------------------------------------------- 1 | ; Change default install directory on Windows 2 | ; https://www.electron.build/configuration/nsis#how-do-change-the-default-installation-directory-to-custom 3 | !macro preInit 4 | SetRegView 64 5 | WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Parity Technologies\EnergyWeb UI" 6 | WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Parity Technologies\EnergyWeb UI" 7 | SetRegView 32 8 | WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Parity Technologies\EnergyWeb UI" 9 | WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Parity Technologies\EnergyWeb UI" 10 | !macroend 11 | -------------------------------------------------------------------------------- /src/serviceWorker.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | -------------------------------------------------------------------------------- /scripts/publish-snap.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e # fail on any error 4 | set -u # treat unset variables as error 5 | 6 | case ${CI_COMMIT_REF_NAME} in 7 | master|ci-package|v0.4*) export CHANNEL="edge";; 8 | v0.3*) export CHANNEL="beta";; 9 | v0.2*) export CHANNEL="stable";; 10 | *) echo "No release" exit 0;; 11 | esac 12 | echo "Release channel :" $CHANNEL " Branch/tag: " $CI_COMMIT_REF_NAME 13 | 14 | echo $SNAPCRAFT_LOGIN_PARITY_BASE64 | base64 --decode > exported 15 | snapcraft login --with exported 16 | snapcraft push --release $CHANNEL "dist/parity-ui_"$VERSION"_"$BUILD_ARCH".snap" >> push.log 17 | cat push.log 18 | REVISION="$(grep -m 1 "Revision " push.log | awk '{print $2}')" 19 | snapcraft list-revisions --arch $BUILD_ARCH parity-ui 20 | snapcraft status parity-ui 21 | snapcraft logout 22 | -------------------------------------------------------------------------------- /src/Dapp/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './dapp'; 18 | -------------------------------------------------------------------------------- /src/Dapps/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './dapps'; 18 | -------------------------------------------------------------------------------- /src/Status/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './status'; 18 | -------------------------------------------------------------------------------- /i18n/nl/details_windows.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default `Windows`; 18 | -------------------------------------------------------------------------------- /i18n/zh/details_windows.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default `Windows`; 18 | -------------------------------------------------------------------------------- /src/FirstRun/TnC/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './tnc'; 18 | -------------------------------------------------------------------------------- /src/FirstRun/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './firstRun'; 18 | -------------------------------------------------------------------------------- /src/Requests/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './requests'; 18 | -------------------------------------------------------------------------------- /src/Snackbar/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './snackbar'; 18 | -------------------------------------------------------------------------------- /i18n/_default/details_windows.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default `Windows`; 18 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/details_windows.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default `Windows`; 18 | -------------------------------------------------------------------------------- /src/Application/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './application'; 18 | -------------------------------------------------------------------------------- /src/Connection/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './connection'; 18 | -------------------------------------------------------------------------------- /src/Dapps/DappCard/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './dappCard'; 18 | -------------------------------------------------------------------------------- /src/Extension/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './extension'; 18 | -------------------------------------------------------------------------------- /src/ParityBar/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './parityBar'; 18 | -------------------------------------------------------------------------------- /src/PinMatrix/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './pinMatrix'; 18 | -------------------------------------------------------------------------------- /src/Status/Upgrade/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './upgrade'; 18 | -------------------------------------------------------------------------------- /src/SyncWarning/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './syncWarning'; 18 | -------------------------------------------------------------------------------- /src/FirstRun/Completed/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './completed'; 18 | -------------------------------------------------------------------------------- /src/FirstRun/Welcome/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './welcome'; 18 | -------------------------------------------------------------------------------- /src/Signer/Embedded/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './embedded'; 18 | -------------------------------------------------------------------------------- /src/Status/Consensus/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './consensus'; 18 | -------------------------------------------------------------------------------- /src/UpgradeParity/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './upgradeParity'; 18 | -------------------------------------------------------------------------------- /src/Signer/PendingList/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './pendingList'; 18 | -------------------------------------------------------------------------------- /src/ParityBar/SignerPending/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './signerPending'; 18 | -------------------------------------------------------------------------------- /src/Status/DefaultAccount/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './defaultAccount'; 18 | -------------------------------------------------------------------------------- /src/Status/SignerPending/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './signerPending'; 18 | -------------------------------------------------------------------------------- /test/babel.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | require('babel-register')(); 18 | require('babel-polyfill'); 19 | -------------------------------------------------------------------------------- /src/DappRequests/RequestGroups/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './RequestGroups'; 18 | -------------------------------------------------------------------------------- /src/Status/SignerPending/EtherValue/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './etherValue'; 18 | -------------------------------------------------------------------------------- /src/Signer/PendingItem/index.js: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | export default from './pendingItem'; 19 | -------------------------------------------------------------------------------- /src/Status/DefaultAccount/AccountItem/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './accountItem'; 18 | -------------------------------------------------------------------------------- /src/Status/SignerPending/RequestItem/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './requestItem'; 18 | -------------------------------------------------------------------------------- /i18n/nl/web.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | requestToken: `Aanvragen toegangs token...` 19 | }; 20 | -------------------------------------------------------------------------------- /i18n/_default/web.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | requestToken: `Requesting access token...` 19 | }; 20 | -------------------------------------------------------------------------------- /i18n/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | import LocaleStore from './store'; 18 | 19 | export { 20 | LocaleStore 21 | }; 22 | -------------------------------------------------------------------------------- /i18n/zh/web.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | requestToken: `正在请求使用代币` // Requesting access token... 19 | }; 20 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | env: 3 | global: 4 | - ELECTRON_CACHE=$HOME/.cache/electron 5 | - ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder 6 | os: 7 | - linux 8 | - osx 9 | node_js: 10 | - '8' 11 | cache: 12 | yarn: true 13 | directories: 14 | - node_modules 15 | before_install: 16 | - npm install --global yarn --cache-min 999999999 17 | install: 18 | - npm install 19 | script: 20 | - ./scripts/lint.sh 21 | - ./scripts/test.sh 22 | - ./scripts/build.sh 23 | deploy: 24 | - provider: script 25 | script: npm run release -- --linux 26 | skip_cleanup: true 27 | on: 28 | condition: $TRAVIS_OS_NAME = linux 29 | branch: master 30 | - provider: script 31 | script: npm run release -- --mac --win 32 | skip_cleanup: true 33 | on: 34 | condition: $TRAVIS_OS_NAME = osx 35 | branch: master 36 | -------------------------------------------------------------------------------- /i18n/de/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | import settings from './settings'; 18 | 19 | export default { 20 | settings 21 | }; 22 | -------------------------------------------------------------------------------- /i18n/en/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | import settings from './settings'; 18 | 19 | export default { 20 | settings 21 | }; 22 | -------------------------------------------------------------------------------- /src/DappRequests/RequestGroups/RequestGroupSubItem/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default from './RequestGroupSubItem'; 18 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/web.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | requestToken: `正在請求使用代幣` // Requesting access token... 19 | }; 20 | -------------------------------------------------------------------------------- /i18n/_default/dapp.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | loading: `Loading`, 19 | unavailable: `The dapp cannot be reached` 20 | }; 21 | -------------------------------------------------------------------------------- /i18n/nl/dapp.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | loading: `Bezig met laden`, 19 | unavailable: `De dapp is niet bereikbaar` 20 | }; 21 | -------------------------------------------------------------------------------- /src/Signer/PendingList/pendingList.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | .list { 19 | color: inherit; 20 | } 21 | 22 | .none { 23 | color: #aaa; 24 | } 25 | -------------------------------------------------------------------------------- /i18n/zh/dapp.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | loading: `正在加载`, // Loading 19 | unavailable: `不能获取这个dapp`// The dapp cannot be reached 20 | }; 21 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/dapp.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | loading: `正在載入`, // Loading 19 | unavailable: `不能獲取這個dapp`// The dapp cannot be reached 20 | }; 21 | -------------------------------------------------------------------------------- /src/Signer/utils/extension.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export const isExtension = () => { 18 | return window.location.protocol.indexOf('chrome-extension:') > -1; 19 | }; 20 | -------------------------------------------------------------------------------- /src/api-local/accounts/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | const Accounts = require('./accounts'); 18 | 19 | const accounts = new Accounts(); 20 | 21 | module.exports = accounts; 22 | -------------------------------------------------------------------------------- /i18n/languages.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | de: 'Deutsch', 19 | en: 'English', 20 | nl: 'Nederlands', 21 | zh: '简体中文', 22 | 'zh-Hant-TW': '繁體中文' 23 | }; 24 | -------------------------------------------------------------------------------- /src/Signer/_layout.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | $pendingHeight: 190px; 19 | $finishedHeight: 120px; 20 | 21 | $embedWidth: 920px; 22 | $statusWidth: 270px; 23 | 24 | $accountPadding: 75px; 25 | -------------------------------------------------------------------------------- /webpack/test.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | const path = require('path'); 18 | 19 | module.exports = { 20 | context: path.join(__dirname, '../src'), 21 | resolve: { 22 | alias: {} 23 | } 24 | }; 25 | -------------------------------------------------------------------------------- /src/DappRequests/dappRequests.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | .requests { 19 | position: fixed; 20 | left: 0; 21 | right: 0; 22 | bottom: 0; 23 | z-index: 1001; /* sits above sync warning */ 24 | } 25 | -------------------------------------------------------------------------------- /src/Signer/PendingItem/pendingItem.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | .request { 19 | margin-left: -1.5em; 20 | padding-left: 1.5em; 21 | 22 | &:nth-child(even) { 23 | background: #eee; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /i18n/_default/syncWarning.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | dontShowAgain: { 19 | label: `Do not show this warning again` 20 | }, 21 | understandBtn: { 22 | label: `I understand` 23 | } 24 | }; 25 | -------------------------------------------------------------------------------- /i18n/_default/addresses.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | add: `address` 20 | }, 21 | errors: { 22 | invalidFile: `The provided file is invalid...` 23 | }, 24 | title: `Saved Addresses` 25 | }; 26 | -------------------------------------------------------------------------------- /i18n/nl/addresses.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | add: `adres` 20 | }, 21 | errors: { 22 | invalidFile: `Het opgegeven bestand is ongeldig...` 23 | }, 24 | title: `Opgeslagen Adressen` 25 | }; 26 | -------------------------------------------------------------------------------- /src/DappRequests/RequestGroups/RequestGroupSubItem/RequestGroupSubItem.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | .requestGroupSubItem { 19 | margin-top: 2px; 20 | 21 | .requestGroupSubItemTitle { 22 | margin-right: 10px; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/index.parity.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | <%= htmlWebpackPlugin.options.title %> 11 | 12 | 35 | 36 | 37 | 38 |
39 |
Loading
40 |
41 | 42 | 43 | -------------------------------------------------------------------------------- /test/ignoreImports.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | const EXTENSIONS = ['.css', '.ejs', '.md', '.png', '.svg']; 18 | 19 | function noop () { 20 | } 21 | 22 | EXTENSIONS.forEach((extension) => { 23 | require.extensions[extension] = noop; 24 | }); 25 | -------------------------------------------------------------------------------- /src/Signer/Embedded/embedded.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | @import '../_layout.css'; 19 | 20 | .info { 21 | padding: 1em 0; 22 | } 23 | 24 | .signer { 25 | box-sizing: border-box; 26 | padding: 0; 27 | width: $embedWidth; 28 | } 29 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["semistandard", "standard-react"], 3 | "parser": "babel-eslint", 4 | "env": { 5 | "browser": true, 6 | "mocha": true, 7 | "node": true 8 | }, 9 | "globals": { 10 | "expect": true, 11 | "FileReader": true 12 | }, 13 | "rules": { 14 | "curly": ["error", "all"], 15 | "jsx-quotes": ["error", "prefer-single"], 16 | "newline-after-var": ["error", "always"], 17 | "no-alert": "error", 18 | "no-debugger": "error", 19 | "no-duplicate-imports": ["error", { 20 | "includeExports": true 21 | }], 22 | "object-curly-spacing": ["error", "always"], 23 | "object-property-newline": 0, 24 | "one-var-declaration-per-line": ["error", "always"], 25 | "padded-blocks": ["error", { 26 | "blocks": "never", 27 | "classes": "never", 28 | "switches": "never" 29 | }], 30 | "react/jsx-closing-bracket-location": "error", 31 | "react/jsx-curly-spacing": ["error", "always"] 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/ParityBar/_colors.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | $backgroundFrom: #405161; 19 | $backgroundTo: #2c3742; 20 | $backgroundGradient: linear-gradient(to bottom, $backgroundFrom 0%, $backgroundTo 100%); 21 | $backgroundColor: $backgroundFrom; 22 | -------------------------------------------------------------------------------- /webpack/rules/parity.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | module.exports = { 18 | test: /\.js$/, 19 | include: /(dapp-|plugin-|oo7)/, 20 | use: [ { 21 | loader: 'happypack/loader', 22 | options: { 23 | id: 'babel' 24 | } 25 | } ] 26 | }; 27 | -------------------------------------------------------------------------------- /electron/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "appId": "io.ewf.ui", 3 | "directories": { 4 | "buildResources": "./" 5 | }, 6 | "linux": { 7 | "category": "Utility", 8 | "icon": "./assets/icon/EWF-Brandmark-white512px.png", 9 | "target": [ 10 | "AppImage", 11 | "snap", 12 | "deb", 13 | "tar.xz" 14 | ] 15 | }, 16 | "mac": { 17 | "category": "public.app-category.productivity", 18 | "icon": "./assets/icon/EWF-Brandmark-white512px.png", 19 | "target": [ 20 | "pkg" 21 | ] 22 | }, 23 | "nsis": { 24 | "include": "./electron/installers/windows/installer.nsh", 25 | "oneClick": true, 26 | "perMachine": true 27 | }, 28 | "pkg": { 29 | "allowAnywhere": false, 30 | "allowCurrentUserHome": false 31 | }, 32 | "productName": "EnergyWeb UI", 33 | "publish": "github", 34 | "win": { 35 | "icon": "./assets/icon/EWF-Brandmark-white512px.png", 36 | "publisherName": "Energy Web DevHub GmbH", 37 | "target": "nsis" 38 | } 39 | } -------------------------------------------------------------------------------- /i18n/zh/addresses.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | add: `地址` // address 20 | }, 21 | errors: { 22 | invalidFile: `提供的文件是无效的`// The provided file is invalid... 23 | }, 24 | title: `保存的地址`// Saved Addresses 25 | }; 26 | -------------------------------------------------------------------------------- /i18n/_default/tabBar.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | tooltip: { 19 | overview: `navigate between the different parts and views of the application, switching between an account view, token view and decentralized application view` 20 | } 21 | }; 22 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/addresses.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | add: `地址` // address 20 | }, 21 | errors: { 22 | invalidFile: `提供的檔案是無效的`// The provided file is invalid... 23 | }, 24 | title: `儲存的地址`// Saved Addresses 25 | }; 26 | -------------------------------------------------------------------------------- /i18n/nl/tabBar.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | tooltip: { 19 | overview: `navigeer tussen de verschillende onderdelen en weergaven in de applicatie, wissel tussen de account weergave, token weergave en decentrale applicatie weergave` 20 | } 21 | }; 22 | -------------------------------------------------------------------------------- /i18n/_default/saveContract.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | cancel: `Cancel`, 20 | save: `Save` 21 | }, 22 | name: { 23 | hint: `choose a name for this contract`, 24 | label: `contract name` 25 | }, 26 | title: `save contract` 27 | }; 28 | -------------------------------------------------------------------------------- /i18n/nl/saveContract.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | cancel: `Annuleer`, 20 | save: `Opslaan` 21 | }, 22 | name: { 23 | hint: `kies een naam voor dit contract`, 24 | label: `contract naam` 25 | }, 26 | title: `contract opslaan` 27 | }; 28 | -------------------------------------------------------------------------------- /src/inject.script.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | const script = document.createElement('script'); 18 | 19 | script.type = 'text/javascript'; 20 | script.onload = function () {}; 21 | script.src = '/parity-utils/inject.js'; 22 | 23 | document.getElementsByTagName('head')[0].appendChild(script); 24 | -------------------------------------------------------------------------------- /i18n/_default/contracts.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | deploy: `deploy`, 20 | develop: `develop`, 21 | watch: `watch` 22 | }, 23 | sortOrder: { 24 | date: `date`, 25 | minedBlock: `mined block` 26 | }, 27 | title: `Contracts` 28 | }; 29 | -------------------------------------------------------------------------------- /src/Status/SignerPending/RequestItem/requestItem.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | .listDescription { 19 | display: flex !important; 20 | } 21 | 22 | .fromAvatar { 23 | width: 28px !important; 24 | height: 28px !important; 25 | } 26 | 27 | .toAvatar { 28 | margin-left: 3px; 29 | } 30 | -------------------------------------------------------------------------------- /i18n/nl/contracts.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | deploy: `publiceer`, 20 | develop: `ontwikkel`, 21 | watch: `bekijk` 22 | }, 23 | sortOrder: { 24 | date: `datum`, 25 | minedBlock: `opgenomen blok` 26 | }, 27 | title: `Contracten` 28 | }; 29 | -------------------------------------------------------------------------------- /i18n/_default/parityBar.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | button: { 19 | close: `Close` 20 | }, 21 | label: { 22 | parity: `Parity`, 23 | signer: `Signer` 24 | }, 25 | title: { 26 | accounts: `Default Account`, 27 | signer: `Parity Signer: Pending` 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /i18n/nl/parityBar.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | button: { 19 | close: `Sluit` 20 | }, 21 | label: { 22 | parity: `Parity`, 23 | signer: `Signer` 24 | }, 25 | title: { 26 | accounts: `Standaard Account`, 27 | signer: `Parity Signer: Wachten` 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /src/Status/SignerPending/signerPending.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | .signerPending { 19 | position: relative; 20 | cursor: pointer; 21 | } 22 | 23 | .label { 24 | font-size: 0.65rem !important; 25 | top: -0.7em !important; 26 | } 27 | 28 | .noRequest { 29 | min-width: 280px; 30 | } 31 | -------------------------------------------------------------------------------- /src/ShellExtend/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | import { extendShell } from './api'; 18 | import { injectExternalScript } from './script'; 19 | 20 | window.parity = Object.assign({}, window.parity || {}, { 21 | extendShell 22 | }); 23 | 24 | export { 25 | extendShell, 26 | injectExternalScript 27 | }; 28 | -------------------------------------------------------------------------------- /webpack/rules/es6.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | module.exports = { 18 | test: /\.js$/, 19 | include: /(get-own-enumerable-property-symbols|ethereumjs-tx|ethereumjs-util|stringify-object)/, 20 | use: [ { 21 | loader: 'happypack/loader', 22 | options: { 23 | id: 'babel' 24 | } 25 | } ] 26 | }; 27 | -------------------------------------------------------------------------------- /i18n/zh/tabBar.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | tooltip: { 19 | overview: `在应用的不同部分和不同界面进行导航,在账户界面、代币界面和分布式应用界面之间切换。` 20 | // navigate between the different parts and views of the application, switching between an account view, token view and decentralized application view 21 | } 22 | }; 23 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/tabBar.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | tooltip: { 19 | overview: `在應用的不同部分和不同介面進行導航,在帳戶介面、代幣介面和分散式應用介面之間切換。` 20 | // navigate between the different parts and views of the application, switching between an account view, token view and decentralized application view 21 | } 22 | }; 23 | -------------------------------------------------------------------------------- /i18n/zh/contracts.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | deploy: `部署`, // deploy 20 | develop: `开发`, // develop 21 | watch: `观察` // watch 22 | }, 23 | sortOrder: { 24 | date: `日期`, // date 25 | minedBlock: `挖到的区块` // mined block 26 | }, 27 | title: `合约` // Contracts 28 | }; 29 | -------------------------------------------------------------------------------- /i18n/zh/saveContract.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | cancel: `取消`, // Cancel 20 | save: `保存` // Save 21 | }, 22 | name: { 23 | hint: `为此合约选择一个名称`, // choose a name for this contract 24 | label: `合约名称` // contract name 25 | }, 26 | title: `保存合约` // save contract 27 | }; 28 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/contracts.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | deploy: `部署`, // deploy 20 | develop: `開發`, // develop 21 | watch: `觀察` // watch 22 | }, 23 | sortOrder: { 24 | date: `日期`, // date 25 | minedBlock: `挖到的區塊` // mined block 26 | }, 27 | title: `合約` // Contracts 28 | }; 29 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/saveContract.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | cancel: `取消`, // Cancel 20 | save: `儲存` // Save 21 | }, 22 | name: { 23 | hint: `為此合約選擇一個名稱`, // choose a name for this contract 24 | label: `合約名稱` // contract name 25 | }, 26 | title: `儲存合約` // save contract 27 | }; 28 | -------------------------------------------------------------------------------- /i18n/_default/deleteAccount.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | password: { 19 | hint: `provide the account password to confirm the account deletion`, 20 | label: `account password` 21 | }, 22 | question: `Are you sure you want to permanently delete the following account?`, 23 | title: `confirm removal` 24 | }; 25 | -------------------------------------------------------------------------------- /i18n/constants.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | const DEFAULT_LOCALE = 'en'; 18 | const DEFAULT_LOCALES = process.env.NODE_ENV === 'production' 19 | ? ['en'] 20 | : ['en', 'de', 'nl', 'zh', 'zh-Hant-TW']; 21 | const LS_STORE_KEY = '_parity::locale'; 22 | 23 | export { 24 | DEFAULT_LOCALE, 25 | DEFAULT_LOCALES, 26 | LS_STORE_KEY 27 | }; 28 | -------------------------------------------------------------------------------- /i18n/_default/addressSelect.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | fromEmail: `Verified using email {email}`, 19 | fromRegistry: `{name} (from registry)`, 20 | labels: { 21 | accounts: `accounts`, 22 | contacts: `contacts`, 23 | contracts: `contracts` 24 | }, 25 | noAccount: `No account matches this query...` 26 | }; 27 | -------------------------------------------------------------------------------- /electron/operations/doesParityExist.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | const fs = require('fs'); 18 | const util = require('util'); 19 | 20 | const parityPath = require('../utils/parityPath'); 21 | 22 | const fsExists = util.promisify(fs.stat); 23 | 24 | module.exports = () => fsExists(parityPath()) 25 | .then(() => { global.isParityInstalled = true; }); 26 | -------------------------------------------------------------------------------- /i18n/nl/deleteAccount.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | password: { 19 | hint: `Voer ter bevestiging het wachtwoord in om je account te verwijderen`, 20 | label: `account wachtwoord` 21 | }, 22 | question: `Weet je zeker dat je het volgende account permanent wilt verwijderen?`, 23 | title: `bevestig verwijderen` 24 | }; 25 | -------------------------------------------------------------------------------- /i18n/_default/extension.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | install: `Install the extension now`, 19 | intro: `Parity now has an extension available for Chrome that allows safe browsing of Ethereum-enabled decentralized applications. It is highly recommended that you install this extension to further enhance your Parity experience.` 20 | }; 21 | -------------------------------------------------------------------------------- /i18n/zh/parityBar.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | button: { 19 | close: `关闭` // Close 20 | }, 21 | label: { 22 | parity: `Parity`, // Parity 23 | signer: `Signer` // Singer 24 | }, 25 | title: { 26 | accounts: `默认账户`, // Default Account 27 | signer: `Parity Signer:待处理` // Parity Signer: Pending 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /i18n/nl/extension.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | install: `Installeer de extensie nu`, 19 | intro: `Parity heeft nu een extensie voor Chrome beschikbaar waarmee je veillig Ethereum-enabled decentrale applicaties kunt bekijken. Het wordt ten zeerste aanbevolen om deze extensie te installeren om je Parity ervaring nog beter te maken.` 20 | }; 21 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/parityBar.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | button: { 19 | close: `關閉` // Close 20 | }, 21 | label: { 22 | parity: `Parity`, // Parity 23 | signer: `Signer` // Singer 24 | }, 25 | title: { 26 | accounts: `預設帳戶`, // Default Account 27 | signer: `Parity Signer:待處理` // Parity Signer: Pending 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /i18n/_default/address.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | edit: `edit`, 20 | forget: `forget`, 21 | save: `save` 22 | }, 23 | delete: { 24 | confirmInfo: `Are you sure you want to remove the following address from your addressbook?`, 25 | title: `confirm removal` 26 | }, 27 | title: `Address Information` 28 | }; 29 | -------------------------------------------------------------------------------- /i18n/nl/address.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | edit: `bewerken`, 20 | forget: `vergeten`, 21 | save: `opslaan` 22 | }, 23 | delete: { 24 | confirmInfo: `Weet je zeker dat je het volgende adres uit je adresboek wilt verwijderen?`, 25 | title: `bevestig verwijderen` 26 | }, 27 | title: `Adres Informatie` 28 | }; 29 | -------------------------------------------------------------------------------- /i18n/nl/addressSelect.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | fromEmail: `Geverifieerd met behulp van e-mail {email}`, 19 | fromRegistry: `{name} (from registry)`, 20 | labels: { 21 | accounts: `accounts`, 22 | contacts: `contacten`, 23 | contracts: `contracts` 24 | }, 25 | noAccount: `Geen account gevonden voor deze zoekopdracht...` 26 | }; 27 | -------------------------------------------------------------------------------- /src/SyncWarning/syncWarning.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation; either version 3 of the License; or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful; 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not; see . 16 | */ 17 | 18 | .body { 19 | color: white; 20 | display: flex; 21 | flex-direction: column; 22 | margin: 0 auto; 23 | padding: 0.5em 4em; 24 | text-align: center; 25 | } 26 | 27 | .button { 28 | margin-top: 1em; 29 | } 30 | 31 | .body, 32 | .button { 33 | > * { 34 | margin: 0.5em 0; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/config.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | import appLogoDark from '../assets/parity-logo-black.png'; 18 | import appLogoDarkNoText from '@parity/shared/assets/images/parity-logo-black-no-text.svg'; 19 | import appLogoLight from '@parity/shared/assets/images/parity-logo-white.svg'; 20 | 21 | export { 22 | appLogoDark, 23 | appLogoDarkNoText, 24 | appLogoLight 25 | }; 26 | -------------------------------------------------------------------------------- /i18n/_default/requests.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | status: { 19 | error: `An error occured:`, 20 | transactionMined: `Transaction mined at block #{blockNumber} ({blockHeight} blocks ago)`, 21 | transactionSent: `Transaction sent to network with hash`, 22 | waitingForSigner: `Waiting for authorization in the Parity Signer` 23 | } 24 | }; 25 | -------------------------------------------------------------------------------- /i18n/zh/deleteAccount.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | password: { 19 | hint: `提供账户密码,确认删除账户`, // provide the account password to confirm the account deletion 20 | label: `账户密码`// account password 21 | }, 22 | question: `你确定你想永久地删除下面的账户?`, // Are you sure you want to permanently delete the following account? 23 | title: `确认删除`// confirm removal 24 | }; 25 | -------------------------------------------------------------------------------- /src/ShellExtend/script.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export function injectExternalScript (src, onload) { 18 | const script = document.createElement('script'); 19 | 20 | script.type = 'text/javascript'; 21 | script.async = true; 22 | script.onload = onload || function () {}; 23 | script.src = src; 24 | 25 | document.getElementsByTagName('head')[0].appendChild(script); 26 | } 27 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/deleteAccount.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | password: { 19 | hint: `提供帳戶密碼,確認刪除帳戶`, // provide the account password to confirm the account deletion 20 | label: `帳戶密碼`// account password 21 | }, 22 | question: `你確定你想永久地刪除下面的帳戶?`, // Are you sure you want to permanently delete the following account? 23 | title: `確認刪除`// confirm removal 24 | }; 25 | -------------------------------------------------------------------------------- /test/npmJsonRpc.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | try { 18 | var JsonRpc = require('../.npmjs/jsonrpc/library.js').default; 19 | 20 | if (typeof JsonRpc !== 'object') { 21 | throw new Error('JsonRpc'); 22 | } 23 | 24 | console.log(JsonRpc); 25 | process.exit(0); 26 | } catch (e) { 27 | console.error('An error occured:', e.toString().split('\n')[0]); 28 | process.exit(1); 29 | } 30 | -------------------------------------------------------------------------------- /i18n/zh/addressSelect.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | fromEmail: `使用邮箱{email}进行确认`, // Verified using email {email} 19 | fromRegistry: `{name}(来自注册)`, // {name} (from registry) 20 | labels: { 21 | accounts: `账户`, // accounts 22 | contacts: `合约`, // contacts 23 | contracts: `合约`// contracts 24 | }, 25 | noAccount: `查不到这个账户`// No account matches this query... 26 | }; 27 | -------------------------------------------------------------------------------- /src/DappRequests/RequestGroups/RequestGroups.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | $backgroundOne: #f80; 19 | $backgroundTwo: #e57a00; 20 | 21 | .requestGroups { 22 | background: $backgroundOne; 23 | background: linear-gradient($backgroundOne, $backgroundTwo); 24 | padding: 0.5em; 25 | text-align: right; 26 | color: white; 27 | 28 | > span { 29 | margin-right: 30px; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/addressSelect.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | fromEmail: `使用郵箱{email}進行確認`, // Verified using email {email} 19 | fromRegistry: `{name}(來自注冊)`, // {name} (from registry) 20 | labels: { 21 | accounts: `帳戶`, // accounts 22 | contacts: `合約`, // contacts 23 | contracts: `合約`// contracts 24 | }, 25 | noAccount: `查不到這個帳戶`// No account matches this query... 26 | }; 27 | -------------------------------------------------------------------------------- /i18n/zh/address.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | edit: `编辑`, // edit 20 | forget: `忘记`, // forget 21 | save: `保存`// save 22 | }, 23 | delete: { 24 | confirmInfo: `你确定你想把下面的地址从你的地址簿中移除吗?`, // Are you sure you want to remove the following address from your addressbook? 25 | title: `确认移除`// confirm removal 26 | }, 27 | title: `地址信息`// Address Information 28 | }; 29 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/address.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | edit: `編輯`, // edit 20 | forget: `忘記`, // forget 21 | save: `儲存`// save 22 | }, 23 | delete: { 24 | confirmInfo: `你確定你想把下面的地址從你的地址簿中移除嗎?`, // Are you sure you want to remove the following address from your addressbook? 25 | title: `確認移除`// confirm removal 26 | }, 27 | title: `地址資訊`// Address Information 28 | }; 29 | -------------------------------------------------------------------------------- /i18n/zh/extension.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | install: `现在就安装这个扩展`, // Install the extension now 19 | intro: `Parity现在有一个Chrome的扩展,可以安全的浏览以太坊所支持的分布式应用。我们强烈推荐你安装这个扩展来进一步提升你的Parity使用体验。` 20 | // Parity now has an extension available for Chrome that allows safe browsing of Ethereum-enabled decentralized applications. 21 | // It is highly recommended that you install this extension to further enhance your Parity experience. 22 | }; 23 | -------------------------------------------------------------------------------- /src/Status/DefaultAccount/AccountItem/accountItem.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | .defaultContent { 19 | color: rgba(0, 0, 0, 0.8); 20 | vertical-align: middle !important; 21 | } 22 | 23 | .avatarWrapper { 24 | width: 4.2em !important; 25 | display: flex; 26 | justify-content: center; 27 | } 28 | 29 | .bigAvatar { 30 | width: 4em !important; 31 | height: 4em !important; 32 | } 33 | 34 | .description { 35 | margin-top: 0.5em; 36 | } -------------------------------------------------------------------------------- /i18n/_default/application.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | frame: { 19 | error: `ERROR: This application cannot and should not be loaded in an embedded iFrame` 20 | }, 21 | status: { 22 | consensus: { 23 | capable: `Upgrade not required.`, 24 | capableUntil: `Upgrade required before #{blockNumber}`, 25 | incapableSince: `Upgrade required since #{blockNumber}` 26 | }, 27 | upgrade: `Upgrade` 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /i18n/languages.spec.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | import { DEFAULT_LOCALE } from './constants'; 18 | import languages from './languages'; 19 | 20 | const keys = Object.keys(languages); 21 | 22 | describe('i18n/languages', () => { 23 | it('has a language list', () => { 24 | expect(keys.length > 1).to.be.true; 25 | }); 26 | 27 | it('includes DEFAULT_LOCALE as a language', () => { 28 | expect(keys.includes(DEFAULT_LOCALE)).to.be.true; 29 | }); 30 | }); 31 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/extension.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | install: `現在就安裝這個擴充套件`, // Install the extension now 19 | intro: `Parity現在有一個Chrome的擴充套件,可以安全的瀏覽以太坊所支援的分散式應用。我們強烈推薦你安裝這個擴充套件來進一步提升你的Parity使用體驗。` 20 | // Parity now has an extension available for Chrome that allows safe browsing of Ethereum-enabled decentralized applications. 21 | // It is highly recommended that you install this extension to further enhance your Parity experience. 22 | }; 23 | -------------------------------------------------------------------------------- /i18n/nl/application.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | frame: { 19 | error: `FOUT: Deze applicatie kan niet en zou niet geladen moeten worden in een embedded iFrame` 20 | }, 21 | status: { 22 | consensus: { 23 | capable: `Capable`, 24 | capableUntil: `Capable tot #{blockNumber}`, 25 | incapableSince: `Incapable sinds #{blockNumber}`, 26 | unknown: `Onbekende capability` 27 | }, 28 | upgrade: `Upgrade` 29 | } 30 | }; 31 | -------------------------------------------------------------------------------- /src/Signer/utils/utils.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export function capitalize (str) { 18 | return str[0].toUpperCase() + str.slice(1).toLowerCase(); 19 | } 20 | 21 | export function identity (x) { 22 | return x; 23 | } 24 | 25 | export function toPromise (fn) { 26 | return new Promise((resolve, reject) => { 27 | fn((err, res) => { 28 | if (err) { 29 | reject(err); 30 | } else { 31 | resolve(res); 32 | } 33 | }); 34 | }); 35 | } 36 | -------------------------------------------------------------------------------- /test/npm/mocha.config.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | const chai = require('chai'); 18 | // const chaiAsPromised from 'chai-as-promised'; 19 | // const chaiEnzyme from 'chai-enzyme'; 20 | // const sinonChai from 'sinon-chai'; 21 | 22 | // chai.use(chaiAsPromised); 23 | // chai.use(chaiEnzyme()); 24 | // chai.use(sinonChai); 25 | 26 | // expose expect to global so we won't have to manually import & define it in every test 27 | global.expect = chai.expect; 28 | 29 | module.exports = {}; 30 | -------------------------------------------------------------------------------- /i18n/nl/errors.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | duplicateName: `deze naam bestaat al`, 19 | invalidKey: `de prive sleutel (raw key) is hexadecimaal, 64 karakters lang en en begint met "0x"`, 20 | noFile: `selecteer een geldig wallet bestand om te importeren`, 21 | noKey: `je dient de prive sleutel (raw private key) in te voeren`, 22 | noMatchPassword: `het ingevoerde wachtwoord is onjuist`, 23 | noName: `je dient een geldige naam voor het account op te geven` 24 | }; 25 | -------------------------------------------------------------------------------- /test/e2e/ethapi.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | import Api from '../../packages/api'; 18 | 19 | function createApi (transport) { 20 | if (process.env.DEBUG) { 21 | transport.setDebug(true); 22 | } 23 | 24 | return new Api(transport); 25 | } 26 | 27 | export function createHttpApi () { 28 | return createApi(new Api.Provider.Http('http://localhost:8545')); 29 | } 30 | 31 | export function createWsApi () { 32 | return createApi(new Api.Provider.WsSecure('ws://localhost:8546')); 33 | } 34 | -------------------------------------------------------------------------------- /i18n/_default/editMeta.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | description: { 19 | hint: `description for this address`, 20 | label: `address description` 21 | }, 22 | name: { 23 | label: `name` 24 | }, 25 | passwordHint: { 26 | hint: `a hint to allow password recovery`, 27 | label: `(optional) password hint` 28 | }, 29 | tags: { 30 | hint: `press to add a tag`, 31 | label: `(optional) tags` 32 | }, 33 | title: `edit metadata` 34 | }; 35 | -------------------------------------------------------------------------------- /src/Status/DefaultAccount/defaultAccount.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | .defaultAccount { 19 | cursor: pointer; 20 | } 21 | 22 | .popup { 23 | padding: 0 !important; 24 | } 25 | 26 | .list { 27 | margin: 0 !important; 28 | padding: 1em 1em !important; 29 | background-color: white; 30 | 31 | } 32 | 33 | .accountsList { 34 | background-color: #f5f5f5; 35 | height: 300px; 36 | overflow-y: auto; 37 | } 38 | 39 | .hasOtherAccounts { 40 | border-bottom: 1px solid #D4D4D5; 41 | } -------------------------------------------------------------------------------- /src/Signer/Embedded/embedded.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | import React from 'react'; 18 | 19 | import Container from '@parity/ui/lib/Container'; 20 | 21 | import PendingList from '../PendingList'; 22 | 23 | import styles from './embedded.css'; 24 | 25 | const CONTAINER_STYLE = { 26 | background: 'transparent' 27 | }; 28 | 29 | const Embedded = () => 30 | 33 | ; 34 | 35 | export default Embedded; 36 | -------------------------------------------------------------------------------- /i18n/nl/editMeta.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | description: { 19 | hint: `omschrijving van dit adres`, 20 | label: `adres omschrijving` 21 | }, 22 | name: { 23 | label: `naam` 24 | }, 25 | passwordHint: { 26 | hint: `een hint om je wachtwoord te herstellen`, 27 | label: `(optioneel) wachtwoord hint` 28 | }, 29 | tags: { 30 | hint: `druk op om een label toe te voegen`, 31 | label: `(optional) labels` 32 | }, 33 | title: `bewerk metadata` 34 | }; 35 | -------------------------------------------------------------------------------- /src/FirstRun/firstRun.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | .completed, 19 | .welcome { 20 | p { 21 | line-height: 1.5em; 22 | } 23 | 24 | ul { 25 | background: rgba(0, 0, 0, 0.1); 26 | margin-right: 12em; 27 | padding: 1em 3em; 28 | 29 | li { 30 | line-height: 2em; 31 | } 32 | } 33 | } 34 | 35 | .tnc { 36 | overflow-y: auto; 37 | 38 | p, 39 | li { 40 | opacity: 0.8; 41 | line-height: 1.5em; 42 | } 43 | 44 | .accept { 45 | margin: 1.5em 0; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /i18n/_default/faucet.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | close: `close`, 20 | done: `close`, 21 | request: `request` 22 | }, 23 | summary: { 24 | done: `Your Kovan ETH has been requested from the faucet which responded with -`, 25 | info: `To request a deposit of Kovan ETH to this address, you need to ensure that the address is sms-verified on the mainnet. Once executed the faucet will deposit Kovan ETH into the current account.` 26 | }, 27 | title: `Kovan ETH Faucet` 28 | }; 29 | -------------------------------------------------------------------------------- /src/library.parity.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | const isNode = typeof global !== 'undefined' && typeof global !== 'undefined'; 18 | const isBrowser = typeof self !== 'undefined' && typeof self.window !== 'undefined'; 19 | 20 | if (isBrowser) { 21 | require('whatwg-fetch'); 22 | } 23 | 24 | if (isNode) { 25 | global.fetch = require('node-fetch'); 26 | } 27 | 28 | import Abi from '@parity/abi'; 29 | import Api from '@parity/api'; 30 | 31 | const Parity = { Api, Abi }; 32 | 33 | export default Parity; 34 | export { Api, Abi }; 35 | -------------------------------------------------------------------------------- /electron/messages/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | const { runParity } = require('../operations/runParity'); 18 | const signerNewToken = require('../operations/signerNewToken'); 19 | 20 | /** 21 | * Handle all asynchronous messages from renderer to main. 22 | */ 23 | module.exports = (event, arg) => { 24 | switch (arg) { 25 | case 'run-parity': { 26 | runParity(); 27 | break; 28 | } 29 | case 'signer-new-token': { 30 | signerNewToken(event); 31 | break; 32 | } 33 | default: 34 | } 35 | }; 36 | -------------------------------------------------------------------------------- /i18n/zh/errors.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | duplicateName: `名称已存在`, // the name already exists 19 | invalidKey: `原始私钥需要被16进制,64个字符长度并以"0x"开头`, // the raw key needs to be hex, 64 characters in length and contain the prefix "0x" 20 | noFile: `选择一个可用的钱包文件来输入`, // select a valid wallet file to import 21 | noKey: `你需要提供原始私钥`, // you need to provide the raw private key 22 | noMatchPassword: `所提供的密码不正确`, // the supplied passwords does not match 23 | noName: `你需要明确一个可用的名称` // you need to specify a valid name 24 | }; 25 | -------------------------------------------------------------------------------- /src/DappRequests/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | import Store from './store'; 18 | import shellMiddleware from '../shellMiddleware'; 19 | 20 | import { extendShell } from '../ShellExtend'; 21 | 22 | function setupProviderFilters (provider) { 23 | const store = Store.create(provider); 24 | 25 | extendShell({ 26 | type: 'interceptor', 27 | middleware: shellMiddleware 28 | }); 29 | 30 | return store; 31 | } 32 | 33 | export default from './dappRequests'; 34 | 35 | export { 36 | Store, 37 | setupProviderFilters 38 | }; 39 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/errors.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | duplicateName: `名稱已存在`, // the name already exists 19 | invalidKey: `原始私鑰需要被16進位制,64個字元長度並以"0x"開頭`, // the raw key needs to be hex, 64 characters in length and contain the prefix "0x" 20 | noFile: `選擇一個可用的錢包檔案來輸入`, // select a valid wallet file to import 21 | noKey: `你需要提供原始私鑰`, // you need to provide the raw private key 22 | noMatchPassword: `所提供的密碼不正確`, // the supplied passwords does not match 23 | noName: `你需要明確一個可用的名稱` // you need to specify a valid name 24 | }; 25 | -------------------------------------------------------------------------------- /i18n/nl/faucet.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | close: `sluit`, 20 | done: `klaar`, 21 | request: `verzoek` 22 | }, 23 | summary: { 24 | done: `Jouw Kovan ETH is aangevraagd bij het faucet, wat reageerde met het volgende bericht -`, 25 | info: `Om een hoeveelheid Kovan ETH aan te vragen voor dit adres, moet je ervoor zorgen dat het adres op het mainnet sms-geverifieerd is. Zodra je dit uitvoert, zal het faucet Kovan ETH naar je huidige account verzenden.` 26 | }, 27 | title: `Kovan ETH Faucet` 28 | }; 29 | -------------------------------------------------------------------------------- /i18n/zh/application.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | frame: { 19 | error: `错误:这个应用不能也不应该载入到内置框架中`// ERROR: This application cannot and should not be loaded in an embedded iFrame 20 | }, 21 | status: { 22 | consensus: { 23 | capable: `可行`, // Capable 24 | capableUntil: `到第 #{blockNumber} 区块前可行`, // Capable until #{blockNumber} 25 | incapableSince: `自第 #{blockNumber} 区块后不可行`, // Incapable since #{blockNumber} 26 | unknown: `未知能力`// Unknown capability 27 | }, 28 | upgrade: `升级`// Upgrade 29 | } 30 | }; 31 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/application.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | frame: { 19 | error: `錯誤:這個應用不能也不應該載入到內建框架中`// ERROR: This application cannot and should not be loaded in an embedded iFrame 20 | }, 21 | status: { 22 | consensus: { 23 | capable: `可行`, // Capable 24 | capableUntil: `到第 #{blockNumber} 區塊前可行`, // Capable until #{blockNumber} 25 | incapableSince: `自第 #{blockNumber} 區塊後不可行`, // Incapable since #{blockNumber} 26 | unknown: `未知能力`// Unknown capability 27 | }, 28 | upgrade: `升級`// Upgrade 29 | } 30 | }; 31 | -------------------------------------------------------------------------------- /i18n/zh/editMeta.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | description: { 19 | hint: `此地址的描述`, // description for this address 20 | label: `地址描述` // address description 21 | }, 22 | name: { 23 | label: `名称` // name 24 | }, 25 | passwordHint: { 26 | hint: `密码恢复提示`, // a hint to allow password recovery 27 | label: `(可选)密码提示` // (optional) password hint 28 | }, 29 | tags: { 30 | hint: `按来添加一个标签`, // press to add a tag 31 | label: `(可选)标签` // (optional) tags 32 | }, 33 | title: `编辑元数据` // edit metadata 34 | }; 35 | -------------------------------------------------------------------------------- /src/dev.parity.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | dev::Parity.js 9 | 19 | 20 | 21 |
22 | best block #unknown 23 |
24 | 25 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/editMeta.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | description: { 19 | hint: `此地址的描述`, // description for this address 20 | label: `地址描述` // address description 21 | }, 22 | name: { 23 | label: `名稱` // name 24 | }, 25 | passwordHint: { 26 | hint: `密碼恢復提示`, // a hint to allow password recovery 27 | label: `(可選)密碼提示` // (optional) password hint 28 | }, 29 | tags: { 30 | hint: `按來新增一個標籤`, // press to add a tag 31 | label: `(可選)標籤` // (optional) tags 32 | }, 33 | title: `編輯元資料` // edit metadata 34 | }; 35 | -------------------------------------------------------------------------------- /src/Status/SignerPending/EtherValue/etherValue.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | import React from 'react'; 18 | import PropTypes from 'prop-types'; 19 | 20 | const EtherValue = ({ value }, { api }) => { 21 | const ether = api.util.fromWei(value); 22 | 23 | return ( 24 | 25 | {ether.toFormat(5)} 26 | ETH 27 | 28 | ); 29 | }; 30 | 31 | EtherValue.propTypes = { 32 | value: PropTypes.object.isRequired 33 | }; 34 | 35 | EtherValue.contextTypes = { 36 | api: PropTypes.object.isRequired 37 | }; 38 | 39 | export default EtherValue; 40 | -------------------------------------------------------------------------------- /i18n/_default/errors.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | duplicateName: `the name already exists`, 19 | invalidKey: `the raw key needs to be hex, 64 characters in length and contain the prefix "0x"`, 20 | noFile: `select a valid wallet file to import`, 21 | noKey: `you need to provide the raw private key`, 22 | noMatchBackupPhrase: `the supplied recovery phrase does not match`, 23 | noMatchPassword: `the supplied passwords does not match`, 24 | noMatchPhraseBackedUp: `type "I have written down the phrase"`, 25 | noName: `you need to specify a valid name` 26 | }; 27 | -------------------------------------------------------------------------------- /i18n/_default/home.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | account: { 19 | visited: `accessed {when}` 20 | }, 21 | accounts: { 22 | none: `No recent accounts history available`, 23 | title: `Recent Accounts` 24 | }, 25 | dapp: { 26 | visited: `accessed {when}` 27 | }, 28 | dapps: { 29 | none: `No recent Applications history available`, 30 | title: `Recent Dapps` 31 | }, 32 | title: `Parity Home`, 33 | url: { 34 | none: `No recent URL history available`, 35 | title: `Web Applications`, 36 | visited: `visited {when}` 37 | } 38 | }; 39 | -------------------------------------------------------------------------------- /src/Status/pluginStore.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | import { action, observable } from 'mobx'; 18 | 19 | let instance = null; 20 | 21 | export default class PluginStore { 22 | @observable components = []; 23 | 24 | @action addComponent (Component) { 25 | if (!Component) { 26 | throw new Error('Unable to attach empty Component to status'); 27 | } 28 | 29 | this.components.push(Component); 30 | 31 | return true; 32 | } 33 | 34 | static get () { 35 | if (!instance) { 36 | instance = new PluginStore(); 37 | } 38 | 39 | return instance; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/FirstRun/firstRun.spec.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | import { shallow } from 'enzyme'; 18 | import React from 'react'; 19 | import sinon from 'sinon'; 20 | 21 | import FirstRun from './'; 22 | 23 | let component; 24 | let onClose; 25 | 26 | function render (props = { visible: true }) { 27 | onClose = sinon.stub(); 28 | component = shallow( 29 | 33 | ); 34 | 35 | return component; 36 | } 37 | 38 | describe('FirstRun', () => { 39 | it('renders defaults', () => { 40 | expect(render()).to.be.ok; 41 | }); 42 | }); 43 | -------------------------------------------------------------------------------- /i18n/nl/home.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | account: { 19 | visited: `bekeken {when}` 20 | }, 21 | accounts: { 22 | none: `Geen recente account geschiedenis beschikbaar`, 23 | title: `Recente Accounts` 24 | }, 25 | dapp: { 26 | visited: `bekeken {when}` 27 | }, 28 | dapps: { 29 | none: `Geen recente applicatie geschiedenis beschikbaar`, 30 | title: `Recente Dapps` 31 | }, 32 | title: `Parity Home`, 33 | url: { 34 | none: `Geen recente URL geschiedenis beschikbaar`, 35 | title: `Web Applicaties`, 36 | visited: `bezocht {when}` 37 | } 38 | }; 39 | -------------------------------------------------------------------------------- /src/UpgradeParity/upgradeParity.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | .error { 19 | padding-top: 1.25em; 20 | } 21 | 22 | .step { 23 | display: flex; 24 | flex-direction: row; 25 | justify-content: flex-start; 26 | 27 | .icon { 28 | height: 10em !important; 29 | opacity: 0.5; 30 | width: 10em !important; 31 | } 32 | 33 | .text { 34 | background: rgba(0, 0, 0, 0.25); 35 | line-height: 1.5em; 36 | margin-left: 3em; 37 | padding: 2em; 38 | width: 100%; 39 | } 40 | } 41 | 42 | .version { 43 | display: inline; 44 | opacity: 0.5; 45 | white-space: normal; 46 | } 47 | -------------------------------------------------------------------------------- /i18n/nl/connection.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | connectingAPI: `Verbinden met de Parity Secure API.`, 19 | connectingNode: `Verbinden met de Parity Node. Conroleer of je Parity node actief en op het netwerk bereikbaar is als dit bericht op je scherm blijft staan.`, 20 | invalidToken: `ongeldige signer token`, 21 | noConnection: `Kan geen verbinding maken met de Parity Secure API. Voer {newToken} uit en geef het token hieronder in om het secure token bij te werken of een nieuwe te genereren.`, 22 | token: { 23 | hint: `een Parity gegenereerd token`, 24 | label: `secure token` 25 | } 26 | }; 27 | -------------------------------------------------------------------------------- /src/Extension/extension.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | $backgroundColor: #f80; 19 | $buttonColor: rgba(0, 0, 0, 0.5); 20 | $textColor: white; 21 | 22 | .body { 23 | background: $backgroundColor; 24 | color: white; 25 | max-width: 500px; 26 | opacity: 1; 27 | padding: 1em 4em 1em 2em; 28 | position: fixed; 29 | right: 1.5em; 30 | top: 1.5em; 31 | z-index: 1000; 32 | 33 | .buttonrow { 34 | text-align: right; 35 | } 36 | 37 | p { 38 | color: $textColor; 39 | } 40 | 41 | .close { 42 | cursor: pointer; 43 | position: absolute; 44 | right: 1em; 45 | top: 1em; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /electron/utils/parityPath.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | const { app } = require('electron'); 18 | 19 | // TODO parityPath is now in the Application Data folder by default, it would 20 | // be nice to first look if /usr/bin/parity exists (and return that as 21 | // parityPath). For now we keep Application Data as parityPath. 22 | // See https://github.com/parity-js/shell/issues/66 23 | 24 | // We cannot use app.getPath('userData') outside of the exports because 25 | // it would then be executed before app.setPath('userData') in index.js 26 | module.exports = () => `${app.getPath('userData')}/parity${process.platform === 'win32' ? '.exe' : ''}`; 27 | -------------------------------------------------------------------------------- /i18n/_default/contract.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | close: `Close`, 20 | details: `details`, 21 | edit: `edit`, 22 | execute: `execute`, 23 | forget: `forget` 24 | }, 25 | details: { 26 | title: `contract details` 27 | }, 28 | events: { 29 | eventPending: `pending`, 30 | noEvents: `No events has been sent from this contract.`, 31 | title: `events` 32 | }, 33 | minedBlock: `Mined at block #{blockNumber}`, 34 | queries: { 35 | buttons: { 36 | query: `Query` 37 | }, 38 | title: `queries` 39 | }, 40 | title: `Contract Information` 41 | }; 42 | -------------------------------------------------------------------------------- /webpack/build.server.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | // test only 17 | /** 18 | * Run `DAPPS_URL="/" PARITY_URL="127.0.0.1:8546" NODE_ENV="production" npm run build` 19 | * to build the project ; use this server to test that the minifed 20 | * version is working (this is a simple proxy server) 21 | */ 22 | 23 | var express = require('express'); 24 | 25 | var Shared = require('./shared'); 26 | 27 | var app = express(); 28 | 29 | Shared.addProxies(app); 30 | 31 | app.use(express.static('.build')); 32 | 33 | var server = app.listen(process.env.PORT || 3000, function () { 34 | console.log('Listening on port', server.address().port); 35 | }); 36 | -------------------------------------------------------------------------------- /i18n/nl/contract.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | close: `Sluit`, 20 | details: `details`, 21 | edit: `bewerken`, 22 | execute: `uitvoeren`, 23 | forget: `vergeten` 24 | }, 25 | details: { 26 | title: `contract details` 27 | }, 28 | events: { 29 | eventPending: `pending`, 30 | noEvents: `Er zijn vanuit dit contract nog geen events verzonden.`, 31 | title: `events` 32 | }, 33 | minedBlock: `Opgenomen in blok #{blockNumber}`, 34 | queries: { 35 | buttons: { 36 | query: `Query` 37 | }, 38 | title: `queries` 39 | }, 40 | title: `Contract Informatie` 41 | }; 42 | -------------------------------------------------------------------------------- /i18n/zh/faucet.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | close: `关闭`, // close 20 | done: `关闭`, // close 21 | request: `请求`// request 22 | }, 23 | summary: { 24 | done: `你已经向水龙头请求Kovan ETH测试币`, // Your Kovan ETH has been requested from the faucet which responded with - 25 | info: `如果请求将Kovan ETH测试币存入这个地址,你需要确定这个地址在主网络上已经用短信验证过了。 一旦执行水龙头将向当前账户存入Kovan ETH测试币。` 26 | // To request a deposit of Kovan ETH to this address, you need to ensure that the address is sms-verified on the mainnet.Once executed the faucet will deposit Kovan ETH into the current account. 27 | }, 28 | title: `Kovan ETH测试币水龙头`// Kovan ETH Faucet Kovan 29 | }; 30 | -------------------------------------------------------------------------------- /i18n/_default/loadContract.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | button: { 19 | cancel: `Cancel`, 20 | load: `Load`, 21 | no: `No`, 22 | yes: `Yes` 23 | }, 24 | contract: { 25 | savedAt: `Saved {when}` 26 | }, 27 | header: { 28 | saved: `Saved Contracts`, 29 | snippets: `Contract Snippets` 30 | }, 31 | removal: { 32 | confirm: `Are you sure you want to remove the following contract from your saved contracts?`, 33 | savedAt: `Saved {when}` 34 | }, 35 | tab: { 36 | local: `Local`, 37 | snippets: `Snippets` 38 | }, 39 | title: { 40 | remove: `confirm removal`, 41 | view: `view contracts` 42 | } 43 | }; 44 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/faucet.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | close: `關閉`, // close 20 | done: `關閉`, // close 21 | request: `請求`// request 22 | }, 23 | summary: { 24 | done: `你已經向水龍頭請求Kovan ETH測試幣`, // Your Kovan ETH has been requested from the faucet which responded with - 25 | info: `如果請求將Kovan ETH測試幣存入這個地址,你需要確定這個地址在主網路上已經用簡訊驗證過了。 一旦執行水龍頭將向當前帳戶存入Kovan ETH測試幣。` 26 | // To request a deposit of Kovan ETH to this address, you need to ensure that the address is sms-verified on the mainnet.Once executed the faucet will deposit Kovan ETH into the current account. 27 | }, 28 | title: `Kovan ETH測試幣水龍頭`// Kovan ETH Faucet Kovan 29 | }; 30 | -------------------------------------------------------------------------------- /src/Dapps/DappCard/dappCard.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | .card { 19 | position: relative; 20 | margin-top: 3em; 21 | 22 | .pin { 23 | display: none; 24 | position: absolute; 25 | top: 0; 26 | right: 1.6em; 27 | z-index: 1; 28 | } 29 | 30 | .pin.pinned { 31 | display: block; 32 | transform: rotate(45deg); 33 | } 34 | 35 | &:hover { 36 | .pin { 37 | display: block; 38 | } 39 | } 40 | 41 | .content { 42 | display: block; 43 | padding-top: 1em; 44 | 45 | .title { 46 | margin-top: 0.8em; 47 | } 48 | 49 | .image { 50 | margin-left: auto; 51 | margin-right: auto; 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /i18n/nl/loadContract.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | button: { 19 | cancel: `Annuleer`, 20 | load: `Laad`, 21 | no: `Nee`, 22 | yes: `Ja` 23 | }, 24 | contract: { 25 | savedAt: `Opgeslagen {when}` 26 | }, 27 | header: { 28 | saved: `Opgeslagen Contracten`, 29 | snippets: `Contract Snippets` 30 | }, 31 | removal: { 32 | confirm: `Weet je zeker dat je het volgende contract van je opgeslagen contracten wilt verwijderen?`, 33 | savedAt: `Opgeslagen {when}` 34 | }, 35 | tab: { 36 | local: `Lokaal`, 37 | snippets: `Snippets` 38 | }, 39 | title: { 40 | remove: `bevestig verwijderen`, 41 | view: `bekijk contracten` 42 | } 43 | }; 44 | -------------------------------------------------------------------------------- /i18n/zh/home.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | account: { 19 | visited: `已访问{when}` // accessed {when} 20 | }, 21 | accounts: { 22 | none: `没有可用的近期账户历史`, // No recent accounts history available 23 | title: `近期账户` // Recent Accounts 24 | }, 25 | dapp: { 26 | visited: `已访问{when}` // accessed {when} 27 | }, 28 | dapps: { 29 | none: `没有可用的近期应用历史`, // No recent Applications history available 30 | title: `近期Dapps` // Recent Dapps 31 | }, 32 | title: `Parity首页`, // Parity Home 33 | url: { 34 | none: `没有可用的近期URL历史`, // No recent URL history available 35 | title: `网页应用`, // Web Applications 36 | visited: `已访问{when}` // visited {when} 37 | } 38 | }; 39 | -------------------------------------------------------------------------------- /i18n/nl/accounts.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | button: { 19 | newAccount: `account`, 20 | newWallet: `wallet`, 21 | vaults: `kluizen` 22 | }, 23 | summary: { 24 | minedBlock: `Opgenomen in blok #{blockNumber}` 25 | }, 26 | title: `Accounts Overzicht`, 27 | tooltip: { 28 | actions: `voor de huidige weergave zijn koppelingen beschikbaar op de werkbalk voor snelle toegang: het uitvoeren van acties of het creëren van een nieuw item`, 29 | overview: `hier vind je een overzichtelijke weergave van je accounts, waarin je meta informatie kunt bewerken en transacties kunt uitvoeren en bekijken` 30 | }, 31 | tooltips: { 32 | owner: `{name} (eigenaar)` 33 | } 34 | }; 35 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/home.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | account: { 19 | visited: `已訪問{when}` // accessed {when} 20 | }, 21 | accounts: { 22 | none: `沒有可用的近期帳戶歷史`, // No recent accounts history available 23 | title: `近期帳戶` // Recent Accounts 24 | }, 25 | dapp: { 26 | visited: `已訪問{when}` // accessed {when} 27 | }, 28 | dapps: { 29 | none: `沒有可用的近期應用歷史`, // No recent Applications history available 30 | title: `近期Dapps` // Recent Dapps 31 | }, 32 | title: `Parity首頁`, // Parity Home 33 | url: { 34 | none: `沒有可用的近期URL歷史`, // No recent URL history available 35 | title: `網頁應用`, // Web Applications 36 | visited: `已訪問{when}` // visited {when} 37 | } 38 | }; 39 | -------------------------------------------------------------------------------- /src/FirstRun/store.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | import { action, observable } from 'mobx'; 18 | import store from 'store'; 19 | 20 | const LS_FIRST_RUN_KEY = '_parity::showFirstRun'; 21 | 22 | export default class Store { 23 | @observable visible = false; 24 | 25 | constructor (api) { 26 | this.toggle(store.get(LS_FIRST_RUN_KEY) !== false); 27 | } 28 | 29 | @action close = () => { 30 | this.toggle(false); 31 | } 32 | 33 | @action toggle = (visible = false) => { 34 | this.visible = visible; 35 | 36 | // There's no need to write to storage that the 37 | // First Run should be visible 38 | if (!visible) { 39 | store.set(LS_FIRST_RUN_KEY, !!visible); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/Status/Upgrade/upgrade.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | import React from 'react'; 18 | import PropTypes from 'prop-types'; 19 | import { FormattedMessage } from 'react-intl'; 20 | 21 | export default function Upgrade ({ upgradeStore }) { 22 | if (!upgradeStore.available) { 23 | return null; 24 | } 25 | 26 | return ( 27 |
28 | 32 | 36 | 37 |
38 | ); 39 | } 40 | 41 | Upgrade.propTypes = { 42 | upgradeStore: PropTypes.object.isRequired 43 | }; 44 | -------------------------------------------------------------------------------- /i18n/nl/account.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | button: { 19 | delete: `verwijder`, 20 | edit: `bewerk`, 21 | faucet: `Kovan ETH`, 22 | password: `wachtwoord`, 23 | shapeshift: `shapeshift`, 24 | transfer: `verzend`, 25 | verify: `verifieer` 26 | }, 27 | hardware: { 28 | confirmDelete: `Weet je zeker dat je de volgende hardware adressen van je account lijst wilt verwijderen?` 29 | }, 30 | header: { 31 | outgoingTransactions: `{count} uitgaande transacties`, 32 | uuid: `uuid: {uuid}` 33 | }, 34 | title: `Account Beheer`, 35 | transactions: { 36 | poweredBy: `Transactie lijst mede mogelijk door {etherscan}`, 37 | title: `transacties` 38 | } 39 | }; 40 | -------------------------------------------------------------------------------- /i18n/zh/contract.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | close: `关闭`, // close 20 | details: `详细资料`, // details 21 | edit: `编辑`, // edit 22 | execute: `运行`, // execute 23 | forget: `forget` // forget 24 | }, 25 | details: { 26 | title: `合约细节` // contract details 27 | }, 28 | events: { 29 | eventPending: `待定中`, // pending 30 | noEvents: `此合约没有发送过任何事件`, // No events has been sent from this contract. 31 | title: `事件` // events 32 | }, 33 | minedBlock: `挖到了第{blockNumber}个区块`, // Mined at block #{blockNumber} 34 | queries: { 35 | buttons: { 36 | query: `查询` // Query 37 | }, 38 | title: `查询` // queries 39 | }, 40 | title: `合约信息` // Contract Information 41 | }; 42 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/contract.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | buttons: { 19 | close: `關閉`, // close 20 | details: `詳細資料`, // details 21 | edit: `編輯`, // edit 22 | execute: `執行`, // execute 23 | forget: `forget` // forget 24 | }, 25 | details: { 26 | title: `合約細節` // contract details 27 | }, 28 | events: { 29 | eventPending: `待定中`, // pending 30 | noEvents: `此合約沒有傳送過任何事件`, // No events has been sent from this contract. 31 | title: `事件` // events 32 | }, 33 | minedBlock: `挖到了第{blockNumber}個區塊`, // Mined at block #{blockNumber} 34 | queries: { 35 | buttons: { 36 | query: `查詢` // Query 37 | }, 38 | title: `查詢` // queries 39 | }, 40 | title: `合約資訊` // Contract Information 41 | }; 42 | -------------------------------------------------------------------------------- /i18n/_default/addAddress.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | button: { 19 | add: `Save Address`, 20 | close: `Cancel` 21 | }, 22 | header: `To add a new entry to your addressbook, you need the network address of the account and can supply an optional description. Once added it will reflect in your address book.`, 23 | input: { 24 | address: { 25 | hint: `the network address for the entry`, 26 | label: `network address` 27 | }, 28 | description: { 29 | hint: `an expanded description for the entry`, 30 | label: `(optional) address description` 31 | }, 32 | name: { 33 | hint: `a descriptive name for the entry`, 34 | label: `address name` 35 | } 36 | }, 37 | label: `add saved address` 38 | }; 39 | -------------------------------------------------------------------------------- /src/Dapp/dapp.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | /* This file is part of Parity. 3 | /* 4 | /* Parity is free software: you can redistribute it and/or modify 5 | /* it under the terms of the GNU General Public License as published by 6 | /* the Free Software Foundation, either version 3 of the License, or 7 | /* (at your option) any later version. 8 | /* 9 | /* Parity is distributed in the hope that it will be useful, 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | /* GNU General Public License for more details. 13 | /* 14 | /* You should have received a copy of the GNU General Public License 15 | /* along with Parity. If not, see . 16 | */ 17 | 18 | .frame, 19 | .full { 20 | background: white; 21 | box-sizing: border-box; 22 | border: 0; 23 | flex-grow: 1; 24 | margin: 0; 25 | padding: 0; 26 | width: 100%; 27 | z-index: 1; 28 | } 29 | 30 | .full { 31 | font-family: 'Roboto', sans-serif; 32 | font-size: 2em; 33 | font-weight: 300; 34 | display: flex; 35 | align-items: center; 36 | justify-content: center; 37 | color: #999; 38 | } 39 | 40 | .loading { 41 | opacity: 0; 42 | animation-duration: 0.5s; 43 | animation-name: fadeIn; 44 | animation-delay: 1.5s; 45 | animation-fill-mode: forwards; 46 | } 47 | 48 | @keyframes fadeIn { 49 | from { 50 | opacity: 0; 51 | } 52 | 53 | to { 54 | opacity: 1; 55 | } 56 | } 57 | 58 | -------------------------------------------------------------------------------- /i18n/zh/loadContract.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | button: { 19 | cancel: `取消`, // Cancel 20 | load: `加载`, // Load 21 | no: `否`, // No 22 | yes: `是` // Yes 23 | }, 24 | contract: { 25 | savedAt: `已保存{when}` // Saved {when} 26 | }, 27 | header: { 28 | saved: `已保存的合约`, // Saved Contracts 29 | snippets: `合约片段` // Contract Snippets 30 | }, 31 | removal: { 32 | confirm: `你确定要将以下合约从已保存的合约中删除吗?`, // Are you sure you want to remove the following contract from your saved contracts? 33 | savedAt: `已保存{when}` // Saved {when} 34 | }, 35 | tab: { 36 | local: `本地`, // Local 37 | snippets: `片段` // Snippets 38 | }, 39 | title: { 40 | remove: `确认删除`, // confirm removal 41 | view: `查看合约` // view contracts 42 | } 43 | }; 44 | -------------------------------------------------------------------------------- /i18n/_default/executeContract.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | button: { 19 | cancel: `cancel`, 20 | next: `next`, 21 | post: `post transaction`, 22 | prev: `prev` 23 | }, 24 | details: { 25 | address: { 26 | hint: `from account`, 27 | label: `the account to transact with` 28 | }, 29 | advancedCheck: { 30 | label: `advanced sending options` 31 | }, 32 | amount: { 33 | hint: `the amount to send to with the transaction`, 34 | label: `transaction value (in ETH)` 35 | }, 36 | function: { 37 | hint: `the function to call on the contract`, 38 | label: `function to execute` 39 | } 40 | }, 41 | steps: { 42 | advanced: `advanced options`, 43 | transfer: `function details` 44 | } 45 | }; 46 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/loadContract.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | button: { 19 | cancel: `取消`, // Cancel 20 | load: `載入`, // Load 21 | no: `否`, // No 22 | yes: `是` // Yes 23 | }, 24 | contract: { 25 | savedAt: `已儲存{when}` // Saved {when} 26 | }, 27 | header: { 28 | saved: `已儲存的合約`, // Saved Contracts 29 | snippets: `合約片段` // Contract Snippets 30 | }, 31 | removal: { 32 | confirm: `你確定要將以下合約從已儲存的合約中刪除嗎?`, // Are you sure you want to remove the following contract from your saved contracts? 33 | savedAt: `已儲存{when}` // Saved {when} 34 | }, 35 | tab: { 36 | local: `本地`, // Local 37 | snippets: `片段` // Snippets 38 | }, 39 | title: { 40 | remove: `確認刪除`, // confirm removal 41 | view: `檢視合約` // view contracts 42 | } 43 | }; 44 | -------------------------------------------------------------------------------- /i18n/zh/account.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | button: { 19 | delete: `删除`, // delete 20 | edit: `编辑`, // edit 21 | faucet: `Kovan测试网络以太币`, // Kovan ETH 22 | password: `密码`, // password 23 | shapeshift: `shapeshift`, 24 | transfer: `转账`, // transfer 25 | verify: `确认`// verify 26 | }, 27 | hardware: { 28 | confirmDelete: `你确定从你的账户列表中移除下面的硬件地址吗?` 29 | }, // Are you sure you want to remove the following hardware address from your account list? 30 | header: { 31 | outgoingTransactions: `{count}笔正在发生的转账`, // {count} outgoing transactions 32 | uuid: `uuid: {uuid}` 33 | }, 34 | title: `账户管理`, // Account Management 35 | transactions: { 36 | poweredBy: `Transaction list powered by {etherscan}提供的交易列表`, 37 | title: `交易`// transactions 38 | } 39 | }; 40 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/account.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | button: { 19 | delete: `刪除`, // delete 20 | edit: `編輯`, // edit 21 | faucet: `Kovan測試網路以太幣`, // Kovan ETH 22 | password: `密碼`, // password 23 | shapeshift: `shapeshift`, 24 | transfer: `轉帳`, // transfer 25 | verify: `確認`// verify 26 | }, 27 | hardware: { 28 | confirmDelete: `你確定從你的帳戶列表中移除下面的硬體地址嗎?` 29 | }, // Are you sure you want to remove the following hardware address from your account list? 30 | header: { 31 | outgoingTransactions: `{count}筆正在發生的轉帳`, // {count} outgoing transactions 32 | uuid: `uuid: {uuid}` 33 | }, 34 | title: `帳戶管理`, // Account Management 35 | transactions: { 36 | poweredBy: `Transaction list powered by {etherscan}提供的交易列表`, 37 | title: `交易`// transactions 38 | } 39 | }; 40 | -------------------------------------------------------------------------------- /i18n/nl/addAddress.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | button: { 19 | add: `Adres Opslaan`, 20 | close: `Annuleer` 21 | }, 22 | header: `Om een nieuwe invoer aan je adresboek toe te voegen, heb je het netwerk adres van het account nodig en kun je optioneel een beschrijving toevoegen. Zodra de nieuwe invoer is toegevoegd, zal het in je adresboek verschijnen.`, 23 | input: { 24 | address: { 25 | hint: `het netwerk adres van het item`, 26 | label: `Netwerk Adres` 27 | }, 28 | description: { 29 | hint: `een uitgebereide beschrijving voor het adres`, 30 | label: `(optioneel) adres beschrijving` 31 | }, 32 | name: { 33 | hint: `een beschrijvende naam van het adres`, 34 | label: `Adres Naam` 35 | } 36 | }, 37 | label: `voeg een opgeslagen adres toe` 38 | }; 39 | -------------------------------------------------------------------------------- /i18n/en/settings.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | label: 'settings', 19 | 20 | background: { 21 | label: 'background' 22 | }, 23 | 24 | parity: { 25 | label: 'parity' 26 | }, 27 | 28 | proxy: { 29 | label: 'proxy' 30 | }, 31 | 32 | views: { 33 | label: 'views', 34 | 35 | accounts: { 36 | label: 'Accounts' 37 | }, 38 | 39 | addresses: { 40 | label: 'Addressbook' 41 | }, 42 | 43 | apps: { 44 | label: 'Applications' 45 | }, 46 | 47 | contracts: { 48 | label: 'Contracts' 49 | }, 50 | 51 | home: { 52 | label: 'Home' 53 | }, 54 | 55 | status: { 56 | label: 'Status' 57 | }, 58 | 59 | signer: { 60 | label: 'Signer' 61 | }, 62 | 63 | settings: { 64 | label: 'Settings' 65 | } 66 | } 67 | }; 68 | -------------------------------------------------------------------------------- /i18n/zh/accounts.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | button: { 19 | newAccount: `账户`, // account 20 | newWallet: `钱包`, // wallet 21 | vaults: `保险库`// vaults 22 | }, 23 | summary: { 24 | minedBlock: `在第#{blockNumber}个区块被挖出`// Mined at block #{blockNumber} 25 | }, 26 | title: `账户总览`, // Accounts Overview 27 | tooltip: { 28 | actions: `与当前视窗有关的操作可以在工具栏中快速被找到,不论是执行操作还是创建新项`, 29 | // actions relating to the current view are available on the toolbar for quick access, be it for performing actions or creating a new item 30 | overview: `你的账户很容易使用,使你可以编辑元信息、转账、查看交易和向账户充值` 31 | // your accounts are visible for easy access, allowing you to edit the meta information, make transfers, view transactions and fund the account 32 | }, 33 | tooltips: { 34 | owner: `{name}持有者`// {name} (owner) 35 | } 36 | }; 37 | -------------------------------------------------------------------------------- /src/util/csp.js: -------------------------------------------------------------------------------- 1 | const shared = [ 2 | // Restrict everything to the same origin by default. 3 | "default-src 'self';", 4 | // Allow connecting to WS servers and HTTP(S) servers. 5 | // We could be more restrictive and allow only RPC server URL. 6 | 'connect-src http: https: ws: wss:;', 7 | // Allow framing any content from HTTP(S). 8 | // Again we could only allow embedding from RPC server URL. 9 | // (deprecated) 10 | "frame-src 'none';", 11 | // Allow framing and web workers from HTTP(S). 12 | "child-src 'self' http: https:;", 13 | // We allow data: blob: and HTTP(s) images. 14 | // We could get rid of wildcarding HTTP and only allow RPC server URL. 15 | // (http required for local dapps icons) 16 | "img-src 'self' 'unsafe-inline' file: data: blob: http: https:;", 17 | // Allow style from data: blob: and HTTPS. 18 | "style-src 'self' 'unsafe-inline' data: blob: https:;", 19 | // Allow fonts from data: and HTTPS. 20 | "font-src 'self' data: https:;", 21 | // Same restrictions as script-src with additional 22 | // blob: that is required for camera access (worker) 23 | "worker-src 'self' https: blob:;", 24 | // Disallow submitting forms from any dapps 25 | "form-action 'none';", 26 | // Never allow mixed content 27 | 'block-all-mixed-content;' 28 | ]; 29 | 30 | // These are the CSP for the renderer process (aka the shell) 31 | const rendererCsp = [ 32 | ...shared, 33 | // Allow which are objects 34 | "object-src 'self';", 35 | // Allow scripts 36 | "script-src 'self';" 37 | ]; 38 | 39 | module.exports = { 40 | rendererCsp 41 | }; 42 | -------------------------------------------------------------------------------- /i18n/zh-Hant-TW/accounts.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | 17 | export default { 18 | button: { 19 | newAccount: `帳戶`, // account 20 | newWallet: `錢包`, // wallet 21 | vaults: `保險庫`// vaults 22 | }, 23 | summary: { 24 | minedBlock: `在第#{blockNumber}個區塊被挖出`// Mined at block #{blockNumber} 25 | }, 26 | title: `帳戶總覽`, // Accounts Overview 27 | tooltip: { 28 | actions: `與當前視窗有關的操作可以在工具欄中快速被找到,不論是執行操作還是建立新項`, 29 | // actions relating to the current view are available on the toolbar for quick access, be it for performing actions or creating a new item 30 | overview: `你的帳戶很容易使用,使你可以編輯元資訊、轉帳、檢視交易和向帳戶充值` 31 | // your accounts are visible for easy access, allowing you to edit the meta information, make transfers, view transactions and fund the account 32 | }, 33 | tooltips: { 34 | owner: `{name}持有者`// {name} (owner) 35 | } 36 | }; 37 | -------------------------------------------------------------------------------- /i18n/zh/connection.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015-2017 Parity Technologies (UK) Ltd. 2 | // This file is part of Parity. 3 | 4 | // Parity is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | 9 | // Parity is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // You should have received a copy of the GNU General Public License 15 | // along with Parity. If not, see . 16 | export default { 17 | connectingAPI: `正在连接至Parity Secure API`, // Connecting to the Parity Secure API. 18 | connectingNode: `正在连接Parity节点。如果弹出任何信息,请确认你的Parity节点正在运行并连接至互联网。`, 19 | // Connecting to the Parity Node. If this informational message persists, 20 | // please ensure that your Parity node is running and reachable on the network. 21 | invalidToken: `无效的签名令牌`, // invalid signer token 22 | noConnection: `无法连接至Parity Secure API。请升级的你的安全令牌或者生成一个新的,运行{newToken}并粘贴生成的令牌到下方。`, 23 | // Unable to make a connection to the Parity Secure API. To update your secure 24 | // token or to generate a new one, run {newToken} and paste the generated token 25 | // into the space below. 26 | token: { 27 | hint: `一个Parity生成的令牌`, // a generated token from Parity 28 | label: `安全令牌` // secure token 29 | } 30 | }; 31 | --------------------------------------------------------------------------------