Bladeren bron

:recycle: updated a parser flag eslint | conditional layout for card if paired flag is set true

tags/0.0.1^2
J 3 jaren geleden
bovenliggende
commit
eebdd5d486
3 gewijzigde bestanden met toevoegingen van 11 en 7 verwijderingen
  1. 1
    0
      frontend/.eslintrc
  2. 8
    5
      frontend/src/components/ProfileCard.vue
  3. 2
    2
      frontend/src/components/SummaryBar.vue

+ 1
- 0
frontend/.eslintrc Bestand weergeven

@@ -8,5 +8,6 @@
8 8
         "prettier"
9 9
     ],
10 10
     "parser": "vue-eslint-parser",
11
+    "parserOptions": { "ecmaVersion": 2020 },
11 12
     "rules": {}
12 13
 }

+ 8
- 5
frontend/src/components/ProfileCard.vue Bestand weergeven

@@ -1,14 +1,16 @@
1 1
 <template lang="pug">
2 2
 w-card.profile-card-list--card.xs12.pa12
3 3
     header.xs12.w-flex.column.center
4
+        NamePlate(:pid="card.pid" :name="card.name" :role="card.role" :is-list="isList" :is-paired="isPaired")
4 5
         h1(v-if="isPaired && !isList") some other field
5
-        NamePlate(:pid="card.pid" :name="card.name" :role="card.role" :is-list="isList")
6
+        
6 7
         template(v-if="!isList")
7
-            SummaryBar
8
-            TagList
8
+            SummaryBar(:is-paired="isPaired" :show-about="isPaired")
9
+            TagList(v-if="!isPaired || isList")
9 10
 
10 11
     article.xs12.w-flex.column.justify-space-between
11 12
         AspectBar(
13
+            v-if="!isPaired || isList"
12 14
             v-for="aspect in aspects"
13 15
             :labels="aspect.labels"
14 16
             :percentage="aspect.percentage"
@@ -18,7 +20,7 @@ w-card.profile-card-list--card.xs12.pa12
18 20
     footer(v-if="!isList")
19 21
         .pa12
20 22
             p {{ bio }}
21
-        PairingButton
23
+        PairingButton(v-if="!isPaired")
22 24
 </template>
23 25
 
24 26
 <script setup>
@@ -29,7 +31,8 @@ import SummaryBar from './SummaryBar.vue'
29 31
 import TagList from './TagList.vue'
30 32
 import PairingButton from './PairingButton.vue'
31 33
 
32
-const isPaired = ref(true1
34
+// const isPaired = ref(false)
35
+const isPaired = ref(true)
33 36
 
34 37
 const props = defineProps({
35 38
     card: {

+ 2
- 2
frontend/src/components/SummaryBar.vue Bestand weergeven

@@ -1,8 +1,8 @@
1 1
 <template lang="pug">
2 2
 section.w-flex.column.pb5
3
-    nav.xs12
3
+    nav.fill-width.w-flex.row
4
+        h1(v-if="showAbout") about
4 5
         ul.xs12.w-flex.row
5
-            li(v-if="showAbout") about
6 6
             li(v-for="[label, percentage] in summary" :key="label").w-flex.row
7 7
                 w-icon(xl).mr1 mdi mdi-heart
8 8
                 .w-flex.column.justify-start

Laden…
Annuleren
Opslaan