This commit is contained in:
Bel LaPointe
2023-04-10 10:16:18 -06:00
1431 changed files with 527573 additions and 17 deletions

View File

@@ -17,9 +17,12 @@ tbody tr:nth-child(2n+1) {
#upsert > textarea {
width: 100%;
resize: vertical;
<<<<<<< HEAD
font-family: monospace;
font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
white-space: pre-wrap;
=======
>>>>>>> f7a346a380076b3ea76ec6f99f09b3c26b72f002
}
#jobs > tbody > tr > td {
@@ -46,6 +49,7 @@ tbody tr:nth-child(2n+1) {
background: inherit;
min-width: 40%;
display: inline-block;
<<<<<<< HEAD
white-space: pre-wrap;
}
@@ -53,3 +57,8 @@ tbody tr:nth-child(2n+1) {
::-moz-selection {
background-color: #565f67;
}
=======
white-space: pre;
}
>>>>>>> f7a346a380076b3ea76ec6f99f09b3c26b72f002

View File

@@ -27,14 +27,7 @@ function upsert() {
function jsonifyForm(id) {
var form = document.getElementById(id)
var entries = new FormData(form).entries();
var json = Object.assign(...Array.from(
entries,
([x,y]) => ({
[x]:y
.replace(/\r\n/g, '\n')
.replace(/\r/g, '\n')
})
))
var json = Object.assign(...Array.from(entries, ([x,y]) => ({[x]:y})));
json.disabled = json.disabled == "false"
var s = JSON.stringify(json)
return s
@@ -64,8 +57,8 @@ function format(job) {
var buttons = ""
var btns = [
{"name":"refresh", "icon":"8635"},
{"name":"run", "icon":"9654"},
{"name":"modify", "icon":"9999"},
{"name":"run", "icon":"9654"},
{"name":"modify", "icon":"9999"},
{"name":"delete", "icon":"10006"}
]
btns.forEach(function(e) {
@@ -76,7 +69,7 @@ function format(job) {
`
})
var strikethrough = "initial"
if (job.disabled)
if (job.disabled)
strikethrough = "line-through"
strikethrough = "text-decoration: "+strikethrough
return `<tr><td><details>