Browse Source

Wrote README and change fron ing to esp

Eduardo Santin 2 years ago
parent
commit
8a2d4c5325
4 changed files with 46 additions and 16 deletions
  1. 25
    5
      README.md
  2. 3
    3
      screens/main/Cita.js
  3. 16
    6
      screens/main/Search.js
  4. 2
    2
      screens/main/StateTime.js

+ 25
- 5
README.md View File

1
-#Para poder correr el proyecto: 
2
-Instalar Nodejs, que incluye npm <br>
3
-npm install --global expo-cli<br>
4
-Instalar los paquetes que aparecen en package-lock.json usando<br>
5
-npm install nombreDelPaquete<br>
1
+Freehand App developed by ErEduGilMor: Ernesto Ortiz, Eduardo Santin, Gilberto Cancel, Mortimez Ojeda
2
+
3
+
4
+Viewing the project:
5
+The Freehand app is not currently published in stores. The quickest way
6
+to run and view the app without running the Expo CLI is by accessing this address: https://expo.dev/@freehand/freehand. 
7
+If the link is opened on pc browser a QR code and a URL is provided to run the Freehand app on your mobile device. If
8
+the link is opened on a mobile browser the option "Open with Expo Go" will appear instead.
9
+
10
+
11
+Requirements:
12
+Node.js LTS release
13
+Expo CLI (npm i -g expo-cli)
14
+Android Studio/Xcode/Expo Go application
15
+
16
+
17
+Running the project using the provided code:
18
+1.Create an empty directory
19
+2.Enter the created directory and Git clone the Freehand repo, git clone -b Freehand https://git.ccom.uprrp.edu/ccorrada/ErEduGilMor.git
20
+4.Run npm install to install all the necessary depencies to run Freehand.
21
+5.Create an Expo account at https://expo.dev/
22
+6.Run the expo login command to log in to your Expo account.
23
+7.Run the expo start command to start the Expo CLI.
24
+8.Run the android or ios commands to start up your simulator. As a provided alternative, you can also scan the 
25
+provided QR code to launch the application on the Expo Go App.   

+ 3
- 3
screens/main/Cita.js View File

103
   const create_meet = () => {
103
   const create_meet = () => {
104
     Alert.alert(
104
     Alert.alert(
105
 
105
 
106
-      "IMPORTANT!",
107
-      "You are about to be redirected to the Meet app. After creating a meeting, you must share the meet link with the client. Do you want to continue?",
106
+      "IMPORTANTE!",
107
+      "Al continuar, se mandara a la aplicacion de Google Meet, recuerda crear y compartir el enlace de la reunion con su cliente. Continuar?",
108
       [
108
       [
109
         {
109
         {
110
-          text: "Cancel",
110
+          text: "Cancelar",
111
           // onPress: () => console.log("Cancel Pressed"),
111
           // onPress: () => console.log("Cancel Pressed"),
112
           style: "cancel"
112
           style: "cancel"
113
         },
113
         },

+ 16
- 6
screens/main/Search.js View File

385
     //is not searching for anything yet 
385
     //is not searching for anything yet 
386
     // console.log(tags.length)
386
     // console.log(tags.length)
387
     // console.log(city.id)
387
     // console.log(city.id)
388
+
389
+    const users = []
388
     if (tags.length === 0 && (typeof city.id ==="undefined" || city.id === -1)) {
390
     if (tags.length === 0 && (typeof city.id ==="undefined" || city.id === -1)) {
391
+      
392
+      setUsers(users)
389
       return
393
       return
390
     }
394
     }
391
 
395
 
392
     //reset the users usestate to empty
396
     //reset the users usestate to empty
393
-    const users = []
397
+    
394
     
398
     
395
 
399
 
396
     const db = firebase.firestore()
400
     const db = firebase.firestore()
770
     <ScrollView>
774
     <ScrollView>
771
     <View style={{ margin: 30 }}>
775
     <View style={{ margin: 30 }}>
772
       <View style={{ width: '100%', alignItems: 'center' }}>
776
       <View style={{ width: '100%', alignItems: 'center' }}>
773
-        <Text style={{ fontSize: 30, paddingBottom: 20 }}>Search</Text>
777
+        <Text style={{ fontSize: 30, paddingBottom: 20 }}>Busqueda</Text>
774
       </View>
778
       </View>
775
 
779
 
776
-      <Text style={{ fontSize: 20, paddingBottom: 10 }}>Interpreter city</Text>
780
+      <Text style={{ fontSize: 20, paddingBottom: 10 }}>Pueblo</Text>
777
       <SelectBox
781
       <SelectBox
778
-        label="Select single"
782
+        label="Selecciona"
779
         options={City}
783
         options={City}
780
         value={selectedCity}
784
         value={selectedCity}
781
         onChange={onChange()}
785
         onChange={onChange()}
786
 
790
 
787
 
791
 
788
       />
792
       />
789
-      <Text style={{ fontSize: 20, paddingBottom: 10 }}>Interpreter Tags</Text>
793
+
794
+      
795
+      <Text style={{ fontSize: 20, paddingBottom: 10, paddingTop:20 }}>Tags de interprete</Text>
790
 
796
 
791
       
797
       
792
 
798
 
793
       <SelectBox
799
       <SelectBox
794
-        label="Select multiple"
800
+        label="Selecciona multiple"
795
         options={Tags}
801
         options={Tags}
796
         selectedValues={selectedTags}
802
         selectedValues={selectedTags}
797
         onMultiSelect={onMultiChange()}
803
         onMultiSelect={onMultiChange()}
817
           />
823
           />
818
 
824
 
819
 
825
 
826
+
827
+      <View style={{ width: '100%', paddingTop:40, paddingBottom: 30 }}>
820
       {/* button that will fetch the users */}
828
       {/* button that will fetch the users */}
821
       <Button title='Buscar' onPress={() => fetchUsers(selectedTags, selectedCity)}/>
829
       <Button title='Buscar' onPress={() => fetchUsers(selectedTags, selectedCity)}/>
822
 
830
 
831
+      </View>
832
+
823
 
833
 
824
       <FlatList
834
       <FlatList
825
         numColumns={1}
835
         numColumns={1}

+ 2
- 2
screens/main/StateTime.js View File

202
     return(
202
     return(
203
       <TouchableWithoutFeedback style={styles.stdcontainer}>
203
       <TouchableWithoutFeedback style={styles.stdcontainer}>
204
         <ImageBackground style={styles.regcontainer} source={require('../../assets/yellow-white.jpg')}>
204
         <ImageBackground style={styles.regcontainer} source={require('../../assets/yellow-white.jpg')}>
205
-          <Text style={styles.qsttxt}> Select the Start and End Time for the Appointment </Text>
205
+          <Text style={styles.qsttxt}> Seleccione tiempo de inicio y de terminacion de la cita. </Text>
206
         <Button style={styles.cenregbutton} title="8:00am" onPress={() => this.time_set(1,)}/>
206
         <Button style={styles.cenregbutton} title="8:00am" onPress={() => this.time_set(1,)}/>
207
         <Button style={styles.cenregbutton} title="9:00am" onPress={() => this.time_set(2,)}/>
207
         <Button style={styles.cenregbutton} title="9:00am" onPress={() => this.time_set(2,)}/>
208
         <Button style={styles.cenregbutton} title="10:00am" onPress={() => this.time_set(3,)}/>
208
         <Button style={styles.cenregbutton} title="10:00am" onPress={() => this.time_set(3,)}/>
210
         <Button style={styles.cenregbutton} title="12:00pm" onPress={() => this.time_set(5,)}/>
210
         <Button style={styles.cenregbutton} title="12:00pm" onPress={() => this.time_set(5,)}/>
211
         <Button style={styles.cenregbutton} title="1:00pm" onPress={() => this.time_set(6,)}/>
211
         <Button style={styles.cenregbutton} title="1:00pm" onPress={() => this.time_set(6,)}/>
212
         <Button style={styles.cenregbutton} title="2:00pm" onPress={() => this.time_set(7,)}/>
212
         <Button style={styles.cenregbutton} title="2:00pm" onPress={() => this.time_set(7,)}/>
213
-        <Button style={styles.regbutton} title="Request Appointment" onPress={() => this.time_assignment()}/>
213
+        <Button style={styles.regbutton} title="Pedir Cita" onPress={() => this.time_assignment()}/>
214
         </ImageBackground>
214
         </ImageBackground>
215
       </TouchableWithoutFeedback>
215
       </TouchableWithoutFeedback>
216
     );
216
     );