Browse Source

Fix domain result when it's not available + remove failed icon

vue
Lev 2 years ago
parent
commit
bec64f40ff
  1. 9
      .idea/workspace.xml
  2. 8
      src/components/DomainResult.vue
  3. 2
      src/result.ts

9
.idea/workspace.xml

@ -1,7 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="ddb8afd5-d3ba-47b1-b6d0-227403f1abf7" name="Changes" comment="Adding links (contacts)" /> <list default="true" id="ddb8afd5-d3ba-47b1-b6d0-227403f1abf7" name="Changes" comment="Adding links (contacts)">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/components/DomainResult.vue" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/DomainResult.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/result.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/result.ts" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -98,7 +102,8 @@
<workItem from="1678136230438" duration="23821000" /> <workItem from="1678136230438" duration="23821000" />
<workItem from="1678294988188" duration="3137000" /> <workItem from="1678294988188" duration="3137000" />
<workItem from="1678453431365" duration="7802000" /> <workItem from="1678453431365" duration="7802000" />
<workItem from="1678966587213" duration="942000" /> <workItem from="1678966587213" duration="1715000" />
<workItem from="1679134080413" duration="4498000" />
</task> </task>
<task id="LOCAL-00001" summary="Wrote the landing"> <task id="LOCAL-00001" summary="Wrote the landing">
<created>1670844191163</created> <created>1670844191163</created>

8
src/components/DomainResult.vue

@ -2,7 +2,7 @@
<div class="center" v-if="result === null"> <div class="center" v-if="result === null">
<RotateSquare2 style="width: 5rem; height: 5rem; margin-top: 3rem;"/> <RotateSquare2 style="width: 5rem; height: 5rem; margin-top: 3rem;"/>
</div> </div>
<GetDomainBtn v-else-if="result.canBuy() && result.condition_fullfilled !== false" <GetDomainBtn v-else-if="result.canBuy() && result.condition_fullfilled !== false && result.buy_price > 0"
:domain="domain" :price="result.buy_price" :domain="domain" :price="result.buy_price"
:collection_required="result.collection_required" :collection_required="result.collection_required"
@click="buy()"/> @click="buy()"/>
@ -16,6 +16,12 @@
<p>you need to be a holder of the collection</p> <p>you need to be a holder of the collection</p>
<div class="collection">{{ result.collection_required.name }}</div> <div class="collection">{{ result.collection_required.name }}</div>
</div> </div>
<div class="owned" v-else-if="result.canBuy() && result.buy_price === 0" style="cursor: initial;">
<p>The domain</p>
<p class="domain">{{ domain }}</p>
<p>is unavailable.</p>
<p>Check the domain length or forbidden characters.</p>
</div>
<div v-else class="owned" @click="$router.push({name: 'Explore', params: {domain: domain}})"> <div v-else class="owned" @click="$router.push({name: 'Explore', params: {domain: domain}})">
<p class="domain">{{ domain }}</p> <p class="domain">{{ domain }}</p>
<p>is owned.</p> <p>is owned.</p>

2
src/result.ts

@ -144,7 +144,7 @@ export function get_ton_link(res: Result) {
return new TonLink(res.zone(), 'b/' + res.domain, res.buy_price!); return new TonLink(res.zone(), 'b/' + res.domain, res.buy_price!);
} }
export let link_types = ['telegram', 'website', 'getgems', 'email']; export let link_types = ['telegram', /*'website',*/ 'getgems', 'email'];
export let link_icons = {'telegram': 'fab fa-telegram', 'website': 'material-icons language', 'getgems': 'fas fa-gem', 'email': 'fas fa-envelope'}; export let link_icons = {'telegram': 'fab fa-telegram', 'website': 'material-icons language', 'getgems': 'fas fa-gem', 'email': 'fas fa-envelope'};
export let default_links = {'telegram': 'https://t.me/', 'website': 'https://', 'getgems': 'https://getgems.org/', 'email': 'example@example.org'}; export let default_links = {'telegram': 'https://t.me/', 'website': 'https://', 'getgems': 'https://getgems.org/', 'email': 'example@example.org'};

Loading…
Cancel
Save