small organization, different port

This commit is contained in:
metacryst
2025-12-29 03:03:49 -06:00
parent 71984ddd67
commit a21e651484
5 changed files with 10 additions and 12 deletions

View File

@@ -25,6 +25,6 @@
</head> </head>
<body> <body>
<div class="draggable"></div> <div class="draggable"></div>
<webview src="http://localhost:80" style="width:100vw; height:100vh;"></webview> <webview src="http://localhost:10001" style="width:100vw; height:100vh;"></webview>
</body> </body>
</html> </html>

4
app.js
View File

@@ -33,7 +33,7 @@ class App {
win.setAlwaysOnTop(true, 'screen-saver', 1); // necessary so it doesn't bring you back out of full screen when spawned win.setAlwaysOnTop(true, 'screen-saver', 1); // necessary so it doesn't bring you back out of full screen when spawned
} }
win.loadFile('flame/index.html'); win.loadFile('app.html');
win.on("focus", () => { win.on("focus", () => {
win.setVibrancy("appearance-based"); // full colors win.setVibrancy("appearance-based"); // full colors
@@ -59,7 +59,7 @@ class App {
} }
spawnFlame(spawnForms) { spawnFlame(spawnForms) {
new Server(spawnForms) new Server(spawnForms, 10001)
} }
async spawnForms() { async spawnForms() {

View File

@@ -1,5 +1,5 @@
:root { :root {
--main: #BD410D; --main: #FFBB7C;
--accent: var(--tan); --accent: var(--tan);
--accent2: var(--brown); --accent2: var(--brown);
@@ -8,7 +8,8 @@
--green: #0B5538; --green: #0B5538;
--red: #BC1C02; --red: #BC1C02;
--brown: #c6a476; --brown: #c6a476;
--darkbrown: #60320c; --rust: #BD410D;
--darkbrown: #6A2C1C;
--darkred: #7f0b09; --darkred: #7f0b09;
--darkorange: #b15900; --darkorange: #b15900;
--orange: #FE9201; --orange: #FE9201;
@@ -18,7 +19,7 @@
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
:root { :root {
--main: #6A2C1C; --main: var(--darkbrown);
--accent: var(--tan); --accent: var(--tan);
--accent2: var(--green); --accent2: var(--green);
--accent3: #c74109 --accent3: #c74109

View File

@@ -7,8 +7,6 @@ class Home extends Shadow {
render() { render() {
ZStack(() => { ZStack(() => {
NavMenu()
switch(window.location.pathname) { switch(window.location.pathname) {
case "/": case "/":
HomePanel() HomePanel()

View File

@@ -82,7 +82,7 @@ export default class Server {
}) })
} }
constructor(spawnForms) { constructor(spawnForms, port) {
const app = express(); const app = express();
app.use(cors({ origin: '*' })); app.use(cors({ origin: '*' }));
app.use(express.json()); app.use(express.json());
@@ -100,11 +100,10 @@ export default class Server {
const server = http.createServer(app); const server = http.createServer(app);
initWebSocket(server); initWebSocket(server);
const PORT = 80; server.listen(port, () => {
server.listen(PORT, () => {
console.log("\n") console.log("\n")
console.log(chalk.yellow("**************Parchment****************")) console.log(chalk.yellow("**************Parchment****************"))
console.log(chalk.yellowBright(`Server is running on port ${PORT}: http://localhost`)); console.log(chalk.yellowBright(`Server is running on port ${port}: http://localhost`));
console.log(chalk.yellow("***************************************")) console.log(chalk.yellow("***************************************"))
console.log("\n") console.log("\n")
}); });