Skip to content

Commit

Permalink
🎨 style: 优化任务列表项的图标
Browse files Browse the repository at this point in the history
  • Loading branch information
frostime committed Sep 14, 2024
1 parent d12bcc3 commit 9aa1f08
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Changelog

## v1.3.3

- ✨ feat: 数据库显示为其标题
- 🎨 style: 优化任务列表项的图标


## v1.3.2

- ✨ feat: 在动态书签组的头部添加了一个「刷新」按钮
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sy-bookmark-plus",
"version": "1.3.2",
"version": "1.3.3",
"type": "module",
"description": "A more powerful bookmark",
"repository": "",
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sy-bookmark-plus",
"author": "frostime",
"url": "https://github.com/frostime/sy-bookmark-plus",
"version": "1.3.2",
"version": "1.3.3",
"minAppVersion": "3.0.12",
"backends": [
"all"
Expand Down
4 changes: 2 additions & 2 deletions src/libs/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* Copyright (c) 2024 by frostime. All Rights Reserved.
* @Author : frostime
* @Date : 2024-05-21 20:25:51
* @FilePath : /src/func/bookmarks/utils.ts
* @LastEditTime : 2024-05-28 16:29:01
* @FilePath : /src/libs/dom.ts
* @LastEditTime : 2024-09-14 22:49:38
* @Description :
*/
import { NodeIcons, BlockType2NodeType } from "@/utils/const";
Expand Down
2 changes: 1 addition & 1 deletion src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type BlockType =
| 'm' | 'av' | 'query_embed' | 'iframe'
| 'widget' | 'html' | 'audio';

type BlockSubType = "d1" | "d2" | "s1" | "s2" | "s3" | "t1" | "t2" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "table" | "task" | "toggle" | "latex" | "quote" | "html" | "code" | "footnote" | "cite" | "collection" | "bookmark" | "attachment" | "comment" | "mindmap" | "spreadsheet" | "calendar" | "image" | "audio" | "video" | "other";
type BlockSubType = "d1" | "d2" | "s1" | "s2" | "s3" | "t1" | "t2" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "table" | "t" | "toggle" | "latex" | "quote" | "html" | "code" | "footnote" | "cite" | "collection" | "bookmark" | "attachment" | "comment" | "mindmap" | "spreadsheet" | "calendar" | "image" | "audio" | "video" | "other";

type Block = {
id: BlockId;
Expand Down
7 changes: 5 additions & 2 deletions src/utils/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Author : frostime
* @Date : 2024-04-02 22:43:02
* @FilePath : /src/utils/const.ts
* @LastEditTime : 2024-07-27 16:41:57
* @LastEditTime : 2024-09-14 22:52:01
* @Description :
*/

Expand Down Expand Up @@ -88,7 +88,10 @@ export const NodeIcons = {
}
},
NodeListItem: {
icon: "iconListItem"
icon: "iconListItem",
subtypes: {
t: { icon: "iconCheck" }, // 对于任务列表,进行特别标记
}
},
NodeMathBlock: {
icon: "iconMath"
Expand Down

0 comments on commit 9aa1f08

Please sign in to comment.