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

Commit

Permalink
Merge pull request #59 from cakedefi/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
monstrobishi committed Jul 15, 2020
2 parents dacf6ef + a4d6de1 commit fde5aaf
Show file tree
Hide file tree
Showing 356 changed files with 64,933 additions and 22,055 deletions.
3 changes: 3 additions & 0 deletions .babelrc
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
34 changes: 13 additions & 21 deletions .eslintrc.json
@@ -1,29 +1,21 @@
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-continue": "off",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "warn",
"quotes": [2, "single"],
"semi": ["error", "never"]
},
"parser": "babel-eslint",
"extends": "airbnb",
"plugins": ["react", "jsx-a11y", "import"]
"plugins": ["@typescript-eslint"],
"rules": {}
}
7 changes: 6 additions & 1 deletion .gitignore
Expand Up @@ -121,4 +121,9 @@ build
dist

# Unnecessary folders
.DS_Store
.DS_Store

# Storybook build
storybook-static

/temp
201 changes: 0 additions & 201 deletions .neutrinorc.js

This file was deleted.

5 changes: 5 additions & 0 deletions .prettierrc
@@ -0,0 +1,5 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
}
4 changes: 2 additions & 2 deletions Procfile
@@ -1,2 +1,2 @@
react: npm run react-start
electron: npm run electron-start
react: cd webapp && npm run start:dev
electron: npm run start:electron
34 changes: 32 additions & 2 deletions README.md
Expand Up @@ -2,8 +2,38 @@

## Scripts

`npm start` has been configured to open as Electron desktop app.
`npm run init` initialize and install npm dependency for electron and webapp

### Run Electron desktop app with webapp

`npm start`

### Run Electron desktop app with webapp in dev mode

`npm run start:dev`

### Run webapp

`npm run start:react`

### Build react app

`npm run build:react`

### Build electron app for native platform

`npm run build`

### Build electron app for all platform

`npm run build:all`

## Electron configuration

Electron config is in src/start.js
Electron config is in [electron-app/index.ts](electron-app/index.ts)

## Copyright and license

Copyright 2020 DeFi Blockchain Foundation.

QR scanner shutter audio `webapp/src/assets/audio/shutter.mp3` is licensed by [Soundsnap](https://www.soundsnap.com). Commercial redistribution of the audio is prohibited. For full Soundsnap license, visit [https://www.soundsnap.com/licence](https://www.soundsnap.com/licence).
File renamed without changes.
Binary file added electron-app/assets/icon/icon-1024.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added electron-app/assets/icon/icon-128.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added electron-app/assets/icon/icon-16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added electron-app/assets/icon/icon-16@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added electron-app/assets/icon/icon-256.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added electron-app/assets/icon/icon-32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added electron-app/assets/icon/icon-32@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added electron-app/assets/icon/icon-48.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added electron-app/assets/icon/icon-48@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added electron-app/assets/icon/icon-512.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added electron-app/assets/icon/icon-64.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added electron-app/assets/icon/mac/app.icns
Binary file not shown.
Binary file added electron-app/assets/icon/win/app.ico
Binary file not shown.
8 changes: 8 additions & 0 deletions electron-app/index.ts
@@ -0,0 +1,8 @@
import App from './src/app';

function main() {
const electronApp = new App();
electronApp.run();
}

main();

0 comments on commit fde5aaf

Please sign in to comment.