Procházet zdrojové kódy

broken vue/vite

tags/0.0.1
diaseu před 4 roky
rodič
revize
cd25ff0b4b

+ 1
- 2
backend/lib/routes/membership/join.js Zobrazit soubor

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

+ 1
- 1
backend/lib/routes/profile/patch-queue.js Zobrazit soubor

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

+ 1
- 9
backend/lib/routes/profile/queue.js Zobrazit soubor

52
 
52
 
53
             const queue = await matchQueueService.getQueue(profile_id)
53
             const queue = await matchQueueService.getQueue(profile_id)
54
             const queueIds = queue.map(entry => entry.target_id)
54
             const queueIds = queue.map(entry => entry.target_id)
55
-            console.log('queueIds', queueIds)
55
+            // console.log('queueIds', queueIds)
56
             const res =  {
56
             const res =  {
57
                 ok:true,
57
                 ok:true,
58
                 handler: pluginConfig.handlerType,
58
                 handler: pluginConfig.handlerType,
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 Zobrazit soubor

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 Zobrazit soubor

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 Zobrazit soubor

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

+ 0
- 2
backend/lib/services/match.js Zobrazit soubor

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 Zobrazit soubor

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
- 6
backend/lib/services/profile.js Zobrazit soubor

43
  * Grab the zip code string
43
  * Grab the zip code string
44
  */
44
  */
45
 const getZipCodeFromProfile = profile => {
45
 const getZipCodeFromProfile = profile => {
46
-    console.log('profile getZipCode', profile)
47
     // There should only be one zip code entry per profile
46
     // There should only be one zip code entry per profile
48
     let zipRes = profile.responses.filter(
47
     let zipRes = profile.responses.filter(
49
         // Whatever the zipcode questions is
48
         // Whatever the zipcode questions is
116
 
115
 
117
     async getProfilesFor(profileIdArray, type) {
116
     async getProfilesFor(profileIdArray, type) {
118
         const { Profile } = this.server.models()
117
         const { Profile } = this.server.models()
119
-
118
+        // profilesEntries is profiles in database row order 
120
         const profilesEntries = await Profile.query()
119
         const profilesEntries = await Profile.query()
121
             .whereIn('profile_id', profileIdArray)
120
             .whereIn('profile_id', profileIdArray)
122
             .withGraphFetched('responses')
121
             .withGraphFetched('responses')
123
             .withGraphFetched('user')
122
             .withGraphFetched('user')
124
 
123
 
125
-        return profilesEntries.map(profile => {
126
-            return new CompleteProfile(profile, type)
127
-        })
124
+        // taking the info from profilesEntries
125
+        // to repack into completeProfiles
126
+        // in same order as profileIdArray
127
+        const completeProfiles = []
128
+        profileIdArray.forEach(pid => {
129
+            profilesEntries.forEach(entry => {
130
+                if (entry.profile_id == pid) {
131
+                    completeProfiles.push(new CompleteProfile(entry, type))
132
+                }
133
+            })
134
+        })  
135
+        return completeProfiles
128
     }
136
     }
129
 
137
 
130
     /**
138
     /**
299
             parseInt(zipCode),
307
             parseInt(zipCode),
300
         )
308
         )
301
         if (!zipInfo) {
309
         if (!zipInfo) {
302
-            console.log('zip:', zipCode)
310
+            console.error('zip:', zipCode)
303
         }
311
         }
304
 
312
 
305
         return {
313
         return {

+ 1449
- 1533
frontend/package-lock.json
Diff nebyl zobrazen, protože je příliš veliký
Zobrazit soubor


+ 16
- 16
frontend/package.json Zobrazit soubor

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

+ 23
- 14
frontend/src/components/ProfileCardList.vue Zobrazit soubor

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
80
-    postMembershipByProfileId({ profileId, targetId })
83
+    const checkMembership = await fetchMembershipsByProfileId(profileId)
84
+    if (!checkMembership.length) {
85
+        console.log('Make membership')
86
+        postMembershipByProfileId({ profileId, targetId })
87
+    }
88
+    emit('reloadQueue')
81
 }
89
 }
82
 const hold = () => {
90
 const hold = () => {
83
     console.log('held? do we need this?')
91
     console.log('held? do we need this?')
85
 const pass = () => {
93
 const pass = () => {
86
     console.log('passed aka do reinsert')
94
     console.log('passed aka do reinsert')
87
     // 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`)
88
-    const profileId = props.uid
89
-    const targetId = props.profiles[0].uid
96
+    const profileId = props.pid
97
+    const targetId = props.profiles[0].pid
90
     updateQueueByProfileId(profileId, targetId, true)
98
     updateQueueByProfileId(profileId, targetId, true)
99
+    emit('reloadQueue')
91
 }
100
 }
92
 
101
 
93
 // from the data() section
102
 // from the data() section

+ 2
- 12
frontend/src/components/form.vue Zobrazit soubor

58
 import { validatorMapping, makeKebob } from '@/utils'
58
 import { validatorMapping, makeKebob } from '@/utils'
59
 import { defineProps, reactive, ref } from 'vue'
59
 import { defineProps, reactive, ref } from 'vue'
60
 import { saveSurveyByProfileID, scoreSurveyByProfileId } from '../services/survey.service'
60
 import { saveSurveyByProfileID, scoreSurveyByProfileId } from '../services/survey.service'
61
-import { fetchMembershipsByProfileId, postMembershipByProfileId } from '../services/grouping.service'
62
 
61
 
63
 const slidevalue = ref('0')
62
 const slidevalue = ref('0')
64
 
63
 
108
 /**
107
 /**
109
  * Save or take the-nNext step in the form
108
  * Save or take the-nNext step in the form
110
  */
109
  */
111
-const next = e => {
110
+const next = async e => {
112
     const validity = isValid(state.step - 1)
111
     const validity = isValid(state.step - 1)
113
     if (validity.error) return console.error(validity.error)
112
     if (validity.error) return console.error(validity.error)
114
     if (state.step === props.form.length) {
113
     if (state.step === props.form.length) {
129
         // 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
130
         // Necessary atm bc we manually added question in Survey class (entity)
129
         // Necessary atm bc we manually added question in Survey class (entity)
131
         const profileId = idWithResponseVal.shift().val
130
         const profileId = idWithResponseVal.shift().val
132
-        const targetId = 0
133
-        const maxDistance = 10
131
+        const maxDistance = 100
134
         saveSurveyByProfileID(idWithResponseVal, profileId)
132
         saveSurveyByProfileID(idWithResponseVal, profileId)
135
         alert('Responses submitted!')
133
         alert('Responses submitted!')
136
         resetAnswers()
134
         resetAnswers()
137
         scoreSurveyByProfileId(profileId, maxDistance)
135
         scoreSurveyByProfileId(profileId, maxDistance)
138
-
139
-        const checkMembership = fetchMembershipsByProfileId(profileId)
140
-        console.log(checkMembership)
141
-        if (!checkMembership) {
142
-            console.log('Make membership')
143
-            // postMembershipByProfileId({ profileId, targetId })
144
-        }
145
-
146
         state.step = 1
136
         state.step = 1
147
     } else if (state.step < props.form.length) {
137
     } else if (state.step < props.form.length) {
148
         state.step++
138
         state.step++

+ 1
- 1
frontend/src/services/queue.service.js Zobrazit soubor

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

+ 1
- 1
frontend/src/services/survey.service.js Zobrazit soubor

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
 

+ 22
- 14
frontend/src/views/home.vue Zobrazit soubor

1
 <template lang="pug">
1
 <template lang="pug">
2
 sidebar
2
 sidebar
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
+        input(v-model='mypid')
8
+        button(@click='getQueue') Submit
9
+    p(v-else) Loading...
7
     main-nav
10
     main-nav
8
 </template>
11
 </template>
9
 
12
 
12
 import mainNav from '../components/MainNav.vue'
15
 import mainNav from '../components/MainNav.vue'
13
 import profileCardList from '../components/ProfileCardList.vue'
16
 import profileCardList from '../components/ProfileCardList.vue'
14
 import { fetchQueueByProfileId } from '../services'
17
 import { fetchQueueByProfileId } from '../services'
15
-import { fetchMembershipsByProfileId, postMembershipByProfileId } from '../services/grouping.service'
16
 
18
 
17
 import batch_10 from '../../../backend/db/generated/_batch_10.js.ref'
19
 import batch_10 from '../../../backend/db/generated/_batch_10.js.ref'
18
 import batch_20 from '../../../backend/db/generated/_batch_20.js.ref'
20
 import batch_20 from '../../../backend/db/generated/_batch_20.js.ref'
25
         swipables: [],
27
         swipables: [],
26
         user: null,
28
         user: null,
27
         mypid: null,
29
         mypid: null,
30
+        loading: true
28
     }),
31
     }),
29
     async created() {
32
     async created() {
30
         // this.mypid = auth.currentUser?.mypid || "99999";
33
         // this.mypid = auth.currentUser?.mypid || "99999";
31
-        this.mypid = 38
34
+        this.mypid = 45
32
         // Uncomment below to use for batch file data
35
         // Uncomment below to use for batch file data
33
         // this.processProfilesFromBatch(this.parseBatch([batch_10, batch_20, batch_30]))
36
         // this.processProfilesFromBatch(this.parseBatch([batch_10, batch_20, batch_30]))
34
-
35
-        // Uncomment below to use API
36
-        const queueList = await fetchQueueByProfileId(this.mypid)
37
-        console.log('queueList', queueList)
38
-        this.processQueue(queueList)
39
-        const profileId = 38
40
-        const checkMembership = fetchMembershipsByProfileId(profileId)
41
-        console.log('checkMembership', checkMembership)
37
+        this.getQueue()
42
     },
38
     },
43
     methods: {
39
     methods: {
40
+        async getQueue() {
41
+            this.loading = true
42
+            const queueList = await fetchQueueByProfileId(this.mypid)
43
+            this.processQueue(queueList)
44
+            this.loading = false
45
+        },
44
         processQueue(queueList) {
46
         processQueue(queueList) {
45
             const formattedList = []
47
             const formattedList = []
46
             queueList.forEach(profile => {
48
             queueList.forEach(profile => {
47
                 const formatted = {
49
                 const formatted = {
48
-                        uid: profile.profile_id,
50
+                        pid: profile.profile_id,
49
                         name: profile.user_name,
51
                         name: profile.user_name,
50
                         avatar: profile.user_media,
52
                         avatar: profile.user_media,
51
                     }
53
                     }
52
                 formattedList.push(formatted)
54
                 formattedList.push(formatted)
53
             })
55
             })
56
+            console.log('formattedList', formattedList)
57
+            // formattedList.reverse()
54
             this.swipables = formattedList
58
             this.swipables = formattedList
55
         },
59
         },
56
         // For Batch Data Parsing & Processing
60
         // For Batch Data Parsing & Processing
75
             parsed.profiles.forEach(p => {
79
             parsed.profiles.forEach(p => {
76
                 // console.log(parsed)
80
                 // console.log(parsed)
77
                 const user = findUser(p)
81
                 const user = findUser(p)
78
-                p.uid = p.profile_id
82
+                p.pid = p.profile_id
79
                 p.name = user.user_name
83
                 p.name = user.user_name
80
                 p.email = user.user_email
84
                 p.email = user.user_email
81
                 p.avatar = p.user_media[0]
85
                 p.avatar = p.user_media[0]
103
         height: 100%
107
         height: 100%
104
         width: 100%
108
         width: 100%
105
         flex-direction: column
109
         flex-direction: column
110
+
111
+    input, button
112
+        position: relative
113
+        z-index: 1000
106
 </style>
114
 </style>

Načítá se…
Zrušit
Uložit