Update webapp
This commit is contained in:
parent
1f89ed75c1
commit
cfc7dfd21a
3 changed files with 9 additions and 20 deletions
15
dist/index.html
vendored
15
dist/index.html
vendored
|
@ -11,10 +11,10 @@
|
||||||
<meta name="description" content="A website that lets you take turns controlling online virtual machines with complete strangers!"/>
|
<meta name="description" content="A website that lets you take turns controlling online virtual machines with complete strangers!"/>
|
||||||
<!-- Opengraph shit -->
|
<!-- Opengraph shit -->
|
||||||
<meta property="og:type" content="website"/>
|
<meta property="og:type" content="website"/>
|
||||||
<meta property="og:title" content="CollabVM"/>
|
<meta property="og:title" content="BetterVM"/>
|
||||||
<meta property="og:url" content="https://computernewb.com/collab-vm/"/>
|
<meta property="og:url" content="https://usernamee.duckdns.org/better-vm/"/>
|
||||||
<meta property="og:description" content="A website that lets you take turns controlling online virtual machines with complete strangers!"/>
|
<meta property="og:description" content="A website that lets you take turns controlling online virtual machines with complete strangers!"/>
|
||||||
<meta property="og:site_name" content="Computernewb"/>
|
<meta property="og:site_name" content="BetterVM"/>
|
||||||
<!-- Using github for now until we have a canonical url -->
|
<!-- Using github for now until we have a canonical url -->
|
||||||
<meta property="og:image" content="https://raw.githubusercontent.com/computernewb/collab-vm-1.2-webapp/master/dist/desktop.png"/>
|
<meta property="og:image" content="https://raw.githubusercontent.com/computernewb/collab-vm-1.2-webapp/master/dist/desktop.png"/>
|
||||||
<!---->
|
<!---->
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
</div>
|
</div>
|
||||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<a class="navbar-brand" href="#">CollabVM</a>
|
<a class="navbar-brand" href="#">BetterVM</a>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
|
@ -63,15 +63,12 @@
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="https://computernewb.com/collab-vm/rules" class="nav-link"><i class="fa-solid fa-clipboard-check"></i> Rules</a>
|
<a href="https://computernewb.com/collab-vm/rules" class="nav-link"><i class="fa-solid fa-clipboard-check"></i> Rules</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<!--<li class="nav-item">
|
||||||
<a href="https://discord.gg/a4kqb4mGyX" class="nav-link"><i class="fa-brands fa-discord"></i> Discord</a>
|
<a href="https://discord.gg/a4kqb4mGyX" class="nav-link"><i class="fa-brands fa-discord"></i> Discord</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="https://reddit.com/r/collabvm" class="nav-link"><i class="fa-brands fa-reddit"></i> Subreddit</a>
|
<a href="https://reddit.com/r/collabvm" class="nav-link"><i class="fa-brands fa-reddit"></i> Subreddit</a>
|
||||||
</li>
|
</li>-->
|
||||||
<li class="nav-item">
|
|
||||||
<a href="https://computernewb.com/collab-vm/user-vm" class="nav-link"><i class="fa-solid fa-user"></i> UserVM</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,16 +1,7 @@
|
||||||
export const config = {
|
export const config = {
|
||||||
serverAddresses: [
|
serverAddresses: [
|
||||||
"wss://computernewb.com/collab-vm/vm0",
|
|
||||||
"wss://computernewb.com/collab-vm/vm1",
|
|
||||||
"wss://computernewb.com/collab-vm/vm2",
|
|
||||||
"wss://computernewb.com/collab-vm/vm3",
|
|
||||||
"wss://computernewb.com/collab-vm/vm4",
|
|
||||||
"wss://computernewb.com/collab-vm/vm5",
|
|
||||||
"wss://computernewb.com/collab-vm/vm6",
|
|
||||||
"wss://computernewb.com/collab-vm/vm7",
|
|
||||||
"wss://computernewb.com/collab-vm/vm8",
|
|
||||||
],
|
],
|
||||||
chatSound: "https://computernewb.com/collab-vm/notify.ogg",
|
chatSound: "https://usernamee.duckdns.org/better-vm/notify.ogg",
|
||||||
// What XSS implementation the server uses
|
// What XSS implementation the server uses
|
||||||
// 0: No XSS (cvm1.2.11)
|
// 0: No XSS (cvm1.2.11)
|
||||||
// 1: Internal fork style (cvm1.ts, global opcode 21)
|
// 1: Internal fork style (cvm1.ts, global opcode 21)
|
||||||
|
|
|
@ -877,7 +877,8 @@ usernameSpan.addEventListener('click', () => {
|
||||||
// Load all vms
|
// Load all vms
|
||||||
(async () => {
|
(async () => {
|
||||||
var p = [];
|
var p = [];
|
||||||
config.serverAddresses.forEach(v => p.push(multicollab(v)));
|
const {nodes} = await fetch('/better-vm/nodelist/nodelist.json').then(x=>x.json());
|
||||||
|
[...config.serverAddresses,...nodes].forEach(v => p.push(multicollab(v)));
|
||||||
await Promise.all(p);
|
await Promise.all(p);
|
||||||
var vm = vms.find(v => v.id === window.location.hash.substring(1));
|
var vm = vms.find(v => v.id === window.location.hash.substring(1));
|
||||||
if (vm)
|
if (vm)
|
||||||
|
|
Loading…
Reference in a new issue