2019-11-02 15:44:19 +01:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import * as React from 'react';
|
2020-01-30 17:42:11 +01:00
|
|
|
import ThemeManager from "../../utils/ThemeManager";
|
|
|
|
import WebViewScreen from "../../components/WebViewScreen";
|
|
|
|
import i18n from "i18n-js";
|
2019-11-02 15:44:19 +01:00
|
|
|
|
|
|
|
type Props = {
|
|
|
|
navigation: Object,
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-01-30 17:42:11 +01:00
|
|
|
const URL = 'https://etud-mel.insa-toulouse.fr/webmail/';
|
|
|
|
|
|
|
|
const CUSTOM_CSS_GENERAL = '';
|
|
|
|
|
2019-11-02 15:44:19 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class defining the app's planex screen.
|
|
|
|
* This screen uses a webview to render the planex page
|
|
|
|
*/
|
|
|
|
export default class AmicaleScreen extends React.Component<Props> {
|
|
|
|
|
2020-01-30 17:42:11 +01:00
|
|
|
customInjectedJS: string;
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
this.customInjectedJS =
|
|
|
|
'$(document).ready(function() {' +
|
|
|
|
'$("head").append(\'<meta name="viewport" content="width=device-width, initial-scale=1.0">\');' +
|
|
|
|
'$("head").append(\'<link rel="stylesheet" href="' + CUSTOM_CSS_GENERAL + '" type="text/css"/>\');true;';
|
|
|
|
}
|
|
|
|
|
2019-11-02 15:44:19 +01:00
|
|
|
render() {
|
|
|
|
const nav = this.props.navigation;
|
|
|
|
return (
|
|
|
|
<WebViewScreen
|
|
|
|
navigation={nav}
|
2019-11-08 02:37:38 +01:00
|
|
|
data={[
|
|
|
|
{
|
|
|
|
url: URL,
|
|
|
|
icon: '',
|
|
|
|
name: '',
|
|
|
|
customJS: ''
|
|
|
|
},
|
|
|
|
]}
|
2020-01-30 17:42:11 +01:00
|
|
|
headerTitle={'Mails BlueMind'}
|
2019-11-02 15:44:19 +01:00
|
|
|
hasHeaderBackButton={true}
|
|
|
|
hasSideMenu={false}/>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|