mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 09:09:50 +08:00
This commit is contained in:
parent
41e0d66d22
commit
3db0b0cf94
@ -1,4 +1,6 @@
|
|||||||
{
|
{
|
||||||
|
"skip": "Skip",
|
||||||
|
"reboot": "Reboot",
|
||||||
"saveLayout": "Save Layout",
|
"saveLayout": "Save Layout",
|
||||||
"ai": "Artificial Intelligence",
|
"ai": "Artificial Intelligence",
|
||||||
"aiContinueWrite": "Continue writing",
|
"aiContinueWrite": "Continue writing",
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
{
|
{
|
||||||
|
"skip": "barco",
|
||||||
|
"reboot": "Reiniciar",
|
||||||
"saveLayout": "Guardar diseño",
|
"saveLayout": "Guardar diseño",
|
||||||
"ai": "Inteligencia Artificial",
|
"ai": "Inteligencia Artificial",
|
||||||
"aiContinueWrite": "Continuar escribiendo",
|
"aiContinueWrite": "Continuar escribiendo",
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
{
|
{
|
||||||
|
"skip": "Navire",
|
||||||
|
"reboot": "Redémarrer",
|
||||||
"saveLayout": "Enregistrer la mise en page",
|
"saveLayout": "Enregistrer la mise en page",
|
||||||
"ai": "Intelligence Artificielle",
|
"ai": "Intelligence Artificielle",
|
||||||
"aiContinueWrite": "Continuer à écrire",
|
"aiContinueWrite": "Continuer à écrire",
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
{
|
{
|
||||||
|
"skip": "跳過",
|
||||||
|
"reboot": "重啟",
|
||||||
"saveLayout": "保存佈局",
|
"saveLayout": "保存佈局",
|
||||||
"ai": "人工智能",
|
"ai": "人工智能",
|
||||||
"aiContinueWrite": "續寫",
|
"aiContinueWrite": "續寫",
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
{
|
{
|
||||||
|
"skip": "跳过",
|
||||||
|
"reboot": "重启",
|
||||||
"saveLayout": "保存布局",
|
"saveLayout": "保存布局",
|
||||||
"ai": "人工智能",
|
"ai": "人工智能",
|
||||||
"aiContinueWrite": "续写",
|
"aiContinueWrite": "续写",
|
||||||
|
@ -15,13 +15,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__action {
|
&__action {
|
||||||
padding: 8px 16px;
|
padding: 8px 4px;
|
||||||
|
|
||||||
.b3-button {
|
.b3-button {
|
||||||
padding: 8px;
|
padding: 8px 0;
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 auto;
|
width: 100%;
|
||||||
width: 90%;
|
|
||||||
|
|
||||||
& > div {
|
& > div {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
@ -33,6 +32,7 @@
|
|||||||
|
|
||||||
& > div {
|
& > div {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
margin: 0 4px;
|
||||||
|
|
||||||
& > span {
|
& > span {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -58,6 +58,13 @@ export const openCardByData = (cardsData: ICard[], html = "") => {
|
|||||||
<button data-type="-1" class="b3-button fn__flex-1">${window.siyuan.languages.cardShowAnswer} (${window.siyuan.languages.space})</button>
|
<button data-type="-1" class="b3-button fn__flex-1">${window.siyuan.languages.cardShowAnswer} (${window.siyuan.languages.space})</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="fn__flex card__action fn__none">
|
<div class="fn__flex card__action fn__none">
|
||||||
|
<div>
|
||||||
|
<span>${window.siyuan.languages.reboot}</span>
|
||||||
|
<button data-type="-3" aria-label="0" class="b3-button b3-button--error b3-tooltips__s b3-tooltips">
|
||||||
|
<div>💤</div>
|
||||||
|
${window.siyuan.languages.skip} (0)
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span></span>
|
<span></span>
|
||||||
<button data-type="0" aria-label="1 / j" class="b3-button b3-button--error b3-tooltips__s b3-tooltips">
|
<button data-type="0" aria-label="1 / j" class="b3-button b3-button--error b3-tooltips__s b3-tooltips">
|
||||||
@ -137,6 +144,8 @@ export const openCardByData = (cardsData: ICard[], html = "") => {
|
|||||||
type = "-1";
|
type = "-1";
|
||||||
} else if (event.detail === "p") {
|
} else if (event.detail === "p") {
|
||||||
type = "-2";
|
type = "-2";
|
||||||
|
} else if (event.detail === "0") {
|
||||||
|
type = "-3";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!type) {
|
if (!type) {
|
||||||
@ -158,7 +167,9 @@ export const openCardByData = (cardsData: ICard[], html = "") => {
|
|||||||
editor.protyle.element.classList.remove("card__block--hide");
|
editor.protyle.element.classList.remove("card__block--hide");
|
||||||
actionElements[0].classList.add("fn__none");
|
actionElements[0].classList.add("fn__none");
|
||||||
actionElements[1].querySelectorAll(".b3-button").forEach((element, btnIndex) => {
|
actionElements[1].querySelectorAll(".b3-button").forEach((element, btnIndex) => {
|
||||||
element.previousElementSibling.textContent = blocks[index].nextDues[btnIndex];
|
if (btnIndex !== 0) {
|
||||||
|
element.previousElementSibling.textContent = blocks[index].nextDues[btnIndex - 1];
|
||||||
|
}
|
||||||
});
|
});
|
||||||
actionElements[1].classList.remove("fn__none");
|
actionElements[1].classList.remove("fn__none");
|
||||||
return;
|
return;
|
||||||
@ -180,14 +191,15 @@ export const openCardByData = (cardsData: ICard[], html = "") => {
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (["0", "1", "2", "3"].includes(type) && actionElements[0].classList.contains("fn__none")) {
|
if (["0", "1", "2", "3", "-3"].includes(type) && actionElements[0].classList.contains("fn__none")) {
|
||||||
fetchPost("/api/riff/reviewRiffCard", {
|
fetchPost(type === "-3" ? "/api/riff/skipReviewRiffCard" : "/api/riff/reviewRiffCard", {
|
||||||
deckID: blocks[index].deckID,
|
deckID: blocks[index].deckID,
|
||||||
cardID: blocks[index].cardID,
|
cardID: blocks[index].cardID,
|
||||||
rating: parseInt(type)
|
rating: parseInt(type)
|
||||||
}, () => {
|
}, () => {
|
||||||
/// #if MOBILE
|
/// #if MOBILE
|
||||||
if ((0 !== window.siyuan.config.sync.provider || (0 === window.siyuan.config.sync.provider && !needSubscribe(""))) &&
|
if (type !== "-3" &&
|
||||||
|
(0 !== window.siyuan.config.sync.provider || (0 === window.siyuan.config.sync.provider && !needSubscribe(""))) &&
|
||||||
window.siyuan.config.repo.key && window.siyuan.config.sync.enabled) {
|
window.siyuan.config.repo.key && window.siyuan.config.sync.enabled) {
|
||||||
document.getElementById("toolbarSync").classList.remove("fn__none");
|
document.getElementById("toolbarSync").classList.remove("fn__none");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user