From 8bee9a89765715ef085315e0536a681ca65cea1b Mon Sep 17 00:00:00 2001 From: Jannick Heisch Date: Mon, 29 Jan 2024 12:02:52 +0100 Subject: [PATCH] moving the storage of settings from frontend to the backend --- .../app/src/main/assets/web/board_ui.js | 2 +- .../app/src/main/assets/web/tremola.html | 12 +- .../app/src/main/assets/web/tremola.js | 71 ++------ .../src/main/assets/web/tremola_settings.js | 53 +++--- .../app/src/main/assets/web/tremola_ui.js | 2 +- .../nz/scuttlebutt/tremolavossbol/Settings.kt | 154 ++++++++---------- .../tremolavossbol/WebAppInterface.kt | 9 +- .../tremolavossbol/utils/Constants.kt | 2 +- 8 files changed, 111 insertions(+), 194 deletions(-) diff --git a/android/tinySSB/app/src/main/assets/web/board_ui.js b/android/tinySSB/app/src/main/assets/web/board_ui.js index b59bdff..79022d4 100644 --- a/android/tinySSB/app/src/main/assets/web/board_ui.js +++ b/android/tinySSB/app/src/main/assets/web/board_ui.js @@ -88,7 +88,7 @@ function load_board_list() { var board = tremola.board[bid] var date = new Date(bidTimestamp[i][1]) date = date.toDateString() + ' ' + date.toTimeString().substring(0, 5); - if (board.forgotten && tremola.settings.hide_forgotten_boards) + if (board.forgotten && tremola.settings.hide_forgotten_kanbans) continue var cl, mem, item, bg, row, badge, badgeId, cnt; cl = document.getElementById('lst:kanban'); diff --git a/android/tinySSB/app/src/main/assets/web/tremola.html b/android/tinySSB/app/src/main/assets/web/tremola.html index 2df3e25..e9f79f2 100644 --- a/android/tinySSB/app/src/main/assets/web/tremola.html +++ b/android/tinySSB/app/src/main/assets/web/tremola.html @@ -433,7 +433,7 @@
Connect to Peers via BLE

@@ -441,7 +441,7 @@
Connect to Peers via UDP Multicast
@@ -450,7 +450,7 @@
Connect to Pub via Websocket