mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-12 11:48:50 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
fa48159bcd
19 changed files with 46 additions and 5 deletions
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"uploadFileTooLarge": "الملف الذي تم تحميله [${x}] كبير جدًا [${y}]، هل أنت متأكد أنك تريد المتابعة في التحميل؟",
|
||||
"recentDocsMaxListCount": "الحد الأقصى لعدد المستندات الحديثة المعروضة",
|
||||
"recentDocsMaxListCountTip": "الحد الأقصى لعدد المستندات المدرجة في مربع حوار المستندات الحديثة",
|
||||
"bazaarNeedVersion": "يتطلب ترقية SiYuan إلى الإصدار v${x} أو أحدث لاستخدام هذه الميزة",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"uploadFileTooLarge": "Die hochgeladene Datei [${x}] ist zu groß [${y}]. Sind Sie sicher, dass Sie den Upload fortsetzen möchten?",
|
||||
"recentDocsMaxListCount": "Maximale Anzahl an aufgelisteten letzten Dokumenten",
|
||||
"recentDocsMaxListCountTip": "Maximale Anzahl der Dokumente, die im Dialog der zuletzt verwendeten Dokumente aufgelistet werden",
|
||||
"bazaarNeedVersion": "Erfordert ein Upgrade von SiYuan auf Version v${x} oder höher, um diese Funktion zu nutzen",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"uploadFileTooLarge": "The uploaded file [${x}] is too large [${y}]. Are you sure you want to continue uploading?",
|
||||
"recentDocsMaxListCount": "Maximum number of recent documents listed",
|
||||
"recentDocsMaxListCountTip": "Maximum number of documents listed in the Recent Documents dialog",
|
||||
"bazaarNeedVersion": "Requires upgrading SiYuan to v${x} or later to use",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"uploadFileTooLarge": "El archivo subido [${x}] es demasiado grande [${y}],¿estás seguro de que deseas continuar con la subida?",
|
||||
"recentDocsMaxListCount": "Número máximo de documentos recientes listados",
|
||||
"recentDocsMaxListCountTip": "Número máximo de documentos que se mostrarán en el cuadro de diálogo Documentos recientes",
|
||||
"bazaarNeedVersion": "Se requiere actualizar SiYuan a la versión v${x} o posterior para usarlo",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"uploadFileTooLarge": "Le fichier envoyé [${x}] est trop volumineux [${y}]. Voulez-vous continuer l'envoi ?",
|
||||
"recentDocsMaxListCount": "Nombre maximal de documents récents listés",
|
||||
"recentDocsMaxListCountTip": "Nombre maximal de documents répertoriés dans la boîte de dialogue Documents récents",
|
||||
"bazaarNeedVersion": "Nécessite la mise à niveau de SiYuan vers la version v${x} ou ultérieure pour l'utiliser",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"uploadFileTooLarge": "הקובץ שהועלה [${x}] גדול מאוד [${y}]. האם אתה בטוח שברצונך להמשיך בהעלאה?",
|
||||
"recentDocsMaxListCount": "מספר מקסימלי של מסמכים אחרונים ברשימה",
|
||||
"recentDocsMaxListCountTip": "מספר המסמכים המקסימלי שיופיע בתיבת הדו-שיח של 'מסמכים אחרונים'",
|
||||
"bazaarNeedVersion": "נדרש לשדרג את SiYuan לגרסה v${x} או גבוהה יותר כדי להשתמש",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"uploadFileTooLarge": "Il file caricato [${x}] è troppo grande [${y}]. Sei sicuro di voler continuare il caricamento?",
|
||||
"recentDocsMaxListCount": "Numero massimo di documenti recenti elencati",
|
||||
"recentDocsMaxListCountTip": "Numero massimo di documenti elencati nella finestra di dialogo Documenti recenti",
|
||||
"bazaarNeedVersion": "È necessario aggiornare SiYuan alla versione v${x} o successiva per poter utilizzare",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"uploadFileTooLarge": "アップロードしたファイル [${x}] は [${y}] で大きすぎます。アップロードを続行しますか?",
|
||||
"recentDocsMaxListCount": "最近のドキュメントの最大表示数",
|
||||
"recentDocsMaxListCountTip": "最近のドキュメントダイアログに最大で表示されるドキュメント数",
|
||||
"bazaarNeedVersion": "使用するには SiYuan を v${x} 以上にアップグレードする必要があります",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"uploadFileTooLarge": "업로드한 파일 [${x}]의 크기가 [${y}]로 너무 큽니다. 계속 업로드하시겠습니까?",
|
||||
"recentDocsMaxListCount": "최근 문서 목록 최대 수",
|
||||
"recentDocsMaxListCountTip": "최근 문서 대화상자에 최대 나열될 문서 수",
|
||||
"bazaarNeedVersion": "사용하려면 SiYuan을 v${x} 이상으로 업그레이드해야 합니다",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"uploadFileTooLarge": "Przesłany plik [${x}] jest za duży [${y}]. Czy na pewno chcesz kontynuować przesyłanie?",
|
||||
"recentDocsMaxListCount": "Maksymalna liczba wyświetlanych ostatnich dokumentów",
|
||||
"recentDocsMaxListCountTip": "Maksymalna liczba dokumentów wyświetlanych w oknie dialogowym Ostatnie dokumenty",
|
||||
"bazaarNeedVersion": "Wymagane jest uaktualnienie SiYuan do wersji v${x} lub nowszej, aby używać",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"uploadFileTooLarge": "O arquivo enviado [${x}] é muito grande [${y}]。 Tem certeza de que deseja continuar o upload?",
|
||||
"recentDocsMaxListCount": "Número máximo de documentos recentes listados",
|
||||
"recentDocsMaxListCountTip": "Número máximo de documentos listados na caixa de diálogo Documentos Recentes",
|
||||
"bazaarNeedVersion": "É necessário atualizar o SiYuan para a versão v${x} ou superior para usar",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"uploadFileTooLarge": "Загруженный файл [${x}] очень большой [${y}]. Вы уверены, что хотите продолжить загрузку?",
|
||||
"recentDocsMaxListCount": "Максимальное количество отображаемых последних документов",
|
||||
"recentDocsMaxListCountTip": "Максимальное количество документов, которые будут перечислены в диалоге последних документов",
|
||||
"bazaarNeedVersion": "Требуется обновить SiYuan до версии v${x} или выше для использования",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"uploadFileTooLarge": "Yüklenen dosya [${x}], boyutu [${y}] kadar büyük. Yüklemeye devam etmek istediğinize emin misiniz?",
|
||||
"recentDocsMaxListCount": "Son belgelerin listeleneceği maksimum sayı",
|
||||
"recentDocsMaxListCountTip": "Son Belgeler iletişim kutusunda en fazla listelenecek belge sayısı",
|
||||
"bazaarNeedVersion": "Bu özelliği kullanmak için SiYuan'ı v${x} veya daha yeni bir sürüme yükseltmeniz gerekir",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"uploadFileTooLarge": "上傳的檔案 [${x}] 很大 [${y}],請確認是否繼續上傳?",
|
||||
"recentDocsMaxListCount": "最近的文檔列出數量",
|
||||
"recentDocsMaxListCountTip": "在最近的文檔對話框中最多列出文檔的數量",
|
||||
"bazaarNeedVersion": "需升級到思源筆記 v${x} 或更高版本才能使用",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"uploadFileTooLarge": "上传的文件 [${x}] 很大 [${y}],请确认是否继续上传?",
|
||||
"recentDocsMaxListCount": "最近的文档最大数量",
|
||||
"recentDocsMaxListCountTip": "最近的文档对话框中列出文档的最大数量",
|
||||
"bazaarNeedVersion": "需升级到思源笔记 v${x} 或更高版本才能使用",
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@
|
|||
"webpack-cli": "^4.10.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@electron/remote": "^2.1.3"
|
||||
"@electron/remote": "^2.1.3",
|
||||
"pretty-bytes": "^7.1.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
9
app/pnpm-lock.yaml
generated
9
app/pnpm-lock.yaml
generated
|
|
@ -11,6 +11,9 @@ importers:
|
|||
'@electron/remote':
|
||||
specifier: ^2.1.3
|
||||
version: 2.1.3(electron@39.2.7)
|
||||
pretty-bytes:
|
||||
specifier: ^7.1.0
|
||||
version: 7.1.0
|
||||
devDependencies:
|
||||
'@eslint/eslintrc':
|
||||
specifier: ^3.3.1
|
||||
|
|
@ -2225,6 +2228,10 @@ packages:
|
|||
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
|
||||
engines: {node: '>= 0.8.0'}
|
||||
|
||||
pretty-bytes@7.1.0:
|
||||
resolution: {integrity: sha512-nODzvTiYVRGRqAOvE84Vk5JDPyyxsVk0/fbA/bq7RqlnhksGpset09XTxbpvLTIjoaF7K8Z8DG8yHtKGTPSYRw==}
|
||||
engines: {node: '>=20'}
|
||||
|
||||
pretty-error@4.0.0:
|
||||
resolution: {integrity: sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw==}
|
||||
|
||||
|
|
@ -5101,6 +5108,8 @@ snapshots:
|
|||
|
||||
prelude-ls@1.2.1: {}
|
||||
|
||||
pretty-bytes@7.1.0: {}
|
||||
|
||||
pretty-error@4.0.0:
|
||||
dependencies:
|
||||
lodash: 4.17.21
|
||||
|
|
|
|||
|
|
@ -17,9 +17,12 @@
|
|||
package api
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/88250/clipboard"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/siyuan-note/logging"
|
||||
)
|
||||
|
||||
func readFilePaths(c *gin.Context) {
|
||||
|
|
@ -30,8 +33,21 @@ func readFilePaths(c *gin.Context) {
|
|||
if !gulu.OS.IsLinux() { // Linux 端不再支持 `粘贴为纯文本` 时处理文件绝对路径 https://github.com/siyuan-note/siyuan/issues/5825
|
||||
paths, _ = clipboard.ReadFilePaths()
|
||||
}
|
||||
if 1 > len(paths) {
|
||||
paths = []string{}
|
||||
|
||||
data := map[string]map[string]any{}
|
||||
for _, path := range paths {
|
||||
fi, err := os.Stat(path)
|
||||
if nil != err {
|
||||
logging.LogErrorf("stat file failed: %s", err)
|
||||
continue
|
||||
}
|
||||
|
||||
data[path] = map[string]any{
|
||||
"name": fi.Name(),
|
||||
"size": fi.Size(),
|
||||
"isDir": fi.IsDir(),
|
||||
"updated": fi.ModTime().UnixMilli(),
|
||||
}
|
||||
}
|
||||
ret.Data = paths
|
||||
ret.Data = data
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ func watchAssets() {
|
|||
}
|
||||
logging.LogErrorf("watch assets failed: %s", err)
|
||||
case <-timer.C:
|
||||
logging.LogInfof("assets changed: %s", lastEvent)
|
||||
//logging.LogInfof("assets changed: %s", lastEvent)
|
||||
if lastEvent.Op&fsnotify.Write == fsnotify.Write {
|
||||
IncSync()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue