Restructuring of previous project files
This commit is contained in:
parent
fe96a748ba
commit
cc1e3e6bc3
18
freechat-client/pages/index.html
Normal file
18
freechat-client/pages/index.html
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<!-- Keep in mind basically all the major components of the app are held together here -->
|
||||||
|
<!-- The reason for this is because I want to keep the electron app as simple as I can get it -->
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
|
||||||
|
<link rel="stylesheet" href="../../libs/css/pure.css"/>
|
||||||
|
<link rel="stylesheet" href="../css/style.css"/>
|
||||||
|
<title>Freechat</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="local-stream"></div>
|
||||||
|
<div id="remote-stream"></div>
|
||||||
|
<div id="servers"><!-- Container for the "welcome page"--></div>
|
||||||
|
<div id="messages"></div>
|
||||||
|
<div id="channels"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -1,6 +1,10 @@
|
|||||||
@import 'general';
|
@import 'general';
|
||||||
|
|
||||||
$text-color: white;
|
$text-color: whitesmoke;
|
||||||
|
|
||||||
|
body {
|
||||||
|
color: $text-color;
|
||||||
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
color: $text-color;
|
color: $text-color;
|
@ -1,23 +0,0 @@
|
|||||||
// Module handles dealing with all the rtc bs that we need to deal with when
|
|
||||||
// doing rtc things
|
|
||||||
// http2 once auth becomes a thing -> save on them tls handshakes
|
|
||||||
const http = require('http')
|
|
||||||
const io = require('socket.io-client')
|
|
||||||
|
|
||||||
|
|
||||||
var room_id;
|
|
||||||
var local_stream;
|
|
||||||
var remote_stream; // cat streams later(?)
|
|
||||||
var rtc_conn;
|
|
||||||
const iceServers = {
|
|
||||||
'iceServers': [
|
|
||||||
{ 'urls': 'stun:stun.services.mozilla.com'},
|
|
||||||
{ 'urls': 'stun:stun.l.google.com:19302'}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
// don't really care about video streams
|
|
||||||
var stream_constraints = { audio: true, video : false }
|
|
||||||
|
|
||||||
var is_caller;
|
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
{"username":null}
|
|
@ -1,17 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8"/>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
|
|
||||||
<link rel="stylesheet" href="../../libs/css/pure.css"/>
|
|
||||||
<link rel="stylesheet" href="../css/welcome.css"/>
|
|
||||||
<title>Freechat</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<!-- For sake of argument we'll keep a list of connected clients in the DOM for now -->
|
|
||||||
<div>
|
|
||||||
<h1>User list</h1>
|
|
||||||
<div id="user-list"></div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
<script src="../js/rtc.js"></script>
|
|
||||||
</html>
|
|
@ -1,12 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8"/>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
|
|
||||||
<link rel="stylesheet" href="../resources/css/pure.css"/>
|
|
||||||
<link rel="stylesheet" href="../src/css/settings.css"/>
|
|
||||||
<title>Settings</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<p>this is the settings page</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in New Issue
Block a user