@ -22,6 +22,7 @@
const param = new URLSearchParams($querystring);
let ca = param.get("ca");
let go_back = true;
let wait = false;
let top;
const api_url = import.meta.env.PROD
@ -29,6 +30,7 @@
: "http://192.168.192.2:3031/api/v1/";
async function register() {
wait = true;
const opts = {
method: "get",
};
@ -46,6 +48,7 @@
await success(result);
}
} catch (e) {
wait = false;
error = e.message;
}
}
@ -60,6 +63,7 @@
let window_api = await import("@tauri-apps/plugin-window");
let main = window_api.Window.getByLabel("main");
if (main) {
wait = true;
await main.emit("error", result);
} else {
await window_api.getCurrent().close();
@ -70,6 +74,7 @@
go_back = false;
window.location.href = result.url;
} else {
wait = true;
window.history.go(-1);
}
}
@ -103,6 +108,32 @@
};
< / script >
{ #if wait }
< div class = " max-w-6xl lg:px-8 mx-auto px-4 text-primary-700" >
Please wait...
< svg
class="animate-spin mt-10 h-14 w-14 mx-auto"
xmlns="http://www.w3.org/2000/svg"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
>
< circle
class="opacity-25"
cx="12"
cy="12"
r="10"
stroke="currentColor"
stroke-width="4"
/>
< path
class="opacity-75"
fill="currentColor"
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
/>
< / svg >
< / div >
{ : else }
< main class = "container3" bind:this = { top } >
< div class = "row" >
< Logo class = "logo block h-24" alt = "NextGraph Logo" / >
@ -149,12 +180,14 @@
< div class = " max-w-6xl lg:px-8 mx-auto px-4" >
< p class = "max-w-xl md:mx-auto lg:max-w-2xl" >
You would like to choose < b > { domain } </ b > as your Broker Service
Provider.< br / > Please read carefully the Terms of Service here below,
before accepting them.
Provider.< br / > Please read carefully the Terms of Service here
below, before accepting them.
< / p >
< / div >
{ /if }
< div class = "px-4 pt-5 mx-auto max-w-6xl lg:px-8 lg:pt-10 dark:bg-slate-800" >
< div
class="px-4 pt-5 mx-auto max-w-6xl lg:px-8 lg:pt-10 dark:bg-slate-800"
>
< div class = "max-w-xl md:mx-auto sm:text-center lg:max-w-2xl" >
< h2 class = "pb-5 text-xl" > { domain } Terms of Service</ h2 >
@ -177,8 +210,8 @@
/>
< / svg >
< span
>Our servers are located in Germany, and we comply with the GDPR
regulation.< /span
>Our servers are located in Germany, and we comply with the
GDPR regulation.< /span
>
< / li >
< li class = "flex space-x-3" >
@ -218,8 +251,9 @@
< / svg >
< span
>All the data you exchange with us while using the broker is
end-to-end encrypted and we do not have access to your decryption
keys, meaning that we cannot see the content of your documents.< /span
end-to-end encrypted and we do not have access to your
decryption keys, meaning that we cannot see the content of your
documents.< /span
>
< / li >
< li class = "flex space-x-3" >
@ -241,16 +275,16 @@
< span
>We do not log any private information about you (nor IP, nor
country, nor statistics of any kind). Only your UserId is kept,
together with the list of devices (clientId) you use to connect to
the broker. We collect general purpose information about your
together with the list of devices (clientId) you use to connect
to the broker. We collect general purpose information about your
device (OS version, browser version, and if you use the app, the
version and date of last update). We do not have access to any
unique tracking identifier of your device (like Android MAID or
iPhone IDFA). We could nevertheless be asked by law enforcement
authorities, depending on the jurisdiction of the server, to log
the IP you use when connecting to the broker, and/or to provide
them with the encrypted content you have stored on our servers. If
you prefer to avoid that eventually, please refrain from any
them with the encrypted content you have stored on our servers.
If you prefer to avoid that eventually, please refrain from any
illegal activity while using this broker.< /span
>
< / li >
@ -274,8 +308,8 @@
You can delete your account with us at any time by going to the
link < a target = "_blank" href = "https://account. { domain } /#/delete"
>https://account.{ domain } /#/delete< /a
> or by entering in your NextGraph application and selecting the menu,
then Accounts, then under broker "delete registration"< /span
> or by entering in your NextGraph application and selecting the
menu, then Accounts, then under broker "delete registration"< /span
>
< / li >
< li class = "flex space-x-3" >
@ -295,10 +329,12 @@
/>
< / svg >
< span
>Registration is free of charge. And it would be very nice of you
if you wanted to donate a small amount to help us cover the fees
we have to pay for operating the servers. Here is the donation
link: < a target = "_blank" href = "https://nextgraph.org/donate"
>Registration is free of charge. And it would be very nice of
you if you wanted to donate a small amount to help us cover the
fees we have to pay for operating the servers. Here is the
donation link: < a
target="_blank"
href="https://nextgraph.org/donate"
>https://nextgraph.org/donate< /a
>
< / span >
@ -339,3 +375,4 @@
{ /if }
{ /if }
< / main >
{ /if }