Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/appearance/langs/ar_SA.json
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,7 @@
"277": "اكتمل تنظيف الملفات المؤقتة، تم حذف [%d] ملفًا، تم تحرير [%s] من مساحة القرص",
"278": "مساحة العمل غير موجودة على قرص الحالة الصلبة (SSD)، قد يؤدي ذلك إلى تدهور كبير في الأداء، يُنصح بوضع مساحة العمل على قرص SSD",
"279": "يوجد إجمالاً [%d] قواعد بيانات غير مرجعية، هنا يتم سرد [%d] فقط",
"280": "اكتمل تنظيف قواعد البيانات غير المرجعية، تم حذف [%d] ملفًا، وتم تحرير [%s] من مساحة القرص"
"280": "اكتمل تنظيف قواعد البيانات غير المرجعية، تم حذف [%d] ملفًا، وتم تحرير [%s] من مساحة القرص",
"281": " (الافتراضي)"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/de_DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,7 @@
"277": "Bereinigung der temporären Dateien abgeschlossen, [%d] Dateien entfernt, [%s] Festplattenspeicher freigegeben",
"278": "Der Arbeitsbereich befindet sich nicht auf einer SSD, was zu erheblichen Leistungseinbußen führen kann, es wird empfohlen, den Arbeitsbereich auf einer SSD zu platzieren",
"279": "Insgesamt [%d] nicht referenzierte Datenbanken, hier werden nur [%d] aufgelistet",
"280": "Bereinigung nicht referenzierter Datenbanken abgeschlossen, [%d] Dateien gelöscht, [%s] Festplattenspeicher freigegeben"
"280": "Bereinigung nicht referenzierter Datenbanken abgeschlossen, [%d] Dateien gelöscht, [%s] Festplattenspeicher freigegeben",
"281": " (Standard)"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,7 @@
"277": "Temporary files cleaned, [%d] files removed, [%s] disk space freed",
"278": "The workspace is not located on a solid-state drive (SSD), which can cause significant performance degradation, it is recommended to place the workspace on an SSD",
"279": "There are [%d] unreferenced databases in total, only [%d] are listed here",
"280": "Cleanup of unreferenced databases completed, [%d] files removed, [%s] of disk space freed"
"280": "Cleanup of unreferenced databases completed, [%d] files removed, [%s] of disk space freed",
"281": " (Default)"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/es_ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,7 @@
"277": "Limpieza de archivos temporales completada, [%d] archivos eliminados, se liberaron [%s] de espacio en disco",
"278": "El espacio de trabajo no está ubicado en un disco de estado sólido (SSD), esto puede provocar una disminución notable del rendimiento, se recomienda colocar el espacio de trabajo en un SSD",
"279": "Hay [%d] bases de datos sin referencias en total, aquí se muestran solo [%d]",
"280": "Limpieza de bases de datos sin referencias completada, [%d] archivos eliminados, se liberaron [%s] de espacio en disco"
"280": "Limpieza de bases de datos sin referencias completada, [%d] archivos eliminados, se liberaron [%s] de espacio en disco",
"281": " (Por defecto)"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/fr_FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,7 @@
"277": "Nettoyage des fichiers temporaires terminé, [%d] fichiers supprimés, [%s] d'espace disque libéré",
"278": "L'espace de travail n'est pas placé sur un disque SSD, ce qui peut entraîner une baisse significative des performances, il est recommandé de placer l'espace de travail sur un SSD",
"279": "Au total [%d] bases de données non référencées, ici n'en sont listées que [%d]",
"280": "Nettoyage des bases de données non référencées terminé, [%d] fichiers supprimés, [%s] d'espace disque libéré"
"280": "Nettoyage des bases de données non référencées terminé, [%d] fichiers supprimés, [%s] d'espace disque libéré",
"281": " (Default)"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/he_IL.json
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,7 @@
"277": "ניקוי הקבצים הזמניים הושלם, נמחקו [%d] קבצים, שוחררו [%s] מקום בדיסק",
"278": "מרחב העבודה לא מאוחסן בכונן מצב מוצק (SSD), הדבר עלול להוביל לירידה משמעותית בביצועים, מומלץ לאחסן את מרחב העבודה על גבי SSD",
"279": "בסך הכל קיימים [%d] מאגרי מידע שלא מקושרים, כאן מופיעים רק [%d]",
"280": "ניקוי מאגרי המידע שלא מקושרים הושלם, נמחקו [%d] קבצים, שוחררו [%s] נפח דיסק"
"280": "ניקוי מאגרי המידע שלא מקושרים הושלם, נמחקו [%d] קבצים, שוחררו [%s] נפח דיסק",
"281": " (ברירת מחדל)"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/it_IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,7 @@
"277": "Pulizia dei file temporanei completata, [%d] file rimossi, liberati [%s] di spazio su disco",
"278": "Lo spazio di lavoro non è su un disco a stato solido (SSD), ciò può causare una diminuzione significativa delle prestazioni, si consiglia di posizionare lo spazio di lavoro su un SSD",
"279": "Database non referenziati in totale: [%d], qui ne vengono elencati solo [%d]",
"280": "Pulizia dei database non referenziati completata, eliminati [%d] file, liberato [%s] di spazio su disco"
"280": "Pulizia dei database non referenziati completata, eliminati [%d] file, liberato [%s] di spazio su disco",
"281": " (Predefinito)"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/ja_JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,7 @@
"277": "一時ファイルのクリーンアップが完了しました。[%d]件のファイルを削除し、合計で [%s] のディスク容量を解放しました",
"278": "ワークスペースがSSD上に配置されていません、これにより著しいパフォーマンス低下が発生する可能性があるため、ワークスペースをSSD上で使用することを推奨します",
"279": "参照されていないデータベースは合計 [%d] 件で、ここには [%d] 件のみ表示しています",
"280": "参照されていないデータベースのクリーンアップが完了しました。[%d] 個のファイルを削除し、合計 [%s] のディスク領域を解放しました"
"280": "参照されていないデータベースのクリーンアップが完了しました。[%d] 個のファイルを削除し、合計 [%s] のディスク領域を解放しました",
"281": " (デフォルト)"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/ko_KR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,7 @@
"277": "임시 파일 정리 완료, [%d]개 파일이 삭제되어 총 [%s]의 디스크 공간이 확보되었습니다",
"278": "작업 공간이 SSD에 있지 않습니다, 이로 인해 성능이 크게 저하될 수 있으므로 작업 공간을 SSD에 두어 사용하시기 바랍니다",
"279": "참조되지 않은 데이터베이스 전체 [%d]개, 여기에는 [%d]개만 나열됩니다",
"280": "참조되지 않은 데이터베이스 정리 완료, [%d]개의 파일을 삭제하여 총 [%s]의 디스크 공간을 확보했습니다"
"280": "참조되지 않은 데이터베이스 정리 완료, [%d]개의 파일을 삭제하여 총 [%s]의 디스크 공간을 확보했습니다",
"281": " (기본)"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/pl_PL.json
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,7 @@
"277": "Czyszczenie plików tymczasowych zakończone, usunięto [%d] plików, zwolniono [%s] miejsca na dysku",
"278": "Obszar roboczy nie znajduje się na dysku SSD, co może spowodować znaczny spadek wydajności, zaleca się umieszczenie obszaru roboczego na dysku SSD",
"279": "Nieodwołane bazy danych łącznie: [%d], tutaj wyświetlono tylko [%d]",
"280": "Czyszczenie nieodwołanych baz danych zakończone, usunięto [%d] plików, zwolniono [%s] miejsca na dysku"
"280": "Czyszczenie nieodwołanych baz danych zakończone, usunięto [%d] plików, zwolniono [%s] miejsca na dysku",
"281": " (Domyślny)"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/pt_BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,7 @@
"277": "Limpeza de arquivos temporários concluída, [%d] arquivos removidos, [%s] de espaço em disco liberado",
"278": "O espaço de trabalho não está em um disco de estado sólido (SSD), o que pode causar uma queda significativa de desempenho, recomenda-se colocar o espaço de trabalho em um SSD",
"279": "Há [%d] bancos de dados não referenciados no total, aqui são listados apenas [%d]",
"280": "Limpeza de bancos de dados não referenciados concluída, [%d] arquivos removidos, [%s] de espaço em disco liberados"
"280": "Limpeza de bancos de dados não referenciados concluída, [%d] arquivos removidos, [%s] de espaço em disco liberados",
"281": " (Padrão)"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/ru_RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,7 @@
"277": "Очистка временных файлов завершена, удалено [%d] файлов, освобождено [%s] дискового пространства",
"278": "Рабочее пространство не размещено на твердотельном накопителе (SSD), это может привести к заметному снижению производительности, рекомендуется разместить рабочее пространство на SSD",
"279": "Всего неиспользуемых баз данных: [%d], здесь показано только [%d]",
"280": "Очистка неиспользуемых баз данных завершена, удалено [%d] файлов, освобождено [%s] дискового пространства"
"280": "Очистка неиспользуемых баз данных завершена, удалено [%d] файлов, освобождено [%s] дискового пространства",
"281": " (По умолчанию)"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/tr_TR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,7 @@
"277": "Geçici dosyalar temizlendi, [%d] dosya silindi, toplam [%s] boş alan açıldı",
"278": "Çalışma alanı katı hal sürücüsünde (SSD) değil, bu belirgin bir performans düşüşüne yol açabilir, çalışma alanınızı SSD'de tutmanız önerilir",
"279": "Kullanılmayan veritabanı toplam [%d] adet, burada yalnızca [%d] tanesi listeleniyor",
"280": "Kullanılmayan veritabanları temizlendi, [%d] dosya kaldırıldı, toplam [%s] disk alanı boşaltıldı"
"280": "Kullanılmayan veritabanları temizlendi, [%d] dosya kaldırıldı, toplam [%s] disk alanı boşaltıldı",
"281": " (Varsayılan)"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/zh_CHT.json
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,7 @@
"277": "清理臨時檔案完畢,已刪除 [%d] 個檔案,共釋放 [%s] 磁碟空間",
"278": "工作空間未放置在固態硬碟上,這會導致顯著的效能下降,建議將工作空間放置在固態硬碟上使用",
"279": "未引用資料庫一共 [%d] 個,這裡僅列出 [%d] 個",
"280": "清理未引用的資料庫完畢,已刪除 [%d] 個檔案,共釋放 [%s] 磁碟空間"
"280": "清理未引用的資料庫完畢,已刪除 [%d] 個檔案,共釋放 [%s] 磁碟空間",
"281": "(預設主題)"
}
}
3 changes: 2 additions & 1 deletion app/appearance/langs/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,7 @@
"277": "清理临时文件完毕,已删除 [%d] 个文件,共释放 [%s] 磁盘空间",
"278": "工作空间未放置在固态硬盘上,这会导致显著的性能下降,建议将工作空间放置在固态硬盘上使用",
"279": "未引用数据库一共 [%d] 个,这里仅列出 [%d] 个",
"280": "清理未引用的数据库完毕,已删除 [%d] 个文件,共释放 [%s] 磁盘空间"
"280": "清理未引用的数据库完毕,已删除 [%d] 个文件,共释放 [%s] 磁盘空间",
"281": "(默认主题)"
}
}
22 changes: 13 additions & 9 deletions app/src/config/bazaar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,10 @@ export const bazaar = {
} else if (bazaarType === "plugins") {
url = "/api/bazaar/getInstalledPlugin";
}
const keyword = (contentElement.previousElementSibling.querySelector(".b3-text-field") as HTMLInputElement)?.value?.trim() || "";
fetchPost(url, {
frontend: getFrontend(),
keyword: (contentElement.previousElementSibling.querySelector(".b3-text-field") as HTMLInputElement)?.value || "",
...(keyword ? { keyword } : {}),
}, response => {
contentElement.removeAttribute("data-loading");
let html = "";
Expand Down Expand Up @@ -690,8 +691,9 @@ type="checkbox">
} else if (bazaarType === "plugins") {
url = "/api/bazaar/installBazaarPlugin";
}
const keyword = (bazaar.element.querySelector(".config-bazaar__panel:not(.fn__none) .b3-form__icon-input") as HTMLInputElement).value.trim();
fetchPost(url, {
keyword: (bazaar.element.querySelector(".config-bazaar__panel:not(.fn__none) .b3-form__icon-input") as HTMLInputElement).value,
...(keyword ? { keyword } : {}),
repoURL: dataObj.repoURL,
packageName: dataObj.name,
repoHash: dataObj.repoHash,
Expand Down Expand Up @@ -750,8 +752,9 @@ type="checkbox">
if (!target.classList.contains("b3-button")) {
target.parentElement.insertAdjacentHTML("afterend", '<img data-type="img-loading" style="position: absolute;top: 0;left: 0;height: 100%;width: 100%;padding: 16px;box-sizing: border-box;" src="/stage/loading-pure.svg">');
}
const keyword = (bazaar.element.querySelector(".config-bazaar__panel:not(.fn__none) .b3-form__icon-input") as HTMLInputElement).value.trim();
fetchPost(url, {
keyword: (bazaar.element.querySelector(".config-bazaar__panel:not(.fn__none) .b3-form__icon-input") as HTMLInputElement).value,
...(keyword ? { keyword } : {}),
repoURL: dataObj.repoURL,
packageName: dataObj.name,
repoHash: dataObj.repoHash,
Expand Down Expand Up @@ -803,9 +806,10 @@ type="checkbox">
showMessage(window.siyuan.languages.uninstallTip);
} else {
confirmDialog("⚠️ " + window.siyuan.languages.uninstall, window.siyuan.languages.confirmUninstall.replace("${name}", packageName), () => {
const keyword = (bazaar.element.querySelector(".config-bazaar__panel:not(.fn__none) .b3-form__icon-input") as HTMLInputElement).value.trim();
fetchPost(url, {
packageName,
keyword: (bazaar.element.querySelector(".config-bazaar__panel:not(.fn__none) .b3-form__icon-input") as HTMLInputElement).value,
...(keyword ? { keyword } : {}),
frontend: getFrontend()
}, response => {
this._genMyHTML(bazaarType, app);
Expand Down Expand Up @@ -997,29 +1001,29 @@ type="checkbox">
const keyword = inputElement.value.trim();
const type = (hasClosestByClassName(inputElement, "config-bazaar__panel") as HTMLElement).getAttribute("data-type");
if (type === "template") {
fetchPost("/api/bazaar/getBazaarTemplate", {keyword}, response => {
fetchPost("/api/bazaar/getBazaarTemplate", keyword ? { keyword } : {}, response => {
bazaar._onBazaar(response, "templates");
bazaar._data.templates = response.data.packages;
});
} else if (type === "icon") {
fetchPost("/api/bazaar/getBazaarIcon", {keyword}, response => {
fetchPost("/api/bazaar/getBazaarIcon", keyword ? { keyword } : {}, response => {
bazaar._onBazaar(response, "icons");
bazaar._data.icons = response.data.packages;
});
} else if (type === "widget") {
fetchPost("/api/bazaar/getBazaarWidget", {keyword}, response => {
fetchPost("/api/bazaar/getBazaarWidget", keyword ? { keyword } : {}, response => {
bazaar._onBazaar(response, "widgets");
bazaar._data.widgets = response.data.packages;
});
} else if (type === "theme") {
fetchPost("/api/bazaar/getBazaarTheme", {keyword}, response => {
fetchPost("/api/bazaar/getBazaarTheme", keyword ? { keyword } : {}, response => {
bazaar._onBazaar(response, "themes");
bazaar._data.themes = response.data.packages;
});
} else if (type === "plugin") {
fetchPost("/api/bazaar/getBazaarPlugin", {
frontend: getFrontend(),
keyword
...(keyword ? { keyword } : {}),
}, response => {
bazaar._onBazaar(response, "plugins");
bazaar._data.plugins = response.data.packages;
Expand Down
Loading