Permalink
Please sign in to comment.
Showing
with
588 additions
and 211 deletions.
- +40 −0 INSTALL.md
- +10 −0 LICENSE
- +8 −60 README.md
- +1 −1 package.json
- +5 −1 src/index.ejs
- +75 −0 src/main/config.js
- +34 −14 src/main/index.js
- +21 −6 src/main/wowrpc.js
- +20 −87 src/renderer/App.vue
- +0 −7 src/renderer/assets/bootstrap.min.css
- +0 −5 src/renderer/assets/fa.css
- +88 −0 src/renderer/assets/messages.js
- +29 −0 src/renderer/assets/wow.css
- +3 −4 src/renderer/components/Landing/Credits.vue
- +61 −14 src/renderer/components/Landing/LandingPage.vue
- +76 −0 src/renderer/components/Landing/Settings.vue
- +10 −4 src/renderer/components/Landing/WarioLanding.vue
- +59 −0 src/renderer/components/Landing/WarioSettings.vue
- +1 −1 src/renderer/components/Landing/components/WfsExplorer.vue
- +0 −1 src/renderer/components/Pages/components/TxHistoryList.vue
- +1 −1 src/renderer/components/Wizards/CreateWalletOptions.vue
- +2 −1 src/renderer/components/Wizards/CreateWalletSeed.vue
- +6 −0 src/renderer/main.js
- +6 −1 src/renderer/router/index.js
- +32 −3 src/renderer/store/index.js
@@ -0,0 +1,40 @@ | |||
## Compile | |||
|
|||
Requirements: | |||
|
|||
- Node v8 | |||
- Latest Wownero (CLI) + `git apply light_diff.patch` | |||
|
|||
#### Electron | |||
|
|||
``` bash | |||
# install dependencies | |||
npm install | |||
# serve with hot reload at localhost:9080 | |||
npm run dev | |||
``` | |||
|
|||
If `npm run dev` works, you can install a custom version of `wownero-wallet-cli` | |||
|
|||
#### wownero-wallet-cli :star2: | |||
|
|||
``` | |||
git clone https://github.com/wownero/wownero.git | |||
cd wownero | |||
git checkout <latest version here> | |||
git apply light_patch.diff | |||
make -j4 | |||
``` | |||
|
|||
Use `light_patch.diff` that's included in this repository. Move resulting binary into the resources folder: | |||
|
|||
``` | |||
cp build/release/bin/wownero-wallet-cli wowlight/resources/linux/bin/wowlight | |||
``` | |||
|
|||
Build the light wallet: | |||
|
|||
``` | |||
npm run build | |||
``` |
@@ -0,0 +1,10 @@ | |||
|
|||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |||
Version 2, December 2004 | |||
|
|||
Copyright (C) 2018 Wownero Inc., a Monero Enterprise Alliance partner company | |||
|
|||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |||
|
|||
0. You just DO WHAT THE FUCK YOU WANT TO. |
@@ -0,0 +1,75 @@ | |||
const fs = require('fs'); | |||
|
|||
|
|||
export class Config { | |||
constructor(wowdir) { | |||
this._path_cfg = `${wowdir}/wowlight.json`; | |||
this.create(); | |||
this.data = this.load(); | |||
} | |||
|
|||
load(){ | |||
if (!fs.existsSync(this._path_cfg)) { | |||
console.log('no file yo'); | |||
return {}; | |||
} | |||
|
|||
let contents = fs.readFileSync(this._path_cfg, 'utf8'); | |||
return JSON.parse(contents); | |||
} | |||
|
|||
create(){ | |||
if (fs.existsSync(this._path_cfg)) { | |||
return; | |||
} | |||
|
|||
let data = JSON.stringify({ | |||
"node": "node.wowne.ro:34568", | |||
"nodes": [ | |||
{"address": "node.wowne.ro:34568", "location": "New Jersey, United States", "region": "US"}, | |||
{"address": "node.pwned.systems:34568", "location": "Amsterdam, The Netherlands", "region": "EU"}, | |||
{"address": "node.wownero.com:34568", "location": "Montreal, Canada", "region": "US"}, | |||
{"address": "localhost:34568", 'location': "", "region": "*"} | |||
], | |||
"wallet_path": "" | |||
}); | |||
|
|||
fs.writeFileSync(this._path_cfg, JSON.stringify(data)); | |||
console.log(`${this._path_cfg} written`); | |||
} | |||
|
|||
save(){ | |||
fs.writeFileSync(this._path_cfg, JSON.stringify(this.data, null, 4)); | |||
console.log(`${this._path_cfg} written`); | |||
} | |||
|
|||
selectNode(node){ | |||
if (typeof this.data === 'string' || this.data instanceof String){ | |||
this.data = JSON.parse(this.data); | |||
} | |||
|
|||
node = node.trim(); | |||
if(node === ''){ | |||
return; | |||
} | |||
|
|||
console.log('NEW NODE: ' + node); | |||
this.data.node = node; | |||
this.save(); | |||
|
|||
return true; | |||
} | |||
|
|||
saveLastWalletPath(path){ | |||
if (typeof this.data === 'string' || this.data instanceof String){ | |||
this.data = JSON.parse(this.data); | |||
} | |||
|
|||
if(path === ''){ | |||
return; | |||
} | |||
|
|||
this.data.wallet_path = path; | |||
this.save(); | |||
} | |||
} |

Oops, something went wrong.
0 comments on commit
93f537a