Explorar el Código

Merge branch 'master' into schemas

tags/0.0.1
J hace 4 años
padre
commit
3405721ae5

+ 1
- 1
backend/lib/routes/membership/join.js Ver fichero

62
                 // TODO: LIMIT the amount of groupings by checking type
62
                 // TODO: LIMIT the amount of groupings by checking type
63
                 // !: You should only be able to match with the target_id ONCE
63
                 // !: You should only be able to match with the target_id ONCE
64
                 // !: You should only be associated with a single company too
64
                 // !: You should only be associated with a single company too
65
-                console.log('---')
66
 
65
 
67
                 /** User membership service method to create membership */
66
                 /** User membership service method to create membership */
68
                 const memberships = await membershipService.joinGrouping(
67
                 const memberships = await membershipService.joinGrouping(
72
                     role,
71
                     role,
73
                 )
72
                 )
74
                 // console.log(memberships)
73
                 // console.log(memberships)
74
+
75
                 return h
75
                 return h
76
                     .response({
76
                     .response({
77
                         ok: true,
77
                         ok: true,

+ 1
- 1
backend/lib/routes/profile/patch-queue.js Ver fichero

51
             const { include_profile, reinsert } = request.query
51
             const { include_profile, reinsert } = request.query
52
             const { profileService, matchQueueService } =
52
             const { profileService, matchQueueService } =
53
                 request.server.services()
53
                 request.server.services()
54
-            console.log('reinsert', reinsert)
54
+            // console.log('reinsert', reinsert)
55
             const updatedQueue = await matchQueueService.markAsDeleted(
55
             const updatedQueue = await matchQueueService.markAsDeleted(
56
                 profile_id,
56
                 profile_id,
57
                 target_id,
57
                 target_id,

+ 0
- 8
backend/lib/routes/profile/queue.js Ver fichero

59
                 data: queueIds
59
                 data: queueIds
60
             }
60
             }
61
 
61
 
62
-            // HELP: I think there's an issue here
63
-            // queueIds spits out the queue profiles in the correct order
64
-            // ~However~ when it goes through getProfilesFor
65
-            // it comes back in literal database order regardless of is_deleted status
66
-            // console.log(
67
-            //     'include_profile results',
68
-            //     await profileService.getProfilesFor(queueIds),
69
-            // )
70
             if(include_profile) {
62
             if(include_profile) {
71
                 res.data = await profileService.getProfilesFor(queueIds)
63
                 res.data = await profileService.getProfilesFor(queueIds)
72
             }
64
             }

+ 1
- 1
backend/lib/routes/profile/score.js Ver fichero

43
         tags: ['api'],
43
         tags: ['api'],
44
         /** Protect this route with authentication? */
44
         /** Protect this route with authentication? */
45
         auth: false,
45
         auth: false,
46
-
46
+        cors: true,
47
         handler: async function (request, h) {
47
         handler: async function (request, h) {
48
             const { profileService, matchQueueService } =
48
             const { profileService, matchQueueService } =
49
                 request.server.services()
49
                 request.server.services()

+ 0
- 2
backend/lib/routes/user/current.js Ver fichero

30
         tags: ['api'],
30
         tags: ['api'],
31
         auth: 'default_jwt',
31
         auth: 'default_jwt',
32
         handler: async function (request, h) {
32
         handler: async function (request, h) {
33
-            // console.log('current')
34
-            // console.log(request)
35
             try {
33
             try {
36
                 const auth = {
34
                 const auth = {
37
                     credentials: request.auth.credentials,
35
                     credentials: request.auth.credentials,

+ 0
- 1
backend/lib/routes/user/list-profiles.js Ver fichero

68
                 userId,
68
                 userId,
69
                 type,
69
                 type,
70
             )
70
             )
71
-            console.log('get profiles - const profiles / in list-profiles.js', profiles)
72
             try {
71
             try {
73
                 return {
72
                 return {
74
                     ok: true,
73
                     ok: true,

+ 0
- 2
backend/lib/services/match.js Ver fichero

51
         }
51
         }
52
 
52
 
53
         this.swapWith = p => {
53
         this.swapWith = p => {
54
-            console.log('%s & %s swap partners', this.name, p.name)
55
             const thisFiance = this.fiance
54
             const thisFiance = this.fiance
56
             const pFiance = p.fiance
55
             const pFiance = p.fiance
57
             this.engageTo(pFiance)
56
             this.engageTo(pFiance)
80
         for (let d = 0; d < diff; d++) {
79
         for (let d = 0; d < diff; d++) {
81
             smallerList.push({ profile_id: `${d}-dummy`, queue: [] })
80
             smallerList.push({ profile_id: `${d}-dummy`, queue: [] })
82
         }
81
         }
83
-        console.log('---')
84
         let allPeople = [...seekers, ...posters]
82
         let allPeople = [...seekers, ...posters]
85
         const queuesById = allPeople.reduce((queuesById, profile) => {
83
         const queuesById = allPeople.reduce((queuesById, profile) => {
86
             queuesById[profile.profile_id] = profile.queue
84
             queuesById[profile.profile_id] = profile.queue

+ 1
- 1
backend/lib/services/matchqueue.js Ver fichero

13
         const { MatchQueue } = this.server.models()
13
         const { MatchQueue } = this.server.models()
14
         return await MatchQueue.query()
14
         return await MatchQueue.query()
15
             .where('profile_id', profileId)
15
             .where('profile_id', profileId)
16
-            .andWhere('is_deleted', false)
16
+            .where('is_deleted', 0)
17
     }
17
     }
18
     /**
18
     /**
19
      * Returns queues by profile id by user type
19
      * Returns queues by profile id by user type

+ 14
- 5
backend/lib/services/profile.js Ver fichero

116
 
116
 
117
     async getProfilesFor(profileIdArray, type) {
117
     async getProfilesFor(profileIdArray, type) {
118
         const { Profile } = this.server.models()
118
         const { Profile } = this.server.models()
119
-
119
+        // profilesEntries is profiles in database row order 
120
         const profilesEntries = await Profile.query()
120
         const profilesEntries = await Profile.query()
121
             .whereIn('profile_id', profileIdArray)
121
             .whereIn('profile_id', profileIdArray)
122
             .withGraphFetched('responses')
122
             .withGraphFetched('responses')
123
             .withGraphFetched('user')
123
             .withGraphFetched('user')
124
 
124
 
125
-        return profilesEntries.map(profile => {
126
-            return new CompleteProfile(profile, type)
127
-        })
125
+        // taking the info from profilesEntries
126
+        // to repack into completeProfiles
127
+        // in same order as profileIdArray
128
+        const completeProfiles = []
129
+        profileIdArray.forEach(pid => {
130
+            profilesEntries.forEach(entry => {
131
+                if (entry.profile_id == pid) {
132
+                    completeProfiles.push(new CompleteProfile(entry, type))
133
+                }
134
+            })
135
+        })  
136
+        return completeProfiles
128
     }
137
     }
129
 
138
 
130
     /**
139
     /**
299
             parseInt(zipCode),
308
             parseInt(zipCode),
300
         )
309
         )
301
         if (!zipInfo) {
310
         if (!zipInfo) {
302
-            console.log('zip:', zipCode)
311
+            console.error('zip:', zipCode)
303
         }
312
         }
304
 
313
 
305
         return {
314
         return {

+ 0
- 4402
frontend/package-lock.json
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 16
- 16
frontend/package.json Ver fichero

9
         "format": "prettier .  --write"
9
         "format": "prettier .  --write"
10
     },
10
     },
11
     "dependencies": {
11
     "dependencies": {
12
-        "joi": "^17.4.0",
13
         "pubnub": "^5.0.0",
12
         "pubnub": "^5.0.0",
14
-        "vue": "^3.0.5",
15
-        "vue-router": "^4.0.12"
13
+        "joi": "^17.6.0",
14
+        "vue": "^3.2.31",
15
+        "vue-router": "^4.0.14"
16
     },
16
     },
17
     "devDependencies": {
17
     "devDependencies": {
18
-        "@prettier/plugin-pug": "^1.17.3",
19
-        "@vitejs/plugin-vue": "^1.2.2",
20
-        "@vue/compiler-sfc": "^3.0.5",
21
-        "autoprefixer": "^10.2.5",
22
-        "eslint": "^8.3.0",
23
-        "eslint-config-prettier": "^8.3.0",
24
-        "eslint-plugin-vue": "^8.1.1",
25
-        "naive-ui": "^2.20.3",
26
-        "postcss": "^8.2.13",
27
-        "postcss-calc": "^8.0.0",
28
-        "postcss-import": "^14.0.1",
18
+        "@prettier/plugin-pug": "^1.19.2",
19
+        "@vitejs/plugin-vue": "^2.2.4",
20
+        "@vue/compiler-sfc": "^3.2.31",
21
+        "autoprefixer": "^10.4.2",
22
+        "eslint": "^8.11.0",
23
+        "eslint-config-prettier": "^8.5.0",
24
+        "eslint-plugin-vue": "^8.5.0",
25
+        "naive-ui": "^2.26.4",
26
+        "postcss": "^8.4.8",
27
+        "postcss-calc": "^8.2.4",
28
+        "postcss-import": "^14.0.2",
29
         "precss": "^4.0.0",
29
         "precss": "^4.0.0",
30
         "pug": "^3.0.2",
30
         "pug": "^3.0.2",
31
         "pug-plain-loader": "^1.1.0",
31
         "pug-plain-loader": "^1.1.0",
32
-        "sugarss": "^3.0.3",
33
-        "vite": "^2.2.3",
32
+        "sugarss": "^4.0.1",
33
+        "vite": "^2.8.6",
34
         "vite-fs": "^0.0.2",
34
         "vite-fs": "^0.0.2",
35
         "watch": "^1.0.2"
35
         "watch": "^1.0.2"
36
     }
36
     }

+ 23
- 13
frontend/src/components/ProfileCardList.vue Ver fichero

3
     .profile_card_list_container.w-full
3
     .profile_card_list_container.w-full
4
         .swipe(
4
         .swipe(
5
             :config='config'
5
             :config='config'
6
-            :key='profile.uid'
6
+            :key='profile.pid'
7
             @throwout='swipped(profile)'
7
             @throwout='swipped(profile)'
8
-            v-for='profile in profiles'
8
+            v-for='(profile, i) in profiles'
9
+            :style='{"z-index": 1000-i}'
9
         )
10
         )
10
             .card.b-solid.rounded.p-0.bg-cover(
11
             .card.b-solid.rounded.p-0.bg-cover(
11
                 :style='{ "background-image": `url(${profile.avatar})` }'
12
                 :style='{ "background-image": `url(${profile.avatar})` }'
12
             )
13
             )
13
                 .card__content
14
                 .card__content
14
-                    h3.p-1.mv-0.b-solid.rounded {{ profile.name }}
15
+                    h3.p-1.mv-0.b-solid.rounded {{ profile.pid  }} {{ profile.name }}
15
                 nav.swipe_icons.w-full.f-row.between
16
                 nav.swipe_icons.w-full.f-row.between
16
                     //- Accept
17
                     //- Accept
17
                     button.p-1(@click='accept') Accept
18
                     button.p-1(@click='accept') Accept
22
 </template>
23
 </template>
23
 
24
 
24
 <script setup>
25
 <script setup>
25
-import { computed, defineProps } from 'vue'
26
-import { updateQueueByProfileId } from '../services/queue.service'
26
+import { computed, defineProps, defineEmits } from 'vue'
27
+import { updateQueueByProfileId, fetchMembershipsByProfileId, postMembershipByProfileId } from '../services'
27
 
28
 
29
+const emit = defineEmits(['reloadQueue'])
28
 // TODO: Please review this conversion from script to script setup
30
 // TODO: Please review this conversion from script to script setup
29
 // converted from the props section
31
 // converted from the props section
30
 const props = defineProps({
32
 const props = defineProps({
32
         type: [Object, Array],
34
         type: [Object, Array],
33
         default: () => [
35
         default: () => [
34
             {
36
             {
35
-                uid: '1',
37
+                pid: '1',
36
                 name: 'Full Name',
38
                 name: 'Full Name',
37
                 avatar: 'https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/newborn-baby-boy-sleeping-peacefully-wearing-knit-royalty-free-image-1589459736.jpg?crop=0.669xw:1.00xh;0.228xw,0&resize=640:*',
39
                 avatar: 'https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/newborn-baby-boy-sleeping-peacefully-wearing-knit-royalty-free-image-1589459736.jpg?crop=0.669xw:1.00xh;0.228xw,0&resize=640:*',
38
                 metadata: { age: '21', rawMetadata: 'Some Text Here!' },
40
                 metadata: { age: '21', rawMetadata: 'Some Text Here!' },
39
             },
41
             },
40
         ],
42
         ],
41
     },
43
     },
42
-    uid: {
44
+    pid: {
43
         type: Number,
45
         type: Number,
44
         default: 9999,
46
         default: 9999,
45
     },
47
     },
54
 
56
 
55
 
57
 
56
 const swipped = profile => {
58
 const swipped = profile => {
57
-    const index = props.profiles.findIndex(u => u.uid == profile.uid)
59
+    const index = props.profiles.findIndex(u => u.pid == profile.pid)
58
     // TODO: bug, fix this
60
     // TODO: bug, fix this
59
     props.profiles.splice(index, 1)
61
     props.profiles.splice(index, 1)
60
     profile.id = Date.now() + (Math.random() * 100000).toFixed()
62
     profile.id = Date.now() + (Math.random() * 100000).toFixed()
67
     const data = { ...currentCard }
69
     const data = { ...currentCard }
68
 }
70
 }
69
 // AHP Button behavior
71
 // AHP Button behavior
70
-const accept = () => {
72
+
73
+const accept = async () => {
71
     console.log('accepted aka do NOT reinsert')
74
     console.log('accepted aka do NOT reinsert')
72
     // need to pass these arguments (profileId, targetId, status)
75
     // need to pass these arguments (profileId, targetId, status)
73
     // the url structure is
76
     // the url structure is
74
     // const charmander = await db.get(`/profile/{profile_id}/queue/{target_id}/delete?include_profile=true&reinsert=false`)
77
     // const charmander = await db.get(`/profile/{profile_id}/queue/{target_id}/delete?include_profile=true&reinsert=false`)
75
     // http://localhost:3001/api/profile/38/queue/9/delete?include_profile=true&reinsert=true
78
     // http://localhost:3001/api/profile/38/queue/9/delete?include_profile=true&reinsert=true
76
-    const profileId = props.uid
77
-    const targetId = props.profiles[0].uid
79
+    const profileId = props.pid
80
+    const targetId = props.profiles[0].pid
78
     updateQueueByProfileId(profileId, targetId, false)
81
     updateQueueByProfileId(profileId, targetId, false)
79
     // TODO: next step is grouping/membership
82
     // TODO: next step is grouping/membership
83
+    const checkMembership = await fetchMembershipsByProfileId(profileId)
84
+    if (!checkMembership.length) {
85
+        console.log('Make membership')
86
+        postMembershipByProfileId({ profileId, targetId })
87
+    }
88
+    emit('reloadQueue')
80
 }
89
 }
81
 const hold = () => {
90
 const hold = () => {
82
     console.log('held? do we need this?')
91
     console.log('held? do we need this?')
84
 const pass = () => {
93
 const pass = () => {
85
     console.log('passed aka do reinsert')
94
     console.log('passed aka do reinsert')
86
     // const charmander = await db.get(`/profile/{profile_id}/queue/{target_id}/delete?include_profile=true&reinsert=true`)
95
     // const charmander = await db.get(`/profile/{profile_id}/queue/{target_id}/delete?include_profile=true&reinsert=true`)
87
-    const profileId = props.uid
88
-    const targetId = props.profiles[0].uid
96
+    const profileId = props.pid
97
+    const targetId = props.profiles[0].pid
89
     updateQueueByProfileId(profileId, targetId, true)
98
     updateQueueByProfileId(profileId, targetId, true)
99
+    emit('reloadQueue')
90
 }
100
 }
91
 
101
 
92
 // from the data() section
102
 // from the data() section

+ 10
- 3
frontend/src/components/Sidebar.vue Ver fichero

1
 <template lang="pug">
1
 <template lang="pug">
2
-
3
-aside.sidebar.p-1
2
+aside.sidebar.p-1.f-col.between
4
     h3 Messages
3
     h3 Messages
5
     .search
4
     .search
6
         input
5
         input
7
         label search
6
         label search
8
 
7
 
9
     messages(:title="title" :users="users")
8
     messages(:title="title" :users="users")
9
+    .spacer.f-grow
10
+    .temp-control-box.f-row.start.center
11
+        p.t-up.p-0 current user
12
+        input(v-model='mypid' style="width: 50px")
13
+        button(@click="$emit('updatePid', mypid)").t-up.p-0 switch
10
 </template>
14
 </template>
11
 
15
 
12
 <script>
16
 <script>
16
     components: { messages }, 
20
     components: { messages }, 
17
     data: () => ({
21
     data: () => ({
18
         title:'Messages from Matches',
22
         title:'Messages from Matches',
19
-        uid: 111,
23
+        mypid: 45,
20
         users: [
24
         users: [
21
             {
25
             {
22
                 name: 'Bob McRob',
26
                 name: 'Bob McRob',
32
             },
36
             },
33
         ],
37
         ],
34
     }),
38
     }),
39
+    created() {
40
+        this.$emit('updatePid', this.mypid)
41
+    }
35
 }
42
 }
36
 </script>
43
 </script>
37
 
44
 

+ 2
- 4
frontend/src/components/form.vue Ver fichero

107
 /**
107
 /**
108
  * Save or take the-nNext step in the form
108
  * Save or take the-nNext step in the form
109
  */
109
  */
110
-const next = e => {
110
+const next = async e => {
111
     const validity = isValid(state.step - 1)
111
     const validity = isValid(state.step - 1)
112
     if (validity.error) return console.error(validity.error)
112
     if (validity.error) return console.error(validity.error)
113
     if (state.step === props.form.length) {
113
     if (state.step === props.form.length) {
128
         // Bc we don't want to pass the 1st question to backend & we want profileId
128
         // Bc we don't want to pass the 1st question to backend & we want profileId
129
         // Necessary atm bc we manually added question in Survey class (entity)
129
         // Necessary atm bc we manually added question in Survey class (entity)
130
         const profileId = idWithResponseVal.shift().val
130
         const profileId = idWithResponseVal.shift().val
131
-        // TODO: pass maxDistance from an input value somewhere later
132
-        const maxDistance = 10
131
+        const maxDistance = 100
133
         saveSurveyByProfileID(idWithResponseVal, profileId)
132
         saveSurveyByProfileID(idWithResponseVal, profileId)
134
         alert('Responses submitted!')
133
         alert('Responses submitted!')
135
         resetAnswers()
134
         resetAnswers()
136
-        // TODO: score here after save survey responses
137
         scoreSurveyByProfileId(profileId, maxDistance)
135
         scoreSurveyByProfileId(profileId, maxDistance)
138
         state.step = 1
136
         state.step = 1
139
     } else if (state.step < props.form.length) {
137
     } else if (state.step < props.form.length) {

+ 3
- 1
frontend/src/services/grouping.service.js Ver fichero

25
     targetId,
25
     targetId,
26
     groupingType = 'match',
26
     groupingType = 'match',
27
 }) => {
27
 }) => {
28
+    const utcDateInSeconds = Date.now()/1000
28
     const membership = {
29
     const membership = {
29
         target_id: targetId,
30
         target_id: targetId,
30
         grouping_type: groupingType,
31
         grouping_type: groupingType,
31
-        grouping_name: `delete_${profileId}_${targetId}`,
32
+        grouping_name: `${utcDateInSeconds}_${profileId}_${targetId}`,
32
     }
33
     }
34
+    console.log('Membership Created')
33
     const createdMembershipRecord = await db.post(
35
     const createdMembershipRecord = await db.post(
34
         `/membership/${profileId}/join`,
36
         `/membership/${profileId}/join`,
35
         membership,
37
         membership,

+ 1
- 1
frontend/src/services/queue.service.js Ver fichero

22
     // targetId - the id of the profile viewed by the profileId
22
     // targetId - the id of the profile viewed by the profileId
23
     // reinsert - if profileId accepted targetId, FALSE reinsert so no reinsert; if profileId passed targetId, TRUE reinsert so reinsert at end
23
     // reinsert - if profileId accepted targetId, FALSE reinsert so no reinsert; if profileId passed targetId, TRUE reinsert so reinsert at end
24
     //
24
     //
25
-    const updateQueue = db.patch(
25
+    const updateQueue = await db.patch(
26
         `/profile/${profileId}/queue/${targetId}/delete?include_profile=true&reinsert=${reinsert}`,
26
         `/profile/${profileId}/queue/${targetId}/delete?include_profile=true&reinsert=${reinsert}`,
27
         // HELP: responseScheme says the structure should be array of either:
27
         // HELP: responseScheme says the structure should be array of either:
28
         // 1) NUMBER
28
         // 1) NUMBER

+ 1
- 1
frontend/src/services/survey.service.js Ver fichero

71
 }
71
 }
72
 
72
 
73
 const scoreSurveyByProfileId = async (profileId, maxDistance) => {
73
 const scoreSurveyByProfileId = async (profileId, maxDistance) => {
74
-    const scoreSurvey = db.get(`/profile/${profileId}/score?max_distance=${maxDistance}`)
74
+    const scoreSurvey = await db.get(`/profile/${profileId}/score?max_distance=${maxDistance}`)
75
     return scoreSurvey
75
     return scoreSurvey
76
 }
76
 }
77
 
77
 

+ 8
- 6
frontend/src/views/Matches.vue Ver fichero

1
 <template lang="pug">
1
 <template lang="pug">
2
-article.match
3
-    h1 Match Page
2
+sidebar
3
+main.f-col.start.w-full
4
+    article.match
5
+        h1 Match Page
6
+    mainNav
4
 </template>
7
 </template>
5
 
8
 
6
 <script>
9
 <script>
7
 import { defineComponent } from 'vue'
10
 import { defineComponent } from 'vue'
11
+import sidebar from '../components/Sidebar.vue'
12
+import mainNav from '../components/MainNav.vue'
8
 
13
 
9
 // import icon from '@/components/icon.vue'
14
 // import icon from '@/components/icon.vue'
10
 // import card from '@/components/card.vue'
15
 // import card from '@/components/card.vue'
11
 
16
 
12
 export default defineComponent({
17
 export default defineComponent({
13
-    components: {
14
-        // card,
15
-        // icon,
16
-    },
18
+    components: { sidebar, mainNav },
17
 })
19
 })
18
 </script>
20
 </script>
19
 
21
 

+ 21
- 6
frontend/src/views/home.vue Ver fichero

1
 <template lang="pug">
1
 <template lang="pug">
2
-sidebar
2
+sidebar(@updatePid="setPid")
3
 main.f-col.start.w-full
3
 main.f-col.start.w-full
4
-    article#home
4
+    article#home(v-if='!loading')
5
         h1(v-if='user') {{ user.user_name }}
5
         h1(v-if='user') {{ user.user_name }}
6
-        profile-card-list(:profiles='swipables' :uid='mypid')
6
+        profile-card-list(:profiles='swipables' :pid='parseInt(mypid)' @reloadQueue='getQueue')
7
+    p(v-else) Loading...
7
     main-nav
8
     main-nav
8
 </template>
9
 </template>
9
 
10
 
26
         swipables: [],
27
         swipables: [],
27
         user: null,
28
         user: null,
28
         mypid: null,
29
         mypid: null,
30
+        loading: true
29
     }),
31
     }),
30
     mounted() {
32
     mounted() {
31
         this.setupChatter()
33
         this.setupChatter()
52
             c.setup(testAccountUUID)
54
             c.setup(testAccountUUID)
53
             console.log('---')
55
             console.log('---')
54
         },
56
         },
57
+        setPid(pid) {
58
+            this.mypid = pid
59
+            this.getQueue()
60
+        },
61
+        async getQueue() {
62
+            this.loading = true
63
+            const queueList = await fetchQueueByProfileId(this.mypid)
64
+            this.processQueue(queueList)
65
+            this.loading = false
66
+        },
55
         processQueue(queueList) {
67
         processQueue(queueList) {
56
             const formattedList = []
68
             const formattedList = []
57
             queueList.forEach(profile => {
69
             queueList.forEach(profile => {
58
                 const formatted = {
70
                 const formatted = {
59
-                        uid: profile.profile_id,
71
+                        pid: profile.profile_id,
60
                         name: profile.user_name,
72
                         name: profile.user_name,
61
                         avatar: profile.user_media,
73
                         avatar: profile.user_media,
62
                     }
74
                     }
86
             parsed.profiles.forEach(p => {
98
             parsed.profiles.forEach(p => {
87
                 // console.log(parsed)
99
                 // console.log(parsed)
88
                 const user = findUser(p)
100
                 const user = findUser(p)
89
-                p.uid = p.profile_id
101
+                p.pid = p.profile_id
90
                 p.name = user.user_name
102
                 p.name = user.user_name
91
                 p.email = user.user_email
103
                 p.email = user.user_email
92
                 p.avatar = p.user_media[0]
104
                 p.avatar = p.user_media[0]
100
                 })
112
                 })
101
                 this.swipables.push(p)
113
                 this.swipables.push(p)
102
             })
114
             })
103
-            console.log('swipables', this.swipables)
104
         },
115
         },
105
     },
116
     },
106
 }
117
 }
114
         height: 100%
125
         height: 100%
115
         width: 100%
126
         width: 100%
116
         flex-direction: column
127
         flex-direction: column
128
+
129
+    input, button
130
+        position: relative
131
+        z-index: 1000
117
 </style>
132
 </style>

Loading…
Cancelar
Guardar