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
 section.pairs-list
2
 section.pairs-list
3
     article(v-if='pairs.length')
3
     article(v-if='pairs.length')
4
         template(v-for='pair in pairs')
4
         template(v-for='pair in pairs')
5
-            w-flex().align-center.flex-start
5
+            w-flex.align-center.flex-start
6
                 router-link.pair.w-flex.align-center.flex-start(
6
                 router-link.pair.w-flex.align-center.flex-start(
7
-    :to='`/profile/${pair.profile.pid}`')
7
+                    :to='`/profile/${pair.profile.pid}`'
8
+                )
8
                     .dot--icon
9
                     .dot--icon
9
                     .avatar
10
                     .avatar
10
                     .idCard
11
                     .idCard
11
                         h3 {{ pair.profile.name }} {{ pair.profile.pid }}
12
                         h3 {{ pair.profile.name }} {{ pair.profile.pid }}
12
                         p registered nurse
13
                         p registered nurse
13
 
14
 
14
-                w-menu( left v-model='showMenu')
15
+                w-menu(left v-model='showMenu')
15
                     template(#activator)
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
     p(v-else) No {{ tabName }} profiles.
41
     p(v-else) No {{ tabName }} profiles.
25
 </template>
42
 </template>

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

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

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

2
 main.view--chat
2
 main.view--chat
3
     header.mb6(v-if='profile && grouping')
3
     header.mb6(v-if='profile && grouping')
4
         h3 chatting with:
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
         span(v-else)
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
         h3 logged in as:
12
         h3 logged in as:
13
         p {{ profile.id }} | {{ profile._profile.user_name }} | {{ profile._profile.user_email }}
13
         p {{ profile.id }} | {{ profile._profile.user_name }} | {{ profile._profile.user_email }}
14
         //- p subscriptions: {{ profile.chatter.subscriptions }}
14
         //- p subscriptions: {{ profile.chatter.subscriptions }}
20
                 button(@click='reveal(8)') reveal my email
20
                 button(@click='reveal(8)') reveal my email
21
                 // TODO: Remove later, only for testing
21
                 // TODO: Remove later, only for testing
22
                 button(@click='checkData()') check data
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
                 p you revealed:
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
                     li {{ reveal.description }}
28
                     li {{ reveal.description }}
27
-            span(v-if="grouping.revealed[target.profile_id]")
29
+            span(v-if='grouping.revealed[target.profile_id]')
28
                 p they revealed:
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
                     li {{ reveal.description }}: {{ target[reveal.description] }}
32
                     li {{ reveal.description }}: {{ target[reveal.description] }}
31
-            span(v-if="grouping.revealedFromNotification.length")
33
+            span(v-if='grouping.revealedFromNotification.length')
32
                 p recently revealed:
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
     article
40
     article
37
         template(v-if='isLoading')
41
         template(v-if='isLoading')

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

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

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

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

Carregando…
Cancelar
Salvar