Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e695a83
Onboarding texts
diegolmello Mar 26, 2020
2384ba2
OnboardingView
diegolmello Mar 26, 2020
4253840
FormContainer
diegolmello Mar 26, 2020
c796df2
Minor fixes
diegolmello Mar 26, 2020
abf1c0f
NewServerView
diegolmello Mar 26, 2020
9a3319b
Remove code
diegolmello Mar 26, 2020
238ceb8
Refactor
diegolmello Mar 26, 2020
50e7d7d
WorkspaceView
diegolmello Mar 26, 2020
f0408b3
Stash
diegolmello Mar 26, 2020
09ef565
Login with email working
diegolmello Mar 27, 2020
d05dc50
Login with
diegolmello Mar 27, 2020
2ec8e85
Join open
diegolmello Mar 27, 2020
479270d
Revert "Login with"
diegolmello Mar 27, 2020
43a8907
Fix create account styles
diegolmello Mar 27, 2020
e541fcf
Register
diegolmello Mar 27, 2020
c7c7c38
Refactor
diegolmello Mar 27, 2020
a8e0f1c
LoginServices component
diegolmello Mar 27, 2020
3f0fcd5
Refactor
diegolmello Mar 27, 2020
9046784
Multiple servers
diegolmello Mar 27, 2020
da64a51
Remove native images
diegolmello Mar 27, 2020
6111ca3
Refactor styles
diegolmello Mar 27, 2020
77000bb
Fix testid
diegolmello Mar 27, 2020
1bc9806
Fix add server on tablet
diegolmello Mar 27, 2020
0dc6717
i18n
diegolmello Mar 27, 2020
e87b159
Merge branch 'develop' into new.onboarding
diegolmello Mar 27, 2020
86b39b7
Fix close modal
diegolmello Mar 30, 2020
6fee5ff
Fix TOTP
diegolmello Mar 30, 2020
a81b4fc
[FIX] Registration disabled
djorkaeffalexandre Mar 30, 2020
d25f0fd
[FIX] Login Services separator
djorkaeffalexandre Mar 30, 2020
fe65ccf
Fix logos
diegolmello Mar 30, 2020
356c226
Fix AppVersion name
diegolmello Mar 30, 2020
b348b15
I18n
diegolmello Mar 30, 2020
8ce35b2
Minor fixes
diegolmello Mar 30, 2020
adaa336
Merge branch 'develop' into new.onboarding
diegolmello Mar 30, 2020
d8167e2
[FIX] Custom Fields
djorkaeffalexandre Mar 30, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified android/app/src/main/res/drawable-hdpi/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed android/app/src/main/res/drawable-hdpi/options.png
Binary file not shown.
Binary file modified android/app/src/main/res/drawable-mdpi/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed android/app/src/main/res/drawable-mdpi/options.png
Binary file not shown.
Binary file modified android/app/src/main/res/drawable-xhdpi/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed android/app/src/main/res/drawable-xhdpi/options.png
Binary file not shown.
Binary file modified android/app/src/main/res/drawable-xxhdpi/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed android/app/src/main/res/drawable-xxhdpi/options.png
Binary file not shown.
Binary file modified android/app/src/main/res/drawable-xxxhdpi/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion app/constants/tablet.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const MAX_SIDEBAR_WIDTH = 321;
export const MAX_CONTENT_WIDTH = '90%';
export const MAX_SCREEN_CONTENT_WIDTH = '45%';
export const MAX_SCREEN_CONTENT_WIDTH = '50%';
export const MIN_WIDTH_SPLIT_LAYOUT = 700;
34 changes: 34 additions & 0 deletions app/containers/AppVersion.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import React from 'react';
import { StyleSheet, View, Text } from 'react-native';
import PropTypes from 'prop-types';

import { themes } from '../constants/colors';
import sharedStyles from '../views/Styles';
import { getReadableVersion } from '../utils/deviceInfo';
import I18n from '../i18n';

const styles = StyleSheet.create({
container: {
alignItems: 'center',
justifyContent: 'flex-end'
},
text: {
...sharedStyles.textRegular,
fontSize: 13
},
bold: {
...sharedStyles.textSemibold
}
});

const AppVersion = React.memo(({ theme }) => (
<View style={styles.container}>
<Text style={[styles.text, { color: themes[theme].auxiliaryText }]}>{I18n.t('Version_no', { version: '' })}<Text style={styles.bold}>{getReadableVersion}</Text></Text>
</View>
));

AppVersion.propTypes = {
theme: PropTypes.string
};

export default AppVersion;
30 changes: 21 additions & 9 deletions app/containers/Button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,19 @@ import ActivityIndicator from '../ActivityIndicator';

const styles = StyleSheet.create({
container: {
paddingHorizontal: 15,
paddingHorizontal: 14,
justifyContent: 'center',
height: 48,
borderRadius: 2,
marginBottom: 10
marginBottom: 12
},
text: {
fontSize: 18,
textAlign: 'center'
fontSize: 16,
textAlign: 'center',
...sharedStyles.textMedium
},
disabled: {
opacity: 0.3
}
});

Expand All @@ -30,6 +34,8 @@ export default class Button extends React.PureComponent {
backgroundColor: PropTypes.string,
loading: PropTypes.bool,
theme: PropTypes.string,
color: PropTypes.string,
fontSize: PropTypes.string,
style: PropTypes.any
}

Expand All @@ -43,9 +49,15 @@ export default class Button extends React.PureComponent {

render() {
const {
title, type, onPress, disabled, backgroundColor, loading, style, theme, ...otherProps
title, type, onPress, disabled, backgroundColor, color, loading, style, theme, fontSize, ...otherProps
} = this.props;
const isPrimary = type === 'primary';

let textColor = isPrimary ? themes[theme].buttonText : themes[theme].bodyText;
if (color) {
textColor = color;
}

return (
<Touchable
onPress={onPress}
Expand All @@ -55,20 +67,20 @@ export default class Button extends React.PureComponent {
backgroundColor
? { backgroundColor }
: { backgroundColor: isPrimary ? themes[theme].actionTintColor : themes[theme].backgroundColor },
disabled && { backgroundColor: themes[theme].borderColor },
disabled && styles.disabled,
style
]}
{...otherProps}
>
{
loading
? <ActivityIndicator color={isPrimary ? themes[theme].buttonText : themes[theme].actionTintColor} />
? <ActivityIndicator color={textColor} />
: (
<Text
style={[
styles.text,
isPrimary ? sharedStyles.textMedium : sharedStyles.textBold,
{ color: isPrimary ? themes[theme].buttonText : themes[theme].actionTintColor }
{ color: textColor },
fontSize && { fontSize }
]}
>
{title}
Expand Down
51 changes: 51 additions & 0 deletions app/containers/FormContainer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import React from 'react';
import { ScrollView, StyleSheet, View } from 'react-native';
import PropTypes from 'prop-types';
import { SafeAreaView } from 'react-navigation';

import { themes } from '../constants/colors';
import sharedStyles from '../views/Styles';
import scrollPersistTaps from '../utils/scrollPersistTaps';
import KeyboardView from '../presentation/KeyboardView';
import StatusBar from './StatusBar';
import AppVersion from './AppVersion';
import { isTablet } from '../utils/deviceInfo';

const styles = StyleSheet.create({
scrollView: {
minHeight: '100%'
}
});

export const FormContainerInner = ({ children }) => (
<View style={[sharedStyles.container, isTablet && sharedStyles.tabletScreenContent]}>
{children}
</View>
);

const FormContainer = ({ children, theme }) => (
<KeyboardView
style={{ backgroundColor: themes[theme].backgroundColor }}
contentContainerStyle={sharedStyles.container}
keyboardVerticalOffset={128}
>
<StatusBar theme={theme} />
<ScrollView {...scrollPersistTaps} style={sharedStyles.container} contentContainerStyle={[sharedStyles.containerScrollView, styles.scrollView]}>
<SafeAreaView style={sharedStyles.container} forceInset={{ top: 'never' }}>
{children}
<AppVersion theme={theme} />
</SafeAreaView>
</ScrollView>
</KeyboardView>
);

FormContainer.propTypes = {
theme: PropTypes.string,
children: PropTypes.element
};

FormContainerInner.propTypes = {
children: PropTypes.element
};

export default FormContainer;
7 changes: 4 additions & 3 deletions app/containers/HeaderButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ export const DrawerButton = React.memo(({ navigation, testID, ...otherProps }) =
</CustomHeaderButtons>
));

export const CloseModalButton = React.memo(({ navigation, testID }) => (
export const CloseModalButton = React.memo(({ navigation, testID, onPress = () => navigation.pop() }) => (
<CustomHeaderButtons left>
<Item title='close' iconName='cross' onPress={() => navigation.pop()} testID={testID} />
<Item title='close' iconName='cross' onPress={onPress} testID={testID} />
</CustomHeaderButtons>
));

Expand Down Expand Up @@ -76,7 +76,8 @@ DrawerButton.propTypes = {
};
CloseModalButton.propTypes = {
navigation: PropTypes.object.isRequired,
testID: PropTypes.string.isRequired
testID: PropTypes.string.isRequired,
onPress: PropTypes.func
};
CloseShareExtensionButton.propTypes = {
onPress: PropTypes.func.isRequired,
Expand Down
Loading