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:
46
tools/ota_analysis/src/components/BaseFile.vue
Normal file
46
tools/ota_analysis/src/components/BaseFile.vue
Normal file
@@ -0,0 +1,46 @@
|
||||
<template>
|
||||
<label class="file-select">
|
||||
<div class="select-button">
|
||||
<span v-if="label">{{ label }}</span>
|
||||
<span v-else>Select File</span>
|
||||
</div>
|
||||
<input
|
||||
type="file"
|
||||
@change="handleFileChange"
|
||||
>
|
||||
</label>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
label: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleFileChange(e) {
|
||||
this.$emit('file-select', e.target.files)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.file-select > .select-button {
|
||||
padding: 1rem;
|
||||
|
||||
color: white;
|
||||
background-color: #2EA169;
|
||||
|
||||
border-radius: .3rem;
|
||||
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.file-select > input[type="file"] {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user