💄 添加文案

This commit is contained in:
Vanessa 2022-12-11 23:44:40 +08:00
parent e08323c320
commit 272f5b9b8f
8 changed files with 10 additions and 3 deletions

View file

@ -1,4 +1,5 @@
{
"switchTab": "Switcher",
"recentDocs": "Recently opened documents",
"autoLaunch": "Automatic launch at boot",
"autoLaunchTip": "After enabling, the application will be automatically launched after logging into the operating system",

View file

@ -1,4 +1,5 @@
{
"switchTab": "Conmutador",
"recentDocs": "Documentos abiertos recientemente",
"autoLaunch": "Inicio automático al arrancar",
"autoLaunchTip": "Después de habilitar, la aplicación se iniciará automáticamente después de iniciar sesión en el sistema operativo",

View file

@ -1,4 +1,5 @@
{
"switchTab": "Commutateur",
"recentDocs": "Documents récemment ouverts",
"autoLaunch": "Lancement automatique au démarrage",
"autoLaunchTip": "Après l'activation, l'application sera automatiquement lancée après la connexion au système d'exploitation",

View file

@ -1,4 +1,5 @@
{
"switchTab": "頁簽切換",
"recentDocs": "最近打开的文档",
"autoLaunch": "開機自動啟動",
"autoLaunchTip": "啟用後會在登錄操作系統後自動啟動應用",

View file

@ -1,4 +1,5 @@
{
"switchTab": "页签切换",
"recentDocs": "最近打开的文档",
"autoLaunch": "开机自动启动",
"autoLaunchTip": "启用后会在登录操作系统后自动启动应用",

View file

@ -106,7 +106,7 @@ const renderPDF = (id: string) => {
#action {
width: 200px;
background: var(--b3-theme-background-light);
padding: 12px;
padding: 16px;
position: fixed;
right: 0;
top: 0;
@ -459,7 +459,7 @@ const renderPDF = (id: string) => {
modal: true,
show: true,
width: 1032,
height: 638,
height: 650,
resizable: false,
frame: "darwin" === window.siyuan.config.system.os,
icon: path.join(window.siyuan.config.system.appDir, "stage", "icon-large.png"),

View file

@ -417,6 +417,7 @@ export const globalShortcut = () => {
range = getSelection().getRangeAt(0).cloneRange();
}
switchDialog = new Dialog({
title: window.siyuan.languages.switchTab,
content: `<div class="fn__flex-column b3-dialog--switch">
<div class="fn__hr"><input style="opacity: 0;height: 1px;box-sizing: border-box"></div>
<div class="fn__flex">
@ -844,6 +845,7 @@ ${unicode2Emoji(item.icon || Constants.SIYUAN_IMAGE_FILE, false, "b3-list-item__
</li>`;
});
const dialog = new Dialog({
title: window.siyuan.languages.recentDocs,
content: `<div class="fn__flex-column b3-dialog--switch">
<div class="fn__hr"><input style="opacity: 0;height: 1px;box-sizing: border-box"></div>
<div class="fn__flex">

View file

@ -389,7 +389,7 @@ const initWindow = () => {
<path d="M4.113 7.332c-0.036 0.042-0.052 0.076-0.036 0.076s0.059-0.035 0.095-0.076c0.036-0.042 0.052-0.076 0.036-0.076s-0.059 0.035-0.095 0.076zM2.578 8.857c-0.014 0.023-0.012 0.041 0.006 0.041s0.005 0.017-0.026 0.038c-0.040 0.026-0.042 0.037-0.008 0.038 0.027 0 0.059-0.026 0.071-0.059 0.027-0.071-0.006-0.116-0.042-0.058zM20.098 23.32c-0.193 0.196-0.338 0.362-0.325 0.37s0.183-0.147 0.377-0.342c0.194-0.195 0.34-0.362 0.325-0.37s-0.185 0.146-0.377 0.342zM3.796 26.053l-0.112 0.124 0.124-0.112c0.068-0.062 0.124-0.117 0.124-0.124 0-0.029-0.031-0.004-0.136 0.112zM0.247 29.557c-0.038 0.042-0.060 0.076-0.050 0.076s0.059-0.035 0.107-0.076 0.071-0.076 0.050-0.076c-0.021 0-0.069 0.035-0.107 0.076z"></path>
</svg>
<a style="text-decoration:none;color:#4285f4;font-size: 8px;margin-left: 4px" href="https://b3log.org/siyuan">${window.siyuan.languages.exportBySiYuan}</a>
</div>`
</div>`;
window.siyuan.printWin.webContents.printToPDF(ipcData.pdfOptions).then((pdfData) => {
fetchPost("/api/export/exportHTML", {
id: ipcData.rootId,