|
|
@ -256,30 +256,21 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async function getWallet() { |
|
|
|
// async function getWallet() { |
|
|
|
const opts = { |
|
|
|
// const opts = { |
|
|
|
method: "get", |
|
|
|
// method: "get", |
|
|
|
}; |
|
|
|
// }; |
|
|
|
const response = await fetch( |
|
|
|
// const response = await fetch( |
|
|
|
api_url + "bootstrap/I8tuoVE-LRH1wuWQpDBPivlSX8Wle39uHSL576BTxsk", |
|
|
|
// api_url + "bootstrap/I8tuoVE-LRH1wuWQpDBPivlSX8Wle39uHSL576BTxsk", |
|
|
|
opts |
|
|
|
// opts |
|
|
|
); |
|
|
|
// ); |
|
|
|
const result = await response.json(); |
|
|
|
// const result = await response.json(); |
|
|
|
console.log("Result:", result); |
|
|
|
// console.log("Result:", result); |
|
|
|
} |
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
onMount(async () => await bootstrap()); |
|
|
|
onMount(async () => await bootstrap()); |
|
|
|
|
|
|
|
|
|
|
|
ready = false; |
|
|
|
ready = false; |
|
|
|
// { |
|
|
|
|
|
|
|
// user: { |
|
|
|
|
|
|
|
// Ed25519PubKey: [ |
|
|
|
|
|
|
|
// 141, 114, 111, 29, 59, 133, 182, 172, 177, 211, 238, 224, 62, 208, 206, |
|
|
|
|
|
|
|
// 18, 226, 219, 118, 229, 184, 76, 204, 29, 194, 228, 248, 186, 15, 113, |
|
|
|
|
|
|
|
// 125, 119, |
|
|
|
|
|
|
|
// ], |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// }; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const unsub_register = () => { |
|
|
|
const unsub_register = () => { |
|
|
|
if (unsub_register_accepted) unsub_register_accepted(); |
|
|
|
if (unsub_register_accepted) unsub_register_accepted(); |
|
|
@ -375,19 +366,25 @@ |
|
|
|
}; |
|
|
|
}; |
|
|
|
const enterINVITE = (event) => {}; |
|
|
|
const enterINVITE = (event) => {}; |
|
|
|
const enterQRcode = (event) => {}; |
|
|
|
const enterQRcode = (event) => {}; |
|
|
|
const displayNGbox = async (event) => { |
|
|
|
|
|
|
|
|
|
|
|
const displayPopup = async (url, title) => { |
|
|
|
if (!tauri_platform || tauri_platform == "android") { |
|
|
|
if (!tauri_platform || tauri_platform == "android") { |
|
|
|
window.open(LINK_NG_BOX, "_blank").focus(); |
|
|
|
window.open(url, "_blank").focus(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
await ng.open_window(LINK_NG_BOX, "viewer", "Own your NG-Box"); |
|
|
|
await ng.open_window(url, "viewer", title); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
const displayNGbox = async (event) => { |
|
|
|
|
|
|
|
await displayPopup(LINK_NG_BOX, "Own your NG-Box"); |
|
|
|
|
|
|
|
}; |
|
|
|
const displaySelfHost = async (event) => { |
|
|
|
const displaySelfHost = async (event) => { |
|
|
|
if (!tauri_platform || tauri_platform == "android") { |
|
|
|
await displayPopup(LINK_SELF_HOST, "Self-host a broker"); |
|
|
|
window.open(LINK_SELF_HOST, "_blank").focus(); |
|
|
|
}; |
|
|
|
} else { |
|
|
|
const tos = async () => { |
|
|
|
await ng.open_window(LINK_SELF_HOST, "viewer", "Self-host a broker"); |
|
|
|
await displayPopup( |
|
|
|
} |
|
|
|
"https://nextgraph.one/#/tos", |
|
|
|
|
|
|
|
"Terms of Service NextGraph.one" |
|
|
|
|
|
|
|
); |
|
|
|
}; |
|
|
|
}; |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
@ -1364,8 +1361,11 @@ |
|
|
|
Only you will be able to download it with a special link. You would have |
|
|
|
Only you will be able to download it with a special link. You would have |
|
|
|
to keep this link safely though. By selecting this option, you agree |
|
|
|
to keep this link safely though. By selecting this option, you agree |
|
|
|
to the |
|
|
|
to the |
|
|
|
<a target="_blank" href="https://nextgraph.one/#/tos" |
|
|
|
<span |
|
|
|
>Terms of Service of our cloud</a |
|
|
|
style="font-weight: 500;cursor: pointer; color: #646cff;" |
|
|
|
|
|
|
|
tabindex="0" |
|
|
|
|
|
|
|
on:keypress={tos} |
|
|
|
|
|
|
|
on:click={tos}>Terms of Service of our cloud</span |
|
|
|
>. |
|
|
|
>. |
|
|
|
<br /> |
|
|
|
<br /> |
|
|
|
<Toggle disabled class="mt-3" bind:checked={options.cloud} |
|
|
|
<Toggle disabled class="mt-3" bind:checked={options.cloud} |
|
|
@ -1396,8 +1396,11 @@ |
|
|
|
do so, we will keep your wallet ID and some information about your |
|
|
|
do so, we will keep your wallet ID and some information about your |
|
|
|
broker on our cloud servers. If you prefer to opt out, just uncheck |
|
|
|
broker on our cloud servers. If you prefer to opt out, just uncheck |
|
|
|
this option. By selecting this option, you agree to the |
|
|
|
this option. By selecting this option, you agree to the |
|
|
|
<a target="_blank" href="https://nextgraph.one/#/tos" |
|
|
|
<span |
|
|
|
>Terms of Service of our cloud</a |
|
|
|
style="font-weight: 500;cursor: pointer; color: #646cff;" |
|
|
|
|
|
|
|
tabindex="0" |
|
|
|
|
|
|
|
on:keypress={tos} |
|
|
|
|
|
|
|
on:click={tos}>Terms of Service of our cloud</span |
|
|
|
>. |
|
|
|
>. |
|
|
|
<br /> |
|
|
|
<br /> |
|
|
|
<Toggle disabled class="mt-3" bind:checked={options.bootstrap} |
|
|
|
<Toggle disabled class="mt-3" bind:checked={options.bootstrap} |
|
|
|