forked from vergnet/application-amicale
Compare commits
2 commits
e819e94395
...
133df5bdb7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
133df5bdb7 | ||
|
|
c6bb1ccc86 |
3 changed files with 74 additions and 84 deletions
|
|
@ -351,7 +351,8 @@
|
||||||
"libs": "Libraries used",
|
"libs": "Libraries used",
|
||||||
"thanks": "Thanks",
|
"thanks": "Thanks",
|
||||||
"user": {
|
"user": {
|
||||||
"you": "You",
|
"youName": "You",
|
||||||
|
"you": "[NON TRADUIT] Toi aussi devient le prochaint dévelopeur à rejoindre la team, passe voir le git de l'application y'a tout plein d'info",
|
||||||
"arnaud": "[NON TRADUIT] Étudiant en IR (2020). C'est le créateur de cette magnifique application que t'utilise tout les jour. Et il est vraiment BG aussi.",
|
"arnaud": "[NON TRADUIT] Étudiant en IR (2020). C'est le créateur de cette magnifique application que t'utilise tout les jour. Et il est vraiment BG aussi.",
|
||||||
"yohan": "[NON TRADUIT] Étudiant en [Je sais pas quoi] (2020). Il nous aide à corriger les bug. Et j'imagine aussi qu'il est BG mais je le connait pas.",
|
"yohan": "[NON TRADUIT] Étudiant en [Je sais pas quoi] (2020). Il nous aide à corriger les bug. Et j'imagine aussi qu'il est BG mais je le connait pas.",
|
||||||
"beranger": "[NON TRADUIT] Étudiant en AE (2020) et Président de l’Amicale au moment de la création et du lancement du projet. L’application, c’était son idée. Il a beaucoup aidé pour trouver des bugs, de nouvelles fonctionnalités et faire de la com.",
|
"beranger": "[NON TRADUIT] Étudiant en AE (2020) et Président de l’Amicale au moment de la création et du lancement du projet. L’application, c’était son idée. Il a beaucoup aidé pour trouver des bugs, de nouvelles fonctionnalités et faire de la com.",
|
||||||
|
|
|
||||||
|
|
@ -350,7 +350,8 @@
|
||||||
"libs": "Librairies utilisées",
|
"libs": "Librairies utilisées",
|
||||||
"thanks": "Remerciements",
|
"thanks": "Remerciements",
|
||||||
"user": {
|
"user": {
|
||||||
"you": "Toi",
|
"youName": "Toi",
|
||||||
|
"you": "Toi aussi devient le prochaint dévelopeur à rejoindre la team, passe voir le git de l'application y'a tout plein d'info",
|
||||||
"arnaud": "Étudiant en IR (2020). C'est le créateur de cette magnifique application que t'utilise tout les jour. Et il est vraiment BG aussi.",
|
"arnaud": "Étudiant en IR (2020). C'est le créateur de cette magnifique application que t'utilise tout les jour. Et il est vraiment BG aussi.",
|
||||||
"yohan": "Étudiant en [Je sais pas quoi] (2020). Il nous aide à corriger les bug. Et j'imagine aussi qu'il est BG mais je le connait pas.",
|
"yohan": "Étudiant en [Je sais pas quoi] (2020). Il nous aide à corriger les bug. Et j'imagine aussi qu'il est BG mais je le connait pas.",
|
||||||
"beranger": "Étudiant en AE (2020) et Président de l’Amicale au moment de la création et du lancement du projet. L’application, c’était son idée. Il a beaucoup aidé pour trouver des bugs, de nouvelles fonctionnalités et faire de la com.",
|
"beranger": "Étudiant en AE (2020) et Président de l’Amicale au moment de la création et du lancement du projet. L’application, c’était son idée. Il a beaucoup aidé pour trouver des bugs, de nouvelles fonctionnalités et faire de la com.",
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import {FlatList, Linking, Platform, Image, View} from 'react-native';
|
||||||
import i18n from 'i18n-js';
|
import i18n from 'i18n-js';
|
||||||
import {Avatar, Card, List, withTheme} from 'react-native-paper';
|
import {Avatar, Card, List, withTheme} from 'react-native-paper';
|
||||||
import {StackNavigationProp} from '@react-navigation/stack';
|
import {StackNavigationProp} from '@react-navigation/stack';
|
||||||
import {Modalize} from 'react-native-modalize';
|
import {Modalize} from "react-native-modalize";
|
||||||
import packageJson from '../../../package.json';
|
import packageJson from '../../../package.json';
|
||||||
import CollapsibleFlatList from '../../components/Collapsible/CollapsibleFlatList';
|
import CollapsibleFlatList from '../../components/Collapsible/CollapsibleFlatList';
|
||||||
import APP_LOGO from '../../../assets/android.icon.round.png';
|
import APP_LOGO from '../../../assets/android.icon.round.png';
|
||||||
|
|
@ -13,7 +13,8 @@ import type {
|
||||||
CardTitleIconPropsType,
|
CardTitleIconPropsType,
|
||||||
ListIconPropsType,
|
ListIconPropsType,
|
||||||
} from '../../constants/PaperStyles';
|
} from '../../constants/PaperStyles';
|
||||||
import OptionsDialog from '../../components/Dialogs/OptionsDialog';
|
import OptionsDialog from "../../components/Dialogs/OptionsDialog";
|
||||||
|
import type {OptionsDialogButtonType} from "../../components/Dialogs/OptionsDialog";
|
||||||
|
|
||||||
type ListItemType = {
|
type ListItemType = {
|
||||||
onPressCallback: () => void,
|
onPressCallback: () => void,
|
||||||
|
|
@ -81,9 +82,9 @@ class AboutScreen extends React.Component<PropsType> {
|
||||||
*/
|
*/
|
||||||
teamUsers = {
|
teamUsers = {
|
||||||
arnaud: {
|
arnaud: {
|
||||||
name: 'Arnaud Vergnrt',
|
name: 'Arnaud VERGNET',
|
||||||
message: i18n.t('screens.about.user.arnaud'),
|
message: 'C vrément tro 1 bg !!',
|
||||||
icon: 'crown',
|
icon: 'account-circle',
|
||||||
btnTrool: {
|
btnTrool: {
|
||||||
title: 'SWAG',
|
title: 'SWAG',
|
||||||
onPress: () => {
|
onPress: () => {
|
||||||
|
|
@ -91,15 +92,13 @@ class AboutScreen extends React.Component<PropsType> {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
btnLinkedin: {
|
btnLinkedin: {
|
||||||
title: '',
|
title: 'Linkedin',
|
||||||
icon: 'linkedin',
|
|
||||||
onPress: () => {
|
onPress: () => {
|
||||||
openWebLink(links.arnaudMail);
|
openWebLink(links.arnaudMail);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
btnMail: {
|
btnMail: {
|
||||||
title: '',
|
title: i18n.t('screens.about.authorMail'),
|
||||||
icon: 'email-edit',
|
|
||||||
onPress: () => {
|
onPress: () => {
|
||||||
openWebLink(links.arnaudLinkedin);
|
openWebLink(links.arnaudLinkedin);
|
||||||
},
|
},
|
||||||
|
|
@ -107,19 +106,17 @@ class AboutScreen extends React.Component<PropsType> {
|
||||||
},
|
},
|
||||||
yohan: {
|
yohan: {
|
||||||
name: 'Yohan Simard',
|
name: 'Yohan Simard',
|
||||||
message: i18n.t('screens.about.user.yohan'),
|
message: 'Correction de quelques bugs',
|
||||||
icon: 'xml',
|
icon: 'account-circle',
|
||||||
btnTrool: null,
|
btnTrool: null,
|
||||||
btnLinkedin: {
|
btnLinkedin: {
|
||||||
title: '',
|
title: 'Linkedin',
|
||||||
icon: 'linkedin',
|
|
||||||
onPress: () => {
|
onPress: () => {
|
||||||
openWebLink(links.yohanLinkedin);
|
openWebLink(links.yohanLinkedin);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
btnMail: {
|
btnMail: {
|
||||||
title: '',
|
title: i18n.t('screens.about.authorMail'),
|
||||||
icon: 'email-edit',
|
|
||||||
onPress: () => {
|
onPress: () => {
|
||||||
openWebLink(links.yohanMail);
|
openWebLink(links.yohanMail);
|
||||||
},
|
},
|
||||||
|
|
@ -133,40 +130,40 @@ class AboutScreen extends React.Component<PropsType> {
|
||||||
thanksUsers = {
|
thanksUsers = {
|
||||||
beranger: {
|
beranger: {
|
||||||
name: 'Béranger Quintana Y Arciosana',
|
name: 'Béranger Quintana Y Arciosana',
|
||||||
message: i18n.t('screens.about.user.beranger'),
|
message: 'Étudiant en AE (2020) et Président de l’Amicale au moment de la création et du lancement du projet. L’application, c’était son idée. Il a beaucoup aidé pour trouver des bugs, de nouvelles fonctionnalités et faire de la com.',
|
||||||
icon: 'account-heart',
|
icon: 'account-circle',
|
||||||
btnTrool: null,
|
btnTrool: null,
|
||||||
btnLinkedin: null,
|
btnLinkedin: null,
|
||||||
btnMail: null,
|
btnMail: null,
|
||||||
},
|
},
|
||||||
celine: {
|
celine: {
|
||||||
name: 'Céline Tassin',
|
name: 'Céline Tassin',
|
||||||
message: i18n.t('screens.about.user.celine'),
|
message: 'Étudiante en GPE (2020). Sans elle, tout serait moins mignon. Elle a aidé pour écrire le texte, faire de la com, et aussi à créer la mascotte 🦊.',
|
||||||
icon: 'brush',
|
icon: 'account-circle',
|
||||||
btnTrool: null,
|
btnTrool: null,
|
||||||
btnLinkedin: null,
|
btnLinkedin: null,
|
||||||
btnMail: null,
|
btnMail: null,
|
||||||
},
|
},
|
||||||
damien: {
|
damien: {
|
||||||
name: 'Damien Molina',
|
name: 'Damien Molina',
|
||||||
message: i18n.t('screens.about.user.damien'),
|
message: 'Étudiant en IR (2020) et créateur de la dernière version du site de l’Amicale. Grâce à son aide, intégrer les services de l’Amicale à l’application a été très simple.',
|
||||||
icon: 'web',
|
icon: 'account-circle',
|
||||||
btnTrool: null,
|
btnTrool: null,
|
||||||
btnLinkedin: null,
|
btnLinkedin: null,
|
||||||
btnMail: null,
|
btnMail: null,
|
||||||
},
|
},
|
||||||
titouan: {
|
titouan: {
|
||||||
name: 'Titouan Labourdette',
|
name: 'Titouan Labourdette',
|
||||||
message: i18n.t('screens.about.user.titouan'),
|
message: 'Étudiant en AE (2020) et Président de l’Amicale au moment de la création et du lancement du projet. L’application, c’était son idée. Il a beaucoup aidé pour trouver des bugs, de nouvelles fonctionnalités et faire de la com.',
|
||||||
icon: 'shield-bug',
|
icon: 'account-circle',
|
||||||
btnTrool: null,
|
btnTrool: null,
|
||||||
btnLinkedin: null,
|
btnLinkedin: null,
|
||||||
btnMail: null,
|
btnMail: null,
|
||||||
},
|
},
|
||||||
theo: {
|
theo: {
|
||||||
name: 'Théo Tami',
|
name: 'Théo Tami',
|
||||||
message: i18n.t('screens.about.user.theo'),
|
message: 'Étudiant en IR (2020). Il a beaucoup aidé pour trouver des bugs et proposer des nouvelles fonctionnalités.',
|
||||||
icon: 'food-apple',
|
icon: 'account-circle',
|
||||||
btnTrool: null,
|
btnTrool: null,
|
||||||
btnLinkedin: null,
|
btnLinkedin: null,
|
||||||
btnMail: null,
|
btnMail: null,
|
||||||
|
|
@ -243,15 +240,6 @@ class AboutScreen extends React.Component<PropsType> {
|
||||||
text: this.teamUsers.yohan.name,
|
text: this.teamUsers.yohan.name,
|
||||||
showChevron: false,
|
showChevron: false,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
onPressCallback: () => {
|
|
||||||
const {navigation} = this.props;
|
|
||||||
navigation.navigate('feedback');
|
|
||||||
},
|
|
||||||
icon: 'hand-pointing-right',
|
|
||||||
text: i18n.t('screens.about.user.you'),
|
|
||||||
showChevron: true,
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -358,16 +346,16 @@ class AboutScreen extends React.Component<PropsType> {
|
||||||
* Callback used when clicking an article in the list.
|
* Callback used when clicking an article in the list.
|
||||||
* It opens the modal to show detailed information about the article
|
* It opens the modal to show detailed information about the article
|
||||||
*
|
*
|
||||||
* @param user A user key
|
* @param user TODO
|
||||||
*/
|
*/
|
||||||
onListItemPress(user: AthorsItemType) {
|
onListItemPress(user: AthorsItemType) {
|
||||||
const dialogBtn: Array<IconOptionsDialogButtonType> = [
|
const dialogBtn: Array<OptionsDialogButtonType> = [
|
||||||
{
|
{
|
||||||
title: 'OK',
|
title: 'OK',
|
||||||
onPress: () => {
|
onPress: () => {
|
||||||
this.setState({dialogVisible: false});
|
this.onDialogDismiss();
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
}
|
||||||
];
|
];
|
||||||
if(user.btnMail != null) {
|
if(user.btnMail != null) {
|
||||||
dialogBtn.push(user.btnMail);
|
dialogBtn.push(user.btnMail);
|
||||||
|
|
@ -442,7 +430,7 @@ class AboutScreen extends React.Component<PropsType> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the thank you card showing support information and links
|
* Gets the thanks card showing information and links about the team TODO
|
||||||
*
|
*
|
||||||
* @return {*}
|
* @return {*}
|
||||||
*/
|
*/
|
||||||
|
|
@ -477,7 +465,7 @@ class AboutScreen extends React.Component<PropsType> {
|
||||||
<Card.Title
|
<Card.Title
|
||||||
title={i18n.t('screens.about.technologies')}
|
title={i18n.t('screens.about.technologies')}
|
||||||
left={(iconProps: CardTitleIconPropsType): React.Node => (
|
left={(iconProps: CardTitleIconPropsType): React.Node => (
|
||||||
<Avatar.Icon size={iconProps.size} icon="wrench" />
|
<Avatar.Icon size={iconProps.size} icon="build" />
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
<Card.Content>
|
<Card.Content>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue