-
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c90e996
commit 5a341b1
Showing
15 changed files
with
77 additions
and
9 deletions.
There are no files selected for viewing
Submodule clip-interrogator-ext
updated
2 files
+12 −0 | README.md | |
+75 −1 | scripts/clip_interrogator_ext.py |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
let logMonitorEl = null; | ||
|
||
async function logMonitor() { | ||
setTimeout(logMonitor, opts.logmonitor_refresh_period); | ||
if (logMonitorEl) logMonitorEl.parentElement.style.display = opts.logmonitor_show ? 'block' : 'none'; | ||
if (!opts.logmonitor_show) return; | ||
const res = await fetch('/sdapi/v1/log?clear=True'); | ||
if (res?.ok) { | ||
if (!logMonitorEl) logMonitorEl = document.getElementById('logMonitorData'); | ||
if (!logMonitorEl) return; | ||
logMonitorEl.parentElement.style.display = 'block'; | ||
const lines = await res.json(); | ||
for (const line of lines) { | ||
const l = JSON.parse(line); | ||
const row = document.createElement("tr"); | ||
row.style = 'padding: 10px; margin: 0;'; | ||
row.innerHTML = `<td>${new Date(1000 * l.created).toISOString()}</td><td>${l.level}</td><td>${l.facility}</td><td>${l.module}</td><td>${l.msg}</td>`; | ||
logMonitorEl.appendChild(row); | ||
while (logMonitorEl.childElementCount > 100) logMonitorEl.removeChild(logMonitorEl.firstChild); | ||
logMonitorEl.scrollTop = logMonitorEl.scrollHeight | ||
} | ||
} | ||
} | ||
|
||
async function logMonitorCreate() { | ||
const el = document.getElementsByTagName('footer')[0]; | ||
if (!el) return; | ||
el.classList.add('log-monitor'); | ||
el.innerHTML = ` | ||
<table style="width: 100%"> | ||
<thead style="display: block; text-align: left; border-bottom: solid 1px var(--button-primary-border-color)"> | ||
<tr> | ||
<th style="width: 170px">Time</th> | ||
<th>Level</th> | ||
<th style="width: 72px">Facility</th> | ||
<th style="width: 124px">Module</th> | ||
<th>Message</th> | ||
</tr> | ||
</thead> | ||
<tbody id="logMonitorData" style="white-space: nowrap; height: 10vh; width: 100vw; display: block; overflow-x: hidden; overflow-y: scroll"> | ||
</tbody> | ||
</table> | ||
`; | ||
logMonitor(); | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule lycoris
updated
6 files
+9 −0 | Change.md | |
+4 −0 | README.md | |
+1 −1 | lycoris/locon.py | |
+1 −1 | lycoris/loha.py | |
+1 −1 | lycoris/lokr.py | |
+1 −1 | setup.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ select = [ | |
# "PL", | ||
] | ||
exclude = [ | ||
"/usr/lib", | ||
"extensions", | ||
"extensions-builtin", | ||
"modules/lora", | ||
|