fix:replace new host
This commit is contained in:
@@ -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)
|
||||
|
||||
## 功能列表
|
||||
|
||||
### 单词练习
|
||||
|
||||
- 四种练习模式:跟打 / 辨认 / 听习 / 默写
|
||||
- 三种输入模式:跟打 / 复习 / 默写
|
||||
- 智能模式:记忆曲线自动计算学习单词,并通过默写加深记忆
|
||||
- 自由模式:不受限制,自行规划
|
||||
- 提供音标、发音(美音、英音)、例句、短语、近义词、同根词、词源、错误统计等功能
|
||||
|
||||
@@ -39,8 +39,8 @@ Practice English, one strike, one step forward
|
||||
|
||||
## Online visit
|
||||
|
||||
China:<https://2study.top>
|
||||
other:<https://vercel.2study.top> or <https://tw.2study.top>
|
||||
China:<https://typewords.cc>
|
||||
other:<https://vercel.typewords.cc> or <https://tw.typewords.cc>
|
||||
|
||||
## Feature list
|
||||
|
||||
|
||||
12
index.html
12
index.html
@@ -12,22 +12,22 @@
|
||||
|
||||
<meta name="author" content="zyronon"/>
|
||||
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"/>
|
||||
<link rel="canonical" href="https://2study.top/"/>
|
||||
<link rel="canonical" href="https://typewords.cc/"/>
|
||||
|
||||
<!-- Open Graph(用于社交媒体分享,微信/QQ/知乎/Facebook 等) -->
|
||||
<meta property="og:title" content="Type Words 官网 - 英语打字练习平台">
|
||||
<meta property="og:description"
|
||||
content="Type Words 官方网站 - 在线英语练习平台,支持单词、文章跟打练习,提升英语学习效率。Practice English, one strike, one step forward">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="https://2study.top/">
|
||||
<meta property="og:image" content="https://2study.top/favicon.png">
|
||||
<meta property="og:url" content="https://typewords.cc/">
|
||||
<meta property="og:image" content="https://typewords.cc/favicon.png">
|
||||
|
||||
<!-- Twitter Card(用于 Twitter 分享) -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="Type Words 官网 - 英语打字练习平台">
|
||||
<meta name="twitter:description"
|
||||
content="Type Words 官方网站 - 在线英语练习平台,支持单词、文章跟打练习,提升英语学习效率。Practice English, one strike, one step forward">
|
||||
<meta name="twitter:image" content="https://2study.top/favicon.png">
|
||||
<meta name="twitter:image" content="https://typewords.cc/favicon.png">
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.png"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
@@ -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);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
User-agent: *
|
||||
Disallow:
|
||||
|
||||
Sitemap: https://2study.top/sitemap.xml
|
||||
Sitemap: https://typewords.cc/sitemap.xml
|
||||
|
||||
@@ -12,22 +12,22 @@
|
||||
|
||||
<meta name="author" content="zyronon" />
|
||||
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1" />
|
||||
<link rel="canonical" href="https://2study.top/" />
|
||||
<link rel="canonical" href="https://typewords.cc/" />
|
||||
|
||||
<!-- Open Graph(用于社交媒体分享,微信/QQ/知乎/Facebook 等) -->
|
||||
<meta property="og:title" content="Type Words 官网 - 英语打字练习平台">
|
||||
<meta property="og:description"
|
||||
content="Type Words 官方网站 - 在线英语练习平台,支持单词、文章跟打练习,提升英语学习效率。Practice English, one strike, one step forward">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="https://2study.top/">
|
||||
<meta property="og:image" content="https://2study.top/favicon.png">
|
||||
<meta property="og:url" content="https://typewords.cc/">
|
||||
<meta property="og:image" content="https://typewords.cc/favicon.png">
|
||||
|
||||
<!-- Twitter Card(用于 Twitter 分享) -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="Type Words 官网 - 英语打字练习平台">
|
||||
<meta name="twitter:description"
|
||||
content="Type Words 官方网站 - 在线英语练习平台,支持单词、文章跟打练习,提升英语学习效率。Practice English, one strike, one step forward">
|
||||
<meta name="twitter:image" content="https://2study.top/favicon.png">
|
||||
<meta name="twitter:image" content="https://typewords.cc/favicon.png">
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.png"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
@@ -338,7 +338,7 @@
|
||||
|
||||
<div class="sky">
|
||||
<a href="https://skywork.ai/p/GrXQb4" style="width: 40%;" target="_blank">
|
||||
<img src="https://2study.top/skywork-ai.png"
|
||||
<img src="https://typewords.cc/skywork-ai.png"
|
||||
alt="Skywork.AI"
|
||||
class="sky-img"></a>
|
||||
<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>
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(
|
||||
<div>短语:一行原文,一行译文;多个请换<span class="color-red">两</span>行</div>
|
||||
<div>同义词、同根词、词源:请前往官方字典,然后编辑其中某个单词,参考其格式</div>
|
||||
<div class="mt-6">
|
||||
模板下载地址:<a href="https://2study.top/libs/单词导入模板.xlsx">单词导入模板</a>
|
||||
模板下载地址:<a href={`https://${Host}/libs/单词导入模板.xlsx`}>单词导入模板</a>
|
||||
</div>
|
||||
<div class="mt-4">
|
||||
<BaseButton
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export const GITHUB = 'https://github.com/zyronon/TypeWords'
|
||||
export const Host = '2study.top'
|
||||
export const Host = 'typewords.cc'
|
||||
export const EMAIL = 'zyronon@163.com'
|
||||
export const Origin = `https://${Host}`
|
||||
export const APP_NAME = 'Type Words'
|
||||
|
||||
@@ -300,6 +300,9 @@ function del() {
|
||||
|
||||
function showWord() {
|
||||
if (settingStore.allowWordTip) {
|
||||
if (settingStore.wordPracticeType === WordPracticeType.Dictation || settingStore.dictation) {
|
||||
emit('wrong')
|
||||
}
|
||||
showFullWord = true
|
||||
//系统设定的默认模式情况下,如果看了单词统计到错词里面去
|
||||
switch (statStore.step) {
|
||||
@@ -321,7 +324,7 @@ function hideWord() {
|
||||
}
|
||||
|
||||
function play() {
|
||||
if (settingStore.wordPracticeType === WordPracticeType.Dictation) {
|
||||
if (settingStore.wordPracticeType === WordPracticeType.Dictation || settingStore.dictation) {
|
||||
emit('wrong')
|
||||
}
|
||||
volumeIconRef?.play()
|
||||
|
||||
@@ -64,9 +64,9 @@ export default defineConfig(() => {
|
||||
enforce: 'pre',
|
||||
transformIndexHtml(html) {
|
||||
const scripts = `
|
||||
<script src="https://2study.top/libs/vue.global.prod.min.js" crossorigin="anonymous"></script>
|
||||
<script src="https://2study.top/libs/vue-router.global.prod.min.js" crossorigin="anonymous"></script>
|
||||
<script src="https://2study.top/libs/axios.min.js" crossorigin="anonymous"></script>
|
||||
<script src="https://typewords.cc/libs/vue.global.prod.min.js" crossorigin="anonymous"></script>
|
||||
<script src="https://typewords.cc/libs/vue-router.global.prod.min.js" crossorigin="anonymous"></script>
|
||||
<script src="https://typewords.cc/libs/axios.min.js" crossorigin="anonymous"></script>
|
||||
`
|
||||
return html.replace('<head>', `<head>${scripts}`)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user