2.2.0 Official Version
This commit is contained in:
@ -188,21 +188,26 @@
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
text-align: start;
|
||||
align-items: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.stPct {
|
||||
|
||||
text-align: center;
|
||||
text-align:end;
|
||||
padding-left: 3%;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.stLine p {
|
||||
|
||||
width: 100px;
|
||||
margin: 0;
|
||||
margin-right: 2%;
|
||||
}
|
||||
|
||||
.online-light {
|
||||
|
@ -99,22 +99,35 @@
|
||||
<button class="buttonClose" id="stClose"><i class="fas fa-times"></i></button>
|
||||
</div>
|
||||
<div class="stLine">
|
||||
<p>Volume :</p>
|
||||
<p>Volume</p>
|
||||
<input type="range" id="volCursor">
|
||||
<p class="stPct" id="volPct">0%</p>
|
||||
</div>
|
||||
<div class="stLine">
|
||||
<p>Actions :</p>
|
||||
<p>Actions</p>
|
||||
<button id="restart" class="bug"><i class="fas fa-power-off"></i> Redémarrer</button>
|
||||
</div>
|
||||
<div class="stLine">
|
||||
<p>Bug ou suggestion :</p>
|
||||
<p>Bug ou suggestion</p>
|
||||
<button id="bug" class="restart"><i class="fas fa-paper-plane"></i> Envoyer</button>
|
||||
</div>
|
||||
<div class="stLine">
|
||||
<p>Forcer la mise à jour :</p>
|
||||
<p>Forcer la mise à jour</p>
|
||||
<button id="upd" class="restart"><i class="fas fa-download"></i> Mettre à jour</button>
|
||||
</div>
|
||||
<div class="stLine">
|
||||
<p>Canal de mise à jour</p>
|
||||
<div style="display: flex; flex-direction: row;">
|
||||
<div style="display: flex; flex-direction: row;">
|
||||
<input type="radio" id="cStable">
|
||||
<p style="margin-right: 20px;">Stable</p>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: row;">
|
||||
<input type="radio" id="cDev">
|
||||
<p>Dev</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</dialog>
|
||||
<dialog id="updDialog" class="menu">
|
||||
|
@ -64,6 +64,34 @@ const favClose = document.getElementById("favClose")
|
||||
const favClear = document.getElementById("favClear")
|
||||
const favContent = document.getElementById("favContent")
|
||||
|
||||
const cStable = document.getElementById("cStable")
|
||||
const cDev = document.getElementById("cDev")
|
||||
|
||||
|
||||
|
||||
cDev.addEventListener("change", () => {
|
||||
|
||||
const settings = getSettings()
|
||||
settings["canaldev"] = true
|
||||
saveSettings(settings)
|
||||
cStable.checked = false
|
||||
cDev.checked = true
|
||||
|
||||
|
||||
|
||||
})
|
||||
|
||||
cStable.addEventListener("change", () => {
|
||||
|
||||
const settings = getSettings()
|
||||
settings["canaldev"] = false
|
||||
saveSettings(settings)
|
||||
cDev.checked = false
|
||||
cStable.checked = true
|
||||
|
||||
|
||||
})
|
||||
|
||||
|
||||
fav.addEventListener("click", () => {
|
||||
|
||||
@ -196,6 +224,19 @@ patchClose.addEventListener("click", () => {
|
||||
settings.addEventListener("click", () => {
|
||||
|
||||
stDialog.showModal()
|
||||
const Csettings = getSettings()
|
||||
|
||||
if(Csettings.canaldev == true) {
|
||||
|
||||
cStable.checked = false
|
||||
cDev.checked = true
|
||||
|
||||
} else {
|
||||
|
||||
cDev.checked = false
|
||||
cStable.checked = true
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
@ -448,7 +489,9 @@ ipc.on("findResult", (ev, list) => {
|
||||
|
||||
})
|
||||
|
||||
const path = require("path")
|
||||
const path = require("path");
|
||||
const { off } = require("process");
|
||||
const { copySync } = require("fs-extra");
|
||||
|
||||
function getSettings() {
|
||||
|
||||
|
@ -30,6 +30,8 @@ body {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.buttonClose {
|
||||
|
||||
background-color: transparent;
|
||||
|
Reference in New Issue
Block a user