diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 599e10b..4bcc583 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,18 +1,13 @@
-
-
-
+
-
-
-
-
-
+
-
-
+
+
+
@@ -79,7 +74,8 @@
-
+
+
1670844191163
@@ -116,7 +112,14 @@
1671100962105
-
+
+ 1671116726928
+
+
+
+ 1671116726928
+
+
@@ -139,6 +142,7 @@
-
+
+
\ No newline at end of file
diff --git a/src/components/DomainBar.vue b/src/components/DomainBar.vue
index 6e8fc96..fa774a1 100644
--- a/src/components/DomainBar.vue
+++ b/src/components/DomainBar.vue
@@ -1,8 +1,8 @@
-
-
{{ postprompt }}
+
+
{{ zone }}
Search
@@ -15,9 +15,9 @@ export default {
name: "DomainBar",
components: {contenteditable},
props: {
- postprompt: {
+ zone: {
type: String,
- default: ".ton"
+ default: ".*"
},
has_button: {
type: Boolean,
@@ -44,10 +44,11 @@ export default {
},
watch: {
value: function (val) {
+ val = val.replace('\n', '');
this.val = val;
},
val: function (val) {
- this.$emit("input", val);
+ this.$emit("input_d", val);
}
}
}
@@ -123,4 +124,8 @@ export default {
margin-top: 1rem;
margin-bottom: 1rem;
}
+
+.post-prompt {
+ font-family: 'Inconsolata', monospace;
+}
\ No newline at end of file
diff --git a/src/components/ZoneTable.vue b/src/components/ZoneTable.vue
index 7461943..a19c2e4 100644
--- a/src/components/ZoneTable.vue
+++ b/src/components/ZoneTable.vue
@@ -1,6 +1,6 @@
-
+
-
+
{{ zone.zone }}
|
diff --git a/src/router/index.ts b/src/router/index.ts
index 62bba14..697d75f 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -1,6 +1,14 @@
import {createRouter, createWebHistory} from 'vue-router'
import Landing from '../views/Landing.vue'
+/*
+/find - bar + table
+/find/query - search results
+/get/zone - get a domain in a zone (should be able to go to /find)
+/get/zone/domain - get a specific domain
+ */
+// todo: change zone repr from .zone.ton to zone
+
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
@@ -25,7 +33,13 @@ const router = createRouter({
component: () => import('../views/TonDns.vue')
},
{
- path: '/get/:domain',
+ path: '/get/:zone',
+ name: 'GetZ',
+ component: () => import('../views/Get.vue'),
+ props: true
+ },
+ {
+ path: '/get/:zone/:domain_init',
name: 'Get',
component: () => import('../views/Get.vue'),
props: true
diff --git a/src/views/Get.vue b/src/views/Get.vue
index 58965fa..cf925a5 100644
--- a/src/views/Get.vue
+++ b/src/views/Get.vue
@@ -1,7 +1,7 @@
-
-
+
+
@@ -11,11 +11,32 @@ import DomainBar from "../components/DomainBar.vue";
export default {
name: "Get",
props: {
- domain: {
+ domain_init: {
type: String,
+ },
+ zone: {
+ type: String,
+ }
+ },
+ components: {DomainBar, DarkLayout},
+ data() {
+ return {
+ domain: this.domain_init
}
},
- components: {DomainBar, DarkLayout}
+ methods: {
+ search() {
+ this.$router.push({name: 'Get', params: {domain_init: this.domain, zone: this.zone}});
+ },
+ handle_input(val) {
+ this.domain = val;
+ }
+ },
+ watch: {
+ domain_init: function (val) {
+ this.domain = val;
+ }
+ }
}
diff --git a/src/views/TonDns.vue b/src/views/TonDns.vue
index a3a10bd..7c96f48 100644
--- a/src/views/TonDns.vue
+++ b/src/views/TonDns.vue
@@ -18,7 +18,7 @@
-
+