瀏覽代碼

:wastebasket: reverted frontend changes

tags/0.0.3^2
juancarbajal98 3 年之前
父節點
當前提交
b82d195142
共有 2 個檔案被更改,包括 3 行新增21 行删除
  1. 1
    17
      frontend/src/entities/card/card.js
  2. 2
    4
      frontend/src/views/ProfileView.vue

+ 1
- 17
frontend/src/entities/card/card.js 查看文件

150
     }
150
     }
151
     return c
151
     return c
152
 }
152
 }
153
-
154
-const makePlaceholderCard = () => {
155
-    const c = new Card({
156
-        pid: 0,
157
-        name: 'test name',
158
-        email: 'test@email.com',
159
-        role: 'participant'
160
-    })
161
-
162
-    c.presence = 'remote'
163
-    c.urgency = 'actively_looking'
164
-    c.pronouns = 'he/him'
165
-    c.ethnicity = ''
166
-    c.locale = 'Los Angeles, CA'
167
-    c.email = 'test@email.com'
168
-}
169
-export { Card, makeCardFromProfile, makePlaceholderCard, cardAspects }
153
+export { Card, makeCardFromProfile, cardAspects }

+ 2
- 4
frontend/src/views/ProfileView.vue 查看文件

5
         ProfileCard(
5
         ProfileCard(
6
             :aspects='card.aspects'
6
             :aspects='card.aspects'
7
             :is-list='false'
7
             :is-list='false'
8
-            :card='placeholderCard'
8
+            :card='card'
9
         )
9
         )
10
     w-spinner(v-else bounce)
10
     w-spinner(v-else bounce)
11
 
11
 
15
 <script>
15
 <script>
16
 import ProfileCard from '../components/ProfileCard.vue'
16
 import ProfileCard from '../components/ProfileCard.vue'
17
 import { fetchProfileByProfileId } from '../services'
17
 import { fetchProfileByProfileId } from '../services'
18
-import { makeCardFromProfile, makePlaceholderCard } from '../entities'
18
+import { makeCardFromProfile } from '../entities'
19
 
19
 
20
 export default {
20
 export default {
21
     name: 'ProfileView',
21
     name: 'ProfileView',
24
         loading: true,
24
         loading: true,
25
         profile: {},
25
         profile: {},
26
         card: {},
26
         card: {},
27
-        placeholderCard: {},
28
     }),
27
     }),
29
     created() {
28
     created() {
30
         this.getProfile()
29
         this.getProfile()
40
                 console.error(err)
39
                 console.error(err)
41
             }
40
             }
42
             this.card = makeCardFromProfile(this.profile)
41
             this.card = makeCardFromProfile(this.profile)
43
-            this.placeholderCard = makePlaceholderCard()
44
             this.loading = false
42
             this.loading = false
45
         },
43
         },
46
     },
44
     },

Loading…
取消
儲存