chore(core): 对一些模块执行代码格式化同时调整一些组件的样式
This commit is contained in:
@@ -61,9 +61,7 @@ class ArduinoCLI {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
async exec(name, config) {
|
async exec(name, config) {}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@@ -14,7 +14,7 @@ class Component {
|
|||||||
#$content_ = null;
|
#$content_ = null;
|
||||||
#mounted_ = false;
|
#mounted_ = false;
|
||||||
#disposed_ = false;
|
#disposed_ = false;
|
||||||
#events_ = new Events(['destroyed', 'created']);
|
#events_ = new Events(['destroyed']);
|
||||||
#id_ = IdGenerator.generate();
|
#id_ = IdGenerator.generate();
|
||||||
|
|
||||||
constructor() {}
|
constructor() {}
|
||||||
@@ -63,10 +63,10 @@ class Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dispose() {
|
dispose() {
|
||||||
this.runEvent('destroyed');
|
|
||||||
this.#$content_.remove();
|
this.#$content_.remove();
|
||||||
this.resetEvent();
|
this.resetEvent();
|
||||||
this.#disposed_ = true;
|
this.#disposed_ = true;
|
||||||
|
this.runEvent('destroyed');
|
||||||
}
|
}
|
||||||
|
|
||||||
bind(type, func) {
|
bind(type, func) {
|
||||||
|
|||||||
@@ -41,6 +41,8 @@ class EditorBase extends PageBase {
|
|||||||
undo() {}
|
undo() {}
|
||||||
|
|
||||||
redo() {}
|
redo() {}
|
||||||
|
|
||||||
|
empty() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
Mixly.EditorBase = EditorBase;
|
Mixly.EditorBase = EditorBase;
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class FSBoard {
|
|||||||
|
|
||||||
constructor() {}
|
constructor() {}
|
||||||
|
|
||||||
#addParms_(usrFolder, fsType) {
|
#addParams_(usrFolder, fsType) {
|
||||||
this.#handler_.updateConfig({
|
this.#handler_.updateConfig({
|
||||||
port: Serial.getSelectedPortName()
|
port: Serial.getSelectedPortName()
|
||||||
});
|
});
|
||||||
@@ -25,12 +25,12 @@ class FSBoard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async download(usrFolder, fsType) {
|
async download(usrFolder, fsType) {
|
||||||
this.#addParms_(usrFolder, fsType);
|
this.#addParams_(usrFolder, fsType);
|
||||||
this.#handler_.onBeforeDownload();
|
this.#handler_.onBeforeDownload();
|
||||||
}
|
}
|
||||||
|
|
||||||
async upload(usrFolder, fsType) {
|
async upload(usrFolder, fsType) {
|
||||||
this.#addParms_(usrFolder, fsType);
|
this.#addParams_(usrFolder, fsType);
|
||||||
this.#handler_.onBeforeUpload();
|
this.#handler_.onBeforeUpload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class PageBase extends Component {
|
|||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
this.addEventsType(['addDirty', 'removeDirty', 'active']);
|
this.addEventsType(['created', 'addDirty', 'removeDirty', 'active']);
|
||||||
}
|
}
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ class FSBoardExt extends FSBoard {
|
|||||||
return Mustache.render(template, {
|
return Mustache.render(template, {
|
||||||
...config,
|
...config,
|
||||||
python3: `"${Env.python3Path}"`,
|
python3: `"${Env.python3Path}"`,
|
||||||
esptool: `"${Env.python3Path}" "${path.join(Env.srcDirPath, 'tools/python/esptool/__init__.py')}"`
|
esptool: `"${Env.python3Path}" "${path.join(Env.srcDirPath, 'tools/python/esptool_main.py')}"`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -53,6 +53,7 @@
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
border: 1px solid;
|
border: 1px solid;
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
|
border-radius: 0px;
|
||||||
padding: 0 1px;
|
padding: 0 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
right: 2px;
|
right: 2px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
border-radius: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
html[data-bs-theme=light] div[m-id="{{d.mId}}"] > input {
|
html[data-bs-theme=light] div[m-id="{{d.mId}}"] > input {
|
||||||
|
|||||||
Reference in New Issue
Block a user