Skip to content
This repository was archived by the owner on Jul 3, 2021. It is now read-only.

Commit f6d9343

Browse files
authored
Merge pull request #94 from jeverd/staging
RELEASE v0.1
2 parents 6363ba2 + 237bc37 commit f6d9343

39 files changed

Lines changed: 214 additions & 376 deletions

.circleci/config.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ jobs:
66
- checkout
77
- setup_remote_docker
88
- run: |
9-
TAG=0.1.$CIRCLE_BUILD_NUM
10-
docker build -t jeverd/liteboard-express .
9+
TAG=0.1.$CIRCLE_BUILD_NUM_$CIRCLE_BRANCH
10+
docker build -t jeverd/liteboard-express:$TAG .
1111
echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin # (4)
12-
docker push jeverd/liteboard-express
12+
docker push jeverd/liteboard-express:$TAG
1313
tests:
1414
docker:
1515
- image: circleci/node:10.15.0
@@ -36,8 +36,7 @@ workflows:
3636
filters:
3737
branches:
3838
only:
39-
- dev
40-
- switch-device
41-
- jawad/Staging
39+
- staging
40+
- master
4241
- tests
4342

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,5 @@ config/.env
120120
/docker/docker-config/janus/janus.transport.http.jcfg
121121
/docker/docker-config/nginx.conf
122122
config/.env
123+
/docker/production.yml;
123124

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Liteboard is a free, browser-based lecturing platform for anyone who wants to qu
3131
<img src="public/images/github-readme-main.png"/>
3232
</div>
3333

34-
Liteboard is powered by WebRTC and uses the [Janus](https://github.com/meetecho/janus-gateway) implementation of a Selective Forwarding Unit (SFU) to allow multiple participants per lecture while ensuring the lowest latency available on browsers. We host our own TURN server to guarantee support for users in any kind of network.
34+
Liteboard is powered by WebRTC and uses the [Janus](https://github.com/meetecho/janus-gateway) implementation of a Selective Forwarding Unit (SFU) to allow multiple participants per lecture while ensuring the lowest latency available on browsers. We host our own TURN server to guarantee support for users in any kind of network. Read about us in [this university article](https://falauniversidades.com.br/projeto-gratuito-simplifica-o-acesso-as-aulas-on-line/).
3535

3636
## Contents
3737

@@ -134,7 +134,7 @@ We encourge anyone interested in contributing to our project to open Pull Reques
134134
<td align="center"><a href="https://github.com/lnogueir">
135135
<img src="https://avatars0.githubusercontent.com/u/48890798?s=460&u=6c62615de3bc32628e8aec4e8a4c320fe6d77869&v=4" width="100px;" alt=""/><br /><sub><b>Lucas Nogueira</b></sub></a><br />
136136
<a href="https://github.com/jeverd/lecture-experience/commits?author=lnogueir" title="Commits">📖</a>
137-
<a href="https://lucasnogueira.ca/">🔗</a>
137+
<a href="https://lnogueir.me/">🔗</a>
138138
<a href="https://devpost.com/lnogueir">💻</a>
139139
</td>
140140
<td align="center"><a href="https://github.com/lukasmuller10"><img src="https://avatars3.githubusercontent.com/u/66929827?s=460&u=34131fcf10cbd8918da4fa95ac807c4b75e36714&v=4" width="100px;" alt=""/><br /><sub><b>Lukas Müller</b></sub></a><br /><a href="https://github.com/jeverd/lecture-experience/commits?author=lukasmuller10" title="Commits">📖</a>
@@ -156,6 +156,7 @@ We encourge anyone interested in contributing to our project to open Pull Reques
156156
</td>
157157
<td align="center"><a href="https://github.com/michaelfromyeg"><img src="https://avatars1.githubusercontent.com/u/35978975?s=460&u=05153ea0426075ea9edf9960bdd2443e167b31ce&v=4" width="100px;" alt=""/><br /><sub><b>Michael DeMarco</b></sub></a><br /><a href="https://github.com/jeverd/lecture-experience/commits?author=michaelfromyeg" title="Commits">📖</a>
158158
<a href="https://michaeldemar.co/">🔗</a>
159+
<a href="https://www.linkedin.com/in/michaelfromyeg/">💼</a>
159160
</td>
160161
</tr>
161162
</table>

config/example.prod.env

Lines changed: 0 additions & 84 deletions
This file was deleted.

docker/production.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

public/create.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,4 +216,6 @@
216216
</script>
217217
</body>
218218

219+
220+
219221
</html>

public/css/canvas.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ div.messages.active-chat{
12201220
.message-container {
12211221
position: relative;
12221222
bottom: 0;
1223-
max-height: 240px;
1223+
max-height: calc(300px + 10vh - 65px);
12241224
overflow-y: auto;
12251225
word-wrap: break-word;
12261226
margin: auto;
@@ -1239,8 +1239,10 @@ div.messages.active-chat{
12391239
}
12401240

12411241
.preview{
1242-
position: relative;
1243-
top: -3px;
1242+
position: absolute;
1243+
bottom: 0;
1244+
width: 100%;
1245+
z-index: 1;
12441246
display: flex;
12451247
flex: 1;
12461248
}

public/css/lecture.css

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ body {
1111
margin: 0;
1212
}
1313

14+
#whiteboard{
15+
background-color: white !important;
16+
}
17+
1418
.message-container::-webkit-scrollbar,
1519
.page-list::-webkit-scrollbar {
1620
width: 7px;
@@ -1271,25 +1275,12 @@ div.messages.active-chat{
12711275
left:-100px;
12721276
}
12731277

1274-
/*preview*/
1275-
1276-
.preview{
1277-
position: relative;
1278-
top: -3px;
1279-
display: flex;
1280-
flex: 1;
1281-
}
1282-
1283-
.preview-content{
1284-
padding-top: 10px;
1285-
padding-right: 30px;
1286-
overflow: auto;
1287-
}
1288-
12891278
/*Preview*/
12901279
.preview{
1291-
position: relative;
1292-
top: -3px;
1280+
position: absolute;
1281+
bottom: 0;
1282+
width: 100%;
1283+
z-index: 1;
12931284
display: flex;
12941285
flex: 1;
12951286
background-color: rgb(53, 53, 73);

public/js/chatUtils.js

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,10 @@
1-
import { displayImagePopUpOnClick } from '../utility.js';
1+
import { displayImagePopUpOnClick, downloadFile } from '../utility.js';
22
import Attachment from './classes/Attachment.js';
33

4-
/* eslint-disable no-undef */
5-
function downloadFile(file, fileName) {
6-
const messageContainer = document.getElementById('message-container');
7-
const messageElement = document.createElement('tr');
8-
messageElement.style.display = 'none';
9-
let fileElement = null;
10-
fileElement = document.createElement('a');
11-
fileElement.href = file;
12-
fileElement.download = fileName;
13-
fileElement.innerText = fileName;
14-
messageElement.append(fileElement);
15-
messageContainer.append(messageElement);
16-
fileElement.click();
17-
$(messageElement).remove();
18-
}
19-
204
export default function initializeChat(chat) {
215
const fileInput = document.getElementById('file-input');
226

237
fileInput.addEventListener('change', (e) => {
24-
document.querySelector('#message-container').appendChild(document.querySelector('#preview'));
258
const file = e.target.files[0];
269
const reader = new FileReader();
2710
reader.onload = function (fileLoadedEvent) {

public/js/classes/Chat.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ export default class Chat {
6868
file.append(imageName);
6969
tableData.append(file);
7070
}
71-
72-
document.getElementById('file-input').value = '';
73-
$('#file-preview').hide();
74-
$('#name-file').html('');
75-
$('#image-preview').attr('src', '');
76-
$('#preview').hide();
77-
$('#close-preview').css('right', '15px');
71+
if (!isIncoming) {
72+
$('#file-preview').hide();
73+
$('#name-file').html('');
74+
$('#image-preview').attr('src', '');
75+
$('#close-preview').css('right', '15px');
76+
$('#preview').hide();
77+
}
7878
}
7979
tableData.append(messageText);
8080
messageElement.append(tableData);

0 commit comments

Comments
 (0)