-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #308 from DecentralCardGame/262-remove-rulestext-f…
…rom-card-model 262 remove rulestext from card model
- Loading branch information
Showing
21 changed files
with
6,516 additions
and
3,754 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,5 @@ | ||
#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="carddevnet-2" | ||
VITE_APP_CHAIN_NAME="Cardchain" | ||
VITE_APP_CARDIMG_MAXKB=500 | ||
VITE_APP_CARDIMG_SIZE_X=840 | ||
VITE_APP_CARDIMG_SIZE_Y=1300 | ||
VITE_APP_UCREDITS_FACTOR=1000000 | ||
NODE_VERSION=v18.17.1 | ||
|
||
#VITE_API_COSMOS_FALLBACK=https://cardchain2.crowdcontrol.network/cosmos/ | ||
#VITE_WS_TENDERMINT_FALLBACK=https://cardchain2.crowdcontrol.network/tendermint/ | ||
#VITE_APP_FAUCET_FALLBACK=https://cardchain2.crowdcontrol.network/faucet/claimTokens | ||
|
||
#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="http://lxgr.xyz:1317" | ||
VITE_WS_TENDERMINT="http://lxgr.xyz:26657" | ||
VITE_APP_FAUCET="http://lxgr.xyz:4500/claimTokens" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<template> | ||
<CCInput | ||
v-model="inputModel" | ||
:max-length="41" | ||
placeholder="cc1.." | ||
:error-text="!validated && inputModel.length != 0 ? 'Invalid address': undefined" | ||
/> | ||
</template> | ||
<script setup lang="ts"> | ||
import CCInput from "@/components/elements/CCInput/CCInput.vue"; | ||
import {ref, watch} from "vue"; | ||
import {validAddress} from "@/utils/validation"; | ||
const validated = defineModel<boolean>("validated", {default: false}) | ||
const inputModel = defineModel<string>({required: true}) | ||
watch(inputModel, () => { | ||
validated.value = validAddress(inputModel.value) | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<template> | ||
<div | ||
class="flex flex-col text-left" | ||
:class="props.class" | ||
> | ||
<input | ||
v-model="model" | ||
class="bg-zinc-300 bg-opacity-20 shadow-inner p-2 bg-transparent text-opacity-100 border-0 focus:outline-none focus:ring-0 placeholder-opacity-50" | ||
:placeholder="placeholder" | ||
:maxlength="maxLength" | ||
> | ||
<div class="text-sm pl-2"> | ||
<p class="text-gray-400"> | ||
{{ infoText }} | ||
</p> | ||
<p class="text-cc-red font-bold"> | ||
{{ errorText }} | ||
</p> | ||
</div> | ||
</div> | ||
</template> | ||
<script lang="ts" setup> | ||
const model = defineModel<string>(); | ||
const props = withDefaults( | ||
defineProps<{ class?: string | string[], placeholder: string; maxLength?: number, infoText?: string, errorText?: string}>(), | ||
{ | ||
class: "text-white placeholder-white", | ||
placeholder: "lorem", | ||
maxLength: 25, | ||
infoText: undefined, | ||
errorText: undefined, | ||
} | ||
); | ||
</script> |
Oops, something went wrong.