Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
winter520 authored and winter520 committed Mar 4, 2020
0 parents commit a812098
Show file tree
Hide file tree
Showing 72 changed files with 12,947 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.DS_Store
node_modules
/dist

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# fsn

## Project setup
```
yarn install
```

### Compiles and hot-reloads for development
```
yarn serve
```

### Compiles and minifies for production
```
yarn build
```

### Lints and fixes files
```
yarn lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
12 changes: 12 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
],
plugins: [
['import', {
libraryName: 'vant',
libraryDirectory: 'es',
style: true
}, 'vant']
]
}
58 changes: 58 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"name": "Wallet",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^0.19.0",
"babel-plugin-import": "^1.13.0",
"compression-webpack-plugin": "^3.0.1",
"core-js": "^3.4.3",
"ethereumjs-tx": "^1.3.7",
"ethereumjs-util": "^6.2.0",
"ethereumjs-wallet": "^0.6.3",
"js-cookie": "^2.2.1",
"scryptsy": "^2.1.0",
"vant": "^2.2.16",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
"vuex": "^3.1.2",
"web3": "^1.0.0-beta.36"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",
"@vue/cli-plugin-eslint": "^4.1.0",
"@vue/cli-service": "^4.1.0",
"babel-eslint": "^10.0.3",
"babel-plugin-import": "^1.13.0",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"node-sass": "^4.13.0",
"sass-loader": "^8.0.0",
"sass-resources-loader": "^2.0.1",
"style-loader": "^1.0.1",
"vue-template-compiler": "^2.6.10"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"rules": {},
"parserOptions": {
"parser": "babel-eslint"
}
},
"browserslist": [
"> 1%",
"last 2 versions"
]
}
Binary file added public/favicon.ico
Binary file not shown.
17 changes: 17 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>Gwhale Wallet</title>
</head>
<body>
<noscript>
<strong>We're sorry but fsn doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
58 changes: 58 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<template>
<div id="app">
<!-- <img alt="Vue logo" src="./assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/> -->
<router-view></router-view>
<input type="text" class="input-text WW100 font12 center" v-model="updateUrl" style="height:0;opacity: 0;position:fixed;top:-100px;" readonly id="copyAddress">
</div>
</template>

<script>
// import HelloWorld from './components/HelloWorld.vue'
import {mapState,mapGetters,mapMutations,mapActions} from 'vuex'
import {methods, data} from '@/assets/js/update/index.js'
export default {
name: 'app',
data () {
return {
...data
}
},
// components: {
// HelloWorld
// }
mounted () {
this.update()
},
methods: {
...methods,
versionTip (data) {
let oneDay = 1000 * 60 * 60 * 24
let versionTipTime = localStorage.getItem('versionTime') ? Number(localStorage.getItem('versionTime')) : 0
versionTipTime = Date.now() - versionTipTime
if ((Number(data.level) === 2 || Number(data.level) === 3) && versionTipTime > oneDay) {
this.versionTipMust(data)
} else if (versionTipTime > oneDay) {
this.versionTipNoMust(data)
}
},
latestVersionTip () {}
}
}
</script>

<style>
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
width: 100%;
height: 100%;
width: 100vw;
height: 100vh;
overflow: auto;
/* margin-top: 60px; */
}
</style>
151 changes: 151 additions & 0 deletions src/assets/config/coininfo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
export default{
"FSN": {
"coinName": "Fusion",
"logo": require("@/assets/img/coin/fsn.svg"),
"token": "",
"hashFM": "",
"limit": 0.001,
"rate": 18,
"isCase": 0,
"dollarURL": "https://api.coinmarketcap.com/v1/ticker/fusion/"
},
"ATOM": {
"coinName": "Atomic Coin",
"logo": require("@/assets/img/coin/atom.png"),
"token": "",
"hashFM": "",
"limit": 0,
"rate": 6,
"isCase": 0,
"dollarURL": "https://api.coinmarketcap.com/v1/ticker/atomic-coin/"
},
"BCH": {
"coinName": "Bitcoin Cash",
"logo": require("@/assets/img/coin/bch.png"),
"token": "",
"hashFM": "",
"limit": 0,
"rate": 8,
"isCase": 0,
"dollarURL": "https://api.coinmarketcap.com/v1/ticker/bitcoin-cash/"
},
"BTC": {
"coinName": "Bitcoin",
"logo": require("@/assets/img/coin/btc.svg"),
"token": "tokentx",
"hashFM": "",
"limit": 0,
"rate": 8,
"isCase": 1,
"dollarURL": "https://api.coinmarketcap.com/v1/ticker/bitcoin/"
},
"EOS": {
"coinName": "EOS",
"logo": require("@/assets/img/coin/eos.png"),
"token": "tokentx",
"hashFM": "",
"limit": 0,
"rate": 4,
"isCase": 0,
"dollarURL": "https://api.coinmarketcap.com/v1/ticker/eos/"
},
"ETH": {
"coinName": "Ethereum",
"logo": require("@/assets/img/coin/eth.svg"),
"token": "txlist",
"hashFM": "",
"limit": 0.001,
"rate": 18,
"isCase": 0,
"dollarURL": "https://api.coinmarketcap.com/v1/ticker/ethereum/"
},
"TRX": {
"coinName": "Tronprotocol",
"logo": require("@/assets/img/coin/tron.svg"),
"token": "tokentx",
"limit": 0,
"rate": 6,
"isCase": 0,
"dollarURL": "https://api.coinmarketcap.com/v1/ticker/tron/"
},
"BNB": {
"coinName": "Binance",
"logo": require("@/assets/img/coin/bnb.svg"),
"token": "tokentx",
"hashFM": "",
"limit": 0,
"rate": 18,
"isCase": 0,
"dollarURL": "https://api.coinmarketcap.com/v1/ticker/binance-coin/"
},
"MKR": {
"coinName": "Maker",
"logo": require("@/assets/img/coin/mkr.svg"),
"token": "tokentx",
"hashFM": "",
"limit": 0,
"rate": 18,
"isCase": 0,
"dollarURL": "https://api.coinmarketcap.com/v1/ticker/maker/"
},
"GUSD": {
"coinName": "Gemini Dollar",
"logo": require("@/assets/img/coin/gusd.svg"),
"token": "tokentx",
"hashFM": "",
"limit": 0,
"rate": 18,
"isCase": 0,
"dollarURL": "https://api.coinmarketcap.com/v1/ticker/gemini-dollar/"
},
"HT": {
"coinName": "HuobiToken",
"logo": require("@/assets/img/coin/ht.svg"),
"token": "tokentx",
"hashFM": "",
"limit": 0,
"rate": 18,
"isCase": 0,
"dollarURL": "https://api.coinmarketcap.com/v1/ticker/huobi-token/"
},
"BNT": {
"coinName": "Bancor",
"logo": require("@/assets/img/coin/bnt.svg"),
"token": "tokentx",
"hashFM": "",
"limit": 0,
"rate": 18,
"isCase": 0,
"dollarURL": "https://api.coinmarketcap.com/v1/ticker/bancor/"
},
"USDT": {
"coinName": "Tether",
"logo": require("@/assets/img/coin/usdt.png"),
"token": "tokentx",
"hashFM": "",
"limit": 0,
"rate": 8,
"isCase": 0,
"dollarURL": "https://api.coinmarketcap.com/v1/ticker/tether/"
},
"XRP": {
"coinName": "XRP",
"logo": require("@/assets/img/coin/evt1.png"),
"token": "tokentx",
"hashFM": "",
"limit": 0,
"rate": 6,
"isCase": 0,
"dollarURL": "https://api.cryptorank.io/v0/coins/everitoken/tickers"
},
"EVT1": {
"coinName": "EVT1",
"logo": require("@/assets/img/coin/evt1.png"),
"token": "tokentx",
"hashFM": "",
"limit": 0,
"rate": 5,
"isCase": 0,
"dollarURL": "https://api.cryptorank.io/v0/coins/everitoken/tickers"
}
}
Loading

0 comments on commit a812098

Please sign in to comment.