From 6e71aba47690efdc67d82e4527c753e30120b8b6 Mon Sep 17 00:00:00 2001 From: ennucore Date: Sun, 18 Dec 2022 22:15:24 +0100 Subject: [PATCH] Back button + stuff for deploy --- .idea/workspace.xml | 19 +++++++++++++++---- src/api.ts | 6 ++++++ src/result.ts | 6 +++--- src/views/Checkout.vue | 8 ++++++++ tsconfig.json | 3 ++- 5 files changed, 34 insertions(+), 8 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index cda79c8..9354b48 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,9 +1,12 @@ - + + + + @@ -187,6 +197,7 @@ - \ No newline at end of file diff --git a/src/api.ts b/src/api.ts index 4d23f7b..143fd5c 100644 --- a/src/api.ts +++ b/src/api.ts @@ -1,5 +1,11 @@ import axios from 'axios' +declare var process : { + env: { + NODE_ENV: string + } +} + export class Api { public readonly api_url: string; diff --git a/src/result.ts b/src/result.ts index f251e05..f3af68f 100644 --- a/src/result.ts +++ b/src/result.ts @@ -40,7 +40,7 @@ const sleep = (milliseconds: number) => { export async function get_search_results(query: string) { // return await call_api('find/' + query); - await sleep(1000); + await sleep(200); return [ new Result(query + '.ton', 5, 3), new Result(query + '.ton', 1), @@ -51,7 +51,7 @@ export async function get_search_results(query: string) { export async function get_domain_result(domain: string) { // return await call_api('get/' + domain); - await sleep(1000); + await sleep(100); if (domain === 'test.ton') { return new Result(domain); } @@ -80,5 +80,5 @@ export class TonLink { // Get the link for buying a domain export function get_ton_link(res: Result) { - return new TonLink(res.zone(), res.buy_price!, 'b/' + res.domain); + return new TonLink(res.zone(), 'b/' + res.domain, res.buy_price!); } diff --git a/src/views/Checkout.vue b/src/views/Checkout.vue index 9b91882..3011cef 100644 --- a/src/views/Checkout.vue +++ b/src/views/Checkout.vue @@ -1,5 +1,13 @@