Update webapp

This commit is contained in:
usernameeReal 2023-07-24 12:59:57 +00:00
parent 1f89ed75c1
commit cfc7dfd21a
3 changed files with 9 additions and 20 deletions

15
dist/index.html vendored
View file

@ -11,10 +11,10 @@
<meta name="description" content="A website that lets you take turns controlling online virtual machines with complete strangers!"/>
<!-- Opengraph shit -->
<meta property="og:type" content="website"/>
<meta property="og:title" content="CollabVM"/>
<meta property="og:url" content="https://computernewb.com/collab-vm/"/>
<meta property="og:title" content="BetterVM"/>
<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:site_name" content="Computernewb"/>
<meta property="og:site_name" content="BetterVM"/>
<!-- 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"/>
<!---->
@ -48,7 +48,7 @@
</div>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<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">
<span class="navbar-toggler-icon"></span>
</button>
@ -63,15 +63,12 @@
<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>
</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>
</li>
<li class="nav-item">
<a href="https://reddit.com/r/collabvm" class="nav-link"><i class="fa-brands fa-reddit"></i> Subreddit</a>
</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>
</li>-->
</ul>
</div>
</div>

View file

@ -1,16 +1,7 @@
export const config = {
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
// 0: No XSS (cvm1.2.11)
// 1: Internal fork style (cvm1.ts, global opcode 21)

View file

@ -877,7 +877,8 @@ usernameSpan.addEventListener('click', () => {
// Load all vms
(async () => {
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);
var vm = vms.find(v => v.id === window.location.hash.substring(1));
if (vm)