OSM-Beiträge: Map-Button (dog=yes), Changeset-Upload, Confirm/Pro-Job
- Map-Popup: "Hund war willkommen"-Button (dog=yes) für Restaurant/Hotel/ Shop/Tierarzt/Hundesalon → POST /osm-contrib/dog-friendly. - OSM-Changeset-Upload (write_api): Element holen (node/way) → dog=yes → Changeset create/upload/close; idempotent; best-effort beim Tap. - OSM-Endpunkte konfigurierbar (OSM_OAUTH_BASE/OSM_API_BASE) — Staging gegen Dev-Sandbox, KEINE echten Edits auf Produktiv-OSM. - Scheduler-Job (täglich 03:40): Pending-Retry + Revert-Überleben (7 Tage) → confirmed/rejected; Pro-Freischaltung (100 confirmed = 1 Jahr, idempotent via osm_pro_grants). HINWEIS: is_premium/subscription direkt gesetzt — vor Prod mit Billing abgleichen. - Native Attestierung/Sensoren: bewusst NICHT (iOS-App-Thema, nicht PWA).
This commit is contained in:
parent
dc9c0d2cc0
commit
57849515ea
10 changed files with 239 additions and 26 deletions
|
|
@ -86,14 +86,14 @@
|
|||
<title>Ban Yaro</title>
|
||||
|
||||
<!-- Theme + theme-color Statusleiste vor CSS setzen -->
|
||||
<script src="/js/boot-early.js?v=1156"></script>
|
||||
<script src="/js/boot-early.js?v=1157"></script>
|
||||
|
||||
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=1156">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=1156">
|
||||
<link rel="stylesheet" href="/css/components.css?v=1156">
|
||||
<link rel="stylesheet" href="/css/utilities.css?v=1156">
|
||||
<link rel="stylesheet" href="/css/lists.css?v=1156">
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=1157">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=1157">
|
||||
<link rel="stylesheet" href="/css/components.css?v=1157">
|
||||
<link rel="stylesheet" href="/css/utilities.css?v=1157">
|
||||
<link rel="stylesheet" href="/css/lists.css?v=1157">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
@ -617,11 +617,11 @@
|
|||
<div id="modal-container"></div>
|
||||
|
||||
<!-- JS: Reihenfolge ist wichtig — erst Basis, dann Features -->
|
||||
<script src="/js/api.js?v=1156"></script>
|
||||
<script src="/js/ui.js?v=1156"></script>
|
||||
<script src="/js/app.js?v=1156"></script>
|
||||
<script src="/js/worlds.js?v=1156"></script>
|
||||
<script src="/js/offline-indicator.js?v=1156"></script>
|
||||
<script src="/js/api.js?v=1157"></script>
|
||||
<script src="/js/ui.js?v=1157"></script>
|
||||
<script src="/js/app.js?v=1157"></script>
|
||||
<script src="/js/worlds.js?v=1157"></script>
|
||||
<script src="/js/offline-indicator.js?v=1157"></script>
|
||||
|
||||
<!-- Feature-Seiten werden lazy geladen -->
|
||||
|
||||
|
|
@ -631,7 +631,7 @@
|
|||
|
||||
|
||||
<!-- Boot: Offline-Banner + SW-Registration (extrahiert für CSP) -->
|
||||
<script src="/js/boot.js?v=1156"></script>
|
||||
<script src="/js/boot.js?v=1157"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '1156'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '1157'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VERSION = '1.6.0'; // ← semantische Version, wird bei make release gesetzt
|
||||
window.APP_VER = APP_VER; // global verfügbar für andere Module (z.B. offline-indicator)
|
||||
window.APP_VERSION = APP_VERSION;
|
||||
|
|
|
|||
|
|
@ -1103,6 +1103,15 @@ window.Page_map = (() => {
|
|||
? `<button class="btn btn-danger btn-sm" id="mp-action">Löschen</button>`
|
||||
: `<button class="btn btn-secondary btn-sm" id="mp-action">Als ungültig melden</button>`;
|
||||
|
||||
// "Hund war willkommen" (dog=yes) — nur bei OSM-POIs, wo's Sinn ergibt
|
||||
const DOG_TYPES = ['restaurant', 'hotel', 'shop', 'tierarzt', 'hundesalon'];
|
||||
const dogBtn = (poi.source === 'osm' && DOG_TYPES.includes(layerKey))
|
||||
? `<button class="btn btn-primary btn-sm" id="mp-dogyes" style="width:100%;margin-bottom:6px">
|
||||
<svg class="ph-icon" aria-hidden="true" style="width:14px;height:14px"><use href="/icons/phosphor.svg#dog"></use></svg>
|
||||
Hund war willkommen
|
||||
</button>`
|
||||
: '';
|
||||
|
||||
const openHours = poi.opening_hours
|
||||
? `<div style="font-size:11px;color:#555;margin-bottom:4px"><svg class="ph-icon" aria-hidden="true" style="width:12px;height:12px"><use href="/icons/phosphor.svg#clock"></use></svg> ${poi.opening_hours}</div>` : '';
|
||||
const phone = poi.phone
|
||||
|
|
@ -1120,7 +1129,7 @@ window.Page_map = (() => {
|
|||
? `<svg class="ph-icon" aria-hidden="true" style="width:11px;height:11px"><use href="/icons/phosphor.svg#push-pin"></use></svg> Community-Pin${poi.username ? ' · <b>' + poi.username + '</b>' : ''}`
|
||||
: '<svg class="ph-icon" aria-hidden="true" style="width:11px;height:11px"><use href="/icons/phosphor.svg#map-trifold"></use></svg> OpenStreetMap'}
|
||||
</div>
|
||||
${actionBtn}
|
||||
${dogBtn}${actionBtn}
|
||||
</div>
|
||||
`, { maxWidth: 260 }).openPopup();
|
||||
|
||||
|
|
@ -1130,6 +1139,20 @@ window.Page_map = (() => {
|
|||
if (isOwn) _deleteUserPoi(poi.user_poi_id, marker, layerKey);
|
||||
else _showReportDialog(poi);
|
||||
});
|
||||
document.getElementById('mp-dogyes')?.addEventListener('click', async () => {
|
||||
const b = document.getElementById('mp-dogyes');
|
||||
b.disabled = true;
|
||||
try {
|
||||
const r = await API.post('/osm-contrib/dog-friendly', {
|
||||
osm_id: poi.id, osm_type: 'node', poi_type: layerKey, lat: poi.lat, lon: poi.lon,
|
||||
});
|
||||
UI.toast.success(r.submitted ? 'Eingetragen — danke! 🐾' : 'Erfasst — wird übertragen 🐾');
|
||||
b.innerHTML = '✓ Eingetragen';
|
||||
} catch (e) {
|
||||
UI.toast.error(e?.message || 'Konnte nicht eintragen.');
|
||||
b.disabled = false;
|
||||
}
|
||||
});
|
||||
}, 50);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<script src="/js/landing-init.js?v=1156"></script>
|
||||
<script src="/js/landing-init.js?v=1157"></script>
|
||||
<title>Ban Yaro — Die Hunde-App für Deutschland, Österreich & Schweiz</title>
|
||||
<meta name="description" content="Ban Yaro: Die kostenlose All-in-One Hunde-App für DACH. Tagebuch, Giftköder-Alarm, Training mit KI, Forum, Wurfbörse, Stammbaum, Inzucht-Check — DSGVO-konform, offline-fähig, ohne App Store.">
|
||||
<meta name="keywords" content="Hunde App, Hunde Community, Wurfbörse, Züchter, Welpen kaufen, Stammbaum Hund, Inzuchtkoeffizient, Hundezucht, Impfpass Hund, Giftköder Alarm, Gassi Community, Hundetraining App, Hunde Forum, Hunde KI, Hundefilm Datenbank, Welpen Marktplatz">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
============================================================ */
|
||||
|
||||
// ← EINZIGE Stelle für die Version — STATIC_ASSETS und CACHE_VERSION leiten sich ab
|
||||
const VER = '1156';
|
||||
const VER = '1157';
|
||||
const CACHE_VERSION = `by-v${VER}`;
|
||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue