-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
212 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"files": { | ||
"main.css": "/static/css/main.4c325919.css", | ||
"main.js": "/static/js/main.29591b00.js", | ||
"main.js": "/static/js/main.90cbbf6e.js", | ||
"static/js/453.d855a71b.chunk.js": "/static/js/453.d855a71b.chunk.js", | ||
"index.html": "/index.html", | ||
"main.4c325919.css.map": "/static/css/main.4c325919.css.map", | ||
"main.29591b00.js.map": "/static/js/main.29591b00.js.map", | ||
"main.90cbbf6e.js.map": "/static/js/main.90cbbf6e.js.map", | ||
"453.d855a71b.chunk.js.map": "/static/js/453.d855a71b.chunk.js.map" | ||
}, | ||
"entrypoints": [ | ||
"static/css/main.4c325919.css", | ||
"static/js/main.29591b00.js" | ||
"static/js/main.90cbbf6e.js" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/matterbridge 32x32.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Matterbridge</title><link rel="manifest" href="/manifest.json"/><script defer="defer" src="/static/js/main.29591b00.js"></script><link href="/static/css/main.4c325919.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/matterbridge 32x32.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Matterbridge</title><link rel="manifest" href="/manifest.json"/><script defer="defer" src="/static/js/main.90cbbf6e.js"></script><link href="/static/css/main.4c325919.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> |
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
frontend/build/static/js/main.29591b00.js → frontend/build/static/js/main.90cbbf6e.js
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import React, { useEffect, useState } from 'react'; | ||
import WebSocketComponent from './WebSocketComponent'; | ||
|
||
export const MatterbridgeInfoContext = React.createContext(); | ||
|
||
function Log() { | ||
const [host, setHost] = useState(null); | ||
const [port, setPort] = useState(null); | ||
|
||
useEffect(() => { | ||
// Fetch wss host | ||
fetch('/api/wsshost') | ||
.then(response => response.json()) | ||
.then(data => { console.log('/api/wsshost:', data.host); setHost(data.host); localStorage.setItem('host', data.host); }) | ||
.catch(error => console.error('Error fetching wsshost:', error)); | ||
|
||
// Fetch wss port | ||
fetch('/api/wssport') | ||
.then(response => response.json()) | ||
.then(data => { console.log('/api/wssport:', data.port); setPort(data.port); localStorage.setItem('port', data.port); }) | ||
.catch(error => console.error('Error fetching wssport:', error)); | ||
}, []); // The empty array causes this effect to run only once | ||
|
||
if (host === null || port === null) { | ||
return <div>Loading...</div>; | ||
} | ||
return ( | ||
<div style={{ display: 'flex', flexDirection: 'column', height: 'calc(100vh - 60px - 40px)', width: 'calc(100vw - 40px)', gap: '10px' , margin: '0', padding: '0' }}> | ||
<h3>Logs:</h3> | ||
<div style={{ flex: '1', overflow: 'auto', margin: '0px', padding: '0px' }}> | ||
<WebSocketComponent host={host} port={port} height={300}/> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default Log; | ||
/* | ||
<div style={{ display: 'flex', flex: 1, flexBasis: 'auto', flexDirection: 'column', height: 'calc(100vh - 60px - 40px)', width: 'calc(100vw - 40px)', gap: '10px' , margin: '0', padding: '0' }}> | ||
<div style={{ display: 'flex', flexDirection: 'row', flex: '0 0 auto' }}> | ||
<h3>Logs:</h3> | ||
</div> | ||
<div style={{ display: 'flex', flexDirection: 'row', flex: '1 1 auto', margin: '0px', padding: '0px', overflow: 'auto' }}> | ||
<WebSocketComponent host={host} port={port} height={300}/> | ||
</div> | ||
</div> | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.