📝 闪卡支持设置是否启用标记制卡 https://github.com/siyuan-note/siyuan/issues/7794

This commit is contained in:
Liang Ding 2023-03-28 10:04:28 +08:00
parent 98344bdc99
commit 7b3e358dc1
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 13 additions and 11 deletions

View file

@ -5,7 +5,7 @@
"Properties": { "Properties": {
"id": "20221223221636-ms2b4w9", "id": "20221223221636-ms2b4w9",
"title": "Flashcards", "title": "Flashcards",
"updated": "20230324111319" "updated": "20230328100306"
}, },
"Children": [ "Children": [
{ {
@ -196,12 +196,12 @@
"Type": "NodeParagraph", "Type": "NodeParagraph",
"Properties": { "Properties": {
"id": "20230324110955-eznqs9u", "id": "20230324110955-eznqs9u",
"updated": "20230324111043" "updated": "20230328100306"
}, },
"Children": [ "Children": [
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": "Among them, if you dont 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", "Type": "NodeTextMark",

View file

@ -5,7 +5,7 @@
"Properties": { "Properties": {
"id": "20221223215557-o6gfsoy", "id": "20221223215557-o6gfsoy",
"title": "闪卡", "title": "闪卡",
"updated": "20230324110708" "updated": "20230328100253"
}, },
"Children": [ "Children": [
{ {
@ -204,12 +204,12 @@
"Type": "NodeParagraph", "Type": "NodeParagraph",
"Properties": { "Properties": {
"id": "20230324105957-puvmnur", "id": "20230324105957-puvmnur",
"updated": "20230324110110" "updated": "20230328100253"
}, },
"Children": [ "Children": [
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": "其中超级块制卡和列表或者列表项制卡如果不需要的话可以在 " "Data": "以上规则可以在 "
}, },
{ {
"Type": "NodeTextMark", "Type": "NodeTextMark",
@ -227,7 +227,7 @@
}, },
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": "关闭。" "Data": "调整。"
} }
] ]
}, },

View file

@ -5,7 +5,7 @@
"Properties": { "Properties": {
"id": "20221223221501-mops33i", "id": "20221223221501-mops33i",
"title": "閃卡", "title": "閃卡",
"updated": "20230324110901" "updated": "20230328100340"
}, },
"Children": [ "Children": [
{ {
@ -200,12 +200,12 @@
"Type": "NodeParagraph", "Type": "NodeParagraph",
"Properties": { "Properties": {
"id": "20230324110806-8rbbppa", "id": "20230324110806-8rbbppa",
"updated": "20230324110821" "updated": "20230328100340"
}, },
"Children": [ "Children": [
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": "其中超級塊制卡和列表或者列表項製卡如果不需要的話可以在 " "Data": "以上規則可以在 "
}, },
{ {
"Type": "NodeTextMark", "Type": "NodeTextMark",
@ -223,7 +223,7 @@
}, },
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": "關閉。" "Data": "調整。"
} }
] ]
}, },

View file

@ -19,6 +19,7 @@ package conf
type Flashcard struct { type Flashcard struct {
NewCardLimit int `json:"newCardLimit"` // 新卡上限 https://github.com/siyuan-note/siyuan/issues/7695 NewCardLimit int `json:"newCardLimit"` // 新卡上限 https://github.com/siyuan-note/siyuan/issues/7695
ReviewCardLimit int `json:"reviewCardLimit"` // 复习卡上限 https://github.com/siyuan-note/siyuan/issues/7703 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 List bool `json:"list"` // 是否启用列表块制卡 https://github.com/siyuan-note/siyuan/issues/7701
SuperBlock bool `json:"superBlock"` // 是否启用超级块制卡 https://github.com/siyuan-note/siyuan/issues/7702 SuperBlock bool `json:"superBlock"` // 是否启用超级块制卡 https://github.com/siyuan-note/siyuan/issues/7702
Deck bool `json:"deck"` // 是否启用卡包制卡 https://github.com/siyuan-note/siyuan/issues/7724 Deck bool `json:"deck"` // 是否启用卡包制卡 https://github.com/siyuan-note/siyuan/issues/7724
@ -28,6 +29,7 @@ func NewFlashcard() *Flashcard {
return &Flashcard{ return &Flashcard{
NewCardLimit: 20, NewCardLimit: 20,
ReviewCardLimit: 200, ReviewCardLimit: 200,
Mark: true,
List: true, List: true,
SuperBlock: true, SuperBlock: true,
Deck: false, Deck: false,