Seperate the ota_analysis from OTAgui.
The default entry point is /analyseOTA in production enviroment. This is for the deployment on android.github.io/. Test: Mannual tested. Change-Id: Ic77277024b34b67b9964be8cf4f1592cebf5c5e8
This commit is contained in:
60
tools/ota_analysis/src/components/PartitionDetail.vue
Normal file
60
tools/ota_analysis/src/components/PartitionDetail.vue
Normal file
@@ -0,0 +1,60 @@
|
||||
<template>
|
||||
<p
|
||||
class="toggle"
|
||||
@click="toggle()"
|
||||
>
|
||||
Total Operations: {{ partition.operations.length }}
|
||||
<ul
|
||||
v-if="showOPs"
|
||||
>
|
||||
<li
|
||||
v-for="operation in partition.operations"
|
||||
:key="operation.dataSha256Hash"
|
||||
>
|
||||
<OperationDetail
|
||||
:operation="operation"
|
||||
:mapType="opType.mapType"
|
||||
/>
|
||||
</li>
|
||||
</ul>
|
||||
</p>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { OpType } from '@/services/payload.js'
|
||||
import OperationDetail from '@/components/OperationDetail.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
OperationDetail,
|
||||
},
|
||||
props: {
|
||||
partition: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
showOPs: false,
|
||||
opType: null,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.opType = new OpType()
|
||||
},
|
||||
methods: {
|
||||
toggle() {
|
||||
this.showOPs = !this.showOPs
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.toggle {
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
color: #00c255;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user