Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

nw #390

Open
wants to merge 52 commits into
base: master
Choose a base branch
from
Open

nw #390

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
ae16844
UI branding
maciejhirsz Jul 30, 2018
18c2e8e
Update UI dependency
maciejhirsz Jul 30, 2018
c098552
Merge pull request #1 from energywebfoundation/branding
maciejhirsz Jul 30, 2018
4781618
Update README.md
ETHorHIL Aug 2, 2018
41bcfd2
Update README.md
ETHorHIL Aug 2, 2018
9266d5a
Update README.md
ETHorHIL Aug 2, 2018
ce13a02
Update README.md
ETHorHIL Aug 2, 2018
fd249af
Use nightly version of parity
amaury1093 Aug 14, 2018
9cf6824
Merge pull request #2 from amaurymartiny/am-nightly
ewaldhesse Aug 17, 2018
77cc0d7
Merge branch 'master' of ssh://github.com/parity-js/shell into am-update
amaury1093 Aug 17, 2018
81d60b3
Add travis file
amaury1093 Aug 17, 2018
4f90120
Make travis build correctly the files
amaury1093 Aug 17, 2018
783ef8e
Build windows on osx machine
amaury1093 Aug 20, 2018
a11bf3d
Merge pull request #4 from amaurymartiny/am-travis
ewaldhesse Aug 21, 2018
29256d3
Run travis again
amaury1093 Aug 21, 2018
3d07feb
Merge pull request #5 from amaurymartiny/am-run-travis
ewaldhesse Aug 21, 2018
10c7d90
Update README.md
ewaldhesse Aug 24, 2018
edfebf8
Update README.md
ewaldhesse Aug 24, 2018
7a22b6c
Update README.md
ewaldhesse Aug 24, 2018
0d4beb2
Update README.md
ewaldhesse Aug 24, 2018
c4663c9
Update README.md
ewaldhesse Aug 24, 2018
71b556a
Update README.md
ewaldhesse Aug 24, 2018
25c65b5
Update README.md
ewaldhesse Aug 24, 2018
ade91b9
fix(readme): linux binary link
ngyam Aug 28, 2018
5151135
fix(readme): typo corrected
ngyam Aug 28, 2018
77276f8
feat(fetch-parity): stable instead of nightly
ngyam Aug 28, 2018
5e22b9e
Merge pull request #6 from energywebfoundation/feat/rewiring_client_v…
ngyam Aug 29, 2018
2916eec
feat(fetch-parity): bump release number
ngyam Aug 29, 2018
972b027
Merge pull request #7 from energywebfoundation/feat/rewiring_client_v…
ngyam Aug 29, 2018
e04fc97
fix(client version): wired to use v1.11.11
ngyam Sep 14, 2018
6e12c99
Merge pull request #8 from energywebfoundation/fix/using_client_v11111
ngyam Sep 14, 2018
1cc0933
feat(rebranding): icons, names and paths changed
ngyam Sep 14, 2018
3f4cfa8
Merge pull request #9 from energywebfoundation/feat/rebranding
ngyam Sep 17, 2018
44133e4
Update README.md
ETHorHIL Sep 17, 2018
74bf567
Update README.md
ETHorHIL Sep 21, 2018
e303f1e
Merge pull request #10 from energywebfoundation/ETHorHIL-patch-1
ngyam Sep 21, 2018
73d05a0
feat(client-version): changed to 2.3.0
ngyam Jan 30, 2019
3990c45
feat(client-version): bumping version to 0.4.4
ngyam Jan 30, 2019
df0fa2d
feat(client-version): update electron version to 4.0.3
ngyam Jan 30, 2019
2d083f9
Merge pull request #11 from energywebfoundation/feat/change_client_ve…
ngyam Jan 30, 2019
f6bb75d
Update README.md
ETHorHIL Feb 1, 2019
53c33db
Feat(packages):electron builder version upgrade
Feb 1, 2019
aa567f4
Merge pull request #13 from energywebfoundation/feat/new_electron_bui…
ngyam Feb 1, 2019
8f0f55e
Merge pull request #12 from energywebfoundation/ETHorHIL-patch-2
ngyam Feb 1, 2019
c7a3641
Update README.md
manihagh Feb 1, 2019
37a892b
Merge pull request #14 from energywebfoundation/update-readme
ngyam Feb 1, 2019
e45ac3c
Updated parity client version.
manihagh Feb 6, 2019
fe079ab
Merge pull request #15 from energywebfoundation/feat/new_parity_clien…
ngyam Feb 8, 2019
a9ef89c
feat(client): version updated to 2.3.3
ngyam Feb 15, 2019
0fe4195
0.4.6
ngyam Feb 15, 2019
1f4d329
Merge pull request #18 from energywebfoundation/feat/client_version_t…
ngyam Feb 15, 2019
6a010b0
update(README): links updated to v0.4.6
ngyam Feb 15, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ _Before filing a new issue, please **provide the following information**._
> I'm running:
>
> - **Parity client version**: 0.0.0
> - **Parity UI version**: 0.0.0
> - **EnergyWeb UI version**: 0.0.0
> - **Operating system**: Windows / MacOS / Linux
> - **Installed via**: installer / snap / binaries / from source
> - **Fully synchronized**: no / yes
> - **Network**: ethereum / ropsten / kovan / ...
> - **I tried to restart both Parity UI and Parity Ethereum client**: no / yes
> - **I tried to restart both EnergyWeb UI and Parity Ethereum client**: no / yes

_Your issue description goes here below. Try to include **actual** vs. **expected behavior** and **steps to reproduce** the issue._

35 changes: 35 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
language: node_js
env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
os:
- linux
- osx
node_js:
- '8'
cache:
yarn: true
directories:
- node_modules
before_install:
- npm install --global yarn --cache-min 999999999
install:
- npm install
script:
- ./scripts/lint.sh
- ./scripts/test.sh
- ./scripts/build.sh
deploy:
- provider: script
script: npm run release -- --linux
skip_cleanup: true
on:
condition: $TRAVIS_OS_NAME = linux
branch: master
- provider: script
script: npm run release -- --mac --win
skip_cleanup: true
on:
condition: $TRAVIS_OS_NAME = osx
branch: master
97 changes: 22 additions & 75 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,22 @@
# Parity UI
## This project is not actively maintained by Parity Technologies anymore. This is a community maintained project.
# Energy Web Client UI

### [Download the latest release](https://github.com/parity-js/shell/releases/latest)
To quickly get started just download the binary for your OS and install the software.

[![GPLv3](https://img.shields.io/badge/license-GPL%20v3-green.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html)

### Join the chat!

Get in touch with us on Gitter:
[![Gitter: Parity](https://img.shields.io/badge/gitter-parity-4AB495.svg)](https://gitter.im/paritytech/parity)

Or join our community on Matrix:
[![Riot: +Parity](https://img.shields.io/badge/riot-%2Bparity%3Amatrix.parity.io-orange.svg)](https://riot.im/app/#/group/+parity:matrix.parity.io)

Be sure to check out [our wiki](https://wiki.parity.io/Parity-Wallet) for more information.

----
## About Parity UI
[Windows](https://github.com/energywebfoundation/energyweb-ui/releases/download/v0.4.6/energyweb-ui-setup-0.4.6.exe)

[Mac](https://github.com/energywebfoundation/energyweb-ui/releases/download/v0.4.6/energyweb-ui-0.4.6.pkg)

[Linux](https://github.com/energywebfoundation/energyweb-ui/releases/download/v0.4.6/energyweb-ui_0.4.6_amd64.deb)

Parity UI is a User Interface desktop application for [Parity Ethereum Client](https://github.com/paritytech/parity/blob/master/README.md) >=v1.10. It features a Wallet supporting Ether and ERC-20 Tokens, a Contract development environment, and so much more. Parity UI will download and run [Parity Ethereum Client](https://github.com/paritytech/parity/blob/master/README.md) in the background if it is not found on the system.
By default Parity UI will try connect to a Parity Ethereum node using Websocket port 8546. You can use alternative ports, see [CLI Options](#cli-options) below.
[Release history](https://github.com/energywebfoundation/energyweb-ui/releases)

You can download Parity UI [here](https://github.com/parity-js/shell/releases/latest) or follow the instructions below to build from source.

## Install from the snap store

In any of the [supported Linux distros](https://snapcraft.io/docs/core/install):

```bash
sudo snap install parity-ui
```

Or, if you want to contribute testing the upcoming release:

```bash
sudo snap install parity-ui --beta
```
[![GPLv3](https://img.shields.io/badge/license-GPL%20v3-green.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html)

And to test the latest code landed into the master branch:

```bash
sudo snap install parity-ui --edge
```
## About Energy Web Client UI

---
The Energy Web Client UI (EWF UI) is a User Interface desktop application for the [Parity Ethereum Client](https://github.com/paritytech/parity/blob/master/README.md) >=v1.10. It features a Wallet supporting Ether and ERC-20 Tokens, a contract development environment, and so much more. EWF UI will download and run [Parity Ethereum Client](https://github.com/paritytech/parity/blob/master/README.md) in the background if it is not found on the system.
By default EWF UI will try connect to Tobalaba using Websocket port 8546.

## Build from source

Expand All @@ -64,43 +37,17 @@ npm run release

This command may take some time. Once finished, you will see binaries for your OS in the `dist/` folder.

## Developing

The best Developer Experience is achieved by running:

```bash
parity --ui-no-validation # Warning: INSECURE. Only use it when developing the UI.
npm start
```
### EWF Client usage
Visit our [EWF Wiki](https://energyweb.atlassian.net/wiki/spaces/EWF/pages/544374788/Setting+Up+a+Node) for high level, or Parity's [Wiki](https://wiki.parity.io/) for in depth information.

A new browser tab will open on `http://localhost:3000` with the UI, and this tab will refresh on any code change. This DX allows fast iterations.
### Any issues with the client itself?
Client related issues are best filed in the [Parity Repo](https://github.com/paritytech/parity-ethereum).

If you want to test the rendering in an Electron window, run parallely with the previous command:
### How to get in touch?
[Get in touch](https://energyweb.org/contact-us/) with EWF.

```bash
npm run electron:dev
```

This will spawn an Electron window serving `http://localhost:3000`. Same thing, the Electron window will refresh on any code change.
Get in touch with Parity on Gitter:
[![Gitter: Parity](https://img.shields.io/badge/gitter-parity-4AB495.svg)](https://gitter.im/paritytech/parity)

## CLI Options
All other flags passed to Parity UI will be passed down to parity when trying to launch it.
```bash
Operating Options:
--no-run-parity
Parity UI will not attempt to run
the locally installed parity.

--ui-dev
Parity UI will load http://localhost:3000.
WARNING: Only use this is you plan on developing on Parity UI.

--ws-interface=[IP]
Specify the hostname portion of the WebSockets server
Parity UI will connect to. IP should be an
interface's IP address. (default: 127.0.0.1)

--ws-port=[PORT]
Specify the port portion of the WebSockets
server Parity UI will connect to. (default: 8546)
```
Or join the Parity community on Matrix:
[![Riot: +Parity](https://img.shields.io/badge/riot-%2Bparity%3Amatrix.parity.io-orange.svg)](https://riot.im/app/#/group/+parity:matrix.parity.io)
Binary file added assets/icon/EWF-Brandmark-white1024px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icon/EWF-Brandmark-white512px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions electron/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"appId": "io.parity.ui",
"appId": "io.ewf.ui",
"directories": {
"buildResources": "./"
},
"linux": {
"category": "Utility",
"icon": "./assets/icon/small-white-512x512.png",
"icon": "./assets/icon/EWF-Brandmark-white512px.png",
"target": [
"AppImage",
"snap",
Expand All @@ -15,7 +15,7 @@
},
"mac": {
"category": "public.app-category.productivity",
"icon": "./assets/icon/small-white-512x512.png",
"icon": "./assets/icon/EWF-Brandmark-white512px.png",
"target": [
"pkg"
]
Expand All @@ -29,11 +29,11 @@
"allowAnywhere": false,
"allowCurrentUserHome": false
},
"productName": "Parity UI",
"productName": "EnergyWeb UI",
"publish": "github",
"win": {
"icon": "./assets/icon/small-white-512x512.png",
"publisherName": "Parity Technologies (UK) Ltd.",
"icon": "./assets/icon/EWF-Brandmark-white512px.png",
"publisherName": "Energy Web DevHub GmbH",
"target": "nsis"
}
}
2 changes: 1 addition & 1 deletion electron/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function createWindow () {
const sanitizedUrl = details.url.replace(/'/, '');

if (!webContents.isDestroyed()) {
webContents.executeJavaScript(`console.warn('Parity UI blocked a request to access ${sanitizedUrl}')`);
webContents.executeJavaScript(`console.warn('EnergyWeb UI blocked a request to access ${sanitizedUrl}')`);
}

callback({ cancel: true });
Expand Down
8 changes: 4 additions & 4 deletions electron/installers/windows/installer.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
; https://www.electron.build/configuration/nsis#how-do-change-the-default-installation-directory-to-custom
!macro preInit
SetRegView 64
WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Parity Technologies\Parity UI"
WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Parity Technologies\Parity UI"
WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Parity Technologies\EnergyWeb UI"
WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Parity Technologies\EnergyWeb UI"
SetRegView 32
WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Parity Technologies\Parity UI"
WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Parity Technologies\Parity UI"
WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Parity Technologies\EnergyWeb UI"
WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Parity Technologies\EnergyWeb UI"
!macroend
2 changes: 1 addition & 1 deletion electron/operations/runParity.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = {
let logLastLine = ''; // Always contains last line of the logFile

// Run an instance of parity with the correct args
parity = spawn(parityPath(), parityArgv);
parity = spawn(parityPath(), parityArgv.concat(['--chain', 'tobalaba']));

// Pipe all parity command output into the logFile
parity.stdout.pipe(logStream);
Expand Down
Loading