Fix: Tagebuch-Foto bei neuem Eintrag — GPS-Fetch bei anhängigen Dateien überspringen (SW by-v875)
This commit is contained in:
parent
b818f85f36
commit
0ab88ef6b6
5 changed files with 14 additions and 12 deletions
|
|
@ -376,7 +376,7 @@ if STAGING and os.path.isdir(PROD_MEDIA_DIR):
|
||||||
else:
|
else:
|
||||||
app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media")
|
app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media")
|
||||||
|
|
||||||
APP_VER = "874" # muss mit APP_VER in app.js übereinstimmen
|
APP_VER = "875" # muss mit APP_VER in app.js übereinstimmen
|
||||||
|
|
||||||
@app.get("/.well-known/assetlinks.json")
|
@app.get("/.well-known/assetlinks.json")
|
||||||
async def assetlinks():
|
async def assetlinks():
|
||||||
|
|
|
||||||
|
|
@ -101,9 +101,9 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
|
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
|
||||||
<link rel="stylesheet" href="/css/design-system.css?v=874">
|
<link rel="stylesheet" href="/css/design-system.css?v=875">
|
||||||
<link rel="stylesheet" href="/css/layout.css?v=874">
|
<link rel="stylesheet" href="/css/layout.css?v=875">
|
||||||
<link rel="stylesheet" href="/css/components.css?v=874">
|
<link rel="stylesheet" href="/css/components.css?v=875">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
@ -583,10 +583,10 @@
|
||||||
<div id="modal-container"></div>
|
<div id="modal-container"></div>
|
||||||
|
|
||||||
<!-- JS: Reihenfolge ist wichtig — erst Basis, dann Features -->
|
<!-- JS: Reihenfolge ist wichtig — erst Basis, dann Features -->
|
||||||
<script src="/js/api.js?v=874"></script>
|
<script src="/js/api.js?v=875"></script>
|
||||||
<script src="/js/ui.js?v=874"></script>
|
<script src="/js/ui.js?v=875"></script>
|
||||||
<script src="/js/app.js?v=874"></script>
|
<script src="/js/app.js?v=875"></script>
|
||||||
<script src="/js/worlds.js?v=874"></script>
|
<script src="/js/worlds.js?v=875"></script>
|
||||||
|
|
||||||
<!-- Feature-Seiten werden lazy geladen -->
|
<!-- Feature-Seiten werden lazy geladen -->
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
Router, State-Management, Navigation, Initialisierung.
|
Router, State-Management, Navigation, Initialisierung.
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
const APP_VER = '874'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
const APP_VER = '875'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||||
const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
|
const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
|
||||||
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
||||||
// Cache-Bust-Parameter nach Update-Reload sofort entfernen
|
// Cache-Bust-Parameter nach Update-Reload sofort entfernen
|
||||||
|
|
|
||||||
|
|
@ -1678,9 +1678,11 @@ window.Page_diary = (() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
await UI.asyncButton(submitBtn, async () => {
|
await UI.asyncButton(submitBtn, async () => {
|
||||||
// Auto-Wetter: nur bei neuem Eintrag ohne GPS-Standort
|
// Auto-Wetter: nur bei neuem Eintrag ohne GPS-Standort und OHNE anhängige Dateien.
|
||||||
|
// Wenn Dateien hochzuladen sind, dürfen wir keinen langen await vor dem Upload machen —
|
||||||
|
// iOS macht File-Handles nach längerer Pause ungültig (WebKit-Bug).
|
||||||
let _clientWeather = null;
|
let _clientWeather = null;
|
||||||
if (!isEdit && _locLat == null) {
|
if (!isEdit && _locLat == null && _newFiles.length === 0) {
|
||||||
try {
|
try {
|
||||||
const pos = await API.getLocation();
|
const pos = await API.getLocation();
|
||||||
const wd = await API.weather.get(pos.lat, pos.lon);
|
const wd = await API.weather.get(pos.lat, pos.lon);
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
Offline-Cache + Push Notifications + Tile-Cache
|
Offline-Cache + Push Notifications + Tile-Cache
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
const CACHE_VERSION = 'by-v874';
|
const CACHE_VERSION = 'by-v875';
|
||||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||||
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue