Skip to content

Commit

Permalink
Merge pull request #15 from TCOTC/dev-1
Browse files Browse the repository at this point in the history
1
  • Loading branch information
TCOTC authored Jun 21, 2024
2 parents acb1652 + ceaac08 commit d9b7640
Show file tree
Hide file tree
Showing 287 changed files with 79,149 additions and 9,499 deletions.
8 changes: 4 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@

## User Interface

Install pnpm: `npm install -g pnpm`
Install pnpm: `npm install -g pnpm@9.1.1`

<details>
<summary>For China mainland</summary>

Set the Electron mirror environment variable and install Electron:

* macOS/Linux: `ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install electron@28.3.1 -D`
* macOS/Linux: `ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install electron@31.0.2 -D`
* Windows:
* `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
* `pnpm install electron@28.3.1 -D`
* `pnpm install electron@31.0.2 -D`

NPM mirror:

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

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

* `pnpm install electron@28.3.1 -D`
* `pnpm install electron@31.0.2 -D`
* `pnpm run dev`
* `pnpm run start`

Expand Down
8 changes: 4 additions & 4 deletions .github/CONTRIBUTING_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

## NPM 依赖

安装 pnpm:`npm install -g pnpm`
安装 pnpm:`npm install -g pnpm@9.1.1`

<details>
<summary>适用于中国大陆</summary>
Expand All @@ -16,11 +16,11 @@

* macOS/Linux:
```
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install electron@28.3.1 -D
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install electron@31.0.2 -D
```
* Windows:
* `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
* `pnpm install electron@28.3.1 -D`
* `pnpm install electron@31.0.2 -D`

NPM 镜像:

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

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

* `pnpm install electron@28.3.1 -D`
* `pnpm install electron@31.0.2 -D`
* `pnpm run dev`
* `pnpm run start`

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,6 @@ jobs:
with:
install: p7zip mingw-w64-x86_64-lua

- name: Set up TDM-GCC
run: msys2 -c "bash go/src/github.com/${{ env.repo_owner }}/${{ env.repo_name }}/scripts/get-tdm-gcc.sh tdm https://github.com/jmeubank/tdm-gcc/releases/download/v10.3.0-tdm-1/tdm-gcc-10.3.0.exe" && echo "CC=${{ github.workspace }}/tdm/bin/gcc.exe" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
if: "contains( matrix.config.goarch, '386')"
working-directory: ${{ github.workspace }}

- name: Set up Go
uses: actions/setup-go@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ lerna-debug.log*
package-lock.json
yarn.lock

# workflows
# Workflows
**/__pycache__
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ COPY --from=NODE_BUILD /go/src/github.com/siyuan-note/siyuan/ /go/src/github.com
ENV GO111MODULE=on
ENV CGO_ENABLED=1
RUN apk add --no-cache gcc musl-dev && \
cd kernel && go build --tags fts5 -v -ldflags "-s -w -X github.com/siyuan-note/siyuan/kernel/util.Mode=prod" && \
cd kernel && go build --tags fts5 -v -ldflags "-s -w" && \
mkdir /opt/siyuan/ && \
mv /go/src/github.com/siyuan-note/siyuan/app/appearance/ /opt/siyuan/ && \
mv /go/src/github.com/siyuan-note/siyuan/app/stage/ /opt/siyuan/ && \
Expand Down
15,843 changes: 8,981 additions & 6,862 deletions app/appearance/emojis/conf.json

Large diffs are not rendered by default.

19 changes: 16 additions & 3 deletions app/appearance/langs/en_US.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
{
"publish": "Publish",
"publishService": "Publish service",
"publishServiceNotStarted": "Publish Service Not Started",
"publishServiceTip": "When enabled, the publish service will be started. This service publishes the content of the current workspace in read-only mode on the local network.",
"publishServicePort": "Service port",
"publishServicePortTip": "Enable the publish service using the specified port number. If set to <code class='fn__code'>0</code>, a random port will be used.",
"publishServiceAddresses": "Service access addresses",
"publishServiceAddressesTip": "Possible network addresses to access the publish service.",
"publishServiceAuth": "Service basic authentication",
"publishServiceAuthTip": "When enabled, authentication is required to access the publish service.",
"publishServiceAuthAccounts": "Authenticated accounts",
"publishServiceAuthAccountsTip": "List of Basic authentication accounts. Visitors need to enter the username and password from this list to view the published content.",
"publishServiceAuthAccountAdd": "Add account",
"copyMirror": "Copy mirror",
"duplicateMirror": "Duplicate mirror",
"duplicateCompletely": "Duplicate completely",
Expand Down Expand Up @@ -690,7 +703,7 @@
"closeNotebook": "Closed notebooks",
"widget": "Widget",
"customEmoji": "Add custom emoji",
"customEmojiTip": "Open <a href=\"javascript:void(0)\" id=\"appearanceOpenEmoji\">Emoji folder</a>, put the picture in and click the refresh button",
"customEmojiTip": "Put the images into the emojis folder, and use folders to classify them",
"recentEmoji": "Common Emoticons",
"changeIcon": "Change icon",
"addIcon": "Add icon",
Expand Down Expand Up @@ -1289,7 +1302,7 @@
"13": "Cannot create a file starting with .",
"14": "Export failed: %s",
"15": "Content block with id [%s] not found",
"16": "Please enter the doc name",
"16": "Untitled",
"17": "The initial synchronization failed at startup. Unpredictable data overwriting may occur if you continue to operate. Please perform a synchronization first",
"18": "Get community user account failed",
"19": "User information has expired, please log in again",
Expand Down Expand Up @@ -1364,7 +1377,7 @@
"88": "Finished parsing [%d] data files, remaining to be processed [%d]",
"89": "[%d/%d] Created [%d] of data indexes of block-level elements [%s]",
"90": "[%d/%d] Created [%d] of search indexes of block-level elements [%s]",
"91": "Reading block tree data...",
"91": "TODO",
"92": "Parsing document tree [%s]",
"93": "[%d/%d] Cleaned up the index related to document [%s]",
"94": "Upload failed: %s",
Expand Down
19 changes: 16 additions & 3 deletions app/appearance/langs/es_ES.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
{
"publish": "Publicar",
"publishService": "Publicar servicio",
"publishServiceNotStarted": "Servicio de publicación no iniciado",
"publishServiceTip": "Al activar esto, se iniciará el servicio de publicación. Este servicio publicará el contenido del espacio de trabajo actual en modo de solo lectura en la LAN",
"publishServicePort": "Número de puerto del servicio",
"publishServicePortTip": "Activar el servicio de publicación con el número de puerto especificado. Si se establece en 0, se utilizará un puerto aleatorio",
"publishServiceAddresses": "Direcciones de acceso al servicio",
"publishServiceAddressesTip": "Direcciones de red desde las que se puede acceder al servicio de publicación",
"publishServiceAuth": "Autenticación básica del servicio",
"publishServiceAuthTip": "Al activar esto, se requerirá autenticación al acceder al servicio de publicación",
"publishServiceAuthAccounts": "Cuentas de autenticación",
"publishServiceAuthAccountsTip": "Lista de cuentas de autenticación básica. Después de activar la autenticación básica, los visitantes deberán ingresar el nombre de usuario y la contraseña de la lista para ver el contenido publicado",
"publishServiceAuthAccountAdd": "Agregar cuenta",
"copyMirror": "Copiar espejo",
"duplicateMirror": "Espejo duplicado",
"duplicateCompletely": "Duplicar completamente",
Expand Down Expand Up @@ -690,7 +703,7 @@
"closeNotebook": "Cuadernos de notas cerrados",
"widget": "Widget",
"customEmoji": "Añadir un emoji personalizado",
"customEmojiTip": "Abrir <a href=\"javascript:void(0)\" id=\"appearanceOpenEmoji\">carpeta de emojis</a>, poner la imagen y hacer clic en el botón de actualización",
"customEmojiTip": "Coloca las imágenes en la carpeta de emojis y usa carpetas para clasificarlas",
"recentEmoji": "Emoticonos comunes",
"changeIcon": "Cambiar el icono",
"addIcon": "Agregar icono",
Expand Down Expand Up @@ -1289,7 +1302,7 @@
"13": "No se puede crear un archivo que empiece por .",
"14": "Exportación fallida: %s",
"15": "No se encontró el bloque de contenido con id [%s]",
"16": "Por favor, introduzca el nombre del documento",
"16": "Intitulado",
"17": "La sincronización inicial falló en el arranque. Puede producirse una sobreescritura de datos imprevisible si continúa operando. Por favor, realice primero una sincronización",
"18": "Falló la obtención de la cuenta de usuario de la comunidad",
"19": "La información del usuario ha caducado, por favor, inicie sesión de nuevo",
Expand Down Expand Up @@ -1364,7 +1377,7 @@
"88": "Se ha terminado de analizar [%d] archivos de datos, quedan por procesar [%d]",
"89": "[%d/%d] Creado [%d] de índices de datos de elementos a nivel de bloque [%s]",
"90": "[%d/%d] Creado [%d] de índices de búsqueda de elementos a nivel de bloque [%s]",
"91": "Leyendo datos del árbol de bloques...",
"91": "TODO",
"92": "Analizando el árbol del documento [%s]",
"93": "[%d/%d] ha limpiado el índice relacionado con el documento [%s]",
"94": "Carga fallida: %s",
Expand Down
19 changes: 16 additions & 3 deletions app/appearance/langs/fr_FR.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
{
"publish": "Publier",
"publishService": "Publier le service",
"publishServiceNotStarted": "Service de publication non démarré",
"publishServiceTip": "Lorsqu'activé, le service de publication démarre. Ce service publie en mode lecture seule le contenu de l'espace de travail actuel dans le réseau local.",
"publishServicePort": "Numéro de port du service",
"publishServicePortTip": "Active le service de publication avec le numéro de port spécifié. Si défini sur 0, un port aléatoire sera utilisé.",
"publishServiceAddresses": "Adresses d'accès au service",
"publishServiceAddressesTip": "Adresses réseau qui peuvent accéder au service de publication",
"publishServiceAuth": "Authentification Basic du service",
"publishServiceAuthTip": "Lorsqu'activé, une authentification est requise pour accéder au service de publication",
"publishServiceAuthAccounts": "Comptes d'authentification",
"publishServiceAuthAccountsTip": "Liste des comptes d'authentification Basic. Lorsque l'authentification Basic est activée, les visiteurs doivent entrer un nom d'utilisateur et un mot de passe figurant dans cette liste pour consulter le contenu publié.",
"publishServiceAuthAccountAdd": "Ajouter un compte",
"copyMirror": "Copier le miroir",
"duplicateMirror": "Miroir en double",
"duplicateCompletely": "Dupliquer complètement",
Expand Down Expand Up @@ -690,7 +703,7 @@
"closeNotebook": "Carnets fermés",
"widget": "Widget",
"customEmoji": "Ajouter un emoji personnalisé",
"customEmojiTip": "Ouvrir <a href=\"javascript:void(0)\" id=\"appearanceOpenEmoji\">Emoji folder</a>, insérez l'image et cliquez sur le bouton d'actualisation",
"customEmojiTip": "Mettez les images dans le dossier emojis et utilisez des dossiers pour les classer",
"recentEmoji": "Emoticônes courantes",
"changeIcon": "Changer l'icône",
"addIcon": "Ajouter une icône",
Expand Down Expand Up @@ -1289,7 +1302,7 @@
"13": "Impossible de créer un fichier commençant par .",
"14": "L'exportation a échoué : %s",
"15": "Bloc de contenu avec l'identifiant [%s] introuvable",
"16": "Veuillez entrer le nom du fichier",
"16": "Sans titre",
"17": "La synchronisation initiale a échoué au démarrage. Un écrasement imprévisible des données peut se produire si vous continuez à fonctionner. Veuillez d'abord effectuer une synchronisation.",
"18": "Échec de la récupération du compte utilisateur communautaire",
"19": "Les informations de l'utilisateur ont expiré, veuillez vous connecter à nouveau.",
Expand Down Expand Up @@ -1364,7 +1377,7 @@
"88": "Fin de l'analyse des fichiers de données [%d], restant à traiter [%d]",
"89": "[%d/%d] Créé [%d] d'index de données d'éléments de niveau bloc [%s]",
"90": "[%d/%d] Création de [%d] index de recherche d'éléments de niveau bloc [%s]",
"91": "Lecture des données de l'arborescence des blocs...",
"91": "TODO",
"92": "Analyse de l'arborescence du document [%s]",
"93": "[%d/%d] a nettoyé l'index lié au document [%s]",
"94": "Échec du téléchargement : %s",
Expand Down
Loading

0 comments on commit d9b7640

Please sign in to comment.