diff --git a/common.js b/common.js index 7637b9a..b28a758 100644 --- a/common.js +++ b/common.js @@ -29,6 +29,7 @@ function check_deployments() { html_data += '
'; } jQuery("#deployments").html(html_data); + document.getElementById('installAppsBtn').click(); } }); @@ -109,12 +110,16 @@ function check_vpn() { jQuery.get(url, function(data) { console.log('check_vpn: '+data); if (data=="2") { + document.getElementById('vpnToggle').checked = true; + document.querySelector(".switch-label").textContent = "ON"; $('#vpn_off').hide(); $('#vpn_on').show(); $('#pro_off').hide(); $('#pro_on').show(); } else { + document.getElementById('vpnToggle').checked = false; + document.querySelector(".switch-label").textContent = "OFF"; $('#vpn_on').hide(); $('#vpn_off').show(); $('#pro_on').hide(); diff --git a/manage.html b/manage.html index beda07d..52d8703 100644 --- a/manage.html +++ b/manage.html @@ -59,7 +59,7 @@ .menu { display: flex; flex-direction: column; - gap: 10px; + gap: 5px; padding: 0 10px; } @@ -248,11 +248,11 @@ .app img { border-radius: 15px; background-color: #101214; - width: 110px; - height: 110px; + width: 70px; + height: 70px; object-fit: contain; margin-bottom: 20px; - padding: 10px; + padding: 30px; } .app-label { @@ -270,14 +270,21 @@ } .more-btn { - background-color: var(--highlight-color); - border: none; + background-color: inherit; + color: #cccccc; + border: 1px solid #cccccc; border-radius: 15px; - padding: 20px; + padding: 18px; font-size: 16px; font-weight: 400; cursor: pointer; width: 100%; + font-weight: bold; + } + + .more-btn:hover { + color: var(--highlight-color); + border: 1px solid var(--highlight-color); } .app-details { @@ -336,19 +343,19 @@ } .title { - font-size: 20px; + font-size: 26px; font-weight: bold; margin: 0; } .subtitle { - font-size: 14px; + font-size: 16px; margin: 4px 0; color: #999; } .description { - font-size: 12px; + font-size: 14px; margin: 20px 0 0; color: #999; } @@ -656,11 +663,19 @@
-

Safebox Pro

-

Enjoy benefits and unlock more feature such as remote access, geo-redundant backups etc.

- Read details

- Upgrade now -

+
+

Safebox Pro

+

Enjoy benefits and unlock more feature such as remote access, geo-redundant backups etc.

+ Read details

+ Upgrade now +

+
+
@@ -724,11 +739,13 @@ //if ((all==false && app.installed=='true') || (all==true && app.installed!='true')) { const appDiv = document.createElement('div'); appDiv.className = 'app'; + if (app.installed=='true') more = 'Installed'; + else more = 'More'; appDiv.innerHTML = `
${app.name}
${app.name} ${app.version}
${app.orig_name}
- + `; appDiv.addEventListener('click', () => { popupText.textContent = `You clicked on ${app.name} ${app.version}!`; @@ -745,27 +762,16 @@ //TODO: Ilyen függvényeket kell csinálni és a listenerekhez adni az egyes részeket function renderText(title) { + myAppsContainer.classList.remove('hidden'); + popup.classList.add('hidden'); + //TODO: itt kell a buttont editálni és így kell hozzáadni hozzá mindent myAppsContainer.innerHTML = ` -

${title}

- -
- - - - - - -
+
+

${title}

+ +
+ `; const submitButton = document.getElementById('submitButton'); @@ -785,6 +791,9 @@ } function renderVPN() { + myAppsContainer.classList.remove('hidden'); + popup.classList.add('hidden'); + myAppsContainer.innerHTML = `

VPN

@@ -833,6 +842,9 @@ } function renderSettings() { + myAppsContainer.classList.remove('hidden'); + popup.classList.add('hidden'); + myAppsContainer.innerHTML = `

Settings

@@ -961,7 +973,7 @@ - +