Compare commits

...

4 Commits

Author SHA1 Message Date
c9f997d121 update: commonmark 0.31.2.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 18m38s
2024-10-08 20:40:29 -04:00
f1dee2a089 ssb: Why would I not log the host of failed DNS requests? 2024-10-08 20:16:04 -04:00
8273277c91 editor: Fix in-browser prettification of html files. 2024-10-08 20:15:04 -04:00
9758844da3 editor: Fix visible whitespace toggle. 2024-10-08 19:56:58 -04:00
7 changed files with 11 additions and 10 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1782,10 +1782,11 @@ async function sourcePretty() {
let prettier = (await import('/prettier/standalone.mjs')).default; let prettier = (await import('/prettier/standalone.mjs')).default;
let babel = (await import('/prettier/babel.mjs')).default; let babel = (await import('/prettier/babel.mjs')).default;
let estree = (await import('/prettier/estree.mjs')).default; let estree = (await import('/prettier/estree.mjs')).default;
let prettier_html = (await import('/prettier/html.mjs')).default;
let source = gEditor.state.doc.toString(); let source = gEditor.state.doc.toString();
let formatted = await prettier.format(source, { let formatted = await prettier.format(source, {
parser: 'babel', parser: gCurrentFile?.toLowerCase()?.endsWith('.html') ? 'html' : 'babel',
plugins: [babel, estree], plugins: [babel, estree, prettier_html],
trailingComma: 'es5', trailingComma: 'es5',
useTabs: true, useTabs: true,
semi: true, semi: true,
@ -1820,8 +1821,8 @@ function toggleVisibleWhitespace() {
.cm-highlightTab { .cm-highlightTab {
background-image: unset !important; background-image: unset !important;
} }
.cm-highlightSpace:before { .cm-highlightSpace {
content: unset !important; background-image: unset !important;
} }
`; `;
window.localStorage.setItem('visible_whitespace', '1'); window.localStorage.setItem('visible_whitespace', '1');

View File

@ -2861,7 +2861,7 @@ void tf_ssb_connect(tf_ssb_t* ssb, const char* host, int port, const uint8_t* ke
int r = uv_getaddrinfo(ssb->loop, &connect->req, _tf_on_connect_getaddrinfo, host, NULL, &(struct addrinfo) { .ai_family = AF_INET }); int r = uv_getaddrinfo(ssb->loop, &connect->req, _tf_on_connect_getaddrinfo, host, NULL, &(struct addrinfo) { .ai_family = AF_INET });
if (r < 0) if (r < 0)
{ {
tf_printf("uv_getaddrinfo: %s\n", uv_strerror(r)); tf_printf("uv_getaddrinfo(%s): %s\n", host, uv_strerror(r));
tf_free(connect); tf_free(connect);
tf_ssb_unref(ssb); tf_ssb_unref(ssb);
} }