You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: use FileSystemFileHandle to modify a file on the local filesystem (#965)
## Launch Checklist
<!-- Thanks for the PR! Feel free to add or remove items from the
checklist. -->
- [x] Briefly describe the changes in this PR.
- [x] Link to related issues.
- [x] Include before/after visuals or gifs if this PR includes visual
changes.
- [ ] Write tests for all new functionality.
- [x] Add an entry to `CHANGELOG.md` under the `## main` section.
## Changes
- This pull request makes use of the FileSystemFileHandle API to modify
a local file. No need to download it - just click save.
- I don't know how to cover this functionality by tests so I need
directions in case test coverage is required.
- The pull request adds
[@types/wicg-file-system-access](https://www.npmjs.com/package/@types/wicg-file-system-access)
as a new dev dependency which I am not really pleased about but can't
think of a way around it.
## Known Limitations
- The used File API is only available in when accessed from https or on
localhost.
- There is no visual indicator that the file has been saved. Previously
the browser showed it as a new download.
## Issue
- #964
## Screenshots
### Menu
<img
src="https://github.com/user-attachments/assets/dfcfc5c2-0019-4857-ba26-224b5598fc11"
/>
### Open modal
<img
src="https://github.com/user-attachments/assets/4e1293e8-16b6-4b86-925b-3bebb49d8ca6"
height="200px" />
### Save modal
<img
src="https://github.com/user-attachments/assets/4f10e2c0-2dd3-4726-a613-30e0406619b0"
height="200px" />
---------
Co-authored-by: Harel M <harel.mazor@gmail.com>
Copy file name to clipboardexpand all lines: src/locales/de/translation.json
+7-10
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@
29
29
"Map view": "Kartenansicht",
30
30
"Maputnik on GitHub": "Maputnik auf GitHub",
31
31
"Open": "Öffnen",
32
-
"Export": "Exportieren",
32
+
"Save": "Speichern",
33
33
"Data Sources": "Datenquellen",
34
34
"Style Settings": "Stileinstellungen",
35
35
"View": "Ansicht",
@@ -81,17 +81,14 @@
81
81
"Close modal": "Modale Fenster schließen",
82
82
"Debug": "Debug",
83
83
"Options": "Optionen",
84
-
"<0>Open in OSM</0> — Opens the current view on openstreetmap.org": "<0>In OSM öffnen</0> — Öffnet die aktuelle Ansicht auf openstreetmap.org",
85
-
"Export Style": "Stil exportieren",
86
-
"Download Style": "Stil herunterladen",
87
-
"Download a JSON style to your computer.": "Lade einen JSON-Stil auf deinen Computer herunter.",
88
-
"Download HTML": "HTML herunterladen",
84
+
"Save Style": "Stil Speichern",
85
+
"Save the JSON style to your computer.": "Speichere den JSON Stil auf deinem Computer.",
86
+
"Save as": "Speichern unter",
87
+
"Create HTML": "HTML erstellen",
89
88
"Cancel": "Abbrechen",
90
89
"Open Style": "Stil öffnen",
91
-
"Upload Style": "Stil hochladen",
92
-
"Upload a JSON style from your computer.": "Lade einen JSON-Stil von deinem Computer hoch.",
93
-
"Style file": "Stildatei",
94
-
"Upload": "Hochladen",
90
+
"Open local Style": "Lokalen Stil öffnen",
91
+
"Open a local JSON style from your computer.": "Öffne einen lokalen JSON Stil von deinem Computer.",
95
92
"Load from URL": "Von URL laden",
96
93
"Load from a URL. Note that the URL must have <1>CORS enabled</1>.": "Von einer URL laden. Beachte, dass die URL <1>CORS aktiviert</1> haben muss.",
0 commit comments