added boskrypt key add

master
cheetah 2 years ago
parent 26becf3407
commit dd1982551f

@ -253,10 +253,14 @@
</v-tab-item>
<v-tab-item key="boskrypt">
<v-container>
<v-row>
<v-btn color="green" fab dark small icon @click="addBOSKrypt()">
<v-icon>mdi-plus</v-icon>
</v-btn>
</v-row>
<v-row v-for="(boskryptKey, index) in configData.boskrypt.keys" :key="index">
<v-col cols="6" sm="4" md="4">
<v-text-field v-model="boskryptKey.identifier" label="Identifier">
</v-text-field>
<v-text-field v-model="boskryptKey.identifier" label="Identifier"></v-text-field>
</v-col>
<v-col cols="8" sm="8" md="8">
<v-text-field v-model="boskryptKey.value" label="Key">
@ -305,10 +309,10 @@
{ k: 'e*Cityruf inetgw', v: 'ecityruf' },
{ k: 'e*Cityruf Puppeteer', v: 'em-p-cityruf' },
{ k: 'e*Cityruf alertManager', v: 'em-a-cityruf' },
{ k: 'e*Cityruf alarmManager', v: 'em-a-cityruf' },
{ k: 'e*2wayS Puppeteer', v: 'em-p-twoways' },
{ k: 'e*2wayS alertManager', v: 'em-a-twoways' },
{ k: 'e*2wayS alarmManager', v: 'em-a-twoways' },
{ k: 'LoRaWAN TTNv3', v: 'lorawan' },
],
@ -387,6 +391,12 @@
addDeliveryTarget(index) {
this.configData.deliveryPresets[index].params.routing.connectors.push(["dummy", "12345"])
},
addBOSKrypt() {
this.configData.boskrypt.keys.push({
identifier: 'identifier',
value: ''
})
},
addProfile() {
this.configData.deliveryPresets = Object.assign({}, this.configData.deliveryPresets, {
[new Date().valueOf().toString(16)]: {

Loading…
Cancel
Save