Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/dev'
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/dockerimage.yml
  • Loading branch information
EightDoor committed Apr 6, 2024
2 parents 606c447 + d937056 commit fa63fae
Show file tree
Hide file tree
Showing 210 changed files with 9,153 additions and 2,384 deletions.
6 changes: 3 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ Install pnpm: `npm install -g pnpm`

Set the Electron mirror environment variable and install Electron:

* macOS/Linux: `ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install [email protected].4 -D`
* macOS/Linux: `ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install [email protected].10 -D`
* Windows:
* `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
* `pnpm install [email protected].4 -D`
* `pnpm install [email protected].10 -D`

NPM mirror:

Expand All @@ -30,7 +30,7 @@ NPM mirror:

On the desktop, go to the app folder to run:

* `pnpm install [email protected].4 -D`
* `pnpm install [email protected].10 -D`
* `pnpm run dev`
* `pnpm run start`

Expand Down
6 changes: 3 additions & 3 deletions .github/CONTRIBUTING_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

* macOS/Linux:
```
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install [email protected].4 -D
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install [email protected].10 -D
```
* Windows:
* `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
* `pnpm install [email protected].4 -D`
* `pnpm install [email protected].10 -D`

NPM 镜像:

Expand All @@ -32,7 +32,7 @@ NPM 镜像:

桌面端进入 app 文件夹运行:

* `pnpm install [email protected].4 -D`
* `pnpm install [email protected].10 -D`
* `pnpm run dev`
* `pnpm run start`

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Release Docker Image
on:
workflow_dispatch:
push:
branches:
- master

jobs:
build:
name: build
Expand Down Expand Up @@ -46,4 +49,4 @@ jobs:

- name: Build the Docker image
run: |
docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8 -t 851708184/siyuan:latest -t 851708184/siyuan:v3.0.3 .
docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8 -t 851708184/siyuan:latest -t 851708184/siyuan:v3.0.7 .
53 changes: 40 additions & 13 deletions app/appearance/langs/en_US.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{
"removeCard": "Remove flashcard",
"updateLayout": "Update layout",
"dndFolderTip": "Please note that ${x} only inserts the file:// hyperlink and does not copy the file",
"removeCol": "Are you sure you want to delete the ${x} column in the database?",
"video": "Video",
"audio": "Audio",
"updateAll": "Update all",
"confirmUpdateAll": "Are you sure you want to update all?",
"confirmUpdate": "Are you sure you want to update?",
"insertRowBefore": "Insert rows ${x} above",
"insertRowAfter": "Insert rows ${x} below",
"setDueTime": "Set expiration time",
"showCardDay": "After how many days do you want to show the card?",
"forgetCount": "Forget to count",
"lastReviewTime": "Last review time",
"cardStatus": "Card status",
"noSupportTip": "This function does not support the use of card packages",
"noSupportTip": "This function does not support the use of card decks",
"insertRowTip": "The newly added rows have been filtered and can be viewed by canceling filtering/searching/sorting",
"insertRowTip2": "New rows do not participate in sorting",
"insertPhoto": "Take a photo and insert it",
Expand Down Expand Up @@ -293,6 +306,10 @@
"apiModelTip": "The <code class='fn__code'>model</code> parameter passed in when requesting the API is used to control the generated text style (the Deployment ID needs to be filled in when using the Azure OpenAI service)",
"apiMaxTokens": "Maximum number of Tokens",
"apiMaxTokensTip": "The <code class='fn__code'>max_tokens</code> parameter passed in when requesting the API is used to control the length of the generated text",
"apiTemperature": "Temperature",
"apiTemperatureTip": "The <code class='fn__code'>temperature</code> parameter passed in when requesting the API is used to control the randomness of the generated text",
"apiMaxContexts": "Maximum number of contexts",
"apiMaxContextsTip": "The maximum number of contexts passed in when requesting the API",
"apiBaseURL": "API Base URL",
"apiBaseURLTip": "The base address of the request, such as <code class='fn__code'>https://api.openai.com/v1</code>",
"apiUserAgentTip": "The user agent that initiated the request, that is, the HTTP header <code class='fn__code'>User-Agent</code>",
Expand All @@ -307,14 +324,6 @@
"aiContinueWrite": "Continue writing",
"aiTranslate": "Translate",
"aiExtractSummary": "Extract summary",
"aiTranslate_zh_Hans": "Simplified Chinese",
"aiTranslate_zh_Hant": "Traditional Chinese",
"aiTranslate_ja_JP": "Japanese",
"aiTranslate_ko_KR": "Korean",
"aiTranslate_en_US": "English",
"aiTranslate_es_ES": "Spanish",
"aiTranslate_fr_FR": "French",
"aiTranslate_de_DE": "German",
"aiBrainStorm": "Brainstorm",
"aiFixGrammarSpell": "Fix grammar, spelling and typos",
"aiCustomAction": "Custom action...",
Expand Down Expand Up @@ -428,6 +437,14 @@
"autoDownloadUpdatePkgTip": "After enabling, it will automatically check the version update every two hours. If there is an updated version, it will automatically download the installation package and prompt for installation",
"downloaded": "Downloaded",
"allOp": "All operations",
"allNotebooks": "All Notebooks",
"historyClean": "clean",
"historyUpdate": "update",
"historyDelete": "delete",
"historyFormat": "format",
"historySync": "sync",
"historyReplace": "replace",
"historyOutline": "outline",
"htmlBlockError": "The execution of the following script will affect the interface display, and the script has stopped running",
"fileHistory": "File history",
"htmlBlockTip": "Multiple HTML blocks are formed. To prevent data loss, please use <code class='fn__code'>&lt;div&gt;</code> tags to wrap and remove blank lines",
Expand Down Expand Up @@ -973,6 +990,7 @@
"fileTree19": "Some operating systems have technical limitations that may prevent manual copying of workspace data after creating sub-documents greater than 7 levels",
"fileTree20": "Save with a single line",
"fileTree21": "After enabling, the single-line JSON format will be used when saving .sy docs and database .json files, which can reduce the file size by about 30% and improve read and write efficiency by 50%",
"export10": "For example <code class='fn__code'>&lt;span style=\"color: #fff;background-color: black;padding: 4px;border-radius: 5px;float:right;\"&gt;SiYuan&lt;/span&gt;</code>, if empty, use watermark text or watermark file path.",
"export11": "Content handling method of content ref block when exporting",
"export12": "Content handling method of content embed block when exporting",
"export13": "Anchor text wrapping symbol",
Expand Down Expand Up @@ -1073,7 +1091,7 @@
"about11": "Network serving",
"about12": "After enabling, other devices in the same LAN will be allowed to access. The application will be closed automatically after modification, please restart manually",
"about13": "API token",
"about14": "The token needs to be authenticated when calling the API",
"about14": "The token needs to be authenticated when calling the API<br>HTTP request header <code class=\"fn__code\">Authorization: token ${token}</code>",
"about17": "Do not enable proxy when set to <code class='fn__code'>Direct connection</code>",
"about18": "When using a non-loopback address (<code class=\"fn__code\">127.0.0.1</code>/<code class=\"fn__code\">[::1]</code>) please set the Access authorization code first",
"checkUpdate": "Check update",
Expand Down Expand Up @@ -1203,7 +1221,8 @@
},
"_attrView": {
"table": "Table",
"key": "Primary Key"
"key": "Primary Key",
"select": "Select"
},
"_kernel": {
"0": "Query notebook failed",
Expand Down Expand Up @@ -1311,7 +1330,7 @@
"102": "Processing completed",
"103": "The update installation package has been automatically downloaded in the background. When exiting, you will be asked whether to install the new version",
"104": "The update installation package failed to download, please check the network connection",
"105": "TODO",
"105": "Untitled",
"106": "Maximum length is limited to 512 characters",
"107": "Moved document [%s]",
"108": "Data sync found conflicts, you can view the generated conflict content in [Data History]",
Expand Down Expand Up @@ -1439,6 +1458,14 @@
"230": "Deleting cloud storage unreferenced check indexes...",
"231": "Deleting unreferenced data objects in cloud storage...",
"232": "The cloud data storage has been purged. [%d] snapshots and [%d] data objects have been deleted, and a total of [%s] disk space has been released",
"233": "Closing user guide..."
"233": "Closing user guide...",
"234": "[%d/%d] Updated [%d] of readable paths of doc [%s]",
"235": "[%d/%d] is updating the marketplace package...",
"236": "[%d/%d] is updating the marketplace package [%s]...",
"237": "[%d] marketplace packages have all been updated successfully",
"238": "Marketplace package [%s] update failed, please try again later",
"239": "Related operations are being processed, please try again later",
"240": "Drag heading under container blocks in the doc is not supported",
"241": "Drag to its subheading is not supported"
}
}
57 changes: 42 additions & 15 deletions app/appearance/langs/es_ES.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
{
"removeCard": "Eliminar tarjeta flash",
"updateLayout": "Actualizar diseño",
"dndFolderTip": "Tenga en cuenta que ${x} solo inserta el hipervínculo file:// y no copia el archivo",
"removeCol": "¿Está seguro de que desea eliminar la columna ${x} en la base de datos?",
"vídeo": "Vídeo",
"audio": "Audio",
"updateAll": "Actualizar todo",
"confirmUpdateAll": "¿Estás seguro de que deseas actualizar todo?",
"confirmUpdate": "¿Estás seguro de que deseas actualizar?",
"insertRowBefore": "Insertar filas ${x} arriba",
"insertRowAfter": "Insertar filas ${x} debajo",
"setDueTime": "Establecer tiempo de vencimiento",
"showCardDay": "¿Después de cuántos días deseas mostrar la tarjeta?",
"forgetCount": "Olvídate de contar",
"lastReviewTime": "Última hora de revisión",
"cardStatus": "Estado de la tarjeta",
Expand Down Expand Up @@ -293,6 +306,10 @@
"apiModelTip": "El parámetro <code class='fn__code'>model</code> pasado al solicitar la API se usa para controlar el estilo del texto generado (el ID de implementación debe completarse cuando se usa el servicio Azure OpenAI)",
"apiMaxTokens": "Número máximo de tokens",
"apiMaxTokensTip": "El parámetro <code class='fn__code'>max_tokens</code> que se pasa al solicitar la API se usa para controlar la longitud del texto generado",
"apiTemperature": "Temperatura",
"apiTemperatureTip": "El parámetro <code class='fn__code'>temperature</code> pasado al solicitar la API se utiliza para controlar la aleatoriedad del texto generado",
"apiMaxContexts": "Número máximo de contextos",
"apiMaxContextsTip": "El número máximo de contextos pasados ​​al solicitar la API",
"apiBaseURL": "URL base de la API",
"apiBaseURLTip": "La dirección base de la solicitud, como <code class='fn__code'>https://api.openai.com/v1</code>",
"apiUserAgentTip": "El agente de usuario que inició la solicitud, es decir, el encabezado HTTP <code class='fn__code'>User-Agent</code>",
Expand All @@ -302,19 +319,11 @@
"apiProviderTip": "Utilice el proveedor de API seleccionado para implementar funciones relacionadas con la IA",
"skip": "barco",
"nextRound": "Siguiente ronda",
"save": "Ahorrar",
"save": "Guardar",
"ai": "Inteligencia Artificial",
"aiContinueWrite": "Continuar escribiendo",
"aiTranslate": "Traducir",
"aiExtractSummary": "Extraer resumen",
"aiTranslate_zh_Hans": "Chino simplificado",
"aiTranslate_zh_Hant": "Chino tradicional",
"aiTranslate_ja_JP": "Japonés",
"aiTranslate_ko_KR": "Coreano",
"aiTranslate_en_US": "Inglés",
"aiTranslate_es_ES": "Español",
"aiTranslate_fr_FR": "Francés",
"aiTranslate_de_DE": "Alemán",
"aiBrainStorm": "Lluvia de ideas",
"aiFixGrammarSpell": "Corregir gramática, ortografía y errores tipográficos.",
"aiCustomAction": "Acción personalizada...",
Expand All @@ -323,12 +332,12 @@
"spaceRepetition": "Repetición Espaciada",
"space": "Espacio",
"pdfIsLoading": "El PDF se está cargando, inténtalo de nuevo más tarde",
"cardShowAnswer": "Afficher la réponse",
"cardShowAnswer": "Mostrar la respuesta",
"cardRatingAgain": "Otra vez",
"cardRatingHard": "Difícil",
"cardRatingGood": "Bueno",
"cardRatingEasy": "Fácil",
"addToDeck": "Agregar a la plataforma...",
"addToDeck": "Agregar al mazo...",
"quickMakeCard": "Tarjeta de creación rápida",
"allAttrs": "Todos los nombres de atributos y valores de atributos",
"chooseSyncDirection": "Elegir dirección de sincronización",
Expand Down Expand Up @@ -428,6 +437,14 @@
"autoDownloadUpdatePkgTip": "Después de abrir, verificará automáticamente la actualización de la versión cada dos horas. Si hay una versión actualizada, descargará automáticamente el paquete de instalación y solicitará la instalación",
"downloaded": "Descargado",
"allOp": "Todas las operaciones",
"allNotebooks": "Todos los cuadernos",
"historyClean": "limpiar (clean)",
"historyUpdate": "actualizar (update)",
"historyDelete": "eliminar (delete)",
"historyFormat": "formatear (format)",
"historySync": "sincronizar (sync)",
"historyReplace": "reemplazar (replace)",
"historyOutline": "esquema (outline)",
"htmlBlockError": "La ejecución del siguiente script afectará la visualización de la interfaz y el script ha dejado de ejecutarse",
"fileHistory": "Historial de archivos",
"htmlBlockTip": "Se forman varios bloques HTML. Para evitar la pérdida de datos, utilice etiquetas <code class='fn__code'>&lt;div&gt;</code> para ajustar y eliminar líneas en blanco",
Expand Down Expand Up @@ -973,6 +990,7 @@
"fileTree19": "Algunos sistemas operativos tienen limitaciones técnicas que pueden impedir la copia manual de los datos del espacio de trabajo después de crear subdocumentos de más de 7 niveles",
"fileTree20": "Guardar con una sola línea",
"fileTree21": "Después de habilitarlo, se utilizará el formato JSON de una sola línea al guardar documentos .sy y archivos .json de bases de datos, lo que puede reducir el tamaño del archivo en aproximadamente un 30 % y mejorar la eficiencia de lectura y escritura en un 50 %.",
"export10": "Por ejemplo <code class='fn__code'>&lt;span style=\"color: #fff;background-color: black;padding: 4px;border-radius: 5px;float:right;\"&gt;SiYuan&lt;/span&gt;</code>, si está vacío, utilice texto de marca de agua o ruta del archivo de marca de agua.",
"export11": "Método de manejo de contenido del bloque de referencia de contenido al exportar",
"export12": "Método de manejo de contenido del bloque de incrustación de contenido al exportar",
"export13": "Símbolo de envoltura de texto ancla",
Expand Down Expand Up @@ -1073,7 +1091,7 @@
"about11": "Red de servicio",
"about12": "Después de habilitarlo, se permitirá el acceso a otros dispositivos de la misma LAN. La aplicación se cerrará automáticamente después de la modificación, por favor reinicie manualmente",
"about13": "Token API",
"about14": "El token debe ser autentificado al llamar a la API",
"about14": "El token debe ser autentificado al llamar a la API<br>Encabezado de solicitud HTTP <code class=\"fn__code\">Authorization: token ${token}</code>",
"about17": "No habilite el proxy cuando esté configurado como <code class='fn__code'>Conexión directa</code>",
"about18": "Cuando se utiliza una dirección sin bucle invertido (<code class=\"fn__code\">127.0.0.1</code>/<code class=\"fn__code\">[::1]</code> ) Primero configure el Código de autorización de acceso",
"checkUpdate": "Comprobar actualización",
Expand Down Expand Up @@ -1203,7 +1221,8 @@
},
"_attrView": {
"tabla": "Tabla",
"clave": "Clave principal"
"key": "Clave principal",
"select": "Selección"
},
"_kernel": {
"0": "Consulta al cuaderno de notas fallido",
Expand Down Expand Up @@ -1311,7 +1330,7 @@
"102": "Procesamiento completado",
"103": "El paquete de instalación de la actualización se ha descargado automáticamente en segundo plano. Al salir, se le preguntará si desea instalar la nueva versión",
"104": "El paquete de instalación de la actualización no se pudo descargar, verifique la conexión de red",
"105": "TODO",
"105": "Sin título",
"106": "La longitud máxima está limitada a 512 caracteres",
"107": "Documento movido [%s]",
"108": "La sincronizaci\u00f3n de datos encontr\u00f3 en conflictos, puede ver el contenido del conflicto generado en [Historial de datos]",
Expand Down Expand Up @@ -1439,6 +1458,14 @@
"230": "Eliminando índices de verificación sin referencia del almacenamiento en la nube...",
"231": "Eliminar objetos de datos no referenciados en el almacenamiento en la nube...",
"232": "Se ha eliminado el almacenamiento de datos en la nube. Se han eliminado [%d] instantáneas y [%d] objetos de datos, y se ha liberado un total de [%s] espacio en disco",
"233": "Cerrando la guía del usuario..."
"233": "Cerrando la guía del usuario...",
"234": "[%d/%d] Actualizado [%d] de rutas legibles del documento [%s]",
"235": "[%d/%d] está actualizando el paquete del mercado...",
"236": "[%d/%d] está actualizando el paquete del mercado [%s]...",
"237": "[%d] todos los paquetes del mercado se han actualizado correctamente",
"238": "Error en la actualización del paquete Marketplace [%s], inténtalo de nuevo más tarde",
"239": "Las operaciones relacionadas se están procesando, inténtalo de nuevo más tarde",
"240": "No se admite arrastrar encabezado debajo de los bloques contenedores en el documento",
"241": "No se admite arrastrar a su subtítulo"
}
}
Loading

0 comments on commit fa63fae

Please sign in to comment.