Skip to content

Commit f21e56a

Browse files
Fix bugs
1 parent 0075115 commit f21e56a

File tree

3 files changed

+25
-7
lines changed

3 files changed

+25
-7
lines changed

src/components/DecisionOutput.vue

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,38 @@
11
<script setup lang="ts">
2+
import { defineProps } from 'vue'
23
import { type Result } from '../types/Result'
34
45
const props = defineProps({
5-
result: Result
6+
result: {
7+
type: Object as () => Result,
8+
required: true
9+
}
610
})
711
</script>
812

913
<template>
10-
<pre>
14+
<div>
1115
User
12-
{{ result.userId }} saw variation
13-
{{ result.variation }} and got products sorted by
14-
{{ result.sortMethod }}
15-
</pre>
16+
<b class="userId">{{ result.userId }}</b> saw variation
17+
<b class="variation">{{ result.variation }}</b> and got products sorted by
18+
<b class="sortMethod">{{ result.sortMethod }}</b>
19+
</div>
1620
</template>
1721

1822
<style scoped>
19-
pre {
23+
div {
2024
margin: 0px;
2125
}
26+
b {
27+
font-weight: bold;
28+
}
29+
.userId {
30+
color: #ff0000;
31+
}
32+
.variation {
33+
color: #0000ff;
34+
}
35+
.sortMethod {
36+
color: #00ff00;
37+
}
2238
</style>
File renamed without changes.

src/views/RunView.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ for (let i = 0; i < 10; i++) {
6666
display: flex;
6767
flex-direction: column;
6868
align-items: center;
69+
justify-content: center;
70+
font-family: monospace;
6971
}
7072
}
7173
</style>

0 commit comments

Comments
 (0)