Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add frontend files #238

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ build
package-lock.json
.vs/
.vscode
public/*
public/node_modules
public/npm-debug.log
public/.quasar
!public/dist/
public/dist/*
!public/dist/chains/
Expand Down
25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,24 @@ npm install

## Web Wallet

### first install yarn
```
$ npm install --global yarn
```
cd public/

npm install bower -g
npm install browserify -g
npm install gulp -g

npm install
# angular chose "angular#~1.5.3 which resolved to 1.5.11 and is required by ASCH"
bower install
### Then, install Quasar CLI. Make sure you have Node >=8 and NPM >=5 installed on your machine.
```
# Node.js >= 8.9.0 is required.
$ yarn global add quasar-cli
# or:
$ npm install -g quasar-cli
```

npm run build
gulp build-test #This make the front-end files in public dir.
### Finally, build teh front-end files
```
$ cd public/
$ yarn install
$ quasar build #This make the front-end files in public dir.
```

## Installation on docker.
Expand Down
8 changes: 8 additions & 0 deletions public/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"presets": [
[ "env", {"modules": false} ],
"stage-2"
],
"plugins": ["transform-runtime"],
"comments": false
}
9 changes: 9 additions & 0 deletions public/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
1 change: 1 addition & 0 deletions public/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/dist
42 changes: 42 additions & 0 deletions public/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: ['standard'],
// required to lint *.vue files
plugins: ['html', 'import'],
globals: {
cordova: true,
DEV: true,
PROD: true,
__THEME: true
},
// add your custom rules here
rules: {
// allow paren-less arrow functions
'arrow-parens': 0,
'one-var': 0,
'import/first': 0,
'import/named': 2,
'import/namespace': 2,
'import/default': 2,
'import/export': 2,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
// 'brace-style': [2, 'stroustrup', { 'allowSingleLine': true }],
'space-before-function-paren': [
'error',
{
anonymous: 'always',
named: 'never',
asyncArrow: 'always'
}
]
}
}
23 changes: 23 additions & 0 deletions public/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.quasar
.DS_Store
.thumbs.db
node_modules
/dist
/src-cordova/platforms
/src-cordova/plugins
/src-cordova/www
npm-debug.log*
yarn-debug.log*
yarn-error.log*
package-lock.json

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln



5 changes: 5 additions & 0 deletions public/.postcssrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// https://github.com/michael-ciniawsky/postcss-load-config

module.exports = {
plugins: [require('autoprefixer')]
}
35 changes: 35 additions & 0 deletions public/.stylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"blocks": "never",
"brackets": "never",
"colons": "never",
"colors": "always",
"commaSpace": "always",
"commentSpace": "always",
"cssLiteral": "never",
"depthLimit": false,
"duplicates": true,
"efficient": "always",
"extendPref": false,
"globalDupe": true,
"indentPref": 2,
"leadingZero": "never",
"maxErrors": false,
"maxWarnings": false,
"mixed": false,
"namingConvention": false,
"namingConventionStrict": false,
"none": "never",
"noImportant": false,
"parenSpace": "never",
"placeholder": false,
"prefixVarsWithDollar": "always",
"quotePref": "single",
"semicolons": "never",
"sortOrder": false,
"stackedProperties": "never",
"trailingWhitespace": "never",
"universal": "never",
"valid": true,
"zeroUnits": "never",
"zIndexNormalize": false
}
40 changes: 40 additions & 0 deletions public/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Asch-wallet

Build on [Quasar](http://quasar-framework.org/)

## Why

- better UE and UI
- cross platform (Win || Mac || Web || IOS || Android)
- more powerful blocks explore
- chat ? maybe

## How to build

### Pre Installation Requirements
Install Yarn and Quasar.

```
$ npm install -g yarn
```

Then, install Quasar CLI. Make sure you have Node >=8 and NPM >=5 installed on your machine.

```
# Node.js >= 8.9.0 is required.
$ yarn global add quasar-cli
# or:
$ npm install -g quasar-cli
```

### Install the libraries
```
$ git clone https://github.com/AschPlatform/asch-frontend-2.git && cd asch-frontend-2 && yarn install
```

### run development server (with default theme)
```
$ quasar dev
```

Now the development server runs on port 8080 of your localhost (0.0.0.0:8080).
59 changes: 59 additions & 0 deletions public/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"name": "asch_wallet",
"version": "1.0.0",
"description": "New Asch Wallet",
"productName": "Asch Wallet",
"cordovaId": "org.asch.wallet",
"author": "mrcaos <[email protected]>",
"private": true,
"scripts": {
"lint": "eslint --ext .js,.vue src",
"test": "echo \"No test specified\" && exit 0"
},
"dependencies": {
"asch-js": "^1.3.10",
"autoprefixer": "^8.1.0",
"axios": "^0.17.1",
"bignumber.js": "^6.0.0",
"bip39": "^2.5.0",
"lodash": "^4.17.5",
"quasar": "0.0.18",
"transform-runtime": "0.0.0",
"vue-clipboards": "^1.2.1",
"vue-i18n": "^7.3.3",
"vue-qr": "^1.2.8",
"vuelidate": "^0.6.1"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "8.2.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"babel-preset-stage-2": "^6.24.1",
"devtron": "1.4.0",
"electron": "1.7.9",
"electron-debug": "1.4.0",
"electron-devtools-installer": "2.2.1",
"electron-packager": "9.1.0",
"eslint": "4.15.0",
"eslint-config-standard": "10.2.1",
"eslint-friendly-formatter": "3.0.0",
"eslint-loader": "1.7.1",
"eslint-plugin-html": "^3.2.2",
"eslint-plugin-import": "2.7.0",
"eslint-plugin-node": "5.2.0",
"eslint-plugin-promise": "3.4.0",
"eslint-plugin-standard": "3.0.1",
"eslint-plugin-vue": "4.0.0",
"quasar-cli": "^0.15.12"
},
"engines": {
"node": ">= 8.9.0",
"npm": ">= 5.6.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 10"
]
}
Loading