Compare commits

..

23 Commits
backup ... main

Author SHA1 Message Date
Samuel Zielke 8d70facb17 ändern des datei namen zum test
3 months ago
Samuel Zielke cf0bee4532 Update Fix for cache Problem
3 months ago
Samuel Zielke e0ce20771e Änderungen für die richtige Weiterleitung
3 months ago
Samuel Zielke c8d9a43c4e Korrektur damit Umleitung funktioniert
3 months ago
Samuel Zielke a43a58f16f Merge branch '16-Bug-Jahreswechsel'
3 months ago
Samuel Zielke b61dfebc27 Alles für das Versionsupdate
3 months ago
Samuel Zielke af7cb7b181 Merge branch 'main' of https://git.samuelzielke.de/samuelzielke/piomint
3 months ago
root b66ccb175c edits by server
3 months ago
Samuel Zielke 8b9c956d32 Merge pull request 'Bugfix:' (#17) from 16-Bug-Jahreswechsel into main
3 months ago
Samuel Zielke 872f733fd9 Bugfix:
3 months ago
Samuel Zielke d8d5e88ed5 Merge pull request 'Add Requirements' (#1) from hotfix-install_bug into main
5 months ago
Samuel Zielke ee1fe163cc Add Requirements
5 months ago
Samuel Zielke d9645961d4 Edit GitIgnore
9 months ago
Samuel Zielke 43d7b5728d UpdateFix: v1.3.2-2
9 months ago
Samuel Zielke 30f59bd62b UpdateFix: 1.3.2_1
9 months ago
Samuel Zielke f106c96281 v1.3.2 - Hotfix: Monatswechsel
9 months ago
Samuel Zielke 74c7e935de Hotfix: Monatswechsel (Denkfehler)
9 months ago
Samuel Zielke 53638bdc37 BugFix: Fehler bei der UpdateInfo
10 months ago
Samuel Zielke 83d1268932 Nachanpassung der Settings (static root)
10 months ago
Samuel Zielke 9702978acf Add HotFix 1.3.1 and Edit UpdateInfo
10 months ago
Samuel Zielke 0723112530 Add HotFix 1.3.1 and Edit UpdateInfo
10 months ago
Samuel Zielke a7bc35379d BugFix: Wechseln in Januar nicht möglich - da Monat "13" gesucht wird. Nun Zahlen und Regeln angepasst.
10 months ago
Samuel Zielke 7abefd4d59 Version: 1.3.0
11 months ago

4
.gitignore vendored

@ -1,3 +1,5 @@
venv/
*/__pycache__*
*/migrations*
*/migrations*
*/.DS_Store

@ -52,7 +52,7 @@ async function exportIndexedDBData() {
try {
const data = await getAllDataFromIndexedDB(dbName, storeName);
const jsonData = convertToJSON(data);
downloadData("exported_data.json", jsonData);
downloadData("piomint_backup.json", jsonData);
} catch (error) {
console.error("Fehler beim Exportieren der Daten:", error);
}

@ -6,8 +6,6 @@ const SETStudySaveButton = document.getElementById('SETStudySaveButton')
const SETMonthGoalSaveButton = document.getElementById('SETMonthGoalSaveButton')
var allowToSend = false;
const monate = ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"];
const aktuellerMonat = monate[new Date().getMonth()];
// Aktuelles Datum
const currentDate = new Date();
@ -157,11 +155,13 @@ SETMonthGoalSaveButton.addEventListener('click', () => {
})
async function getActualDataAndFillView(monat = currentDate.getMonth() + 1, jahr = currentDate.getFullYear()) {
async function getActualDataAndFillView(monat = currentDate.getMonth(), jahr = currentDate.getFullYear()) {
try {
// Einfüfen des aktuellen Monats
document.getElementById('actualMonthName').innerHTML = monate[monat - 1];
document.getElementById('actualMonthName').innerHTML = monate[monat !== 12 ? monat : 0];
console.log("AKTUELLER MONAT SYSTEM: ", monat)
console.log("AKTUELLER MONAT REAL: ", currentDate.getMonth())
// Settings vor ausfüllen
@ -177,7 +177,9 @@ async function getActualDataAndFillView(monat = currentDate.getMonth() + 1, jahr
});
// Filter funktion aufrufen und entsprechend mit dem aktuellen Datum füllen
const filteredEntries = await filterEntriesByMonthYear(monat, jahr);
const filteredEntries = await filterEntriesByMonthYear(monat === 12 ? 1 : monat + 1, monat + 1 >= 9 ? jahr + 1 : jahr);
console.log("update-complete")
// Tabelle mit den aktuellen informationen füllen (funktion triggern und Daten übergeben)
fillTableWithEntries(filteredEntries)
@ -381,30 +383,36 @@ document.getElementById('dashbord_month_area').addEventListener('click', () =>{
document.getElementById('MonthNameOfActual').innerHTML = "Monat:"
// document.getElementById('actualMonthName').innerHTML = monate[new Date().getMonth()];
diffMonth = 0;
getActualDataAndFillView(new Date().getMonth() + diffMonth + 1)
getActualDataAndFillView(new Date().getMonth() + diffMonth)
}
})
document.getElementById('btn-month-before').addEventListener('click', () =>{
if (diffMonth === 0) {
diffMonth = 11;
getActualDataAndFillView(new Date().getMonth() + diffMonth + 1)
console.log("CLICK-BEFORE: ", diffMonth)
if (new Date().getMonth() + diffMonth == 0) {
diffMonth = 11 - new Date().getMonth();
getActualDataAndFillView(new Date().getMonth() + diffMonth)
console.log("CLICK-BEFRORE-0TO11: ", diffMonth)
} else {
diffMonth = ((monate[new Date().getMonth() + diffMonth]) != 'September') ? diffMonth - 1 : diffMonth;
// document.getElementById('actualMonthName').innerHTML = monate[new Date().getMonth() + diffMonth];
getActualDataAndFillView(new Date().getMonth() + diffMonth + 1)
getActualDataAndFillView(new Date().getMonth() + diffMonth)
};
console.log("CLICK-BEFORE-AFTER: ", diffMonth)
});
document.getElementById('btn-month-next').addEventListener('click', () =>{
if (diffMonth === 11) {
diffMonth = 0;
getActualDataAndFillView(new Date().getMonth() + diffMonth + 1)
console.log("CLICK-NEXT: ", diffMonth)
if (new Date().getMonth() + diffMonth == 11) {
diffMonth = 0 - new Date().getMonth();
getActualDataAndFillView(new Date().getMonth() + diffMonth)
console.log("CLICK-NEXT-11TO0: ", diffMonth)
} else {
diffMonth = ((monate[new Date().getMonth() + diffMonth]) != 'August') ? diffMonth + 1 : diffMonth;
// document.getElementById('actualMonthName').innerHTML = monate[new Date().getMonth() + diffMonth];
getActualDataAndFillView(new Date().getMonth() + diffMonth + 1)
getActualDataAndFillView(new Date().getMonth() + diffMonth)
};
console.log("CLICK-NEXT-AFTER: ", diffMonth)
})
function setNewCalsOfMonth(TheMonth) {

@ -7,8 +7,7 @@ self.addEventListener("install", event => {
'/static/app/css/bootstrap.css',
'/static/app/css/custom.css',
'/static/app/js/dbcontrol.js',
'/static/app/js/home.js',
'/static/app/js/timer.js',
'/static/app/js/timer.js',
'/static/app/js/welcomeControl.js',
'/static/app/js/exportDB.js',
'/static/app/js/importDB.js',
@ -56,15 +55,15 @@ self.addEventListener('activate', event => {
);
});
// Serve from Cache
self.addEventListener("fetch", event => {
event.respondWith(
caches.match(event.request)
.then(response => {
return response || fetch(event.request);
})
.catch(() => {
return caches.match('/app/home');
})
)
});
// // Serve from Cache
// self.addEventListener("fetch", event => {
// event.respondWith(
// caches.match(event.request)
// .then(response => {
// return response || fetch(event.request);
// })
// .catch(() => {
// return caches.match('/app/home');
// })
// )
// });

@ -291,7 +291,7 @@
})
</script>
<script src="{% static 'app/js/home.js' %}"></script>
<script src="{% static 'app/js/home01.js' %}"></script>
<script src="{% static 'app/js/timer.js' %}"></script>
<script src="{% static 'app/js/welcomeControl.js' %}"></script>
<script src="{% static 'app/js/UpdateInfoControl.js' %}"></script>

@ -1,21 +1,22 @@
<br>
<h1>Update Time!</h1>
<br>
<h5>v1.2.1</h5>
<h5>v1.3.3</h5>
<p>
<b style="color: red">SORRY! 😬</b>
<br>Da ist mir was durch die lappen gegangen!
<b style="color: red">Fehler Behebung! 🔥</b>
<br>Anicht vom falschen Jahr!
<br>
<br><b>Was ist neu?</b>
<br> Unter Einstellungen WhatsApp Community beitreten!
<br> Aufrund des Dienstjahres was nicht mit Kalender
<br> übereinstimmt, geht es gegen die Natur.
<br>
<br><b>BugFix:</b>
<br> 1. Der Monatswechsel hat nicht in den Dezember geklappt.
<br> 2. Die Jahresanzeige war auf Kalenderjahr und nichts dienstjahr.
<br>
<br>Viel Freude und schön das du piomint nutz,
<!-- <br><b>Hinweise:</b>
<br> 1. Backup muss Manuell gemacht werden (aktuell)!
<br> 2. Backup muss Gespeichert werden! */}}
<br> -->
<br>Danke für die Geduld und das du Piomint nutzt!
<br><b>Gruß Samuel</b>
</p>
<br>
<input type="text" name="versionnumber" id="versionnumber" class="d-none" value="1.2.1">
<input type="text" name="versionnumber" id="versionnumber" class="d-none" value="1.3.3-5">

@ -9,5 +9,12 @@ urlpatterns = [
path("login", views.login),
path("home/", views.home),
path('offline/', TemplateView.as_view(template_name="offline.html")),
path("install/", views.install)
path("install/", views.install),
path("v1321/", views.v1322),
path("v1322/", views.v1322),
path("v133/", views.v133),
path("v1332/", views.v1332),
path("v1333/", views.v1333),
path("v1334/", views.v1334),
path("v1335/", views.v1335),
]

@ -8,7 +8,28 @@ def install(request):
return render(request, "app/install.html")
def home(request):
return render(request, "app/home.html")
return redirect("/app/v1335")
def login(request):
return render(request, "app/login.html")
return render(request, "app/login.html")
def v1321(request):
return redirect("/app/v1335")
def v1322(request):
return redirect("/app/v1335")
def v133(request):
return redirect("/app/v1335")
def v1332(request):
return redirect("/app/v1335")
def v1333(request):
return redirect("/app/v1335")
def v1334(request):
return redirect("/app/v1335")
def v1335(request):
return render(request, "app/home.html")

@ -9,7 +9,7 @@ PWA_APP_BACKGROUND_COLOR = '#9FEDD7'
PWA_APP_DISPLAY = 'standalone'
PWA_APP_SCOPE = '/'
PWA_APP_ORIENTATION = 'portrait'
PWA_APP_START_URL = '/app/home/'
PWA_APP_START_URL = '/app/v1335/'
PWA_APP_STATUS_BAR_COLOR = 'black-translucent'
PWA_SERVICE_WORKER_PATH = os.path.join(BASE_DIR, 'app/static/app/js', 'serviceworker.js')
PWA_APP_ICONS = [
@ -31,4 +31,4 @@ PWA_APP_SPLASH_SCREEN = [
}
]
PWA_APP_DIR = 'ltr'
PWA_APP_LANG = 'de'
PWA_APP_LANG = 'de'

@ -27,7 +27,7 @@ SECRET_KEY = 'django-insecure-h^$jdg0n_yarg*l#r3fd_7=7_)-!0bspac70f$1#b7w8gmkc-*
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['*'] if DEBUG else ['localhost']
ALLOWED_HOSTS = ['*'] if DEBUG else ['localhost', 'app.piomint.de']
# Application definition
@ -138,6 +138,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/5.1/howto/static-files/
STATIC_URL = 'static/'
STATIC_ROOT = '/var/www/piomint/static/' # Directory to collect static files.
# Default primary key field type
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field

@ -0,0 +1,7 @@
asgiref==3.8.1
Django==5.1.1
django-pwa==2.0.0
gunicorn==23.0.0
mysqlclient==2.2.4
packaging==24.1
sqlparse==0.5.1
Loading…
Cancel
Save

Powered by TurnKey Linux.