ota card style moved to the component

This commit is contained in:
Bogdan Pilyugin 2023-08-21 13:12:43 +02:00
parent 9391785df3
commit b2e31c158d
3 changed files with 51 additions and 0 deletions

View File

@ -22,6 +22,24 @@
</q-card>
</template>
<style>
.clerr .clwarn .clok {
font-weight: bold;
}
.clerr {
color: #b00000;
}
.clwarn {
color: #b0b000;
}
.clok {
color: #00b000;
}
</style>
<script setup>
import { reactive } from "vue";
import { PostData } from "components/webguicomp/network"

32
comp.css Normal file
View File

@ -0,0 +1,32 @@
.body {
background: #e0e0e0;
}
.card {
border-radius: 10px;
font-family: monospace;
font-size: medium;
break-inside: avoid;
margin: 0 0 10px 10px;
}
.cardholder {
column-count: 1;
column-gap: 0;
padding: 10px 10px 10px 0;
}
@media (min-width: 1024px) {
.cardholder {
column-count: 2;
}
}
@media (min-width: 1400px) {
.cardholder {
column-count: 3;
}
}
.clerr .clwarn .clok {font-weight:bold;}
.clerr {color:#b00000;}
.clwarn {color:#b0b000;}
.clok {color:#00b000;}

View File

@ -18,6 +18,7 @@ function PostData(varlist, messtype, applytype, onfinished) {
pld.data = data;
pld.signature = sha256.hmac(SHA256_HMAC_KEY, JSON.stringify(data));
api
.post(API_URL, JSON.stringify(pld), {
headers: { "Content-Type": "application/json" },