Skip to content

Commit

Permalink
📝 闪卡支持设置是否启用标记制卡 #7794
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Mar 28, 2023
1 parent 98344bd commit 7b3e358
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"Properties": {
"id": "20221223221636-ms2b4w9",
"title": "Flashcards",
"updated": "20230324111319"
"updated": "20230328100306"
},
"Children": [
{
Expand Down Expand Up @@ -196,12 +196,12 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20230324110955-eznqs9u",
"updated": "20230324111043"
"updated": "20230328100306"
},
"Children": [
{
"Type": "NodeText",
"Data": "Among them, if you don’t need the super block card and list or list item card, you can turn it off in "
"Data": "The above rules can be adjusted in "
},
{
"Type": "NodeTextMark",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"Properties": {
"id": "20221223215557-o6gfsoy",
"title": "闪卡",
"updated": "20230324110708"
"updated": "20230328100253"
},
"Children": [
{
Expand Down Expand Up @@ -204,12 +204,12 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20230324105957-puvmnur",
"updated": "20230324110110"
"updated": "20230328100253"
},
"Children": [
{
"Type": "NodeText",
"Data": "其中超级块制卡和列表或者列表项制卡如果不需要的话可以在 "
"Data": "以上规则可以在 "
},
{
"Type": "NodeTextMark",
Expand All @@ -227,7 +227,7 @@
},
{
"Type": "NodeText",
"Data": "​ 中关闭。"
"Data": "​ 中调整。"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"Properties": {
"id": "20221223221501-mops33i",
"title": "閃卡",
"updated": "20230324110901"
"updated": "20230328100340"
},
"Children": [
{
Expand Down Expand Up @@ -200,12 +200,12 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20230324110806-8rbbppa",
"updated": "20230324110821"
"updated": "20230328100340"
},
"Children": [
{
"Type": "NodeText",
"Data": "其中超級塊制卡和列表或者列表項製卡如果不需要的話可以在 "
"Data": "以上規則可以在 "
},
{
"Type": "NodeTextMark",
Expand All @@ -223,7 +223,7 @@
},
{
"Type": "NodeText",
"Data": "​ 中關閉。"
"Data": "​ 中調整。"
}
]
},
Expand Down
2 changes: 2 additions & 0 deletions kernel/conf/flashcard.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package conf
type Flashcard struct {
NewCardLimit int `json:"newCardLimit"` // 新卡上限 https://github.com/siyuan-note/siyuan/issues/7695
ReviewCardLimit int `json:"reviewCardLimit"` // 复习卡上限 https://github.com/siyuan-note/siyuan/issues/7703
Mark bool `json:"mark"` // 是否启用标记制卡 https://github.com/siyuan-note/siyuan/issues/7794
List bool `json:"list"` // 是否启用列表块制卡 https://github.com/siyuan-note/siyuan/issues/7701
SuperBlock bool `json:"superBlock"` // 是否启用超级块制卡 https://github.com/siyuan-note/siyuan/issues/7702
Deck bool `json:"deck"` // 是否启用卡包制卡 https://github.com/siyuan-note/siyuan/issues/7724
Expand All @@ -28,6 +29,7 @@ func NewFlashcard() *Flashcard {
return &Flashcard{
NewCardLimit: 20,
ReviewCardLimit: 200,
Mark: true,
List: true,
SuperBlock: true,
Deck: false,
Expand Down

0 comments on commit 7b3e358

Please sign in to comment.