From fcacfb9a04d43f1b763c17dd90c657999ef61c14 Mon Sep 17 00:00:00 2001 From: 7836246 Date: Sat, 2 Mar 2024 19:48:03 +0800 Subject: [PATCH] =?UTF-8?q?:triangular=5Fflag=5Fon=5Fpost:=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0Dns=E5=8A=9F=E8=83=BD=20=E4=BC=98=E5=8C=96=E6=80=A7?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/common/DnsList.vue | 26 +++++ components/common/DomainList.vue | 2 +- components/tab/list.vue | 41 +++++++ lang/en.ts | 1 + lang/tw.ts | 1 + lang/zh.ts | 1 + layouts/default.vue | 133 +++++++++++----------- layouts/result.vue | 119 ------------------- nuxt.config.ts | 7 ++ pages/dns/[domain].html.vue | 93 +++++++++++++++ pages/index.vue | 3 + pages/{result => whois}/[domain].html.vue | 10 +- server/api/dns.post.ts | 31 +++++ stores/style.ts | 14 +++ utils/domain.ts | 3 + 15 files changed, 294 insertions(+), 191 deletions(-) create mode 100644 components/common/DnsList.vue create mode 100644 components/tab/list.vue delete mode 100644 layouts/result.vue create mode 100644 pages/dns/[domain].html.vue rename pages/{result => whois}/[domain].html.vue (96%) create mode 100644 server/api/dns.post.ts create mode 100644 stores/style.ts diff --git a/components/common/DnsList.vue b/components/common/DnsList.vue new file mode 100644 index 0000000..8feebd2 --- /dev/null +++ b/components/common/DnsList.vue @@ -0,0 +1,26 @@ + + + + + diff --git a/components/common/DomainList.vue b/components/common/DomainList.vue index 5ea9000..9824972 100644 --- a/components/common/DomainList.vue +++ b/components/common/DomainList.vue @@ -9,7 +9,7 @@ const isOpen = ref(false)
diff --git a/components/tab/list.vue b/components/tab/list.vue new file mode 100644 index 0000000..5cd5d1d --- /dev/null +++ b/components/tab/list.vue @@ -0,0 +1,41 @@ + + + + + diff --git a/lang/en.ts b/lang/en.ts index 90019af..31cae2f 100644 --- a/lang/en.ts +++ b/lang/en.ts @@ -2,6 +2,7 @@ export default defineI18nLocale(async locale => { return { index: { tips: 'The information you submit for your query will not be recorded!', + placeholder: 'Please enter a domain name', }, error:{ formatDomain: 'Error formatting domain name', diff --git a/lang/tw.ts b/lang/tw.ts index b70fc3f..250054c 100644 --- a/lang/tw.ts +++ b/lang/tw.ts @@ -2,6 +2,7 @@ export default defineI18nLocale(async locale => { return { index: { tips: '您提交的查詢信息不會被記錄!', + placeholder: '請輸入域名', }, error:{ formatDomain: '域名格式錯誤', diff --git a/lang/zh.ts b/lang/zh.ts index 8c56525..a688f39 100644 --- a/lang/zh.ts +++ b/lang/zh.ts @@ -2,6 +2,7 @@ export default defineI18nLocale(async locale => { return { index: { tips: '您提交的查询信息不会被记录!', + placeholder: '请输入域名', }, error:{ formatDomain: '域名格式错误', diff --git a/layouts/default.vue b/layouts/default.vue index 2aae816..2bf8510 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -1,5 +1,6 @@