@@ -3,97 +3,93 @@ aside: true
33---
44
55<script setup >
6+ import spec from ' ../../public/device-specs/pro/v2.yaml?raw'
67import loadSpec from ' ../../utils/loadSpec'
7- import { ref , onMounted } from ' vue'
88
9- const specs = ref (null )
10-
11- onMounted (async () => {
12- const res = await fetch (' /device-specs/pro/v2.yaml' )
13- const yamlText = await res .text ()
14- specs .value = loadSpec (yamlText).value
15- })
9+ const specs = loadSpec (spec)
1610</script >
1711
1812# Pro (PR2)
1913
20- <DownloadSpecButton v-if = " specs " :spec =" specs " deviceTitle =" Pro (PR2) " />
14+ <DownloadSpecButton :spec =" specs " deviceTitle =" Pro (PR2) " />
2115
2216## Images
2317
24- <DeviceSpecImages v-if = " specs " :spec =" specs " />
18+ <DeviceSpecImages :spec =" specs " />
2519
2620## Overview
2721
28- <DeviceSpecOverview v-if = " specs " :spec =" specs " />
22+ <DeviceSpecOverview :spec =" specs " />
2923
30- <template v-if =" specs && specs .physical " >
24+ <template v-if =" specs.product .physical " >
3125
3226## Physical
3327
34- <DeviceSpecSection v-if = " specs " :spec =" specs " sectionName =" physical " />
28+ <DeviceSpecSection :spec =" specs " sectionName =" physical " />
3529
3630</template >
3731
38- <template v-if =" specs && specs .integrations " >
32+ <template v-if =" specs.product .integrations " >
3933
4034## Integrations
4135
42- <DeviceSpecSection v-if = " specs " :spec =" specs " sectionName =" integrations " />
36+ <DeviceSpecSection :spec =" specs " sectionName =" integrations " />
4337
4438</template >
4539
46- <template v-if =" specs && specs ['user interface'] " >
40+ <template v-if =" specs.product ['user interface'] " >
4741
4842## User Interface
4943
50- <DeviceSpecSection v-if = " specs " :spec =" specs " sectionName =" user interface " />
44+ <DeviceSpecSection :spec =" specs " sectionName =" user interface " />
5145
5246</template >
5347
54- <template v-if =" specs && specs .connectivity " >
48+ <template v-if =" specs.product .connectivity " >
5549
5650## Connectivity
5751
58- <DeviceSpecSection v-if = " specs " :spec =" specs " sectionName =" connectivity " />
52+ <DeviceSpecSection :spec =" specs " sectionName =" connectivity " />
5953
6054</template >
6155
62- <template v-if =" specs && specs .positioning " >
56+ <template v-if =" specs.product .positioning " >
6357
6458## Positioning
6559
66- <DeviceSpecSection v-if = " specs " :spec =" specs " sectionName =" positioning " />
60+ <DeviceSpecSection :spec =" specs " sectionName =" positioning " />
6761
6862</template >
6963
70- <template v-if =" specs && specs .sensors " >
64+ <template v-if =" specs.product .sensors " >
7165
7266## Sensors
7367
74- <DeviceSpecSection v-if = " specs " :spec =" specs " sectionName =" sensors " />
68+ <DeviceSpecSection :spec =" specs " sectionName =" sensors " />
7569
7670</template >
7771
78- <template v-if =" specs && specs .battery " >
72+ <template v-if =" specs.product .battery " >
7973
8074## Battery
8175
82- <DeviceSpecSection v-if = " specs " :spec =" specs " sectionName =" battery " />
76+ <DeviceSpecSection :spec =" specs " sectionName =" battery " />
8377
8478</template >
8579
86- <template v-if =" specs && specs .charging " >
80+ <template v-if =" specs.product .charging " >
8781
8882## Charging
8983
90- <DeviceSpecSection v-if = " specs " :spec =" specs " sectionName =" charging " />
84+ <DeviceSpecSection :spec =" specs " sectionName =" charging " />
9185
9286</template >
9387
94- <template v-if =" specs && specs.components " >
88+ <template v-if =" specs.product.components " >
89+
90+ ## Components
9591
96- <DeviceSpecSection v-if = " specs " :spec =" specs " sectionName =" components " />
92+ <DeviceSpecSection :spec =" specs " sectionName =" components " />
9793
9894</template >
9995
0 commit comments