An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Simplify map and location editing controls https://github.com/siyuan-note/siyuan/issues/20129
Danielfd169739f518
diff --git a/app/appearance/langs/ar.json b/app/appearance/langs/ar.jsonindex 1c890a4dab..57b2a93642 100644--- a/app/appearance/langs/ar.json+++ b/app/appearance/langs/ar.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "تحتوي هذه الصفحة على أكثر من ${limit} موقعًا. استخدم عوامل التصفية أو قلّل حجم الصفحة لعرض الخريطة","defaultCoordinateSystem": "نظام الإحداثيات الافتراضي للإدخال الجديد","defaultCoordinateSystemTip": "ينطبق على الإدخال الجديد فقط؛ تبقى المواقع الحالية دون تغيير ولا يتم تحويل الإحداثيات",- "locationPasteInEditor": "الصق أزواج الإحداثيات في محرر الموقع؛ الترتيب الافتراضي هو خط الطول ثم خط العرض. تحقّق من نظام الإحداثيات واختر الترتيب يدويًا؛ لا يُبدَّل الترتيب تلقائيًا",+ "locationPasteInEditor": "أدخل خط الطول وخط العرض كلًّا على حدة في محرر الموقع وتأكّد من نظام الإحداثيات","location": "الموقع","locationName": "الاسم (اختياري)","latitude": "خط العرض",diff --git a/app/appearance/langs/de.json b/app/appearance/langs/de.jsonindex 8728f88037..21b4a21fa7 100644--- a/app/appearance/langs/de.json+++ b/app/appearance/langs/de.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "Diese Seite enthält mehr als ${limit} Standorte. Filter verwenden oder die Seitengröße verkleinern, um die Karte anzuzeigen","defaultCoordinateSystem": "Standardkoordinatensystem für neue Eingaben","defaultCoordinateSystemTip": "Gilt nur für neue Eingaben; vorhandene Standorte bleiben unverändert und Koordinaten werden nicht umgerechnet",- "locationPasteInEditor": "Koordinatenpaare im Standorteditor einfügen; standardmäßig gilt Längengrad, Breitengrad. Koordinatensystem prüfen und Reihenfolge manuell auswählen; sie wird nie automatisch vertauscht",+ "locationPasteInEditor": "Längengrad und Breitengrad im Standorteditor getrennt eingeben und das Koordinatensystem überprüfen","location": "Standort","locationName": "Name (optional)","latitude": "Breitengrad",diff --git a/app/appearance/langs/en.json b/app/appearance/langs/en.jsonindex 8e811418ec..0a07693846 100644--- a/app/appearance/langs/en.json+++ b/app/appearance/langs/en.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "This page has more than ${limit} locations. Use filters or a smaller page size to display the map","defaultCoordinateSystem": "Default coordinate system for new input","defaultCoordinateSystemTip": "Applies only to new input; existing locations stay unchanged and coordinates are not converted",- "locationPasteInEditor": "Paste coordinate pairs in the location editor; the default is longitude, latitude. Check the coordinate system and select the order manually; it is never swapped automatically",+ "locationPasteInEditor": "Enter longitude and latitude separately in the location editor and confirm the coordinate system","location": "Location","locationName": "Name (optional)","latitude": "Latitude",diff --git a/app/appearance/langs/es.json b/app/appearance/langs/es.jsonindex 89ae90454a..0a36f25c82 100644--- a/app/appearance/langs/es.json+++ b/app/appearance/langs/es.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "Esta página tiene más de ${limit} ubicaciones. Use filtros o reduzca el tamaño de página para mostrar el mapa","defaultCoordinateSystem": "Sistema de coordenadas predeterminado para nuevas entradas","defaultCoordinateSystemTip": "Solo se aplica a nuevas entradas; las ubicaciones existentes no cambian y las coordenadas no se convierten",- "locationPasteInEditor": "Pega los pares de coordenadas en el editor de ubicación; el orden predeterminado es longitud, latitud. Comprueba el sistema de coordenadas y selecciona el orden manualmente; nunca se intercambia de forma automática",+ "locationPasteInEditor": "Introduce la longitud y la latitud por separado en el editor de ubicación y confirma el sistema de coordenadas","location": "Ubicación","locationName": "Nombre (opcional)","latitude": "Latitud",diff --git a/app/appearance/langs/fr.json b/app/appearance/langs/fr.jsonindex 670b641644..cbbec0f19b 100644--- a/app/appearance/langs/fr.json+++ b/app/appearance/langs/fr.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "Cette page comporte plus de ${limit} localisations. Utilisez des filtres ou réduisez la taille des pages pour afficher la carte","defaultCoordinateSystem": "Système de coordonnées par défaut des nouvelles saisies","defaultCoordinateSystemTip": "S’applique uniquement aux nouvelles saisies ; les lieux existants restent inchangés et les coordonnées ne sont pas converties",- "locationPasteInEditor": "Collez les paires de coordonnées dans l’éditeur de lieu ; l’ordre par défaut est longitude, latitude. Vérifiez le système de coordonnées et choisissez l’ordre manuellement ; il n’est jamais inversé automatiquement",+ "locationPasteInEditor": "Saisissez la longitude et la latitude séparément dans l’éditeur de lieu et vérifiez le système de coordonnées","location": "Lieu","locationName": "Nom (facultatif)","latitude": "Latitude",diff --git a/app/appearance/langs/he.json b/app/appearance/langs/he.jsonindex 037926c26f..9d6ed36e00 100644--- a/app/appearance/langs/he.json+++ b/app/appearance/langs/he.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "בדף זה יש יותר מ-${limit} מיקומים. השתמש במסננים או הקטן את גודל הדף כדי להציג את המפה","defaultCoordinateSystem": "מערכת קואורדינטות כברירת מחדל לקלט חדש","defaultCoordinateSystemTip": "חל רק על קלט חדש; מיקומים קיימים אינם משתנים והקואורדינטות אינן מומרות",- "locationPasteInEditor": "יש להדביק זוגות קואורדינטות בעורך המיקום; סדר ברירת המחדל הוא קו אורך, קו רוחב. יש לבדוק את מערכת הקואורדינטות ולבחור את הסדר ידנית; הסדר לעולם לא מוחלף אוטומטית",+ "locationPasteInEditor": "יש להזין את קו האורך וקו הרוחב בנפרד בעורך המיקום ולוודא שמערכת הקואורדינטות נכונה","location": "מיקום","locationName": "שם (רשות)","latitude": "קו רוחב",diff --git a/app/appearance/langs/hi.json b/app/appearance/langs/hi.jsonindex 156491085f..717dbb94b4 100644--- a/app/appearance/langs/hi.json+++ b/app/appearance/langs/hi.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "इस पृष्ठ पर ${limit} से अधिक स्थान हैं। मानचित्र दिखाने के लिए फ़िल्टर उपयोग करें या पृष्ठ का आकार कम करें","defaultCoordinateSystem": "नए इनपुट के लिए डिफ़ॉल्ट निर्देशांक प्रणाली","defaultCoordinateSystemTip": "केवल नए इनपुट पर लागू होता है; मौजूदा स्थान अपरिवर्तित रहते हैं और निर्देशांक परिवर्तित नहीं होते",- "locationPasteInEditor": "निर्देशांक जोड़े स्थान संपादक में पेस्ट करें; डिफ़ॉल्ट क्रम देशांतर, अक्षांश है। निर्देशांक प्रणाली जाँचें और क्रम मैन्युअल रूप से चुनें; क्रम कभी अपने आप नहीं बदलेगा",+ "locationPasteInEditor": "स्थान संपादक में देशांतर और अक्षांश अलग-अलग दर्ज करें और निर्देशांक प्रणाली की पुष्टि करें","location": "स्थान","locationName": "नाम (वैकल्पिक)","latitude": "अक्षांश",diff --git a/app/appearance/langs/id.json b/app/appearance/langs/id.jsonindex c825b44367..1ebe79f8f2 100644--- a/app/appearance/langs/id.json+++ b/app/appearance/langs/id.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "Halaman ini memiliki lebih dari ${limit} lokasi. Gunakan filter atau ukuran halaman yang lebih kecil untuk menampilkan peta","defaultCoordinateSystem": "Sistem koordinat bawaan untuk masukan baru","defaultCoordinateSystemTip": "Hanya berlaku untuk masukan baru; lokasi yang ada tidak berubah dan koordinat tidak dikonversi",- "locationPasteInEditor": "Tempel pasangan koordinat di editor lokasi; urutan bawaan adalah bujur, lintang. Periksa sistem koordinat dan pilih urutan secara manual; urutan tidak pernah ditukar otomatis",+ "locationPasteInEditor": "Masukkan bujur dan lintang secara terpisah di editor lokasi dan pastikan sistem koordinatnya benar","location": "Lokasi","locationName": "Nama (opsional)","latitude": "Lintang",diff --git a/app/appearance/langs/it.json b/app/appearance/langs/it.jsonindex 851d19d0eb..e23c1f0e59 100644--- a/app/appearance/langs/it.json+++ b/app/appearance/langs/it.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "Questa pagina contiene più di ${limit} posizioni. Usa i filtri o riduci la dimensione della pagina per visualizzare la mappa","defaultCoordinateSystem": "Sistema di coordinate predefinito per nuovi inserimenti","defaultCoordinateSystemTip": "Si applica solo ai nuovi inserimenti; le posizioni esistenti restano invariate e le coordinate non vengono convertite",- "locationPasteInEditor": "Incolla le coppie di coordinate nell’editor della posizione; l’ordine predefinito è longitudine, latitudine. Verifica il sistema di coordinate e seleziona l’ordine manualmente; non viene mai invertito automaticamente",+ "locationPasteInEditor": "Inserisci longitudine e latitudine separatamente nell’editor della posizione e verifica il sistema di coordinate","location": "Posizione","locationName": "Nome (facoltativo)","latitude": "Latitudine",diff --git a/app/appearance/langs/ja.json b/app/appearance/langs/ja.jsonindex 98cd670d70..a56a2882ef 100644--- a/app/appearance/langs/ja.json+++ b/app/appearance/langs/ja.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "このページには ${limit} 件を超える位置があります。フィルターを使用するか、ページあたりの件数を減らして地図を表示してください","defaultCoordinateSystem": "新規入力の既定の座標系","defaultCoordinateSystemTip": "新規入力にのみ適用されます。既存の位置は変わらず、座標も変換されません",- "locationPasteInEditor": "位置エディターに座標の組を貼り付けてください。既定の順序は経度、緯度です。座標系を確認し、順序は手動で選択してください。順序は自動で入れ替わりません",+ "locationPasteInEditor": "位置エディターで経度と緯度を別々に入力し、座標系を確認してください","location": "位置","locationName": "名前(任意)","latitude": "緯度",diff --git a/app/appearance/langs/ko.json b/app/appearance/langs/ko.jsonindex 4cd0ea09d6..87cb4f1323 100644--- a/app/appearance/langs/ko.json+++ b/app/appearance/langs/ko.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "이 페이지의 위치가 ${limit}개를 초과합니다. 지도를 표시하려면 필터를 사용하거나 페이지 크기를 줄이세요","defaultCoordinateSystem": "새 입력의 기본 좌표계","defaultCoordinateSystemTip": "새 입력에만 적용되며 기존 위치는 변경되지 않고 좌표도 변환되지 않습니다",- "locationPasteInEditor": "위치 편집기에 좌표 쌍을 붙여넣으세요. 기본 순서는 경도, 위도입니다. 좌표계를 확인하고 순서를 직접 선택하세요. 순서는 자동으로 바뀌지 않습니다",+ "locationPasteInEditor": "위치 편집기에서 경도와 위도를 각각 입력하고 좌표계를 확인하세요","location": "위치","locationName": "이름(선택 사항)","latitude": "위도",diff --git a/app/appearance/langs/nl.json b/app/appearance/langs/nl.jsonindex 204a07125a..aaa43d086d 100644--- a/app/appearance/langs/nl.json+++ b/app/appearance/langs/nl.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "Deze pagina heeft meer dan ${limit} locaties. Gebruik filters of verklein de paginagrootte om de kaart weer te geven","defaultCoordinateSystem": "Standaardcoördinatenstelsel voor nieuwe invoer","defaultCoordinateSystemTip": "Geldt alleen voor nieuwe invoer; bestaande locaties blijven ongewijzigd en coördinaten worden niet geconverteerd",- "locationPasteInEditor": "Plak coördinatenparen in de locatie-editor; de standaardvolgorde is lengtegraad, breedtegraad. Controleer het coördinatenstelsel en kies de volgorde handmatig; deze wordt nooit automatisch omgewisseld",+ "locationPasteInEditor": "Voer lengtegraad en breedtegraad afzonderlijk in de locatie-editor in en controleer het coördinatenstelsel","location": "Locatie","locationName": "Naam (optioneel)","latitude": "Breedtegraad",diff --git a/app/appearance/langs/pl.json b/app/appearance/langs/pl.jsonindex 7f4d2988bf..02c5161e0a 100644--- a/app/appearance/langs/pl.json+++ b/app/appearance/langs/pl.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "Ta strona zawiera więcej niż ${limit} lokalizacji. Użyj filtrów lub zmniejsz rozmiar strony, aby wyświetlić mapę","defaultCoordinateSystem": "Domyślny układ współrzędnych dla nowych wpisów","defaultCoordinateSystemTip": "Dotyczy tylko nowych wpisów; istniejące lokalizacje pozostają bez zmian, a współrzędne nie są przeliczane",- "locationPasteInEditor": "Wklej pary współrzędnych w edytorze lokalizacji; domyślna kolejność to długość, szerokość geograficzna. Sprawdź układ współrzędnych i wybierz kolejność ręcznie; nigdy nie jest zmieniana automatycznie",+ "locationPasteInEditor": "Wprowadź długość i szerokość geograficzną osobno w edytorze lokalizacji i sprawdź układ współrzędnych","location": "Lokalizacja","locationName": "Nazwa (opcjonalna)","latitude": "Szerokość geograficzna",diff --git a/app/appearance/langs/pt-BR.json b/app/appearance/langs/pt-BR.jsonindex 68fe02c8bf..91d2795400 100644--- a/app/appearance/langs/pt-BR.json+++ b/app/appearance/langs/pt-BR.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "Esta página tem mais de ${limit} localizações. Use filtros ou reduza o tamanho da página para exibir o mapa","defaultCoordinateSystem": "Sistema de coordenadas padrão para novas entradas","defaultCoordinateSystemTip": "Aplica-se apenas a novas entradas; as localizações existentes não mudam e as coordenadas não são convertidas",- "locationPasteInEditor": "Cole os pares de coordenadas no editor de localização; a ordem padrão é longitude, latitude. Verifique o sistema de coordenadas e selecione a ordem manualmente; ela nunca é invertida automaticamente",+ "locationPasteInEditor": "Insira a longitude e a latitude separadamente no editor de localização e confirme o sistema de coordenadas","location": "Localização","locationName": "Nome (opcional)","latitude": "Latitude",diff --git a/app/appearance/langs/ru.json b/app/appearance/langs/ru.jsonindex b4bd9f95ba..70376c6416 100644--- a/app/appearance/langs/ru.json+++ b/app/appearance/langs/ru.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "На этой странице больше ${limit} местоположений. Используйте фильтры или уменьшите размер страницы, чтобы отобразить карту","defaultCoordinateSystem": "Система координат по умолчанию для новых данных","defaultCoordinateSystemTip": "Применяется только к новым данным; существующие местоположения не меняются, координаты не преобразуются",- "locationPasteInEditor": "Вставляйте пары координат в редакторе местоположения; по умолчанию используется порядок долгота, широта. Проверьте систему координат и выберите порядок вручную; он никогда не меняется автоматически",+ "locationPasteInEditor": "Введите долготу и широту отдельно в редакторе местоположения и проверьте систему координат","location": "Местоположение","locationName": "Название (необязательно)","latitude": "Широта",diff --git a/app/appearance/langs/sk.json b/app/appearance/langs/sk.jsonindex bc717ee6fe..2f8a419601 100644--- a/app/appearance/langs/sk.json+++ b/app/appearance/langs/sk.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "Táto stránka obsahuje viac ako ${limit} polôh. Na zobrazenie mapy použite filtre alebo menšiu veľkosť stránky","defaultCoordinateSystem": "Predvolený súradnicový systém pre nové údaje","defaultCoordinateSystemTip": "Platí iba pre nové údaje; existujúce polohy zostanú nezmenené a súradnice sa neprepočítajú",- "locationPasteInEditor": "Dvojice súradníc vkladajte v editore polohy; predvolené poradie je dĺžka, šírka. Skontrolujte súradnicový systém a poradie vyberte ručne; nikdy sa nemení automaticky",+ "locationPasteInEditor": "Zemepisnú dĺžku a zemepisnú šírku zadajte v editore polohy samostatne a overte súradnicový systém","location": "Poloha","locationName": "Názov (voliteľný)","latitude": "Zemepisná šírka",diff --git a/app/appearance/langs/sr.json b/app/appearance/langs/sr.jsonindex bea31b19d8..3d93e506dc 100644--- a/app/appearance/langs/sr.json+++ b/app/appearance/langs/sr.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "Ова страница има више од ${limit} локација. Користите филтере или смањите величину странице да бисте приказали мапу","defaultCoordinateSystem": "Подразумевани координатни систем за нове уносе","defaultCoordinateSystemTip": "Примењује се само на нове уносе; постојеће локације остају непромењене, а координате се не претварају",- "locationPasteInEditor": "Налепите парове координата у уређивачу локације; подразумевани редослед је дужина, ширина. Проверите координатни систем и ручно изаберите редослед; он се никада не мења аутоматски",+ "locationPasteInEditor": "Унесите географску дужину и географску ширину засебно у уређивачу локације и проверите координатни систем","location": "Локација","locationName": "Назив (опционо)","latitude": "Географска ширина",diff --git a/app/appearance/langs/th.json b/app/appearance/langs/th.jsonindex 3cbb220faf..3f6444b015 100644--- a/app/appearance/langs/th.json+++ b/app/appearance/langs/th.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "หน้านี้มีตำแหน่งมากกว่า ${limit} รายการ ใช้ตัวกรองหรือลดขนาดหน้าเพื่อแสดงแผนที่","defaultCoordinateSystem": "ระบบพิกัดเริ่มต้นสำหรับข้อมูลใหม่","defaultCoordinateSystemTip": "ใช้กับข้อมูลใหม่เท่านั้น ตำแหน่งเดิมจะไม่เปลี่ยนแปลงและจะไม่มีการแปลงพิกัด",- "locationPasteInEditor": "วางคู่พิกัดในตัวแก้ไขตำแหน่ง โดยลำดับเริ่มต้นคือลองจิจูด ละติจูด ตรวจสอบระบบพิกัดและเลือกลำดับด้วยตนเอง ระบบจะไม่สลับลำดับอัตโนมัติ",+ "locationPasteInEditor": "กรอกค่าลองจิจูดและละติจูดแยกกันในตัวแก้ไขตำแหน่ง และตรวจสอบระบบพิกัด","location": "ตำแหน่ง","locationName": "ชื่อ (ไม่บังคับ)","latitude": "ละติจูด",diff --git a/app/appearance/langs/tr.json b/app/appearance/langs/tr.jsonindex 219f1da917..f95bb25d0c 100644--- a/app/appearance/langs/tr.json+++ b/app/appearance/langs/tr.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "Bu sayfada ${limit} konumdan fazla konum var. Haritayı göstermek için filtreleri kullanın veya sayfa boyutunu küçültün","defaultCoordinateSystem": "Yeni girişler için varsayılan koordinat sistemi","defaultCoordinateSystemTip": "Yalnızca yeni girişlere uygulanır; mevcut konumlar değişmez ve koordinatlar dönüştürülmez",- "locationPasteInEditor": "Koordinat çiftlerini konum düzenleyicisine yapıştırın; varsayılan sıra boylam, enlemdir. Koordinat sistemini kontrol edin ve sırayı elle seçin; sıra hiçbir zaman otomatik değiştirilmez",+ "locationPasteInEditor": "Konum düzenleyicisinde boylam ve enlemi ayrı ayrı girin ve koordinat sistemini doğrulayın","location": "Konum","locationName": "Ad (isteğe bağlı)","latitude": "Enlem",diff --git a/app/appearance/langs/uk.json b/app/appearance/langs/uk.jsonindex 9f6fa67d99..3bbc4ebb15 100644--- a/app/appearance/langs/uk.json+++ b/app/appearance/langs/uk.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "На цій сторінці понад ${limit} місцеположень. Використайте фільтри або зменште розмір сторінки, щоб показати мапу","defaultCoordinateSystem": "Типова система координат для нових даних","defaultCoordinateSystemTip": "Застосовується лише до нових даних; наявні розташування не змінюються, координати не перетворюються",- "locationPasteInEditor": "Вставляйте пари координат у редакторі розташування; типовий порядок — довгота, широта. Перевірте систему координат і виберіть порядок вручну; він ніколи не змінюється автоматично",+ "locationPasteInEditor": "Введіть довготу й широту окремо в редакторі розташування та перевірте систему координат","location": "Розташування","locationName": "Назва (необов’язково)","latitude": "Широта",diff --git a/app/appearance/langs/zh-CN.json b/app/appearance/langs/zh-CN.jsonindex 19debcb847..193cb7823a 100644--- a/app/appearance/langs/zh-CN.json+++ b/app/appearance/langs/zh-CN.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "当前页面的位置超过 ${limit} 个,请使用筛选或减小每页记录数以显示地图","defaultCoordinateSystem": "新录入默认坐标系","defaultCoordinateSystemTip": "仅用于新录入;已有位置保持不变,不转换坐标",- "locationPasteInEditor": "请在位置编辑器中粘贴坐标对,默认顺序为经度、纬度;请确认坐标系并手动选择顺序,不会自动交换",+ "locationPasteInEditor": "请在位置编辑器中分别填写经度和纬度,并确认坐标系","location": "位置","locationName": "名称(可选)","latitude": "纬度",diff --git a/app/appearance/langs/zh-TW.json b/app/appearance/langs/zh-TW.jsonindex df899545d9..e2fe7da6b4 100644--- a/app/appearance/langs/zh-TW.json+++ b/app/appearance/langs/zh-TW.json@@ -57,7 +57,7 @@"mapTooManyMarkers": "目前頁面的位置超過 ${limit} 個,請使用篩選或減少每頁記錄數以顯示地圖","defaultCoordinateSystem": "新輸入預設座標系","defaultCoordinateSystemTip": "僅用於新輸入;既有位置保持不變,不轉換座標",- "locationPasteInEditor": "請在位置編輯器中貼上座標對,預設順序為經度、緯度;請確認座標系並手動選擇順序,不會自動交換",+ "locationPasteInEditor": "請在位置編輯器中分別填寫經度和緯度,並確認座標系","location": "位置","locationName": "名稱(選填)","latitude": "緯度",diff --git a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20240208172514-9dsv6na.sy b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20240208172514-9dsv6na.syindex 4599cb5574..f33c469746 100644--- a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20240208172514-9dsv6na.sy+++ b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20240208172514-9dsv6na.sy@@ -7,7 +7,7 @@"id": "20240208172514-9dsv6na","title": "Database","type": "doc",- "updated": "20261009112101"+ "updated": "20261009171730"},"Children": [{@@ -74,7 +74,7 @@"HeadingLevel": 2,"Properties": {"id": "20261009034010-6kd9rk5",- "updated": "20261009112101"+ "updated": "20261009171730"},"Children": [{@@ -102,12 +102,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-h9vridq",- "updated": "20261009111821"+ "updated": "20261009171730"},"Children": [{"Type": "NodeText",- "Data": "To import coordinates, enter a pair such as 116.4074, 39.9042 in Paste coordinates and click Confirm. The default Coordinate order is longitude, latitude; if the source uses latitude, longitude, manually select latitude, longitude. SiYuan reads coordinates in the selected order and never infers or swaps the order automatically. This input accepts coordinate pairs only. A coordinate pair may be enclosed in ASCII parentheses. Choose WGS84 (OpenFreeMap), GCJ-02 (AMap, Tencent Maps), or BD-09 (Baidu Maps) for the coordinate system; changing this label does not convert coordinates. Imported text is retained unchanged as source metadata. Manually changing the coordinates or coordinate system clears that source text."+ "Data": "Enter longitude and latitude in their separate fields, for example longitude 116.4074 and latitude 39.9042. Choose WGS84 (OpenFreeMap), GCJ-02 (AMap, Tencent Maps), or BD-09 (Baidu Maps) for the coordinate system; changing this label does not convert coordinates. Source text retained by previously saved locations stays unchanged when you only edit the name. Manually changing the coordinates or coordinate system clears that source text."}]},@@ -116,12 +116,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-dub50kq",- "updated": "20261009112101"+ "updated": "20261009171730"},"Children": [{"Type": "NodeText",- "Data": "Click Save to apply edits or Cancel to discard them. Clear removes the location value. Text filters and sorting use the combined name, coordinates, and coordinate-system label. This field does not load maps or contact external location services. Coordinates are displayed in longitude, latitude order in the app. Plain-text copying and export keep latitude, longitude; to reuse those coordinates, paste only the pair into the location editor and explicitly select latitude, longitude. The complete copied or exported location text is not accepted as a coordinate pair. Structured database copying preserves named coordinate values. Named JSON fields and previously saved locations are unchanged."+ "Data": "Click Save to apply edits or Cancel to discard them. Clear removes the location value. Text filters and sorting use the combined name, coordinates, and coordinate-system label. This field does not load maps or contact external location services. Coordinates are displayed in longitude, latitude order in the app. Plain-text copying and export keep latitude, longitude; to reuse those coordinates, enter each value in its corresponding field in the location editor. Structured database copying preserves named coordinate values. Named JSON fields and previously saved locations are unchanged."},{"Type": "NodeText",diff --git a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20240208113259-nykkvaq.sy b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20240208113259-nykkvaq.syindex 545618823e..b68d5598fd 100644--- a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20240208113259-nykkvaq.sy+++ b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20240208113259-nykkvaq.sy@@ -7,7 +7,7 @@"id": "20240208113259-nykkvaq","title": "数据库","type": "doc",- "updated": "20261009112101"+ "updated": "20261009171730"},"Children": [{@@ -74,7 +74,7 @@"HeadingLevel": 2,"Properties": {"id": "20261009034010-m7nwg3o",- "updated": "20261009112101"+ "updated": "20261009171730"},"Children": [{@@ -102,12 +102,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-grvs8hv",- "updated": "20261009111821"+ "updated": "20261009171730"},"Children": [{"Type": "NodeText",- "Data": "导入坐标时,在「粘贴坐标」中输入 116.4074, 39.9042 这样的坐标对,再点击「确定」。「坐标顺序」默认为经度、纬度;若来源为纬度、经度,请手动切换到该顺序。思源按所选顺序读取坐标,不会自动判断或交换顺序。此输入框仅接受坐标对。坐标对可用英文括号包裹。坐标系可选择 WGS84(OpenFreeMap)、GCJ-02(高德、腾讯)或 BD-09(百度);修改此标记不会转换坐标。导入的原始文本会原样保留为来源信息,手动修改坐标或坐标系会清除该来源文本。"+ "Data": "请在经度和纬度输入框中分别填写坐标,例如经度 116.4074、纬度 39.9042。坐标系可选择 WGS84(OpenFreeMap)、GCJ-02(高德、腾讯)或 BD-09(百度);修改此标记不会转换坐标。已有位置保留的来源文本在仅修改名称时保持不变,手动修改坐标或坐标系会清除该来源文本。"}]},@@ -116,12 +116,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-kag8uox",- "updated": "20261009112101"+ "updated": "20261009171730"},"Children": [{"Type": "NodeText",- "Data": "点击「保存」应用修改,点击「取消」放弃修改,「清空」会移除位置值。文本过滤和排序使用名称、坐标及坐标系标记组合后的文本。此字段不加载地图,也不调用外部位置服务。应用内按经度、纬度顺序显示坐标。纯文本复制和导出仍使用纬度、经度顺序;复用这些坐标时,请仅将坐标对粘贴到位置编辑器,并明确选择纬度、经度顺序。完整的复制或导出位置文本不能作为坐标对解析。数据库内的结构化复制保留经纬度各自的值,JSON 命名字段和已保存的位置均保持不变。"+ "Data": "点击「保存」应用修改,点击「取消」放弃修改,「清空」会移除位置值。文本过滤和排序使用名称、坐标及坐标系标记组合后的文本。此字段不加载地图,也不调用外部位置服务。应用内按经度、纬度顺序显示坐标。纯文本复制和导出仍使用纬度、经度顺序;复用这些坐标时,请在位置编辑器的对应输入框中分别填写经度和纬度。数据库内的结构化复制保留经纬度各自的值,JSON 命名字段和已保存的位置均保持不变。"},{"Type": "NodeText",diff --git a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20240208171522-y7dxcno.sy b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20240208171522-y7dxcno.syindex 0efc797503..6a8cbb9adc 100644--- a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20240208171522-y7dxcno.sy+++ b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20240208171522-y7dxcno.sy@@ -7,7 +7,7 @@"id": "20240208171522-y7dxcno","title": "資料庫","type": "doc",- "updated": "20261009112101"+ "updated": "20261009171730"},"Children": [{@@ -74,7 +74,7 @@"HeadingLevel": 2,"Properties": {"id": "20261009034010-5oq6h7a",- "updated": "20261009112101"+ "updated": "20261009171730"},"Children": [{@@ -102,12 +102,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-ue87c6m",- "updated": "20261009111821"+ "updated": "20261009171730"},"Children": [{"Type": "NodeText",- "Data": "匯入座標時,在「貼上座標」中輸入 116.4074, 39.9042 這樣的座標對,再點擊「確定」。「座標順序」預設為經度、緯度;若來源為緯度、經度,請手動切換到該順序。思源依所選順序讀取座標,不會自動判斷或交換順序。此輸入框僅接受座標對。座標對可用英文括號包裹。座標系可選擇 WGS84(OpenFreeMap)、GCJ-02(高德、騰訊)或 BD-09(百度);修改此標記不會轉換座標。匯入的原始文字會原樣保留為來源資訊,手動修改座標或座標系會清除該來源文字。"+ "Data": "請在經度和緯度輸入框中分別填寫座標,例如經度 116.4074、緯度 39.9042。座標系可選擇 WGS84(OpenFreeMap)、GCJ-02(高德、騰訊)或 BD-09(百度);修改此標記不會轉換座標。既有位置保留的來源文字在僅修改名稱時保持不變,手動修改座標或座標系會清除該來源文字。"}]},@@ -116,12 +116,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-g7jsd2p",- "updated": "20261009112101"+ "updated": "20261009171730"},"Children": [{"Type": "NodeText",- "Data": "點擊「保存」套用修改,點擊「取消」放棄修改,「清空」會移除位置值。文字過濾和排序使用名稱、座標及座標系標記組合後的文字。此欄位不載入地圖,也不呼叫外部位置服務。應用程式內依經度、緯度順序顯示座標。純文字複製和匯出仍使用緯度、經度順序;重用這些座標時,請僅將座標對貼到位置編輯器,並明確選擇緯度、經度順序。完整的複製或匯出位置文字不能作為座標對解析。資料庫內的結構化複製保留經緯度各自的值,JSON 具名欄位和已儲存的位置均保持不變。"+ "Data": "點擊「保存」套用修改,點擊「取消」放棄修改,「清空」會移除位置值。文字過濾和排序使用名稱、座標及座標系標記組合後的文字。此欄位不載入地圖,也不呼叫外部位置服務。應用程式內依經度、緯度順序顯示座標。純文字複製和匯出仍使用緯度、經度順序;重用這些座標時,請在位置編輯器的對應輸入框中分別填寫經度和緯度。資料庫內的結構化複製保留經緯度各自的值,JSON 具名欄位和已儲存的位置均保持不變。"},{"Type": "NodeText",diff --git a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-3eaevtp.sy b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-3eaevtp.syindex d829004dca..6519a8b8c0 100644--- a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-3eaevtp.sy+++ b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-3eaevtp.sy@@ -8,7 +8,7 @@"id": "20240530101000-3eaevtp","title": "データベース","type": "doc",- "updated": "20261009112101"+ "updated": "20261009171730"},"Children": [{@@ -75,7 +75,7 @@"HeadingLevel": 2,"Properties": {"id": "20261009034010-6j4iniw",- "updated": "20261009112101"+ "updated": "20261009171730"},"Children": [{@@ -103,12 +103,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-1609sdo",- "updated": "20261009111821"+ "updated": "20261009171730"},"Children": [{"Type": "NodeText",- "Data": "座標を取り込むには、「座標を貼り付け」に 116.4074, 39.9042 のような座標の組を入力し、「確認」をクリックします。「座標の順序」の既定値は経度、緯度です。元データが緯度、経度の順の場合は、手動でその順序に切り替えてください。SiYuan は選択した順序で座標を読み取り、順序を自動判定したり入れ替えたりしません。この入力欄は座標の組のみを受け付けます。座標の組を半角括弧で囲むこともできます。座標系には WGS84(OpenFreeMap)、GCJ-02(AMap、Tencent Maps)、BD-09(Baidu Maps)を選択できますが、このラベルを変更しても座標は変換されません。取り込んだ元のテキストは出典情報としてそのまま保持されます。座標または座標系を手動で変更すると、この出典テキストは消去されます。"+ "Data": "経度と緯度は、それぞれの入力欄に入力してください。例えば、経度には 116.4074、緯度には 39.9042 を入力します。座標系には WGS84(OpenFreeMap)、GCJ-02(AMap、Tencent Maps)、BD-09(Baidu Maps)を選択できますが、このラベルを変更しても座標は変換されません。保存済みの位置に保持されている出典テキストは、名前だけを変更した場合はそのまま残ります。座標または座標系を手動で変更すると、この出典テキストは消去されます。"}]},@@ -117,12 +117,12 @@"Type": "NodeParagraph","Properties": {"id": "20261009034010-fry67po",- "updated": "20261009112101"+ "updated": "20261009171730"},"Children": [{"Type": "NodeText",- "Data": "「保存」で変更を適用し、「キャンセル」で変更を破棄します。「消去」は位置の値を削除します。テキストのフィルターとソートには、名前、座標、座標系のラベルを組み合わせたテキストを使用します。このフィールドは地図を読み込まず、外部の位置情報サービスにも接続しません。アプリ内では経度、緯度の順に座標を表示します。プレーンテキストのコピーとエクスポートでは緯度、経度の順序を維持します。これらの座標を再利用するには、座標の組だけを位置エディターに貼り付け、緯度、経度の順序を明示的に選択してください。コピーまたはエクスポートした位置テキスト全体は、座標の組として解析できません。データベース内の構造化されたコピーでは、経度と緯度それぞれの値を保持します。JSON の名前付きフィールドと保存済みの位置は変更されません。"+ "Data": "「保存」で変更を適用し、「キャンセル」で変更を破棄します。「消去」は位置の値を削除します。テキストのフィルターとソートには、名前、座標、座標系のラベルを組み合わせたテキストを使用します。このフィールドは地図を読み込まず、外部の位置情報サービスにも接続しません。アプリ内では経度、緯度の順に座標を表示します。プレーンテキストのコピーとエクスポートでは緯度、経度の順序を維持します。これらの座標を再利用するには、位置エディターの対応する入力欄に経度と緯度をそれぞれ入力してください。データベース内の構造化されたコピーでは、経度と緯度それぞれの値を保持します。JSON の名前付きフィールドと保存済みの位置は変更されません。"},{"Type": "NodeText",diff --git a/app/src/assets/scss/business/_av.scss b/app/src/assets/scss/business/_av.scssindex 873034e8b6..628c6e29a3 100644--- a/app/src/assets/scss/business/_av.scss+++ b/app/src/assets/scss/business/_av.scss@@ -398,6 +398,7 @@&[data-av-type="map"] > .av__container > .av__scroll {.av__row[data-id],+ .av__row--util,.av__spacer {display: none;}diff --git a/app/src/protyle/render/av/locationEditor.test.ts b/app/src/protyle/render/av/locationEditor.test.tsindex 3c3ca703e6..2d4ae0ea4c 100644--- a/app/src/protyle/render/av/locationEditor.test.ts+++ b/app/src/protyle/render/av/locationEditor.test.ts@@ -41,9 +41,9 @@ const createEditor = (options: {alreadyOpen?: boolean;save?: (value: IAVCellLocationValue) => Promise<void>;} = {}) => {- const fields = Object.fromEntries(["name", "latitude", "longitude", "coordinateSystem", "coordinateOrder", "paste"]+ const fields = Object.fromEntries(["name", "latitude", "longitude", "coordinateSystem"].map(name => [name, new Control()]));- const buttons = Object.fromEntries(["save", "clear", "cancel", "parse"].map(name => [name, new Control()]));+ const buttons = Object.fromEntries(["save", "clear", "cancel"].map(name => [name, new Control()]));const container = new Control();const error = new Control();const lifecycle: string[] = [];@@ -140,14 +140,12 @@ describe("database location editor", () => {it("uses shared block form groups with one aligned coordinate row on desktop and mobile", () => {for (const mobile of [false, true]) {const editor = createEditor({mobile});- assert.equal((editor.markup.match(/<div class="b3-label b3-label--inner(?: fn__flex)?">/g) || []).length, 5);+ assert.equal((editor.markup.match(/<div class="b3-label b3-label--inner(?: fn__flex)?">/g) || []).length, 3);assert.doesNotMatch(editor.markup, /<label class="b3-label/);assert.match(editor.markup, /<div class="b3-label b3-label--inner fn__flex">\s*<label class="fn__flex-1">longitude/);assert.match(editor.markup, /<label class="fn__flex-1">latitude/);- assert.equal(editor.fields.coordinateOrder.value, "longitudeLatitude");- assert.match(editor.markup, /<option value="longitudeLatitude">longitude, latitude<\/option>\s*<option value="latitudeLongitude">latitude, longitude<\/option>/);- assert.match(editor.markup, /class="b3-label__text">coordinateOrderTip/);- assert.match(editor.markup, /data-field="paste"[^>]*><\/textarea>\s*<\/label>\s*<\/div>\s*<button[^>]*data-action="parse"/);+ assert.doesNotMatch(editor.markup, /coordinateOrder|pasteCoordinates|textarea|data-action="parse"/);+ assert.match(editor.markup, /data-action="save"/);}});@@ -170,49 +168,13 @@ describe("database location editor", () => {assert.equal(editor.saved[0].longitude, value.longitude);});- it("defaults to longitude-first imports on desktop and mobile without guessing", async () => {- for (const mobile of [false, true]) {- for (const [source, latitude, longitude] of [["(102.42,25.04)", 25.04, 102.42], ["20,30", 30, 20]] as const) {- const editor = createEditor({mobile});- editor.fields.paste.value = source;- editor.buttons.parse.dispatch("click");- editor.buttons.parse.dispatch("click");- assert.equal(editor.fields.latitude.value, String(latitude));- assert.equal(editor.fields.longitude.value, String(longitude));- editor.buttons.save.dispatch("click");- await editor.settle();- assert.deepEqual(editor.saved[0], {name: "", latitude, longitude, coordinateSystem: "wgs84", originalInput: source});- }- }- });-- it("keeps latitude-first input as an explicit choice without automatic swapping", async () => {- const editor = createEditor();- editor.fields.paste.value = "25.04,102.42";- editor.buttons.parse.dispatch("click");- assert.equal(editor.error.textContent, "invalidCoordinates");- assert.equal(editor.fields.paste.value, "25.04,102.42");- assert.equal(editor.fields.latitude.value, "");- editor.fields.coordinateOrder.value = "latitudeLongitude";- editor.fields.coordinateOrder.dispatch("change");- editor.buttons.parse.dispatch("click");- assert.equal(editor.fields.latitude.value, "25.04");- assert.equal(editor.fields.longitude.value, "102.42");- editor.buttons.save.dispatch("click");- await editor.settle();- assert.equal(editor.saved[0].originalInput, "25.04,102.42");- });-- it("does not reinterpret saved source text under the new default order on reopen", async () => {+ it("opens saved coordinates without reinterpreting legacy source text on desktop and mobile", async () => {for (const mobile of [false, true]) {for (const coordinateSystem of ["wgs84", "gcj02", "bd09"] as const) {const value = {latitude: 20, longitude: 30, originalInput: "20,30", coordinateSystem};const editor = createEditor({value, mobile});- editor.buttons.parse.dispatch("click");- editor.buttons.parse.dispatch("click");assert.equal(editor.fields.latitude.value, "20");assert.equal(editor.fields.longitude.value, "30");- assert.equal(editor.fields.paste.value, value.originalInput);editor.buttons.save.dispatch("click");await editor.settle();assert.deepEqual(editor.saved, []);@@ -220,35 +182,6 @@ describe("database location editor", () => {}});- it("rejects copied canonical text instead of interpreting it with the new default order", async () => {- for (const name of [undefined, "Office"]) {- const editor = createEditor({value: {latitude: 10, longitude: 40}});- const copied = locationValue.getAVLocationText({name, latitude: 20, longitude: 30, coordinateSystem: "wgs84"});- editor.fields.paste.value = copied;- editor.buttons.parse.dispatch("click");- assert.equal(editor.error.textContent, "invalidCoordinates");- assert.equal(editor.fields.paste.value, copied);- assert.equal(editor.fields.latitude.value, "10");- assert.equal(editor.fields.longitude.value, "40");- editor.buttons.save.dispatch("click");- await editor.settle();- assert.deepEqual(editor.saved, []);- }- });-- it("changing import order requires confirmation without changing existing coordinates", async () => {- const editor = createEditor({value: {latitude: 30, longitude: 20, originalInput: "20,30"}});- editor.fields.coordinateOrder.value = "latitudeLongitude";- editor.fields.coordinateOrder.dispatch("change");- editor.buttons.save.dispatch("click");- await editor.settle();- assert.equal(editor.saved.length, 0);- assert.equal(editor.fields.latitude.value, "30");- editor.buttons.parse.dispatch("click");- assert.equal(editor.fields.latitude.value, "20");- assert.equal(editor.fields.longitude.value, "30");- });-it("does not create overlapping editors on repeated open events", () => {const editor = createEditor({alreadyOpen: true});assert.equal(editor.dialog, undefined);@@ -280,7 +213,8 @@ describe("database location editor", () => {it("keeps raw invalid coordinate input visible after Save", async () => {const editor = createEditor();- for (const [latitude, longitude] of [["oops", "0"], ["0", ""], ["91", "0"], ["0", "181"], ["1e2", "0"]]) {+ for (const [latitude, longitude] of [["oops", "0"], ["0", ""], ["91", "0"], ["0", "181"], ["1e2", "0"],+ ["0", "20,30"], ["20,30 [WGS84]", "0"]]) {editor.fields.latitude.value = latitude;editor.fields.longitude.value = longitude;editor.buttons.save.dispatch("click");@@ -318,15 +252,18 @@ describe("database location editor", () => {}});- it("preserves exact provenance when only the name changes", async () => {- const initial = {name: "Old", latitude: 0, longitude: 0, originalInput: " 0.00, +0 "};- const editor = createEditor({value: initial});- assert.equal(editor.fields.paste.value, initial.originalInput);- editor.fields.name.value = "New";- editor.buttons.save.dispatch("click");- await editor.settle();- assert.deepEqual(editor.saved, [{...initial, name: "New", coordinateSystem: "wgs84"}]);- assert.equal(initial.name, "Old");+ it("preserves exact legacy provenance when only the name changes", async () => {+ for (const mobile of [false, true]) {+ for (const originalInput of [" 0.00, +0 ", "unparsed legacy source"]) {+ const initial = {name: "Old", latitude: 0, longitude: 0, originalInput};+ const editor = createEditor({value: initial, mobile});+ editor.fields.name.value = "New";+ editor.buttons.save.dispatch("click");+ await editor.settle();+ assert.deepEqual(editor.saved, [{...initial, name: "New", coordinateSystem: "wgs84"}]);+ assert.equal(initial.name, "Old");+ }+ }});it("clears provenance on manual coordinates or CRS changes", async () => {@@ -338,41 +275,11 @@ describe("database location editor", () => {await editor.settle();assert.equal(editor.saved.length, 1);assert.equal(editor.saved[0].originalInput, "");- assert.equal(editor.fields.paste.value, "");}});- it("keeps failed imports and existing coordinates untouched, then saves an exact re-paste", async () => {- const editor = createEditor({value: {latitude: 0, longitude: 0, originalInput: "0,0"}});- editor.fields.paste.value = "31,121";- editor.buttons.parse.dispatch("click");- assert.equal(editor.error.textContent, "invalidCoordinates");- assert.equal(editor.fields.paste.value, "31,121");- assert.equal(editor.fields.latitude.value, "0");- assert.equal(editor.fields.longitude.value, "0");- editor.buttons.save.dispatch("click");- await editor.settle();- assert.equal(editor.saved.length, 0);- assert.equal(editor.lifecycle.includes("destroy"), false);- const source = " +0.00, 0.000\n";- editor.fields.paste.value = source;- editor.buttons.parse.dispatch("click");- editor.buttons.save.dispatch("click");- await editor.settle();- assert.equal(editor.saved.length, 1);- assert.equal(editor.saved[0].originalInput, source);- assert.equal(editor.fields.paste.value, source);- });-- it("keeps valid pending imports until explicitly confirmed and removes both old coordinates", async () => {+ it("removes both old coordinates and source text when both coordinate fields are cleared", async () => {const editor = createEditor({value: {name: "Office", latitude: 31, longitude: 121, originalInput: "31,121"}});- editor.fields.paste.value = "0,0";- editor.buttons.save.dispatch("click");- await editor.settle();- assert.equal(editor.saved.length, 0);- assert.equal(editor.buttons.parse.focused, true);- assert.equal(editor.fields.paste.value, "0,0");- editor.fields.paste.value = "";editor.fields.latitude.value = "";editor.fields.longitude.value = "";editor.fields.latitude.dispatch("input");diff --git a/app/src/protyle/render/av/locationEditor.ts b/app/src/protyle/render/av/locationEditor.tsindex cdb8b6229b..bd791d76d7 100644--- a/app/src/protyle/render/av/locationEditor.ts+++ b/app/src/protyle/render/av/locationEditor.ts@@ -13,7 +13,6 @@ import {formatAVLocationCoordinate,isAVLocationCoordinateSystem,parseAVLocationCoordinate,- parseAVLocationCoordinates,validateAVLocation,} from "./locationValue";@@ -35,7 +34,6 @@ export const openAVLocationEditor = (options: AVLocationEditorOptions) => {const mobile = isMobile();const languages = window.siyuan.languages;let originalInput = initial.originalInput;- let parsedInput: string | undefined;let saving = false;let closing = false;let composing = false;@@ -71,21 +69,6 @@ export const openAVLocationEditor = (options: AVLocationEditorOptions) => {</label><div class="b3-label__text">${escapeHtml(languages.coordinateSystemTip)}</div></div>- <div class="b3-label b3-label--inner">- <label>${escapeHtml(languages.coordinateOrder)}- <span class="fn__hr"></span><select class="b3-select fn__block" data-field="coordinateOrder">- <option value="longitudeLatitude">${escapeHtml(languages.longitude)}, ${escapeHtml(languages.latitude)}</option>- <option value="latitudeLongitude">${escapeHtml(languages.latitude)}, ${escapeHtml(languages.longitude)}</option>- </select>- </label>- <div class="b3-label__text">${escapeHtml(languages.coordinateOrderTip)}</div>- </div>- <div class="b3-label b3-label--inner">- <label>${escapeHtml(languages.pasteCoordinates)}- <span class="fn__hr"></span><textarea class="b3-text-field fn__block" data-field="paste" rows="2" spellcheck="false"></textarea>- </label>- </div>- <button type="button" class="b3-button b3-button--outline" data-action="parse">${escapeHtml(languages.confirm)}</button><div class="ft__error fn__none" style="margin-top:8px" data-role="error" role="alert" aria-live="polite"></div></div><div class="b3-dialog__action">@@ -108,24 +91,16 @@ export const openAVLocationEditor = (options: AVLocationEditorOptions) => {const latitudeInput = root.querySelector<HTMLInputElement>('[data-field="latitude"]');const longitudeInput = root.querySelector<HTMLInputElement>('[data-field="longitude"]');const systemInput = root.querySelector<HTMLSelectElement>('[data-field="coordinateSystem"]');- const orderInput = root.querySelector<HTMLSelectElement>('[data-field="coordinateOrder"]');- orderInput.value = "longitudeLatitude";- const pasteInput = root.querySelector<HTMLTextAreaElement>('[data-field="paste"]');const errorElement = root.querySelector<HTMLElement>('[data-role="error"]');- const controls = root.querySelectorAll<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | HTMLButtonElement>(- "input, select, textarea, button");+ const controls = root.querySelectorAll<HTMLInputElement | HTMLSelectElement | HTMLButtonElement>(+ "input, select, button");nameInput.value = initial.name || "";latitudeInput.value = initial.latitude == null ? "" : formatAVLocationCoordinate(initial.latitude);longitudeInput.value = initial.longitude == null ? "" : formatAVLocationCoordinate(initial.longitude);- pasteInput.value = initial.originalInput || "";- parsedInput = pasteInput.value;// 旧值未注明坐标系时保留空选项,必须明确选择,不能打开即重标。systemInput.value = initial.coordinateSystem && initial.coordinateSystem !== "unknown" &&isAVLocationCoordinateSystem(initial.coordinateSystem) ? initial.coordinateSystem : "";const hasSelectedSystem = () => systemInput.value !== "unknown" && isAVLocationCoordinateSystem(systemInput.value);- const parsePaste = () => parseAVLocationCoordinates(pasteInput.value,- systemInput.value as IAVCellLocationValue["coordinateSystem"],- orderInput.value === "longitudeLatitude" ? "longitudeLatitude" : "latitudeLongitude");const setError = (message = "") => {errorElement.textContent = message;@@ -165,17 +140,6 @@ export const openAVLocationEditor = (options: AVLocationEditorOptions) => {systemInput.focus();return;}- // 未确认的导入文本不能在保存时被静默丢弃,错误输入也保持原样可编辑。- if (pasteInput.value.trim() && pasteInput.value !== parsedInput) {- const valid = parsePaste();- setError(valid ? `${languages.pasteCoordinates}: ${languages.confirm}` : languages.invalidCoordinates);- if (valid) {- root.querySelector<HTMLButtonElement>('[data-action="parse"]').focus();- } else {- pasteInput.focus();- }- return;- }value = {name: nameInput.value.trim(), coordinateSystem: systemInput.value as IAVCellLocationValue["coordinateSystem"]};if (latitudeInput.value.trim() || longitudeInput.value.trim()) {value.latitude = parseAVLocationCoordinate(latitudeInput.value);@@ -221,19 +185,10 @@ export const openAVLocationEditor = (options: AVLocationEditorOptions) => {const clearProvenance = () => {originalInput = undefined;- if (pasteInput.value === parsedInput) {- pasteInput.value = "";- parsedInput = undefined;- }setError();};[latitudeInput, longitudeInput].forEach(input => input.addEventListener("input", clearProvenance));systemInput.addEventListener("change", clearProvenance);- orderInput.addEventListener("change", () => {- // 切换顺序不改已有坐标,只让当前粘贴文本重新等待确认。- parsedInput = undefined;- setError();- });root.addEventListener("compositionstart", () => composing = true);root.addEventListener("compositionend", () => composing = false);root.addEventListener("keydown", (event: KeyboardEvent) => {@@ -258,32 +213,6 @@ export const openAVLocationEditor = (options: AVLocationEditorOptions) => {root.addEventListener(AV_CELL_EDITOR_CLOSE_EVENT, () => dialog.destroy());root.querySelector('[data-action="clear"]').addEventListener("click", () => void submit(true));root.querySelector('[data-action="save"]').addEventListener("click", () => void submit());- root.querySelector('[data-action="parse"]').addEventListener("click", () => {- if (saving || closing || composing) {- return;- }- if (!hasSelectedSystem()) {- setError(languages.selectCoordinateSystem);- systemInput.focus();- return;- }- // 已确认的来源文本不按新默认顺序重新解释;修改文本或切换顺序后才重新导入。- if (pasteInput.value.trim() && pasteInput.value === parsedInput) {- setError();- return;- }- const parsed = parsePaste();- if (!parsed) {- setError(languages.invalidCoordinates);- pasteInput.focus();- return;- }- latitudeInput.value = formatAVLocationCoordinate(parsed.latitude);- longitudeInput.value = formatAVLocationCoordinate(parsed.longitude);- originalInput = parsed.originalInput;- parsedInput = pasteInput.value;- setError();- });if (mobile) {disposeSheet = bindBottomSheetDialog(dialog, async () => dialog.destroy());} else {