Skip to content

Commit

Permalink
upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mzfshark committed Sep 25, 2021
1 parent eef13a7 commit 5b104e8
Show file tree
Hide file tree
Showing 91 changed files with 5,355 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> 1%
last 2 versions
not dead
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
VUE_APP_WS_URL=wss://rinkeby.infura.io/ws/v3/6c266c0719d144369f24093fbed4c6d8
VUE_APP_HUB_URL=https://makiswap-dev.thinkincoin.com
VUE_APP_IPFS_NODE=gateway.pinata.cloud
VUE_DEFAULT_NETWORK=4
4 changes: 4 additions & 0 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
HOST=makiswap-dev.thinkincoin.com
VUE_APP_HTTP_URL=https://polygon-mainnet.infura.io/v3/6c266c0719d144369f24093fbed4c6d8
VUE_APP_HUB_URL=https://makiswap-dev.thinkincoin.com
VUE_APP_IPFS_NODE=gateway.pinata.cloud
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'eslint:recommended',
'@vue/typescript/recommended',
'@vue/prettier',
'@vue/prettier/@typescript-eslint'
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
'no-console': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-undef': 'off'
}
};
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.DS_Store
node_modules
/dist

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

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

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
singleQuote: true
};
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) Balancer Labs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Snapshot

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

## License

[MIT](LICENSE).
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ['@vue/cli-plugin-babel/preset']
};
72 changes: 72 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"name": "snapshot",
"version": "0.1.1",
"repository": "balancer-labs/snapshot",
"license": "MIT",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@bonustrack/lock": "github:bonustrack/lock#e66d69d728e4003c4fcf5b124387bb16c37cbfe1",
"@ethersproject/abi": "^5.0.1",
"@ethersproject/address": "^5.0.1",
"@ethersproject/constants": "^5.0.1",
"@ethersproject/contracts": "^5.0.1",
"@ethersproject/providers": "^5.0.4",
"@ethersproject/units": "^5.0.1",
"@ethersproject/wallet": "^5.0.1",
"@pinata/sdk": "^1.1.10",
"@portis/web3": "2.0.0-beta.49",
"@primer/css": "^14.4.0",
"@vue/cli-plugin-babel": "^4.4.0",
"@vue/cli-plugin-eslint": "^4.4.0",
"@vue/cli-plugin-typescript": "^4.4.0",
"@vue/cli-service": "^4.4.0",
"@walletconnect/web3-provider": "^1.0.13",
"bluebird": "^3.7.2",
"body-parser": "^1.19.0",
"core-js": "^3.6.5",
"cors": "^2.8.5",
"eslint": "^6.7.2",
"fortmatic": "^2.0.6",
"frameguard": "^3.1.0",
"json-to-graphql-query": "^2.0.0",
"jsonexport": "^3.0.1",
"lodash": "^4.17.15",
"numeral": "^2.0.4",
"primer-support": "^5.0.0",
"redis": "^3.0.2",
"remarkable": "^2.0.1",
"sanitize-html": "^1.27.1",
"serve-static": "^1.14.1",
"stylus": "^0.54.8",
"stylus-loader": "^3.0.2",
"typescript": "~3.9.3",
"vue": "^2.6.11",
"vue-autofocus-directive": "^1.0.4",
"vue-cli-plugin-webpack-bundle-analyzer": "^2.0.0",
"vue-i18n": "^8.18.1",
"vue-infinite-scroll": "^2.0.2",
"vue-jazzicon": "^0.1.3",
"vue-router": "^3.2.0",
"vue-textarea-autosize": "^1.1.1",
"vuex": "^3.4.0"
},
"devDependencies": {
"@types/node": "^14.0.13",
"@typescript-eslint/eslint-plugin": "^2.33.0",
"@typescript-eslint/parser": "^2.33.0",
"@vue/cli-plugin-router": "^4.4.0",
"@vue/cli-plugin-vuex": "^4.4.0",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-typescript": "^5.0.2",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-vue": "^6.2.2",
"node-sass": "^4.12.0",
"prettier": "^1.19.1",
"sass-loader": "^8.0.2",
"vue-template-compiler": "^2.6.11"
}
}
Binary file added public/favicon.ico
Binary file not shown.
16 changes: 16 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!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">
<title>Snapshot</title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> 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>
25 changes: 25 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<template>
<div id="app" class="overflow-hidden">
<UiLoading v-if="ui.loading || !ui.init" class="overlay big" />
<div v-else>
<Topnav />
<div class="pb-6 overflow-hidden">
<router-view :key="$route.path" class="flex-auto" />
</div>
</div>
<Notifications />
</div>
</template>

<script>
import { mapActions } from 'vuex';
export default {
methods: {
...mapActions(['init'])
},
mounted() {
this.init();
}
};
</script>
Binary file added src/assets/fonts/Calibre-Medium.eot
Binary file not shown.
Binary file added src/assets/fonts/Calibre-Medium.ttf
Binary file not shown.
Binary file added src/assets/fonts/Calibre-Medium.woff
Binary file not shown.
Binary file added src/assets/fonts/Calibre-Semibold.eot
Binary file not shown.
Binary file added src/assets/fonts/Calibre-Semibold.ttf
Binary file not shown.
Binary file added src/assets/fonts/Calibre-Semibold.woff
Binary file not shown.
77 changes: 77 additions & 0 deletions src/assets/fonts/iconfont.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
@font-face {font-family: "iconfont";
src: url('iconfont.eot?t=1595018697091'); /* IE9 */
src: url('iconfont.eot?t=1595018697091#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAhoAAsAAAAAEKQAAAgZAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCFFAqRJI1LATYCJANACyIABCAFhG0HgUEb3g2jopRwBpP9RYJtLP2hg6GpjdjQNCwMlxaY9USehGvQ1PapDEvsQJDx8M9+/X6fKzqGmCQRiSSxap5IUEmEpCl5Mmme5rHWa8Cvf/62V8ncvke6Rpbs3GraHuE//oZ/D0jS83W6xm4hW+H6A572L8k6tM6gj8lImm47yFNy5+Z/tz5waE9u+6WDgm92+3Kbf7igj4GptVZFNOri7VOitRP932Nu8X1MJX1EKtMZquuLJ4jECwXx0KmRUt5APOslmx+VaJ5AY65NqX3ntw+kKMOqA/0u+S4jRUueLCA8VDmFx43ZIJ6Sq5K7yRvcUz4+xq0JfxJ5ir3w8JkzhxwO/R5P74xopyQ3THYYj8NIsRqRPaQPnvIr0MRPZEYzNPMAszXJX+sMDevhahvscNZVt9z3Zvhn7PTHRyMC3F97nZodu16YzbnPaShxpJBplCpdqVqrI9fTl9z/eQWq6cD7ZWufISGLYFhnUTBcjWRfuAFIA7gDSAl4FkgFeBVIF/AWkBTwPtSyha+BtIBvgHQA/yCLnLFTSE+Bp4H1TUwGIyRggBvmIxYgyWPS44QNuqQpZJIfim5WCSGRBm8eNFc7h/lqzckzMta7e9G+6tL0brcKU4PjgxzXdJUq4XysXdBe5ghKFAjCYAmuNp4IpcY9YTrLuXw2VfyM2s+Xvyh7XWy9ITaanaGIybGeNkgbvQkJxixrWSNQVu+Oe/eQAeXxCfChg0mjX0MoZWY13xNDkJxxzEjqMaVSENQlV6ZIVIO6Eg5GIMxzBdKxyyE9Dn1Sl+FinPSi+yGw7A/qmqCTu40HwuGAR9aeuBTcPcmm9pqvJMrY55GwHwrtdTIrtL0k1d0oBwieJ0WREoQZY88xz7Me2j1gceufi0Dsv3qFr2cEPUfz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cfq5n/A9TPr4cf1N88dvD9307NfUpTu8IPgxt7whz4/RNDtfO902QUOe2FduiJ7xGO1A51LklCelet6hXDkVWrSnpWrTYuWP3e0g7F/x1C1tFxTn8OciTxe2EXLnxZ0pW/Y7z75/PvLKlbgm3+3D2+Ix9aV3ocWjkKwIjXYqlKwqkHWK/8AidW4fh3d6PfApDS6AtMhA79sDb5GKW9mCsWiaXdNLIH9UZjaI+UepY7qbNfY7d7buz+V7UXvvqvm/ZOTh39PzLn0juodj51FECd0+ScBKwg/+VYcfCnRill3gU6s6QBT7EpQcPpcDarmOivSGlKZOZEKk0xQKI0B6Qqi90z79Ug11oHCpWdoLHKxe2tSVBGZDVWemVAGHgDiZ4nIDXwQ4CA9y/ITfUPCoPAQONIdPRsLY2l5RMEZsCh4xfqcyUFX2jKav87cG3E0Mwp8U+A2q+nw97A3n4BEjCLS/TEHRkjqEAV03PGMogiRRNUAXDT84xJtvt94XVpj6uYlO2FAGOk9A5q7EXVxymSWNsoO97/DnBZEQYDpv1RfQKQ5m+dGuoZRHC/0MhI01ZlqDbhGjEEC1QYi5QYdU4wiLgWhUq8jwsAzujxEjQltvXJciKqple8FI/5DdBgH3YQaKSRRR5FlFFFHU200Ylu9KIfg9Ao3fRdyYxFaPIK4uAnZktZE/kSnBz3gIeFKUPpSzevgSH3sjFIm+OR0pB3fePZcTmJrN7SMYuiGswMoGTRVmyzw7SrsmPGw6zVgEWGqKZbNimrgiNoJSEAAA==') format('woff2'),
url('iconfont.woff?t=1595018697091') format('woff'),
url('iconfont.ttf?t=1595018697091') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
url('iconfont.svg?t=1595018697091#iconfont') format('svg'); /* iOS 4.1- */
}

.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.iconsignature:before {
content: "\e600";
}

.iconreceipt-outlined:before {
content: "\e8eb";
}

.iconcheck:before {
content: "\e679";
}

.iconwarning:before {
content: "\e62c";
}

.iconsearch:before {
content: "\e6f2";
}

.iconmenu:before {
content: "\e609";
}

.iconclose:before {
content: "\e63e";
}

.icongithub:before {
content: "\e667";
}

.iconplus-small:before {
content: "\e69d";
}

.iconexternal-link:before {
content: "\e636";
}

.icongo:before {
content: "\e6cb";
}

.iconback:before {
content: "\e6cc";
}

.iconuser:before {
content: "\e66f";
}

.iconarrow-up:before {
content: "\e75c";
}

.iconarrow-down:before {
content: "\e75d";
}

Binary file added src/assets/fonts/iconfont.eot
Binary file not shown.
Loading

0 comments on commit 5b104e8

Please sign in to comment.