diff --git a/.env b/.env index 222554ad..45bac475 100644 --- a/.env +++ b/.env @@ -1,10 +1,14 @@ +#VITE_API_COSMOS="http://lxgr.xyz:1317" +#VITE_WS_TENDERMINT="http://lxgr.xyz:26657" +#VITE_APP_FAUCET="http://lxgr.xyz:4500/claimTokens" + VITE_API_COSMOS="https://cardchain.crowdcontrol.network/cosmos/" VITE_WS_TENDERMINT="https://cardchain.crowdcontrol.network/tendermint/" VITE_APP_FAUCET="https://cardchain.crowdcontrol.network/faucet/claimTokens" VITE_APP_FAUCET_SITEKEY="ea68532a-a9e6-4f99-9361-db90a3071b72" VITE_APP_ADDRESS_PREFIX=cc -VITE_APP_CHAIN_ID="cardtestnet-5" +VITE_APP_CHAIN_ID="cardtestnet-6" VITE_APP_CHAIN_NAME="Cardchain" VITE_APP_CARDIMG_MAXKB=500 VITE_APP_CARDIMG_SIZE_X=840 diff --git a/.env.development b/.env.development index abf872a8..b54247c6 100644 --- a/.env.development +++ b/.env.development @@ -4,7 +4,7 @@ VITE_APP_FAUCET_SITEKEY="ea68532a-a9e6-4f99-9361-db90a3071b72" VITE_APP_ADDRESS_PREFIX=cc -VITE_APP_CHAIN_ID="cardtestnet-5" +VITE_APP_CHAIN_ID="carddevnet-2" VITE_APP_CHAIN_NAME="Cardchain" VITE_APP_CARDIMG_MAXKB=500 VITE_APP_CARDIMG_SIZE_X=840 diff --git a/.fleet/settings.json b/.fleet/settings.json index 0c004c80..5f57065e 100644 --- a/.fleet/settings.json +++ b/.fleet/settings.json @@ -1,3 +1,3 @@ { - "backend.maxHeapSizeMb": 896 + "backend.maxHeapSizeMb": 1568 } \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 111b79bc..e99eb7e8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,21 +2,25 @@ on: pull_request: types: [opened, labeled, unlabeled, synchronize] workflow_dispatch: -env: - # Setting an environment variable with the value of a configuration variable - tag_name: ${{ - contains(github.event.pull_request.labels.*.name, 'deploy_5173') && 'deploy_5173' || - (contains(github.event.pull_request.labels.*.name, 'deploy_5174') && 'deploy_5175' || '') - }} + jobs: run_pull: - if: ${{ env.tag_name != '' }} name: run pull runs-on: ubuntu-latest + env: + # Setting an environment variable with the value of a configuration variable + LABEL: ${{ + contains(github.event.pull_request.labels.*.name, 'deploy_5173') && 'deploy_5173' || + (contains(github.event.pull_request.labels.*.name, 'deploy_5174') && 'deploy_5174' || 'none') + }} steps: + - name: exit + if: ${{ env.LABEL == 'none' }} + run: | + exit 1 - name: install ssh keys # check this thread to understand why its needed: # https://stackoverflow.com/a/70447517 @@ -26,6 +30,6 @@ jobs: echo "${{ secrets.LXGR_DEPLOY_PRIV }}" > ~/.ssh/id_rsa ssh-keyscan -H ${{ secrets.LXGR_HOST }} > ~/.ssh/known_hosts - name: connect and pull - run: ssh ${{ secrets.LXGR_USER }}@${{ secrets.LXGR_HOST }} "cd ~/$tag_name && git fetch && git checkout ${{ github.event.pull_request.base.ref }} && git pull && npm i && exit" + run: ssh ${{ secrets.LXGR_USER }}@${{ secrets.LXGR_HOST }} "cd ~/$LABEL && git fetch && git checkout ${{ github.event.pull_request.head.ref }} && git pull && npm i && npm run build && chgrp -R www-data ~/$LABEL && exit" - name: cleanup run: rm -rf ~/.ssh diff --git a/package-lock.json b/package-lock.json index 0f770c58..06910303 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,8 +11,8 @@ "dependencies": { "@cosmjs/encoding": "^0.29.3", "@cosmjs/launchpad": "^0.27.0", - "@cosmjs/proto-signing": "^0.27.0", - "@cosmjs/stargate": "^0.27.0", + "@cosmjs/proto-signing": "^0.27.1", + "@cosmjs/stargate": "^0.27.1", "@hcaptcha/vue3-hcaptcha": "^1.0.1", "@headlessui/tailwindcss": "^0.2.0", "@headlessui/vue": "^1.7.16", @@ -22,8 +22,8 @@ "@tanstack/vue-query": "^4.13.5", "axios": "^1.5.1", "bignumber.js": "^9.1.0", - "crypto-js": "^4.1.1", - "decentralcardgame-cardchain-client-ts": "^0.0.17", + "crypto-js": "^4.2.0", + "decentralcardgame-cardchain-client-ts": "0.0.25", "long": "^5.2.0", "merge-images": "^2.0.0", "pinia": "^2.0.23", @@ -59,7 +59,7 @@ "sass": "^1.55.0", "tailwindcss": "^3.3.3", "typescript": "~4.8.4", - "vite": "^4.4.9", + "vite": "^4.5.0", "vue-tsc": "^1.0.9" }, "engines": { @@ -2435,9 +2435,9 @@ } }, "node_modules/crypto-js": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz", - "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==" + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", + "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==" }, "node_modules/cssesc": { "version": "3.0.0", @@ -2498,13 +2498,13 @@ } }, "node_modules/decentralcardgame-cardchain-client-ts": { - "version": "0.0.17", - "resolved": "https://registry.npmjs.org/decentralcardgame-cardchain-client-ts/-/decentralcardgame-cardchain-client-ts-0.0.17.tgz", - "integrity": "sha512-Bn1WcdiDeC3fTNvmIWcGlWhSIafZHPwZiIkeUzYJYKqqtoZzU58m01bmUhphZJJ9YZ/mlNBKg+XZhUEOo7r9NQ==", + "version": "0.0.25", + "resolved": "https://registry.npmjs.org/decentralcardgame-cardchain-client-ts/-/decentralcardgame-cardchain-client-ts-0.0.25.tgz", + "integrity": "sha512-ahZOiz03yeuQdLNW6pCpf+7ga7OrWBmJexYcFEA6pBcyN8LdpWzpTIbwLbTuewRRfWy6RpL55Jyb6U3nwvc1lQ==", "dependencies": { "@cosmjs/amino": "0.29.5", - "@cosmjs/proto-signing": "0.27.0", - "@cosmjs/stargate": "0.27.0", + "@cosmjs/proto-signing": "0.27.1", + "@cosmjs/stargate": "0.27.1", "@keplr-wallet/types": "^0.12.28", "axios": "0.21.4", "buffer": "^6.0.3", @@ -2512,8 +2512,8 @@ }, "peerDependencies": { "@cosmjs/amino": "0.29.5", - "@cosmjs/proto-signing": "0.27.0", - "@cosmjs/stargate": "0.27.0" + "@cosmjs/proto-signing": "0.27.1", + "@cosmjs/stargate": "0.27.1" } }, "node_modules/decentralcardgame-cardchain-client-ts/node_modules/@cosmjs/amino": { @@ -2564,194 +2564,6 @@ "resolved": "https://registry.npmjs.org/@cosmjs/utils/-/utils-0.29.5.tgz", "integrity": "sha512-m7h+RXDUxOzEOGt4P+3OVPX7PuakZT3GBmaM/Y2u+abN3xZkziykD/NvedYFvvCCdQo714XcGl33bwifS9FZPQ==" }, - "node_modules/decentralcardgame-cardchain-client-ts/node_modules/@cosmjs/crypto": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@cosmjs/crypto/-/crypto-0.27.0.tgz", - "integrity": "sha512-JTPHINCYZ+mnsxrfv8ZBHsFWgB7EGooa5SD0lQFhkCVX/FC3sqxuFNv6TZU5bVVU71DUSqXTMXF5m9kAMzPUkw==", - "dependencies": { - "@cosmjs/encoding": "0.27.0", - "@cosmjs/math": "0.27.0", - "@cosmjs/utils": "0.27.0", - "bip39": "^3.0.2", - "bn.js": "^5.2.0", - "elliptic": "^6.5.3", - "js-sha3": "^0.8.0", - "libsodium-wrappers": "^0.7.6", - "ripemd160": "^2.0.2", - "sha.js": "^2.4.11" - } - }, - "node_modules/decentralcardgame-cardchain-client-ts/node_modules/@cosmjs/encoding": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@cosmjs/encoding/-/encoding-0.27.0.tgz", - "integrity": "sha512-cCT8X/NUAGXOe14F/k2GE6N9btjrOqALBilUPIn5CL4OEGxvRTPD59nWSACu0iafCGz10Tw3LPcouuYPtZmkbg==", - "dependencies": { - "base64-js": "^1.3.0", - "bech32": "^1.1.4", - "readonly-date": "^1.0.0" - } - }, - "node_modules/decentralcardgame-cardchain-client-ts/node_modules/@cosmjs/json-rpc": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@cosmjs/json-rpc/-/json-rpc-0.27.0.tgz", - "integrity": "sha512-Q6na5KPYDD90QhlPZTInquwBycDjvhZvWwpV1TppDd2Em8S1FfN3ePiV2YCf4XzXREU5YPFSHzh5MHK/WhQY3w==", - "dependencies": { - "@cosmjs/stream": "0.27.0", - "xstream": "^11.14.0" - } - }, - "node_modules/decentralcardgame-cardchain-client-ts/node_modules/@cosmjs/math": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@cosmjs/math/-/math-0.27.0.tgz", - "integrity": "sha512-+WsrdXojqpUL6l2LKOWYgiAJIDD0faONNtnjb1kpS1btSzZe1Ns+RdygG6QZLLvZuxMfkEzE54ZXDKPD5MhVPA==", - "dependencies": { - "bn.js": "^5.2.0" - } - }, - "node_modules/decentralcardgame-cardchain-client-ts/node_modules/@cosmjs/proto-signing": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@cosmjs/proto-signing/-/proto-signing-0.27.0.tgz", - "integrity": "sha512-ODqnmY/ElmcEYu6HbDmeGce4KacgzSVGQzvGodZidC1RR9EYociuweBPNwSHqBPolC6PQPI/QGc83m/mbih2xw==", - "dependencies": { - "@cosmjs/amino": "0.27.0", - "@cosmjs/crypto": "0.27.0", - "@cosmjs/math": "0.27.0", - "cosmjs-types": "^0.4.0", - "long": "^4.0.0", - "protobufjs": "~6.10.2" - } - }, - "node_modules/decentralcardgame-cardchain-client-ts/node_modules/@cosmjs/proto-signing/node_modules/@cosmjs/amino": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@cosmjs/amino/-/amino-0.27.0.tgz", - "integrity": "sha512-ybyzRkGrRija1bjGjGP7sAp2ulPA2/S2wMY2pehB7b6ZR8dpwveCjz/IqFWC5KBxz6KZf5MuaONOY+t1kkjsfw==", - "dependencies": { - "@cosmjs/crypto": "0.27.0", - "@cosmjs/encoding": "0.27.0", - "@cosmjs/math": "0.27.0", - "@cosmjs/utils": "0.27.0" - } - }, - "node_modules/decentralcardgame-cardchain-client-ts/node_modules/@cosmjs/proto-signing/node_modules/protobufjs": { - "version": "6.10.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.10.3.tgz", - "integrity": "sha512-yvAslS0hNdBhlSKckI4R1l7wunVilX66uvrjzE4MimiAt7/qw1nLpMhZrn/ObuUTM/c3Xnfl01LYMdcSJe6dwg==", - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.1", - "@types/node": "^13.7.0", - "long": "^4.0.0" - }, - "bin": { - "pbjs": "bin/pbjs", - "pbts": "bin/pbts" - } - }, - "node_modules/decentralcardgame-cardchain-client-ts/node_modules/@cosmjs/socket": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@cosmjs/socket/-/socket-0.27.0.tgz", - "integrity": "sha512-lOd0s6gLyjdjcs8xnYuS2IXRqBLUrI76Bek5wsia+m5CyUvHjRbbd7+nZiznbtVjApBlIwHGkiklLg3/byxkAA==", - "dependencies": { - "@cosmjs/stream": "0.27.0", - "isomorphic-ws": "^4.0.1", - "ws": "^7", - "xstream": "^11.14.0" - } - }, - "node_modules/decentralcardgame-cardchain-client-ts/node_modules/@cosmjs/stargate": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@cosmjs/stargate/-/stargate-0.27.0.tgz", - "integrity": "sha512-Fiqk8rIpB4emzC/P7/+ZPPJV9aG6KJhVuOF4D8c1j1Bv8fVs1XqC6NgsY6elTLXl38pgXt7REn6VYzAdZwrHXQ==", - "dependencies": { - "@confio/ics23": "^0.6.3", - "@cosmjs/amino": "0.27.0", - "@cosmjs/encoding": "0.27.0", - "@cosmjs/math": "0.27.0", - "@cosmjs/proto-signing": "0.27.0", - "@cosmjs/stream": "0.27.0", - "@cosmjs/tendermint-rpc": "0.27.0", - "@cosmjs/utils": "0.27.0", - "cosmjs-types": "^0.4.0", - "long": "^4.0.0", - "protobufjs": "~6.10.2", - "xstream": "^11.14.0" - } - }, - "node_modules/decentralcardgame-cardchain-client-ts/node_modules/@cosmjs/stargate/node_modules/@cosmjs/amino": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@cosmjs/amino/-/amino-0.27.0.tgz", - "integrity": "sha512-ybyzRkGrRija1bjGjGP7sAp2ulPA2/S2wMY2pehB7b6ZR8dpwveCjz/IqFWC5KBxz6KZf5MuaONOY+t1kkjsfw==", - "dependencies": { - "@cosmjs/crypto": "0.27.0", - "@cosmjs/encoding": "0.27.0", - "@cosmjs/math": "0.27.0", - "@cosmjs/utils": "0.27.0" - } - }, - "node_modules/decentralcardgame-cardchain-client-ts/node_modules/@cosmjs/stargate/node_modules/protobufjs": { - "version": "6.10.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.10.3.tgz", - "integrity": "sha512-yvAslS0hNdBhlSKckI4R1l7wunVilX66uvrjzE4MimiAt7/qw1nLpMhZrn/ObuUTM/c3Xnfl01LYMdcSJe6dwg==", - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.1", - "@types/node": "^13.7.0", - "long": "^4.0.0" - }, - "bin": { - "pbjs": "bin/pbjs", - "pbts": "bin/pbts" - } - }, - "node_modules/decentralcardgame-cardchain-client-ts/node_modules/@cosmjs/stream": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@cosmjs/stream/-/stream-0.27.0.tgz", - "integrity": "sha512-D9mXHqS6y7xrThhUg5SCvMjiVQ8ph9f7gAuWlrXhqVJ5FqrP6OyTGRbVyGGM91d5Jj7N7oidQ+hOfc34vKFgeg==", - "dependencies": { - "xstream": "^11.14.0" - } - }, - "node_modules/decentralcardgame-cardchain-client-ts/node_modules/@cosmjs/tendermint-rpc": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@cosmjs/tendermint-rpc/-/tendermint-rpc-0.27.0.tgz", - "integrity": "sha512-WFcJ2/UF76fBBVzPRiHJoC/GCKvgt0mb7+ewgpwKBeEcYwfj5qb1QreGBbHn/UZx9QSsF9jhI5k7SmNdglC3cA==", - "dependencies": { - "@cosmjs/crypto": "0.27.0", - "@cosmjs/encoding": "0.27.0", - "@cosmjs/json-rpc": "0.27.0", - "@cosmjs/math": "0.27.0", - "@cosmjs/socket": "0.27.0", - "@cosmjs/stream": "0.27.0", - "axios": "^0.21.2", - "readonly-date": "^1.0.0", - "xstream": "^11.14.0" - } - }, - "node_modules/decentralcardgame-cardchain-client-ts/node_modules/@cosmjs/utils": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@cosmjs/utils/-/utils-0.27.0.tgz", - "integrity": "sha512-UC1eWY9isDQm6POy6GaTmYtbPVY5dkywdjW8Qzj+JNMhbhMM0KHuI4pHwjv5TPXSO/Ba2z10MTnD9nUlZtDwtA==" - }, "node_modules/decentralcardgame-cardchain-client-ts/node_modules/@keplr-wallet/types": { "version": "0.12.35", "resolved": "https://registry.npmjs.org/@keplr-wallet/types/-/types-0.12.35.tgz", @@ -2760,11 +2572,6 @@ "long": "^4.0.0" } }, - "node_modules/decentralcardgame-cardchain-client-ts/node_modules/@types/node": { - "version": "13.13.52", - "resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.52.tgz", - "integrity": "sha512-s3nugnZumCC//n4moGGe6tkNMyYEdaDBitVjwPxXmR5lnMG5dHePinH2EdxkG3Rh1ghFHHixAG4NJhpJW1rthQ==" - }, "node_modules/decentralcardgame-cardchain-client-ts/node_modules/axios": { "version": "0.21.4", "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", @@ -6189,9 +5996,9 @@ } }, "node_modules/vite": { - "version": "4.4.9", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.9.tgz", - "integrity": "sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.0.tgz", + "integrity": "sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==", "dev": true, "dependencies": { "esbuild": "^0.18.10", diff --git a/package.json b/package.json index d0b29c72..1cdf9c95 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,8 @@ "dependencies": { "@cosmjs/encoding": "^0.29.3", "@cosmjs/launchpad": "^0.27.0", - "@cosmjs/stargate": "^0.27.0", - "@cosmjs/proto-signing": "^0.27.0", + "@cosmjs/proto-signing": "^0.27.1", + "@cosmjs/stargate": "^0.27.1", "@hcaptcha/vue3-hcaptcha": "^1.0.1", "@headlessui/tailwindcss": "^0.2.0", "@headlessui/vue": "^1.7.16", @@ -13,8 +13,8 @@ "@tanstack/vue-query": "^4.13.5", "axios": "^1.5.1", "bignumber.js": "^9.1.0", - "crypto-js": "^4.1.1", - "decentralcardgame-cardchain-client-ts": "^0.0.17", + "crypto-js": "^4.2.0", + "decentralcardgame-cardchain-client-ts": "0.0.25", "long": "^5.2.0", "merge-images": "^2.0.0", "pinia": "^2.0.23", @@ -50,7 +50,7 @@ "sass": "^1.55.0", "tailwindcss": "^3.3.3", "typescript": "~4.8.4", - "vite": "^4.4.9", + "vite": "^4.5.0", "vue-tsc": "^1.0.9" }, "name": "@decentralcardgame/frontend", diff --git a/public/icon/abilities/avatar.svg b/public/icon/abilities/avatar.svg new file mode 100644 index 00000000..0ddc20e9 --- /dev/null +++ b/public/icon/abilities/avatar.svg @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/public/icon/abilities/powerstone.svg b/public/icon/abilities/powerstone.svg new file mode 100644 index 00000000..8c11cbf9 --- /dev/null +++ b/public/icon/abilities/powerstone.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + diff --git a/src/components/elements/EncounterVotingComponent.vue b/src/components/elements/EncounterVotingComponent.vue index 3e2aafd8..2c5b5de2 100644 --- a/src/components/elements/EncounterVotingComponent.vue +++ b/src/components/elements/EncounterVotingComponent.vue @@ -1,69 +1,60 @@ - diff --git a/src/components/elements/GalleryComponent.vue b/src/components/elements/GalleryComponent.vue new file mode 100644 index 00000000..43ba523d --- /dev/null +++ b/src/components/elements/GalleryComponent.vue @@ -0,0 +1,213 @@ + + + + + diff --git a/src/components/modals/AirdropsModal.vue b/src/components/modals/AirdropsModal.vue index 2eece77d..38627ee9 100644 --- a/src/components/modals/AirdropsModal.vue +++ b/src/components/modals/AirdropsModal.vue @@ -9,7 +9,6 @@ aria-labelledby="modalTitle" class="modal" role="dialog" - @click.stop="doNothing" >
{ queryParams().then(res => { - this.isValid = (+data.result.sync_info.latest_block_height < +res.data.params.airDropMaxBlockHeight) + this.isValid = (+data.result.sync_info.latest_block_height < +res.params.airDropMaxBlockHeight) }) }) .catch(error => console.log(error)) diff --git a/src/components/modals/ChoosePBModal.vue b/src/components/modals/ChoosePBModal.vue index c28e8bb1..2168b50b 100644 --- a/src/components/modals/ChoosePBModal.vue +++ b/src/components/modals/ChoosePBModal.vue @@ -1,22 +1,14 @@ - + \ No newline at end of file diff --git a/src/views/CardCreatorPage.vue b/src/views/CardCreatorPage.vue index f8eb3bea..8cf8bb8f 100644 --- a/src/views/CardCreatorPage.vue +++ b/src/views/CardCreatorPage.vue @@ -1083,7 +1083,7 @@ export default { ) return } - if (this.designateArtist && !this.$cardChain.validAddress(this.artistAddress)) { + if (this.designateArtist && !validAddress(this.artistAddress)) { this.notifyFail( "Invalid Address", "The address given for designated artist is invalid." diff --git a/src/views/GalleryPage.vue b/src/views/GalleryPage.vue index 4370e14c..f5f1142f 100644 --- a/src/views/GalleryPage.vue +++ b/src/views/GalleryPage.vue @@ -1,21 +1,14 @@ - @@ -616,19 +364,10 @@ export default { display: flex; } -.cardContainer--element { - position: relative; - flex-grow: 1; - max-width: 350px; -} - .button-container--top { margin-bottom: 2rem; } -.button-container--bottom { - margin-top: 2rem; -} .container-modal { position: fixed; z-index: 4; @@ -639,31 +378,18 @@ export default { background-color: rgba(0, 0, 0, 0.5); transition: opacity 0.3s ease; @media (max-width: 480px) { - bottom:0; + bottom: 0; overflow-y: scroll; } } + .gallery-checkbox { position: absolute; display: inline-block; margin-left: -25px; } + .gallery-checkbox__label { -margin-left: 25px; + margin-left: 25px; } -.ability-modal-container { - margin: auto; - margin-top: 5vh; - max-width: 800px; - max-height: 95vh; - @media (max-width: 480px) { - margin-top: 0; - max-height:300vh; - height:auto; - } - //OLD: - // position: relative; - z-index: 3; -} - - + \ No newline at end of file diff --git a/src/views/UserView.vue b/src/views/UserView.vue index b136dc5c..4c365929 100644 --- a/src/views/UserView.vue +++ b/src/views/UserView.vue @@ -3,7 +3,7 @@
- +
@@ -76,7 +76,12 @@

- @@ -96,7 +101,7 @@ ; - userIsUser: ComputedRef - img: string + userIsUser: ComputedRef; + img: string; } = { isChooseModalVisible: false, isAirdropsModalVisible: false, isModalVisible: false, isGrantModalVisible: false, addr: "", - user: new User(), + user: User.fromPartial({}), coins: new Array(), userIsUser: computed(() => loggedIn.value && state.addr == address.value), img: "jaja", @@ -168,7 +179,7 @@ watch(coins, (val) => { }); watch(loggedInProfilePic, (val) => { if (state.userIsUser) state.img = val; -}) +}); const init = () => { let id = route.params.id.toString(); @@ -186,7 +197,7 @@ const init = () => { if (state.userIsUser) { state.user = user.value; state.coins = normalizeCoins(coins.value); - state.img = loggedInProfilePic.value + state.img = loggedInProfilePic.value; } if (!validAddress(state.addr)) { @@ -198,7 +209,7 @@ const init = () => { getCoins(); }; -onMounted(init) +onMounted(init); const getUser = () => { if (state.userIsUser) { @@ -206,8 +217,8 @@ const getUser = () => { } else { queryQUser(state.addr).then((user) => { state.user = user; - getImg(state.user, state.addr).then(img => { - state.img = img + getImg(state.user, state.addr).then((img) => { + state.img = img; }); }); } diff --git a/src/views/VotingResultsPage.vue b/src/views/VotingResultsPage.vue index 65e67140..e189ef6c 100644 --- a/src/views/VotingResultsPage.vue +++ b/src/views/VotingResultsPage.vue @@ -1,409 +1,66 @@ - - - + \ No newline at end of file