Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
900505e082 | ||
|
|
b27dce0bc7 |
No files matched your search
+20
-2
@@ -6,9 +6,27 @@ Bei Einträgen mit Commit-Hash stammt der Zeitstempel aus der Git-Historie.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## [Unveröffentlicht] – 2026-10-22 22:09
|
## [Unveröffentlicht] – 2026-10-22 22:39
|
||||||
|
|
||||||
Testbranch `test/fixes-sicherheit-statistik`, noch nicht in `feature/studio-design-2005` oder `main` übernommen.
|
Testbranch `test/datenschutz-cookiebanner` (baut auf `test/fixes-sicherheit-statistik` auf), noch nicht übernommen.
|
||||||
|
|
||||||
|
### Datenschutz: API gibt Einsender-Namen nur gekürzt aus (22:39)
|
||||||
|
- Die öffentliche API (`/gd/api/v1/folgen/`) lieferte den vollständigen Namen der Einsender. Jetzt gibt sie wie die Webseite nur Vorname und Anfangsbuchstaben des Nachnamens aus („Jutta T.“). (`gd/serializers.py`)
|
||||||
|
- Neue Eigenschaft `Einsender.kurzname`, die Webseite und API gemeinsam nutzen. (`gd/models.py`, `gd/views.py`)
|
||||||
|
- Behoben: Ein Einsender-Name nur aus Leerzeichen führte auf der Folgenseite zu einem Fehler 500.
|
||||||
|
- 3 weitere Tests (insgesamt 37).
|
||||||
|
|
||||||
|
### Datenschutz: Cookie-Banner, Impressum, Datenschutzerklärung (22:35)
|
||||||
|
- **Cookie-Banner** in `gd` und `gd2` mit den Kategorien „Notwendig“ (immer aktiv) und „Externe Medien (YouTube)“. Die Buttons „Nur notwendige“ und „Alle akzeptieren“ sind gleich auffällig; über „Einstellungen“ lassen sich Kategorien einzeln wählen. Die Auswahl liegt 6 Monate im Cookie `gd_consent` und lässt sich über „Cookie-Einstellungen“ im Seitenfuß ändern oder widerrufen. (`assets/consent/`, `gd/templates/partials/consent_banner.html`)
|
||||||
|
- **YouTube mit Zwei-Klick-Lösung:** Statt des Players erscheint ein Platzhalter mit Hinweis und dem Button „Video laden“, optional mit „YouTube-Videos immer laden“. Die YouTube-API wird erst nach Einwilligung oder Klick geladen, der Player nutzt `youtube-nocookie.com`. (`gd/templates/gd/folge_detail.html`)
|
||||||
|
- **Keine externen Bibliotheken mehr:** Bootstrap 5.3.0, Bootstrap Icons 1.11.3, Chart.js 4.4.1 und die Schrift Montserrat liegen unter `assets/vendor/` und werden vom eigenen Server ausgeliefert, statt über jsDelivr und Google Fonts. Betrifft `gd`, `gd2` und `intern`.
|
||||||
|
- **Neue Seiten** `/gd/impressum/` und `/gd/datenschutz/` mit Links im Seitenfuß von `gd` und `gd2`. Name, Anschrift und E-Mail kommen aus der `.env` (`IMPRESSUM_NAME`, `IMPRESSUM_STRASSE`, `IMPRESSUM_ORT`, `IMPRESSUM_EMAIL`), solange sie leer sind, zeigt die Seite Platzhalter.
|
||||||
|
- **Löschfrist für Melde-IPs:** Der neue Befehl `manage.py ip_bereinigen [--tage 30]` löscht gespeicherte IP-Adressen 30 Tage nach der ersten Meldung (auch alte Einträge ohne Datum). Der Meldezähler bleibt erhalten. Ein Cronjob für root führt ihn täglich um 03:30 aus, Log: `/var/log/gd_ip_bereinigen.log`.
|
||||||
|
- 6 weitere Tests (insgesamt 34). Zusätzlich wurde der Ablauf von Banner und Zwei-Klick-Lösung in einem simulierten Browser (jsdom) mit 14 Szenarien geprüft.
|
||||||
|
|
||||||
|
## Testbranch `test/fixes-sicherheit-statistik` – 2026-10-22 22:09
|
||||||
|
|
||||||
|
Noch nicht in `feature/studio-design-2005` oder `main` übernommen.
|
||||||
|
|
||||||
### Intern-Dashboard: Video-Badge mit Jellyfin (22:09)
|
### Intern-Dashboard: Video-Badge mit Jellyfin (22:09)
|
||||||
- Das sechste Badge heißt jetzt „Videos“ und zeigt neben der Zahl der Folgen mit YouTube-Link auch die Zahl der Folgen mit Jellyfin-Item-ID, jeweils mit Icon (`bi-youtube` / `bi-server`). (`intern/views.py`, `intern/templates/intern/dashboard.html`)
|
- Das sechste Badge heißt jetzt „Videos“ und zeigt neben der Zahl der Folgen mit YouTube-Link auch die Zahl der Folgen mit Jellyfin-Item-ID, jeweils mit Icon (`bi-youtube` / `bi-server`). (`intern/views.py`, `intern/templates/intern/dashboard.html`)
|
||||||
|
|||||||
@@ -0,0 +1,94 @@
|
|||||||
|
/* Cookie-Banner: eigenständig, damit er in gd und gd2 gleich aussieht */
|
||||||
|
.gd-consent {
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
z-index: 2000;
|
||||||
|
padding: 16px;
|
||||||
|
background: rgba(0, 0, 0, 0.45);
|
||||||
|
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||||||
|
}
|
||||||
|
.gd-consent[hidden] { display: none; }
|
||||||
|
|
||||||
|
.gd-consent__box {
|
||||||
|
max-width: 720px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 20px 24px;
|
||||||
|
background: #fff;
|
||||||
|
color: #212529;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
|
||||||
|
font-size: 0.9rem;
|
||||||
|
line-height: 1.45;
|
||||||
|
}
|
||||||
|
.gd-consent__box h2 {
|
||||||
|
margin: 0 0 8px;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
.gd-consent__box p { margin: 0 0 12px; }
|
||||||
|
.gd-consent__box a { color: #0d6efd; }
|
||||||
|
|
||||||
|
.gd-consent__details { display: none; margin-bottom: 12px; }
|
||||||
|
.gd-consent--details .gd-consent__details { display: block; }
|
||||||
|
|
||||||
|
.gd-consent__option {
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
align-items: flex-start;
|
||||||
|
padding: 10px 12px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
border: 1px solid #dee2e6;
|
||||||
|
border-radius: 6px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.gd-consent__option input { margin-top: 4px; flex-shrink: 0; }
|
||||||
|
.gd-consent__option small { display: block; color: #6c757d; }
|
||||||
|
|
||||||
|
.gd-consent__buttons {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 8px;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
/* "Nur notwendige" und "Alle akzeptieren" bewusst gleich auffällig (keine Lenkung) */
|
||||||
|
.gd-consent__buttons button {
|
||||||
|
flex: 1 1 auto;
|
||||||
|
padding: 8px 14px;
|
||||||
|
border: 2px solid #2c3e50;
|
||||||
|
border-radius: 6px;
|
||||||
|
background: #2c3e50;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.gd-consent__buttons button.gd-consent__link {
|
||||||
|
background: transparent;
|
||||||
|
color: #2c3e50;
|
||||||
|
}
|
||||||
|
.gd-consent__buttons button:focus-visible { outline: 3px solid #f39c12; outline-offset: 2px; }
|
||||||
|
|
||||||
|
.gd-consent__save { display: none; }
|
||||||
|
.gd-consent--details .gd-consent__save { display: inline-block; }
|
||||||
|
.gd-consent--details .gd-consent__show-details { display: none; }
|
||||||
|
|
||||||
|
/* Platzhalter für YouTube vor der Einwilligung (Zwei-Klick-Lösung) */
|
||||||
|
.yt-placeholder {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 8px;
|
||||||
|
height: 100%;
|
||||||
|
padding: 12px;
|
||||||
|
background: #1c1c1c;
|
||||||
|
color: #e9ecef;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
line-height: 1.3;
|
||||||
|
}
|
||||||
|
.yt-placeholder .bi-youtube { font-size: 2rem; color: #ff0000; }
|
||||||
|
.yt-placeholder a { color: #9ec5fe; }
|
||||||
|
.yt-placeholder label { cursor: pointer; }
|
||||||
@@ -0,0 +1,93 @@
|
|||||||
|
/*
|
||||||
|
* Cookie-Einwilligung für das Genial-Daneben-Archiv.
|
||||||
|
*
|
||||||
|
* Kategorien:
|
||||||
|
* notwendig immer aktiv (Sitzung, CSRF, diese Auswahl, Meldeschutz, Lautstärke)
|
||||||
|
* youtube externe Medien, nur mit Einwilligung
|
||||||
|
*
|
||||||
|
* Die Auswahl liegt im Cookie "gd_consent" (6 Monate). Seiten fragen sie über
|
||||||
|
* window.gdConsent.has('youtube') ab und hören auf das Ereignis "gd:consent".
|
||||||
|
* Links mit dem Attribut data-consent-open öffnen die Einstellungen erneut.
|
||||||
|
*/
|
||||||
|
(function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var COOKIE_NAME = 'gd_consent';
|
||||||
|
// Bei neuen Kategorien erhöhen, dann wird die Einwilligung neu abgefragt
|
||||||
|
var VERSION = 1;
|
||||||
|
var MAX_AGE = 60 * 60 * 24 * 180;
|
||||||
|
|
||||||
|
var banner = null;
|
||||||
|
|
||||||
|
function read() {
|
||||||
|
var match = document.cookie.match(/(?:^|;\s*)gd_consent=([^;]*)/);
|
||||||
|
if (!match) return null;
|
||||||
|
try {
|
||||||
|
var data = JSON.parse(decodeURIComponent(match[1]));
|
||||||
|
return data && data.v === VERSION ? data : null;
|
||||||
|
} catch (e) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function write(choices) {
|
||||||
|
var data = { v: VERSION, youtube: !!choices.youtube, ts: new Date().toISOString() };
|
||||||
|
document.cookie = COOKIE_NAME + '=' + encodeURIComponent(JSON.stringify(data)) +
|
||||||
|
'; Max-Age=' + MAX_AGE + '; Path=/; SameSite=Lax' +
|
||||||
|
(location.protocol === 'https:' ? '; Secure' : '');
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
|
function has(category) {
|
||||||
|
var data = read();
|
||||||
|
return !!(data && data[category]);
|
||||||
|
}
|
||||||
|
|
||||||
|
function open(withDetails) {
|
||||||
|
if (!banner) return;
|
||||||
|
document.getElementById('gd-consent-youtube').checked = has('youtube');
|
||||||
|
banner.classList.toggle('gd-consent--details', !!withDetails);
|
||||||
|
banner.hidden = false;
|
||||||
|
banner.querySelector('button').focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
function save(choices) {
|
||||||
|
var hadYoutube = has('youtube');
|
||||||
|
var data = write(choices);
|
||||||
|
if (banner) banner.hidden = true;
|
||||||
|
|
||||||
|
// Widerruf: ein bereits geladener Player lässt sich nur durch Neuladen entfernen
|
||||||
|
if (hadYoutube && !data.youtube) {
|
||||||
|
location.reload();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
document.dispatchEvent(new CustomEvent('gd:consent', { detail: data }));
|
||||||
|
}
|
||||||
|
|
||||||
|
window.gdConsent = { has: has, save: save, open: open };
|
||||||
|
|
||||||
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
|
banner = document.getElementById('gd-consent');
|
||||||
|
if (!banner) return;
|
||||||
|
|
||||||
|
banner.addEventListener('click', function (event) {
|
||||||
|
var button = event.target.closest('[data-consent]');
|
||||||
|
if (!button) return;
|
||||||
|
var action = button.getAttribute('data-consent');
|
||||||
|
|
||||||
|
if (action === 'all') save({ youtube: true });
|
||||||
|
else if (action === 'necessary') save({ youtube: false });
|
||||||
|
else if (action === 'save') save({ youtube: document.getElementById('gd-consent-youtube').checked });
|
||||||
|
else if (action === 'details') banner.classList.add('gd-consent--details');
|
||||||
|
});
|
||||||
|
|
||||||
|
document.querySelectorAll('[data-consent-open]').forEach(function (link) {
|
||||||
|
link.addEventListener('click', function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
open(true);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!read()) open(false);
|
||||||
|
});
|
||||||
|
})();
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
/*!
|
||||||
|
* Bootstrap Icons v1.11.3 (https://icons.getbootstrap.com/)
|
||||||
|
* Copyright 2019-2024 The Bootstrap Authors
|
||||||
|
* Licensed under MIT (https://github.com/twbs/icons/blob/main/LICENSE)
|
||||||
|
*/@font-face{font-display:block;font-family:bootstrap-icons;src:url("fonts/bootstrap-icons.woff2?dd67030699838ea613ee6dbda90effa6") format("woff2"),url("fonts/bootstrap-icons.woff?dd67030699838ea613ee6dbda90effa6") format("woff")}.bi::before,[class*=" bi-"]::before,[class^=bi-]::before{display:inline-block;font-family:bootstrap-icons!important;font-style:normal;font-weight:400!important;font-variant:normal;text-transform:none;line-height:1;vertical-align:-.125em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bi-123::before{content:"\f67f"}.bi-alarm-fill::before{content:"\f101"}.bi-alarm::before{content:"\f102"}.bi-align-bottom::before{content:"\f103"}.bi-align-center::before{content:"\f104"}.bi-align-end::before{content:"\f105"}.bi-align-middle::before{content:"\f106"}.bi-align-start::before{content:"\f107"}.bi-align-top::before{content:"\f108"}.bi-alt::before{content:"\f109"}.bi-app-indicator::before{content:"\f10a"}.bi-app::before{content:"\f10b"}.bi-archive-fill::before{content:"\f10c"}.bi-archive::before{content:"\f10d"}.bi-arrow-90deg-down::before{content:"\f10e"}.bi-arrow-90deg-left::before{content:"\f10f"}.bi-arrow-90deg-right::before{content:"\f110"}.bi-arrow-90deg-up::before{content:"\f111"}.bi-arrow-bar-down::before{content:"\f112"}.bi-arrow-bar-left::before{content:"\f113"}.bi-arrow-bar-right::before{content:"\f114"}.bi-arrow-bar-up::before{content:"\f115"}.bi-arrow-clockwise::before{content:"\f116"}.bi-arrow-counterclockwise::before{content:"\f117"}.bi-arrow-down-circle-fill::before{content:"\f118"}.bi-arrow-down-circle::before{content:"\f119"}.bi-arrow-down-left-circle-fill::before{content:"\f11a"}.bi-arrow-down-left-circle::before{content:"\f11b"}.bi-arrow-down-left-square-fill::before{content:"\f11c"}.bi-arrow-down-left-square::before{content:"\f11d"}.bi-arrow-down-left::before{content:"\f11e"}.bi-arrow-down-right-circle-fill::before{content:"\f11f"}.bi-arrow-down-right-circle::before{content:"\f120"}.bi-arrow-down-right-square-fill::before{content:"\f121"}.bi-arrow-down-right-square::before{content:"\f122"}.bi-arrow-down-right::before{content:"\f123"}.bi-arrow-down-short::before{content:"\f124"}.bi-arrow-down-square-fill::before{content:"\f125"}.bi-arrow-down-square::before{content:"\f126"}.bi-arrow-down-up::before{content:"\f127"}.bi-arrow-down::before{content:"\f128"}.bi-arrow-left-circle-fill::before{content:"\f129"}.bi-arrow-left-circle::before{content:"\f12a"}.bi-arrow-left-right::before{content:"\f12b"}.bi-arrow-left-short::before{content:"\f12c"}.bi-arrow-left-square-fill::before{content:"\f12d"}.bi-arrow-left-square::before{content:"\f12e"}.bi-arrow-left::before{content:"\f12f"}.bi-arrow-repeat::before{content:"\f130"}.bi-arrow-return-left::before{content:"\f131"}.bi-arrow-return-right::before{content:"\f132"}.bi-arrow-right-circle-fill::before{content:"\f133"}.bi-arrow-right-circle::before{content:"\f134"}.bi-arrow-right-short::before{content:"\f135"}.bi-arrow-right-square-fill::before{content:"\f136"}.bi-arrow-right-square::before{content:"\f137"}.bi-arrow-right::before{content:"\f138"}.bi-arrow-up-circle-fill::before{content:"\f139"}.bi-arrow-up-circle::before{content:"\f13a"}.bi-arrow-up-left-circle-fill::before{content:"\f13b"}.bi-arrow-up-left-circle::before{content:"\f13c"}.bi-arrow-up-left-square-fill::before{content:"\f13d"}.bi-arrow-up-left-square::before{content:"\f13e"}.bi-arrow-up-left::before{content:"\f13f"}.bi-arrow-up-right-circle-fill::before{content:"\f140"}.bi-arrow-up-right-circle::before{content:"\f141"}.bi-arrow-up-right-square-fill::before{content:"\f142"}.bi-arrow-up-right-square::before{content:"\f143"}.bi-arrow-up-right::before{content:"\f144"}.bi-arrow-up-short::before{content:"\f145"}.bi-arrow-up-square-fill::before{content:"\f146"}.bi-arrow-up-square::before{content:"\f147"}.bi-arrow-up::before{content:"\f148"}.bi-arrows-angle-contract::before{content:"\f149"}.bi-arrows-angle-expand::before{content:"\f14a"}.bi-arrows-collapse::before{content:"\f14b"}.bi-arrows-expand::before{content:"\f14c"}.bi-arrows-fullscreen::before{content:"\f14d"}.bi-arrows-move::before{content:"\f14e"}.bi-aspect-ratio-fill::before{content:"\f14f"}.bi-aspect-ratio::before{content:"\f150"}.bi-asterisk::before{content:"\f151"}.bi-at::before{content:"\f152"}.bi-award-fill::before{content:"\f153"}.bi-award::before{content:"\f154"}.bi-back::before{content:"\f155"}.bi-backspace-fill::before{content:"\f156"}.bi-backspace-reverse-fill::before{content:"\f157"}.bi-backspace-reverse::before{content:"\f158"}.bi-backspace::before{content:"\f159"}.bi-badge-3d-fill::before{content:"\f15a"}.bi-badge-3d::before{content:"\f15b"}.bi-badge-4k-fill::before{content:"\f15c"}.bi-badge-4k::before{content:"\f15d"}.bi-badge-8k-fill::before{content:"\f15e"}.bi-badge-8k::before{content:"\f15f"}.bi-badge-ad-fill::before{content:"\f160"}.bi-badge-ad::before{content:"\f161"}.bi-badge-ar-fill::before{content:"\f162"}.bi-badge-ar::before{content:"\f163"}.bi-badge-cc-fill::before{content:"\fLine truncated
|
||||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,7 @@
|
|||||||
|
/*!
|
||||||
|
* Bootstrap v5.3.0 (https://getbootstrap.com/)
|
||||||
|
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
*/
|
||||||
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";const t=new Map,e={set(e,i,n){t.has(e)||t.set(e,new Map);const s=t.get(e);s.has(i)||0===s.size?s.set(i,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(e,i)=>t.has(e)&&t.get(e).get(i)||null,remove(e,i){if(!t.has(e))return;const n=t.get(e);n.delete(i),0===n.size&&t.delete(e)}},i="transitionend",n=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),s=t=>{t.dispatchEvent(new Event(i))},o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),r=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(n(t)):null,a=t=>{if(!o(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},l=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),c=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?c(t.parentNode):null},h=()=>{},d=t=>{t.offsetHeight},u=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,f=[],p=()=>"rtl"===document.documentElement.dir,m=t=>{var e;e=()=>{const e=u();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(f.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of f)t()})),f.push(e)):e()},g=(t,e=[],i=t)=>"function"==typeof t?t(...e):i,_=(t,e,n=!0)=>{if(!n)return void g(t);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let r=!1;const a=({target:n})=>{n===e&&(r=!0,e.removeEventListener(i,a),g(t))};e.addEventListener(i,a),setTimeout((()=>{r||s(e)}),o)},b=(t,e,i,n)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!i&&n?t[s-1]:t[0]:(o+=i?1:-1,n&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},v=/[^.]*(?=\..*)\.|.*/,y=/\..*/,w=/::\d+$/,A={};let E=1;const T={mouseenter:"mouseover",mouseleave:"mouseout"},C=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function O(t,e){return e&&`${e}::${E++}`||t.uidEvent||E++}function x(t){const e=O(t);return t.uidEvent=e,A[e]=A[e]||{},A[e]}function k(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function L(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=N(t);return C.has(o)||(o=t),[n,s,o]}function S(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=L(e,i,n);if(e in T){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=x(t),c=l[a]||(l[a]={}),h=k(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=O(r,e.replace(v,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return M(s,{delegateTarget:r}),n.oneOff&&P.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return M(n,{delegateTarget:t}),i.oneOff&&P.off(t,n.type,e),e.apply(t,[n])}}(t,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=s,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function D(t,e,i,n,s){const o=k(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function I(t,e,i,n){const s=e[i]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&D(t,e,i,r.callable,r.delegationSelector)}function N(t){return t=t.replace(y,""),T[t]||t}const P={on(t,e,i,n){S(t,e,i,n,!1)},one(t,e,i,n){S(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=L(e,i,n),a=r!==e,l=x(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))I(t,l,i,e.slLine truncated
|
||||||
|
//# sourceMappingURL=bootstrap.bundle.min.js.map
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
@charset "UTF-8";/*!
|
||||||
|
* Bootstrap v5.3.0 (https://getbootstrap.com/)
|
||||||
|
* Copyright 2011-2023 The Bootstrap Authors
|
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
*/:root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#adb5bd;--bs-body-color-rgb:173,181,189;--bs-body-bg:#212529;--bs-body-bg-rgb:33,37,41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255,255,255;--bs-secondary-color:rgba(173, 181, 189, 0.75);--bs-secondary-color-rgb:173,181,189;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52,58,64;--bs-tertiary-color:rgba(173, 181, 189, 0.5);--bs-tertiary-color-rgb:173,181,189;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43,48,53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherit;--bs-link-color:#6ea8fe;--Line truncated
|
||||||
|
/*# sourceMappingURL=bootstrap.min.css.map */
|
||||||
+14
@@ -0,0 +1,14 @@
|
|||||||
|
/*!
|
||||||
|
* Chart.js v4.4.1
|
||||||
|
* https://www.chartjs.org
|
||||||
|
* (c) 2023 Chart.js Contributors
|
||||||
|
* Released under the MIT License
|
||||||
|
*/
|
||||||
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Chart=e()}(this,(function(){"use strict";var t=Object.freeze({__proto__:null,get Colors(){return Go},get Decimation(){return Qo},get Filler(){return ma},get Legend(){return ya},get SubTitle(){return ka},get Title(){return Ma},get Tooltip(){return Ba}});function e(){}const i=(()=>{let t=0;return()=>t++})();function s(t){return null==t}function n(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function o(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function r(t,e){return a(t)?t:e}function l(t,e){return void 0===t?e:t}const h=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e,c=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function d(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function u(t,e,i,s){let a,r,l;if(n(t))if(r=t.length,s)for(a=r-1;a>=0;a--)e.call(i,t[a],a);else for(a=0;a<r;a++)e.call(i,t[a],a);else if(o(t))for(l=Object.keys(t),r=l.length,a=0;a<r;a++)e.call(i,t[l[a]],l[a])}function f(t,e){let i,s,n,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,s=t.length;i<s;++i)if(n=t[i],o=e[i],n.datasetIndex!==o.datasetIndex||n.index!==o.index)return!1;return!0}function g(t){if(n(t))return t.map(g);if(o(t)){const e=Object.create(null),i=Object.keys(t),s=i.length;let n=0;for(;n<s;++n)e[i[n]]=g(t[i[n]]);return e}return t}function p(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function m(t,e,i,s){if(!p(t))return;const n=e[t],a=i[t];o(n)&&o(a)?b(n,a,s):e[t]=g(a)}function b(t,e,i){const s=n(e)?e:[e],a=s.length;if(!o(t))return t;const r=(i=i||{}).merger||m;let l;for(let e=0;e<a;++e){if(l=s[e],!o(l))continue;const n=Object.keys(l);for(let e=0,s=n.length;e<s;++e)r(n[e],t,l,i)}return t}function x(t,e){return b(t,e,{merger:_})}function _(t,e,i){if(!p(t))return;const s=e[t],n=i[t];o(s)&&o(n)?x(s,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=g(n))}const y={"":t=>t,x:t=>t.x,y:t=>t.y};function v(t){const e=t.split("."),i=[];let s="";for(const t of e)s+=t,s.endsWith("\\")?s=s.slice(0,-1)+".":(i.push(s),s="");return i}function M(t,e){const i=y[e]||(y[e]=function(t){const e=v(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function w(t){return t.charAt(0).toUpperCase()+t.slice(1)}const k=t=>void 0!==t,S=t=>"function"==typeof t,P=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};function D(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const C=Math.PI,O=2*C,A=O+C,T=Number.POSITIVE_INFINITY,L=C/180,E=C/2,R=C/4,I=2*C/3,z=Math.log10,F=Math.sign;function V(t,e,i){return Math.abs(t-e)<i}function B(t){const e=Math.round(t);t=V(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(z(t))),s=t/i;return(s<=1?1:s<=2?2:s<=5?5:10)*i}function W(t){const e=[],i=Math.sqrt(t);let s;for(s=1;s<i;s++)t%s==0&&(e.push(s),e.push(t/s));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}function N(t){return!isNaN(parseFloat(t))&&isFinite(t)}function H(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}function j(t,e,i){let s,n,o;for(s=0,n=t.length;s<n;s++)o=t[s][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function $(t){return t*(C/180)}function Y(t){return t*(180/C)}function U(t){if(!a(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function X(t,e){const i=e.x-t.x,s=e.y-t.y,n=Math.sqrt(i*i+s*s);let o=Math.atan2(s,i);return o<-.5*C&&(o+=O),{angle:o,distance:n}}function q(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function K(t,e){return(t-e+A)%O-C}function G(t){return(t%O+O)%O}function Z(t,e,i,s){const n=G(t),o=G(e),a=G(i),r=G(o-n),l=G(a-n),h=G(n-o),c=G(n-a);return n===o||n===a||s&&o===a||r>l&&h<c}function J(t,e,i){return Math.max(e,Math.min(i,t))}function Q(t){return J(t,-32768,32767)}function tt(t,e,i,s=1e-6){return t>=Math.min(e,i)-s&&t<=Math.max(e,i)+s}function et(t,e,i){i=i||(i=>t[i]<e);let s,n=t.length-1,o=0;for(;n-o>1;)s=o+n>>1,i(s)?o=s:n=s;return{lo:o,hi:n}}const it=(t,e,i,s)=>et(t,i,s?s=>{const n=t[s][e];return n<i||n===i&&t[s+1][e]===i}:s=>t[s][e]<i),st=(t,e,i)=>et(t,i,(s=>t[s][e]>=i));function nt(t,e,i){let s=0,n=t.length;for(;s<n&&t[s]<e;)s++;for(;n>s&&t[n-1]>i;)n--;return s>0||n<t.length?t.slice(s,n):t}const ot=["push","pop","shift","splice","unshift"];function at(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),ot.forEach((e=>{const i="_onData"+w(e),s=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const n=s.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"==typeof t[i]&&t[i](...e)})),n}})})))}function rt(t,e){Line truncated
|
||||||
|
/*!
|
||||||
|
* @kurkle/color v0.3.2
|
||||||
|
* https://github.com/kurkle/color#readme
|
||||||
|
* (c) 2023 Jukka Kurkela
|
||||||
|
* Released under the MIT License
|
||||||
|
*/function _t(t){return t+.5|0}const yt=(t,e,i)=>Math.max(Math.min(t,i),e);function vt(t){return yt(_t(2.55*t),0,255)}function Mt(t){return yt(_t(255*t),0,255)}function wt(t){return yt(_t(t/2.55)/100,0,1)}function kt(t){return yt(_t(100*t),0,100)}const St={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Pt=[..."0123456789ABCDEF"],Dt=t=>Pt[15&t],Ct=t=>Pt[(240&t)>>4]+Pt[15&t],Ot=t=>(240&t)>>4==(15&t);function At(t){var e=(t=>Ot(t.r)&&Ot(t.g)&&Ot(t.b)&&Ot(t.a))(t)?Dt:Ct;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Tt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Lt(t,e,i){const s=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-s*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function Et(t,e,i){const s=(s,n=(s+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[s(5),s(3),s(1)]}function Rt(t,e,i){const s=Lt(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)s[n]*=1-e-i,s[n]+=e;return s}function It(t){const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),o=Math.min(e,i,s),a=(n+o)/2;let r,l,h;return n!==o&&(h=n-o,l=a>.5?h/(2-n-o):h/(n+o),r=function(t,e,i,s,n){return t===n?(e-i)/s+(e<i?6:0):e===n?(i-t)/s+2:(t-e)/s+4}(e,i,s,h,n),r=60*r+.5),[0|r,l||0,a]}function zt(t,e,i,s){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,s)).map(Mt)}function Ft(t,e,i){return zt(Lt,t,e,i)}function Vt(t){return(t%360+360)%360}function Bt(t){const e=Tt.exec(t);let i,s=255;if(!e)return;e[5]!==i&&(s=e[6]?vt(+e[5]):Mt(+e[5]));const n=Vt(+e[2]),o=+e[3]/100,a=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return zt(Rt,t,e,i)}(n,o,a):"hsv"===e[1]?function(t,e,i){return zt(Et,t,e,i)}(n,o,a):Ft(n,o,a),{r:i[0],g:i[1],b:i[2],a:s}}const Wt={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Nt={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Ht;function jt(t){Ht||(Ht=function(){const t={},e=Object.keys(Nt),i=Object.keys(Wt);let s,n,o,a,r;for(s=0;s<e.length;s++){for(a=r=e[s],n=0;n<i.length;n++)o=i[n],r=r.replace(o,Wt[o]);o=parseInt(Nt[a],16),t[r]=[o>>16&255,o>>8&255,255&o]}return t}(),Ht.transparent=[0,0,0,0]);const e=Ht[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const $t=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Yt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Ut=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Xt(t,e,i){if(t){let s=It(t);s[e]=Math.max(0,Math.min(s[e]+s[e]*i,0===e?360:1)),Line truncated
|
||||||
|
//# sourceMappingURL=chart.umd.js.map
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
+22
@@ -0,0 +1,22 @@
|
|||||||
|
/* Montserrat (SIL Open Font License), lokal eingebunden statt über Google Fonts */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Montserrat';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-display: swap;
|
||||||
|
src: url('montserrat-latin-400-normal.woff2') format('woff2');
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Montserrat';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
font-display: swap;
|
||||||
|
src: url('montserrat-latin-700-normal.woff2') format('woff2');
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Montserrat';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 900;
|
||||||
|
font-display: swap;
|
||||||
|
src: url('montserrat-latin-900-normal.woff2') format('woff2');
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
from datetime import timedelta
|
||||||
|
|
||||||
|
from django.core.management.base import BaseCommand
|
||||||
|
from django.db.models import Q
|
||||||
|
from django.utils import timezone
|
||||||
|
|
||||||
|
from gd.models import FolgenZusatzInfo
|
||||||
|
|
||||||
|
|
||||||
|
class Command(BaseCommand):
|
||||||
|
help = (
|
||||||
|
"Löscht die gespeicherten IP-Adressen von Video-Meldungen, deren erste Meldung "
|
||||||
|
"älter als --tage Tage ist. Der Meldezähler bleibt erhalten. Täglich per Cron ausführen."
|
||||||
|
)
|
||||||
|
|
||||||
|
def add_arguments(self, parser):
|
||||||
|
parser.add_argument('--tage', type=int, default=30, help='Aufbewahrungsdauer in Tagen (Standard: 30)')
|
||||||
|
|
||||||
|
def handle(self, *args, **options):
|
||||||
|
grenze = timezone.now() - timedelta(days=options['tage'])
|
||||||
|
anzahl = (
|
||||||
|
FolgenZusatzInfo.objects
|
||||||
|
# Einträge ohne Meldedatum stammen aus der Zeit vor dem Feld und gelten als alt
|
||||||
|
.filter(Q(gemeldet_am__lt=grenze) | Q(gemeldet_am__isnull=True))
|
||||||
|
.exclude(reporter_ips='')
|
||||||
|
.update(reporter_ips='')
|
||||||
|
)
|
||||||
|
self.stdout.write(f"IP-Adressen bei {anzahl} Meldung(en) gelöscht (älter als {options['tage']} Tage).")
|
||||||
@@ -134,6 +134,16 @@ class Einsender(models.Model):
|
|||||||
return f"{self.name} ({self.stadt})"
|
return f"{self.name} ({self.stadt})"
|
||||||
return f"Anonym ({self.stadt})"
|
return f"Anonym ({self.stadt})"
|
||||||
|
|
||||||
|
@property
|
||||||
|
def kurzname(self):
|
||||||
|
"""Gekürzter Name für die öffentliche Anzeige (Datenschutz): "Jutta Thomas" -> "Jutta T."."""
|
||||||
|
parts = (self.name or '').split()
|
||||||
|
if not parts:
|
||||||
|
return None
|
||||||
|
if len(parts) > 1:
|
||||||
|
return f"{parts[0]} {parts[-1][0]}."
|
||||||
|
return parts[0]
|
||||||
|
|
||||||
|
|
||||||
# =========================
|
# =========================
|
||||||
# Kategorie für Fragen
|
# Kategorie für Fragen
|
||||||
|
|||||||
+4
-1
@@ -81,7 +81,10 @@ class FrageAntwortSerializer(serializers.ModelSerializer):
|
|||||||
fields = ['antwort_text', 'loeser_durch']
|
fields = ['antwort_text', 'loeser_durch']
|
||||||
|
|
||||||
class EinsenderSerializer(serializers.ModelSerializer):
|
class EinsenderSerializer(serializers.ModelSerializer):
|
||||||
"""Informationen zum Einsender (falls vorhanden)"""
|
"""Informationen zum Einsender (falls vorhanden).
|
||||||
|
Der Name wird wie auf der Webseite gekürzt ausgegeben (Datenschutz)."""
|
||||||
|
name = serializers.CharField(source='kurzname', read_only=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Einsender
|
model = Einsender
|
||||||
fields = ['name', 'stadt', 'bundesland', 'land']
|
fields = ['name', 'stadt', 'bundesland', 'land']
|
||||||
|
|||||||
+11
-3
@@ -1,3 +1,4 @@
|
|||||||
|
{% load static %}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
@@ -5,8 +6,9 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="referrer" content="no-referrer-when-downgrade">
|
<meta name="referrer" content="no-referrer-when-downgrade">
|
||||||
<title>Genial Daneben DB</title>
|
<title>Genial Daneben DB</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="{% static 'vendor/bootstrap/bootstrap.min.css' %}" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css">
|
<link rel="stylesheet" href="{% static 'vendor/bootstrap-icons/bootstrap-icons.min.css' %}">
|
||||||
|
<link rel="stylesheet" href="{% static 'consent/consent.css' %}">
|
||||||
<style>
|
<style>
|
||||||
body { background-color: #f4f7f6; }
|
body { background-color: #f4f7f6; }
|
||||||
.navbar { background-color: #2c3e50; }
|
.navbar { background-color: #2c3e50; }
|
||||||
@@ -81,7 +83,11 @@
|
|||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
<footer class="container text-center text-muted small py-4 mt-4 border-top">
|
||||||
|
{% include 'partials/rechtliches_links.html' %}
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<script src="{% static 'vendor/bootstrap/bootstrap.bundle.min.js' %}"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
@@ -92,5 +98,7 @@
|
|||||||
});
|
});
|
||||||
}, 5000);
|
}, 5000);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
{% include 'partials/consent_banner.html' %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -0,0 +1,122 @@
|
|||||||
|
{% extends 'base.html' %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-lg-9">
|
||||||
|
<div class="card shadow-sm mb-4">
|
||||||
|
<div class="card-body p-4">
|
||||||
|
<h1 class="h2 mb-4">Datenschutzerklärung</h1>
|
||||||
|
|
||||||
|
<h2 class="h5">1. Verantwortlicher</h2>
|
||||||
|
{% include 'partials/verantwortlicher.html' %}
|
||||||
|
|
||||||
|
<h2 class="h5 mt-4">2. Bereitstellung der Webseite und Server-Logdateien</h2>
|
||||||
|
<p>
|
||||||
|
Die Webseite wird auf einem eigenen Server des Betreibers in Deutschland betrieben.
|
||||||
|
Für die öffentliche Erreichbarkeit werden Anfragen über einen Server der
|
||||||
|
Hetzner Online GmbH, Industriestr. 25, 91710 Gunzenhausen, weitergeleitet.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Beim Aufruf der Seite verarbeiten die beteiligten Webserver automatisch Daten, die dein
|
||||||
|
Browser übermittelt: IP-Adresse, Datum und Uhrzeit, aufgerufene Seite, Browsertyp und
|
||||||
|
Betriebssystem sowie die zuvor besuchte Seite (Referrer). Diese Daten sind für die
|
||||||
|
Auslieferung und den sicheren Betrieb der Seite erforderlich
|
||||||
|
(Art. 6 Abs. 1 lit. f DSGVO). Server-Logdateien werden nach
|
||||||
|
[Anzahl] Tagen gelöscht.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2 class="h5 mt-4">3. Cookies und lokale Speicherung</h2>
|
||||||
|
<p>
|
||||||
|
Diese Seite speichert nur Informationen in deinem Browser, die für die von dir genutzten
|
||||||
|
Funktionen technisch notwendig sind (§ 25 Abs. 2 Nr. 2 TDDDG,
|
||||||
|
Art. 6 Abs. 1 lit. f DSGVO):
|
||||||
|
</p>
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-sm small">
|
||||||
|
<thead>
|
||||||
|
<tr><th>Name</th><th>Zweck</th><th>Speicherdauer</th></tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr><td><code>csrftoken</code></td><td>Schutz von Formularen vor Missbrauch (CSRF)</td><td>1 Jahr</td></tr>
|
||||||
|
<tr><td><code>sessionid</code></td><td>Anmeldung im Verwaltungsbereich (nur für Administratoren)</td><td>2 Wochen</td></tr>
|
||||||
|
<tr><td><code>messages</code></td><td>Anzeige einer Rückmeldung, z. B. nach einer Video-Meldung</td><td>bis zur Anzeige</td></tr>
|
||||||
|
<tr><td><code>gd_consent</code></td><td>Speicherung deiner Auswahl im Cookie-Banner</td><td>6 Monate</td></tr>
|
||||||
|
<tr><td><code>reported_video_<Nr.></code></td><td>Verhindert Mehrfachmeldungen eines defekten Videos</td><td>30 Tage</td></tr>
|
||||||
|
<tr><td><code>globalVideoVolume</code> (Local Storage)</td><td>Merkt sich die eingestellte Lautstärke des Video-Players</td><td>bis du sie im Browser löschst</td></tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
|
Deine Auswahl im Cookie-Banner kannst du jederzeit über
|
||||||
|
<a href="#" data-consent-open>Cookie-Einstellungen</a> ändern oder widerrufen.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2 class="h5 mt-4" id="youtube">4. YouTube-Videos</h2>
|
||||||
|
<p>
|
||||||
|
Auf den Folgenseiten können Videos von YouTube eingebunden sein. Anbieter ist die
|
||||||
|
Google Ireland Limited, Gordon House, Barrow Street, Dublin 4, Irland.
|
||||||
|
Die Videos werden erst geladen, wenn du im Cookie-Banner „Externe Medien (YouTube)“
|
||||||
|
erlaubst oder beim jeweiligen Video auf „Video laden“ klickst. Vorher wird keine
|
||||||
|
Verbindung zu YouTube aufgebaut.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Sobald ein Video geladen wird, werden u. a. deine IP-Adresse und die aufgerufene Seite
|
||||||
|
an YouTube übertragen, und YouTube kann Informationen in deinem Browser speichern.
|
||||||
|
Wir nutzen den erweiterten Datenschutzmodus (youtube-nocookie.com). Eine Übermittlung
|
||||||
|
von Daten in die USA ist möglich; Google ist unter dem EU-US Data Privacy Framework
|
||||||
|
zertifiziert.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Rechtsgrundlage ist deine Einwilligung (Art. 6 Abs. 1 lit. a DSGVO,
|
||||||
|
§ 25 Abs. 1 TDDDG), die du jederzeit über die
|
||||||
|
<a href="#" data-consent-open>Cookie-Einstellungen</a> mit Wirkung für die Zukunft
|
||||||
|
widerrufen kannst. Weitere Informationen:
|
||||||
|
<a href="https://policies.google.com/privacy" target="_blank" rel="noopener noreferrer">Datenschutzerklärung von Google</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2 class="h5 mt-4">5. Meldung defekter Videos</h2>
|
||||||
|
<p>
|
||||||
|
Wenn du ein Video als defekt meldest, speichern wir deine IP-Adresse zusammen mit der
|
||||||
|
Meldung, damit dasselbe Video nicht mehrfach von derselben Person gemeldet wird
|
||||||
|
(Art. 6 Abs. 1 lit. f DSGVO, berechtigtes Interesse am Schutz vor Missbrauch).
|
||||||
|
Die IP-Adressen werden spätestens 30 Tage nach der ersten Meldung automatisch gelöscht;
|
||||||
|
erhalten bleibt nur die Anzahl der Meldungen.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2 class="h5 mt-4">6. Bilder und Inhalte von Wikipedia</h2>
|
||||||
|
<p>
|
||||||
|
Profilbilder von Personen werden von unserem Server bei Wikipedia abgerufen und lokal
|
||||||
|
gespeichert. Beim Besuch der Seite wird daher keine Verbindung zwischen deinem Browser
|
||||||
|
und Wikipedia hergestellt. Erst wenn du einen Link zu Wikipedia anklickst, gelten die
|
||||||
|
Datenschutzbestimmungen der Wikimedia Foundation.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2 class="h5 mt-4">7. Schriftarten und Programmbibliotheken</h2>
|
||||||
|
<p>
|
||||||
|
Alle Schriftarten, Icons und Programmbibliotheken (z. B. Bootstrap) werden von
|
||||||
|
unserem eigenen Server ausgeliefert. Es werden dafür keine Daten an Dritte
|
||||||
|
(etwa Google Fonts oder Content-Delivery-Netzwerke) übertragen.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2 class="h5 mt-4">8. Deine Rechte</h2>
|
||||||
|
<p>Du hast gegenüber dem Verantwortlichen folgende Rechte bezüglich deiner personenbezogenen Daten:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Auskunft (Art. 15 DSGVO)</li>
|
||||||
|
<li>Berichtigung (Art. 16 DSGVO)</li>
|
||||||
|
<li>Löschung (Art. 17 DSGVO)</li>
|
||||||
|
<li>Einschränkung der Verarbeitung (Art. 18 DSGVO)</li>
|
||||||
|
<li>Datenübertragbarkeit (Art. 20 DSGVO)</li>
|
||||||
|
<li>Widerspruch gegen die Verarbeitung (Art. 21 DSGVO)</li>
|
||||||
|
<li>Widerruf einer erteilten Einwilligung mit Wirkung für die Zukunft (Art. 7 Abs. 3 DSGVO)</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
Außerdem kannst du dich bei einer Datenschutz-Aufsichtsbehörde beschweren
|
||||||
|
(Art. 77 DSGVO), zum Beispiel bei der für deinen Wohnort zuständigen Behörde.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p class="text-muted small mt-4 mb-0">Stand: Oktober 2026</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
@@ -91,7 +91,20 @@
|
|||||||
<div class="card-header bg-danger text-white p-2 small fw-bold text-center">Video (YouTube)</div>
|
<div class="card-header bg-danger text-white p-2 small fw-bold text-center">Video (YouTube)</div>
|
||||||
<div class="card-body p-0">
|
<div class="card-body p-0">
|
||||||
<div class="ratio ratio-16x9">
|
<div class="ratio ratio-16x9">
|
||||||
<div id="player"></div>
|
{# Platzhalter wird von YT.Player durch das iframe ersetzt (erst nach Einwilligung) #}
|
||||||
|
<div id="player">
|
||||||
|
<div class="yt-placeholder">
|
||||||
|
<i class="bi bi-youtube"></i>
|
||||||
|
<div>
|
||||||
|
Beim Abspielen werden Daten (u. a. deine IP-Adresse) an YouTube (Google) übertragen.
|
||||||
|
<a href="{% url 'gd:datenschutz' %}#youtube">Mehr erfahren</a>
|
||||||
|
</div>
|
||||||
|
<button type="button" id="yt-load" class="btn btn-danger btn-sm">
|
||||||
|
<i class="bi bi-play-fill"></i> Video laden
|
||||||
|
</button>
|
||||||
|
<label><input type="checkbox" id="yt-always" class="form-check-input me-1">YouTube-Videos immer laden</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -122,15 +135,38 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// 1. Laden der IFrame Player API
|
// 1. IFrame Player API erst nach Einwilligung laden (Zwei-Klick-Lösung, siehe consent.js)
|
||||||
|
var ytApiGeladen = false;
|
||||||
|
function ladeYouTube() {
|
||||||
|
if (ytApiGeladen) return;
|
||||||
|
ytApiGeladen = true;
|
||||||
var tag = document.createElement('script');
|
var tag = document.createElement('script');
|
||||||
tag.src = "https://www.youtube.com/iframe_api";
|
tag.src = "https://www.youtube.com/iframe_api";
|
||||||
var firstScriptTag = document.getElementsByTagName('script')[0];
|
document.head.appendChild(tag);
|
||||||
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
|
}
|
||||||
|
|
||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
if (window.gdConsent && gdConsent.has('youtube')) {
|
||||||
|
ladeYouTube();
|
||||||
|
}
|
||||||
|
document.getElementById('yt-load').addEventListener('click', function() {
|
||||||
|
// "Immer laden" speichert die Einwilligung dauerhaft, sonst gilt sie nur für diesen Aufruf
|
||||||
|
if (document.getElementById('yt-always').checked && window.gdConsent) {
|
||||||
|
gdConsent.save({ youtube: true });
|
||||||
|
}
|
||||||
|
ladeYouTube();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
// Einwilligung über den Cookie-Banner erteilt
|
||||||
|
document.addEventListener('gd:consent', function(event) {
|
||||||
|
if (event.detail.youtube) ladeYouTube();
|
||||||
|
});
|
||||||
|
|
||||||
var player;
|
var player;
|
||||||
function onYouTubeIframeAPIReady() {
|
function onYouTubeIframeAPIReady() {
|
||||||
player = new YT.Player('player', {
|
player = new YT.Player('player', {
|
||||||
|
host: 'https://www.youtube-nocookie.com',
|
||||||
height: '100%',
|
height: '100%',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
videoId: '{{ folge.zusatzinfo.yt_adresse|get_yt_id }}',
|
videoId: '{{ folge.zusatzinfo.yt_adresse|get_yt_id }}',
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
{% extends 'base.html' %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-lg-8">
|
||||||
|
<div class="card shadow-sm mb-4">
|
||||||
|
<div class="card-body p-4">
|
||||||
|
<h1 class="h2 mb-4">Impressum</h1>
|
||||||
|
|
||||||
|
<h2 class="h5">Angaben gemäß § 5 DDG</h2>
|
||||||
|
{% include 'partials/verantwortlicher.html' %}
|
||||||
|
|
||||||
|
<h2 class="h5 mt-4">Verantwortlich für den Inhalt nach § 18 Abs. 2 MStV</h2>
|
||||||
|
<p>{{ impressum.name|default:"[Vor- und Nachname]" }}, Anschrift wie oben.</p>
|
||||||
|
|
||||||
|
<h2 class="h5 mt-4">Hinweis zum Projekt</h2>
|
||||||
|
<p>
|
||||||
|
Dieses Archiv ist ein rein privates, nicht kommerzielles Fan-Projekt und dient
|
||||||
|
Archiv- sowie statistischen Zwecken.
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>Alle Rechte an der Marke „Genial Daneben“, dem Logo und den Inhalten der Sendung liegen bei den jeweiligen Rechteinhabern (Produktionsfirmen und Sender).</li>
|
||||||
|
<li>Es besteht keine offizielle Verbindung zwischen diesem Projekt und den Urhebern der Sendung.</li>
|
||||||
|
<li>Alle Daten wurden manuell zusammengetragen. Für Vollständigkeit und Richtigkeit wird keine Gewähr übernommen.</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h2 class="h5 mt-4">Haftung für Links</h2>
|
||||||
|
<p class="mb-0">
|
||||||
|
Diese Seite enthält Links zu externen Webseiten (z. B. Wikipedia und YouTube), auf deren
|
||||||
|
Inhalte kein Einfluss besteht. Für diese fremden Inhalte ist stets der jeweilige Anbieter
|
||||||
|
oder Betreiber verantwortlich. Bei Bekanntwerden von Rechtsverletzungen werden
|
||||||
|
entsprechende Links umgehend entfernt.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{% load static %}
|
||||||
|
{# Cookie-Banner, wird am Ende von <body> in gd/base.html und gd2/base.html eingebunden #}
|
||||||
|
<div id="gd-consent" class="gd-consent" role="dialog" aria-labelledby="gd-consent-title" aria-describedby="gd-consent-text" hidden>
|
||||||
|
<div class="gd-consent__box">
|
||||||
|
<h2 id="gd-consent-title">Cookies & externe Inhalte</h2>
|
||||||
|
<p id="gd-consent-text">
|
||||||
|
Diese Seite verwendet technisch notwendige Cookies, damit sie funktioniert.
|
||||||
|
Videos von YouTube laden wir nur mit deiner Einwilligung, weil dabei Daten
|
||||||
|
(u. a. deine IP-Adresse) an Google übertragen werden. Deine Auswahl kannst du
|
||||||
|
jederzeit über „Cookie-Einstellungen“ unten auf der Seite ändern.
|
||||||
|
Mehr dazu in der <a href="{% url 'gd:datenschutz' %}">Datenschutzerklärung</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="gd-consent__details">
|
||||||
|
<label class="gd-consent__option">
|
||||||
|
<input type="checkbox" checked disabled>
|
||||||
|
<span>
|
||||||
|
<strong>Notwendig</strong> (immer aktiv)
|
||||||
|
<small>Sitzung und Formularschutz (CSRF), Speicherung dieser Auswahl, Schutz vor Mehrfachmeldungen defekter Videos, Lautstärke des Video-Players.</small>
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
<label class="gd-consent__option">
|
||||||
|
<input type="checkbox" id="gd-consent-youtube">
|
||||||
|
<span>
|
||||||
|
<strong>Externe Medien (YouTube)</strong>
|
||||||
|
<small>Videos werden von YouTube (Google Ireland Limited) geladen. Dabei werden u. a. deine IP-Adresse an Google übertragen und von YouTube Daten in deinem Browser gespeichert. Eine Übermittlung in die USA ist möglich.</small>
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="gd-consent__buttons">
|
||||||
|
<button type="button" data-consent="necessary">Nur notwendige</button>
|
||||||
|
<button type="button" data-consent="details" class="gd-consent__link gd-consent__show-details">Einstellungen</button>
|
||||||
|
<button type="button" data-consent="save" class="gd-consent__link gd-consent__save">Auswahl speichern</button>
|
||||||
|
<button type="button" data-consent="all">Alle akzeptieren</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script src="{% static 'consent/consent.js' %}"></script>
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{# Links zu Impressum, Datenschutz und Cookie-Einstellungen für den Seitenfuß #}
|
||||||
|
<a href="{% url 'gd:impressum' %}">Impressum</a>
|
||||||
|
<span aria-hidden="true">·</span>
|
||||||
|
<a href="{% url 'gd:datenschutz' %}">Datenschutz</a>
|
||||||
|
<span aria-hidden="true">·</span>
|
||||||
|
<a href="#" data-consent-open>Cookie-Einstellungen</a>
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{# Anschrift des Betreibers aus settings.IMPRESSUM (.env), Platzhalter falls leer #}
|
||||||
|
<address class="mb-0">
|
||||||
|
{{ impressum.name|default:"[Vor- und Nachname]" }}<br>
|
||||||
|
{{ impressum.strasse|default:"[Straße und Hausnummer]" }}<br>
|
||||||
|
{{ impressum.ort|default:"[PLZ und Ort]" }}<br>
|
||||||
|
E-Mail:
|
||||||
|
{% if impressum.email %}<a href="mailto:{{ impressum.email }}">{{ impressum.email }}</a>{% else %}[E-Mail-Adresse]{% endif %}
|
||||||
|
</address>
|
||||||
+95
@@ -252,3 +252,98 @@ class WikipediaCacheTests(TestCase):
|
|||||||
self.assertEqual(response.status_code, 200)
|
self.assertEqual(response.status_code, 200)
|
||||||
self.assertEqual(b"".join(response.streaming_content), b"BILD")
|
self.assertEqual(b"".join(response.streaming_content), b"BILD")
|
||||||
self.assertEqual(self.client.get(reverse("gd:team_member_bild", args=[99999])).status_code, 404)
|
self.assertEqual(self.client.get(reverse("gd:team_member_bild", args=[99999])).status_code, 404)
|
||||||
|
|
||||||
|
|
||||||
|
class DatenschutzTests(TestCase):
|
||||||
|
def setUp(self):
|
||||||
|
_, _, self.folge, _ = erstelle_testdaten()
|
||||||
|
|
||||||
|
def test_impressum_und_datenschutz_erreichbar(self):
|
||||||
|
for name in ("gd:impressum", "gd:datenschutz"):
|
||||||
|
response = self.client.get(reverse(name))
|
||||||
|
self.assertEqual(response.status_code, 200)
|
||||||
|
|
||||||
|
@override_settings(IMPRESSUM={"name": "Max Muster", "strasse": "", "ort": "", "email": "max@example.org"})
|
||||||
|
def test_impressum_angaben_aus_settings(self):
|
||||||
|
response = self.client.get(reverse("gd:impressum"))
|
||||||
|
self.assertContains(response, "Max Muster")
|
||||||
|
self.assertContains(response, "mailto:max@example.org")
|
||||||
|
self.assertContains(response, "[PLZ und Ort]")
|
||||||
|
|
||||||
|
def test_banner_und_footer_auf_oeffentlichen_seiten(self):
|
||||||
|
for url in (reverse("gd:dashboard"), reverse("gd:folgen_list"), "/gd2/"):
|
||||||
|
response = self.client.get(url)
|
||||||
|
self.assertContains(response, 'id="gd-consent"')
|
||||||
|
self.assertContains(response, "consent/consent.js")
|
||||||
|
self.assertContains(response, reverse("gd:datenschutz"))
|
||||||
|
|
||||||
|
def test_keine_externen_bibliotheken(self):
|
||||||
|
for url in (reverse("gd:dashboard"), "/gd2/", reverse("gd:folge_detail", args=[self.folge.pk])):
|
||||||
|
content = self.client.get(url).content.decode()
|
||||||
|
self.assertNotIn("cdn.jsdelivr.net", content)
|
||||||
|
self.assertNotIn("fonts.googleapis.com", content)
|
||||||
|
|
||||||
|
def test_youtube_erst_nach_klick(self):
|
||||||
|
FolgenZusatzInfo.objects.create(folge=self.folge, yt_adresse="https://www.youtube.com/watch?v=abcdefghijk")
|
||||||
|
response = self.client.get(reverse("gd:folge_detail", args=[self.folge.pk]))
|
||||||
|
content = response.content.decode()
|
||||||
|
self.assertIn('id="yt-load"', content)
|
||||||
|
# Kein <script src> und kein iframe zu YouTube im ausgelieferten HTML
|
||||||
|
self.assertNotIn('src="https://www.youtube', content)
|
||||||
|
self.assertNotIn("<iframe", content)
|
||||||
|
|
||||||
|
|
||||||
|
class IpBereinigenTests(TestCase):
|
||||||
|
def setUp(self):
|
||||||
|
_, _, folge1, folge2 = erstelle_testdaten()
|
||||||
|
self.alt = FolgenZusatzInfo.objects.create(
|
||||||
|
folge=folge1, reporter_ips="1.1.1.1,2.2.2.2", melde_count=2,
|
||||||
|
gemeldet_am=timezone.now() - timedelta(days=31))
|
||||||
|
self.neu = FolgenZusatzInfo.objects.create(
|
||||||
|
folge=folge2, reporter_ips="3.3.3.3", melde_count=1,
|
||||||
|
gemeldet_am=timezone.now() - timedelta(days=5))
|
||||||
|
folge3 = Folge.objects.create(folgen_nummer=3, datum=date(2005, 1, 1))
|
||||||
|
self.ohne_datum = FolgenZusatzInfo.objects.create(folge=folge3, reporter_ips="4.4.4.4", melde_count=1)
|
||||||
|
|
||||||
|
def test_alte_ips_werden_geloescht_zaehler_bleibt(self):
|
||||||
|
from django.core.management import call_command
|
||||||
|
from io import StringIO
|
||||||
|
out = StringIO()
|
||||||
|
call_command("ip_bereinigen", stdout=out)
|
||||||
|
self.alt.refresh_from_db()
|
||||||
|
self.neu.refresh_from_db()
|
||||||
|
self.assertEqual(self.alt.reporter_ips, "")
|
||||||
|
self.assertEqual(self.alt.melde_count, 2)
|
||||||
|
self.assertEqual(self.neu.reporter_ips, "3.3.3.3")
|
||||||
|
self.ohne_datum.refresh_from_db()
|
||||||
|
self.assertEqual(self.ohne_datum.reporter_ips, "")
|
||||||
|
self.assertIn("2 Meldung", out.getvalue())
|
||||||
|
|
||||||
|
|
||||||
|
class EinsenderKurznameTests(TestCase):
|
||||||
|
def test_kurzname(self):
|
||||||
|
from .models import Einsender
|
||||||
|
self.assertEqual(Einsender(name="Jutta Thomas").kurzname, "Jutta T.")
|
||||||
|
self.assertEqual(Einsender(name="Anna Maria Schmidt").kurzname, "Anna S.")
|
||||||
|
self.assertEqual(Einsender(name="Jutta").kurzname, "Jutta")
|
||||||
|
self.assertIsNone(Einsender(name=" ").kurzname)
|
||||||
|
self.assertIsNone(Einsender(name=None).kurzname)
|
||||||
|
|
||||||
|
def test_api_gibt_nur_kurznamen_aus(self):
|
||||||
|
from .models import Einsender
|
||||||
|
_, _, folge, _ = erstelle_testdaten()
|
||||||
|
einsender = Einsender.objects.create(name="Jutta Thomas", stadt="Köln", bundesland="NRW")
|
||||||
|
Frage.objects.filter(folge=folge).update(einsender=einsender)
|
||||||
|
response = self.client.get(f"/gd/api/v1/folgen/{folge.folgen_nummer}/")
|
||||||
|
self.assertEqual(response.status_code, 200)
|
||||||
|
self.assertNotIn("Thomas", response.content.decode())
|
||||||
|
self.assertEqual(response.json()["fragen"][0]["einsender"]["name"], "Jutta T.")
|
||||||
|
|
||||||
|
def test_folgenseite_mit_leerem_namen(self):
|
||||||
|
from .models import Einsender
|
||||||
|
_, _, folge, _ = erstelle_testdaten()
|
||||||
|
einsender = Einsender.objects.create(name=" ", stadt="Köln")
|
||||||
|
Frage.objects.filter(folge=folge).update(einsender=einsender)
|
||||||
|
response = self.client.get(reverse("gd:folge_detail", args=[folge.pk]))
|
||||||
|
self.assertEqual(response.status_code, 200)
|
||||||
|
self.assertContains(response, "Eingereicht von: Köln")
|
||||||
@@ -22,6 +22,8 @@ urlpatterns = [
|
|||||||
path('team/<int:pk>/', views.team_member_detail, name='team_member_detail'),
|
path('team/<int:pk>/', views.team_member_detail, name='team_member_detail'),
|
||||||
path('team/<int:pk>/bild/', views.team_member_bild, name='team_member_bild'),
|
path('team/<int:pk>/bild/', views.team_member_bild, name='team_member_bild'),
|
||||||
path('search/', views.search, name='search'),
|
path('search/', views.search, name='search'),
|
||||||
|
path('impressum/', views.impressum, name='impressum'),
|
||||||
|
path('datenschutz/', views.datenschutz, name='datenschutz'),
|
||||||
|
|
||||||
# --- DIE NEUE API-SCHNITTSTELLE (JSON) ---
|
# --- DIE NEUE API-SCHNITTSTELLE (JSON) ---
|
||||||
path('api/v1/', include(router.urls)),
|
path('api/v1/', include(router.urls)),
|
||||||
|
|||||||
+8
-11
@@ -162,17 +162,8 @@ def folge_detail(request, pk):
|
|||||||
for f in fragen:
|
for f in fragen:
|
||||||
eins = getattr(f, 'einsender', None)
|
eins = getattr(f, 'einsender', None)
|
||||||
if eins:
|
if eins:
|
||||||
# Falls ein Name vorhanden ist, kürzen: Vorname + Anfangsbuchstabe Nachname
|
# Vorname + Anfangsbuchstabe Nachname (siehe Einsender.kurzname)
|
||||||
if eins.name:
|
short_name = eins.kurzname
|
||||||
parts = eins.name.strip().split()
|
|
||||||
first = parts[0]
|
|
||||||
last_initial = parts[-1][0] if len(parts) > 1 and parts[-1] else ''
|
|
||||||
if last_initial:
|
|
||||||
short_name = f"{first} {last_initial}."
|
|
||||||
else:
|
|
||||||
short_name = first
|
|
||||||
else:
|
|
||||||
short_name = None
|
|
||||||
|
|
||||||
# Ergänze Stadt falls vorhanden
|
# Ergänze Stadt falls vorhanden
|
||||||
if eins.stadt:
|
if eins.stadt:
|
||||||
@@ -294,6 +285,12 @@ def team_member_detail(request, pk):
|
|||||||
"wiki_page_url": wiki_page_url,
|
"wiki_page_url": wiki_page_url,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
def impressum(request):
|
||||||
|
return render(request, 'gd/impressum.html', {'impressum': settings.IMPRESSUM})
|
||||||
|
|
||||||
|
def datenschutz(request):
|
||||||
|
return render(request, 'gd/datenschutz.html', {'impressum': settings.IMPRESSUM})
|
||||||
|
|
||||||
def team_member_bild(request, pk):
|
def team_member_bild(request, pk):
|
||||||
"""Liefert das lokal gespeicherte Wikipedia-Thumbnail aus."""
|
"""Liefert das lokal gespeicherte Wikipedia-Thumbnail aus."""
|
||||||
bild = thumb_path(pk)
|
bild = thumb_path(pk)
|
||||||
|
|||||||
@@ -454,3 +454,5 @@ button, a {
|
|||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* Rechtliche Links im Seitenfuß */
|
||||||
|
.gd2-rechtliches a { color: inherit; }
|
||||||
@@ -5,8 +5,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Genial Daneben - Design Test</title>
|
<title>Genial Daneben - Design Test</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="{% static 'vendor/bootstrap/bootstrap.min.css' %}" rel="stylesheet">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap" rel="stylesheet">
|
<link rel="stylesheet" href="{% static 'vendor/montserrat/montserrat.css' %}">
|
||||||
|
<link rel="stylesheet" href="{% static 'vendor/bootstrap-icons/bootstrap-icons.min.css' %}">
|
||||||
|
<link rel="stylesheet" href="{% static 'consent/consent.css' %}">
|
||||||
|
|
||||||
<link rel="stylesheet" href="{% static 'gd2/css/style.css' %}">
|
<link rel="stylesheet" href="{% static 'gd2/css/style.css' %}">
|
||||||
</head>
|
</head>
|
||||||
@@ -15,6 +17,11 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
<footer class="text-center small py-4 gd2-rechtliches">
|
||||||
|
{% include 'partials/rechtliches_links.html' %}
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<script src="{% static 'vendor/bootstrap/bootstrap.bundle.min.js' %}"></script>
|
||||||
|
{% include 'partials/consent_banner.html' %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
|
{% load static %}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>{% block title %}GD Intern - Management{% endblock %}</title>
|
<title>{% block title %}GD Intern - Management{% endblock %}</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="{% static 'vendor/bootstrap/bootstrap.min.css' %}" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
<link rel="stylesheet" href="{% static 'vendor/bootstrap-icons/bootstrap-icons.min.css' %}">
|
||||||
<style>
|
<style>
|
||||||
body { background-color: #f8f9fa; }
|
body { background-color: #f8f9fa; }
|
||||||
.sidebar { min-height: 100vh; background: #212529; color: white; position: sticky; top: 0; }
|
.sidebar { min-height: 100vh; background: #212529; color: white; position: sticky; top: 0; }
|
||||||
@@ -94,7 +95,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
<script src="{% static 'vendor/bootstrap/bootstrap.bundle.min.js' %}"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{% extends "intern/base.html" %}
|
{% extends "intern/base.html" %}
|
||||||
|
{% load static %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2>Willkommen im GD-Backend</h2>
|
<h2>Willkommen im GD-Backend</h2>
|
||||||
<p class="text-muted">Archiv-Verwaltung & Analyseübersicht</p>
|
<p class="text-muted">Archiv-Verwaltung & Analyseübersicht</p>
|
||||||
@@ -196,7 +197,7 @@
|
|||||||
{{ data_fragen_verteilung|json_script:'fragen-art-data' }}
|
{{ data_fragen_verteilung|json_script:'fragen-art-data' }}
|
||||||
|
|
||||||
{% block extra_js %}
|
{% block extra_js %}
|
||||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
<script src="{% static 'vendor/chartjs/chart.umd.min.js' %}"></script>
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
const parseJson = (id) => JSON.parse(document.getElementById(id).textContent);
|
const parseJson = (id) => JSON.parse(document.getElementById(id).textContent);
|
||||||
|
|||||||
@@ -38,6 +38,14 @@ CSRF_TRUSTED_ORIGINS = os.getenv('CSRF_TRUSTED_ORIGINS', '').split(',')
|
|||||||
# Eigene Reverse-Proxys (NginxProxyManager), deren X-Forwarded-For vertraut wird
|
# Eigene Reverse-Proxys (NginxProxyManager), deren X-Forwarded-For vertraut wird
|
||||||
TRUSTED_PROXIES = [ip.strip() for ip in os.getenv('TRUSTED_PROXIES', '').split(',') if ip.strip()]
|
TRUSTED_PROXIES = [ip.strip() for ip in os.getenv('TRUSTED_PROXIES', '').split(',') if ip.strip()]
|
||||||
|
|
||||||
|
# Angaben für Impressum und Datenschutzerklärung (aus .env, damit sie nicht im Repository landen)
|
||||||
|
IMPRESSUM = {
|
||||||
|
'name': os.getenv('IMPRESSUM_NAME', ''),
|
||||||
|
'strasse': os.getenv('IMPRESSUM_STRASSE', ''),
|
||||||
|
'ort': os.getenv('IMPRESSUM_ORT', ''),
|
||||||
|
'email': os.getenv('IMPRESSUM_EMAIL', ''),
|
||||||
|
}
|
||||||
|
|
||||||
JELLYFIN_URL = os.getenv('JELLYFIN_URL')
|
JELLYFIN_URL = os.getenv('JELLYFIN_URL')
|
||||||
JELLYFIN_API_KEY = os.getenv('JELLYFIN_API_KEY')
|
JELLYFIN_API_KEY = os.getenv('JELLYFIN_API_KEY')
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user