Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #4862

Closed
wants to merge 44 commits into from
Closed

test #4862

Show file tree
Hide file tree
Changes from 43 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
7115eb0
yu modify some app name
Yu-SKun May 15, 2023
d57d67a
更新 settings.tsx
Yu-SKun May 15, 2023
23a9651
Merge branch 'Yidadaa:main' into main
Yu-SKun May 18, 2023
7349932
Merge branch 'Yidadaa:main' into main
Yu-SKun May 24, 2023
c7b9278
Merge branch 'Yidadaa:main' into main
Yu-SKun May 29, 2023
b64469a
Merge branch 'Yidadaa:main' into main
Yu-SKun May 31, 2023
2bd0101
Merge branch 'Yidadaa:main' into main
Yu-SKun Jun 1, 2023
053522c
Merge branch 'Yidadaa:main' into main
Yu-SKun Jun 5, 2023
a033e60
Merge branch 'Yidadaa:main' into main
Yu-SKun Jun 7, 2023
6c7457e
modify files api and exporter
Yu-SKun Jun 7, 2023
5605f85
Merge branch 'Yidadaa:main' into main
Yu-SKun Jun 12, 2023
65abdfd
Merge branch 'main' into main
Yu-SKun Jun 21, 2023
c55de3c
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
actions-user Jun 22, 2023
040bd93
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
actions-user Jun 23, 2023
c0b3fab
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
actions-user Jun 24, 2023
8f6b69a
Merge branch 'Yidadaa:main' into main
Yu-SKun Jun 25, 2023
2d597b1
Merge branch 'Yidadaa:main' into main
Yu-SKun Jun 26, 2023
e39619b
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
actions-user Jun 27, 2023
33621b3
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
actions-user Jun 28, 2023
d629b96
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
actions-user Jun 29, 2023
2d8d2aa
20230630
Yu-SKun Jun 30, 2023
691ae97
20230630
Yu-SKun Jun 30, 2023
7b71418
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
Yu-SKun Jun 30, 2023
aad8188
Merge branch 'main' of ChatGPT-Next-Web
Yu-SKun Jun 30, 2023
8315729
Merge branch 'main' of https://github.com/Yu-SKun/YuSixChat
Yu-SKun Jun 30, 2023
00618b0
Merge branch 'Yidadaa:main' into main
Yu-SKun Jul 3, 2023
85fea1b
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
Yu-SKun Jul 11, 2023
b76a5eb
Merge branch 'Yidadaa:main' into main
Yu-SKun Jul 14, 2023
4f9b980
20230717
Yu-SKun Jul 17, 2023
c37c82f
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
Yu-SKun Jul 17, 2023
72ff411
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
Yu-SKun Jul 24, 2023
c3028b3
Merge branch 'Yidadaa:main' into main
Yu-SKun Jul 28, 2023
cc72433
Merge branch 'Yidadaa:main' into main
Yu-SKun Aug 2, 2023
8424914
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
Yu-SKun Aug 17, 2023
1a43440
Merge branch 'main' of https://github.com/Yu-SKun/YuSixChat
Yu-SKun Aug 17, 2023
3407a5f
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
Yu-SKun Aug 25, 2023
a64cf09
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
Yu-SKun Oct 31, 2023
f89b803
modified: app/components/sidebar.tsx
Yu-SKun Oct 31, 2023
fd3eadc
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
Yu-SKun Nov 27, 2023
b7e59b5
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
Yu-SKun Nov 27, 2023
1d69323
Merge branch 'main' of https://github.com/Yu-SKun/YuSixChat
Yu-SKun Jan 3, 2024
2713e18
Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next…
Yu-SKun Jan 3, 2024
c271b87
Merge branch 'ChatGPTNextWeb:main' into main
Yu-SKun Jan 22, 2024
e1f1218
Merge branch 'main' into main
Yu-SKun Jun 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

/.history

# dependencies
/node_modules
/.pnp
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div align="center">
<img src="./docs/images/head-cover.png" alt="icon"/>

<h1 align="center">NextChat (ChatGPT Next Web)</h1>
<h1 align="center">TimoChat</h1>

English / [简体中文](./README_CN.md)

Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div align="center">
<img src="./docs/images/icon.svg" alt="预览"/>

<h1 align="center">NextChat</h1>
<h1 align="center">TimoChat</h1>

一键免费部署你的私人 ChatGPT 网页应用,支持 GPT3, GPT4 & Gemini Pro 模型。

Expand Down
173 changes: 173 additions & 0 deletions README_ES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
<div align="center">
<img src="./docs/images/icon.svg" alt="预览"/>

<h1 align="center">TimoChat</h1>

Implemente su aplicación web privada ChatGPT de forma gratuita con un solo clic.

[Demo demo](https://chat-gpt-next-web.vercel.app/) / [Problemas de comentarios](https://github.com/Yidadaa/ChatGPT-Next-Web/issues) / [Únete a Discord](https://discord.gg/zrhvHCr79N) / [Grupo QQ](https://user-images.githubusercontent.com/16968934/228190818-7dd00845-e9b9-4363-97e5-44c507ac76da.jpeg) / [Desarrolladores de consejos](https://user-images.githubusercontent.com/16968934/227772541-5bcd52d8-61b7-488c-a203-0330d8006e2b.jpg) / [Donar](#捐赠-donate-usdt)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip

Codebase Verification

The current repository URL is https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git. However, the links in README_ES.md still point to https://github.com/Yidadaa/ChatGPT-Next-Web, indicating that they have not been updated to reflect the new repository URL.

To address this, the following links in README_ES.md need to be updated:

  • https://github.com/Yidadaa/ChatGPT-Next-Web/issues should be updated to https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/issues
  • https://github.com/Yidadaa/ChatGPT-Next-Web should be updated to https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web
  • https://github.com/Yidadaa/ChatGPT-Next-Web/graphs/contributors should be updated to https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/graphs/contributors

Please update these links to ensure they point to the correct repository.

  • README_ES.md: Line with [Problemas de comentarios](https://github.com/Yidadaa/ChatGPT-Next-Web/issues)
  • README_ES.md: Line with [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/Yidadaa/ChatGPT-Next-Web)
  • README_ES.md: Line with [Ver la lista de colaboradores del proyecto](https://github.com/Yidadaa/ChatGPT-Next-Web/graphs/contributors)
Analysis chain

Ensure that the links are correctly updated to point to the new repository URLs if necessary.


The review comment suggests ensuring that the links in README_ES.md are correctly updated to point to the new repository URLs if necessary. The rg command output shows multiple instances of URLs pointing to https://github.com/Yidadaa/ChatGPT-Next-Web in various markdown files, including README_ES.md.

To proceed, we need to identify the correct new repository URLs and compare them with the current URLs in README_ES.md.

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that all links are updated to the new repository URLs.
rg --type markdown 'https://github.com/Yidadaa/ChatGPT-Next-Web'

Length of output: 7746



Script:

#!/bin/bash
# Description: Check the current repository URL to identify the new repository URL.
git remote get-url origin

Length of output: 82


Script:

#!/bin/bash
# Description: Display the contents of README_ES.md to review the URLs.
cat README_ES.md

Length of output: 8440

Tools
LanguageTool

[duplication] ~8-~8: Posible error: repetición de una palabra (SPANISH_WORD_REPEAT_RULE)
Context: ...T de forma gratuita con un solo clic. Demo demo...


[typographical] ~8-~8: Símbolo desparejado: Parece que falta un ‘[’. (ES_UNPAIRED_BRACKETS)
Context: ...a gratuita con un solo clic. Demo demo ...


[typographical] ~8-~8: Símbolo desparejado: Parece que falta un ‘]’. (ES_UNPAIRED_BRACKETS)
Context: ...52d8-61b7-488c-a203-0330d8006e2b.jpg) / Donar [![Deploy with ...

Markdownlint

8-8: null (MD051, link-fragments)
Link fragments should be valid


[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FYidadaa%2FChatGPT-Next-Web&env=OPENAI_API_KEY&env=CODE&project-name=chatgpt-next-web&repository-name=ChatGPT-Next-Web)

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/Yidadaa/ChatGPT-Next-Web)

![主界面](./docs/images/cover.png)

</div>

## Comenzar

1. Prepara el tuyo [Clave API OpenAI](https://platform.openai.com/account/api-keys);
2. Haga clic en el botón de la derecha para iniciar la implementación:
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FYidadaa%2FChatGPT-Next-Web&env=OPENAI_API_KEY&env=CODE&project-name=chatgpt-next-web&repository-name=ChatGPT-Next-Web), inicie sesión directamente con su cuenta de Github y recuerde completar la clave API y la suma en la página de variables de entorno[Contraseña de acceso a la página](#配置页面访问密码) CÓDIGO;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip

Codebase Verification

The section header #配置页面访问密码 does not exist in the README_ES.md file, as the search did not produce any output.

  • README_ES.md: The link fragment #配置页面访问密码 does not point to a valid section header within the file.
Analysis chain

Verify that the link fragment is valid and points to the correct location.

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that the link fragment is valid.
rg --type markdown '#配置页面访问密码'

Length of output: 872



Script:

#!/bin/bash
# Description: Verify the existence of the section header '#配置页面访问密码' in README_ES.md.
rg --type markdown '^#配置页面访问密码' README_ES.md

Length of output: 46

Tools
Markdownlint

22-22: null (MD051, link-fragments)
Link fragments should be valid

3. Una vez implementado, puede comenzar;
4. (Opcional)[Enlazar un nombre de dominio personalizado](https://vercel.com/docs/concepts/projects/domains/add-a-domain): El nombre de dominio DNS asignado por Vercel está contaminado en algunas regiones y puede conectarse directamente enlazando un nombre de dominio personalizado.

## Manténgase actualizado

Si sigue los pasos anteriores para implementar su proyecto con un solo clic, es posible que siempre diga "La actualización existe" porque Vercel creará un nuevo proyecto para usted de forma predeterminada en lugar de bifurcar el proyecto, lo que evitará que la actualización se detecte correctamente.
Le recomendamos que siga estos pasos para volver a implementar:

- Eliminar el repositorio original;
- Utilice el botón de bifurcación en la esquina superior derecha de la página para bifurcar este proyecto;
- En Vercel, vuelva a seleccionar e implementar,[Echa un vistazo al tutorial detallado](./docs/vercel-cn.md#如何新建项目)。

### Activar actualizaciones automáticas

> Si encuentra un error de ejecución de Upstream Sync, ¡Sync Fork manualmente una vez!

Cuando bifurca el proyecto, debido a las limitaciones de Github, debe ir manualmente a la página Acciones de su proyecto bifurcado para habilitar Flujos de trabajo y habilitar Upstream Sync Action, después de habilitarlo, puede activar las actualizaciones automáticas cada hora:

![自动更新](./docs/images/enable-actions.jpg)

![启用自动更新](./docs/images/enable-actions-sync.jpg)

### Actualizar el código manualmente

Si desea que el manual se actualice inmediatamente, puede consultarlo [Documentación para Github](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork) Aprenda a sincronizar un proyecto bifurcado con código ascendente.

Puede destacar / ver este proyecto o seguir al autor para recibir notificaciones de nuevas actualizaciones de funciones.

## Configurar la contraseña de acceso a la página

> Después de configurar la contraseña, el usuario debe completar manualmente el código de acceso en la página de configuración para chatear normalmente, de lo contrario, se solicitará el estado no autorizado a través de un mensaje.

> **advertir**: Asegúrese de establecer el número de dígitos de la contraseña lo suficientemente largo, preferiblemente más de 7 dígitos, de lo contrario[Será volado](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/518)。

Este proyecto proporciona control de permisos limitado, agregue el nombre al nombre en la página Variables de entorno del Panel de control del proyecto Vercel `CODE` Variables de entorno con valores para contraseñas personalizadas separadas por comas:

code1,code2,code3

Después de agregar o modificar la variable de entorno, por favor**Redesplegar**proyecto para poner en vigor los cambios.

## Variable de entorno

> La mayoría de los elementos de configuración de este proyecto se establecen a través de variables de entorno, tutorial:[Cómo modificar las variables de entorno de Vercel](./docs/vercel-cn.md)。

### `OPENAI_API_KEY` (Requerido)

OpanAI key, la clave API que solicita en la página de su cuenta openai.

### `CODE` (Opcional)

Las contraseñas de acceso, opcionalmente, se pueden separar por comas.

**advertir**: Si no completa este campo, cualquiera puede usar directamente su sitio web implementado, lo que puede hacer que su token se consuma rápidamente, se recomienda completar esta opción.

### `BASE_URL` (Opcional)

> Predeterminado: `https://api.openai.com`

> Ejemplos: `http://your-openai-proxy.com`

URL del proxy de interfaz OpenAI, complete esta opción si configuró manualmente el proxy de interfaz openAI.

> Si encuentra problemas con el certificado SSL, establezca el `BASE_URL` El protocolo se establece en http.

### `OPENAI_ORG_ID` (Opcional)

Especifica el identificador de la organización en OpenAI.

### `HIDE_USER_API_KEY` (Opcional)

Si no desea que los usuarios rellenen la clave de API ellos mismos, establezca esta variable de entorno en 1.

### `DISABLE_GPT4` (Opcional)

Si no desea que los usuarios utilicen GPT-4, establezca esta variable de entorno en 1.

### `HIDE_BALANCE_QUERY` (Opcional)

Si no desea que los usuarios consulte el saldo, establezca esta variable de entorno en 1.

## explotación

> No se recomienda encarecidamente desarrollar o implementar localmente, debido a algunas razones técnicas, es difícil configurar el agente API de OpenAI localmente, a menos que pueda asegurarse de que puede conectarse directamente al servidor OpenAI.

Haga clic en el botón de abajo para iniciar el desarrollo secundario:

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/Yidadaa/ChatGPT-Next-Web)

Antes de empezar a escribir código, debe crear uno nuevo en la raíz del proyecto `.env.local` archivo, lleno de variables de entorno:

OPENAI_API_KEY=<your api key here>

### Desarrollo local

1. Instale nodejs 18 e hilo, pregunte a ChatGPT para obtener más detalles;
2. ejecutar `yarn install && yarn dev` Enlatar. ⚠️ Nota: Este comando es solo para desarrollo local, no para implementación.
3. Úselo si desea implementar localmente `yarn install && yarn start` comando, puede cooperar con pm2 a daemon para evitar ser asesinado, pregunte a ChatGPT para obtener más detalles.

## desplegar

### Implementación de contenedores (recomendado)

> La versión de Docker debe ser 20 o posterior, de lo contrario se indicará que no se puede encontrar la imagen.

> ⚠️ Nota: Las versiones de Docker están de 1 a 2 días por detrás de la última versión la mayor parte del tiempo, por lo que es normal que sigas diciendo "La actualización existe" después de la implementación.

```shell
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the code block is properly indented as per Markdown standards.

- ```shell
+     ```shell
Tools
Markdownlint

129-129: Expected: indented; Actual: fenced (MD046, code-block-style)
Code block style

docker pull yidadaa/chatgpt-next-web

docker run -d -p 3000:3000 \
-e OPENAI_API_KEY=sk-xxxx \
-e CODE=your-password \
yidadaa/chatgpt-next-web
```

También puede especificar proxy:

```shell
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the code block is properly indented as per Markdown standards.

- ```shell
+     ```shell
Tools
Markdownlint

140-140: Expected: indented; Actual: fenced (MD046, code-block-style)
Code block style

docker run -d -p 3000:3000 \
-e OPENAI_API_KEY=sk-xxxx \
-e CODE=your-password \
--net=host \
-e PROXY_URL=http://127.0.0.1:7890 \
yidadaa/chatgpt-next-web
```

Si necesita especificar otras variables de entorno, agréguelas usted mismo en el comando anterior `-e 环境变量=环境变量值` para especificar.

### Implementación local

Ejecute el siguiente comando en la consola:

```shell
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the code block is properly indented as per Markdown standards.

- ```shell
+     ```shell
Tools
Markdownlint

155-155: Expected: indented; Actual: fenced (MD046, code-block-style)
Code block style

bash <(curl -s https://raw.githubusercontent.com/Yidadaa/ChatGPT-Next-Web/main/scripts/setup.sh)
```

⚠️ Nota: Si tiene problemas durante la instalación, utilice la implementación de Docker.

## Reconocimiento

### donante

> Ver versión en inglés.

### Colaboradores

[Ver la lista de colaboradores del proyecto](https://github.com/Yidadaa/ChatGPT-Next-Web/graphs/contributors)

## Licencia de código abierto

[MIT](https://opensource.org/license/mit/)
2 changes: 1 addition & 1 deletion app/client/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class ClientApi {
{
from: "human",
value:
"Share from [NextChat]: https://github.com/Yidadaa/ChatGPT-Next-Web",
"Share from [Timo Chat]",
},
]);
// 敬告二开开发者们,为了开源大模型的发展,请不要修改上述消息,此消息用于后续数据清洗使用
Expand Down
4 changes: 2 additions & 2 deletions app/components/exporter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,9 @@ export function ImagePreviewer(props: {
</div>

<div>
<div className={styles["main-title"]}>NextChat</div>
<div className={styles["main-title"]}>Timo Chat</div>
<div className={styles["sub-title"]}>
github.com/Yidadaa/ChatGPT-Next-Web
Chat with your AI assistant.
</div>
<div className={styles["icons"]}>
<ExportAvatar avatar={config.avatar} />
Expand Down
10 changes: 7 additions & 3 deletions app/components/home.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,13 @@
}

.sidebar-title {
font-size: 20px;
font-weight: bold;
animation: slide-in ease 0.3s;
color: transparent;
font-weight: 800;
background-image: linear-gradient(90deg,#1772e1,#0cf1a5);
-webkit-background-clip: text;
background-clip: text;
font-size: 1.5rem;
margin-right: 0.5rem;
}

.sidebar-sub-title {
Expand Down
16 changes: 11 additions & 5 deletions app/components/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,14 @@ export function Settings() {
setCheckingUpdate(false);
});

console.log("[Update] local version ", updateStore.version);
console.log("[Update] remote version ", updateStore.remoteVersion);
console.log(
"[Update] local version ",
new Date(+updateStore.version).toLocaleString(),
);
// console.log(
// "[Update] remote version ",
// new Date(+updateStore.remoteVersion).toLocaleString(),
// );
Yu-SKun marked this conversation as resolved.
Show resolved Hide resolved
}

const accessStore = useAccessStore();
Expand Down Expand Up @@ -661,7 +667,7 @@ export function Settings() {
{Locale.Settings.Title}
</div>
<div className="window-header-sub-title">
{Locale.Settings.SubTitle}
{Locale.Settings.Update.Version(currentVersion ?? "unknown")}
</div>
</div>
<div className="window-actions">
Expand Down Expand Up @@ -700,7 +706,7 @@ export function Settings() {
</Popover>
</ListItem>

<ListItem
{/* <ListItem
title={Locale.Settings.Update.Version(currentVersion ?? "unknown")}
subTitle={
checkingUpdate
Expand All @@ -723,7 +729,7 @@ export function Settings() {
onClick={() => checkUpdate(true)}
/>
)}
</ListItem>
</ListItem> */}

<ListItem title={Locale.Settings.SendKey}>
<Select
Expand Down
14 changes: 5 additions & 9 deletions app/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,14 @@ export function SideBar(props: { className?: string }) {
>
<div className={styles["sidebar-header"]} data-tauri-drag-region>
<div className={styles["sidebar-title"]} data-tauri-drag-region>
NextChat
Timo Chat
</div>
<div className={styles["sidebar-sub-title"]}>
Build your own AI assistant.
Chat with your AI assistant.
</div>
<div className={styles["sidebar-logo"] + " no-dark"}>
<ChatGptIcon />
{/* <ChatGptIcon /> */}
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="48" height="48"><path d="M512 910.234c-92.774 0-178.995-24.27-250.88-65.946L115.2 891.392c-6.349 2.048-13.312 1.843-19.558-.717-14.541-5.939-21.504-22.528-15.565-37.069l50.79-123.801C84.07 667.136 56.934 592.384 56.934 512c0-219.955 203.776-398.234 455.066-398.234S967.066 292.045 967.066 512 763.392 910.234 512 910.234zm0-341.3c31.437 0 56.934-25.497 56.934-56.934 0-31.437-25.497-56.934-56.934-56.934S455.066 480.563 455.066 512s25.497 56.934 56.934 56.934zm-227.533 0c31.437 0 56.935-25.497 56.935-56.934 0-31.437-25.498-56.934-56.935-56.934S227.533 480.563 227.533 512c0 31.437 25.497 56.934 56.934 56.934zm455.066 0c31.437 0 56.934-25.497 56.934-56.934 0-31.437-25.497-56.934-56.934-56.934-31.437 0-56.935 25.497-56.935 56.934.103 31.437 25.498 56.934 56.935 56.934z" fill="#8BCAE0"></path></svg>
Comment on lines +158 to +165
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the sidebar logo to use the new SVG logo. Ensure the SVG has appropriate accessibility tags.

-          {/* <ChatGptIcon /> */}
+          {/* SVG logo updated for Timo Chat */}
+          <svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="48" height="48" aria-labelledby="logoTitle">
+          <title id="logoTitle">Timo Chat Logo</title>
+          <path d="M512 910.234c-92.774 0-178.995-24.27-250.88-65.946L115.2 891.392c-6.349 2.048-13.312 1.843-19.558-.717-14.541-5.939-21.504-22.528-15.565-37.069l50.79-123.801C84.07 667.136 56.934 592.384 56.934 512c0-219.955 203.776-398.234 455.066-398.234S967.066 292.045 967.066 512 763.392 910.234 512 910.234zm0-341.3c31.437 0 56.934-25.497 56.934-56.934 0-31.437-25.497-56.934-56.934-56.934S455.066 480.563 455.066 512s25.497 56.934 56.934 56.934zm-227.533 0c31.437 0 56.935-25.497 56.935-56.934 0-31.437-25.498-56.934-56.935-56.934S227.533 480.563 227.533 512c0 31.437 25.497 56.934 56.934 56.934zm455.066 0c31.437 0 56.934-25.497 56.934-56.934 0-31.437-25.497-56.934-56.934-56.934-31.437 0-56.935 25.497-56.935 56.934.103 31.437 25.498 56.934 56.935 56.934z" fill="#8BCAE0"></path></svg>
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Timo Chat
</div>
<div className={styles["sidebar-sub-title"]}>
Build your own AI assistant.
Chat with your AI assistant.
</div>
<div className={styles["sidebar-logo"] + " no-dark"}>
<ChatGptIcon />
{/* <ChatGptIcon /> */}
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="48" height="48"><path d="M512 910.234c-92.774 0-178.995-24.27-250.88-65.946L115.2 891.392c-6.349 2.048-13.312 1.843-19.558-.717-14.541-5.939-21.504-22.528-15.565-37.069l50.79-123.801C84.07 667.136 56.934 592.384 56.934 512c0-219.955 203.776-398.234 455.066-398.234S967.066 292.045 967.066 512 763.392 910.234 512 910.234zm0-341.3c31.437 0 56.934-25.497 56.934-56.934 0-31.437-25.497-56.934-56.934-56.934S455.066 480.563 455.066 512s25.497 56.934 56.934 56.934zm-227.533 0c31.437 0 56.935-25.497 56.935-56.934 0-31.437-25.498-56.934-56.935-56.934S227.533 480.563 227.533 512c0 31.437 25.497 56.934 56.934 56.934zm455.066 0c31.437 0 56.934-25.497 56.934-56.934 0-31.437-25.497-56.934-56.934-56.934-31.437 0-56.935 25.497-56.935 56.934.103 31.437 25.498 56.934 56.935 56.934z" fill="#8BCAE0"></path></svg>
{/* SVG logo updated for Timo Chat */}
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="48" height="48" aria-labelledby="logoTitle">
<title id="logoTitle">Timo Chat Logo</title>
<path d="M512 910.234c-92.774 0-178.995-24.27-250.88-65.946L115.2 891.392c-6.349 2.048-13.312 1.843-19.558-.717-14.541-5.939-21.504-22.528-15.565-37.069l50.79-123.801C84.07 667.136 56.934 592.384 56.934 512c0-219.955 203.776-398.234 455.066-398.234S967.066 292.045 967.066 512 763.392 910.234 512 910.234zm0-341.3c31.437 0 56.934-25.497 56.934-56.934 0-31.437-25.497-56.934-56.934-56.934S455.066 480.563 455.066 512s25.497 56.934 56.934 56.934zm-227.533 0c31.437 0 56.935-25.497 56.935-56.934 0-31.437-25.498-56.934-56.935-56.934S227.533 480.563 227.533 512c0 31.437 25.497 56.934 56.934 56.934zm455.066 0c31.437 0 56.934-25.497 56.934-56.934 0-31.437-25.497-56.934-56.934-56.934-31.437 0-56.935 25.497-56.935 56.934.103 31.437 25.498 56.934 56.935 56.934z" fill="#8BCAE0"></path></svg>
Tools
Biome

[error] 165-165: Alternative text title element cannot be empty (lint/a11y/noSvgWithoutTitle)

For accessibility purposes, SVGs should have an alternative text, provided via title element. If the svg element has role="img", you should add the aria-label or aria-labelledby attribute.

</div>
</div>

Expand Down Expand Up @@ -215,12 +216,7 @@ export function SideBar(props: { className?: string }) {
<Link to={Path.Settings}>
<IconButton icon={<SettingsIcon />} shadow />
</Link>
</div>
<div className={styles["sidebar-action"]}>
<a href={REPO_URL} target="_blank" rel="noopener noreferrer">
<IconButton icon={<GithubIcon />} shadow />
</a>
</div>
</div>
</div>
<div>
<IconButton
Expand Down
6 changes: 3 additions & 3 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { getServerSideConfig } from "./config/server";
const serverConfig = getServerSideConfig();

export const metadata: Metadata = {
title: "NextChat",
description: "Your personal ChatGPT Chat Bot.",
title: "Timo Chat",
description: "Chat with your AI assistant.",
viewport: {
width: "device-width",
initialScale: 1,
Expand All @@ -22,7 +22,7 @@ export const metadata: Metadata = {
{ media: "(prefers-color-scheme: dark)", color: "#151515" },
],
appleWebApp: {
title: "NextChat",
title: "Timo Chat",
statusBarStyle: "default",
},
};
Expand Down
2 changes: 1 addition & 1 deletion docs/faq-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Docker 版本相当于稳定版,latest Docker 总是与 latest release version
## 如何修改 Vercel 环境变量

- 进入 vercel 的控制台页面;
- 选中你的 NextChat 项目;
- 选中你的 TimoChat 项目;
- 点击页面头部的 Settings 选项;
- 找到侧边栏的 Environment Variables 选项;
- 修改对应的值即可。
Expand Down
39 changes: 20 additions & 19 deletions public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
{
"name": "NextChat",
"short_name": "NextChat",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"start_url": "/",
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
"name": "Timo Chat",
"short_name": "ChatGPT",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"start_url": "/",
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}

Loading
Loading