|
@@ -18,6 +18,7 @@ import {App} from "../index";
|
|
import {resize} from "../protyle/util/resize";
|
|
import {resize} from "../protyle/util/resize";
|
|
import {setStorageVal} from "../protyle/util/compatibility";
|
|
import {setStorageVal} from "../protyle/util/compatibility";
|
|
import {focusByRange} from "../protyle/util/selection";
|
|
import {focusByRange} from "../protyle/util/selection";
|
|
|
|
+import {updateCardHV} from "./util";
|
|
|
|
|
|
const genCardCount = (unreviewedNewCardCount: number, unreviewedOldCardCount: number, index = 1) => {
|
|
const genCardCount = (unreviewedNewCardCount: number, unreviewedOldCardCount: number, index = 1) => {
|
|
return `<span class="ft__error">${index}</span>
|
|
return `<span class="ft__error">${index}</span>
|
|
@@ -86,35 +87,35 @@ ${window.siyuan.config.flashcard.list ? "card__block--hideli" : ""}" data-type="
|
|
<div>
|
|
<div>
|
|
<span>${window.siyuan.languages.nextRound}</span>
|
|
<span>${window.siyuan.languages.nextRound}</span>
|
|
<button data-type="-3" aria-label="0 / x" class="b3-button b3-button--cancel b3-tooltips__n b3-tooltips">
|
|
<button data-type="-3" aria-label="0 / x" class="b3-button b3-button--cancel b3-tooltips__n b3-tooltips">
|
|
- <div>💤</div>
|
|
|
|
|
|
+ <div class="card__icon">💤</div>
|
|
${window.siyuan.languages.skip} (0)
|
|
${window.siyuan.languages.skip} (0)
|
|
</button>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<span></span>
|
|
<span></span>
|
|
<button data-type="1" aria-label="1 / j / a" class="b3-button b3-button--error b3-tooltips__n b3-tooltips">
|
|
<button data-type="1" aria-label="1 / j / a" class="b3-button b3-button--error b3-tooltips__n b3-tooltips">
|
|
- <div>🙈</div>
|
|
|
|
|
|
+ <div class="card__icon">🙈</div>
|
|
${window.siyuan.languages.cardRatingAgain} (1)
|
|
${window.siyuan.languages.cardRatingAgain} (1)
|
|
</button>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<span></span>
|
|
<span></span>
|
|
<button data-type="2" aria-label="2 / k / s" class="b3-button b3-button--warning b3-tooltips__n b3-tooltips">
|
|
<button data-type="2" aria-label="2 / k / s" class="b3-button b3-button--warning b3-tooltips__n b3-tooltips">
|
|
- <div>😬</div>
|
|
|
|
|
|
+ <div class="card__icon">😬</div>
|
|
${window.siyuan.languages.cardRatingHard} (2)
|
|
${window.siyuan.languages.cardRatingHard} (2)
|
|
</button>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<span></span>
|
|
<span></span>
|
|
<button data-type="3" aria-label="3 / l / d / ${window.siyuan.languages.space} / Enter" class="b3-button b3-button--info b3-tooltips__n b3-tooltips">
|
|
<button data-type="3" aria-label="3 / l / d / ${window.siyuan.languages.space} / Enter" class="b3-button b3-button--info b3-tooltips__n b3-tooltips">
|
|
- <div>😊</div>
|
|
|
|
|
|
+ <div class="card__icon">😊</div>
|
|
${window.siyuan.languages.cardRatingGood} (3)
|
|
${window.siyuan.languages.cardRatingGood} (3)
|
|
</button>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<span></span>
|
|
<span></span>
|
|
<button data-type="4" aria-label="4 / ; / f" class="b3-button b3-button--success b3-tooltips__n b3-tooltips">
|
|
<button data-type="4" aria-label="4 / ; / f" class="b3-button b3-button--success b3-tooltips__n b3-tooltips">
|
|
- <div>🌈</div>
|
|
|
|
|
|
+ <div class="card__icon">🌈</div>
|
|
${window.siyuan.languages.cardRatingEasy} (4)
|
|
${window.siyuan.languages.cardRatingEasy} (4)
|
|
</button>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
@@ -517,6 +518,7 @@ export const openCardByData = async (app: App, cardsData: ICardData, cardType: T
|
|
range.collapse();
|
|
range.collapse();
|
|
focusByRange(range);
|
|
focusByRange(range);
|
|
/// #endif
|
|
/// #endif
|
|
|
|
+ updateCardHV();
|
|
};
|
|
};
|
|
|
|
|
|
const nextCard = (options: {
|
|
const nextCard = (options: {
|