From 23127952f5bf77e8ba0ac46fe83430c356eda29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Wed, 7 Aug 2024 03:38:05 +0800 Subject: [PATCH] link --- README.md | 4 +-- README_en.md | 4 +-- README_ru.md | 4 +-- docs/en/start.md | 2 +- docs/index.html | 4 +-- docs/main.js | 66 +----------------------------------------------- docs/ru/start.md | 2 +- docs/zh/start.md | 2 +- 8 files changed, 12 insertions(+), 76 deletions(-) diff --git a/README.md b/README.md index b40d14e4..faca3fef 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@

- - + +

### 简体中文 | [Русский язык](README_ru.md) | [English](README_en.md) | [Other Language](otherlang.md) diff --git a/README_en.md b/README_en.md index 4bb2de71..6f797c27 100644 --- a/README_en.md +++ b/README_en.md @@ -2,8 +2,8 @@

- - + +

### [简体中文](README.md) | [Русский язык](README_ru.md) | English | [Other Languages](otherlang.md) diff --git a/README_ru.md b/README_ru.md index 940d9060..92cbe9de 100644 --- a/README_ru.md +++ b/README_ru.md @@ -2,8 +2,8 @@

- - + +

### [简体中文](README.md) | Русский язык | [English](README_en.md) | [Other Language](otherlang.md) diff --git a/docs/en/start.md b/docs/en/start.md index db6deff5..5e20b4e9 100644 --- a/docs/en/start.md +++ b/docs/en/start.md @@ -4,7 +4,7 @@ ## How to Download -1. Go to [the LunaTranslator releases page](https://lunatranslator.xyz/Github/LunaTranslator/releases) +1. Go to [the LunaTranslator releases page](https://github.com/HIllya51/LunaTranslator/releases) 2. In the "Assets" section of the latest release, find and download the "LunaTranslator.zip" file 3. Extract the contents of the ZIP file to any directory on your computer. ![img](https://image.lunatranslator.xyz/zh/download.jpg) diff --git a/docs/index.html b/docs/index.html index 011efa47..e7a01686 100644 --- a/docs/index.html +++ b/docs/index.html @@ -43,9 +43,9 @@ diff --git a/docs/main.js b/docs/main.js index 3ae39ab1..c7b88b05 100644 --- a/docs/main.js +++ b/docs/main.js @@ -11,7 +11,7 @@ window.$docsify = { crossChapter: true, crossChapterText: true, }, - repo: 'https://lunatranslator.xyz/Github/LunaTranslator', + repo: 'https://github.com/HIllya51/LunaTranslator', alias: { '/zh/_sidebar.md': '/zh/sidebar.md', @@ -71,70 +71,6 @@ window.$docsify = { import('/manyapis.js') }) }, - function (hook, vm) { - return; - hook.doneEach(() => { - var toupiao = document.getElementById('toupiao') - if (toupiao == null) return - fetch('https://lunatranslator.xyz/toupiao_query?toupiao=1&toupiao=2&toupiao=3&toupiao=4&toupiao=5&toupiao=6&toupiao=7&toupiao=8&toupiao=9&toupiao=10').then( - (_) => { - return _.json() - } - ) - .then((res) => { - var averages = [] - - for (let idx = 0; idx < 10; idx++) { - const values = res[idx] - var average = 0; - if (values.length) { - - const sum = values.reduce((accumulator, currentValue) => accumulator + currentValue, 0); - average = sum / values.length; - } - const names = ["DeepSeek", "阿里云百炼大模型", "字节跳动豆包大模型", "月之暗面", "智谱AI", "零一万物", "硅基流动", "讯飞星火大模型", "腾讯混元大模型", "百度千帆大模型"] - - averages.push({ average: average, name: names[idx], idx: idx }) - } - averages.sort((a, b) => b.average - a.average) - for (let idx = 0; idx < 10; idx++) { - - let item = averages[idx] - toupiao.innerHTML += ` - ${item.name}${item.average} - - - - - - - ` - } - for (let i = 0; i < 10; i++) { - const values = res[i] - var average = 0; - if (values.length) { - const sum = values.reduce((accumulator, currentValue) => accumulator + currentValue, 0); - average = sum / values.length; - } - - var value = Math.floor(average) - if (value == 0) value = 1; - document.querySelector(`#rate-${i}-${value}`).checked = true - for (let ii = 0; ii < 5; ii += 1) { - document.querySelector(`#rate-${i}-${ii + 1}`).addEventListener('click', function () { - - window.open(`https://lunatranslator.xyz/toupiao_set?toupiao=${1 + Number(this.id.split('-')[1])}&value=${Number(this.id.split('-')[2])}`, '_blank'); - - }) - } - } - - - }) - - }) - }, ] } diff --git a/docs/ru/start.md b/docs/ru/start.md index 2512ea42..44b94c79 100644 --- a/docs/ru/start.md +++ b/docs/ru/start.md @@ -3,7 +3,7 @@ ## Скачать -Ссылка для загрузки актуальной версии программы: https://lunatranslator.xyz/Github/LunaTranslator/releases +Ссылка для загрузки актуальной версии программы: https://github.com/HIllya51/LunaTranslator/releases Скачайте архив **LunaTranslator.zip** и распакуйте его в любое удобное для вас место. ![img](https://image.lunatranslator.xyz/ru/download_ru.png) diff --git a/docs/zh/start.md b/docs/zh/start.md index 8cce62f5..76e2cc6a 100644 --- a/docs/zh/start.md +++ b/docs/zh/start.md @@ -1,6 +1,6 @@ ### 下载 -下载64位版 下载32位版 或从 releases 下载 LunaTranslator.zipLunaTranslator_x86.zip ,解压到任意目录 +下载64位版 下载32位版 或从 releases 下载 LunaTranslator.zipLunaTranslator_x86.zip ,解压到任意目录 #### 注意