some css and text tuning, cleanup old modes

This commit is contained in:
andreas 2023-10-01 12:58:45 +02:00
parent 9848929396
commit 1d7f62f637
4 changed files with 8 additions and 12 deletions

View File

@ -20,13 +20,13 @@ types:
- &m5groovei2c - &m5groovei2c
type: multi type: multi
key: m5groovei2c key: m5groovei2c
label: "M5 I2C groove units" label: "M5 I2C Groove Units"
values: values:
- &m5groovecan - &m5groovecan
type: select type: select
key: m5groovecan key: m5groovecan
target: define target: define
label: "M5 CAN Units" label: "M5 Groove CAN Units"
values: values:
- label: "CAN Unit" - label: "CAN Unit"
url: "http://docs.m5stack.com/en/unit/can" url: "http://docs.m5stack.com/en/unit/can"
@ -34,7 +34,7 @@ types:
value: M5_CANUNIT value: M5_CANUNIT
- &m5grooveserial - &m5grooveserial
type: select type: select
label: "M5 Serial Unit" label: "M5 Groove Serial Unit"
target: define target: define
key: m5grooveserial key: m5grooveserial
values: values:

View File

@ -127,4 +127,7 @@
height: 0; height: 0;
/* display: flex; */ /* display: flex; */
overflow: hidden; overflow: hidden;
}
.configui .label {
width: 10em;
} }

View File

@ -19,12 +19,11 @@
</div> </div>
<div class="row"> <div class="row">
<span class="label">Board type</span> <span class="label">Board type</span>
<select id="environment" value="m5stack-atom-generic"> <input type="text" id="environment" disabled/>
</select>
</div> </div>
<div class="row"> <div class="row">
<span class="label">Build Flags</span> <span class="label">Build Flags</span>
<input type="text" id="buildflags" value=""> <input type="text" id="buildflags" disabled>
</div> </div>
<div class="row"> <div class="row">
<button id="start">Start</button> <button id="start">Start</button>

View File

@ -156,11 +156,6 @@ import fileDownload from "https://cdn.skypack.dev/js-file-download@0.4.12"
uploadConfig: uploadConfig, uploadConfig: uploadConfig,
downloadConfig: downloadConfig downloadConfig: downloadConfig
}; };
const environments=[
'm5stack-atom-generic',
'm5stack-atoms3-generic',
'nodemcu-generic'
];
const loadConfig=async (url)=>{ const loadConfig=async (url)=>{
let config=await fetch(url).then((r)=>r.text()); let config=await fetch(url).then((r)=>r.text());
let parsed=yamlLoad(config); let parsed=yamlLoad(config);
@ -289,7 +284,6 @@ import fileDownload from "https://cdn.skypack.dev/js-file-download@0.4.12"
setButtons(btConfig); setButtons(btConfig);
forEachEl('#environment',(el)=>el.addEventListener('change',hideResults)); forEachEl('#environment',(el)=>el.addEventListener('change',hideResults));
forEachEl('#buildflags',(el)=>el.addEventListener('change',hideResults)); forEachEl('#buildflags',(el)=>el.addEventListener('change',hideResults));
fillSelect('environment',environments);
currentPipeline=window.localStorage.getItem(CURRENT_PIPELINE); currentPipeline=window.localStorage.getItem(CURRENT_PIPELINE);
if (currentPipeline){ if (currentPipeline){
setValue('pipeline',currentPipeline); setValue('pipeline',currentPipeline);