From 2ca92aa412ac38366f800bab4203b0ae588a87ed Mon Sep 17 00:00:00 2001 From: frostime Date: Wed, 8 May 2024 12:39:40 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E5=BF=AB=E6=8D=B7=E9=94=AE?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20langText?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 5 +++++ package.json | 2 +- plugin.json | 2 +- src/index.ts | 15 ++++++++------- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc50661..dfb10e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [2024-05-08] v1.6.2: 快捷键 + +- 🎨 设置快捷键的 langText + + ## [2024-05-05] v1.6.1: 优化了为过去日记补充文档属性对话框的界面和交互 - ✨ feat: 允许用户手动设置最开始的日期 [#182](https://github.com/frostime/siyuan-dailynote-today/issues/182) diff --git a/package.json b/package.json index 6611b1e..dddb192 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "siyuan-dailynote-today", - "version": "1.6.1", + "version": "1.6.2", "description": "", "main": ".src/index.js", "keywords": [], diff --git a/plugin.json b/plugin.json index 26a4f8c..4c01a19 100644 --- a/plugin.json +++ b/plugin.json @@ -6,7 +6,7 @@ "en_US": "Daily Note Today" }, "url": "https://github.com/frostime/siyuan-dailynote-today", - "version": "1.6.1", + "version": "1.6.2", "minAppVersion": "3.0.0", "description": { "zh_CN": "自动创建日记 + 快速打开日记 + 日程 TODO 管理 + 移动块功能", diff --git a/src/index.ts b/src/index.ts index e5105a3..20ee051 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,7 +17,7 @@ import notebooks from './global-notebooks'; import { eventBus } from './event-bus'; -import { changelog } from 'sy-plugin-changelog'; +// import { changelog } from 'sy-plugin-changelog'; import "./index.scss"; @@ -71,17 +71,18 @@ export default class DailyNoteTodayPlugin extends Plugin { let end = performance.now(); console.debug(`启动耗时: ${end - start} ms`); - let ans = await changelog(this, 'i18n/CHANGELOG.md'); - if (ans?.Dialog) { - let dialog = ans.Dialog; - dialog.setSize({ width: '50rem', height: '35rem' }); - dialog.setFont('1.1rem'); - } + // let ans = await changelog(this, 'i18n/CHANGELOG.md'); + // if (ans?.Dialog) { + // let dialog = ans.Dialog; + // dialog.setSize({ width: '50rem', height: '35rem' }); + // dialog.setFont('1.1rem'); + // } } private initPluginUI() { this.addCommand({ langKey: 'reserve', + langText: `${this.i18n.ReserveMenu.name}/${this.i18n.DeReserveMenu.name}`, hotkey: '⌥⇧R', editorCallback: async () => { let block: HTMLElement = getFocusedBlock();