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 @@
-
+
+
+
+
@@ -71,7 +74,7 @@
-
+
1670844191163
@@ -157,7 +160,14 @@
1671302241009
-
+
+ 1671302856594
+
+
+
+ 1671302856594
+
+
@@ -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 @@
+
+
+
+
+
To buy
diff --git a/tsconfig.json b/tsconfig.json
index 8d23599..9bc4f87 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -5,7 +5,8 @@
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
- }
+ },
+ "allowJs": true
},
"references": [