Sfoglia il codice sorgente

:recycle: rename role -> target since we do not know if its a role or job candidate | moved graph data somewhere for easier extending

tags/0.0.2
j 3 anni fa
parent
commit
832c583ea2

+ 2
- 2
frontend/src/components/ProfileCard.vue Vedi File

@@ -57,8 +57,8 @@ import TagList from './TagList.vue'
57 57
 import PairingButton from './PairingButton.vue'
58 58
 
59 59
 const router = useRouter()
60
-// const isPaired = ref(true)
61
-const isPaired = ref(false)
60
+const isPaired = ref(true)
61
+// const isPaired = ref(false)
62 62
 
63 63
 const props = defineProps({
64 64
     card: {

+ 2
- 2
frontend/src/components/SpiderChart.vue Vedi File

@@ -16,7 +16,7 @@ const props = defineProps({
16 16
         required: true,
17 17
         type: Object,
18 18
     },
19
-    roleData: {
19
+    targetData: {
20 20
         required: true,
21 21
         type: Object,
22 22
     },
@@ -39,7 +39,7 @@ const profile = {
39 39
 }
40 40
 const role = {
41 41
     label: 'Role',
42
-    data: props.roleData,
42
+    data: props.targetData,
43 43
     backgroundColor: 'rgba(3, 136, 166, 0.30)',
44 44
     borderColor: '#0388A6',
45 45
     ...chartStyleDefaults,

+ 6
- 2
frontend/src/components/SummaryBar.vue Vedi File

@@ -29,8 +29,8 @@ section.w-flex.column.pb5
29 29
                     p {{ tabContent[item].tab }}
30 30
                     SpiderChart(
31 31
                         :labels='aspects.map(label => label.name)'
32
-                        :profile-data='[5.7, 5.2, 4.8, 5.2, 4.9, 4.9]'
33
-                        :role-data='[5.3, 4.8, 5.7, 4.8, 5.6, 4.8]'
32
+                        :profile-data='profileScore'
33
+                        :target-data='targetScore'
34 34
                         profile-name='lucy'
35 35
                         v-if='isTab'
36 36
                     )
@@ -84,6 +84,10 @@ export default {
84 84
         },
85 85
     },
86 86
     emits: ['tab-change'],
87
+    data: () => ({
88
+        profileScore: [5.7, 5.2, 4.8, 5.2, 4.9, 4.9],
89
+        targetScore: [5.3, 4.8, 5.7, 4.8, 5.6, 4.8],
90
+    }),
87 91
     methods: {
88 92
         onTabChanged(tabs) {
89 93
             this.$emit('tab-change', tabs)

Loading…
Annulla
Salva