Skip to content

Commit

Permalink
🔖 v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Achuan-2 committed Oct 12, 2024
1 parent 84092fe commit 54b05fb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Changelog

## v1.1.1 / 2024.10.12
- ✨ 交互优化:打开格式刷模式的时候,弹窗提示如何关闭格式刷
- ✨ 交互优化:右下角dock栏关闭格式刷按钮添加aria-label

## v1.1.0 / 2024.10.12
- 🐛 更改webpack.config.js,修复index.css和assets没有被打包的问题


## v1.0.9 / 2024.10.11
- ✨当格式刷启动时候,dock底栏最右侧添加一个按钮,按钮图案渐变闪烁,点击该按钮可以退出格式刷模式([pull request](https://github.com/Achuan-2/siyuan-plugin-formatPainter/pull/1)

Expand Down
5 changes: 3 additions & 2 deletions src/i18n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"helloPlugin": "Hello, Plugin!",
"byePlugin": "Bye, Plugin!",
"tips": "Format Painter ",
"enable": "Enabled Format Painter ",
"disable": "Disabled Format Painter "
"enable": "Format Painter is enabled, press [Esc key] or [dock bar button in the lower right corner] to exit the Format Painter mode",
"disable": "Format Painter is disabled",
"closeTips": "Disable Format Painter"

}
5 changes: 3 additions & 2 deletions src/i18n/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"helloPlugin": "你好,插件!",
"byePlugin": "再见,插件!",
"tips": "格式刷",
"enable": "格式刷已启用",
"disable": "格式刷已关闭"
"enable": "格式刷已启用,按【Esc键】或者【右下角dock栏按钮】退出格式刷模式",
"disable": "格式刷已关闭",
"closeTips": "关闭格式刷"
}
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ export default class PluginSample extends Plugin {
this.addStatusBar({
element: indicator,
});
// indicator添加aria - label
indicator.setAttribute("aria-label", this.i18n.closeTips);
indicator.style.display = "none";

const style = document.createElement('style');
Expand Down

0 comments on commit 54b05fb

Please sign in to comment.