Compare commits

...

19 Commits

Author SHA1 Message Date
0c69abcc43 Merge branch 'hotfix/fix_expenditures_approve' into develop 2025-05-16 17:18:27 +02:00
595c684e23 fix_expenditures_approve 2025-05-16 17:18:18 +02:00
65fc9d7163 Merge branch 'hotfix/fix_login' into develop 2025-05-16 17:11:10 +02:00
3c0c2a3f2e Merge branch 'hotfix/fix_login' 2025-05-16 17:11:10 +02:00
ac9b5ef652 gitflow-hotfix-stash: fix_login 2025-05-16 17:10:51 +02:00
2df193c6d5 fixes 2025-02-23 17:46:42 +01:00
099fb6deb6 Merge branch 'hotfix/fix_login_loop' 2025-02-19 19:44:01 +01:00
8b9f845a37 Merge branch 'hotfix/fix_login_loop' into develop 2025-02-19 19:44:00 +01:00
f3e1620057 gitflow-hotfix-stash: fix_login_loop 2025-02-19 19:43:56 +01:00
b52eea79c2 Merge branch 'hotfix/debug_info_on_push_subscription' 2025-02-19 16:49:56 +01:00
af4c826322 Merge branch 'hotfix/debug_info_on_push_subscription' into develop 2025-02-19 16:49:56 +01:00
8972d2d72a gitflow-hotfix-stash: debug_info_on_push_subscription 2025-02-19 16:49:51 +01:00
49ed27e58f Merge branch 'hotfix/menu-more-size' 2025-02-19 15:37:36 +01:00
2282bbf13d Merge branch 'hotfix/menu-more-size' into develop 2025-02-19 15:37:36 +01:00
9a5d90a703 fix menu-more-size 2025-02-19 15:37:28 +01:00
bceca97c98 Merge branch 'hotfix/expenditures_dark_mode' 2025-02-19 15:35:19 +01:00
7e8cbeb392 Merge branch 'hotfix/expenditures_dark_mode' into develop 2025-02-19 15:35:19 +01:00
52c6914d41 fix expenditures dark mode 2025-02-19 15:35:11 +01:00
960761d729 Merge branch 'release/v1.13' into develop 2025-02-19 15:21:09 +01:00
7 changed files with 24 additions and 12 deletions

View File

@@ -1343,7 +1343,14 @@ function resetDb() {
db.transaction('rankings', 'readwrite').objectStore('rankings').clear();
db.transaction('follows', 'readwrite').objectStore('follows').clear();
db.transaction('expenditures', 'readwrite').objectStore('expenditures').clear();
var osUpdateTimes = db.transaction('update_times', 'readwrite').objectStore('update_times');
var ta = db.transaction('update_times', 'readwrite');
ta.oncomplete = (event) => {
log('[db] resetDb: Transaction complete');
};
ta.onerror = (event) => {
log('[db] resetDb: Transaction failed');
};
var osUpdateTimes = ta.objectStore('update_times');
osUpdateTimes.put({ table: 'last_sync', time: 1 });
osUpdateTimes.put({ table: 'clubs', time: 0 });
osUpdateTimes.put({ table: 'boats', time: 0 });
@@ -1357,6 +1364,8 @@ function resetDb() {
osUpdateTimes.put({ table: 'news', time: 0 });
osUpdateTimes.put({ table: 'users', time: 0 });
osUpdateTimes.put({ table: 'expenditures', time: 0 });
osUpdateTimes.put({ table: 'loggedin', status: isLoggedIn() });
ta.commit();
log('[db] DB update times reset');
hideLoader();
}

View File

@@ -320,7 +320,7 @@ function pushesSubscribe() {
applicationServerKey: applicationServerKey
})
.then(async function(subscription) {
log('[app] Subscription:', subscription);
log('[app] Subscription:', JSON.stringify(subscription));
if (await pushesUpdateServerSubscription(subscription, true)) {
log('[app] Subscription: Sent to server, updating UI');
dbSettingsSet('notify_endpoint_' + BOATCLASS, subscription.endpoint);
@@ -346,7 +346,7 @@ function pushesUnSubscribe(silent = false) {
log('[app] Unsubscribing');
swRegistration.pushManager.getSubscription()
.then(async function(subscription) {
log('[app] Subscription:', subscription);
log('[app] Subscription:', JSON.stringify(subscription));
if (subscription) {
if (await pushesUpdateServerSubscription(subscription, false)) {
log('[app] Subscription: Removed from server');
@@ -374,7 +374,7 @@ function pushesUnSubscribe(silent = false) {
function pushesUpdateServerSubscription(subscription, enabled) {
return new Promise(function(resolve){
log('[app] updateServer', enabled, subscription);
log('[app] updateServer', enabled, JSON.stringify(subscription));
$.ajax({
url: QUERY_URL + (enabled ? 'add' : 'remove') + '_subscription',
type: 'POST',
@@ -477,7 +477,7 @@ function updatePushBadge() {
var dbSub = await dbSettingsGet('notify_endpoint_' + BOATCLASS);
var isSub = (subscription !== null);
log('[app] DB Subscription:', dbSub);
log('[app] Real Subscription:', subscription);
log('[app] Real Subscription:', JSON.stringify(subscription));
if (isSub) {
$('#badge-pushes').removeClass('bg-red2-dark').addClass('bg-green2-dark').text('AN');
if (dbSub === null) dbSettingsSet('notify_endpoint_' + BOATCLASS, subscription.endpoint);

View File

@@ -54,5 +54,5 @@ const strings = {
'Donnerstag',
'Freitag',
'Samstag'
],
]
}

View File

@@ -201,11 +201,14 @@
justify-content: center;
}
.expenditures-list > div.sum > div:nth-child(1) > div:nth-child(1) {
background: white;
background: #fff;
width: initial;
margin-top: -1em;
padding: 0 .5em;
}
.theme-dark .expenditures-list > div.sum > div:nth-child(1) > div:nth-child(1) {
background-color: #0f1117;
}
/*** NORMAL LIST ***/
.normal-list > div {

View File

@@ -57,7 +57,7 @@
</div>
</div>
<div id="menu-more" class="menu menu-box-bottom menu-box-detached rounded-m" data-menu-height="360" >
<div id="menu-more" class="menu menu-box-bottom menu-box-detached rounded-m" data-menu-height="410" >
<div class="menu-title"><h1>Mehr</h1><p class="color-highlight">&nbsp;</p><a href="#" class="close-menu"><i class="fa fa-times"></i></a></div>
<div class="divider divider-margins mb-n2"></div>
<div class="content">
@@ -260,7 +260,7 @@
<div class="input-style input-style-2 has-icon input-required">
<i class="input-icon fa fa-user color-theme"></i>
<span class="color-highlight">Benutzername</span>
<input id="input-login-username" class="form-control" type="name" placeholder="Benutzername" />
<input id="input-login-username" class="form-control" type="text" placeholder="Benutzername" />
</div>
<div class="input-style input-style-2 has-icon input-required">
<i class="input-icon fa fa-lock color-theme"></i>

View File

@@ -31,10 +31,10 @@ async function onListClicked(id) {
if (exp.approved == 0 && (exp.direction < 0) == (exp.canceled == 0)) {
$('#menu-item-approve').show();
$('#menu-item-approve').attr('onclick', 'expenditureAction("approve", ' + exp['id'] + ', "' + (exp.canceled == 1 ? 'Stornierung' : 'Ausgabe') + ' genehmigt")');
$('#menu-item-approve').text(exp.canceled == 1 ? 'Storno akzeptieren' : 'Akzeptieren');
$('#menu-item-approve').find('span').text(exp.canceled == 1 ? 'Storno akzeptieren' : 'Akzeptieren');
$('#menu-item-decline').show();
$('#menu-item-decline').attr('onclick', 'expenditureAction("decline", ' + exp['id'] + ', "Ausgabe ' + (exp.canceled == 1 ? 'erneut angefragt' : 'abgelehnt') + '")');
$('#menu-item-decline').text(exp.canceled == 1 ? 'Erneut anfragen' : 'Ablehnen');
$('#menu-item-decline').find('span').text(exp.canceled == 1 ? 'Erneut anfragen' : 'Ablehnen');
} else {
$('#menu-item-approve').hide();
$('#menu-item-decline').hide();

View File

@@ -1,5 +1,5 @@
<?php
define('PWA_VERSION', '1.13');
define('PWA_VERSION', '1.13h6');
?>