Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 authored and tom2319273 committed Aug 3, 2024
1 parent b8f6aa6 commit 4071d2f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion app/appearance/langs/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -703,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
2 changes: 1 addition & 1 deletion app/appearance/langs/es_ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -703,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
2 changes: 1 addition & 1 deletion app/appearance/langs/fr_FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -703,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
2 changes: 1 addition & 1 deletion app/appearance/langs/ja_JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@
"closeNotebook": "閉じたノートブック",
"widget": "ウィジェット",
"customEmoji": "絵文字を追加",
"customEmojiTip": "<a href=\"javascript:void(0)\" id=\"appearanceOpenEmoji\">絵文字フォルダ</a>に画像を入れて更新ボタンをクリックしてください",
"customEmojiTip": "画像を絵文字フォルダに入れて、フォルダを使用して分類します",
"recentEmoji": "よく使う絵文字",
"changeIcon": "アイコンを変更",
"addIcon": "アイコンを追加",
Expand Down
2 changes: 1 addition & 1 deletion app/appearance/langs/zh_CHT.json
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@
"closeNotebook": "已關閉的筆記本",
"widget": "小工具",
"customEmoji": "新增自訂表情",
"customEmojiTip": "打開 <a href=\"javascript:void(0)\" id=\"appearanceOpenEmoji\">Emoji 資料夾</a> 放入圖片後並點擊重新整理按鈕",
"customEmojiTip": "將圖片放入 emojis 資料夾中,可使用資料夾進行分類",
"recentEmoji": "常用表情",
"changeIcon": "修改圖示",
"addIcon": "新增圖示",
Expand Down
2 changes: 1 addition & 1 deletion app/appearance/langs/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@
"closeNotebook": "已关闭的笔记本",
"widget": "挂件",
"customEmoji": "添加自定义表情",
"customEmojiTip": "打开 <a href=\"javascript:void(0)\" id=\"appearanceOpenEmoji\">Emoji 文件夹</a> 放入图片后并点击刷新按钮",
"customEmojiTip": "将图片放入 emojis 文件夹中,可使用文件夹进行分类",
"recentEmoji": "常用表情",
"changeIcon": "修改图标",
"addIcon": "添加图标",
Expand Down
14 changes: 3 additions & 11 deletions app/src/config/appearance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ export const appearance = {
<div class="b3-label__text">${window.siyuan.languages.customEmojiTip}</div>
</div>
<span class="fn__space"></span>
<button class="b3-button b3-button--outline fn__flex-center fn__size200" id="appearanceRefresh">
<svg><use xlink:href="#iconRefresh"></use></svg>
${window.siyuan.languages.refresh}
<button class="b3-button b3-button--outline fn__flex-center fn__size200" id="appearanceOpenEmoji">
<svg><use xlink:href="#iconFolder"></use></svg>
${window.siyuan.languages.showInFolder}
</button>
</div>
<div class="b3-label fn__flex config__item">
Expand Down Expand Up @@ -227,14 +227,6 @@ export const appearance = {
appearance.element.querySelector("#appearanceOpenEmoji").addEventListener("click", () => {
shell.openPath(path.join(window.siyuan.config.system.dataDir, "emojis"));
});
appearance.element.querySelector("#appearanceRefresh").addEventListener("click", () => {
exportLayout({
cb() {
window.location.reload();
},
errorExit: false,
});
});
/// #endif
appearance.element.querySelectorAll("select").forEach(item => {
item.addEventListener("change", () => {
Expand Down

0 comments on commit 4071d2f

Please sign in to comment.