2018-07-11 11:42:43 +02:00
|
|
|
// @flow
|
|
|
|
|
|
2017-10-23 14:18:12 +02:00
|
|
|
import { AtlasKitThemeProvider } from '@atlaskit/theme';
|
|
|
|
|
import React from 'react';
|
|
|
|
|
|
2018-02-02 14:39:27 +01:00
|
|
|
import '../../base/responsive-ui';
|
2018-01-23 15:31:54 -06:00
|
|
|
import '../../chat';
|
2017-03-06 21:43:41 -06:00
|
|
|
import '../../room-lock';
|
2018-05-17 15:42:21 -07:00
|
|
|
import '../../video-layout';
|
2017-03-06 21:43:41 -06:00
|
|
|
|
2017-07-21 16:12:02 -05:00
|
|
|
import { AbstractApp } from './AbstractApp';
|
|
|
|
|
|
2016-11-23 15:46:46 -06:00
|
|
|
/**
|
|
|
|
|
* Root application component.
|
|
|
|
|
*
|
|
|
|
|
* @extends AbstractApp
|
|
|
|
|
*/
|
|
|
|
|
export class App extends AbstractApp {
|
2017-10-23 14:18:12 +02:00
|
|
|
/**
|
|
|
|
|
* Overrides the parent method to inject {@link AtlasKitThemeProvider} as
|
|
|
|
|
* the top most component.
|
|
|
|
|
*
|
|
|
|
|
* @override
|
|
|
|
|
*/
|
2018-07-11 11:42:43 +02:00
|
|
|
_createMainElement(component, props) {
|
2017-10-23 14:18:12 +02:00
|
|
|
return (
|
|
|
|
|
<AtlasKitThemeProvider mode = 'dark'>
|
2018-07-11 11:42:43 +02:00
|
|
|
{ super._createMainElement(component, props) }
|
2017-10-23 14:18:12 +02:00
|
|
|
</AtlasKitThemeProvider>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-15 13:05:17 -06:00
|
|
|
/**
|
|
|
|
|
* Gets a Location object from the window with information about the current
|
|
|
|
|
* location of the document.
|
|
|
|
|
*
|
|
|
|
|
* @inheritdoc
|
|
|
|
|
*/
|
2017-03-01 21:33:49 -06:00
|
|
|
getWindowLocation() {
|
2017-01-15 13:05:17 -06:00
|
|
|
return window.location;
|
|
|
|
|
}
|
2016-11-23 15:46:46 -06:00
|
|
|
}
|