From 3f70da39e21150d16cac0efd314c87d7a5eac6e7 Mon Sep 17 00:00:00 2001 From: Godefroy Ponsinet Date: Wed, 22 Aug 2018 17:25:12 +0200 Subject: [PATCH] fix(eslint): comma always-multiline Signed-off-by: Godefroy Ponsinet --- client/react-native/.eslintrc | 3 +- .../common/components/Forms/ContactRequest.js | 12 +- .../common/components/Library/Grid.js | 4 +- .../common/components/Library/Icon.js | 10 +- .../common/components/Library/Menu.js | 8 +- .../common/components/Library/Screen.js | 10 +- .../common/components/Library/Text.js | 27 +- .../react-native/common/constants/colors.js | 2 +- .../common/constants/countries.js | 498 +++++++++--------- client/react-native/common/constants/fonts.js | 2 +- .../react-native/common/constants/screen.js | 2 +- client/react-native/common/relay.js | 8 +- client/react-native/common/styles.js | 72 +-- client/react-native/web/config/env.js | 43 +- client/react-native/web/config/paths.js | 2 +- client/react-native/web/config/polyfills.js | 1 - .../web/config/webpack.config.dev.js | 106 ++-- .../web/config/webpack.config.prod.js | 121 ++--- .../web/config/webpackDevServer.config.js | 27 +- client/react-native/web/scripts/build.js | 139 +++-- client/react-native/web/scripts/start.js | 4 +- client/react-native/web/scripts/test.js | 23 +- client/react-native/yarn.lock | 82 +-- 23 files changed, 559 insertions(+), 647 deletions(-) diff --git a/client/react-native/.eslintrc b/client/react-native/.eslintrc index 8f49c0ac48..a524ea25d2 100644 --- a/client/react-native/.eslintrc +++ b/client/react-native/.eslintrc @@ -18,8 +18,7 @@ "rules": { "no-console": "off", "linebreak-style": "off", - "comma-dangle": [ - "off", + "comma-dangle": ["error", "always-multiline" ], "no-multi-spaces": "off", diff --git a/client/react-native/common/components/Forms/ContactRequest.js b/client/react-native/common/components/Forms/ContactRequest.js index 354938b69e..f57a8cf8bf 100644 --- a/client/react-native/common/components/Forms/ContactRequest.js +++ b/client/react-native/common/components/Forms/ContactRequest.js @@ -6,7 +6,7 @@ import environment from '../../relay.js' var fields = { id: '', email: '', - phone: '' + phone: '', } export default class ContactRequest extends Component { @@ -69,7 +69,7 @@ const commit = (variables = {}) => variables, onCompleted: (res, errs) => console.log('Response receive from server.', res, errs), - onError: err => console.error(err) + onError: err => console.error(err), }) function handleRequestButton () { @@ -93,7 +93,7 @@ const styles = StyleSheet.create({ contactView: { marginTop: 50, alignItems: 'center', - justifyContent: 'center' + justifyContent: 'center', }, input: { borderColor: 'gray', @@ -102,10 +102,10 @@ const styles = StyleSheet.create({ height: 30, fontSize: 20, marginTop: 5, - marginBottom: 30 + marginBottom: 30, }, label: { fontSize: 16, - fontWeight: 'bold' - } + fontWeight: 'bold', + }, }) diff --git a/client/react-native/common/components/Library/Grid.js b/client/react-native/common/components/Library/Grid.js index ccf619440f..f340d7c55e 100644 --- a/client/react-native/common/components/Library/Grid.js +++ b/client/react-native/common/components/Library/Grid.js @@ -14,7 +14,7 @@ export const Block = ({ @@ -51,5 +51,5 @@ export const Col = props => ( export default { Row, - Col + Col, } diff --git a/client/react-native/common/components/Library/Icon.js b/client/react-native/common/components/Library/Icon.js index b7f6cdcb89..ca8416b704 100644 --- a/client/react-native/common/components/Library/Icon.js +++ b/client/react-native/common/components/Library/Icon.js @@ -11,7 +11,7 @@ const Icon = ({ name, color, rotate, style, ...props }: { name: String }) => { name .split('-') .splice(1) - .join('-') + .join('-'), ] const iconProps = { name: iconName, @@ -20,12 +20,12 @@ const Icon = ({ name, color, rotate, style, ...props }: { name: String }) => { { color: color || colors.textGrey }, rotate && { transform: [ - { rotate: typeof rotate === 'boolean' ? '90deg' : `${rotate}deg` } - ] + { rotate: typeof rotate === 'boolean' ? '90deg' : `${rotate}deg` }, + ], }, - style + style, ], - ...props + ...props, } switch (type) { case 'feather': diff --git a/client/react-native/common/components/Library/Menu.js b/client/react-native/common/components/Library/Menu.js index 180f5420ab..28440dcd48 100644 --- a/client/react-native/common/components/Library/Menu.js +++ b/client/react-native/common/components/Library/Menu.js @@ -4,7 +4,7 @@ import { StyleSheet, ScrollView, View, - TouchableOpacity + TouchableOpacity, } from 'react-native' import { Separator, CustomTextInput, Icon, Text } from '.' import { Row, Col } from './Grid' @@ -17,11 +17,11 @@ export default class Menu extends Component { style={[ { width: '100%', - backgroundColor: 'transparent' + backgroundColor: 'transparent', }, marginTop, !icon && !title && { marginTop: 32 }, - style + style, ]} > @@ -40,7 +40,7 @@ export default class Menu extends Component { static Item = class Item extends Component { state = { - delete: false + delete: false, } _delete = callback => () => diff --git a/client/react-native/common/components/Library/Screen.js b/client/react-native/common/components/Library/Screen.js index d19978f20b..dd4fa0fbdd 100644 --- a/client/react-native/common/components/Library/Screen.js +++ b/client/react-native/common/components/Library/Screen.js @@ -7,22 +7,22 @@ import { screen } from '../constants' export type ScreenState = { dimensions: { width: number, height: number }, - orientation: 'portrait' | 'landscape' + orientation: 'portrait' | 'landscape', } export type ScreenProps = { absolute: boolean, style?: Object, - onResize?: ScreenState => any + onResize?: ScreenState => any, } export default class Screen extends Component { state = { dimensions: { width: screen.dimensions.width, - height: screen.dimensions.height + height: screen.dimensions.height, }, - orientation: screen.orientation + orientation: screen.orientation, } _dimensions = screen.dimensions @@ -39,7 +39,7 @@ export default class Screen extends Component { this.setState( { dimensions: { width, height }, - orientation: width < height ? 'portrait' : 'landscape' + orientation: width < height ? 'portrait' : 'landscape', }, () => { this.props.onResize && this.props.onResize(this.state) diff --git a/client/react-native/common/components/Library/Text.js b/client/react-native/common/components/Library/Text.js index c8a4884013..d9a002f6e1 100644 --- a/client/react-native/common/components/Library/Text.js +++ b/client/react-native/common/components/Library/Text.js @@ -14,7 +14,7 @@ import { textTop, textBottom, bold, - shadow + shadow, } from '../styles' import { colors } from '../constants' @@ -41,14 +41,14 @@ const getPadding = ( small: 6, medium: 8, large: 10, - big: 12 + big: 12, } ) => { const padding = find({ inside: props, from: paddings, or: 'small' }) return { padding, paddingTop: padding / 3, - paddingBottom: padding / 3 + paddingBottom: padding / 3, } } @@ -59,14 +59,14 @@ const getBorderRadius = ( small: 3, medium: 4, large: 5, - big: 6 + big: 6, } ) => { const borderRadius = props.rounded ? find({ inside: props, from: radiuses, or: 'small' }) : 0 return { - borderRadius + borderRadius, } } @@ -77,7 +77,7 @@ const getSize = ( small: smallText, medium: mediumText, large: largeText, - big: bigText + big: bigText, } ) => find({ inside: props, from: sizes, or: 'small' }) @@ -88,7 +88,7 @@ const getIconSize = ( small: mediumText, medium: largeText, large: largeText, - big: bigText + big: bigText, } ) => find({ inside: props, from: sizes, or: 'small' }) @@ -97,7 +97,7 @@ const getHorizAlign = ( aligns = { center: textCenter, left: textLeft, - right: textRight + right: textRight, } ) => find({ inside: props, from: aligns, or: 'center' }) @@ -106,12 +106,13 @@ const getVertiAlign = ( aligns = { middle: textMiddle, top: textTop, - bottom: textBottom + bottom: textBottom, } ) => find({ inside: props, from: aligns, or: 'middle' }) const getColor = ({ background, color }) => ({ - color: colors[color] || color || (background ? colors.white : colors.textGrey) + color: + colors[color] || color || (background ? colors.white : colors.textGrey), }) const getWeight = props => props.bold && bold @@ -125,11 +126,11 @@ export const BackgroundText = props => { backgroundColor: (background === true && colors.blackGrey) || background || - colors.transparent + colors.transparent, }, getBorderRadius(props), getPadding(props), - props.shadow && shadow + props.shadow && shadow, ]} > {children} @@ -145,7 +146,7 @@ export const ForegroundText = props => { getSize(props), getIconSize(props), getWeight(props), - getColor(props) + getColor(props), ] return ( diff --git a/client/react-native/common/constants/colors.js b/client/react-native/common/constants/colors.js index 89f101e047..d8a3e4e8d1 100644 --- a/client/react-native/common/constants/colors.js +++ b/client/react-native/common/constants/colors.js @@ -26,5 +26,5 @@ export default { secondary: '#f1f1fc', success: '#15D09D', warning: '#FFD665', - error: '#F00062' + error: '#F00062', } diff --git a/client/react-native/common/constants/countries.js b/client/react-native/common/constants/countries.js index c76972a672..7997b16496 100644 --- a/client/react-native/common/constants/countries.js +++ b/client/react-native/common/constants/countries.js @@ -4,1735 +4,1735 @@ export default ([ name: 'Afghanistan', clean: 'afghanistan', code: '93', - flag: '๐Ÿ‡ฆ๐Ÿ‡ซ' + flag: '๐Ÿ‡ฆ๐Ÿ‡ซ', }, { key: 'aland-islands-358', name: 'ร…land Islands', clean: 'aland islands', code: '358', - flag: '๐Ÿ‡ฆ๐Ÿ‡ฝ' + flag: '๐Ÿ‡ฆ๐Ÿ‡ฝ', }, { key: 'albania-355', name: 'Albania', clean: 'albania', code: '355', - flag: '๐Ÿ‡ฆ๐Ÿ‡ฑ' + flag: '๐Ÿ‡ฆ๐Ÿ‡ฑ', }, { key: 'algeria-213', name: 'Algeria', clean: 'algeria', code: '213', - flag: '๐Ÿ‡ฉ๐Ÿ‡ฟ' + flag: '๐Ÿ‡ฉ๐Ÿ‡ฟ', }, { key: 'american-samoa-1684', name: 'American Samoa', clean: 'american samoa', code: '1684', - flag: '๐Ÿ‡ฆ๐Ÿ‡ธ' + flag: '๐Ÿ‡ฆ๐Ÿ‡ธ', }, { key: 'andorra-376', name: 'Andorra', clean: 'andorra', code: '376', - flag: '๐Ÿ‡ฆ๐Ÿ‡ฉ' + flag: '๐Ÿ‡ฆ๐Ÿ‡ฉ', }, { key: 'angola-244', name: 'Angola', clean: 'angola', code: '244', - flag: '๐Ÿ‡ฆ๐Ÿ‡ด' + flag: '๐Ÿ‡ฆ๐Ÿ‡ด', }, { key: 'anguilla-1264', name: 'Anguilla', clean: 'anguilla', code: '1264', - flag: '๐Ÿ‡ฆ๐Ÿ‡ฎ' + flag: '๐Ÿ‡ฆ๐Ÿ‡ฎ', }, { key: 'antigua-barbuda-1268', name: 'Antigua & Barbuda', clean: 'antigua & barbuda', code: '1268', - flag: '๐Ÿ‡ฆ๐Ÿ‡ฌ' + flag: '๐Ÿ‡ฆ๐Ÿ‡ฌ', }, { key: 'argentina-54', name: 'Argentina', clean: 'argentina', code: '54', - flag: '๐Ÿ‡ฆ๐Ÿ‡ท' + flag: '๐Ÿ‡ฆ๐Ÿ‡ท', }, { key: 'armenia-374', name: 'Armenia', clean: 'armenia', code: '374', - flag: '๐Ÿ‡ฆ๐Ÿ‡ฒ' + flag: '๐Ÿ‡ฆ๐Ÿ‡ฒ', }, { key: 'aruba-297', name: 'Aruba', clean: 'aruba', code: '297', - flag: '๐Ÿ‡ฆ๐Ÿ‡ผ' + flag: '๐Ÿ‡ฆ๐Ÿ‡ผ', }, { key: 'ascension-island-247', name: 'Ascension Island', clean: 'ascension island', code: '247', - flag: '๐Ÿ‡ฆ๐Ÿ‡จ' + flag: '๐Ÿ‡ฆ๐Ÿ‡จ', }, { key: 'australia-61', name: 'Australia', clean: 'australia', code: '61', - flag: '๐Ÿ‡ฆ๐Ÿ‡บ' + flag: '๐Ÿ‡ฆ๐Ÿ‡บ', }, { key: 'austria-43', name: 'Austria', clean: 'austria', code: '43', - flag: '๐Ÿ‡ฆ๐Ÿ‡น' + flag: '๐Ÿ‡ฆ๐Ÿ‡น', }, { key: 'azerbaijan-994', name: 'Azerbaijan', clean: 'azerbaijan', code: '994', - flag: '๐Ÿ‡ฆ๐Ÿ‡ฟ' + flag: '๐Ÿ‡ฆ๐Ÿ‡ฟ', }, { key: 'bahamas-1242', name: 'Bahamas', clean: 'bahamas', code: '1242', - flag: '๐Ÿ‡ง๐Ÿ‡ธ' + flag: '๐Ÿ‡ง๐Ÿ‡ธ', }, { key: 'bahrain-973', name: 'Bahrain', clean: 'bahrain', code: '973', - flag: '๐Ÿ‡ง๐Ÿ‡ญ' + flag: '๐Ÿ‡ง๐Ÿ‡ญ', }, { key: 'bangladesh-880', name: 'Bangladesh', clean: 'bangladesh', code: '880', - flag: '๐Ÿ‡ง๐Ÿ‡ฉ' + flag: '๐Ÿ‡ง๐Ÿ‡ฉ', }, { key: 'barbados-1246', name: 'Barbados', clean: 'barbados', code: '1246', - flag: '๐Ÿ‡ง๐Ÿ‡ง' + flag: '๐Ÿ‡ง๐Ÿ‡ง', }, { key: 'belarus-375', name: 'Belarus', clean: 'belarus', code: '375', - flag: '๐Ÿ‡ง๐Ÿ‡พ' + flag: '๐Ÿ‡ง๐Ÿ‡พ', }, { key: 'belgium-32', name: 'Belgium', clean: 'belgium', code: '32', - flag: '๐Ÿ‡ง๐Ÿ‡ช' + flag: '๐Ÿ‡ง๐Ÿ‡ช', }, { key: 'belize-501', name: 'Belize', clean: 'belize', code: '501', - flag: '๐Ÿ‡ง๐Ÿ‡ฟ' + flag: '๐Ÿ‡ง๐Ÿ‡ฟ', }, { key: 'benin-229', name: 'Benin', clean: 'benin', code: '229', - flag: '๐Ÿ‡ง๐Ÿ‡ฏ' + flag: '๐Ÿ‡ง๐Ÿ‡ฏ', }, { key: 'bermuda-1441', name: 'Bermuda', clean: 'bermuda', code: '1441', - flag: '๐Ÿ‡ง๐Ÿ‡ฒ' + flag: '๐Ÿ‡ง๐Ÿ‡ฒ', }, { key: 'bhutan-975', name: 'Bhutan', clean: 'bhutan', code: '975', - flag: '๐Ÿ‡ง๐Ÿ‡น' + flag: '๐Ÿ‡ง๐Ÿ‡น', }, { key: 'bolivia-591', name: 'Bolivia', clean: 'bolivia', code: '591', - flag: '๐Ÿ‡ง๐Ÿ‡ด' + flag: '๐Ÿ‡ง๐Ÿ‡ด', }, { key: 'bosnia-herzegovina-387', name: 'Bosnia & Herzegovina', clean: 'bosnia & herzegovina', code: '387', - flag: '๐Ÿ‡ง๐Ÿ‡ฆ' + flag: '๐Ÿ‡ง๐Ÿ‡ฆ', }, { key: 'botswana-267', name: 'Botswana', clean: 'botswana', code: '267', - flag: '๐Ÿ‡ง๐Ÿ‡ผ' + flag: '๐Ÿ‡ง๐Ÿ‡ผ', }, { key: 'brazil-55', name: 'Brazil', clean: 'brazil', code: '55', - flag: '๐Ÿ‡ง๐Ÿ‡ท' + flag: '๐Ÿ‡ง๐Ÿ‡ท', }, { key: 'british-indian-ocean-territory-246', name: 'British Indian Ocean Territory', clean: 'british indian ocean territory', code: '246', - flag: '๐Ÿ‡ฎ๐Ÿ‡ด' + flag: '๐Ÿ‡ฎ๐Ÿ‡ด', }, { key: 'british-virgin-islands-1284', name: 'British Virgin Islands', clean: 'british virgin islands', code: '1284', - flag: '๐Ÿ‡ป๐Ÿ‡ฌ' + flag: '๐Ÿ‡ป๐Ÿ‡ฌ', }, { key: 'brunei-673', name: 'Brunei', clean: 'brunei', code: '673', - flag: '๐Ÿ‡ง๐Ÿ‡ณ' + flag: '๐Ÿ‡ง๐Ÿ‡ณ', }, { key: 'bulgaria-359', name: 'Bulgaria', clean: 'bulgaria', code: '359', - flag: '๐Ÿ‡ง๐Ÿ‡ฌ' + flag: '๐Ÿ‡ง๐Ÿ‡ฌ', }, { key: 'burkina-faso-226', name: 'Burkina Faso', clean: 'burkina faso', code: '226', - flag: '๐Ÿ‡ง๐Ÿ‡ซ' + flag: '๐Ÿ‡ง๐Ÿ‡ซ', }, { key: 'burundi-257', name: 'Burundi', clean: 'burundi', code: '257', - flag: '๐Ÿ‡ง๐Ÿ‡ฎ' + flag: '๐Ÿ‡ง๐Ÿ‡ฎ', }, { key: 'cambodia-855', name: 'Cambodia', clean: 'cambodia', code: '855', - flag: '๐Ÿ‡ฐ๐Ÿ‡ญ' + flag: '๐Ÿ‡ฐ๐Ÿ‡ญ', }, { key: 'cameroon-237', name: 'Cameroon', clean: 'cameroon', code: '237', - flag: '๐Ÿ‡จ๐Ÿ‡ฒ' + flag: '๐Ÿ‡จ๐Ÿ‡ฒ', }, { key: 'canada-1', name: 'Canada', clean: 'canada', code: '1', - flag: '๐Ÿ‡จ๐Ÿ‡ฆ' + flag: '๐Ÿ‡จ๐Ÿ‡ฆ', }, { key: 'cape-verde-238', name: 'Cape Verde', clean: 'cape verde', code: '238', - flag: '๐Ÿ‡จ๐Ÿ‡ป' + flag: '๐Ÿ‡จ๐Ÿ‡ป', }, { key: 'caribbean-netherlands-1345', name: 'Caribbean Netherlands', clean: 'caribbean netherlands', code: '1345', - flag: '๐Ÿ‡ง๐Ÿ‡ถ' + flag: '๐Ÿ‡ง๐Ÿ‡ถ', }, { key: 'cayman-islands-1345', name: 'Cayman Islands', clean: 'cayman islands', code: '1345', - flag: '๐Ÿ‡ฐ๐Ÿ‡พ' + flag: '๐Ÿ‡ฐ๐Ÿ‡พ', }, { key: 'central-african-republic-236', name: 'Central African Republic', clean: 'central african republic', code: '236', - flag: '๐Ÿ‡จ๐Ÿ‡ซ' + flag: '๐Ÿ‡จ๐Ÿ‡ซ', }, { key: 'chad-235', name: 'Chad', clean: 'chad', code: '235', - flag: '๐Ÿ‡น๐Ÿ‡ฉ' + flag: '๐Ÿ‡น๐Ÿ‡ฉ', }, { key: 'chile-56', name: 'Chile', clean: 'chile', code: '56', - flag: '๐Ÿ‡จ๐Ÿ‡ฑ' + flag: '๐Ÿ‡จ๐Ÿ‡ฑ', }, { key: 'china-86', name: 'China', clean: 'china', code: '86', - flag: '๐Ÿ‡จ๐Ÿ‡ณ' + flag: '๐Ÿ‡จ๐Ÿ‡ณ', }, { key: 'christmas-island-61', name: 'Christmas Island', clean: 'christmas island', code: '61', - flag: '๐Ÿ‡จ๐Ÿ‡ฝ' + flag: '๐Ÿ‡จ๐Ÿ‡ฝ', }, { key: 'cocos-keeling-islands-61', name: 'Cocos (Keeling) Islands', clean: 'cocos (keeling) islands', code: '61', - flag: '๐Ÿ‡จ๐Ÿ‡จ' + flag: '๐Ÿ‡จ๐Ÿ‡จ', }, { key: 'colombia-57', name: 'Colombia', clean: 'colombia', code: '57', - flag: '๐Ÿ‡จ๐Ÿ‡ด' + flag: '๐Ÿ‡จ๐Ÿ‡ด', }, { key: 'comoros-269', name: 'Comoros', clean: 'comoros', code: '269', - flag: '๐Ÿ‡ฐ๐Ÿ‡ฒ' + flag: '๐Ÿ‡ฐ๐Ÿ‡ฒ', }, { key: 'congo-brazzaville-242', name: 'Congo - Brazzaville', clean: 'congo - brazzaville', code: '242', - flag: '๐Ÿ‡จ๐Ÿ‡ฌ' + flag: '๐Ÿ‡จ๐Ÿ‡ฌ', }, { key: 'congo-kinshasa-243', name: 'Congo - Kinshasa', clean: 'congo kinshasa', code: '243', - flag: '๐Ÿ‡จ๐Ÿ‡ฉ' + flag: '๐Ÿ‡จ๐Ÿ‡ฉ', }, { key: 'cook-islands-682', name: 'Cook Islands', clean: 'cook islands', code: '682', - flag: '๐Ÿ‡จ๐Ÿ‡ฐ' + flag: '๐Ÿ‡จ๐Ÿ‡ฐ', }, { key: 'costa-rica-506', name: 'Costa Rica', clean: 'costa rica', code: '506', - flag: '๐Ÿ‡จ๐Ÿ‡ท' + flag: '๐Ÿ‡จ๐Ÿ‡ท', }, { key: 'cote-d-ivoire-225', name: "Cรดte d'Ivoire", clean: "cote d'ivoire", code: '225', - flag: '๐Ÿ‡จ๐Ÿ‡ฎ' + flag: '๐Ÿ‡จ๐Ÿ‡ฎ', }, { key: 'croatia-385', name: 'Croatia', clean: 'croatia', code: '385', - flag: '๐Ÿ‡ญ๐Ÿ‡ท' + flag: '๐Ÿ‡ญ๐Ÿ‡ท', }, { key: 'cuba-53', name: 'Cuba', clean: 'cuba', code: '53', - flag: '๐Ÿ‡จ๐Ÿ‡บ' + flag: '๐Ÿ‡จ๐Ÿ‡บ', }, { key: 'curacao-5999', name: 'Curaรงao', clean: 'curacao', code: '5999', - flag: '๐Ÿ‡จ๐Ÿ‡ผ' + flag: '๐Ÿ‡จ๐Ÿ‡ผ', }, { key: 'cyprus-357', name: 'Cyprus', clean: 'cyprus', code: '357', - flag: '๐Ÿ‡จ๐Ÿ‡พ' + flag: '๐Ÿ‡จ๐Ÿ‡พ', }, { key: 'czechia-420', name: 'Czechia', clean: 'czechia', code: '420', - flag: '๐Ÿ‡จ๐Ÿ‡ฟ' + flag: '๐Ÿ‡จ๐Ÿ‡ฟ', }, { key: 'denmark-45', name: 'Denmark', clean: 'denmark', code: '45', - flag: '๐Ÿ‡ฉ๐Ÿ‡ฐ' + flag: '๐Ÿ‡ฉ๐Ÿ‡ฐ', }, { key: 'djibouti-253', name: 'Djibouti', clean: 'djibouti', code: '253', - flag: '๐Ÿ‡ฉ๐Ÿ‡ฏ' + flag: '๐Ÿ‡ฉ๐Ÿ‡ฏ', }, { key: 'dominica-1767', name: 'Dominica', clean: 'dominica', code: '1767', - flag: '๐Ÿ‡ฉ๐Ÿ‡ฒ' + flag: '๐Ÿ‡ฉ๐Ÿ‡ฒ', }, { key: 'dominican-republic-1809', name: 'Dominican Republic', clean: 'dominican republic', code: '1809', - flag: '๐Ÿ‡ฉ๐Ÿ‡ด' + flag: '๐Ÿ‡ฉ๐Ÿ‡ด', }, { key: 'ecuador-593', name: 'Ecuador', clean: 'ecuador', code: '593', - flag: '๐Ÿ‡ช๐Ÿ‡จ' + flag: '๐Ÿ‡ช๐Ÿ‡จ', }, { key: 'egypt-20', name: 'Egypt', clean: 'egypt', code: '20', - flag: '๐Ÿ‡ช๐Ÿ‡ฌ' + flag: '๐Ÿ‡ช๐Ÿ‡ฌ', }, { key: 'el-salvador-503', name: 'El Salvador', clean: 'el salvador', code: '503', - flag: '๐Ÿ‡ธ๐Ÿ‡ป' + flag: '๐Ÿ‡ธ๐Ÿ‡ป', }, { key: 'equatorial-guinea-240', name: 'Equatorial Guinea', clean: 'equatorial guinea', code: '240', - flag: '๐Ÿ‡ฌ๐Ÿ‡ถ' + flag: '๐Ÿ‡ฌ๐Ÿ‡ถ', }, { key: 'eritrea-291', name: 'Eritrea', clean: 'eritrea', code: '291', - flag: '๐Ÿ‡ช๐Ÿ‡ท' + flag: '๐Ÿ‡ช๐Ÿ‡ท', }, { key: 'estonia-372', name: 'Estonia', clean: 'estonia', code: '372', - flag: '๐Ÿ‡ช๐Ÿ‡ช' + flag: '๐Ÿ‡ช๐Ÿ‡ช', }, { key: 'ethiopia-251', name: 'Ethiopia', clean: 'ethiopia', code: '251', - flag: '๐Ÿ‡ช๐Ÿ‡น' + flag: '๐Ÿ‡ช๐Ÿ‡น', }, { key: 'falkland-islands-500', name: 'Falkland Islands', clean: 'falkland islands', code: '500', - flag: '๐Ÿ‡ซ๐Ÿ‡ฐ' + flag: '๐Ÿ‡ซ๐Ÿ‡ฐ', }, { key: 'faroe-islands-298', name: 'Faroe Islands', clean: 'faroe islands', code: '298', - flag: '๐Ÿ‡ซ๐Ÿ‡ด' + flag: '๐Ÿ‡ซ๐Ÿ‡ด', }, { key: 'fiji-679', name: 'Fiji', clean: 'fiji', code: '679', - flag: '๐Ÿ‡ซ๐Ÿ‡ฏ' + flag: '๐Ÿ‡ซ๐Ÿ‡ฏ', }, { key: 'finland-358', name: 'Finland', clean: 'finland', code: '358', - flag: '๐Ÿ‡ซ๐Ÿ‡ฎ' + flag: '๐Ÿ‡ซ๐Ÿ‡ฎ', }, { key: 'france-33', name: 'France', clean: 'france', code: '33', - flag: '๐Ÿ‡ซ๐Ÿ‡ท' + flag: '๐Ÿ‡ซ๐Ÿ‡ท', }, { key: 'french-guiana-594', name: 'French Guiana', clean: 'french guiana', code: '594', - flag: '๐Ÿ‡ฌ๐Ÿ‡ซ' + flag: '๐Ÿ‡ฌ๐Ÿ‡ซ', }, { key: 'french-polynesia-689', name: 'French Polynesia', clean: 'french polynesia', code: '689', - flag: '๐Ÿ‡ต๐Ÿ‡ซ' + flag: '๐Ÿ‡ต๐Ÿ‡ซ', }, { key: 'gabon-241', name: 'Gabon', clean: 'gabon', code: '241', - flag: '๐Ÿ‡ฌ๐Ÿ‡ฆ' + flag: '๐Ÿ‡ฌ๐Ÿ‡ฆ', }, { key: 'gambia-220', name: 'Gambia', clean: 'gambia', code: '220', - flag: '๐Ÿ‡ฌ๐Ÿ‡ฒ' + flag: '๐Ÿ‡ฌ๐Ÿ‡ฒ', }, { key: 'georgia-995', name: 'Georgia', clean: 'georgia', code: '995', - flag: '๐Ÿ‡ฌ๐Ÿ‡ช' + flag: '๐Ÿ‡ฌ๐Ÿ‡ช', }, { key: 'germany-49', name: 'Germany', clean: 'germany', code: '49', - flag: '๐Ÿ‡ฉ๐Ÿ‡ช' + flag: '๐Ÿ‡ฉ๐Ÿ‡ช', }, { key: 'ghana-233', name: 'Ghana', clean: 'ghana', code: '233', - flag: '๐Ÿ‡ฌ๐Ÿ‡ญ' + flag: '๐Ÿ‡ฌ๐Ÿ‡ญ', }, { key: 'gibraltar-350', name: 'Gibraltar', clean: 'gibraltar', code: '350', - flag: '๐Ÿ‡ฌ๐Ÿ‡ฎ' + flag: '๐Ÿ‡ฌ๐Ÿ‡ฎ', }, { key: 'greece-30', name: 'Greece', clean: 'greece', code: '30', - flag: '๐Ÿ‡ฌ๐Ÿ‡ท' + flag: '๐Ÿ‡ฌ๐Ÿ‡ท', }, { key: 'greenland-299', name: 'Greenland', clean: 'greenland', code: '299', - flag: '๐Ÿ‡ฌ๐Ÿ‡ฑ' + flag: '๐Ÿ‡ฌ๐Ÿ‡ฑ', }, { key: 'grenada-1473', name: 'Grenada', clean: 'grenada', code: '1473', - flag: '๐Ÿ‡ฌ๐Ÿ‡ฉ' + flag: '๐Ÿ‡ฌ๐Ÿ‡ฉ', }, { key: 'guadeloupe-590', name: 'Guadeloupe', clean: 'guadeloupe', code: '590', - flag: '๐Ÿ‡ฌ๐Ÿ‡ต' + flag: '๐Ÿ‡ฌ๐Ÿ‡ต', }, { key: 'guam-1671', name: 'Guam', clean: 'guam', code: '1671', - flag: '๐Ÿ‡ฌ๐Ÿ‡บ' + flag: '๐Ÿ‡ฌ๐Ÿ‡บ', }, { key: 'guatemala-502', name: 'Guatemala', clean: 'guatemala', code: '502', - flag: '๐Ÿ‡ฌ๐Ÿ‡น' + flag: '๐Ÿ‡ฌ๐Ÿ‡น', }, { key: 'guernsey-44', name: 'Guernsey', clean: 'guernsey', code: '44', - flag: '๐Ÿ‡ฌ๐Ÿ‡ฌ' + flag: '๐Ÿ‡ฌ๐Ÿ‡ฌ', }, { key: 'guinea-224', name: 'Guinea', clean: 'guinea', code: '224', - flag: '๐Ÿ‡ฌ๐Ÿ‡ณ' + flag: '๐Ÿ‡ฌ๐Ÿ‡ณ', }, { key: 'guinea-bissau-245', name: 'Guinea-Bissau', clean: 'guinea bissau', code: '245', - flag: '๐Ÿ‡ฌ๐Ÿ‡ผ' + flag: '๐Ÿ‡ฌ๐Ÿ‡ผ', }, { key: 'guyana-592', name: 'Guyana', clean: 'guyana', code: '592', - flag: '๐Ÿ‡ฌ๐Ÿ‡พ' + flag: '๐Ÿ‡ฌ๐Ÿ‡พ', }, { key: 'haiti-509', name: 'Haiti', clean: 'haiti', code: '509', - flag: '๐Ÿ‡ญ๐Ÿ‡น' + flag: '๐Ÿ‡ญ๐Ÿ‡น', }, { key: 'heard-mc-donald-islands-672', name: 'Heard & McDonald Islands', clean: 'heard & mcdonald islands', code: '672', - flag: '๐Ÿ‡ญ๐Ÿ‡ฒ' + flag: '๐Ÿ‡ญ๐Ÿ‡ฒ', }, { key: 'honduras-504', name: 'Honduras', clean: 'honduras', code: '504', - flag: '๐Ÿ‡ญ๐Ÿ‡ณ' + flag: '๐Ÿ‡ญ๐Ÿ‡ณ', }, { key: 'hong-kong-852', name: 'Hong Kong', clean: 'hong kong', code: '852', - flag: '๐Ÿ‡ญ๐Ÿ‡ฐ' + flag: '๐Ÿ‡ญ๐Ÿ‡ฐ', }, { key: 'hungary-36', name: 'Hungary', clean: 'hungary', code: '36', - flag: '๐Ÿ‡ญ๐Ÿ‡บ' + flag: '๐Ÿ‡ญ๐Ÿ‡บ', }, { key: 'iceland-354', name: 'Iceland', clean: 'iceland', code: '354', - flag: '๐Ÿ‡ฎ๐Ÿ‡ธ' + flag: '๐Ÿ‡ฎ๐Ÿ‡ธ', }, { key: 'india-91', name: 'India', clean: 'india', code: '91', - flag: '๐Ÿ‡ฎ๐Ÿ‡ณ' + flag: '๐Ÿ‡ฎ๐Ÿ‡ณ', }, { key: 'indonesia-62', name: 'Indonesia', clean: 'indonesia', code: '62', - flag: '๐Ÿ‡ฎ๐Ÿ‡ฉ' + flag: '๐Ÿ‡ฎ๐Ÿ‡ฉ', }, { key: 'iran-98', name: 'Iran', clean: 'iran', code: '98', - flag: '๐Ÿ‡ฎ๐Ÿ‡ท' + flag: '๐Ÿ‡ฎ๐Ÿ‡ท', }, { key: 'iraq-964', name: 'Iraq', clean: 'iraq', code: '964', - flag: '๐Ÿ‡ฎ๐Ÿ‡ถ' + flag: '๐Ÿ‡ฎ๐Ÿ‡ถ', }, { key: 'ireland-353', name: 'Ireland', clean: 'ireland', code: '353', - flag: '๐Ÿ‡ฎ๐Ÿ‡ช' + flag: '๐Ÿ‡ฎ๐Ÿ‡ช', }, { key: 'isle-of-man-44', name: 'Isle of Man', clean: 'isle of man', code: '44', - flag: '๐Ÿ‡ฎ๐Ÿ‡ฒ' + flag: '๐Ÿ‡ฎ๐Ÿ‡ฒ', }, { key: 'israel-972', name: 'Israel', clean: 'israel', code: '972', - flag: '๐Ÿ‡ฎ๐Ÿ‡ฑ' + flag: '๐Ÿ‡ฎ๐Ÿ‡ฑ', }, { key: 'italy-39', name: 'Italy', clean: 'italy', code: '39', - flag: '๐Ÿ‡ฎ๐Ÿ‡น' + flag: '๐Ÿ‡ฎ๐Ÿ‡น', }, { key: 'jamaica-1876', name: 'Jamaica', clean: 'jamaica', code: '1876', - flag: '๐Ÿ‡ฏ๐Ÿ‡ฒ' + flag: '๐Ÿ‡ฏ๐Ÿ‡ฒ', }, { key: 'japan-81', name: 'Japan', clean: 'japan', code: '81', - flag: '๐Ÿ‡ฏ๐Ÿ‡ต' + flag: '๐Ÿ‡ฏ๐Ÿ‡ต', }, { key: 'jersey-44', name: 'Jersey', clean: 'jersey', code: '44', - flag: '๐Ÿ‡ฏ๐Ÿ‡ช' + flag: '๐Ÿ‡ฏ๐Ÿ‡ช', }, { key: 'jordan-962', name: 'Jordan', clean: 'jordan', code: '962', - flag: '๐Ÿ‡ฏ๐Ÿ‡ด' + flag: '๐Ÿ‡ฏ๐Ÿ‡ด', }, { key: 'kazakhstan-76', name: 'Kazakhstan', clean: 'kazakhstan', code: '76', - flag: '๐Ÿ‡ฐ๐Ÿ‡ฟ' + flag: '๐Ÿ‡ฐ๐Ÿ‡ฟ', }, { key: 'kenya-254', name: 'Kenya', clean: 'kenya', code: '254', - flag: '๐Ÿ‡ฐ๐Ÿ‡ช' + flag: '๐Ÿ‡ฐ๐Ÿ‡ช', }, { key: 'kiribati-686', name: 'Kiribati', clean: 'kiribati', code: '686', - flag: '๐Ÿ‡ฐ๐Ÿ‡ฎ' + flag: '๐Ÿ‡ฐ๐Ÿ‡ฎ', }, { key: 'kosovo-377', name: 'Kosovo', clean: 'kosovo', code: '377', - flag: '๐Ÿ‡ฝ๐Ÿ‡ฐ' + flag: '๐Ÿ‡ฝ๐Ÿ‡ฐ', }, { key: 'kosovo-381', name: 'Kosovo', clean: 'kosovo', code: '381', - flag: '๐Ÿ‡ฝ๐Ÿ‡ฐ' + flag: '๐Ÿ‡ฝ๐Ÿ‡ฐ', }, { key: 'kosovo-386', name: 'Kosovo', clean: 'kosovo', code: '386', - flag: '๐Ÿ‡ฝ๐Ÿ‡ฐ' + flag: '๐Ÿ‡ฝ๐Ÿ‡ฐ', }, { key: 'kuwait-965', name: 'Kuwait', clean: 'kuwait', code: '965', - flag: '๐Ÿ‡ฐ๐Ÿ‡ผ' + flag: '๐Ÿ‡ฐ๐Ÿ‡ผ', }, { key: 'kyrgyzstan-996', name: 'Kyrgyzstan', clean: 'kyrgyzstan', code: '996', - flag: '๐Ÿ‡ฐ๐Ÿ‡ฌ' + flag: '๐Ÿ‡ฐ๐Ÿ‡ฌ', }, { key: 'laos-856', name: 'Laos', clean: 'laos', code: '856', - flag: '๐Ÿ‡ฑ๐Ÿ‡ฆ' + flag: '๐Ÿ‡ฑ๐Ÿ‡ฆ', }, { key: 'latvia-371', name: 'Latvia', clean: 'latvia', code: '371', - flag: '๐Ÿ‡ฑ๐Ÿ‡ป' + flag: '๐Ÿ‡ฑ๐Ÿ‡ป', }, { key: 'lebanon-961', name: 'Lebanon', clean: 'lebanon', code: '961', - flag: '๐Ÿ‡ฑ๐Ÿ‡ง' + flag: '๐Ÿ‡ฑ๐Ÿ‡ง', }, { key: 'lesotho-266', name: 'Lesotho', clean: 'lesotho', code: '266', - flag: '๐Ÿ‡ฑ๐Ÿ‡ธ' + flag: '๐Ÿ‡ฑ๐Ÿ‡ธ', }, { key: 'liberia-231', name: 'Liberia', clean: 'liberia', code: '231', - flag: '๐Ÿ‡ฑ๐Ÿ‡ท' + flag: '๐Ÿ‡ฑ๐Ÿ‡ท', }, { key: 'libya-218', name: 'Libya', clean: 'libya', code: '218', - flag: '๐Ÿ‡ฑ๐Ÿ‡พ' + flag: '๐Ÿ‡ฑ๐Ÿ‡พ', }, { key: 'liechtenstein-423', name: 'Liechtenstein', clean: 'liechtenstein', code: '423', - flag: '๐Ÿ‡ฑ๐Ÿ‡ฎ' + flag: '๐Ÿ‡ฑ๐Ÿ‡ฎ', }, { key: 'lithuania-370', name: 'Lithuania', clean: 'lithuania', code: '370', - flag: '๐Ÿ‡ฑ๐Ÿ‡น' + flag: '๐Ÿ‡ฑ๐Ÿ‡น', }, { key: 'luxembourg-352', name: 'Luxembourg', clean: 'luxembourg', code: '352', - flag: '๐Ÿ‡ฑ๐Ÿ‡บ' + flag: '๐Ÿ‡ฑ๐Ÿ‡บ', }, { key: 'macau-china-853', name: 'Macau (China)', clean: 'macau (china)', code: '853', - flag: '๐Ÿ‡ฒ๐Ÿ‡ด' + flag: '๐Ÿ‡ฒ๐Ÿ‡ด', }, { key: 'macedonia-389', name: 'Macedonia', clean: 'macedonia', code: '389', - flag: '๐Ÿ‡ฒ๐Ÿ‡ฐ' + flag: '๐Ÿ‡ฒ๐Ÿ‡ฐ', }, { key: 'madagascar-261', name: 'Madagascar', clean: 'madagascar', code: '261', - flag: '๐Ÿ‡ฒ๐Ÿ‡ฌ' + flag: '๐Ÿ‡ฒ๐Ÿ‡ฌ', }, { key: 'malawi-265', name: 'Malawi', clean: 'malawi', code: '265', - flag: '๐Ÿ‡ฒ๐Ÿ‡ผ' + flag: '๐Ÿ‡ฒ๐Ÿ‡ผ', }, { key: 'malaysia-60', name: 'Malaysia', clean: 'malaysia', code: '60', - flag: '๐Ÿ‡ฒ๐Ÿ‡พ' + flag: '๐Ÿ‡ฒ๐Ÿ‡พ', }, { key: 'maldives-960', name: 'Maldives', clean: 'maldives', code: '960', - flag: '๐Ÿ‡ฒ๐Ÿ‡ป' + flag: '๐Ÿ‡ฒ๐Ÿ‡ป', }, { key: 'mali-223', name: 'Mali', clean: 'mali', code: '223', - flag: '๐Ÿ‡ฒ๐Ÿ‡ฑ' + flag: '๐Ÿ‡ฒ๐Ÿ‡ฑ', }, { key: 'malta-356', name: 'Malta', clean: 'malta', code: '356', - flag: '๐Ÿ‡ฒ๐Ÿ‡น' + flag: '๐Ÿ‡ฒ๐Ÿ‡น', }, { key: 'marshall-islands-692', name: 'Marshall Islands', clean: 'marshall islands', code: '692', - flag: '๐Ÿ‡ฒ๐Ÿ‡ญ' + flag: '๐Ÿ‡ฒ๐Ÿ‡ญ', }, { key: 'martinique-596', name: 'Martinique', clean: 'martinique', code: '596', - flag: '๐Ÿ‡ฒ๐Ÿ‡ถ' + flag: '๐Ÿ‡ฒ๐Ÿ‡ถ', }, { key: 'mauritania-222', name: 'Mauritania', clean: 'mauritania', code: '222', - flag: '๐Ÿ‡ฒ๐Ÿ‡ท' + flag: '๐Ÿ‡ฒ๐Ÿ‡ท', }, { key: 'mauritius-230', name: 'Mauritius', clean: 'mauritius', code: '230', - flag: '๐Ÿ‡ฒ๐Ÿ‡บ' + flag: '๐Ÿ‡ฒ๐Ÿ‡บ', }, { key: 'mayotte-262', name: 'Mayotte', clean: 'mayotte', code: '262', - flag: '๐Ÿ‡พ๐Ÿ‡น' + flag: '๐Ÿ‡พ๐Ÿ‡น', }, { key: 'mexico-52', name: 'Mexico', clean: 'mexico', code: '52', - flag: '๐Ÿ‡ฒ๐Ÿ‡ฝ' + flag: '๐Ÿ‡ฒ๐Ÿ‡ฝ', }, { key: 'micronesia-691', name: 'Micronesia', clean: 'micronesia', code: '691', - flag: '๐Ÿ‡ซ๐Ÿ‡ฒ' + flag: '๐Ÿ‡ซ๐Ÿ‡ฒ', }, { key: 'moldova-373', name: 'Moldova', clean: 'moldova', code: '373', - flag: '๐Ÿ‡ฒ๐Ÿ‡ฉ' + flag: '๐Ÿ‡ฒ๐Ÿ‡ฉ', }, { key: 'monaco-377', name: 'Monaco', clean: 'monaco', code: '377', - flag: '๐Ÿ‡ฒ๐Ÿ‡จ' + flag: '๐Ÿ‡ฒ๐Ÿ‡จ', }, { key: 'mongolia-976', name: 'Mongolia', clean: 'mongolia', code: '976', - flag: '๐Ÿ‡ฒ๐Ÿ‡ณ' + flag: '๐Ÿ‡ฒ๐Ÿ‡ณ', }, { key: 'montenegro-382', name: 'Montenegro', clean: 'montenegro', code: '382', - flag: '๐Ÿ‡ฒ๐Ÿ‡ช' + flag: '๐Ÿ‡ฒ๐Ÿ‡ช', }, { key: 'montserrat-1664', name: 'Montserrat', clean: 'montserrat', code: '1664', - flag: '๐Ÿ‡ฒ๐Ÿ‡ธ' + flag: '๐Ÿ‡ฒ๐Ÿ‡ธ', }, { key: 'morocco-212', name: 'Morocco', clean: 'morocco', code: '212', - flag: '๐Ÿ‡ฒ๐Ÿ‡ฆ' + flag: '๐Ÿ‡ฒ๐Ÿ‡ฆ', }, { key: 'mozambique-258', name: 'Mozambique', clean: 'mozambique', code: '258', - flag: '๐Ÿ‡ฒ๐Ÿ‡ฟ' + flag: '๐Ÿ‡ฒ๐Ÿ‡ฟ', }, { key: 'myanmar-burma-95', name: 'Myanmar (Burma)', clean: 'myanmar (burma)', code: '95', - flag: '๐Ÿ‡ฒ๐Ÿ‡ฒ' + flag: '๐Ÿ‡ฒ๐Ÿ‡ฒ', }, { key: 'namibia-264', name: 'Namibia', clean: 'namibia', code: '264', - flag: '๐Ÿ‡ณ๐Ÿ‡ฆ' + flag: '๐Ÿ‡ณ๐Ÿ‡ฆ', }, { key: 'nauru-674', name: 'Nauru', clean: 'nauru', code: '674', - flag: '๐Ÿ‡ณ๐Ÿ‡ท' + flag: '๐Ÿ‡ณ๐Ÿ‡ท', }, { key: 'nepal-977', name: 'Nepal', clean: 'nepal', code: '977', - flag: '๐Ÿ‡ณ๐Ÿ‡ต' + flag: '๐Ÿ‡ณ๐Ÿ‡ต', }, { key: 'netherlands-31', name: 'Netherlands', clean: 'netherlands', code: '31', - flag: '๐Ÿ‡ณ๐Ÿ‡ฑ' + flag: '๐Ÿ‡ณ๐Ÿ‡ฑ', }, { key: 'new-caledonia-687', name: 'New Caledonia', clean: 'new caledonia', code: '687', - flag: '๐Ÿ‡ณ๐Ÿ‡จ' + flag: '๐Ÿ‡ณ๐Ÿ‡จ', }, { key: 'new-zealand-64', name: 'New Zealand', clean: 'new zealand', code: '64', - flag: '๐Ÿ‡ณ๐Ÿ‡ฟ' + flag: '๐Ÿ‡ณ๐Ÿ‡ฟ', }, { key: 'nicaragua-505', name: 'Nicaragua', clean: 'nicaragua', code: '505', - flag: '๐Ÿ‡ณ๐Ÿ‡ฎ' + flag: '๐Ÿ‡ณ๐Ÿ‡ฎ', }, { key: 'niger-227', name: 'Niger', clean: 'niger', code: '227', - flag: '๐Ÿ‡ณ๐Ÿ‡ช' + flag: '๐Ÿ‡ณ๐Ÿ‡ช', }, { key: 'nigeria-234', name: 'Nigeria', clean: 'nigeria', code: '234', - flag: '๐Ÿ‡ณ๐Ÿ‡ฌ' + flag: '๐Ÿ‡ณ๐Ÿ‡ฌ', }, { key: 'niue-683', name: 'Niue', clean: 'niue', code: '683', - flag: '๐Ÿ‡ณ๐Ÿ‡บ' + flag: '๐Ÿ‡ณ๐Ÿ‡บ', }, { key: 'norfolk-island-672', name: 'Norfolk Island', clean: 'norfolk island', code: '672', - flag: '๐Ÿ‡ณ๐Ÿ‡ซ' + flag: '๐Ÿ‡ณ๐Ÿ‡ซ', }, { key: 'north-korea-850', name: 'North Korea', clean: 'north korea', code: '850', - flag: '๐Ÿ‡ฐ๐Ÿ‡ต' + flag: '๐Ÿ‡ฐ๐Ÿ‡ต', }, { key: 'northern-mariana-islands-1670', name: 'Northern Mariana Islands', clean: 'northern mariana islands', code: '1670', - flag: '๐Ÿ‡ฒ๐Ÿ‡ต' + flag: '๐Ÿ‡ฒ๐Ÿ‡ต', }, { key: 'norway-47', name: 'Norway', clean: 'norway', code: '47', - flag: '๐Ÿ‡ณ๐Ÿ‡ด' + flag: '๐Ÿ‡ณ๐Ÿ‡ด', }, { key: 'oman-968', name: 'Oman', clean: 'oman', code: '968', - flag: '๐Ÿ‡ด๐Ÿ‡ฒ' + flag: '๐Ÿ‡ด๐Ÿ‡ฒ', }, { key: 'pakistan-92', name: 'Pakistan', clean: 'pakistan', code: '92', - flag: '๐Ÿ‡ต๐Ÿ‡ฐ' + flag: '๐Ÿ‡ต๐Ÿ‡ฐ', }, { key: 'palau-680', name: 'Palau', clean: 'palau', code: '680', - flag: '๐Ÿ‡ต๐Ÿ‡ผ' + flag: '๐Ÿ‡ต๐Ÿ‡ผ', }, { key: 'palestinian-territories-970', name: 'Palestinian Territories', clean: 'palestinian territories', code: '970', - flag: '๐Ÿ‡ต๐Ÿ‡ธ' + flag: '๐Ÿ‡ต๐Ÿ‡ธ', }, { key: 'panama-507', name: 'Panama', clean: 'panama', code: '507', - flag: '๐Ÿ‡ต๐Ÿ‡ฆ' + flag: '๐Ÿ‡ต๐Ÿ‡ฆ', }, { key: 'papua-new-guinea-675', name: 'Papua New Guinea', clean: 'papua new guinea', code: '675', - flag: '๐Ÿ‡ต๐Ÿ‡ฌ' + flag: '๐Ÿ‡ต๐Ÿ‡ฌ', }, { key: 'paraguay-595', name: 'Paraguay', clean: 'paraguay', code: '595', - flag: '๐Ÿ‡ต๐Ÿ‡พ' + flag: '๐Ÿ‡ต๐Ÿ‡พ', }, { key: 'peru-51', name: 'Peru', clean: 'peru', code: '51', - flag: '๐Ÿ‡ต๐Ÿ‡ช' + flag: '๐Ÿ‡ต๐Ÿ‡ช', }, { key: 'philippines-63', name: 'Philippines', clean: 'philippines', code: '63', - flag: '๐Ÿ‡ต๐Ÿ‡ญ' + flag: '๐Ÿ‡ต๐Ÿ‡ญ', }, { key: 'poland-48', name: 'Poland', clean: 'poland', code: '48', - flag: '๐Ÿ‡ต๐Ÿ‡ฑ' + flag: '๐Ÿ‡ต๐Ÿ‡ฑ', }, { key: 'portugal-351', name: 'Portugal', clean: 'portugal', code: '351', - flag: '๐Ÿ‡ต๐Ÿ‡น' + flag: '๐Ÿ‡ต๐Ÿ‡น', }, { key: 'puerto-rico-1787', name: 'Puerto Rico', clean: 'puerto rico', code: '1787', - flag: '๐Ÿ‡ต๐Ÿ‡ท' + flag: '๐Ÿ‡ต๐Ÿ‡ท', }, { key: 'qatar-974', name: 'Qatar', clean: 'qatar', code: '974', - flag: '๐Ÿ‡ถ๐Ÿ‡ฆ' + flag: '๐Ÿ‡ถ๐Ÿ‡ฆ', }, { key: 'reunion-262', name: 'Rรฉunion', clean: 'reunion', code: '262', - flag: '๐Ÿ‡ท๐Ÿ‡ช' + flag: '๐Ÿ‡ท๐Ÿ‡ช', }, { key: 'romania-40', name: 'Romania', clean: 'romania', code: '40', - flag: '๐Ÿ‡ท๐Ÿ‡ด' + flag: '๐Ÿ‡ท๐Ÿ‡ด', }, { key: 'russia-7', name: 'Russia', clean: 'russia', code: '7', - flag: '๐Ÿ‡ท๐Ÿ‡บ' + flag: '๐Ÿ‡ท๐Ÿ‡บ', }, { key: 'rwanda-250', name: 'Rwanda', clean: 'rwanda', code: '250', - flag: '๐Ÿ‡ท๐Ÿ‡ผ' + flag: '๐Ÿ‡ท๐Ÿ‡ผ', }, { key: 'samoa-685', name: 'Samoa', clean: 'samoa', code: '685', - flag: '๐Ÿ‡ผ๐Ÿ‡ธ' + flag: '๐Ÿ‡ผ๐Ÿ‡ธ', }, { key: 'san-marino-378', name: 'San Marino', clean: 'san marino', code: '378', - flag: '๐Ÿ‡ธ๐Ÿ‡ฒ' + flag: '๐Ÿ‡ธ๐Ÿ‡ฒ', }, { key: 'sao-tome-principe-239', name: 'Sรฃo Tomรฉ & Prรญncipe', clean: 'sao tome principe', code: '239', - flag: '๐Ÿ‡ธ๐Ÿ‡น' + flag: '๐Ÿ‡ธ๐Ÿ‡น', }, { key: 'saudi-arabia-966', name: 'Saudi Arabia', clean: 'saudi arabia', code: '966', - flag: '๐Ÿ‡ธ๐Ÿ‡ฆ' + flag: '๐Ÿ‡ธ๐Ÿ‡ฆ', }, { key: 'senegal-221', name: 'Senegal', clean: 'senegal', code: '221', - flag: '๐Ÿ‡ธ๐Ÿ‡ณ' + flag: '๐Ÿ‡ธ๐Ÿ‡ณ', }, { key: 'serbia-381', name: 'Serbia', clean: 'serbia', code: '381', - flag: '๐Ÿ‡ท๐Ÿ‡ธ' + flag: '๐Ÿ‡ท๐Ÿ‡ธ', }, { key: 'seychelles-248', name: 'Seychelles', clean: 'seychelles', code: '248', - flag: '๐Ÿ‡ธ๐Ÿ‡จ' + flag: '๐Ÿ‡ธ๐Ÿ‡จ', }, { key: 'sierra-leone-232', name: 'Sierra Leone', clean: 'sierra leone', code: '232', - flag: '๐Ÿ‡ธ๐Ÿ‡ฑ' + flag: '๐Ÿ‡ธ๐Ÿ‡ฑ', }, { key: 'singapore-65', name: 'Singapore', clean: 'singapore', code: '65', - flag: '๐Ÿ‡ธ๐Ÿ‡ฌ' + flag: '๐Ÿ‡ธ๐Ÿ‡ฌ', }, { key: 'sint-maarten-1721', name: 'Sint Maarten', clean: 'sint maarten', code: '1721', - flag: '๐Ÿ‡ธ๐Ÿ‡ฝ' + flag: '๐Ÿ‡ธ๐Ÿ‡ฝ', }, { key: 'slovakia-421', name: 'Slovakia', clean: 'slovakia', code: '421', - flag: '๐Ÿ‡ธ๐Ÿ‡ฐ' + flag: '๐Ÿ‡ธ๐Ÿ‡ฐ', }, { key: 'slovenia-386', name: 'Slovenia', clean: 'slovenia', code: '386', - flag: '๐Ÿ‡ธ๐Ÿ‡ฎ' + flag: '๐Ÿ‡ธ๐Ÿ‡ฎ', }, { key: 'so-georgia-so-sandwich-isl-500', name: 'So. Georgia & So. Sandwich Isl.', clean: 'so. georgia & so. sandwich isl.', code: '500', - flag: '๐Ÿ‡ฌ๐Ÿ‡ธ' + flag: '๐Ÿ‡ฌ๐Ÿ‡ธ', }, { key: 'solomon-islands-677', name: 'Solomon Islands', clean: 'solomon islands', code: '677', - flag: '๐Ÿ‡ธ๐Ÿ‡ง' + flag: '๐Ÿ‡ธ๐Ÿ‡ง', }, { key: 'somalia-252', name: 'Somalia', clean: 'somalia', code: '252', - flag: '๐Ÿ‡ธ๐Ÿ‡ด' + flag: '๐Ÿ‡ธ๐Ÿ‡ด', }, { key: 'south-africa-27', name: 'South Africa', clean: 'south africa', code: '27', - flag: '๐Ÿ‡ฟ๐Ÿ‡ฆ' + flag: '๐Ÿ‡ฟ๐Ÿ‡ฆ', }, { key: 'south-korea-82', name: 'South Korea', clean: 'south korea', code: '82', - flag: '๐Ÿ‡ฐ๐Ÿ‡ท' + flag: '๐Ÿ‡ฐ๐Ÿ‡ท', }, { key: 'south-sudan-211', name: 'South Sudan', clean: 'south sudan', code: '211', - flag: '๐Ÿ‡ธ๐Ÿ‡ธ' + flag: '๐Ÿ‡ธ๐Ÿ‡ธ', }, { key: 'spain-34', name: 'Spain', clean: 'spain', code: '34', - flag: '๐Ÿ‡ช๐Ÿ‡ธ' + flag: '๐Ÿ‡ช๐Ÿ‡ธ', }, { key: 'sri-lanka-94', name: 'Sri Lanka', clean: 'sri lanka', code: '94', - flag: '๐Ÿ‡ฑ๐Ÿ‡ฐ' + flag: '๐Ÿ‡ฑ๐Ÿ‡ฐ', }, { key: 'st-barthelemy-590', name: 'St. Barthรฉlemy', clean: 'st. barthelemy', code: '590', - flag: '๐Ÿ‡ง๐Ÿ‡ฑ' + flag: '๐Ÿ‡ง๐Ÿ‡ฑ', }, { key: 'st-helena-290', name: 'St. Helena', clean: 'st. helena', code: '290', - flag: '๐Ÿ‡ธ๐Ÿ‡ญ' + flag: '๐Ÿ‡ธ๐Ÿ‡ญ', }, { key: 'st-kitts-nevis-1869', name: 'St. Kitts & Nevis', clean: 'st. kitts & nevis', code: '1869', - flag: '๐Ÿ‡ฐ๐Ÿ‡ณ' + flag: '๐Ÿ‡ฐ๐Ÿ‡ณ', }, { key: 'st-lucia-1758', name: 'St. Lucia', clean: 'st. lucia', code: '1758', - flag: '๐Ÿ‡ฑ๐Ÿ‡จ' + flag: '๐Ÿ‡ฑ๐Ÿ‡จ', }, { key: 'st-martin-590', name: 'St. Martin', clean: 'st. martin', code: '590', - flag: '๐Ÿ‡ฒ๐Ÿ‡ซ' + flag: '๐Ÿ‡ฒ๐Ÿ‡ซ', }, { key: 'st-pierre-miquelon-508', name: 'St. Pierre & Miquelon', clean: 'st. pierre & miquelon', code: '508', - flag: '๐Ÿ‡ต๐Ÿ‡ฒ' + flag: '๐Ÿ‡ต๐Ÿ‡ฒ', }, { key: 'st-vincent-grenadines-1784', name: 'St. Vincent & Grenadines', clean: 'st. vincent & grenadines', code: '1784', - flag: '๐Ÿ‡ป๐Ÿ‡จ' + flag: '๐Ÿ‡ป๐Ÿ‡จ', }, { key: 'sudan-249', name: 'Sudan', clean: 'sudan', code: '249', - flag: '๐Ÿ‡ธ๐Ÿ‡ฉ' + flag: '๐Ÿ‡ธ๐Ÿ‡ฉ', }, { key: 'suriname-597', name: 'Suriname', clean: 'suriname', code: '597', - flag: '๐Ÿ‡ธ๐Ÿ‡ท' + flag: '๐Ÿ‡ธ๐Ÿ‡ท', }, { key: 'svalbard-jan-mayen-4779', name: 'Svalbard & Jan Mayen', clean: 'svalbard & jan mayen', code: '4779', - flag: '๐Ÿ‡ธ๐Ÿ‡ฏ' + flag: '๐Ÿ‡ธ๐Ÿ‡ฏ', }, { key: 'swaziland-268', name: 'Swaziland', clean: 'swaziland', code: '268', - flag: '๐Ÿ‡ธ๐Ÿ‡ฟ' + flag: '๐Ÿ‡ธ๐Ÿ‡ฟ', }, { key: 'sweden-46', name: 'Sweden', clean: 'sweden', code: '46', - flag: '๐Ÿ‡ธ๐Ÿ‡ช' + flag: '๐Ÿ‡ธ๐Ÿ‡ช', }, { key: 'switzerland-41', name: 'Switzerland', clean: 'switzerland', code: '41', - flag: '๐Ÿ‡จ๐Ÿ‡ญ' + flag: '๐Ÿ‡จ๐Ÿ‡ญ', }, { key: 'syria-963', name: 'Syria', clean: 'syria', code: '963', - flag: '๐Ÿ‡ธ๐Ÿ‡พ' + flag: '๐Ÿ‡ธ๐Ÿ‡พ', }, { key: 'taiwan-886', name: 'Taiwan', clean: 'taiwan', code: '886', - flag: '๐Ÿ‡น๐Ÿ‡ผ' + flag: '๐Ÿ‡น๐Ÿ‡ผ', }, { key: 'tajikistan-992', name: 'Tajikistan', clean: 'tajikistan', code: '992', - flag: '๐Ÿ‡น๐Ÿ‡ฏ' + flag: '๐Ÿ‡น๐Ÿ‡ฏ', }, { key: 'tanzania-255', name: 'Tanzania', clean: 'tanzania', code: '255', - flag: '๐Ÿ‡น๐Ÿ‡ฟ' + flag: '๐Ÿ‡น๐Ÿ‡ฟ', }, { key: 'thailand-66', name: 'Thailand', clean: 'thailand', code: '66', - flag: '๐Ÿ‡น๐Ÿ‡ญ' + flag: '๐Ÿ‡น๐Ÿ‡ญ', }, { key: 'timor-leste-670', name: 'Timor-Leste', clean: 'timor leste', code: '670', - flag: '๐Ÿ‡น๐Ÿ‡ฑ' + flag: '๐Ÿ‡น๐Ÿ‡ฑ', }, { key: 'togo-228', name: 'Togo', clean: 'togo', code: '228', - flag: '๐Ÿ‡น๐Ÿ‡ฌ' + flag: '๐Ÿ‡น๐Ÿ‡ฌ', }, { key: 'tokelau-690', name: 'Tokelau', clean: 'tokelau', code: '690', - flag: '๐Ÿ‡น๐Ÿ‡ฐ' + flag: '๐Ÿ‡น๐Ÿ‡ฐ', }, { key: 'tonga-676', name: 'Tonga', clean: 'tonga', code: '676', - flag: '๐Ÿ‡น๐Ÿ‡ด' + flag: '๐Ÿ‡น๐Ÿ‡ด', }, { key: 'trinidad-tobago-1868', name: 'Trinidad & Tobago', clean: 'trinidad & tobago', code: '1868', - flag: '๐Ÿ‡น๐Ÿ‡น' + flag: '๐Ÿ‡น๐Ÿ‡น', }, { key: 'tunisia-216', name: 'Tunisia', clean: 'tunisia', code: '216', - flag: '๐Ÿ‡น๐Ÿ‡ณ' + flag: '๐Ÿ‡น๐Ÿ‡ณ', }, { key: 'turkey-90', name: 'Turkey', clean: 'turkey', code: '90', - flag: '๐Ÿ‡น๐Ÿ‡ท' + flag: '๐Ÿ‡น๐Ÿ‡ท', }, { key: 'turkmenistan-993', name: 'Turkmenistan', clean: 'turkmenistan', code: '993', - flag: '๐Ÿ‡น๐Ÿ‡ฒ' + flag: '๐Ÿ‡น๐Ÿ‡ฒ', }, { key: 'turks-caicos-islands-1649', name: 'Turks & Caicos Islands', clean: 'turks & caicos islands', code: '1649', - flag: '๐Ÿ‡น๐Ÿ‡จ' + flag: '๐Ÿ‡น๐Ÿ‡จ', }, { key: 'tuvalu-688', name: 'Tuvalu', clean: 'tuvalu', code: '688', - flag: '๐Ÿ‡น๐Ÿ‡ป' + flag: '๐Ÿ‡น๐Ÿ‡ป', }, { key: 'u-s-virgin-islands-1340', name: 'U.S. Virgin Islands', clean: 'u.s. virgin islands', code: '1340', - flag: '๐Ÿ‡ป๐Ÿ‡ฎ' + flag: '๐Ÿ‡ป๐Ÿ‡ฎ', }, { key: 'uganda-256', name: 'Uganda', clean: 'uganda', code: '256', - flag: '๐Ÿ‡บ๐Ÿ‡ฌ' + flag: '๐Ÿ‡บ๐Ÿ‡ฌ', }, { key: 'ukraine-380', name: 'Ukraine', clean: 'ukraine', code: '380', - flag: '๐Ÿ‡บ๐Ÿ‡ฆ' + flag: '๐Ÿ‡บ๐Ÿ‡ฆ', }, { key: 'united-arab-emirates-971', name: 'United Arab Emirates', clean: 'united arab emirates', code: '971', - flag: '๐Ÿ‡ฆ๐Ÿ‡ช' + flag: '๐Ÿ‡ฆ๐Ÿ‡ช', }, { key: 'united-kingdom-44', name: 'United Kingdom', clean: 'united kingdom', code: '44', - flag: '๐Ÿ‡ฌ๐Ÿ‡ง' + flag: '๐Ÿ‡ฌ๐Ÿ‡ง', }, { key: 'united-states-1', name: 'United States', clean: 'united states', code: '1', - flag: '๐Ÿ‡บ๐Ÿ‡ธ' + flag: '๐Ÿ‡บ๐Ÿ‡ธ', }, { key: 'uruguay-598', name: 'Uruguay', clean: 'uruguay', code: '598', - flag: '๐Ÿ‡บ๐Ÿ‡พ' + flag: '๐Ÿ‡บ๐Ÿ‡พ', }, { key: 'uzbekistan-998', name: 'Uzbekistan', clean: 'uzbekistan', code: '998', - flag: '๐Ÿ‡บ๐Ÿ‡ฟ' + flag: '๐Ÿ‡บ๐Ÿ‡ฟ', }, { key: 'vanuatu-678', name: 'Vanuatu', clean: 'vanuatu', code: '678', - flag: '๐Ÿ‡ป๐Ÿ‡บ' + flag: '๐Ÿ‡ป๐Ÿ‡บ', }, { key: 'vatican-city-379', name: 'Vatican City', clean: 'vatican city', code: '379', - flag: '๐Ÿ‡ป๐Ÿ‡ฆ' + flag: '๐Ÿ‡ป๐Ÿ‡ฆ', }, { key: 'venezuela-58', name: 'Venezuela', clean: 'venezuela', code: '58', - flag: '๐Ÿ‡ป๐Ÿ‡ช' + flag: '๐Ÿ‡ป๐Ÿ‡ช', }, { key: 'vietnam-84', name: 'Vietnam', clean: 'vietnam', code: '84', - flag: '๐Ÿ‡ป๐Ÿ‡ณ' + flag: '๐Ÿ‡ป๐Ÿ‡ณ', }, { key: 'wallis-futuna-681', name: 'Wallis & Futuna', clean: 'wallis & futuna', code: '681', - flag: '๐Ÿ‡ผ๐Ÿ‡ซ' + flag: '๐Ÿ‡ผ๐Ÿ‡ซ', }, { key: 'western-sahara-212', name: 'Western Sahara', clean: 'western sahara', code: '212', - flag: '๐Ÿ‡ช๐Ÿ‡ญ' + flag: '๐Ÿ‡ช๐Ÿ‡ญ', }, { key: 'yemen-967', name: 'Yemen', clean: 'yemen', code: '967', - flag: '๐Ÿ‡พ๐Ÿ‡ช' + flag: '๐Ÿ‡พ๐Ÿ‡ช', }, { key: 'zambia-260', name: 'Zambia', clean: 'zambia', code: '260', - flag: '๐Ÿ‡ฟ๐Ÿ‡ฒ' + flag: '๐Ÿ‡ฟ๐Ÿ‡ฒ', }, { key: 'zimbabwe-263', name: 'Zimbabwe', clean: 'zimbabwe', code: '263', - flag: '๐Ÿ‡ฟ๐Ÿ‡ผ' - } + flag: '๐Ÿ‡ฟ๐Ÿ‡ผ', + }, ]: Array) diff --git a/client/react-native/common/constants/fonts.js b/client/react-native/common/constants/fonts.js index bd45a3d598..fad36cd1e0 100644 --- a/client/react-native/common/constants/fonts.js +++ b/client/react-native/common/constants/fonts.js @@ -1,4 +1,4 @@ export default { regular: 'MaisonNeueAPP-Book', - medium: 'MaisonNeueAPP-Medium' + medium: 'MaisonNeueAPP-Medium', } diff --git a/client/react-native/common/constants/screen.js b/client/react-native/common/constants/screen.js index 6ad8e38516..5a58535b1b 100644 --- a/client/react-native/common/constants/screen.js +++ b/client/react-native/common/constants/screen.js @@ -4,7 +4,7 @@ const window = Dimensions.get('window') const screen = { dimensions: { width: window.width, height: window.height }, - orientation: window.width < window.height ? 'portrait' : 'landscape' + orientation: window.width < window.height ? 'portrait' : 'landscape', } export default screen diff --git a/client/react-native/common/relay.js b/client/react-native/common/relay.js index 53b8dfdae9..e4c3804918 100644 --- a/client/react-native/common/relay.js +++ b/client/react-native/common/relay.js @@ -9,12 +9,12 @@ const fetchQuery = async (operation, variables) => { method: 'POST', headers: { // Add authentication and other headers here - 'content-type': 'application/json' + 'content-type': 'application/json', }, body: JSON.stringify({ query: operation.text, // GraphQL text from input - variables - }) + variables, + }), }) return response.json() } catch (err) { @@ -28,7 +28,7 @@ const store = new Store(new RecordSource()) const environment = new Environment({ network, - store + store, // ... other options }) diff --git a/client/react-native/common/styles.js b/client/react-native/common/styles.js index 08c8b76621..3cf101c0ac 100644 --- a/client/react-native/common/styles.js +++ b/client/react-native/common/styles.js @@ -3,7 +3,7 @@ import { colors } from './constants' const styles = StyleSheet.create({ padding: { - padding: 16 + padding: 16, }, paddingLeft: { paddingLeft: 16 }, paddingTop: { paddingTop: 16 }, @@ -12,32 +12,32 @@ const styles = StyleSheet.create({ paddingHorizontal: { paddingLeft: 16, paddingRight: 16 }, paddingVertical: { paddingTop: 16, paddingBottom: 16 }, margin: { - margin: 16 + margin: 16, }, marginTop: { - marginTop: 16 + marginTop: 16, }, marginBottom: { - marginBottom: 16 + marginBottom: 16, }, marginLeft: { - marginLeft: 16 + marginLeft: 16, }, marginTopLeft: { marginTop: 16, - marginLeft: 16 + marginLeft: 16, }, marginTopRight: { marginTop: 16, - marginRight: 16 + marginRight: 16, }, marginHorizontal: { marginLeft: 16, - marginRight: 16 + marginRight: 16, }, marginVertical: { marginTop: 16, - marginBottom: 16 + marginBottom: 16, }, title: { lineHeight: 21, @@ -45,111 +45,111 @@ const styles = StyleSheet.create({ marginTop: 16, marginBottom: 10, textAlign: 'center', - color: colors.primary + color: colors.primary, }, tinyText: { lineHeight: 14, fontSize: 10, textAlign: 'center', - color: colors.textGrey + color: colors.textGrey, }, smallText: { lineHeight: 20, fontSize: 14, textAlign: 'center', - color: colors.textGrey + color: colors.textGrey, }, mediumText: { lineHeight: 20, fontSize: 16, textAlign: 'center', - color: colors.textGrey + color: colors.textGrey, }, bigText: { lineHeight: 30, fontSize: 25, textAlign: 'center', - color: colors.textGrey + color: colors.textGrey, }, largeText: { lineHeight: 23, fontSize: 19, textAlign: 'center', - color: colors.textGrey + color: colors.textGrey, }, textGrey: { - color: colors.textGrey + color: colors.textGrey, }, textLeft: { - textAlign: 'left' + textAlign: 'left', }, textRight: { - textAlign: 'right' + textAlign: 'right', }, textCenter: { - textAlign: 'center' + textAlign: 'center', }, textTop: { - textAlignVertical: 'top' + textAlignVertical: 'top', }, textBottom: { - textAlignVertical: 'bottom' + textAlignVertical: 'bottom', }, textAlignMiddle: { - textAlignVertical: 'center' + textAlignVertical: 'center', }, row: { flex: 1, flexDirection: 'row', alignItems: 'center', - justifyContent: 'space-between' + justifyContent: 'space-between', }, col: { flex: 1, flexDirection: 'column', alignItems: 'center', - justifyContent: 'space-between' + justifyContent: 'space-between', }, rounded: { - borderRadius: 4 + borderRadius: 4, }, button: { - borderRadius: 4 + borderRadius: 4, }, buttonBottom: { borderTopLeftRadius: 0, - borderTopRightRadius: 0 + borderTopRightRadius: 0, }, shadow: { shadowColor: colors.shadowGrey, shadowOffset: { height: 0, width: 0 }, shadowOpacity: 0.3, shadowRadius: 3, - ...(Platform.OS === 'android' ? { elevation: 2 } : {}) + ...(Platform.OS === 'android' ? { elevation: 2 } : {}), }, bold: { - fontWeight: 'bold' + fontWeight: 'bold', }, border: { borderWidth: 0.5, - borderColor: colors.borderGrey + borderColor: colors.borderGrey, }, borderLeft: { borderLeftWidth: 0.5, - borderColor: colors.borderGrey + borderColor: colors.borderGrey, }, borderTop: { borderTopWidth: 0.5, - borderColor: colors.borderGrey + borderColor: colors.borderGrey, }, borderRight: { borderRightWidth: 0.5, - borderColor: colors.borderGrey + borderColor: colors.borderGrey, }, borderBottom: { borderBottomWidth: 0.5, - borderColor: colors.borderGrey - } + borderColor: colors.borderGrey, + }, }) export const { @@ -189,7 +189,7 @@ export const { borderLeft, borderTop, borderRight, - borderBottom + borderBottom, } = styles export default styles diff --git a/client/react-native/web/config/env.js b/client/react-native/web/config/env.js index b0344c5a83..1707c381d3 100644 --- a/client/react-native/web/config/env.js +++ b/client/react-native/web/config/env.js @@ -1,17 +1,16 @@ -'use strict'; -const fs = require('fs'); -const path = require('path'); -const paths = require('./paths'); +const fs = require('fs') +const path = require('path') +const paths = require('./paths') // Make sure that including paths.js after env.js will read .env variables. -delete require.cache[require.resolve('./paths')]; +delete require.cache[require.resolve('./paths')] -const NODE_ENV = process.env.NODE_ENV; +const NODE_ENV = process.env.NODE_ENV if (!NODE_ENV) { throw new Error( 'The NODE_ENV environment variable is required but was not specified.' - ); + ) } // https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use @@ -23,7 +22,7 @@ var dotenvFiles = [ // results for everyone NODE_ENV !== 'test' && `${paths.dotenv}.local`, paths.dotenv, -].filter(Boolean); +].filter(Boolean) // Load environment variables from .env* files. Suppress warnings using silent // if this file is missing. dotenv will never modify any environment variables @@ -36,9 +35,9 @@ dotenvFiles.forEach(dotenvFile => { require('dotenv').config({ path: dotenvFile, }) - ); + ) } -}); +}) // We support resolving modules according to `NODE_PATH`. // This lets you use absolute paths in imports inside large monorepos: @@ -49,24 +48,24 @@ dotenvFiles.forEach(dotenvFile => { // Otherwise, we risk importing Node.js core modules into an app instead of Webpack shims. // https://github.com/facebook/create-react-app/issues/1023#issuecomment-265344421 // We also resolve them to make sure all tools using them work consistently. -const appDirectory = fs.realpathSync(process.cwd()); +const appDirectory = fs.realpathSync(process.cwd()) process.env.NODE_PATH = (process.env.NODE_PATH || '') .split(path.delimiter) .filter(folder => folder && !path.isAbsolute(folder)) .map(folder => path.resolve(appDirectory, folder)) - .join(path.delimiter); + .join(path.delimiter) // Grab NODE_ENV and REACT_APP_* environment variables and prepare them to be // injected into the application via DefinePlugin in Webpack configuration. -const REACT_APP = /^REACT_APP_/i; +const REACT_APP = /^REACT_APP_/i -function getClientEnvironment(publicUrl) { +function getClientEnvironment (publicUrl) { const raw = Object.keys(process.env) .filter(key => REACT_APP.test(key)) .reduce( (env, key) => { - env[key] = process.env[key]; - return env; + env[key] = process.env[key] + return env }, { // Useful for determining whether weโ€™re running in production mode. @@ -78,16 +77,16 @@ function getClientEnvironment(publicUrl) { // images into the `src` and `import` them in code to get their paths. PUBLIC_URL: publicUrl, } - ); + ) // Stringify all values so we can feed into Webpack DefinePlugin const stringified = { 'process.env': Object.keys(raw).reduce((env, key) => { - env[key] = JSON.stringify(raw[key]); - return env; + env[key] = JSON.stringify(raw[key]) + return env }, {}), - }; + } - return { raw, stringified }; + return { raw, stringified } } -module.exports = getClientEnvironment; +module.exports = getClientEnvironment diff --git a/client/react-native/web/config/paths.js b/client/react-native/web/config/paths.js index c1432e3ea7..8f73a3ba50 100644 --- a/client/react-native/web/config/paths.js +++ b/client/react-native/web/config/paths.js @@ -50,7 +50,7 @@ module.exports = { testsSetup: resolveApp('src/setupTests.js'), appNodeModules: resolveApp('node_modules'), publicUrl: getPublicUrl(resolveApp('package.json')), - servedPath: getServedPath(resolveApp('package.json')) + servedPath: getServedPath(resolveApp('package.json')), } let checkForMonorepo = true diff --git a/client/react-native/web/config/polyfills.js b/client/react-native/web/config/polyfills.js index 8186d1fe1b..677049f0bf 100644 --- a/client/react-native/web/config/polyfills.js +++ b/client/react-native/web/config/polyfills.js @@ -1,4 +1,3 @@ -'use strict' if (typeof Promise === 'undefined') { // Rejection tracking prevents a common issue where React gets into an diff --git a/client/react-native/web/config/webpack.config.dev.js b/client/react-native/web/config/webpack.config.dev.js index 94a55a7822..7c1b61e721 100644 --- a/client/react-native/web/config/webpack.config.dev.js +++ b/client/react-native/web/config/webpack.config.dev.js @@ -39,7 +39,7 @@ const getStyleLoaders = (cssOptions, preProcessor) => { require.resolve('style-loader'), { loader: require.resolve('css-loader'), - options: cssOptions + options: cssOptions, }, { // Options for PostCSS as we reference these options twice @@ -53,11 +53,11 @@ const getStyleLoaders = (cssOptions, preProcessor) => { plugins: () => [ require('postcss-flexbugs-fixes'), autoprefixer({ - flexbox: 'no-2009' - }) - ] - } - } + flexbox: 'no-2009', + }), + ], + }, + }, ] if (preProcessor) { loaders.push(require.resolve(preProcessor)) @@ -91,7 +91,7 @@ module.exports = { // require.resolve('webpack/hot/dev-server'), require.resolve('react-dev-utils/webpackHotDevClient'), // Finally, this is your app's code: - paths.appIndexJs + paths.appIndexJs, // We include the app code last so that if there is a runtime error during // initialization, it doesn't blow up the WebpackDevServer client, and // changing JS code would still trigger a refresh. @@ -109,7 +109,7 @@ module.exports = { publicPath: publicPath, // Point sourcemap entries to original disk location (format as URL on Windows) devtoolModuleFilenameTemplate: info => - path.resolve(info.absoluteResourcePath).replace(/\\/g, '/') + path.resolve(info.absoluteResourcePath).replace(/\\/g, '/'), }, optimization: { // Automatically split vendor and commons @@ -117,11 +117,11 @@ module.exports = { // https://medium.com/webpack/webpack-4-code-splitting-chunk-graph-and-the-splitchunks-optimization-be739a861366 splitChunks: { chunks: 'all', - name: 'vendors' + name: 'vendors', }, // Keep the runtime chunk seperated to enable long term caching // https://twitter.com/wSokra/status/969679223278505985 - runtimeChunk: true + runtimeChunk: true, }, resolve: { // This allows you to set a fallback for where Webpack should look for modules. @@ -142,7 +142,7 @@ module.exports = { alias: { // Support React Native Web // https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/ - 'react-native': 'react-native-web' + 'react-native': 'react-native-web', }, plugins: [ // Prevents users from importing files from outside of src/ (or node_modules/). @@ -150,13 +150,13 @@ module.exports = { // To fix this, we prevent you from importing files out of src/ -- if you'd like to, // please link the files into your node_modules/ and let module-resolution kick in. // Make sure your source files are compiled, as they will not be processed in any way. - new ModuleScopePlugin(paths.appSrc, [paths.appPackageJson]) + new ModuleScopePlugin(paths.appSrc, [paths.appPackageJson]), // Generate graphql schema for relay // new RelayCompilerWebpackPlugin({ // src: paths.appSrc, // schema: paths.appSrc + '/common/schema.graphql' // }) - ] + ], }, module: { strictExportPresence: true, @@ -175,14 +175,14 @@ module.exports = { formatter: eslintFormatter, eslintPath: require.resolve('eslint'), baseConfig: { - extends: [require.resolve('eslint-config-react-app')] - } + extends: [require.resolve('eslint-config-react-app')], + }, }, - loader: require.resolve('eslint-loader') - } + loader: require.resolve('eslint-loader'), + }, ], include: paths.srcPaths, - exclude: [/[/\\\\]node_modules[/\\\\]/] + exclude: [/[/\\\\]node_modules[/\\\\]/], }, { // "oneOf" will traverse all following loaders until one will @@ -197,13 +197,13 @@ module.exports = { loader: require.resolve('url-loader'), options: { limit: 10000, - name: 'static/media/[name].[hash:8].[ext]' - } + name: 'static/media/[name].[hash:8].[ext]', + }, }, { test: /\.ttf$/, loader: 'url-loader', // or directly file-loader - include: require.resolve('react-native-vector-icons') + include: require.resolve('react-native-vector-icons'), }, // Process application JS with Babel. // The preset includes JSX, Flow, and some ESnext features. @@ -217,8 +217,8 @@ module.exports = { { loader: require.resolve('thread-loader'), options: { - poolTimeout: Infinity // keep workers alive for more effective watch mode - } + poolTimeout: Infinity, // keep workers alive for more effective watch mode + }, }, { loader: require.resolve('babel-loader'), @@ -228,10 +228,10 @@ module.exports = { // directory for faster rebuilds. cacheDirectory: true, highlightCode: true, - ...babelrc - } - } - ] + ...babelrc, + }, + }, + ], }, // Process any JS outside of the app with Babel. // Unlike the application JS, we only compile the standard ES features. @@ -243,8 +243,8 @@ module.exports = { { loader: require.resolve('thread-loader'), options: { - poolTimeout: Infinity // keep workers alive for more effective watch mode - } + poolTimeout: Infinity, // keep workers alive for more effective watch mode + }, }, { loader: require.resolve('babel-loader'), @@ -252,13 +252,13 @@ module.exports = { babelrc: false, compact: false, presets: [ - require.resolve('babel-preset-react-app/dependencies') + require.resolve('babel-preset-react-app/dependencies'), ], cacheDirectory: true, - highlightCode: true - } - } - ] + highlightCode: true, + }, + }, + ], }, // "postcss" loader applies autoprefixer to our CSS. // "css" loader resolves paths in CSS and adds assets as dependencies. @@ -270,8 +270,8 @@ module.exports = { test: cssRegex, exclude: cssModuleRegex, use: getStyleLoaders({ - importLoaders: 1 - }) + importLoaders: 1, + }), }, // Adds support for CSS Modules (https://github.com/css-modules/css-modules) // using the extension .module.css @@ -280,8 +280,8 @@ module.exports = { use: getStyleLoaders({ importLoaders: 1, modules: true, - getLocalIdent: getCSSModuleLocalIdent - }) + getLocalIdent: getCSSModuleLocalIdent, + }), }, // Opt-in support for SASS (using .scss or .sass extensions). // Chains the sass-loader with the css-loader and the style-loader @@ -291,7 +291,7 @@ module.exports = { { test: sassRegex, exclude: sassModuleRegex, - use: getStyleLoaders({ importLoaders: 2 }, 'sass-loader') + use: getStyleLoaders({ importLoaders: 2 }, 'sass-loader'), }, // Adds support for CSS Modules, but using SASS // using the extension .module.scss or .module.sass @@ -301,15 +301,15 @@ module.exports = { { importLoaders: 2, modules: true, - getLocalIdent: getCSSModuleLocalIdent + getLocalIdent: getCSSModuleLocalIdent, }, 'sass-loader' - ) + ), }, // The GraphQL loader preprocesses GraphQL queries in .graphql files. { test: /\.(graphql)$/, - loader: 'graphql-tag/loader' + loader: 'graphql-tag/loader', }, // "file" loader makes sure those assets get served by WebpackDevServer. // When you `import` an asset, you get its (virtual) filename. @@ -324,20 +324,20 @@ module.exports = { exclude: [/\.(js|jsx|mjs)$/, /\.html$/, /\.json$/], loader: require.resolve('file-loader'), options: { - name: 'static/media/[name].[hash:8].[ext]' - } - } - ] - } + name: 'static/media/[name].[hash:8].[ext]', + }, + }, + ], + }, // ** STOP ** Are you adding a new loader? // Make sure to add the new loader(s) before the "file" loader. - ] + ], }, plugins: [ // Generates an `index.html` file with the