From fcf714a41ec16d530802a929b2bb7ea0dfad2e47 Mon Sep 17 00:00:00 2001 From: Zyronon Date: Mon, 17 Nov 2025 17:10:44 +0800 Subject: [PATCH] fix:replace new host --- README.md | 6 +++--- docs/README.en.md | 4 ++-- index.html | 12 ++++++------ public/robots.txt | 2 +- public/static-home.html | 10 +++++----- scripts/do.js | 2 +- scripts/push-sitemap.js | 2 +- src/components/BaseTable.vue | 3 ++- src/config/env.ts | 2 +- src/pages/word/components/TypeWord.vue | 5 ++++- vite.config.ts | 6 +++--- 11 files changed, 29 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 84f424c1..3efda9c1 100644 --- a/README.md +++ b/README.md @@ -35,14 +35,14 @@ ## 在线访问 -中国: [https://2study.top](https://2study.top) -其他: [https://vercel.2study.top](https://vercel.2study.top) or [https://tw.2study.top](https://tw.2study.top) +中国: [https://typewords.cc](https://typewords.cc) +其他: [https://vercel.typewords.cc](https://vercel.typewords.cc) or [https://tw.typewords.cc](https://tw.typewords.cc) ## 功能列表 ### 单词练习 -- 四种练习模式:跟打 / 辨认 / 听习 / 默写 +- 三种输入模式:跟打 / 复习 / 默写 - 智能模式:记忆曲线自动计算学习单词,并通过默写加深记忆 - 自由模式:不受限制,自行规划 - 提供音标、发音(美音、英音)、例句、短语、近义词、同根词、词源、错误统计等功能 diff --git a/docs/README.en.md b/docs/README.en.md index 900f709a..a8462466 100644 --- a/docs/README.en.md +++ b/docs/README.en.md @@ -39,8 +39,8 @@ Practice English, one strike, one step forward ## Online visit -China: -other: or +China: +other: or ## Feature list diff --git a/index.html b/index.html index e4c4bc99..6fdae1fe 100644 --- a/index.html +++ b/index.html @@ -12,22 +12,22 @@ - + - - + + - + @@ -64,7 +64,7 @@ (function () { var umami = document.createElement("script"); - umami.src = 'https://2study.top/s.js' + umami.src = 'https://typewords.cc/s.js' if (location.href.includes('vercel') || location.href.includes('tw')) { umami.setAttribute("data-website-id", "f630eefc-8b91-4e20-b890-106e6c7bcc10"); } else { @@ -76,7 +76,7 @@ (function () { var umami2 = document.createElement("script"); - umami2.src = 'https://stat.2study.top/script.js' + umami2.src = 'https://stat.typewords.cc/script.js' umami2.setAttribute("data-website-id", "4d728ae3-5393-4efe-81dc-30dcb4f33c00"); var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(umami2, s); diff --git a/public/robots.txt b/public/robots.txt index e33a22d9..72f138ea 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,4 +1,4 @@ User-agent: * Disallow: -Sitemap: https://2study.top/sitemap.xml +Sitemap: https://typewords.cc/sitemap.xml diff --git a/public/static-home.html b/public/static-home.html index aa67bc36..f4997b71 100644 --- a/public/static-home.html +++ b/public/static-home.html @@ -12,22 +12,22 @@ - + - - + + - + @@ -338,7 +338,7 @@
- Skywork.AI 赞助:Skywork.AI: 10 tasks in 1 hour, not 10 hours →Limited free spots: 127 left diff --git a/scripts/do.js b/scripts/do.js index 2a60b8fe..8a9ca5c8 100644 --- a/scripts/do.js +++ b/scripts/do.js @@ -6,7 +6,7 @@ const fs = require('fs') async function generateSitemap() { const bookList = require('../public/list/article.json') const dictList = require('../public/list/word.json') - const SITE_URL = 'https://2study.top' + const SITE_URL = 'https://typewords.cc' // 静态路由(首页、练习页等) const staticPages = [ diff --git a/scripts/push-sitemap.js b/scripts/push-sitemap.js index 07c29cff..40d44bec 100644 --- a/scripts/push-sitemap.js +++ b/scripts/push-sitemap.js @@ -4,7 +4,7 @@ const dictList = require('../public/list/word.json') async function pushUrls() { // 配置区:改成你的 - const site = "https://2study.top"; // 必须和百度站长平台注册的域名一致 + const site = "https://typewords.cc"; // 必须和百度站长平台注册的域名一致 const token = ""; // 在百度站长平台获取 // 读取 urls.txt,每行一个 URL diff --git a/src/components/BaseTable.vue b/src/components/BaseTable.vue index e62b9dba..65137fb2 100644 --- a/src/components/BaseTable.vue +++ b/src/components/BaseTable.vue @@ -14,6 +14,7 @@ import Checkbox from "@/components/base/checkbox/Checkbox.vue"; import DeleteIcon from "@/components/icon/DeleteIcon.vue"; import Dialog from "@/components/dialog/Dialog.vue"; import BaseInput from "@/components/base/BaseInput.vue"; +import {Host} from "@/config/env.ts"; let list = defineModel('list') @@ -283,7 +284,7 @@ defineRender(
短语:一行原文,一行译文;多个请换
同义词、同根词、词源:请前往官方字典,然后编辑其中某个单词,参考其格式
- 模板下载地址:单词导入模板 + 模板下载地址:单词导入模板
{ enforce: 'pre', transformIndexHtml(html) { const scripts = ` - - - + + + ` return html.replace('', `${scripts}`) },