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