summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-08-08 18:12:26 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-08-08 19:05:27 +0200
commit8d3f558cb9621c41c5962761eb58025fb4898c62 (patch)
tree1323fbb54c7a922b86737247334c384f703f1cd9
parentf1d3451e8b5ec4555c57284be182fef98dcd3752 (diff)
downloadmullvadvpn-8d3f558cb9621c41c5962761eb58025fb4898c62.tar.xz
mullvadvpn-8d3f558cb9621c41c5962761eb58025fb4898c62.zip
Add missing @flow
-rw-r--r--app/components/Account.js1
-rw-r--r--app/components/AccountInput.js1
-rw-r--r--app/components/AppButton.js1
-rw-r--r--app/components/AppButtonStyles.js2
-rw-r--r--app/components/BlurAppButtonStyles.android.js2
-rw-r--r--app/components/BlurAppButtonStyles.js2
-rw-r--r--app/components/ConnectStyles.js1
-rw-r--r--app/components/HeaderBar.js1
-rw-r--r--app/components/Img.android.js1
-rw-r--r--app/components/Img.js1
-rw-r--r--app/components/Launch.js1
-rw-r--r--app/components/Layout.js1
-rw-r--r--app/components/LayoutStyles.js1
-rw-r--r--app/components/Login.js1
-rw-r--r--app/components/LoginStyles.js1
-rw-r--r--app/components/PlatformWindow.android.js1
-rw-r--r--app/components/PlatformWindow.js1
-rw-r--r--app/components/Preferences.js1
-rw-r--r--app/components/PreferencesStyles.js1
-rw-r--r--app/components/SelectLocation.js1
-rw-r--r--app/components/SelectLocationStyles.js1
-rw-r--r--app/components/Settings.js3
-rw-r--r--app/components/SettingsStyles.js2
-rw-r--r--app/components/Support.js1
-rw-r--r--app/components/SupportStyles.js2
-rw-r--r--app/components/Switch.android.js1
-rw-r--r--app/components/Switch.js1
-rw-r--r--app/components/TransitionContainer.js1
-rw-r--r--app/components/TransitionContainerStyles.android.js1
-rw-r--r--app/components/TransitionContainerStyles.js1
-rw-r--r--app/containers/LaunchPage.js1
-rw-r--r--app/containers/SupportPage.js1
-rw-r--r--app/index.android.js2
-rw-r--r--app/lib/formatters.js1
-rw-r--r--app/lib/keyframe-animation.js1
-rw-r--r--app/lib/platform.android.js1
-rw-r--r--app/lib/platform.js1
-rw-r--r--app/lib/problem-report.android.js1
-rw-r--r--app/lib/problem-report.js1
-rw-r--r--app/main.js1
-rw-r--r--app/notification-controller.js1
-rw-r--r--app/redux/store.js1
-rw-r--r--app/shutdown-handler.js1
-rw-r--r--app/transitions.js1
-rw-r--r--app/tray-icon-controller.js1
45 files changed, 52 insertions, 1 deletions
diff --git a/app/components/Account.js b/app/components/Account.js
index 700f33af2b..41aea6d894 100644
--- a/app/components/Account.js
+++ b/app/components/Account.js
@@ -1,4 +1,5 @@
// @flow
+
import moment from 'moment';
import * as React from 'react';
import { Component, Text, View } from 'reactxp';
diff --git a/app/components/AccountInput.js b/app/components/AccountInput.js
index 32ad0aeb22..6e9dc34a7f 100644
--- a/app/components/AccountInput.js
+++ b/app/components/AccountInput.js
@@ -1,4 +1,5 @@
// @flow
+
import * as React from 'react';
import { TextInput } from 'reactxp';
import { formatAccount } from '../lib/formatters';
diff --git a/app/components/AppButton.js b/app/components/AppButton.js
index af8f36b47c..dd69ab1dc3 100644
--- a/app/components/AppButton.js
+++ b/app/components/AppButton.js
@@ -1,4 +1,5 @@
// @flow
+
import * as React from 'react';
import { Button, Text, Component } from 'reactxp';
import styles from './AppButtonStyles';
diff --git a/app/components/AppButtonStyles.js b/app/components/AppButtonStyles.js
index d84b78b8a3..cb278c3b0d 100644
--- a/app/components/AppButtonStyles.js
+++ b/app/components/AppButtonStyles.js
@@ -1,3 +1,5 @@
+// @flow
+
import { createViewStyles, createTextStyles } from '../lib/styles';
import { colors } from '../config';
diff --git a/app/components/BlurAppButtonStyles.android.js b/app/components/BlurAppButtonStyles.android.js
index c39e44cdd5..ba062f09a1 100644
--- a/app/components/BlurAppButtonStyles.android.js
+++ b/app/components/BlurAppButtonStyles.android.js
@@ -1,3 +1,5 @@
+// @flow
+
import { colors } from '../../config';
import { createViewStyles } from '../../lib/styles';
diff --git a/app/components/BlurAppButtonStyles.js b/app/components/BlurAppButtonStyles.js
index 18c16013a1..e824b2c496 100644
--- a/app/components/BlurAppButtonStyles.js
+++ b/app/components/BlurAppButtonStyles.js
@@ -1,3 +1,5 @@
+// @flow
+
import { createViewStyles } from '../lib/styles';
import { colors } from '../config';
diff --git a/app/components/ConnectStyles.js b/app/components/ConnectStyles.js
index 0db0d75179..b64178f7bd 100644
--- a/app/components/ConnectStyles.js
+++ b/app/components/ConnectStyles.js
@@ -1,4 +1,5 @@
// @flow
+
import { createViewStyles, createTextStyles } from '../lib/styles';
import { colors } from '../config';
diff --git a/app/components/HeaderBar.js b/app/components/HeaderBar.js
index 02b1d86e31..8a82ba7843 100644
--- a/app/components/HeaderBar.js
+++ b/app/components/HeaderBar.js
@@ -1,4 +1,5 @@
// @flow
+
import React from 'react';
import { Component, Text, Button, View, Styles } from 'reactxp';
import Img from './Img';
diff --git a/app/components/Img.android.js b/app/components/Img.android.js
index 229cb2c1b7..778562fe3d 100644
--- a/app/components/Img.android.js
+++ b/app/components/Img.android.js
@@ -1,4 +1,5 @@
// @flow
+
import React, { Component } from 'react';
import { StyleSheet } from 'react-native';
import { Image, Styles } from 'reactxp';
diff --git a/app/components/Img.js b/app/components/Img.js
index 6b34f99360..6919eb0740 100644
--- a/app/components/Img.js
+++ b/app/components/Img.js
@@ -1,4 +1,5 @@
// @flow
+
import * as React from 'react';
import { View, Component, Types } from 'reactxp';
diff --git a/app/components/Launch.js b/app/components/Launch.js
index bab877dd53..37dd38d73f 100644
--- a/app/components/Launch.js
+++ b/app/components/Launch.js
@@ -1,4 +1,5 @@
// @flow
+
import * as React from 'react';
import { Component, Styles, View, Text } from 'reactxp';
import { Layout, Container, Header } from './Layout';
diff --git a/app/components/Layout.js b/app/components/Layout.js
index 1eb6984797..42e96640c0 100644
--- a/app/components/Layout.js
+++ b/app/components/Layout.js
@@ -1,4 +1,5 @@
// @flow
+
import * as React from 'react';
import { View, Component } from 'reactxp';
import HeaderBar from './HeaderBar';
diff --git a/app/components/LayoutStyles.js b/app/components/LayoutStyles.js
index b3ef4f462e..d260273afb 100644
--- a/app/components/LayoutStyles.js
+++ b/app/components/LayoutStyles.js
@@ -1,4 +1,5 @@
// @flow
+
import { createViewStyles } from '../lib/styles';
import { colors } from '../config';
diff --git a/app/components/Login.js b/app/components/Login.js
index b410f80553..52fe8791b6 100644
--- a/app/components/Login.js
+++ b/app/components/Login.js
@@ -1,4 +1,5 @@
// @flow
+
import * as React from 'react';
import { Component, Text, View, Animated, Styles, UserInterface } from 'reactxp';
import { Layout, Container, Header } from './Layout';
diff --git a/app/components/LoginStyles.js b/app/components/LoginStyles.js
index 61e5026a71..cfe5634f49 100644
--- a/app/components/LoginStyles.js
+++ b/app/components/LoginStyles.js
@@ -1,4 +1,5 @@
// @flow
+
import { createViewStyles, createTextStyles } from '../lib/styles';
import { colors } from '../config';
diff --git a/app/components/PlatformWindow.android.js b/app/components/PlatformWindow.android.js
index 9d15466f56..32f9a4f3bf 100644
--- a/app/components/PlatformWindow.android.js
+++ b/app/components/PlatformWindow.android.js
@@ -1,4 +1,5 @@
// @flow
+
import * as React from 'react';
import { KeyboardAvoidingView } from 'react-native';
diff --git a/app/components/PlatformWindow.js b/app/components/PlatformWindow.js
index 10b689eb42..c1133af0c2 100644
--- a/app/components/PlatformWindow.js
+++ b/app/components/PlatformWindow.js
@@ -1,4 +1,5 @@
// @flow
+
import * as React from 'react';
import { Component, View, Styles } from 'reactxp';
diff --git a/app/components/Preferences.js b/app/components/Preferences.js
index 3fe803a156..7e57df3909 100644
--- a/app/components/Preferences.js
+++ b/app/components/Preferences.js
@@ -1,4 +1,5 @@
// @flow
+
import React from 'react';
import { Component, Text, View } from 'reactxp';
import { Layout, Container } from './Layout';
diff --git a/app/components/PreferencesStyles.js b/app/components/PreferencesStyles.js
index cafd37a016..8ae54e79c9 100644
--- a/app/components/PreferencesStyles.js
+++ b/app/components/PreferencesStyles.js
@@ -1,4 +1,5 @@
// @flow
+
import { createViewStyles, createTextStyles } from '../lib/styles';
import { colors } from '../config';
diff --git a/app/components/SelectLocation.js b/app/components/SelectLocation.js
index afa765dba6..0d737c3224 100644
--- a/app/components/SelectLocation.js
+++ b/app/components/SelectLocation.js
@@ -1,4 +1,5 @@
// @flow
+
import * as React from 'react';
import ReactDOM from 'react-dom';
import { View } from 'reactxp';
diff --git a/app/components/SelectLocationStyles.js b/app/components/SelectLocationStyles.js
index 424f535ae1..e11e830c2f 100644
--- a/app/components/SelectLocationStyles.js
+++ b/app/components/SelectLocationStyles.js
@@ -1,4 +1,5 @@
// @flow
+
import { createViewStyles } from '../lib/styles';
import { colors } from '../config';
diff --git a/app/components/Settings.js b/app/components/Settings.js
index 0ed45c7685..d0f49420d6 100644
--- a/app/components/Settings.js
+++ b/app/components/Settings.js
@@ -1,4 +1,5 @@
// @flow
+
import moment from 'moment';
import * as React from 'react';
import { Component, View } from 'reactxp';
@@ -92,7 +93,7 @@ export default class Settings extends Component<Props> {
return (
<View>
- <View style={styles.settings_account} testName="settings__account">
+ <View testName="settings__account">
{isOutOfTime ? (
<Cell.CellButton
onPress={this.props.onViewAccount}
diff --git a/app/components/SettingsStyles.js b/app/components/SettingsStyles.js
index c67edcecf9..d55476359c 100644
--- a/app/components/SettingsStyles.js
+++ b/app/components/SettingsStyles.js
@@ -1,3 +1,5 @@
+// @flow
+
import { createViewStyles, createTextStyles } from '../lib/styles';
import { colors } from '../config';
diff --git a/app/components/Support.js b/app/components/Support.js
index d97cc0d7b1..2552a0e432 100644
--- a/app/components/Support.js
+++ b/app/components/Support.js
@@ -1,4 +1,5 @@
// @flow
+
import * as React from 'react';
import { Component, Text, View, TextInput } from 'reactxp';
import * as AppButton from './AppButton';
diff --git a/app/components/SupportStyles.js b/app/components/SupportStyles.js
index 6e50fe8298..416bf44784 100644
--- a/app/components/SupportStyles.js
+++ b/app/components/SupportStyles.js
@@ -1,3 +1,5 @@
+// @flow
+
import { createViewStyles, createTextStyles } from '../lib/styles';
import { colors } from '../config';
diff --git a/app/components/Switch.android.js b/app/components/Switch.android.js
index 4689107868..cbf29c3ad9 100644
--- a/app/components/Switch.android.js
+++ b/app/components/Switch.android.js
@@ -1,4 +1,5 @@
// @flow
+
import * as React from 'react';
import { Switch as _Switch } from 'react-native';
diff --git a/app/components/Switch.js b/app/components/Switch.js
index 257b2c6587..4abb4a247f 100644
--- a/app/components/Switch.js
+++ b/app/components/Switch.js
@@ -1,4 +1,5 @@
// @flow
+
import * as React from 'react';
const CLICK_TIMEOUT = 1000;
diff --git a/app/components/TransitionContainer.js b/app/components/TransitionContainer.js
index 1b6e8aee8f..2c1fb09995 100644
--- a/app/components/TransitionContainer.js
+++ b/app/components/TransitionContainer.js
@@ -1,4 +1,5 @@
// @flow
+
import * as React from 'react';
import { Styles, Component, Animated, View, Types, UserInterface } from 'reactxp';
import type { TransitionGroupProps } from '../transitions';
diff --git a/app/components/TransitionContainerStyles.android.js b/app/components/TransitionContainerStyles.android.js
index c894d9fb01..d69980ab43 100644
--- a/app/components/TransitionContainerStyles.android.js
+++ b/app/components/TransitionContainerStyles.android.js
@@ -1,4 +1,5 @@
// @flow
+
import { Styles, UserInterface } from 'reactxp';
import { MobileAppBridge } from 'NativeModules';
import { log } from '../lib/platform';
diff --git a/app/components/TransitionContainerStyles.js b/app/components/TransitionContainerStyles.js
index c6510c0600..ca95cabfee 100644
--- a/app/components/TransitionContainerStyles.js
+++ b/app/components/TransitionContainerStyles.js
@@ -1,4 +1,5 @@
// @flow
+
import { Styles, UserInterface } from 'reactxp';
const dimensions = UserInterface.measureWindow();
diff --git a/app/containers/LaunchPage.js b/app/containers/LaunchPage.js
index 1b265dd030..3ab740897d 100644
--- a/app/containers/LaunchPage.js
+++ b/app/containers/LaunchPage.js
@@ -1,4 +1,5 @@
// @flow
+
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { push } from 'connected-react-router';
diff --git a/app/containers/SupportPage.js b/app/containers/SupportPage.js
index 78d1b41ebe..b9e3f426bf 100644
--- a/app/containers/SupportPage.js
+++ b/app/containers/SupportPage.js
@@ -1,4 +1,5 @@
// @flow
+
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { goBack } from 'connected-react-router';
diff --git a/app/index.android.js b/app/index.android.js
index e41ccc567a..c17bd40f9e 100644
--- a/app/index.android.js
+++ b/app/index.android.js
@@ -1,3 +1,5 @@
+// @flow
+
import React from 'react';
import RX from 'reactxp';
import App from './App';
diff --git a/app/lib/formatters.js b/app/lib/formatters.js
index 437351621d..37d7460768 100644
--- a/app/lib/formatters.js
+++ b/app/lib/formatters.js
@@ -1,4 +1,5 @@
// @flow
+
export const formatAccount = (val: string): string => {
// display number altogether when longer than 12
if (val.length > 12) {
diff --git a/app/lib/keyframe-animation.js b/app/lib/keyframe-animation.js
index 2961412230..028c95769a 100644
--- a/app/lib/keyframe-animation.js
+++ b/app/lib/keyframe-animation.js
@@ -1,4 +1,5 @@
// @flow
+
import { nativeImage } from 'electron';
import type { NativeImage } from 'electron';
diff --git a/app/lib/platform.android.js b/app/lib/platform.android.js
index 5b3abb4496..e71c1facf7 100644
--- a/app/lib/platform.android.js
+++ b/app/lib/platform.android.js
@@ -1,4 +1,5 @@
// @flow
+
import { BackHandler, Linking } from 'react-native';
import { MobileAppBridge } from 'NativeModules';
import { version } from '../../package.json';
diff --git a/app/lib/platform.js b/app/lib/platform.js
index 2ba438274f..cabb4951d9 100644
--- a/app/lib/platform.js
+++ b/app/lib/platform.js
@@ -1,4 +1,5 @@
// @flow
+
import fs from 'fs';
import { remote, shell } from 'electron';
import electronLog from 'electron-log';
diff --git a/app/lib/problem-report.android.js b/app/lib/problem-report.android.js
index b0bee2264d..30a944e178 100644
--- a/app/lib/problem-report.android.js
+++ b/app/lib/problem-report.android.js
@@ -1,4 +1,5 @@
// @flow
+
import { MobileAppBridge } from 'NativeModules';
const collectProblemReport = (toRedact: string) => {
diff --git a/app/lib/problem-report.js b/app/lib/problem-report.js
index df302bd908..19d24f3e0f 100644
--- a/app/lib/problem-report.js
+++ b/app/lib/problem-report.js
@@ -1,4 +1,5 @@
// @flow
+
import { ipcRenderer } from 'electron';
import uuid from 'uuid';
diff --git a/app/main.js b/app/main.js
index ef4e2e9e24..aafeed02e6 100644
--- a/app/main.js
+++ b/app/main.js
@@ -1,4 +1,5 @@
// @flow
+
import fs from 'fs';
import path from 'path';
import { execFile } from 'child_process';
diff --git a/app/notification-controller.js b/app/notification-controller.js
index 62d6381e72..ff2c80db50 100644
--- a/app/notification-controller.js
+++ b/app/notification-controller.js
@@ -1,4 +1,5 @@
// @flow
+
import { remote } from 'electron';
export default class NotificationController {
diff --git a/app/redux/store.js b/app/redux/store.js
index e269d9902b..119e594a27 100644
--- a/app/redux/store.js
+++ b/app/redux/store.js
@@ -1,4 +1,5 @@
// @flow
+
import { createStore, applyMiddleware, combineReducers, compose } from 'redux';
import { routerMiddleware, connectRouter, push, replace } from 'connected-react-router';
import thunk from 'redux-thunk';
diff --git a/app/shutdown-handler.js b/app/shutdown-handler.js
index afd10f61b2..6bc2d90f46 100644
--- a/app/shutdown-handler.js
+++ b/app/shutdown-handler.js
@@ -1,4 +1,5 @@
// @flow
+
import { app, ipcMain, ipcRenderer } from 'electron';
import { log } from './lib/platform';
import type { WebContents } from 'electron';
diff --git a/app/transitions.js b/app/transitions.js
index 56b1d74cfb..56769f6877 100644
--- a/app/transitions.js
+++ b/app/transitions.js
@@ -1,4 +1,5 @@
// @flow
+
import TransitionRule from './lib/transition-rule';
import type { TransitionFork, TransitionDescriptor } from './lib/transition-rule';
diff --git a/app/tray-icon-controller.js b/app/tray-icon-controller.js
index c32421b20f..e4c23db2a1 100644
--- a/app/tray-icon-controller.js
+++ b/app/tray-icon-controller.js
@@ -1,4 +1,5 @@
// @flow
+
import path from 'path';
import KeyframeAnimation from './lib/keyframe-animation';
import type { Tray } from 'electron';