+
+
{this.fullscreen.fullscreenEnabled && (
+ >
+ { this.state.fullscreen ?
+
+ :
+
+ }
+
)}
{this.props.children}
@@ -114,20 +186,20 @@ class NewWindow extends React.PureComponent
else if (center === 'screen')
{
const screenLeft =
- window.screenLeft !== undefined ? window.screenLeft : screen.left;
+ window.screenLeft !== undefined ? window.screenLeft : window.screen.left;
const screenTop =
- window.screenTop !== undefined ? window.screenTop : screen.top;
+ window.screenTop !== undefined ? window.screenTop : window.screen.top;
const width = window.innerWidth
? window.innerWidth
: document.documentElement.clientWidth
? document.documentElement.clientWidth
- : screen.width;
+ : window.screen.width;
const height = window.innerHeight
? window.innerHeight
: document.documentElement.clientHeight
? document.documentElement.clientHeight
- : screen.height;
+ : window.screen.height;
features.left = (width / 2) - (features.width / 2) + screenLeft;
features.top = (height / 2) - (features.height / 2) + screenTop;
@@ -203,7 +275,8 @@ NewWindow.propTypes = {
onUnload : PropTypes.func,
onBlock : PropTypes.func,
center : PropTypes.oneOf([ 'parent', 'screen' ]),
- copyStyles : PropTypes.bool
+ copyStyles : PropTypes.bool,
+ classes : PropTypes.object.isRequired
};
function copyStyles(source, target)
@@ -283,4 +356,4 @@ function toWindowFeatures(obj)
.join(',');
}
-export default NewWindow;
+export default withStyles(styles)(NewWindow);
diff --git a/app/lib/components/VideoWindow/VideoWindow.jsx b/app/src/components/VideoWindow/VideoWindow.js
similarity index 95%
rename from app/lib/components/VideoWindow/VideoWindow.jsx
rename to app/src/components/VideoWindow/VideoWindow.js
index ce5ab01..f7bd796 100644
--- a/app/lib/components/VideoWindow/VideoWindow.jsx
+++ b/app/src/components/VideoWindow/VideoWindow.js
@@ -3,7 +3,7 @@ import { connect } from 'react-redux';
import NewWindow from './NewWindow';
import PropTypes from 'prop-types';
import * as appPropTypes from '../appPropTypes';
-import * as stateActions from '../../redux/stateActions';
+import * as stateActions from '../../actions/stateActions';
import FullView from '../VideoContainers/FullView';
const VideoWindow = (props) =>
diff --git a/app/lib/components/appPropTypes.js b/app/src/components/appPropTypes.js
similarity index 100%
rename from app/lib/components/appPropTypes.js
rename to app/src/components/appPropTypes.js
diff --git a/app/lib/cookiesManager.js b/app/src/cookiesManager.js
similarity index 100%
rename from app/lib/cookiesManager.js
rename to app/src/cookiesManager.js
diff --git a/app/resources/images/avatar-empty.jpeg b/app/src/images/avatar-empty.jpeg
similarity index 100%
rename from app/resources/images/avatar-empty.jpeg
rename to app/src/images/avatar-empty.jpeg
diff --git a/app/src/images/background.svg b/app/src/images/background.svg
new file mode 100644
index 0000000..e5006e9
--- /dev/null
+++ b/app/src/images/background.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/resources/images/buddy.svg b/app/src/images/buddy.svg
similarity index 100%
rename from app/resources/images/buddy.svg
rename to app/src/images/buddy.svg
diff --git a/app/resources/images/icon-hand-black.svg b/app/src/images/icon-hand-black.svg
similarity index 100%
rename from app/resources/images/icon-hand-black.svg
rename to app/src/images/icon-hand-black.svg
diff --git a/app/resources/images/icon-hand-white.svg b/app/src/images/icon-hand-white.svg
similarity index 100%
rename from app/resources/images/icon-hand-white.svg
rename to app/src/images/icon-hand-white.svg
diff --git a/app/src/index.css b/app/src/index.css
new file mode 100644
index 0000000..4cfd335
--- /dev/null
+++ b/app/src/index.css
@@ -0,0 +1,69 @@
+:root {
+ --background: url('./images/background.svg');
+ --background-color: rgba(114, 119, 143, 1.0);
+
+ --circle-button-color: rgba(255, 255, 255, 0.3);
+ --circle-button-toggled-color: rgba(255, 255, 255, 0.7);
+ --circle-button-unsupported-color: rgba(212, 34, 65, 0.7);
+ --circle-button-diabled-color: rgba(255, 255, 255, 0.5);
+ --circle-button-size: 2.5em;
+
+ --media-control-button-color: rgba(255, 255, 255, 0.85);
+ --media-control-botton-on: rgba(255, 255, 255, 0.7);
+ --media-control-botton-off: rgba(212, 34, 65, 0.7);
+ --media-control-botton-disabled: rgba(255, 255, 255, 0.5);
+ --media-control-button-size: 1.5em;
+
+ --me-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12);
+ --me-border: 1px solid rgba(255, 255, 255, 0.15);
+ --me-width: 20vmin;
+ --me-height: 15vmin;
+
+ --peer-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12);
+ --peer-border: 1px solid rgba(255, 255, 255, 0.15);
+ --peer-empty-avatar: url('./images/buddy.svg');
+ --peer-bg-color: rgba(42, 75, 88, 0.9);
+ --peer-video-bg-color: rgba(0, 0, 0, 0.75);
+
+ --chat-message-color: rgba(0, 0, 0, 0.1);
+ --chat-input-bg-color: rgba(255, 255, 255, 1.0);
+ --chat-input-text-color: rgba(0, 0, 0, 1.0);
+ --chat-send-bg-color: rgba(170, 238, 255, 1.0);
+
+ --filesharing-bg-color: rgba(170, 238, 255, 1.0);
+
+ --notification-info-bg-color: rgba(10, 29, 38, 0.75);
+ --notification-info-text-color: rgba(255, 255, 255, 0.65);
+ --notification-error-bg-color: rgba(255, 25, 20, 0.65);
+ --notification-error-text-color: rgba(255, 255, 255, 0.85);
+
+ --active-speaker-border-color: rgba(255, 255, 255, 1.0);
+ --selected-peer-border-color: rgba(55, 126, 255, 1.0);
+}
+
+html
+{
+ height: 100%;
+ width: 100%;
+ font-family: 'Roboto';
+ font-weight: 300;
+}
+
+body
+{
+ height: 100%;
+ width: 100%;
+ font-size: 16px;
+ background-color: var(--background-color);
+ background-image: var(--background);
+ background-attachment: fixed;
+ background-position: center;
+ background-size: cover;
+ background-repeat: no-repeat;
+}
+
+#multiparty-meeting
+{
+ height: 100%;
+ width: 100%;
+}
\ No newline at end of file
diff --git a/app/lib/index.jsx b/app/src/index.js
similarity index 62%
rename from app/lib/index.jsx
rename to app/src/index.js
index 68b4dd4..14b829b 100644
--- a/app/lib/index.jsx
+++ b/app/src/index.js
@@ -6,14 +6,25 @@ import { Provider } from 'react-redux';
import { getDeviceInfo } from 'mediasoup-client';
import randomString from 'random-string';
import Logger from './Logger';
-import * as utils from './utils';
+import debug from 'debug';
import RoomClient from './RoomClient';
import RoomContext from './RoomContext';
import * as cookiesManager from './cookiesManager';
-import * as stateActions from './redux/stateActions';
+import * as stateActions from './actions/stateActions';
import Room from './components/Room';
-import { loginEnabled } from '../config/config';
-import { store } from './store';
+import LoadingView from './components/LoadingView';
+import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
+import { PersistGate } from 'redux-persist/lib/integration/react';
+import { persistor, store } from './store';
+import { SnackbarProvider } from 'notistack';
+import * as serviceWorker from './serviceWorker';
+
+import './index.css';
+
+if (process.env.NODE_ENV !== 'production')
+{
+ debug.enable('* -engine* -socket* -RIE* *WARN* *ERROR*');
+}
const logger = new Logger();
@@ -21,13 +32,25 @@ let roomClient;
RoomClient.init({ store });
+const theme = createMuiTheme({
+ palette :
+ {
+ primary :
+ {
+ main : '#313131'
+ }
+ },
+ typography :
+ {
+ useNextVariants : true
+ }
+});
+
domready(() =>
{
logger.debug('DOM ready');
- // Load stuff and run
- utils.initialize()
- .then(run);
+ run();
});
function run()
@@ -40,7 +63,6 @@ function run()
? (urlParser.pathname).substr(1).toLowerCase() : urlParser.query.roomId.toLowerCase();
const produce = urlParser.query.produce !== 'false';
let displayName = urlParser.query.displayName;
- const isSipEndpoint = urlParser.query.sipEndpoint === 'true';
const useSimulcast = urlParser.query.simulcast === 'true';
if (!roomId)
@@ -90,68 +112,31 @@ function run()
// Get current device.
const device = getDeviceInfo();
- // If a SIP endpoint mangle device info.
- if (isSipEndpoint)
- {
- device.flag = 'sipendpoint';
- device.name = 'SIP Endpoint';
- device.version = undefined;
- }
-
store.dispatch(
stateActions.setRoomUrl(roomUrl));
store.dispatch(
- stateActions.setMe({ peerName, displayName, displayNameSet, device, loginEnabled }));
+ stateActions.setMe({ peerName, displayName, displayNameSet, device, loginEnabled: window.config.loginEnabled }));
roomClient = new RoomClient(
{ roomId, peerName, displayName, device, useSimulcast, produce });
+ global.CLIENT = roomClient;
+
render(
-
-
-
+
+ } persistor={persistor}>
+
+
+
+
+
+
+
,
document.getElementById('multiparty-meeting')
);
}
-// TODO: Debugging stuff.
-global.CLIENT = roomClient;
-
-/* setInterval(() =>
-{
- if (!roomClient._room.peers[0])
- {
- delete global.CONSUMER;
-
- return;
- }
-
- const peer = roomClient._room.peers[0];
-
- global.CONSUMER = peer.consumers[peer.consumers.length - 1];
-}, 2000);
-*/
-global.sendSdp = function()
-{
- logger.debug('---------- SEND_TRANSPORT LOCAL SDP OFFER:');
- logger.debug(
- roomClient._sendTransport._handler._pc.localDescription.sdp);
-
- logger.debug('---------- SEND_TRANSPORT REMOTE SDP ANSWER:');
- logger.debug(
- roomClient._sendTransport._handler._pc.remoteDescription.sdp);
-};
-
-global.recvSdp = function()
-{
- logger.debug('---------- RECV_TRANSPORT REMOTE SDP OFFER:');
- logger.debug(
- roomClient._recvTransport._handler._pc.remoteDescription.sdp);
-
- logger.debug('---------- RECV_TRANSPORT LOCAL SDP ANSWER:');
- logger.debug(
- roomClient._recvTransport._handler._pc.localDescription.sdp);
-};
+serviceWorker.unregister();
diff --git a/app/lib/redux/reducers/chatmessages.js b/app/src/reducers/chatmessages.js
similarity index 100%
rename from app/lib/redux/reducers/chatmessages.js
rename to app/src/reducers/chatmessages.js
diff --git a/app/lib/redux/reducers/consumers.js b/app/src/reducers/consumers.js
similarity index 100%
rename from app/lib/redux/reducers/consumers.js
rename to app/src/reducers/consumers.js
diff --git a/app/lib/redux/reducers/files.js b/app/src/reducers/files.js
similarity index 96%
rename from app/lib/redux/reducers/files.js
rename to app/src/reducers/files.js
index 19d5369..e43c088 100644
--- a/app/lib/redux/reducers/files.js
+++ b/app/src/reducers/files.js
@@ -22,9 +22,11 @@ const files = (state = {}, action) =>
const { fileHistory } = action.payload;
const newFileHistory = {};
+ // eslint-disable-next-line
fileHistory.map((file) =>
{
- const newFile = {
+ const newFile =
+ {
active : false,
progress : 0,
files : null,
diff --git a/app/lib/redux/reducers/helper.js b/app/src/reducers/helper.js
similarity index 100%
rename from app/lib/redux/reducers/helper.js
rename to app/src/reducers/helper.js
diff --git a/app/lib/redux/reducers/me.js b/app/src/reducers/me.js
similarity index 100%
rename from app/lib/redux/reducers/me.js
rename to app/src/reducers/me.js
diff --git a/app/lib/redux/reducers/notifications.js b/app/src/reducers/notifications.js
similarity index 100%
rename from app/lib/redux/reducers/notifications.js
rename to app/src/reducers/notifications.js
diff --git a/app/lib/redux/reducers/peers.js b/app/src/reducers/peers.js
similarity index 100%
rename from app/lib/redux/reducers/peers.js
rename to app/src/reducers/peers.js
diff --git a/app/lib/redux/reducers/producers.js b/app/src/reducers/producers.js
similarity index 100%
rename from app/lib/redux/reducers/producers.js
rename to app/src/reducers/producers.js
diff --git a/app/lib/redux/reducers/room.js b/app/src/reducers/room.js
similarity index 93%
rename from app/lib/redux/reducers/room.js
rename to app/src/reducers/room.js
index e5e2ed6..0092ca5 100644
--- a/app/lib/redux/reducers/room.js
+++ b/app/src/reducers/room.js
@@ -14,7 +14,8 @@ const initialState =
toolbarsVisible : true,
mode : 'democratic',
selectedPeerName : null,
- spotlights : []
+ spotlights : [],
+ settingsOpen : false
};
const room = (state = initialState, action) =>
@@ -32,7 +33,7 @@ const room = (state = initialState, action) =>
{
const roomState = action.payload.state;
- if (roomState == 'connected')
+ if (roomState === 'connected')
return { ...state, state: roomState };
else
return { ...state, state: roomState, activeSpeakerName: null };
@@ -60,6 +61,13 @@ const room = (state = initialState, action) =>
return { ...state, audioSuspended };
}
+ case 'SET_SETTINGS_OPEN':
+ {
+ const { settingsOpen } = action.payload;
+
+ return { ...state, settingsOpen };
+ }
+
case 'SET_ROOM_ACTIVE_SPEAKER':
{
const { peerName } = action.payload;
diff --git a/app/lib/redux/reducers/index.js b/app/src/reducers/rootReducer.js
similarity index 67%
rename from app/lib/redux/reducers/index.js
rename to app/src/reducers/rootReducer.js
index e51dc85..8b3fdce 100644
--- a/app/lib/redux/reducers/index.js
+++ b/app/src/reducers/rootReducer.js
@@ -9,17 +9,14 @@ import chatmessages from './chatmessages';
import toolarea from './toolarea';
import files from './files';
-const reducers = combineReducers(
- {
- room,
- me,
- producers,
- peers,
- consumers,
- notifications,
- chatmessages,
- toolarea,
- files
- });
-
-export default reducers;
+export default combineReducers({
+ room,
+ me,
+ producers,
+ peers,
+ consumers,
+ notifications,
+ chatmessages,
+ toolarea,
+ files
+});
diff --git a/app/lib/redux/reducers/toolarea.js b/app/src/reducers/toolarea.js
similarity index 100%
rename from app/lib/redux/reducers/toolarea.js
rename to app/src/reducers/toolarea.js
diff --git a/app/src/serviceWorker.js b/app/src/serviceWorker.js
new file mode 100644
index 0000000..6efc24c
--- /dev/null
+++ b/app/src/serviceWorker.js
@@ -0,0 +1,126 @@
+const isLocalhost = Boolean(
+ window.location.hostname === 'localhost' ||
+ window.location.hostname === '[::1]' ||
+ window.location.hostname.match(
+ /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
+ )
+);
+
+export function register(config)
+{
+ if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator)
+ {
+ const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);
+
+ if (publicUrl.origin !== window.location.origin)
+ return;
+
+ window.addEventListener('load', () =>
+ {
+ const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
+
+ if (isLocalhost)
+ {
+ checkValidServiceWorker(swUrl, config);
+
+ navigator.serviceWorker.ready.then(() =>
+ {
+ console.log(
+ 'This web app is being served cache-first by a service ' +
+ 'worker. To learn more, visit https://bit.ly/CRA-PWA'
+ );
+ });
+ }
+ else
+ {
+ registerValidSW(swUrl, config);
+ }
+ });
+ }
+}
+
+function registerValidSW(swUrl, config)
+{
+ navigator.serviceWorker
+ .register(swUrl)
+ .then((registration) =>
+ {
+ registration.onupdatefound = () =>
+ {
+ const installingWorker = registration.installing;
+
+ if (installingWorker == null)
+ return;
+
+ installingWorker.onstatechange = () =>
+ {
+ if (installingWorker.state === 'installed')
+ {
+ if (navigator.serviceWorker.controller)
+ {
+ console.log(
+ 'New content is available and will be used when all ' +
+ 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'
+ );
+
+ if (config && config.onUpdate)
+ config.onUpdate(registration);
+ }
+ else
+ {
+ console.log('Content is cached for offline use.');
+
+ // Execute callback
+ if (config && config.onSuccess)
+ config.onSuccess(registration);
+ }
+ }
+ };
+ };
+ })
+ .catch((error) =>
+ {
+ console.error('Error during service worker registration:', error);
+ });
+}
+
+function checkValidServiceWorker(swUrl, config)
+{
+ fetch(swUrl)
+ .then((response) =>
+ {
+ const contentType = response.headers.get('content-type');
+ if (response.status === 404 ||
+ (contentType != null && contentType.indexOf('javascript') === -1))
+ {
+ navigator.serviceWorker.ready.then((registration) =>
+ {
+ registration.unregister().then(() =>
+ {
+ window.location.reload();
+ });
+ });
+ }
+ else
+ {
+ registerValidSW(swUrl, config);
+ }
+ })
+ .catch(() =>
+ {
+ console.log(
+ 'No internet connection found. App is running in offline mode.'
+ );
+ });
+}
+
+export function unregister()
+{
+ if ('serviceWorker' in navigator)
+ {
+ navigator.serviceWorker.ready.then((registration) =>
+ {
+ registration.unregister();
+ });
+ }
+}
diff --git a/app/src/store.js b/app/src/store.js
new file mode 100644
index 0000000..4b247db
--- /dev/null
+++ b/app/src/store.js
@@ -0,0 +1,58 @@
+import {
+ createStore,
+ applyMiddleware,
+ compose
+} from 'redux';
+import thunk from 'redux-thunk';
+import { createLogger } from 'redux-logger';
+import { persistStore, persistReducer } from 'redux-persist';
+import storage from 'redux-persist/lib/storage';
+import autoMergeLevel2 from 'redux-persist/lib/stateReconciler/autoMergeLevel2';
+import rootReducer from './reducers/rootReducer';
+
+const persistConfig =
+{
+ key : 'root',
+ storage : storage,
+ stateReconciler : autoMergeLevel2,
+ whitelist : []
+};
+
+const reduxMiddlewares =
+[
+ thunk
+];
+
+if (process.env.NODE_ENV !== 'production')
+{
+ const reduxLogger = createLogger(
+ {
+ // filter VOLUME level actions from log
+ predicate : (getState, action) => ! (action.type === 'SET_PRODUCER_VOLUME'
+ || action.type === 'SET_CONSUMER_VOLUME'),
+ duration : true,
+ timestamp : false,
+ level : 'log',
+ logErrors : true
+ });
+
+ reduxMiddlewares.push(reduxLogger);
+}
+
+const composeEnhancers =
+ typeof window === 'object' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ?
+ window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}) :
+ compose;
+
+const enhancer = composeEnhancers(
+ applyMiddleware(...reduxMiddlewares)
+);
+
+const pReducer = persistReducer(persistConfig, rootReducer);
+
+export const store = createStore(
+ pReducer,
+ enhancer
+);
+
+export const persistor = persistStore(store);
\ No newline at end of file
diff --git a/app/lib/urlFactory.js b/app/src/urlFactory.js
similarity index 63%
rename from app/lib/urlFactory.js
rename to app/src/urlFactory.js
index fac01c9..fc4a9f5 100644
--- a/app/lib/urlFactory.js
+++ b/app/src/urlFactory.js
@@ -1,7 +1,9 @@
export function getSignalingUrl(peerName, roomId)
{
const hostname = window.location.hostname;
- const port = window.location.port;
+
+ const port = process.env.NODE_ENV !== 'production' ? window.config.developmentPort : window.location.port;
+
const url = `wss://${hostname}:${port}/?peerName=${peerName}&roomId=${roomId}`;
return url;
diff --git a/app/src/utils.js b/app/src/utils.js
new file mode 100644
index 0000000..1fba8b3
--- /dev/null
+++ b/app/src/utils.js
@@ -0,0 +1,19 @@
+/**
+ * Create a function which will call the callback function
+ * after the given amount of milliseconds has passed since
+ * the last time the callback function was called.
+ */
+export const idle = (callback, delay) =>
+{
+ let handle;
+
+ return () =>
+ {
+ if (handle)
+ {
+ clearTimeout(handle);
+ }
+
+ handle = setTimeout(callback, delay);
+ };
+};
\ No newline at end of file
diff --git a/app/stylus/components/AudioPeers.styl b/app/stylus/components/AudioPeers.styl
deleted file mode 100644
index 99e9c0a..0000000
--- a/app/stylus/components/AudioPeers.styl
+++ /dev/null
@@ -1,6 +0,0 @@
-[data-component='AudioPeers'] {
- position: absolute;
- left: 0;
- top: 0;
- opacity: 0;
-}
diff --git a/app/stylus/components/Chat.styl b/app/stylus/components/Chat.styl
deleted file mode 100644
index c495496..0000000
--- a/app/stylus/components/Chat.styl
+++ /dev/null
@@ -1,101 +0,0 @@
-[data-component='Chat'] {
- height: 100%;
- display: flex;
- flex-grow: 1;
- flex-direction: column;
-}
-
-[data-component='MessageList'] {
- overflow-y: auto;
- flex-grow: 1;
-
- > .message {
- display: flex;
- word-wrap: break-word;
- word-break: break-all;
-
- &:not(:first-child) {
- margin-top: 0.5rem;
- }
-
- > .client {
- margin-left: auto;
- }
-
- > .client, > .response {
- background-color: var(--chat-message-color);
- border-radius: 5px;
- max-width: 85%;
- display: flex;
- align-items: center;
- padding: 0.5rem;
-
- > .message-avatar {
- height: 2rem;
- border-radius: 50%;
- }
-
- > .message-content {
- padding-left: 0.5rem;
-
- > .message-text {
- font-size: 1rem;
- }
-
- > .message-time {
- font-size: 0.8rem;
- opacity: 0.8;
- }
- }
- }
- }
-
- > .empty {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- padding-top: 20vmin;
-
- > p {
- padding: 6px 12px;
- border-radius: 6px;
- user-select: none;
- pointer-events: none;
- font-size: 20px;
- color: #000;
- }
- }
-}
-
-[data-component='Sender'] {
- display: flex;
- background-color: var(--chat-input-bg-color);
- color: var(--chat-input-text-color);
- flex-shrink: 0;
- margin-top: 0.5rem;
- height: 3rem;
-
- > .new-message {
- width: 80%;
- box-shadow: 0vmin 0vmin 1vmin 0vmin rgba(17,17,17,0.5);
- border: 0;
- font-size: 1rem;
- margin-right: 1vmin;
- border-radius: 0.5vmin;
- padding-left: 1vmin;
-
- &.focus {
- outline: none;
- }
- }
-
- > .send {
- width: 20%;
- box-shadow: 0vmin 0vmin 1vmin 0vmin rgba(17,17,17,0.5);
- border: 0;
- background-color: var(--chat-send-bg-color);
- font-size: 1rem;
- border-radius: 0.5vmin;
- }
-}
diff --git a/app/stylus/components/FileSharing.styl b/app/stylus/components/FileSharing.styl
deleted file mode 100644
index 9019bdb..0000000
--- a/app/stylus/components/FileSharing.styl
+++ /dev/null
@@ -1,119 +0,0 @@
-[data-component='FileSharing'] {
- display: flex;
- flex-direction: column;
- flex-grow: 1;
-
- > .sharing-toolbar {
- > .share-file {
- cursor: pointer;
- width: 100%;
- background: var(--filesharing-bg-color);
- padding: 1rem;
- border-radius: 1vmin;
- box-shadow: 0vmin 0vmin 1vmin 0vmin rgba(17,17,17,0.5);
-
- &:hover {
- opacity: 0.85;
- }
-
- &.disabled {
- cursor: not-allowed;
- }
- }
- }
-
- > .shared-files {
- flex-grow: 1;
- overflow-y: auto;
- margin-top: 0.5rem;
-
- > .file-entry {
- background-color: rgba(0,0,0,0.1);
- border-radius: 5px;
- width: 100%;
- padding: 0.5rem;
- display: flex;
-
- &:not(:first-child) {
- margin-top: 0.5rem;
- }
-
- &:last-child {
- margin-bottom: 1.5rem;
- }
-
- > .file-avatar {
- height: 2rem;
- border-radius: 50%;
- }
-
- > .file-content {
- flex-grow: 1;
- padding-left: 0.5rem;
-
- > p:not(:first-child) {
- margin-top: 0.5rem;
- }
-
- > .file-info {
- display: flex;
- padding-top: 0.5rem;
- align-items: center;
-
- > .button {
- display: flex;
- justify-content: center;
- align-items: center;
- cursor: pointer;
- background: #252525;
- border: 1px solid #151515;
- padding: 0.3rem;
- border-bottom: 5px solid #151515;
- border-radius: 3px 3px 0 0;
- }
-
- > p {
- flex-grow: 1;
- padding-left: 0.5rem;
- }
- }
- }
- }
-
- > .empty {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- padding-top: 20vmin;
-
- > p {
- padding: 6px 12px;
- border-radius: 6px;
- user-select: none;
- pointer-events: none;
- font-size: 20px;
- color: #000;
- }
- }
- }
-}
-
-#holding-overlay {
- display: none;
-}
-
-.drag #holding-overlay {
- display: flex;
- position: fixed;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- background: rgba(0, 0, 0, 0.6);
- color: #FFF;
- align-items: center;
- justify-content: center;
- font-size: 2rem;
- z-index: 3000;
-}
diff --git a/app/stylus/components/Filmstrip.styl b/app/stylus/components/Filmstrip.styl
deleted file mode 100644
index ab92a9f..0000000
--- a/app/stylus/components/Filmstrip.styl
+++ /dev/null
@@ -1,78 +0,0 @@
-[data-component='Filmstrip'] {
- display: flex;
- flex-direction: column;
- align-items: center;
- height: 100%;
-
- > .active-peer-container {
- width: 100%;
- height: 80vh;
- display: flex;
- justify-content: center;
- align-items: center;
-
- > .active-peer {
- width: 100%;
- padding: 1vmin;
-
- > [data-component='Peer'] {
- border: 5px solid rgba(255, 255, 255, 0.15);
- box-shadow: 0px 5px 12px 2px rgba(17, 17, 17, 0.5);
- }
- }
- }
-
- > .filmstrip {
- display: flex;
- background: rgba(0, 0, 0 , 0.5);
- width: 100%;
- overflow-x: auto;
- height: 20vh;
- align-items: center;
-
- > .filmstrip-content {
- margin: 0 auto;
- display: flex;
- height: 100%;
- align-items: center;
-
- > .film {
- height: 18vh;
- flex-shrink: 0;
- padding-left: 1vh;
-
- &:last-child {
- padding-right: 1vh;
- }
-
- > .film-content {
- height: 100%;
- width: 100%;
- border: 1px solid rgba(255,255,255,0.15);
-
- > [data-component='Peer'] {
- max-width: 18vh * (4 / 3);
- cursor: pointer;
-
- &.screen {
- max-width: 18vh * (2 * 4 / 3);
- border: 0;
- }
- }
- }
-
- &.active {
- > .film-content {
- border-color: var(--active-speaker-border-color);
- }
- }
-
- &.selected {
- > .film-content {
- border-color: var(--selected-peer-border-color);
- }
- }
- }
- }
- }
-}
diff --git a/app/stylus/components/FullScreenView.styl b/app/stylus/components/FullScreenView.styl
deleted file mode 100644
index f1f4c29..0000000
--- a/app/stylus/components/FullScreenView.styl
+++ /dev/null
@@ -1,80 +0,0 @@
-[data-component='FullScreenView'] {
- position: absolute;
- top: 0;
- left: 0;
- height: 100%;
- width: 100%;
- z-index: 2000;
-
- > .controls {
- position: absolute;
- z-index: 2020;
- right: 0;
- top: 0;
- display: flex;
- flex-direction:; row;
- justify-content: flex-start;
- align-items: center;
- padding: 0.4vmin;
-
- > .button {
- flex: 0 0 auto;
- margin: 0.2vmin;
- border-radius: 2px;
- background-position: center;
- background-size: 75%;
- background-repeat: no-repeat;
- background-color: rgba(#000, 0.5);
- cursor: pointer;
- transition-property: opacity, background-color;
- transition-duration: 0.15s;
-
- +desktop() {
- width: 5vmin;
- height: 5vmin;
- opacity: 0.85;
-
- &:hover {
- opacity: 1;
- }
- }
-
- +mobile() {
- width: 5vmin;
- height: 5vmin;
- }
-
- &.exitfullscreen {
- background-image: url('/resources/images/icon_fullscreen_exit_black.svg');
- background-color: rgba(#fff, 0.7);
- }
-
- &.fullscreen {
- background-image: url('/resources/images/icon_fullscreen_black.svg');
- background-color: rgba(#fff, 0.7);
- }
- }
- }
-
- .incompatible-video {
- position: absolute;
- z-index: 2010;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
-
- > p {
- padding: 6px 12px;
- border-radius: 6px;
- user-select: none;
- pointer-events: none;
- font-size: 15px;
- color: rgba(#fff, 0.55);
- }
- }
-}
diff --git a/app/stylus/components/FullView.styl b/app/stylus/components/FullView.styl
deleted file mode 100644
index 8c5b799..0000000
--- a/app/stylus/components/FullView.styl
+++ /dev/null
@@ -1,72 +0,0 @@
-[data-component='FullView'] {
- position: relative;
- flex: 100 100 auto;
- height: 100%;
- width: 100%;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- background-image: url('/resources/images/background.svg');
- background-attachment: fixed;
- background-position: center;
- background-size: cover;
- background-repeat: no-repeat;
-
- > .info {
- $backgroundTint = #000;
-
- position: absolute;
- z-index: 10;
- top: 0.6vmin;
- left: 0.6vmin;
- bottom: 0;
- right: 0;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
-
- > .media {
- flex: 0 0 auto;
- display: flex;
- flex-direction: row;
-
- > .box {
- padding: 0.4vmin;
- border-radius: 2px;
- background-color: rgba(#000, 0.25);
-
- > p {
- user-select: none;
- pointer-events: none;
- margin-bottom: 2px;
- color: rgba(#fff, 0.7);
- font-size: 10px;
-
- &:last-child {
- margin-bottom: 0;
- }
- }
- }
- }
- }
-
- > video {
- flex: 100 100 auto;
- height: 100%;
- width: 100%;
- object-fit: contain;
- user-select: none;
- transition-property: opacity;
- transition-duration: .15s;
- background-color: rgba(#000, 0.75);
-
- &.hidden {
- opacity: 0;
- transition-duration: 0s;
- }
-
- &.loading {
- filter: blur(5px);
- }
- }
-}
diff --git a/app/stylus/components/HiddenPeers.styl b/app/stylus/components/HiddenPeers.styl
deleted file mode 100644
index 6ca7ec8..0000000
--- a/app/stylus/components/HiddenPeers.styl
+++ /dev/null
@@ -1,68 +0,0 @@
-[data-component='HiddenPeers'] {
- height: 100%;
- width: 100%;
- display: flex;
- flex-direction: column;
- overflow: hidden;
-
- > .info {
- $backgroundTint = #000;
- position: absolute;
- z-index: 10;
- top: 0.6vmin;
- left: 0.6vmin;
- bottom: 0;
- right: 0;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- }
-
- > .view-container {
- width: 12vmin;
- height: 9vmin;
- position: absolute;
- bottom: 3%;
- right: 3%;
- color: #aaa;
- cursor: pointer;
- background-image: url('/resources/images/buddy.svg');
- background-color: rgba(#2a4b58, 1);
- background-position: bottom;
- background-size: auto 85%;
- background-repeat: no-repeat;
- border: var(--peer-border);
- box-shadow: var(--peer-shadow);
- text-align: center;
- vertical-align: middle;
- line-height: 1.8vmin;
- font-size: 1.7vmin;
- font-weight: bolder;
- animation: none;
-
- &.pulse {
- animation: pulse 0.5s;
- }
- }
-
- .view-container>p{
- transform: translate(0%,50%);
- }
-}
-
-@keyframes pulse {
- 0%
- {
- transform: scale3d(1, 1, 1);
- }
-
- 50%
- {
- transform: scale3d(1.2, 1.2, 1.2);
- }
-
- 100%
- {
- transform: scale3d(1, 1, 1);
- }
-}
diff --git a/app/stylus/components/Logo.styl b/app/stylus/components/Logo.styl
deleted file mode 100644
index f34410a..0000000
--- a/app/stylus/components/Logo.styl
+++ /dev/null
@@ -1,18 +0,0 @@
-[data-component='Logo'] {
- position: absolute;
- width: var(--logo-width);
- height: var(--logo-height);
- top: 1%;
- left: 1%;
- z-index: 20;
- background-position: left;
- background-size: 100%;
- background-repeat: no-repeat;
-
- +desktop() {
- opacity: 1;
- }
-
- background-image: var(--logo);
- background-size: contain;
-}
diff --git a/app/stylus/components/Me.styl b/app/stylus/components/Me.styl
deleted file mode 100644
index d4b0a26..0000000
--- a/app/stylus/components/Me.styl
+++ /dev/null
@@ -1,105 +0,0 @@
-[data-component='Me'] {
- flex: 100 100 auto;
- position: relative;
- flex-direction: row;
- display: flex;
-
- > .view-container {
- position: relative;
- width: var(--me-width);
- height: var(--me-height);
-
- &.webcam {
- order: 2;
- }
-
- &.screen {
- order: 1;
- }
-
- > .controls {
- position: absolute;
- z-index: 20;
- right: 0;
- top: 0;
- display: flex;
- flex-direction: row;
- padding: 0.4vmin;
- opacity: 0;
- transition: opacity 0.3s;
-
- &.visible {
- opacity: 1;
- }
-
- > .button {
- flex: 0 0 auto;
- margin: 0.2vmin;
- border-radius: 2px;
- background-position: center;
- background-size: 75%;
- background-repeat: no-repeat;
- background-color: var(--media-control-button-color);
- cursor: pointer;
- opacity: 0;
- transition-property: opacity, background-color;
- transition-duration: 0.15s;
- width: var(--media-control-button-size);
- height: var(--media-control-button-size);
-
- &:hover {
- opacity: 1;
- }
-
- &.visible {
- opacity: 0.85;
- }
-
- &.unsupported {
- pointer-events: none;
- }
-
- &.disabled {
- pointer-events: none;
- background-color: var(--media-control-botton-disabled);
- }
-
- &.on {
- background-color: var(--media-control-botton-on);
- }
-
- &.off {
- background-color: var(--media-control-botton-off);
- }
-
- &.mic {
- &.on {
- background-image: url('/resources/images/icon_mic_black_on.svg');
- }
-
- &.off {
- background-image: url('/resources/images/icon_remote_mic_white_off.svg');
- }
-
- &.unsupported {
- background-image: url('/resources/images/icon_mic_white_unsupported.svg');
- }
- }
-
- &.webcam {
- &.on {
- background-image: url('/resources/images/icon_webcam_black_on.svg');
- }
-
- &.off {
- background-image: url('/resources/images/icon_remote_webcam_white_off.svg');
- }
-
- &.unsupported {
- background-image: url('/resources/images/icon_webcam_white_unsupported.svg');
- }
- }
- }
- }
- }
-}
diff --git a/app/stylus/components/Notifications.styl b/app/stylus/components/Notifications.styl
deleted file mode 100644
index fcaeded..0000000
--- a/app/stylus/components/Notifications.styl
+++ /dev/null
@@ -1,106 +0,0 @@
-[data-component='Notifications'] {
- position: absolute;
- z-index: 1010;
- pointer-events: none;
- top: 45px;
- right: 0;
- bottom: 0;
- padding: 20px;
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- align-items: flex-end;
- transition: right 0.3s;
-
- &.toolarea-open {
- right: 25%;
- }
-
- +desktop() {
- padding: 10px;
- width: 300px;
- }
-
- +mobile() {
- padding: 4px;
- width: 65%;
- max-width: 220px;
- }
-
- > .notification {
- pointer-events: auto;
- margin-top: 4px;
- border-radius: 4px;
- display: flex;
- flex-direction: row;
- justify-content: center;
- align-items: center;
-
- &.Appear-appear {
- visibility: hidden;
- opacity: 0;
- transition: all 0.15s ease-in-out 0s, visibility 0s linear 0.25s;
- transform: translateX(200px);
- }
-
- &.Appear-appear.Appear-appear-active {
- visibility: visible;
- pointer-events: auto;
- opacity: 1;
- transform: translateY(0%);
- transition-delay: 0s, 0s;
- }
-
- +desktop() {
- padding: 16px 24px 16px 12px;
- }
-
- +mobile() {
- padding: 6px 16px 6px 12px;
- }
-
- > .icon {
- flex: 0 0 auto;
- height: 24px;
- width: 24px;
- margin-right: 12px;
- background-position: center;
- background-size: 100%;
- background-repeat: no-repeat;
- }
-
- > .text {
- font-size: 13px;
- user-select: none;
- cursor: default;
-
- +desktop() {
- font-size: 13px;
- }
-
- +mobile() {
- font-size: 11px;
- }
- }
-
- &.info {
- background-color: var(--notification-info-bg-color);
- color: var(--notification-info-text-color);
-
- >.icon {
- opacity: 0.65;
- background-image: url('/resources/images/icon_notification_info_white.svg');
- }
- }
-
- &.error {
- background-color: var(--notification-error-bg-color);
- color: var(--notification-error-text-color);
-
- >.icon {
- opacity: 0.85;
- background-image: url('/resources/images/icon_notification_error_white.svg');
- }
- }
- }
-}
diff --git a/app/stylus/components/ParticipantList.styl b/app/stylus/components/ParticipantList.styl
deleted file mode 100644
index fefa8da..0000000
--- a/app/stylus/components/ParticipantList.styl
+++ /dev/null
@@ -1,211 +0,0 @@
-[data-component='ParticipantList'] {
- width: 100%;
- overflow-y: auto;
- padding: 6px;
-
- > .list {
- box-shadow: 0 2px 5px 2px rgba(0,0,0,0.2);
- background-color: #fff;
-
- > .list-header {
- padding: 0.5rem;
- font-weight: bolder;
- }
- > .list-item {
- padding: 0.5rem;
- border-bottom: 1px solid #CBCBCB;
- width: 100%;
- overflow: hidden;
- cursor: pointer;
-
- &.me {
- cursor: auto;
- }
-
- &.selected {
- background-color: #377eff;
- }
- }
- }
-}
-
-[data-component='ListPeer'] {
- display: flex;
-
- > .indicators {
- left: 0;
- top: 0;
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- transition: opacity 0.3s;
-
- > .icon {
- flex: 0 0 auto;
- margin: 0.3rem;
- border-radius: 2px;
- background-position: center;
- background-size: 75%;
- background-repeat: no-repeat;
- background-color: rgba(#000, 0.5);
- transition-property: opacity, background-color;
- transition-duration: 0.15s;
- width: var(--media-control-button-size);
- height: var(--media-control-button-size);
- opacity: 0.85;
-
- &:hover {
- opacity: 1;
- }
-
- &.on {
- opacity: 1;
- }
-
- &.off {
- opacity: 0.2;
- }
-
- &.raise-hand {
- background-image: url('/resources/images/icon-hand-white.svg');
- }
- }
- }
- > .volume-container {
- float: right;
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- width: 1vmin;
- position: relative;
- background-size: 75%;
-
- > .bar {
- flex: 0 0 auto;
- margin: 0.3rem;
- background-size: 75%;
- background-repeat: no-repeat;
- cursor: pointer;
- transition-property: opacity, background-color;
- width: 3px;
- border-radius: 6px;
- transition-duration: 0.25s;
- position: absolute;
- bottom: 0px;
-
- &.level0 { height: 0; }
- &.level1 { height: 0.2vh; }
- &.level2 { height: 0.4vh; }
- &.level3 { height: 0.6vh; }
- &.level4 { height: 0.8vh; }
- &.level5 { height: 1.0vh; }
- &.level6 { height: 1.2vh; }
- &.level7 { height: 1.4vh; }
- &.level8 { height: 1.6vh; }
- &.level9 { height: 1.8vh; }
- &.level10 { height: 2.0vh; }
- }
- }
-
- > .controls {
- float: right;
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
-
- > .button {
- flex: 0 0 auto;
- margin: 0.3rem;
- border-radius: 2px;
- background-position: center;
- background-size: 75%;
- background-repeat: no-repeat;
- background-color: rgba(#000, 0.5);
- cursor: pointer;
- transition-property: opacity, background-color;
- transition-duration: 0.15s;
- width: var(--media-control-button-size);
- height: var(--media-control-button-size);
- opacity: 0.85;
-
- &:hover {
- opacity: 1;
- }
-
- &.unsupported {
- pointer-events: none;
- }
-
- &.disabled {
- pointer-events: none;
- background-color: var(--media-control-botton-disabled);
- }
-
- &.on {
- background-color: var(--media-control-botton-on);
- }
-
- &.off {
- background-color: var(--media-control-botton-off);
- }
-
- &.mic {
- &.on {
- background-image: url('/resources/images/icon_mic_black_on.svg');
- }
-
- &.off {
- background-image: url('/resources/images/icon_remote_mic_white_off.svg');
- }
-
- &.unsupported {
- background-image: url('/resources/images/icon_mic_white_unsupported.svg');
- }
- }
-
- &.webcam {
- &.on {
- background-image: url('/resources/images/icon_webcam_black_on.svg');
- }
-
- &.off {
- background-image: url('/resources/images/icon_remote_webcam_white_off.svg');
- }
-
- &.unsupported {
- background-image: url('/resources/images/icon_webcam_white_unsupported.svg');
- }
- }
-
- &.screen {
- &.on {
- background-image: url('/resources/images/share-screen-black.svg');
- }
-
- &.off {
- background-image: url('/resources/images/no-share-screen-white.svg');
- }
-
- &.unsupported {
- background-image: url('/resources/images/no-share-screen-white.svg');
- }
- }
- }
- }
-
- > .avatar {
- border-radius: 50%;
- height: 2rem;
- }
-
- > .peer-info {
- font-size: 1rem;
- border: none;
- display: flex;
- padding-left: 0.5rem;
- flex-grow: 1;
- align-items: center;
- }
-}
diff --git a/app/stylus/components/Peer.styl b/app/stylus/components/Peer.styl
deleted file mode 100644
index b90be85..0000000
--- a/app/stylus/components/Peer.styl
+++ /dev/null
@@ -1,213 +0,0 @@
-[data-component='Peer'] {
- flex: 100 100 auto;
- position: relative;
- height: 100%;
- width: 100%;
- flex-direction: row;
- display: flex;
-
- &.screen {
- border: 5px solid rgba(#fff, 0.4);
- }
-
- &:not(.screen) {
- }
-
- +mobile() {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
-
- > .view-container {
- position: relative;
- flex-grow: 1;
-
- &.webcam {
- order: 2;
- }
-
- &.screen {
- order: 1;
- max-width: 50%;
- }
- > .indicators {
- position: absolute;
- left: 0;
- top: 0;
- display: flex;
- flex-direction:; row;
- justify-content: flex-start;
- align-items: center;
- padding: 0.4vmin;
- transition: opacity 0.3s;
- z-index: 20;
-
- > .icon {
- flex: 0 0 auto;
- margin: 0.2vmin;
- border-radius: 2px;
- background-position: center;
- background-size: 75%;
- background-repeat: no-repeat;
- background-color: rgba(#000, 0.5);
- transition-property: opacity, background-color;
- transition-duration: 0.15s;
- width: var(--media-control-button-size);
- height: var(--media-control-button-size);
- opacity: 0.85;
-
- &:hover {
- opacity: 1;
- }
-
- &.on {
- opacity: 1;
- }
-
- &.off {
- opacity: 0.2;
- }
-
- &.raise-hand {
- background-image: url('/resources/images/icon-hand-white.svg');
- }
- }
- }
- > .controls {
- position: absolute;
- z-index: 20;
- right: 0;
- top: 0;
- display: flex;
- flex-direction:; row;
- justify-content: flex-start;
- align-items: center;
- padding: 0.4vmin;
- opacity: 0;
- transition: opacity 0.3s;
-
- &.visible {
- opacity: 1;
- }
-
- > .button {
- flex: 0 0 auto;
- margin: 0.2vmin;
- border-radius: 2px;
- background-position: center;
- background-size: 75%;
- background-repeat: no-repeat;
- background-color: var(--media-control-button-color);
- cursor: pointer;
- transition-property: opacity, background-color;
- transition-duration: 0.15s;
- width: var(--media-control-button-size);
- height: var(--media-control-button-size);
- opacity: 0.85;
-
- &:hover {
- opacity: 1;
- }
-
- &.unsupported {
- pointer-events: none;
- }
-
- &.disabled {
- pointer-events: none;
- background-color: var(--media-control-botton-disabled);
- }
-
- &.on {
- background-color: var(--media-control-botton-on);
- }
-
- &.off {
- background-color: var(--media-control-botton-off);
- }
-
- &.mic {
- &.on {
- background-image: url('/resources/images/icon_mic_black_on.svg');
- }
-
- &.off {
- background-image: url('/resources/images/icon_remote_mic_white_off.svg');
- }
-
- &.unsupported {
- background-image: url('/resources/images/icon_mic_white_unsupported.svg');
- }
- }
-
- &.screen {
- &.on {
- background-image: url('/resources/images/share-screen-black.svg');
- }
-
- &.off {
- background-image: url('/resources/images/no-share-screen-white.svg');
- }
-
- &.unsupported {
- background-image: url('/resources/images/no-share-screen-white.svg');
- }
- }
-
- &.fullscreen {
- background-image: url('/resources/images/icon_fullscreen_black.svg');
- }
-
- &.newwindow {
- background-image: url('/resources/images/icon_new_window_black.svg');
- }
- }
- }
- }
-
- .paused-video {
- position: absolute;
- z-index: 11;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
-
- > p {
- padding: 6px 12px;
- border-radius: 6px;
- user-select: none;
- pointer-events: none;
- font-size: 20px;
- color: rgba(#fff, 0.55);
- }
- }
-
- .incompatible-video {
- position: absolute;
- z-index: 10;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
-
- > p {
- padding: 6px 12px;
- border-radius: 6px;
- user-select: none;
- pointer-events: none;
- font-size: 20px;
- color: rgba(#fff, 0.55);
- }
- }
-}
diff --git a/app/stylus/components/PeerView.styl b/app/stylus/components/PeerView.styl
deleted file mode 100644
index 9a02380..0000000
--- a/app/stylus/components/PeerView.styl
+++ /dev/null
@@ -1,226 +0,0 @@
-[data-component='PeerView'] {
- position: relative;
- flex: 100 100 auto;
- height: 100%;
- width: 100%;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- background-color: var(--peer-bg-color);
- background-image: var(--peer-empty-avatar);
- background-position: bottom;
- background-size: auto 85%;
- background-repeat: no-repeat;
-
- > .info {
- position: absolute;
- z-index: 10;
- top: 0.6vmin;
- left: 0.6vmin;
- bottom: 0;
- right: 0;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
-
- > .media {
- flex: 0 0 auto;
- display: flex;
- flex-direction: row;
-
- > .box {
- padding: 0.4vmin;
- border-radius: 2px;
- background-color: rgba(#000, 0.25);
-
- > p {
- user-select: none;
- pointer-events: none;
- margin-bottom: 2px;
- color: rgba(#fff, 0.7);
- font-size: 10px;
-
- &:last-child {
- margin-bottom: 0;
- }
- }
- }
- }
-
- > .peer {
- flex: 0 0 auto;
- display: flex;
- flex-direction: column;
- justify-content: flex-end;
- position: absolute;
- bottom: 0.6vmin;
- left: 0;
- border-radius: 2px;
- background-color: rgba(#000, 0.25);
-
- +desktop() {
- &.is-me {
- padding: 1vmin;
- align-items: flex-start;
- }
-
- &:not(.is-me) {
- padding: 1vmin;
- align-items: flex-start;
- }
- }
-
- +mobile() {
- &.is-me {
- padding: 1vmin;
- align-items: flex-start;
- }
-
- &:not(.is-me) {
- padding: 1vmin;
- align-items: flex-end;
- }
- }
-
- > .display-name {
- font-size: 14px;
- font-weight: 400;
- color: rgba(#fff, 0.85);
- }
-
- > span.display-name {
- user-select: none;
- cursor: text;
-
- &:not(.editable) {
- cursor: default;
- }
-
- &.editable {
- +desktop() {
- &:hover {
- background-color: rgba(#aeff00, 0.25);
- }
- }
- }
-
- &.loading {
- opacity: 0.5;
- }
- }
-
- > input.display-name {
- border: none;
- border-bottom: 1px solid #aeff00;
- background-color: transparent;
- }
-
- > .row {
- margin-top: 0.4vmin;
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: flex-end;
-
- > .device-icon {
- height: 12px;
- width: 12px;
- margin-right: 3px;
- user-select: none;
- pointer-events: none;
- background-position: center;
- background-size: 100%;
- background-repeat: no-repeat;
- background-image: url('/resources/images/devices/unknown.svg');
-
- &.chrome {
- background-image: url('/resources/images/devices/chrome_16x16.png');
- }
-
- &.firefox {
- background-image: url('/resources/images/devices/firefox_16x16.png');
- }
-
- &.safari {
- background-image: url('/resources/images/devices/safari_16x16.png');
- }
-
- &.msedge {
- background-image: url('/resources/images/devices/edge_16x16.png');
- }
-
- &.opera {
- background-image: url('/resources/images/devices/opera_16x16.png');
- }
-
- &.sipendpoint {
- background-image: url('/resources/images/devices/sip_endpoint.svg');
- }
- }
-
- > .device-version {
- user-select: none;
- pointer-events: none;
- font-size: 11px;
- color: rgba(#fff, 0.55);
- }
- }
- }
- }
-
- > video {
- flex: 100 100 auto;
- height: 100%;
- width: 100%;
- object-fit: cover;
- user-select: none;
- transition-property: opacity;
- transition-duration: .15s;
- background-color: var(--peer-video-bg-color);
-
- &.is-me {
- transform: scaleX(-1);
- }
-
- &.hidden {
- opacity: 0;
- transition-duration: 0s;
- }
-
- &.loading {
- filter: blur(5px);
- }
- }
-
- > .volume-container {
- position: absolute;
- top: 0
- bottom: 0;
- right: 2px;
- width: 10px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
-
- > .bar {
- width: 6px;
- border-radius: 6px;
- background: rgba(yellow, 0.65);
- transition-property: height background-color;
- transition-duration: 0.25s;
-
- &.level0 { height: 0; background-color: rgba(yellow, 0.65); }
- &.level1 { height: 10%; background-color: rgba(yellow, 0.65); }
- &.level2 { height: 20%; background-color: rgba(yellow, 0.65); }
- &.level3 { height: 30%; background-color: rgba(yellow, 0.65); }
- &.level4 { height: 40%; background-color: rgba(orange, 0.65); }
- &.level5 { height: 50%; background-color: rgba(orange, 0.65); }
- &.level6 { height: 60%; background-color: rgba(red, 0.65); }
- &.level7 { height: 70%; background-color: rgba(red, 0.65); }
- &.level8 { height: 80%; background-color: rgba(#000, 0.65); }
- &.level9 { height: 90%; background-color: rgba(#000, 0.65); }
- &.level10 { height: 100%; background-color: rgba(#000, 0.65); }
- }
- }
-}
diff --git a/app/stylus/components/Peers.styl b/app/stylus/components/Peers.styl
deleted file mode 100644
index 85ee7c3..0000000
--- a/app/stylus/components/Peers.styl
+++ /dev/null
@@ -1,65 +0,0 @@
-[data-component='Peers'] {
- min-height: 100%;
- width: 100%;
- height: 100%;
-
- +desktop() {
- width: 100%;
- padding: 0px 0 0px 0;
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- justify-content: center;
- align-items: center;
- align-content: center;
- }
-
- +mobile() {
- min-height: 100vh;
- width: 100%;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
-
- > .peer-container {
- overflow: hidden;
-
- AppearFadeIn(1000ms);
-
- +desktop() {
- flex: 0 0 auto;
- margin: 6px;
- border: var(--peer-border);
- box-shadow: var(--peer-shadow);
- transition-property: border-color;
- transition-duration: 0.15s;
-
- &.active-speaker {
- border-color: var(--active-speaker-border-color);
- }
-
- &.selected {
- > .peer-content {
- border-color: var(--selected-peer-border-color);
- }
- }
- }
-
- +mobile() {
- flex: 100 100 auto;
- order: 2;
- min-height: 25vh;
- width: 100%;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
-
- &.active-speaker {
- order: 1;
- }
- }
- }
-}
diff --git a/app/stylus/components/Room.styl b/app/stylus/components/Room.styl
deleted file mode 100644
index 1d09abc..0000000
--- a/app/stylus/components/Room.styl
+++ /dev/null
@@ -1,366 +0,0 @@
-[data-component='Room'] {
- AppearFadeIn(300ms);
-
- > .locked-out {
- position: fixed;
- top: 50%;
- left: 50%;
- transform: translateX(-50%) translateY(-50%);
- width: 30vw;
- text-align: center;
- font-family: 'Roboto';
- font-size: 2.5em;
- box-shadow: 0px 5px 12px 2px rgba(17, 17, 17, 0.5);
- background-color: #fff;
- padding: 2vmin;
- }
-
- > .sound-suspended {
- position: fixed;
- top: 50%;
- left: 50%;
- transform: translateX(-50%) translateY(-50%);
- width: 30vw;
- text-align: center;
- font-family: 'Roboto';
- font-size: 2.5em;
- box-shadow: 0px 5px 12px 2px rgba(17, 17, 17, 0.5);
- background-color: #fff;
- padding: 2vmin;
-
- > .button {
- font-size: 1.5em;
- padding: 1.5vmin;
- margin: 0.8vmin;
- background-color: #38cd8b;
- border-radius: 1.8vmin;
- color: #fff;
- border: 0;
- }
-
- > .button:hover {
- background-color: #28bd7b;
- }
- }
-
- > .room-wrapper {
- position: absolute;
- top: 0;
- left: 0;
- height: 100%;
- width: 100%;
-
- > .state {
- position: fixed;
- z-index: 100;
- display: flex;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- border-radius: 25px;
- background-color: rgba(#fff, 0.2);
-
- +desktop() {
- bottom: 1%;
- left: 1%;
- width: 10%;
- }
-
- +mobile() {
- bottom: 1%;
- left: 1%;
- width: 10%;
- }
-
- > .icon {
- flex: 0 0 auto;
- border-radius: 100%;
-
- +desktop() {
- margin: 5px;
- margin-right: 0;
- height: 20px;
- width: 20px;
- }
-
- +mobile() {
- margin: 4px;
- margin-right: 0;
- height: 16px;
- width: 16px;
- }
-
- &.new, &.closed {
- background-color: rgba(#aaa, 0.5);
- }
-
- &.connecting {
- animation: Room-info-state-connecting .75s infinite linear;
- }
-
- &.connected {
- background-color: rgba(#30bd18, 0.75);
-
- +mobile() {
- display: none;
- }
- }
- }
-
- > .text {
- flex: 100 0 auto;
- user-select: none;
- pointer-events: none;
- text-align: center;
- text-transform: uppercase;
- font-family: 'Roboto';
- font-weight: 400;
- color: rgba(#fff, 0.75);
-
- +desktop() {
- font-size: 12px;
- }
-
- +mobile() {
- font-size: 10px;
- }
-
- &.connected {
- +mobile() {
- display: none;
- }
- }
- }
- }
-
- > .room-link-wrapper {
- pointer-events: none;
- position: absolute;
- z-index: 10;
- top: 0;
- left: 0;
- right: 0;
- display: flex;
- flex-direction: row;
- justify-content: center;
-
- > .room-link {
- width: auto;
- background-color: rgba(#fff, 0.75);
- border-bottom-right-radius: 4px;
- border-bottom-left-radius: 4px;
- box-shadow: 0px 3px 12px 2px rgba(#111, 0.4);
-
- > a.link {
- display: block;;
- user-select: none;
- pointer-events: auto;
- color: #104758;
- font-weight: 400;
- cursor: pointer;
- text-decoration: none;
- transition-property: opacity;
- transition-duration: 0.25s;
- opacity: 0.8;
-
- +desktop() {
- padding: 10px 20px;
- font-size: 16px;
- }
-
- +mobile() {
- padding: 6px 10px;
- font-size: 14px;
- }
-
- &:hover {
- opacity: 1;
- text-decoration: underline;
- }
- }
- }
- }
-
- > .me-container {
- position: fixed;
- z-index: 110;
- overflow: hidden;
- box-shadow: var(--me-shadow);
- transition-property: border-color;
- transition-duration: 0.15s;
- top: 6%;
- left:1%;
- border: var(--me-border);
-
- &.active-speaker {
- border-color: var(--active-speaker-border-color);
- }
- }
- }
-}
-
-.room-controls {
- visibility: hidden;
- animation: fade-out 0.3s;
- opacity: 0;
-
- &.visible {
- visibility: visible;
- opacity: 1;
- animation: fade-in 0.3s;
- }
-}
-
-.Dropdown-root {
- position: relative;
- padding: 0.3vmin;
-}
-
-.Dropdown-control {
- position: relative;
- overflow: hidden;
- background-color: white;
- border: 1px solid #ccc;
- border-radius: 2px;
- box-sizing: border-box;
- color: #333;
- cursor: default;
- outline: none;
- padding: 8px 52px 8px 10px;
- transition: all 200ms ease;
- box-shadow: 0vmin 0vmin 0.2vmin 0vmin rgba(17,17,17,0.5);
-}
-
-.Dropdown-control:hover {
- box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
-}
-
-.Dropdown-arrow {
- border-color: #999 transparent transparent;
- border-style: solid;
- border-width: 5px 5px 0;
- content: ' ';
- display: block;
- height: 0;
- margin-top: -ceil(2.5);
- position: absolute;
- right: 10px;
- top: 14px;
- width: 0
-}
-
-.is-open .Dropdown-arrow {
- border-color: transparent transparent #999;
- border-width: 0 5px 5px;
-}
-
-.Dropdown-menu {
- background-color: white;
- border: 1px solid #ccc;
- box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
- box-sizing: border-box;
- margin-top: -1px;
- max-height: 200px;
- overflow-y: auto;
- position: absolute;
- top: 100%;
- width: 100%;
- z-index: 120;
- -webkit-overflow-scrolling: touch;
-}
-
-.Dropdown-menu .Dropdown-group > .Dropdown-title {
- padding: 8px 10px;
- color: rgba(51, 51, 51, 1.2);
- font-weight: bold;
- text-transform: capitalize;
-}
-
-.Dropdown-option {
- box-sizing: border-box;
- color: rgba(51, 51, 51, 0.8);
- cursor: pointer;
- display: block;
- padding: 8px 10px;
-}
-
-.Dropdown-option:last-child {
- border-bottom-right-radius: 2px;
- border-bottom-left-radius: 2px;
-}
-
-.Dropdown-option:hover {
- background-color: #f2f9fc;
- color: #333;
-}
-
-.Dropdown-option.is-selected {
- background-color: #f2f9fc;
- color: #333;
-}
-
-.Dropdown-noresults {
- box-sizing: border-box;
- color: #ccc;
- cursor: default;
- display: block;
- padding: 8px 10px;
-}
-
-.react-tabs__tab-list {
- border-bottom: 1px solid #aaa;
- margin: 0 0 10px;
- padding: 0;
-}
-
-.react-tabs__tab {
- display: inline-block;
- border: 1px solid transparent;
- border-bottom: none;
- bottom: -1px;
- position: relative;
- list-style: none;
- padding: 6px 12px;
- cursor: pointer;
- -webkit-tap-highlight-color: transparent;
-}
-
-.react-tabs__tab--selected {
- background: #fff;
- border-color: #aaa;
- color: black;
- border-radius: 5px 5px 0 0;
-}
-
-.react-tabs__tab--disabled {
- color: GrayText;
- cursor: default;
-}
-
-.react-tabs__tab:focus {
- box-shadow: 0 0 5px hsl(208, 99%, 50%);
- border-color: hsl(208, 99%, 50%);
- outline: none;
-}
-
-.react-tabs__tab:focus:after {
- content: "";
- position: absolute;
- height: 5px;
- left: -4px;
- right: -4px;
- bottom: -5px;
- background: #fff;
-}
-
-.react-tabs__tab-panel {
- display: none;
-}
-
-.react-tabs__tab-panel--selected {
- display: block;
-}
-
-@keyframes Room-info-state-connecting {
- 50% { background-color: rgba(orange, 0.75); }
-}
diff --git a/app/stylus/components/ScreenView.styl b/app/stylus/components/ScreenView.styl
deleted file mode 100644
index 84a038c..0000000
--- a/app/stylus/components/ScreenView.styl
+++ /dev/null
@@ -1,74 +0,0 @@
-[data-component='ScreenView'] {
- position: relative;
- flex: 100 100 auto;
- height: 100%;
- width: 100%;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- background-color: var(--peer-bg-color);
- background-image: var(--peer-empty-avatar);
- background-position: bottom;
- background-size: auto 85%;
- background-repeat: no-repeat;
-
- > .info {
- position: absolute;
- z-index: 10;
- top: 0.6vmin;
- left: 0.6vmin;
- bottom: 0;
- right: 0;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
-
- > .media {
- flex: 0 0 auto;
- display: flex;
- flex-direction: row;
-
- > .box {
- padding: 0.4vmin;
- border-radius: 2px;
- background-color: rgba(#000, 0.25);
-
- > p {
- user-select: none;
- pointer-events: none;
- margin-bottom: 2px;
- color: rgba(#fff, 0.7);
- font-size: 10px;
-
- &:last-child {
- margin-bottom: 0;
- }
- }
- }
- }
- }
-
- > video {
- flex: 100 100 auto;
- height: 100%;
- width: 100%;
- object-fit: contain;
- user-select: none;
- transition-property: opacity;
- transition-duration: .15s;
- background-color: var(--peer-video-bg-color);
-
- &.is-me {
- transform: scaleX(-1);
- }
-
- &.hidden {
- opacity: 0;
- transition-duration: 0s;
- }
-
- &.loading {
- filter: blur(5px);
- }
- }
-}
diff --git a/app/stylus/components/Sidebar.styl b/app/stylus/components/Sidebar.styl
deleted file mode 100644
index 2200c47..0000000
--- a/app/stylus/components/Sidebar.styl
+++ /dev/null
@@ -1,121 +0,0 @@
-[data-component='Sidebar'] {
- position: fixed;
- z-index: 500;
- top: 50%;
- transform: translate(0%, -50%);
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
-
- +desktop() {
- left: 1.0em;
- width: 2.6em;
- }
-
- +mobile() {
- left: 0.5em;
- width: 2.6em;
- }
-
- > .button {
- flex: 0 0 auto;
- margin: 4px 0;
- background-position: center;
- background-size: 75%;
- background-repeat: no-repeat;
- background-color: var(--circle-button-color);
- cursor: pointer;
- transition-property: opacity, background-color;
- transition-duration: 0.15s;
- border-radius: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- height: var(--circle-button-size);
- width: var(--circle-button-size);
-
- &.on {
- background-color: var(--circle-button-toggled-color);
- }
-
- &.unsupported {
- background-color: var(--circle-button-unsupported-color);
- }
-
- &.disabled {
- pointer-events: none;
- background-color: var(--circle-button-diabled-color);
- }
-
- &.login {
- &.off {
- background-image: url('/resources/images/icon_login_white.svg');
- }
- }
-
- &.logout > img {
- height: 65%;
- max-width: 65%;
- border-radius: 50%;
- }
-
- &.settings {
- &.off {
- background-image: url('/resources/images/icon_settings_white.svg');
- }
-
- &.on {
- background-image: url('/resources/images/icon_settings_black.svg');
- }
- }
-
- &.fullscreen {
- background-image: url('/resources/images/icon_fullscreen_white.svg');
-
- &.on {
- background-image: url('/resources/images/icon_fullscreen_exit_white.svg');
- }
- }
-
- &.screen {
- &.on {
- background-image: url('/resources/images/no-share-screen-black.svg');
- }
-
- &.off {
- background-image: url('/resources/images/share-screen-white.svg');
- }
-
- &.unsupported {
- background-image: url('/resources/images/no-share-screen-white.svg');
- }
-
- &.need-extension {
- background-image: url('/resources/images/share-screen-extension.svg');
- }
- }
-
- &.lock {
- &.locked {
- background-image: url('/resources/images/icon_locked_white.svg');
- }
-
- &.unlocked {
- background-image: url('/resources/images/icon_unlocked_white.svg');
- }
- }
-
- &.raise-hand {
- background-image: url('/resources/images/icon-hand-white.svg');
-
- &.on {
- background-image: url('/resources/images/icon-hand-black.svg');
- }
- }
-
- &.leave-meeting {
- background-image: url('/resources/images/cancel.svg');
- }
- }
-}
diff --git a/app/stylus/components/ToolArea.styl b/app/stylus/components/ToolArea.styl
deleted file mode 100644
index 154802b..0000000
--- a/app/stylus/components/ToolArea.styl
+++ /dev/null
@@ -1,198 +0,0 @@
-.toolarea-shade {
- position: fixed;
- z-index: 1000;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- display: none;
-
- &.open {
- display: block;
- }
-
- +desktop() {
- &.open {
- background: rgba(0, 0, 0, 0.3);
- display: block;
- }
- }
-}
-
-[data-component='ToolArea'] {
- &.open {
- width: 80%;
- }
-
- .toolarea-shade.open {
- display: block;
- }
-
- > .toolarea-button {
- text-align: center;
- writing-mode: vertical-rl;
- text-orientation: mixed;
- list-style: none;
- height: 115px;
- width: 35px;
- left: -35px;
- top: 50%;
- transform: translate(0, -50%);
- position: absolute;
- cursor: pointer;
-
- > .badge {
- border-radius: 50%;
- writing-mode: horizontal-tb;
- font-size: 1rem;
- background: #b12525;
- color: #fff;
- text-align: center;
- margin-top: -10px;
- line-height: 1rem;
- margin-left: -0px;
- position: absolute;
- padding: 0.2rem 0.4rem;
- top: 0;
- left: 0;
-
- &.long {
- border-radius: 25% / 50%;
- margin-top: -13px;
- margin-left: -4px;
- }
- }
-
- > .content {
- border: 1px solid #AAA;
- width: 100%;
- height: 100%;
- display: flex;
- border-bottom-left-radius: 6px;
- border-top-left-radius: 6px;
- background: #FFF;
- color: #333;
- z-index: 2;
- border-right-color: #FFF;
-
- &:before, &:after {
- border: 1px solid #AAA;
- position: absolute;
- width: 6px;
- height: 6px;
- content: "";
- }
-
- &:before {
- top: -6px;
- right: 0;
- border-bottom-right-radius: 6px;
- border-width: 0px 1px 1px 0px;
- box-shadow: 0px 3px 0 #FFF;
- }
-
- &:after {
- bottom: -6px;
- right: 0;
- border-top-right-radius: 6px;
- border-width: 1px 1px 0px 0px;
- box-shadow: 0px -3px 0 #FFF;
- }
-
- > .toolarea-icon {
- background-position: center;
- background-size: 75%;
- background-repeat: no-repeat;
- border-radius: 100%;
- height: 32px;
- width: 32px;
-
- background-image: url('/resources/images/icon_tool_area_black.svg');
- }
-
- > p {
- padding: 9px;
- }
- }
- }
-}
-
-@media (min-width: 600px) {
- [data-component='ToolArea'] {
- &.open {
- width: 60%;
- }
- }
-}
-
-@media (min-width: 900px) {
- [data-component='ToolArea'] {
- &.open {
- width: 40%;
- }
- }
-}
-
-@media (min-width: 1500px) {
- [data-component='ToolArea'] {
- &.open {
- width: 25%;
- }
- }
-}
-
-[data-component='ToolArea'] {
- width: 100%;
- height: 100%;
- color: #000;
- position: fixed;
- width: 0;
- top: 0;
- right: 0;
- height: 100%;
- background: #fff;
- transition: width 0.3s;
- z-index: 1010;
- display: flex;
- flex-direction: column;
- border-left: 1px solid #222;
-
- > .tab-headers {
- display: flex;
- background: #ddd;
- flex-shrink: 0;
-
- > .tab-header {
- flex-grow: 1;
- cursor: pointer;
- padding: 1rem;
- font-size: 1.2rem;
- text-align: center;
-
- &.checked {
- background: #fff;
- border-radius: 1vmin 1vmin 0vmin 0vmin;
- box-shadow: 0.5vmin 0vmin 1vmin -0.5vmin #aaa;
- }
-
- > .badge {
- padding: 0.2rem 0.6rem;
- text-align: center;
- font-weight: 300;
- font-size: 1rem;
- color: #fff;
- background-color: #b12525;
- border-radius: 2px;
- margin-left: 1vmin;
- }
- }
- }
-
- > .tab {
- flex-grow: 1;
- padding: 0.5rem;
- display: flex;
- flex-direction: column;
- min-height: 0;
- }
-}
diff --git a/app/stylus/fonts.styl b/app/stylus/fonts.styl
deleted file mode 100644
index 65b215d..0000000
--- a/app/stylus/fonts.styl
+++ /dev/null
@@ -1,62 +0,0 @@
-@font-face {
- font-family: 'Roboto';
- font-style: normal;
- font-weight: 300;
- src:
- local('Roboto Light'),
- local('Roboto-Light'), url('/resources/fonts/Roboto-light-ext.woff2') format('woff2');
- unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
-}
-@font-face {
- font-family: 'Roboto';
- font-style: normal;
- font-weight: 300;
- src:
- local('Roboto Light'),
- local('Roboto-Light'),
- url('/resources/fonts/Roboto-light.woff2') format('woff2'),
- url('/resources/fonts/Roboto-light.ttf') format('ttf');
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
-}
-@font-face {
- font-family: 'Roboto';
- font-style: normal;
- font-weight: 400;
- src:
- local('Roboto'),
- local('Roboto-Regular'),
- url('/resources/fonts/Roboto-regular-ext.woff2') format('woff2');
- unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
-}
-@font-face {
- font-family: 'Roboto';
- font-style: normal;
- font-weight: 400;
- src:
- local('Roboto'),
- local('Roboto-Regular'),
- url('/resources/fonts/Roboto-regular.woff2') format('woff2'),
- url('/resources/fonts/Roboto-regular.ttf') format('ttf');
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
-}
-@font-face {
- font-family: 'Roboto';
- font-style: normal;
- font-weight: 500;
- src:
- local('Roboto Medium'),
- local('Roboto-Medium'),
- url('/resources/fonts/Roboto-medium-ext.woff2') format('woff2');
- unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
-}
-@font-face {
- font-family: 'Roboto';
- font-style: normal;
- font-weight: 500;
- src:
- local('Roboto Medium'),
- local('Roboto-Medium'),
- url('/resources/fonts/Roboto-medium.woff2') format('woff2'),
- url('/resources/fonts/Roboto-medium.ttf') format('ttf');
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
-}
diff --git a/app/stylus/index.styl b/app/stylus/index.styl
deleted file mode 100644
index ad67260..0000000
--- a/app/stylus/index.styl
+++ /dev/null
@@ -1,127 +0,0 @@
-@import 'nib';
-
-global-reset();
-
-@import './mixins';
-@import './fonts';
-@import './reset';
-@import './keyframes';
-
-:root {
- --logo: url('/resources/images/logo.svg');
- --logo-width: 8%;
- --logo-height: 4%;
-
- --background: url('/resources/images/background.svg');
- --background-color: rgba(51, 51, 51, 1.0);
-
- --circle-button-color: rgba(255, 255, 255, 0.3);
- --circle-button-toggled-color: rgba(255, 255, 255, 0.7);
- --circle-button-unsupported-color: rgba(212, 34, 65, 0.7);
- --circle-button-diabled-color: rgba(255, 255, 255, 0.5);
- --circle-button-size: 2.5em;
-
- --media-control-button-color: rgba(255, 255, 255, 0.85);
- --media-control-botton-on: rgba(255, 255, 255, 0.7);
- --media-control-botton-off: rgba(212, 34, 65, 0.7);
- --media-control-botton-disabled: rgba(255, 255, 255, 0.5)
- --media-control-button-size: 1.5em;
-
- --me-shadow: 0px 5px 12px 2px rgba(17, 17, 17, 0.5);
- --me-border: 1px solid rgba(255, 255, 255, 0.15);
- --me-width: 20vmin;
- --me-height: 15vmin;
-
- --peer-shadow: 0px 5px 12px 2px rgba(17, 17, 17, 0.5);
- --peer-border: 1px solid rgba(255, 255, 255, 0.15);
- --peer-empty-avatar: url('/resources/images/buddy.svg');
- --peer-bg-color: rgba(42, 75, 88, 0.9);
- --peer-video-bg-color: rgba(0, 0, 0, 0.75);
-
- --chat-message-color: rgba(0, 0, 0, 0.1);
- --chat-input-bg-color: rgba(255, 255, 255, 1.0);
- --chat-input-text-color: rgba(0, 0, 0, 1.0);
- --chat-send-bg-color: rgba(170, 238, 255, 1.0);
-
- --filesharing-bg-color: rgba(170, 238, 255, 1.0);
-
- --notification-info-bg-color: rgba(10, 29, 38, 0.75);
- --notification-info-text-color: rgba(255, 255, 255, 0.65);
- --notification-error-bg-color: rgba(255, 25, 20, 0.65);
- --notification-error-text-color: rgba(255, 255, 255, 0.85);
-
- --active-speaker-border-color: rgba(255, 255, 255, 1.0);
- --selected-peer-border-color: rgba(55, 126, 255, 1.0);
-}
-
-html {
- height: 100%;
- font-family: 'Roboto';
- font-weight: 300;
- overflow-x: hidden;
- overflow-y: hidden;
-
- +mobile() {
- font-size: 12px;
- }
-}
-
-body {
- height: 100%;
- overflow-x: hidden;
- overflow-y: hidden;
- background-color: var(--background-color);
-
- +desktop() {
- font-size: 16px;
- background-image: var(--background);
- background-attachment: fixed;
- background-position: center;
- background-size: cover;
- background-repeat: no-repeat;
- }
-}
-
-#multiparty-meeting {
- height: 100%;
- width: 100%;
-}
-
-// Components
-@import './components/Room';
-@import './components/Logo';
-@import './components/Sidebar';
-@import './components/Me';
-@import './components/Peers';
-@import './components/Peer';
-@import './components/PeerView';
-@import './components/HiddenPeers';
-@import './components/ScreenView';
-@import './components/Notifications';
-@import './components/Chat';
-@import './components/ToolArea';
-@import './components/ParticipantList';
-@import './components/FullScreenView';
-@import './components/FullView';
-@import './components/Filmstrip';
-@import './components/FileSharing';
-@import './components/AudioPeers';
-
-// Hack to detect in JS the current media query
-#multiparty-meeting-media-query-detector {
- position: absolute;
- z-index: -1000;
- bottom: 0;
- left: 0;
- height: 1px;
- width: 1px;
-
- // In desktop let it "visible" so elem.offsetParent returns the parent element
- +desktop() {}
-
- // In mobile ensure it's not displayed so elem.offsetParent returns null
- +mobile() {
- display: none;
- position: fixed; // Required for old IE
- }
-}
diff --git a/app/stylus/keyframes.styl b/app/stylus/keyframes.styl
deleted file mode 100644
index 76a728e..0000000
--- a/app/stylus/keyframes.styl
+++ /dev/null
@@ -1,21 +0,0 @@
-@keyframes fade-in {
- from {
- opacity: 0;
- visibility: hidden;
- }
-
- to {
- visibility: visible;
- }
-}
-
-@keyframes fade-out {
- from {
- visibility: visible;
- }
-
- to {
- opacity: 0;
- visibility: hidden;
- }
-}
\ No newline at end of file
diff --git a/app/stylus/mixins.styl b/app/stylus/mixins.styl
deleted file mode 100644
index d68557a..0000000
--- a/app/stylus/mixins.styl
+++ /dev/null
@@ -1,33 +0,0 @@
-placeholder()
- &::-webkit-input-placeholder
- {block}
- &:-moz-placeholder
- {block}
- &::-moz-placeholder
- {block}
- &:-ms-input-placeholder
- {block}
-
-text-fill-color()
- -webkit-text-fill-color: arguments;
- -moz-text-fill-color: arguments;
- text-fill-color: arguments;
-
-mobile()
- @media (max-device-width: 720px)
- {block}
-
-desktop()
- @media (min-device-width: 721px)
- {block}
-
-AppearFadeIn($duration = 1s, $enterOpacity = 0, $activeOpacity = 1)
- will-change: opacity;
-
- &.Appear-appear
- opacity: $enterOpacity;
-
- &.Appear-appear.Appear-appear-active
- transition-property: opacity;
- transition-duration: $duration;
- opacity: $activeOpacity;
diff --git a/app/stylus/reset.styl b/app/stylus/reset.styl
deleted file mode 100644
index 7202cb0..0000000
--- a/app/stylus/reset.styl
+++ /dev/null
@@ -1,14 +0,0 @@
-* {
- box-sizing: border-box;
- outline: none;
-}
-
-body {
- background: none;
-}
-
-input {
- padding: 0;
- font-family: inherit;
- background-color: transparent;
-}