Skip to content

Commit fcf714a

Browse files
authored
fix:replace new host
1 parent c9dc7a8 commit fcf714a

11 files changed

Lines changed: 29 additions & 25 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535

3636
## 在线访问
3737

38-
中国: [https://2study.top](https://2study.top)
39-
其他: [https://vercel.2study.top](https://vercel.2study.top) or [https://tw.2study.top](https://tw.2study.top)
38+
中国: [https://typewords.cc](https://typewords.cc)
39+
其他: [https://vercel.typewords.cc](https://vercel.typewords.cc) or [https://tw.typewords.cc](https://tw.typewords.cc)
4040

4141
## 功能列表
4242

4343
### 单词练习
4444

45-
- 四种练习模式:跟打 / 辨认 / 听习 / 默写
45+
- 三种输入模式:跟打 / 复习 / 默写
4646
- 智能模式:记忆曲线自动计算学习单词,并通过默写加深记忆
4747
- 自由模式:不受限制,自行规划
4848
- 提供音标、发音(美音、英音)、例句、短语、近义词、同根词、词源、错误统计等功能

‎docs/README.en.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ Practice English, one strike, one step forward
3939

4040
## Online visit
4141

42-
China:<https://2study.top>
43-
other:<https://vercel.2study.top> or <https://tw.2study.top>
42+
China:<https://typewords.cc>
43+
other:<https://vercel.typewords.cc> or <https://tw.typewords.cc>
4444

4545
## Feature list
4646

‎index.html‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@
1212

1313
<meta name="author" content="zyronon"/>
1414
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"/>
15-
<link rel="canonical" href="https://2study.top/"/>
15+
<link rel="canonical" href="https://typewords.cc/"/>
1616

1717
<!-- Open Graph(用于社交媒体分享,微信/QQ/知乎/Facebook 等) -->
1818
<meta property="og:title" content="Type Words 官网 - 英语打字练习平台">
1919
<meta property="og:description"
2020
content="Type Words 官方网站 - 在线英语练习平台,支持单词、文章跟打练习,提升英语学习效率。Practice English, one strike, one step forward">
2121
<meta property="og:type" content="website">
22-
<meta property="og:url" content="https://2study.top/">
23-
<meta property="og:image" content="https://2study.top/favicon.png">
22+
<meta property="og:url" content="https://typewords.cc/">
23+
<meta property="og:image" content="https://typewords.cc/favicon.png">
2424

2525
<!-- Twitter Card(用于 Twitter 分享) -->
2626
<meta name="twitter:card" content="summary_large_image">
2727
<meta name="twitter:title" content="Type Words 官网 - 英语打字练习平台">
2828
<meta name="twitter:description"
2929
content="Type Words 官方网站 - 在线英语练习平台,支持单词、文章跟打练习,提升英语学习效率。Practice English, one strike, one step forward">
30-
<meta name="twitter:image" content="https://2study.top/favicon.png">
30+
<meta name="twitter:image" content="https://typewords.cc/favicon.png">
3131

3232
<link rel="icon" type="image/svg+xml" href="/favicon.png"/>
3333
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
@@ -64,7 +64,7 @@
6464

6565
(function () {
6666
var umami = document.createElement("script");
67-
umami.src = 'https://2study.top/s.js'
67+
umami.src = 'https://typewords.cc/s.js'
6868
if (location.href.includes('vercel') || location.href.includes('tw')) {
6969
umami.setAttribute("data-website-id", "f630eefc-8b91-4e20-b890-106e6c7bcc10");
7070
} else {
@@ -76,7 +76,7 @@
7676

7777
(function () {
7878
var umami2 = document.createElement("script");
79-
umami2.src = 'https://stat.2study.top/script.js'
79+
umami2.src = 'https://stat.typewords.cc/script.js'
8080
umami2.setAttribute("data-website-id", "4d728ae3-5393-4efe-81dc-30dcb4f33c00");
8181
var s = document.getElementsByTagName("script")[0];
8282
s.parentNode.insertBefore(umami2, s);

‎public/robots.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
User-agent: *
22
Disallow:
33

4-
Sitemap: https://2study.top/sitemap.xml
4+
Sitemap: https://typewords.cc/sitemap.xml

‎public/static-home.html‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@
1212

1313
<meta name="author" content="zyronon" />
1414
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1" />
15-
<link rel="canonical" href="https://2study.top/" />
15+
<link rel="canonical" href="https://typewords.cc/" />
1616

1717
<!-- Open Graph(用于社交媒体分享,微信/QQ/知乎/Facebook 等) -->
1818
<meta property="og:title" content="Type Words 官网 - 英语打字练习平台">
1919
<meta property="og:description"
2020
content="Type Words 官方网站 - 在线英语练习平台,支持单词、文章跟打练习,提升英语学习效率。Practice English, one strike, one step forward">
2121
<meta property="og:type" content="website">
22-
<meta property="og:url" content="https://2study.top/">
23-
<meta property="og:image" content="https://2study.top/favicon.png">
22+
<meta property="og:url" content="https://typewords.cc/">
23+
<meta property="og:image" content="https://typewords.cc/favicon.png">
2424

2525
<!-- Twitter Card(用于 Twitter 分享) -->
2626
<meta name="twitter:card" content="summary_large_image">
2727
<meta name="twitter:title" content="Type Words 官网 - 英语打字练习平台">
2828
<meta name="twitter:description"
2929
content="Type Words 官方网站 - 在线英语练习平台,支持单词、文章跟打练习,提升英语学习效率。Practice English, one strike, one step forward">
30-
<meta name="twitter:image" content="https://2study.top/favicon.png">
30+
<meta name="twitter:image" content="https://typewords.cc/favicon.png">
3131

3232
<link rel="icon" type="image/svg+xml" href="/favicon.png"/>
3333
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
@@ -338,7 +338,7 @@ <h2>学习英语,一次敲击,一点进步,开源单词与文章练习工
338338

339339
<div class="sky">
340340
<a href="https://skywork.ai/p/GrXQb4" style="width: 40%;" target="_blank">
341-
<img src="https://2study.top/skywork-ai.png"
341+
<img src="https://typewords.cc/skywork-ai.png"
342342
alt="Skywork.AI"
343343
class="sky-img"></a>
344344
<span>赞助:<a href="https://skywork.ai/p/GrXQb4" class="color-blue!" target="_blank">Skywork.AI: 10 tasks in 1 hour, not 10 hours →Limited free spots: 127 left</a></span>

‎scripts/do.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const fs = require('fs')
66
async function generateSitemap() {
77
const bookList = require('../public/list/article.json')
88
const dictList = require('../public/list/word.json')
9-
const SITE_URL = 'https://2study.top'
9+
const SITE_URL = 'https://typewords.cc'
1010

1111
// 静态路由(首页、练习页等)
1212
const staticPages = [

‎scripts/push-sitemap.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const dictList = require('../public/list/word.json')
44

55
async function pushUrls() {
66
// 配置区:改成你的
7-
const site = "https://2study.top"; // 必须和百度站长平台注册的域名一致
7+
const site = "https://typewords.cc"; // 必须和百度站长平台注册的域名一致
88
const token = ""; // 在百度站长平台获取
99

1010
// 读取 urls.txt,每行一个 URL

‎src/components/BaseTable.vue‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import Checkbox from "@/components/base/checkbox/Checkbox.vue";
1414
import DeleteIcon from "@/components/icon/DeleteIcon.vue";
1515
import Dialog from "@/components/dialog/Dialog.vue";
1616
import BaseInput from "@/components/base/BaseInput.vue";
17+
import {Host} from "@/config/env.ts";
1718
1819
let list = defineModel('list')
1920
@@ -283,7 +284,7 @@ defineRender(
283284
<div>短语:一行原文,一行译文;多个请换<span class="color-red">两</span>行</div>
284285
<div>同义词、同根词、词源:请前往官方字典,然后编辑其中某个单词,参考其格式</div>
285286
<div class="mt-6">
286-
模板下载地址:<a href="https://2study.top/libs/单词导入模板.xlsx">单词导入模板</a>
287+
模板下载地址:<a href={`https://${Host}/libs/单词导入模板.xlsx`}>单词导入模板</a>
287288
</div>
288289
<div class="mt-4">
289290
<BaseButton

‎src/config/env.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const GITHUB = 'https://github.com/zyronon/TypeWords'
2-
export const Host = '2study.top'
2+
export const Host = 'typewords.cc'
33
export const EMAIL = 'zyronon@163.com'
44
export const Origin = `https://${Host}`
55
export const APP_NAME = 'Type Words'

‎src/pages/word/components/TypeWord.vue‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ function del() {
300300
301301
function showWord() {
302302
if (settingStore.allowWordTip) {
303+
if (settingStore.wordPracticeType === WordPracticeType.Dictation || settingStore.dictation) {
304+
emit('wrong')
305+
}
303306
showFullWord = true
304307
//系统设定的默认模式情况下,如果看了单词统计到错词里面去
305308
switch (statStore.step) {
@@ -321,7 +324,7 @@ function hideWord() {
321324
}
322325
323326
function play() {
324-
if (settingStore.wordPracticeType === WordPracticeType.Dictation) {
327+
if (settingStore.wordPracticeType === WordPracticeType.Dictation || settingStore.dictation) {
325328
emit('wrong')
326329
}
327330
volumeIconRef?.play()

0 commit comments

Comments
 (0)