From 6f054874e8d296c40c721b7578760aefbd7618dd Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Mon, 22 Jul 2024 14:25:15 +0800 Subject: [PATCH] chore: remove change log component --- src/renderer/src/CHANGELOG.en.md | 55 ------------- src/renderer/src/CHANGELOG.zh.md | 56 ------------- .../pages/settings/components/Changelog.tsx | 30 ------- .../settings/components/changelog.module.scss | 79 ------------------- 4 files changed, 220 deletions(-) delete mode 100644 src/renderer/src/CHANGELOG.en.md delete mode 100644 src/renderer/src/CHANGELOG.zh.md delete mode 100644 src/renderer/src/pages/settings/components/Changelog.tsx delete mode 100644 src/renderer/src/pages/settings/components/changelog.module.scss diff --git a/src/renderer/src/CHANGELOG.en.md b/src/renderer/src/CHANGELOG.en.md deleted file mode 100644 index a0a11504..00000000 --- a/src/renderer/src/CHANGELOG.en.md +++ /dev/null @@ -1,55 +0,0 @@ -# CHANGES LOG - -### v0.3.0 - 2024-07-21 - -- Supports setting the model Temperature parameter -- Support for setting the number of contexts -- Token consumption estimation added to the input box - -### v0.2.9 - 2024-07-20 - -- 📢 Add AiHubMix provider - -### v0.2.8 - 2024-07-20 - -- 🆕 Feature: Add customized service providers - -### v0.2.7 - 2024-07-19 - -- 📢 Add DashScope Provider -- 📢 Add Anthropic Provider - -### v0.2.6 - 2024-07-17 - -- 🆕 Fixed the issue of the BaiChuan API KEY not displaying when clicking to obtain the URL -- 📢 New intelligent body center style - -### v0.2.5 - 2024-07-17 - -- 🆕 Baichuan AI Service Providers -- 📢 New Intelligent Agent Page with Multiple Professional Assistants -- 🌐 Multilingual Issue Fixes and Detailed Optimizations - -### v0.2.4 - 2024-07-16 - -- Fixed the issue of the update log page cannot be scrolled -- Added a check for updates button - -### v0.2.3 - 2024-07-16 - -- Fixed multi-language prompt errors -- Fixed default model error issues with ZHIPU AI -- Fixed OpenRouter API detection error issues -- Fixed multi-language translation errors with model providers - -### v0.2.2 - 2024-07-15 - -- Fix the issue where the default assistant name is empty. -- Fix the problem with default language detection during the first installation. -- Adjust the changelog style. - -### v0.2.1 - 2024-07-15 - -- **Feature**: Add new feature for pausing message sending -- **Fix**: Resolve incomplete translation issue upon language switch -- **Build**: Support for macOS Intel architecture diff --git a/src/renderer/src/CHANGELOG.zh.md b/src/renderer/src/CHANGELOG.zh.md deleted file mode 100644 index 527d2423..00000000 --- a/src/renderer/src/CHANGELOG.zh.md +++ /dev/null @@ -1,56 +0,0 @@ -# 更新日志 - -### v0.3.0 - 2024-07-21 - -- 支持设置模型 Temperature 参数 -- 支持设置上下文数量 -- 输入框增加 Token 消耗预估 - -### v0.2.9 - 2024-07-20 - -- 📢 新增 AiMixHub 服务提供商 - -### v0.2.8 - 2024-07-20 - -- 🆕 新功能: 可以添加自定义服务提供商了 - -### v0.2.7 - 2024-07-19 - -- 📢 新增阿里云灵积服务商 -- 📢 新增 Anthropic 服务商 - -### v0.2.6 - 2024-07-17 - -- 🆕 修复百川 API KEY 点击获取网址没有显示问题 -- 📢 新的智能体中心样式 - -### v0.2.5 - 2024-07-17 - -- 🆕 新增百川AI服务商 -- 📢 全新的智能体页面,新增多种职业助手 -- 🌐 多语言问题修复,细节优化 - -### v0.2.4 - 2024-07-16 - -- 修复更新日志页面不能滚动问题 -- 新增检查更新按钮 - -### v0.2.3 - 2024-07-16 - -- 修复多语言提示错误 -- 修复智谱AI默认模型错误问题 -- 修复 OpenRouter API 检测出错问题 -- 修复模型提供商多语言翻译错误问题 - -### v0.2.2 - 2024-07-15 - -- 修复默认助理名称为空的问题 -- 修复首次安装默认语言检测问题 -- 更新日志样式微调 - -### v0.2.1 - 2024-07-15 - -- 【功能】新增消息暂停发送功能 -- 【修复】修复多语言切换不彻底问题 -- 【构建】支持 macOS Intel 架构 - diff --git a/src/renderer/src/pages/settings/components/Changelog.tsx b/src/renderer/src/pages/settings/components/Changelog.tsx deleted file mode 100644 index f0949c6e..00000000 --- a/src/renderer/src/pages/settings/components/Changelog.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import changelogEn from '@renderer/CHANGELOG.en.md?raw' -import changelogZh from '@renderer/CHANGELOG.zh.md?raw' -import { FC } from 'react' -import Markdown from 'react-markdown' -import styled from 'styled-components' -import styles from './changelog.module.scss' -import i18n from '@renderer/i18n' - -const Changelog: FC = () => { - const language = i18n.language - const changelog = language === 'zh-CN' ? changelogZh : changelogEn - - return ( - - {changelog} - - ) -} - -const Container = styled.div` - display: flex; - flex: 1; - font-size: 14px; - padding: 20px; - width: 100%; - overflow-y: scroll; - border-left: 0.5px solid var(--color-border); -` - -export default Changelog diff --git a/src/renderer/src/pages/settings/components/changelog.module.scss b/src/renderer/src/pages/settings/components/changelog.module.scss deleted file mode 100644 index 7cda3bd0..00000000 --- a/src/renderer/src/pages/settings/components/changelog.module.scss +++ /dev/null @@ -1,79 +0,0 @@ -$background-color: #121212; -$text-color: #ffffff; -$heading-color: #00b96b; -$link-color: #3498db; -$code-background: #1e1e1e; -$code-color: #f0e7db; - -.markdown { - body { - background-color: $background-color; - color: $text-color; - font-family: Arial, sans-serif; - padding: 20px; - } - - h1, - h2, - h3, - h4, - h5, - h6 { - color: $heading-color; - } - - h1 { - font-size: 22px; - font-weight: 700; - } - - h3 { - margin: 10px 0; - font-weight: 500; - font-family: Arial, sans-serif; - } - - a { - color: $link-color; - text-decoration: none; - - &:hover { - text-decoration: underline; - } - } - - strong { - font-weight: bold; - } - - pre { - background-color: $code-background; - padding: 10px; - border-radius: 5px; - overflow-x: auto; - } - - code { - background-color: $code-background; - color: $code-color; - padding: 2px 4px; - border-radius: 3px; - } - - blockquote { - border-left: 4px solid $heading-color; - padding-left: 10px; - margin-left: 0; - color: #b3b3b3; - } - - ul, - ol { - padding-left: 20px; - list-style: disc; - } - - li { - margin-bottom: 5px; - } -}