This commit is contained in:
metacryst
2026-01-13 17:24:52 -06:00
parent c3f0d8d70d
commit adf25488e4
9 changed files with 47 additions and 160 deletions

View File

@@ -1,6 +1,6 @@
import "./LocationList.js"
import "./Sidebar.js"
import "./MainPanel.js"
import "./components/LocationList.js"
import "./components/Sidebar.js"
import "./components/MainPanel.js"
class Home extends Shadow {
render() {

View File

@@ -1,9 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Blockcatcher</title>
<title>Blockcatcher Admin</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="/_/icons/logo.svg">
<link rel="icon" href="/_/icons/runner.svg">
<link rel="stylesheet" href="/_/code/styles.css">
<script src="/_/code/quill.js"></script>
<script type="module" src="/index.js"></script>

View File

@@ -1,5 +1,5 @@
import ConnectionHandler from "./ws/Connection.js"
window.ConnectionHandler = new ConnectionHandler()
import "./components/Home.js"
import "./Home.js"
Home()

View File

@@ -10,7 +10,7 @@ class Connection {
init() {
if(window.location.hostname === "localhost") {
this.ws = new WebSocket("ws://" + "localhost:3008")
this.ws = new WebSocket("ws://" + "localhost:3009")
} else {
this.ws = new WebSocket("wss://" + window.location.hostname + window.location.pathname)
}