From 12cf076118570eebbff08c6b3090e0d4798447a1 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Wed, 3 Apr 2024 03:17:55 -0400 Subject: no venv --- .../middleware/exceptions/templates/body.html | 20 ---- .../middleware/exceptions/templates/frame.html | 12 -- .../middleware/exceptions/templates/scripts.js | 27 ----- .../middleware/exceptions/templates/styles.css | 121 --------------------- 4 files changed, 180 deletions(-) delete mode 100644 venv/lib/python3.11/site-packages/litestar/middleware/exceptions/templates/body.html delete mode 100644 venv/lib/python3.11/site-packages/litestar/middleware/exceptions/templates/frame.html delete mode 100644 venv/lib/python3.11/site-packages/litestar/middleware/exceptions/templates/scripts.js delete mode 100644 venv/lib/python3.11/site-packages/litestar/middleware/exceptions/templates/styles.css (limited to 'venv/lib/python3.11/site-packages/litestar/middleware/exceptions/templates') diff --git a/venv/lib/python3.11/site-packages/litestar/middleware/exceptions/templates/body.html b/venv/lib/python3.11/site-packages/litestar/middleware/exceptions/templates/body.html deleted file mode 100644 index 1c6705c..0000000 --- a/venv/lib/python3.11/site-packages/litestar/middleware/exceptions/templates/body.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - Litestar exception page - - -

{error}

-

{error_description}

- {exception_data} - - - diff --git a/venv/lib/python3.11/site-packages/litestar/middleware/exceptions/templates/frame.html b/venv/lib/python3.11/site-packages/litestar/middleware/exceptions/templates/frame.html deleted file mode 100644 index 2ead8dd..0000000 --- a/venv/lib/python3.11/site-packages/litestar/middleware/exceptions/templates/frame.html +++ /dev/null @@ -1,12 +0,0 @@ -
-
- - {file} in {symbol_name} at line - {line} -
-
- - {code} - -
-
diff --git a/venv/lib/python3.11/site-packages/litestar/middleware/exceptions/templates/scripts.js b/venv/lib/python3.11/site-packages/litestar/middleware/exceptions/templates/scripts.js deleted file mode 100644 index 014a256..0000000 --- a/venv/lib/python3.11/site-packages/litestar/middleware/exceptions/templates/scripts.js +++ /dev/null @@ -1,27 +0,0 @@ -const expanders = document.querySelectorAll(".frame .expander"); - -for (const expander of expanders) { - expander.addEventListener("click", (evt) => { - const currentSnippet = evt.currentTarget.closest(".frame"); - const snippetWrapper = currentSnippet.querySelector( - ".code-snippet-wrapper", - ); - if (currentSnippet.classList.contains("collapsed")) { - snippetWrapper.style.height = `${snippetWrapper.scrollHeight}px`; - currentSnippet.classList.remove("collapsed"); - } else { - currentSnippet.classList.add("collapsed"); - snippetWrapper.style.height = "0px"; - } - }); -} - -// init height for non-collapsed code snippets so animation will be show -// their first collapse -const nonCollapsedSnippets = document.querySelectorAll( - ".frame:not(.collapsed) .code-snippet-wrapper", -); - -for (const snippet of nonCollapsedSnippets) { - snippet.style.height = `${snippet.scrollHeight}px`; -} diff --git a/venv/lib/python3.11/site-packages/litestar/middleware/exceptions/templates/styles.css b/venv/lib/python3.11/site-packages/litestar/middleware/exceptions/templates/styles.css deleted file mode 100644 index 6b98b89..0000000 --- a/venv/lib/python3.11/site-packages/litestar/middleware/exceptions/templates/styles.css +++ /dev/null @@ -1,121 +0,0 @@ -:root { - --code-background-color: #f5f5f5; - --code-background-color-dark: #b8b8b8; - --code-color: #1d2534; - --code-color-light: #546996; - --code-font-family: Consolas, monospace; - --header-color: #303b55; - --warn-color: hsl(356, 92%, 60%); - --text-font-family: -apple-system, BlinkMacSystemFont, Helvetica, Arial, - sans-serif; -} - -html { - font-size: 20px; -} - -body { - font-family: var(--text-font-family); - font-size: 0.8rem; -} - -h1, -h2, -h3, -h4 { - color: var(--header-color); -} - -h4 { - font-size: 1rem; -} - -h3 { - font-size: 1.35rem; -} - -h2 { - font-size: 1.83rem; -} - -h3 span, -h4 span { - color: var(--warn-color); -} - -.frame { - background-color: var(--code-background-color); - border-radius: 0.2rem; - margin-bottom: 20px; -} - -.frame-name { - border-bottom: 1px solid var(--code-color-light); - padding: 10px 16px; -} - -.frame.collapsed .frame-name { - border-bottom: none; -} - -.frame-name span { - font-weight: 700; -} - -span.expander { - display: inline-block; - margin-right: 10px; - cursor: pointer; - transition: transform 0.33s ease-in-out; -} - -.frame.collapsed span.expander { - transform: rotate(-90deg); -} - -.frame-name span.breakable { - word-break: break-all; -} - -.code-snippet-wrapper { - height: auto; - overflow-y: hidden; - transition: height 0.33s ease-in-out; -} - -.frame.collapsed .code-snippet-wrapper { - height: 0; -} - -.code-snippet { - margin: 10px 16px; - border-spacing: 0 0; - color: var(--code-color); - font-family: var(--code-font-family); - font-size: 0.68rem; -} - -.code-snippet td { - padding: 0; - text-align: left; -} - -td.line_no { - color: var(--code-color-light); - min-width: 4ch; - padding-right: 20px; - text-align: right; - user-select: none; -} - -td.code_line { - width: 99%; -} - -tr.executed-line { - background-color: var(--code-background-color-dark); -} - -.cause-wrapper { - margin-top: 50px; -} -- cgit v1.2.3