Skip to content

Commit bed0a68

Browse files
authored
Update HLJS and Include PlainText language. (#56)
* Update HLJS and Include PlainText language. * Fix to json loads * Fix Pyright ignoring type ignore.
1 parent 02a2c45 commit bed0a68

File tree

4 files changed

+522
-217
lines changed

4 files changed

+522
-217
lines changed

views/htmx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ async def htmx_save(self, request: starlette_plus.Request) -> starlette_plus.Res
328328
)
329329

330330
if resp := validate_paste(data):
331-
json_: dict[str, Any] = json.loads(resp.body)
331+
json_: dict[str, Any] = json.loads(resp.body) # type: ignore Can only be memoryview when specifically used.
332332
return starlette_plus.HTMLResponse(
333333
f"""<span id="errorResponse">{resp.status_code}: {json_["error"]}</span>""",
334334
headers=error_headers,

web/password.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<!-- <link rel="preload" href="static/packages/highlight.min.js" as="script"> -->
1414
<!-- <link rel="preload" href="static/packages/highlight-ln.min.js" as="script"> -->
1515
<script src="/static/packages/htmx.min.js"></script>
16-
<script src="/static/packages/highlight.min.js"></script>
16+
<script src="/static/packages/highlight.min.js?v=2"></script>
1717

1818
<!-- SCRIPTS -->
1919
<script src="/static/scripts/initialTheme.js?v=1"></script>

web/paste.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<script src="/static/packages/htmx.min.js"></script>
1313
<!-- <link rel="preload" href="static/packages/highlight.min.js" as="script"> -->
1414
<!-- <link rel="preload" href="static/packages/highlight-ln.min.js" as="script"> -->
15-
<script src="/static/packages/highlight.min.js"></script>
15+
<script src="/static/packages/highlight.min.js?v=2"></script>
1616

1717
<!-- SCRIPTS -->
1818
<script src="/static/scripts/initialTheme.js?v=1"></script>

0 commit comments

Comments
 (0)