Skip to content

Commit

Permalink
Merge pull request #1902 from ever-co/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
evereq authored Nov 29, 2023
2 parents 77cb75b + 00a1668 commit ead9f3a
Show file tree
Hide file tree
Showing 24 changed files with 2,687 additions and 2,674 deletions.
20 changes: 20 additions & 0 deletions Layerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM vm/ubuntu:18.04

# install the latest version of Docker, as in the official Docker installation tutorial.
RUN apt-get update && \
apt-get install ca-certificates curl gnupg lsb-release && \
sudo mkdir -p /etc/apt/keyrings && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" |\
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null && \
apt-get update && \
apt-get install docker-ce docker-ce-cli containerd.io

COPY . .

RUN REPEATABLE docker build -t ever-teams .

RUN REPEATABLE docker run -d -p 3000:3000 ever-teams && sleep 5

EXPOSE WEBSITE localhost:3000
Original file line number Diff line number Diff line change
@@ -1,50 +1,41 @@
/* eslint-disable react-native/no-inline-styles */
/* eslint-disable react-native/no-color-literals */
import { Text, StyleSheet, TouchableOpacity, View } from "react-native"
import React from "react"
import { Avatar } from "react-native-paper"
import { imgTitleProfileAvatar } from "../../../../helpers/img-title-profile-avatar"
import { typography, useAppTheme } from "../../../../theme"
import { limitTextCharaters } from "../../../../helpers/sub-text"
import { useNavigation } from "@react-navigation/native"
import {
DrawerNavigationProp,
SettingScreenNavigationProp,
} from "../../../../navigators/AuthenticatedNavigator"
import { Text, StyleSheet, TouchableOpacity, View } from 'react-native';
import React from 'react';
import { Avatar } from 'react-native-paper';
import { imgTitleProfileAvatar } from '../../../../helpers/img-title-profile-avatar';
import { typography, useAppTheme } from '../../../../theme';
import { limitTextCharaters } from '../../../../helpers/sub-text';
import { useNavigation } from '@react-navigation/native';
import { DrawerNavigationProp, SettingScreenNavigationProp } from '../../../../navigators/AuthenticatedNavigator';

interface IProfileInfo {
names: string
profilePicSrc: string
userId?: string
largerProfileInfo?: boolean
estimationsBlock?: boolean
time?: string
names: string;
profilePicSrc: string;
userId?: string;
largerProfileInfo?: boolean;
estimationsBlock?: boolean;
time?: string;
}

const ProfileInfoWithTime: React.FC<IProfileInfo> = ({
profilePicSrc,
names,
userId,
largerProfileInfo,
time,
}) => {
const { colors } = useAppTheme()
const ProfileInfoWithTime: React.FC<IProfileInfo> = ({ profilePicSrc, names, userId, largerProfileInfo, time }) => {
const { colors } = useAppTheme();

const alternateNavigation = useNavigation<DrawerNavigationProp<"AuthenticatedTab">>()
const navigation = useNavigation<SettingScreenNavigationProp<"Profile">>()
const alternateNavigation = useNavigation<DrawerNavigationProp<'AuthenticatedTab'>>();
const navigation = useNavigation<SettingScreenNavigationProp<'Profile'>>();

const navigateToProfile = () => {
alternateNavigation.navigate("AuthenticatedTab")
alternateNavigation.navigate('AuthenticatedTab');
setTimeout(() => {
navigation.navigate("Profile", { userId, activeTab: "worked" })
}, 50)
}
navigation.navigate('Profile', { userId, activeTab: 'worked' });
}, 50);
};
return (
<View
style={{
flexDirection: "row",
justifyContent: "space-between",
paddingRight: !time && 12,
flexDirection: 'row',
justifyContent: 'space-between',
paddingRight: !time ? 12 : undefined
}}
>
<TouchableOpacity onPress={userId && navigateToProfile} style={styles.container}>
Expand All @@ -56,9 +47,9 @@ const ProfileInfoWithTime: React.FC<IProfileInfo> = ({
/>
) : (
<Avatar.Text
label={imgTitleProfileAvatar(names.replace(" ", ""))}
label={imgTitleProfileAvatar(names.replace(' ', ''))}
size={largerProfileInfo ? 30 : 20}
style={[styles.profileImage, { backgroundColor: "#82c9e0" }]}
style={[styles.profileImage, { backgroundColor: '#82c9e0' }]}
labelStyle={[styles.prefix, { fontSize: 14 }]}
/>
)}
Expand All @@ -67,41 +58,41 @@ const ProfileInfoWithTime: React.FC<IProfileInfo> = ({
style={{
fontSize: largerProfileInfo ? 16 : 12,
color: colors.primary,
fontWeight: "600",
fontWeight: '600'
}}
>
{limitTextCharaters({
text: names.trim(),
numChars: 12,
numChars: 12
})}
</Text>
</TouchableOpacity>
<Text
style={{
fontSize: 12,
fontWeight: "600",
color: time ? colors.primary : "#938FA3",
fontWeight: '600',
color: time ? colors.primary : '#938FA3'
}}
>
{time ? time : "6 h: 40 m"}
{time || '6 h: 40 m'}
</Text>
</View>
)
}
);
};

export default ProfileInfoWithTime
export default ProfileInfoWithTime;

const styles = StyleSheet.create({
container: {
alignItems: "center",
flexDirection: "row",
gap: 7,
alignItems: 'center',
flexDirection: 'row',
gap: 7
},
prefix: {
color: "#FFFFFF",
fontFamily: typography.fonts.PlusJakartaSans.light,
color: '#FFFFFF',
fontFamily: typography.fonts.PlusJakartaSans.light
},
profileImage: {
borderRadius: 100,
},
})
borderRadius: 100
}
});
Loading

0 comments on commit ead9f3a

Please sign in to comment.