Skip to content

Commit

Permalink
fe v2 (#13)
Browse files Browse the repository at this point in the history
* fe v2

* fe-ms (#12)

* fe v2 fixes

* fe v2 fixes minor

* fe v2 fixes minor

* playerReallocations query

* path field fixes

* reallocations amount render
  • Loading branch information
magiodev authored May 12, 2024
1 parent bf33d41 commit 0b0a240
Show file tree
Hide file tree
Showing 121 changed files with 20,219 additions and 2,271 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,4 @@ artifacts/

.idea
.vscode
.vercel

.env
.env.*
.vercel
4 changes: 4 additions & 0 deletions frontend-ms/.browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
> 1%
last 2 versions
not dead
not ie 11
15 changes: 15 additions & 0 deletions frontend-ms/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Frontend
BASE_URL=http://localhost:8080

# Chain
VUE_APP_RPC_QUERY=https://rpc.testnet.osmosis.zone
VUE_APP_RPC_EXECUTE=https://rpc.testnet.osmosis.zone
VUE_APP_CHAIN_ID=osmo-test-5
VUE_APP_BASE_FEE=0.0025
VUE_APP_CONTRACT=osmo1t33we3pcqf9u3jn665r9nf0nl3yqav2dg33njdcfm8thl7hvv9ts53gfay
VUE_APP_CONTRACT_CW721=osmo1
VUE_APP_GAME_DENOM=uosmo
VUE_APP_INTERVAL_TIMEOUT=10000
VUE_APP_EXPLORER_BASE_URL=https://celatone.osmosis.zone
VUE_APP_NFT_BASE_URL=https://app.mintlabz.io/api/metadata/mad-scientists
VUE_APP_OSMOSIS_BASE_FEE_LCD=https://lcd.osmosis.zone/osmosis/txfees/v1beta1/cur_eip_base_fee
21 changes: 21 additions & 0 deletions frontend-ms/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended'
],
parserOptions: {
parser: '@babel/eslint-parser',
ecmaVersion: 2020
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
},
globals: {
BigInt: 'readonly'
}
}
23 changes: 23 additions & 0 deletions frontend-ms/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.DS_Store
node_modules
/dist

# local env files
.env
.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?
29 changes: 29 additions & 0 deletions frontend-ms/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Prudent Pots Frontend

## Project setup

Run installations in both root and in the frontend folder:

```bash
npm install
```

## Create .env files (root / frontend)

Set the environment you want to use and choose the related compiling method described as below

```bash
cp .env.example .env
```

## Run Vue app

You must compile contracts first in order to generate ABIs that Vue.js will use to interact with them

```bash
npm run serve
```

### Customize configuration

See [Configuration Reference](https://cli.vuejs.org/config/).
5 changes: 5 additions & 0 deletions frontend-ms/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
19 changes: 19 additions & 0 deletions frontend-ms/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "es5",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}
}
Loading

0 comments on commit 0b0a240

Please sign in to comment.