This commit is contained in:
Vanessa 2023-05-14 10:17:43 +08:00
parent 518ce94912
commit a74ee348f7
6 changed files with 20 additions and 13 deletions

View file

@ -1,4 +1,5 @@
{ {
"confirmUninstall": "Are you sure you want to uninstall ${name}?",
"scrollGetMore": "Don't panic... scroll up and down to load more", "scrollGetMore": "Don't panic... scroll up and down to load more",
"flashcardNewCard": "New", "flashcardNewCard": "New",
"flashcardReviewCard": "Review", "flashcardReviewCard": "Review",

View file

@ -1,4 +1,5 @@
{ {
"confirmUninstall": "¿Está seguro de que desea desinstalar ${name}?",
"scrollGetMore": "No se asuste... desplácese hacia arriba y hacia abajo para cargar más", "scrollGetMore": "No se asuste... desplácese hacia arriba y hacia abajo para cargar más",
"flashcardNewCard": "Nueva Tarjeta", "flashcardNewCard": "Nueva Tarjeta",
"flashcardReviewCard": "Revisar Tarjeta", "flashcardReviewCard": "Revisar Tarjeta",

View file

@ -1,4 +1,5 @@
{ {
"confirmUninstall": "Êtes-vous sûr de vouloir désinstaller ${name} ?",
"scrollGetMore": "Ne paniquez pas... faites défiler de haut en bas pour en charger plus", "scrollGetMore": "Ne paniquez pas... faites défiler de haut en bas pour en charger plus",
"flashcardNewCard": "Nouvelle carte", "flashcardNewCard": "Nouvelle carte",
"flashcardReviewCard": "Revoir la carte", "flashcardReviewCard": "Revoir la carte",

View file

@ -1,4 +1,5 @@
{ {
"confirmUninstall": "確定卸載 ${name} ",
"scrollGetMore": "不要驚慌...上下滾動即可加載更多內容", "scrollGetMore": "不要驚慌...上下滾動即可加載更多內容",
"flashcardNewCard": "新卡", "flashcardNewCard": "新卡",
"flashcardReviewCard": "複習卡", "flashcardReviewCard": "複習卡",

View file

@ -1,4 +1,5 @@
{ {
"confirmUninstall": "确定卸载 ${name} ",
"scrollGetMore": "不要惊慌...上下滚动即可加载更多内容", "scrollGetMore": "不要惊慌...上下滚动即可加载更多内容",
"flashcardNewCard": "新卡", "flashcardNewCard": "新卡",
"flashcardReviewCard": "复习卡", "flashcardReviewCard": "复习卡",

View file

@ -564,19 +564,21 @@ export const bazaar = {
window.siyuan.config.appearance.icon === packageName) { window.siyuan.config.appearance.icon === packageName) {
showMessage(window.siyuan.languages.uninstallTip); showMessage(window.siyuan.languages.uninstallTip);
} else { } else {
fetchPost(url, { confirmDialog(window.siyuan.languages.uninstall, window.siyuan.languages.confirmUninstall.replace("${name}", packageName), () => {
packageName fetchPost(url, {
}, response => { packageName
this._genMyHTML(bazaarType, app); }, response => {
bazaar._onBazaar(response, bazaarType, ["themes", "icons"].includes(bazaarType)); this._genMyHTML(bazaarType, app);
// TODO destroy plugin bazaar._onBazaar(response, bazaarType, ["themes", "icons"].includes(bazaarType));
if (bazaarType === "plugins") { if (bazaarType === "plugins") {
exportLayout({ // TODO destroy plugin
reload: true, exportLayout({
onlyData: false, reload: true,
errorExit: false, onlyData: false,
}); errorExit: false,
} });
}
});
}); });
} }
event.preventDefault(); event.preventDefault();