Fixes related to coding style
This commit is contained in:
parent
0765c60d77
commit
ee651840bf
|
@ -1,11 +1,16 @@
|
||||||
/* global APP, interfaceConfig */
|
/* @flow */
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
|
||||||
|
declare var APP: Object;
|
||||||
|
declare var interfaceConfig: Object;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The CSS style of the element with CSS class <tt>rightwatermark</tt>.
|
* The CSS style of the element with CSS class <tt>rightwatermark</tt>.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
*/
|
*/
|
||||||
const RIGHT_WATERMARK_STYLE = {
|
const _RIGHT_WATERMARK_STYLE = {
|
||||||
backgroundImage: 'url(images/rightwatermark.png)'
|
backgroundImage: 'url(images/rightwatermark.png)'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -14,13 +19,22 @@ const RIGHT_WATERMARK_STYLE = {
|
||||||
* etc.
|
* etc.
|
||||||
*/
|
*/
|
||||||
export class Watermarks extends Component {
|
export class Watermarks extends Component {
|
||||||
|
state = {
|
||||||
|
brandWatermarkLink: String,
|
||||||
|
jitsiWatermarkLink: String,
|
||||||
|
showBrandWatermark: Boolean,
|
||||||
|
showJitsiWatermark: Boolean,
|
||||||
|
showJitsiWatermarkForGuests: Boolean,
|
||||||
|
showPoweredBy: Boolean
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes a new Watermarks instance.
|
* Initializes a new Watermarks instance.
|
||||||
*
|
*
|
||||||
* @param {Object} props - The read-only properties with which the new
|
* @param {Object} props - The read-only properties with which the new
|
||||||
* instance is to be initialized.
|
* instance is to be initialized.
|
||||||
*/
|
*/
|
||||||
constructor(props) {
|
constructor(props: Object) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
let showBrandWatermark;
|
let showBrandWatermark;
|
||||||
|
@ -87,7 +101,7 @@ export class Watermarks extends Component {
|
||||||
target = '_new'>
|
target = '_new'>
|
||||||
<div
|
<div
|
||||||
className = 'watermark rightwatermark'
|
className = 'watermark rightwatermark'
|
||||||
style = { RIGHT_WATERMARK_STYLE } />
|
style = { _RIGHT_WATERMARK_STYLE } />
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,11 +13,14 @@ import { styles } from './styles';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The timeout in milliseconds after which the toolbar will be hidden.
|
* The timeout in milliseconds after which the toolbar will be hidden.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
const TOOLBAR_TIMEOUT_MS = 5000;
|
const _TOOLBAR_TIMEOUT_MS = 5000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The conference page of the application.
|
* The conference page of the mobile (i.e. React Native) application.
|
||||||
*/
|
*/
|
||||||
class Conference extends Component {
|
class Conference extends Component {
|
||||||
/**
|
/**
|
||||||
|
@ -220,7 +223,7 @@ class Conference extends Component {
|
||||||
this._clearToolbarTimeout();
|
this._clearToolbarTimeout();
|
||||||
if (toolbarVisible) {
|
if (toolbarVisible) {
|
||||||
this._toolbarTimeout
|
this._toolbarTimeout
|
||||||
= setTimeout(this._onClick, TOOLBAR_TIMEOUT_MS);
|
= setTimeout(this._onClick, _TOOLBAR_TIMEOUT_MS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,14 +9,18 @@ import { FeedbackButton } from '../../feedback';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For legacy reasons, inline style for display none.
|
* For legacy reasons, inline style for display none.
|
||||||
* @type {{display: string}}
|
*
|
||||||
|
* @private
|
||||||
|
* @type {{
|
||||||
|
* display: string
|
||||||
|
* }}
|
||||||
*/
|
*/
|
||||||
const DISPLAY_NONE_STYLE = {
|
const _DISPLAY_NONE_STYLE = {
|
||||||
display: 'none'
|
display: 'none'
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements a React Component which renders initial conference layout
|
* The conference page of the Web application.
|
||||||
*/
|
*/
|
||||||
class Conference extends Component {
|
class Conference extends Component {
|
||||||
|
|
||||||
|
@ -68,7 +72,7 @@ class Conference extends Component {
|
||||||
<div
|
<div
|
||||||
className = 'notice'
|
className = 'notice'
|
||||||
id = 'notice'
|
id = 'notice'
|
||||||
style = { DISPLAY_NONE_STYLE }>
|
style = { _DISPLAY_NONE_STYLE }>
|
||||||
<span
|
<span
|
||||||
className = 'noticeText'
|
className = 'noticeText'
|
||||||
id = 'noticeText' />
|
id = 'noticeText' />
|
||||||
|
@ -135,16 +139,14 @@ class Conference extends Component {
|
||||||
<span
|
<span
|
||||||
className = 'videocontainer'
|
className = 'videocontainer'
|
||||||
id = 'localVideoContainer'>
|
id = 'localVideoContainer'>
|
||||||
<div
|
<div className = 'videocontainer__background' />
|
||||||
className = 'videocontainer__background' />
|
|
||||||
<span id = 'localVideoWrapper' />
|
<span id = 'localVideoWrapper' />
|
||||||
<audio
|
<audio
|
||||||
autoPlay = { true }
|
autoPlay = { true }
|
||||||
id = 'localAudio'
|
id = 'localAudio'
|
||||||
muted = { true } />
|
muted = { true } />
|
||||||
<div className = 'videocontainer__toolbar' />
|
<div className = 'videocontainer__toolbar' />
|
||||||
<div
|
<div className = 'videocontainer__toptoolbar' />
|
||||||
className = 'videocontainer__toptoolbar' />
|
|
||||||
<div
|
<div
|
||||||
className
|
className
|
||||||
= 'videocontainer__hoverOverlay' />
|
= 'videocontainer__hoverOverlay' />
|
||||||
|
|
|
@ -1,10 +1,30 @@
|
||||||
/* global config */
|
/* @flow */
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
|
||||||
|
declare var config: Object;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A Web Component which renders feedback button.
|
* Implements a Web/React Component which renders a feedback button.
|
||||||
*/
|
*/
|
||||||
export class FeedbackButton extends Component {
|
export class FeedbackButton extends Component {
|
||||||
|
state = {
|
||||||
|
callStatsID: String
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initializes a new FeedbackButton instance.
|
||||||
|
*
|
||||||
|
* @param {Object} props - The read-only properties with which the new
|
||||||
|
* instance is to be initialized.
|
||||||
|
*/
|
||||||
|
constructor(props: Object) {
|
||||||
|
super(props);
|
||||||
|
|
||||||
|
this.state = {
|
||||||
|
callStatsID: config.callStatsID
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements React's {@link Component#render()}.
|
* Implements React's {@link Component#render()}.
|
||||||
|
@ -13,9 +33,8 @@ export class FeedbackButton extends Component {
|
||||||
* @returns {ReactElement}
|
* @returns {ReactElement}
|
||||||
*/
|
*/
|
||||||
render() {
|
render() {
|
||||||
|
// If callstats.io-support is not configured, skip rendering.
|
||||||
// if there is no callstats configured skip rendering
|
if (!this.state.callStatsID) {
|
||||||
if (!config.callStatsID) {
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue