Skip to content
Snippets Groups Projects
Commit b1163928 authored by HGEpro's avatar HGEpro
Browse files

updated for first release build which doesn't work (doesn't change tabs)

parent bbffac77
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,6 @@ pub async fn request(url: &str, method: Option<&str>, form: Option<HashMap<Strin
_url = APIURL.to_owned() + &_url;
}
println!("{}", &_url);
let res = match method {
Some(m) => if m == "POST" {
client.post(_url).form(&form).send().await
......
......@@ -96,7 +96,10 @@ function saveSettings() {
<a href="#subjects" on:click={() => { tab = 2 }}>{dict.subjects}</a>
</li>
<li class="tab-item { tab == 3 ? 'active' : ''}">
<a href="#settings" on:click={() => { tab = 3 }}>{dict.settings}</a>
<a href="#network" on:click={() => { tab = 3 }}>{dict.network}</a>
</li>
<li class="tab-item { tab == 4 ? 'active' : ''}">
<a href="#settings" on:click={() => { tab = 4 }}>{dict.settings}</a>
</li>
</ul>
......@@ -246,6 +249,7 @@ function saveSettings() {
{:else}
<div class="form-group" style="width: fit-content; margin-left: auto; margin-right: auto; padding-top:
1rem; ">
<!-- svelte-ignore a11y-label-has-associated-control -->
<label>{dict.about_timed_lock}</label>
<div class="input-group" style="margin-top: 0.5rem;">
<input type="number" bind:value={locktime.hours} class="form-input input-group-addon" min="0" placeholder="{dict.hours}">
......@@ -328,7 +332,9 @@ function saveSettings() {
{/await}
{/key}
</div>
{:else}
{:else if tab == 3}
<div>Coming soon...</div>
{:else if tab == 4}
<div class="empty bg-dark pt-3 pb-6" out:fade="{{ duration: 200 }}">
<div class="empty-icon" in:slide>
<i class="icon icon-2x icon-edit"></i>
......
......@@ -43,7 +43,9 @@
"hours": "Hours",
"minutes": "Minutes",
"seconds": "Seconds",
"about_timed_lock": "Enter the amount of hours, minutes and/or seconds you want the timed lock to last. All values are optional, and the default timeout is five seconds."
"about_timed_lock": "Enter the amount of hours, minutes and/or seconds you want the timed lock to last. All values are optional, and the default timeout is five seconds.",
"network": "Network",
"network_error": "Network error"
},
"es": {
"language": "Idioma",
......@@ -89,7 +91,9 @@
"hours": "Horas",
"minutes": "Minutos",
"seconds": "Segundos",
"about_timed_lock": "Introduce la cantidad de horas, minutos y/o segundos que quieres que tarde el bloqueo de pantalla. Todos los valores son opcionales, y la espera por defecto son cinco segundos."
"about_timed_lock": "Introduce la cantidad de horas, minutos y/o segundos que quieres que tarde el bloqueo de pantalla. Todos los valores son opcionales, y la espera por defecto son cinco segundos.",
"network": "Red",
"network_error": "Error de red"
},
"eo": {
"language": "Lingvo",
......@@ -135,6 +139,8 @@
"hours": "Horoj",
"minutes": "Minutoj",
"seconds": "Sekundoj",
"about_timed_lock": "Enigu la kvanto da horoj, minutoj kaj/aŭ sekundoj, kiuj vi volas, ke la tempata ŝlosado daŭros. Ĉiuj kampoj estas nedevigaj, kaj la defaŭlta tempo estas kvin sekundoj."
"about_timed_lock": "Enigu la kvanto da horoj, minutoj kaj/aŭ sekundoj, kiuj vi volas, ke la tempata ŝlosado daŭros. Ĉiuj kampoj estas nedevigaj, kaj la defaŭlta tempo estas kvin sekundoj.",
"network": "",
"network_error": ""
}
}
......@@ -52,7 +52,7 @@ String.prototype.capitalize = function() {
let net = new ServerAPI()
console.log(net)
net.getDailyMessage().then((d) => console.log(d))
net.login("username", "password").then((d) => console.log(d))
//net.getDailyMessage().then((d) => console.log(d))
//net.login("username", "password").then((d) => console.log(d))
export default svapp;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment