Ver código fonte

:recycle: a little prettier

tags/0.0.3^2
j 2 anos atrás
pai
commit
b947953f14

+ 27
- 10
frontend/src/components/PairsList.vue Ver arquivo

@@ -2,24 +2,41 @@
2 2
 section.pairs-list
3 3
     article(v-if='pairs.length')
4 4
         template(v-for='pair in pairs')
5
-            w-flex().align-center.flex-start
5
+            w-flex.align-center.flex-start
6 6
                 router-link.pair.w-flex.align-center.flex-start(
7
-    :to='`/profile/${pair.profile.pid}`')
7
+                    :to='`/profile/${pair.profile.pid}`'
8
+                )
8 9
                     .dot--icon
9 10
                     .avatar
10 11
                     .idCard
11 12
                         h3 {{ pair.profile.name }} {{ pair.profile.pid }}
12 13
                         p registered nurse
13 14
 
14
-                w-menu( left v-model='showMenu')
15
+                w-menu(left v-model='showMenu')
15 16
                     template(#activator)
16
-                        w-button.mr3(@click='showMenu = !showMenu' icon="icon-dots-three-horizontal")
17
-                    w-flex()
18
-                        router-link(
19
-                            :to='`/chat/${pair.profile.pid}`')
20
-                            w-button.mx2(@click='showMenu = false' bg-color="success" tile icon="icon-chat") Chat
21
-                        w-button.mx2.icon-calendar(@click='showMenu = false' bg-color="info" tile icon="icon-calendar") Calendar
22
-                        w-button.mx2(@click='showMenu = false' bg-color="primary" icon="icon-cross")
17
+                        w-button.mr3(
18
+                            @click='showMenu = !showMenu'
19
+                            icon='icon-dots-three-horizontal'
20
+                        )
21
+                    w-flex
22
+                        router-link(:to='`/chat/${pair.profile.pid}`')
23
+                            w-button.mx2(
24
+                                @click='showMenu = false'
25
+                                bg-color='success'
26
+                                icon='icon-chat'
27
+                                tile
28
+                            ) Chat
29
+                        w-button.mx2.icon-calendar(
30
+                            @click='showMenu = false'
31
+                            bg-color='info'
32
+                            icon='icon-calendar'
33
+                            tile
34
+                        ) Calendar
35
+                        w-button.mx2(
36
+                            @click='showMenu = false'
37
+                            bg-color='primary'
38
+                            icon='icon-cross'
39
+                        )
23 40
 
24 41
     p(v-else) No {{ tabName }} profiles.
25 42
 </template>

+ 5
- 4
frontend/src/components/onboarding/FormDropdown.vue Ver arquivo

@@ -1,10 +1,10 @@
1 1
 <template lang="pug">
2 2
 .role
3
-    span(style='text-align:center;') {{ parsedPrompt.start }}
4
-    span(style='text-align:center;') {{ parsedPrompt.mid }}
3
+    span(style='text-align: center') {{ parsedPrompt.start }}
4
+    span(style='text-align: center') {{ parsedPrompt.mid }}
5 5
     w-select.mt4(:items='items' placeholder='i am' v-model='selection')
6 6
     br
7
-    p(style='text-align:center;') {{ parsedPrompt.end }}
7
+    p(style='text-align: center') {{ parsedPrompt.end }}
8 8
     w-button.ma1.grow(@click='handleSubmit') NEXT
9 9
 </template>
10 10
 
@@ -28,7 +28,8 @@ export default {
28 28
         },
29 29
     },
30 30
     created() {
31
-        const parsedPromptArr = this.question.response_key_prompt.split('[break]')
31
+        const parsedPromptArr =
32
+            this.question.response_key_prompt.split('[break]')
32 33
         this.parsedPrompt.start = parsedPromptArr[0]
33 34
         this.parsedPrompt.mid = parsedPromptArr[1]
34 35
         this.parsedPrompt.end = parsedPromptArr[2]

+ 17
- 13
frontend/src/views/ChatView.vue Ver arquivo

@@ -2,13 +2,13 @@
2 2
 main.view--chat
3 3
     header.mb6(v-if='profile && grouping')
4 4
         h3 chatting with:
5
-        span {{ target.profile_id }} | 
6
-        span(v-if="grouping.revealedFromNotification.length")
7
-            span(v-for="revealed in grouping.revealedFromNotification")
8
-                span(v-if="revealed.profile_id === target.profile_id")
9
-                    span {{ revealed[revealed.tag_description] }} | 
5
+        span {{ target.profile_id }} |
6
+        span(v-if='grouping.revealedFromNotification.length')
7
+            span(v-for='revealed in grouping.revealedFromNotification')
8
+                span(v-if='revealed.profile_id === target.profile_id')
9
+                    span {{ revealed[revealed.tag_description] }} |
10 10
         span(v-else)
11
-            span  {{ grouping.profile.user_name }} | {{ grouping.profile.user_email }}
11
+            span {{ grouping.profile.user_name }} | {{ grouping.profile.user_email }}
12 12
         h3 logged in as:
13 13
         p {{ profile.id }} | {{ profile._profile.user_name }} | {{ profile._profile.user_email }}
14 14
         //- p subscriptions: {{ profile.chatter.subscriptions }}
@@ -20,18 +20,22 @@ main.view--chat
20 20
                 button(@click='reveal(8)') reveal my email
21 21
                 // TODO: Remove later, only for testing
22 22
                 button(@click='checkData()') check data
23
-            span(v-if="grouping.revealed[profile.id.value]")
23
+            span(v-if='grouping.revealed[profile.id.value]')
24 24
                 p you revealed:
25
-                ul(v-for="reveal in [...new Set(grouping.revealed[profile.id.value])]")
25
+                ul(
26
+                    v-for='reveal in [...new Set(grouping.revealed[profile.id.value])]'
27
+                )
26 28
                     li {{ reveal.description }}
27
-            span(v-if="grouping.revealed[target.profile_id]")
29
+            span(v-if='grouping.revealed[target.profile_id]')
28 30
                 p they revealed:
29
-                ul(v-for="reveal in grouping.revealed[target.profile_id]")
31
+                ul(v-for='reveal in grouping.revealed[target.profile_id]')
30 32
                     li {{ reveal.description }}: {{ target[reveal.description] }}
31
-            span(v-if="grouping.revealedFromNotification.length")
33
+            span(v-if='grouping.revealedFromNotification.length')
32 34
                 p recently revealed:
33
-                ul(v-for="revealed in grouping.revealedFromNotification")
34
-                    li(v-if="revealed[revealed.tag_description] !== profile._profile[revealed.tag_description]") {{ revealed.tag_description }}: {{ revealed[revealed.tag_description] }}
35
+                ul(v-for='revealed in grouping.revealedFromNotification')
36
+                    li(
37
+                        v-if='revealed[revealed.tag_description] !== profile._profile[revealed.tag_description]'
38
+                    ) {{ revealed.tag_description }}: {{ revealed[revealed.tag_description] }}
35 39
 
36 40
     article
37 41
         template(v-if='isLoading')

+ 3
- 3
frontend/src/views/OnboardingView.vue Ver arquivo

@@ -9,17 +9,17 @@ main.view--onboarding
9 9
         br
10 10
         .step(v-for='(step, i) in survey.steps')
11 11
             component(
12
+                :answered='answered'
13
+                :currentStep='currentStep'
12 14
                 :is='step.component'
13 15
                 :question='step'
14
-                :answered='answered'
15 16
                 :responses='responses'
16 17
                 :survey='survey'
17
-                :currentStep='currentStep'
18 18
                 :surveyStepsCount='survey.steps.length'
19 19
                 @handle-submit='onSubmit'
20 20
                 @update-answers='updateAnswers'
21 21
                 v-if='step && currentStep == i'
22
-            ) 
22
+            )
23 23
         .invalidResponseMessage(
24 24
             style='text-align: center'
25 25
             v-if='invalidResponse'

+ 1
- 1
frontend/src/views/PairsView.vue Ver arquivo

@@ -10,7 +10,7 @@ main.view--pairs
10 10
                 //- pending tab
11 11
                 template(#item-content.1='{ item }')
12 12
                     PairsList(:pairs='pending' tab-name='pending')
13
-                //- paired tab 
13
+                //- paired tab
14 14
                 template(#item-content.2='{ item }')
15 15
                     PairsList(:pairs='paired' tab-name='paired')
16 16
 

Carregando…
Cancelar
Salvar