diff --git a/.DS_Store b/.DS_Store index 15f905d5..f87539a4 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/App/app/Router.js b/App/app/Router.js index 238dd27b..d71c3f60 100755 --- a/App/app/Router.js +++ b/App/app/Router.js @@ -45,6 +45,9 @@ import teamDetail from './screens/teamDetail'; import event from './screens/event'; +import map from './screens/map' + + const navigationOptions = ({navigation}) => ({ headerLeft: navigation.goBack(null)}/>, headerStyle: {backgroundColor: 'transparent', zIndex: 100 }, @@ -64,6 +67,15 @@ const AppStack = createBottomTabNavigator( ) }, }, + Mapa:{ + screen: map, + navigationOptions: { + + tabBarIcon: ({tintColor}) => ( + + ) + }, + }, 'Jogo': { screen: Jogo, @@ -88,7 +100,7 @@ const AppStack = createBottomTabNavigator( }, - Eventos: { + Atividades: { screen: Eventos, navigationOptions: { @@ -98,7 +110,7 @@ const AppStack = createBottomTabNavigator( ) }, }, - + Home: { screen: Home, navigationOptions: { @@ -201,9 +213,15 @@ const Stack = createStackNavigator({ ) } } - else if (navigation.state.routes[index].routeName == 'Eventos') { + else if (navigation.state.routes[index].routeName == 'Atividades') { return { - headerTitle: 'Eventos', + headerTitle: 'Atividade', + } + + } + else if (navigation.state.routes[index].routeName == 'Mapa') { + return { + headerTitle: 'Mapa do Evento', } } diff --git a/App/app/screens/Calendar.js b/App/app/screens/Calendar.js index cca831eb..a48347f0 100644 --- a/App/app/screens/Calendar.js +++ b/App/app/screens/Calendar.js @@ -72,7 +72,7 @@ class Calendar extends React.Component { - {item.description} + {item.description} @@ -355,7 +355,8 @@ const styles = StyleSheet.create({ description: { padding: 10, paddingLeft: 0, - paddingTop: 0 + paddingTop: 0, + textAlign:"justify" }, title: { color: "#212121", diff --git a/App/app/screens/Eventos.js b/App/app/screens/Eventos.js index b7d9cb6e..541572f5 100644 --- a/App/app/screens/Eventos.js +++ b/App/app/screens/Eventos.js @@ -132,9 +132,8 @@ const styles = StyleSheet.create({ cardHours: { textAlign: "center", color: "white", - margin: 10 - - // width:'20%' + margin: 10, + width:'45%' }, cardDesc: { diff --git a/App/app/screens/Home.js b/App/app/screens/Home.js index ff0a15f8..b4f32385 100755 --- a/App/app/screens/Home.js +++ b/App/app/screens/Home.js @@ -352,12 +352,12 @@ class Home extends Component { - + Para participares no ENEI caching ou no Rally Tascas deves formar uma equipa (4 a 6) elementos. Ao criares a equipa, ficas como capitão. Podes adicionar e remover outros elementos. @@ -431,9 +431,9 @@ class Home extends Component { - A incrição no Rally tem custo de 5€ por elemento. A equipa + A inscrição no Rally tem custo de 5€ por elemento. A equipa apenas fica ativa quando efectuar o pagamento na banca no ENEI diff --git a/App/app/screens/Jogo.js b/App/app/screens/Jogo.js index b43f55b5..cbd19652 100644 --- a/App/app/screens/Jogo.js +++ b/App/app/screens/Jogo.js @@ -146,7 +146,7 @@ class Jogo extends React.Component { - this.handleClick(this.state.cromo.websitecromo)} > + this.handleClick(this.state.cromo.websiteCromo)} > {item.Name} - + {item.MoreInfo} @@ -207,7 +207,7 @@ class calendarDetail extends React.Component { > Descrição do orador: - {item.Description} + {item.Description} )} @@ -223,7 +223,7 @@ class calendarDetail extends React.Component { - {this.props.sessionDetail.Description} + {this.props.sessionDetail.Description} diff --git a/App/app/screens/choosePath.js b/App/app/screens/choosePath.js index abe0d1bd..fd2ad87e 100644 --- a/App/app/screens/choosePath.js +++ b/App/app/screens/choosePath.js @@ -311,7 +311,7 @@ class choosePath extends React.Component { {this._findPath("IA") && ( - + - - - + + + @@ -883,7 +883,8 @@ class choosePath extends React.Component { style={{ fontSize: 15, fontWeight: "bold", - marginLeft: 5 + marginLeft: 5, + maxWidth:150 }} > {item[index].Name} @@ -892,7 +893,8 @@ class choosePath extends React.Component { {item[index].MaxAttendees - @@ -910,6 +912,7 @@ class choosePath extends React.Component { } unfilledColor={"white"} width={150} + style={{marginLeft:25}} /> )} diff --git a/App/app/screens/eventDetail.js b/App/app/screens/eventDetail.js index 2c24433e..ced31919 100644 --- a/App/app/screens/eventDetail.js +++ b/App/app/screens/eventDetail.js @@ -112,7 +112,7 @@ class eventDetail extends React.Component { - {info.location.desc} + {info.location.desc} - {info.location.desafio} + {info.location.desafio} @@ -173,7 +173,7 @@ class eventDetail extends React.Component { - {info.desc} + {info.desc} { + this.props.getAllEvents(this.props.internalToken); + this.props.getEventLocsVisited( + this.props.team.id, + this.props.internalToken + ); + }; + state = { + index: 0, + routes: [ + { key: "first", title: "Festarola" }, + { key: "second", title: "Febrada" }, + { key: "third", title: "Rally" }, + { key: "fourth", title: "Peddy" } + ] + }; + + componentDidMount() { + this.props.getAllEvents(this.props.internalToken); + this.props.getEventLocsVisited( + this.props.team.id, + this.props.internalToken + ); + } + + render() { + const { navigate } = this.props.navigation; + return ( + + + + ) + + } +} + +const styles = StyleSheet.create({ + cardHours: { + textAlign: "center", + color: "white", + margin: 10, + width:'45%' + }, + + cardDesc: { + //alignSelf:'center', + backgroundColor: "#CC1A17", + // flex:1, + flexDirection: "row" + }, + cardDescText: { + fontWeight: "bold", + color: "white", + fontSize: 18, + + width: "45%", + margin: 10 + }, + container: { + backgroundColor: "white", + flex: 1, + flexGrow: 1, + flexDirection: "column", + paddingBottom: 20 + }, + + scroll: { + flex: 1 + }, + + cardContainer: { + flex: 1, + //flexDirection: 'row', + //padding: 10, + margin: 20, + marginBottom: 0, + backgroundColor: "#fff", + height: SCREEN_WIDTH * 0.62, + borderRadius: 5 + //borderWidth: 2, + }, + + scene: { + flex: 1 + } +}); + +function mapStateToProps(state, props) { + return { + token: state.apiReducer.token, + user: state.apiReducer.user, + logged: state.apiReducer.logged, + userDetails: state.apiReducer.userDetails, + onHold: state.apiReducer.onHold, + bilhete: state.apiReducer.bilhete, + alimentacao: state.apiReducer.alimentacao, + alojamento: state.apiReducer.alojamento, + acesso: state.apiReducer.acesso, + team: state.apiReducer.team, + internalToken: state.apiReducer.internalToken, + eventsInternal: state.apiReducer.eventsInternal + }; +} + +function mapDispatchToProps(dispatch) { + return bindActionCreators(Actions, dispatch); +} + +export default connect( + mapStateToProps, + mapDispatchToProps +)(map); diff --git a/App/app/store/actions/api.js b/App/app/store/actions/api.js index 37f48144..f1aeaf0e 100644 --- a/App/app/store/actions/api.js +++ b/App/app/store/actions/api.js @@ -864,32 +864,32 @@ function getCareerPath(sessions) { for (let key in sessions) { if (sessions[key].Name == "IA") { careerPath = "Artificial Intelligence"; - careerColor = "#CC1A17"; + careerColor = "#F54B10"; code = "IA"; } if (sessions[key].Name == "IOT") { - careerPath = "Internet of things"; - careerColor = "#4B266A"; + careerPath = "Internet of Things"; + careerColor = "#EC174A"; code = "IOT"; } if (sessions[key].Name == "WEB") { - careerPath = "Web development"; - careerColor = "#FBB81B"; + careerPath = "Web Development"; + careerColor = "#3A1484"; code = "WEB"; } if (sessions[key].Name == "NET") { careerPath = "Networking and Security"; - careerColor = "#055CA0"; + careerColor = "#214198"; code = "NET"; } if (sessions[key].Name == "MOB") { careerPath = "Mobile Development"; - careerColor = "#0B7D3C"; + careerColor = "#971384"; code = "MOB"; } if (sessions[key].Name == "DS") { careerPath = "Data Science"; - careerColor = "#ED6B33"; + careerColor = "#DC160D"; code = "DS"; } } diff --git a/App/package-lock.json b/App/package-lock.json index 71670fb7..6b1ca28a 100755 --- a/App/package-lock.json +++ b/App/package-lock.json @@ -7961,7 +7961,6 @@ } } }, - "react-native-image-overlay": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/react-native-image-overlay/-/react-native-image-overlay-0.1.2.tgz", @@ -7970,7 +7969,19 @@ "prop-types": "^15.6.1" } }, - + "react-native-image-pan-zoom": { + "version": "2.1.11", + "resolved": "https://registry.npmjs.org/react-native-image-pan-zoom/-/react-native-image-pan-zoom-2.1.11.tgz", + "integrity": "sha512-ZCisGUFpPchHXsjT7ZI0anlSLPgcTmjRKXqpVnPu3RDWFXfKjuL4zpY57DX4Y8YgGZCpbf9fApN7KjVYody2Mw==" + }, + "react-native-image-zoom-viewer": { + "version": "2.2.25", + "resolved": "https://registry.npmjs.org/react-native-image-zoom-viewer/-/react-native-image-zoom-viewer-2.2.25.tgz", + "integrity": "sha512-/w3GsUD9F5c6ZE+3GC1UmE0I9yCAfTf/5Jjz5bDCvIQFp2MoMod3BQzRnZ1PjZbCq6a90eZ5rnB2Zvm1rFOgeQ==", + "requires": { + "react-native-image-pan-zoom": "^2.1.9" + } + }, "react-native-ionicons": { "version": "4.5.5", "resolved": "https://registry.npmjs.org/react-native-ionicons/-/react-native-ionicons-4.5.5.tgz", diff --git a/App/package.json b/App/package.json index 2b3ed8bd..dd7b7e40 100755 --- a/App/package.json +++ b/App/package.json @@ -27,9 +27,8 @@ "react-native-elements": "^1.0.0", "react-native-fit-image": "^1.5.4", "react-native-gesture-handler": "^1.0.15", - "react-native-image-overlay": "^0.1.2", - + "react-native-image-zoom-viewer": "^2.2.25", "react-native-ionicons": "^4.5.5", "react-native-linear-gradient": "^2.5.3", "react-native-loader": "^1.2.1", diff --git a/website/.DS_Store b/website/.DS_Store index 97a54393..e57fe17f 100644 Binary files a/website/.DS_Store and b/website/.DS_Store differ diff --git a/website/ctf.html b/website/ctf.html index 46f81e37..b96f3951 100644 --- a/website/ctf.html +++ b/website/ctf.html @@ -92,7 +92,7 @@
-

Nitendo Switch

+

Nintendo Switch

diff --git a/website/imgs/.DS_Store b/website/imgs/.DS_Store index 7d9f3345..f194aed4 100644 Binary files a/website/imgs/.DS_Store and b/website/imgs/.DS_Store differ diff --git a/website/imgs/mapa.png b/website/imgs/mapa.png new file mode 100644 index 00000000..647944ad Binary files /dev/null and b/website/imgs/mapa.png differ