Restructuring of previous project files

This commit is contained in:
shockrah
2020-12-06 14:29:56 -08:00
parent fe96a748ba
commit cc1e3e6bc3
8 changed files with 24 additions and 55 deletions

View File

@@ -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;

View File

@@ -1 +0,0 @@
{"username":null}

View File

@@ -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>

View File

@@ -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>

View File

@@ -1,13 +0,0 @@
/* Overrides for the welcome page background stuff */
/* For now we'll just worry about dark mode
Light mode gets fucked here lmao
*/
$top-grey: #424242;
$back-grey: #303030;
$bar-grey: #212121;
body {
background: $back-grey;
}

View File

@@ -1,24 +0,0 @@
@import 'general';
$text-color: white;
label {
color: $text-color;
}
h1 {
color: $text-color;
display: block;
}
.center {
margin: 0 auto;
text-align: center;
}
::placeholder {
color: $back-grey;
}
input {
margin-top: 0.5em;
margin-bottom: 0.5em;
}

View File

@@ -1,24 +0,0 @@
@import 'general';
$text-color: white;
label {
color: $text-color;
}
h1 {
color: $text-color;
display: block;
}
.center {
margin: 0 auto;
text-align: center;
}
::placeholder {
color: $back-grey;
}
input {
margin-top: 0.5em;
margin-bottom: 0.5em;
}