mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-08 21:49:38 +00:00
backup functionality to frontend and tasks
This commit is contained in:
@@ -91,6 +91,17 @@ function manualImport() {
|
||||
toReplace.appendChild(message);
|
||||
}
|
||||
|
||||
function dbBackup() {
|
||||
var payload = JSON.stringify({'db-backup': true});
|
||||
sendPost(payload)
|
||||
// clear button
|
||||
var message = document.createElement('p');
|
||||
message.innerText = 'backing up archive';
|
||||
var toReplace = document.getElementById('db-backup');
|
||||
toReplace.innerHTML = '';
|
||||
toReplace.appendChild(message);
|
||||
}
|
||||
|
||||
// player
|
||||
function createPlayer(button) {
|
||||
var mediaUrl = button.getAttribute('data-src');
|
||||
|
||||
Reference in New Issue
Block a user