Skip to content

Commit 0932560

Browse files
committed
FE: legacy code cleanup
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
1 parent c244cc6 commit 0932560

6 files changed

Lines changed: 1 addition & 991 deletions

File tree

docs/DEVICES_BULK_EDITING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The database and device structure may change with new releases. When using the C
2626
![Maintenance > CSV Export](./img/DEVICES_BULK_EDITING/MAINTENANCE_CSV_EXPORT.png)
2727

2828
> [!NOTE]
29-
> The file containing a list of Devices including the Network relationships between Network Nodes and connected devices. You can also trigger this by acessing this URL: `<server>:20211/php/server/devices.php?action=ExportCSV` or via the `CSV Backup` plugin. (💡 You can schedule this)
29+
> The file containing a list of Devices including the Network relationships between Network Nodes and connected devices. You can also trigger this with the `CSV Backup` plugin. (💡 You can schedule this)
3030
3131
![Settings > CSV Backup](./img/DEVICES_BULK_EDITING/CSV_BACKUP_SETTINGS.png)
3232

front/js/tests.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,3 @@
1-
// --------------------------------------------------
2-
// Check if database is locked
3-
function lockDatabase(delay=20) {
4-
$.ajax({
5-
url: 'php/server/dbHelper.php', // Replace with the actual path to your PHP file
6-
type: 'GET',
7-
data: { action: 'lockDatabase', delay: delay },
8-
success: function(response) {
9-
console.log('Executed');
10-
},
11-
error: function() {
12-
console.log('Error ocurred');
13-
}
14-
});
15-
16-
let times = delay;
17-
let countdownInterval = setInterval(() => {
18-
times--;
19-
console.log(`Remaining time: ${times} seconds`);
20-
21-
if (times <= 0) {
22-
clearInterval(countdownInterval);
23-
console.log('Countdown finished');
24-
}
25-
}, 5000);
26-
}
27-
28-
291
const requiredFiles = [
302
'app_state.json',
313
'plugins.json',

front/php/server/dbHelper.php

Lines changed: 0 additions & 310 deletions
This file was deleted.

0 commit comments

Comments
 (0)