Commit Graph

  • 8f265b8169
    Add convenience for dynamic changes to routing (#2704) Adam Hopkins 2023-03-19 15:40:58 +02:00
  • 5ee36fd933
    Separate ASGI request and lifespan callables (#2646) Adam Hopkins 2023-03-17 09:05:33 +02:00
  • 08a81c81be
    scheme arg to create the redirect should be 'https' (#2712) Matt Bendiksen 2023-03-16 05:13:17 -05:00
  • 5a0ed75171
    Consume body on DELETE by default (#2711) Adam Hopkins 2023-03-15 18:42:45 +02:00
  • d62a92fac9
    API to define a number of workers (#2701) Adam Hopkins 2023-03-15 16:02:17 +02:00
  • c695c5250a
    squash breaking-change-compat-mode Adam Hopkins 2023-03-09 10:37:41 +02:00
  • 88c918e72f
    Update rfc.yml Adam Hopkins 2023-03-09 10:10:22 +02:00
  • c8aab8fb3d
    Update rfc.yml Adam Hopkins 2023-03-09 10:09:30 +02:00
  • ecacfd396b
    Rename rfc to rfc.yml Adam Hopkins 2023-03-09 10:06:42 +02:00
  • 3c361e9852
    Create rfc Adam Hopkins 2023-03-09 10:05:06 +02:00
  • 23c1eaab29
    POC for compatibility mode Adam Hopkins 2023-03-09 09:54:32 +02:00
  • a5d7d03413
    Nicer traceback formatting (#2667) L. Kärkkäinen 2023-03-06 19:24:12 +00:00
  • 259e458847
    Simplified parse_content_header escaping (#2707) L. Kärkkäinen 2023-03-06 04:39:16 +00:00
  • cb49c2b26d
    Add header accessors (#2696) Adam Hopkins 2023-02-28 00:26:53 +02:00
  • dfc0704831
    Error page rendering format selection (#2668) L. Kärkkäinen 2023-02-26 06:25:10 +00:00
  • d238995f1b
    Refresh Request.accept functionality (#2687) Adam Hopkins 2023-02-21 08:22:51 +02:00
  • d9f7086ee6
    Add color changes sml-changes Adam Hopkins 2023-02-16 14:59:09 +02:00
  • 6f5303e080
    check the status of socket before shutting down (#2680) Mohammad Almoghrabi 2023-02-14 22:59:41 +02:00
  • 26e999dec0 Switch blue to code block orange in sanic docs. Add sanic highlight override. Add darker sanic background (111) as option but in the comments so we can switch back if need be. SML 2023-02-09 16:49:16 +08:00
  • 8f305047c0 Add header background, change all dark theme grays to neutral grays. SML 2023-02-09 16:35:20 +08:00
  • 59f9b5cc28 Ensure sanic brand color be the same in dark mode. SML 2023-02-09 16:23:01 +08:00
  • 94eff28fda Add tab hover shadow definition. Intended to have better hover accents for light theme. SML 2023-02-09 07:03:09 +08:00
  • c111d93840 Define highlight and tab colors as variables SML 2023-02-09 06:46:13 +08:00
  • 3587a4fe15 Define sanic-background, sanic-text as top-level colors. Restructure color schemes to top of definition. SML 2023-02-09 06:13:00 +08:00
  • 51a9605668 Soften lightmode text color SML 2023-02-09 06:08:00 +08:00
  • 14f16352fc Add tracerite tab color with new sanic-tab variable. SML 2023-02-09 06:07:45 +08:00
  • ecf34896c8 Add margins for h3. Probably should be done in the tracerite package. SML 2023-02-09 04:56:30 +08:00
  • e544cd8af6 Tweak color scheme for dark themes SML 2023-02-09 04:55:57 +08:00
  • aa8af0dcea invalid text justify css SML 2023-02-09 03:36:20 +08:00
  • db0b9046d7 Add padding for main container so text doesn’t touch screen boundary SML 2023-02-09 00:39:26 +08:00
  • f798eda446 Remove forced hanging emoji from error header SML 2023-02-09 00:36:20 +08:00
  • 21ad1ae61b Remove tab styling SML 2023-02-09 00:14:06 +08:00
  • d8bf65ad1b Tweak colors for dark mode SML 2023-02-09 00:13:39 +08:00
  • 844cab2d6b Tweak colors for light mode SML 2023-02-09 00:07:29 +08:00
  • b0cb01d1a4 Add color sections for dark mode SML 2023-02-08 23:59:32 +08:00
  • 4c55051442 Fix scrollbar layout problems. L. Karkkainen 2023-02-08 01:34:41 +00:00
  • 37f3607ebc Friendlify the error page. L. Karkkainen 2023-02-08 01:26:30 +00:00
  • 7e617c1769 Misc styling L. Karkkainen 2023-02-07 22:03:10 +00:00
  • a5f732cc80 Style and layout changes, fix document title. L. Karkkainen 2023-02-07 21:25:14 +00:00
  • ce19908bc0 Implement key-value-table as dl instead of table element. L. Karkkainen 2023-02-07 20:51:25 +00:00
  • a6efebda56 Cleanup. L. Karkkainen 2023-02-07 11:00:05 +00:00
  • da9ff33fa7 Add traceback suppressions to commonly shown internals. L. Karkkainen 2023-02-07 10:58:46 +00:00
  • 526115c3c5 Fix SVG: alt to desc, whitespace removed L. Karkkainen 2023-02-06 16:07:58 +00:00
  • 12ba685bf6
    Some Sanic branding to error page (#2673) Adam Hopkins 2023-02-06 17:41:01 +02:00
  • 39b98e6b45 Logo shadow to make it show up on white background. L. Karkkainen 2023-02-06 13:13:01 +00:00
  • 3ddbda61d9 Merge branch 'html-error-handling-suggestions' into niceback-error-handling L. Karkkainen 2023-02-06 13:02:31 +00:00
  • 68bf26df17 Merge branch 'main' into niceback-error-handling L. Karkkainen 2023-02-06 12:57:48 +00:00
  • a773ad2354
    Cleanup styles and add Sanic palette Adam Hopkins 2023-02-06 14:25:22 +02:00
  • 47b2459811
    Suggestions Adam Hopkins 2023-02-06 10:05:51 +02:00
  • 7491d567a3
    Merge branch 'niceback-error-handling' of github.com:sanic-org/sanic into niceback-error-handling Adam Hopkins 2023-02-05 22:13:03 +02:00
  • fd2e4819d1
    Merge branch 'main' into accept-enhance accept-enhance L. Kärkkäinen 2023-02-05 18:53:34 +00:00
  • 783a29bc0b Require tracerite=>1.0.0 L. Karkkainen 2023-02-05 18:49:27 +00:00
  • cf76c05d3f CSS loading with STYLE_APPEND L. Karkkainen 2023-02-05 17:26:58 +00:00
  • 0e024b46d9 black L. Karkkainen 2023-02-05 16:40:04 +00:00
  • eae58e5d2a Minor cleanup. L. Karkkainen 2023-02-05 16:37:14 +00:00
  • d6f2613623
    Merge branch 'main' of github.com:sanic-org/sanic into niceback-error-handling Adam Hopkins 2023-02-05 18:37:08 +02:00
  • 6472a69fbf More specific naming: mime is simple str, media_type may have q and raw is header component. L. Karkkainen 2023-02-05 16:25:20 +00:00
  • a6ff13ceed Fallback for route name when no route found. L. Karkkainen 2023-02-05 16:06:45 +00:00
  • 207f8af11f setup.py L. Karkkainen 2023-02-05 15:58:25 +00:00
  • 5c65118d12 CSS files now start with comments, none inserted in code. L. Karkkainen 2023-02-05 15:58:09 +00:00
  • f4792a2bc6 CSS fixes, incl. scaling layout for small screens. L. Karkkainen 2023-02-05 15:46:12 +00:00
  • 53b7a5a5a1 Merge branch 'main' into niceback-error-handling L. Karkkainen 2023-02-05 14:23:11 +00:00
  • 5e7f6998bd
    fix(websocket): ASGI websocket must pass thru bytes as is (#2651) Ryu Juheon 2023-02-05 23:41:54 +09:00
  • c7a71cd00c
    Use FALLBACK_ERROR_FORMAT for handlers that return empty() (#2659) L. Kärkkäinen 2023-02-05 13:29:01 +00:00
  • 9cb9e88678
    Establish basic file browser and index fallback (#2662) Adam Hopkins 2023-02-05 15:09:04 +02:00
  • ebc2f46682 Minor style changes, loading TraceRite style and css properly, printing exception extra data. L. Karkkainen 2023-02-04 00:20:55 +00:00
  • ff47448585
    Merge branch 'issue2661' into niceback-error-handling L. Kärkkäinen 2023-02-02 14:14:56 +00:00
  • 2df5b19fd4
    Sans serif w/ autoindex monospace Adam Hopkins 2023-01-31 11:09:24 +02:00
  • 5dfd48f855
    Merge branch 'main' of github.com:sanic-org/sanic into issue2661 Adam Hopkins 2023-01-31 10:44:49 +02:00
  • ddf3a49988
    Remove accidental file Adam Hopkins 2023-01-31 10:43:19 +02:00
  • 1b43aa5f2f
    No auto registration of fallback error handlers Adam Hopkins 2023-01-31 10:40:47 +02:00
  • 713abe3cf2
    Merge branch 'issue2661' of github.com:sanic-org/sanic into issue2661 Adam Hopkins 2023-01-31 10:04:46 +02:00
  • b46b81d43a
    Set styles Adam Hopkins 2023-01-31 10:03:39 +02:00
  • 30c53b6857
    Remove deprecated property in blueprint (#2666) Rodolfo Olivieri 2023-01-30 04:26:55 -03:00
  • 2e2231919c Updated/removed tests due toe accept/mediatype complete API and semantics change. L. Karkkainen 2023-01-30 02:24:12 +00:00
  • 8da10a9c0c Compatibility with older version. L. Karkkainen 2023-01-30 02:23:26 +00:00
  • ec25581262 Accept header choose() function removed and replaced by a more versatile match(). L. Karkkainen 2023-01-30 00:45:35 +00:00
  • b8ae4285a4 Move all errorpages work to another branch error-format-redux. L. Karkkainen 2023-01-29 03:11:27 +00:00
  • c0ca55530e Add back JSON detection by request body, but to be deprecated. L. Karkkainen 2023-01-29 03:03:26 +00:00
  • 52ecbb9dc7 Note that base renderer can be changed. L. Karkkainen 2023-01-29 03:01:26 +00:00
  • 3ef99568a5 Refactor acceptable check to a helper function. L. Karkkainen 2023-01-29 03:00:04 +00:00
  • dfe2148333 Remove dubious or unnecessary handler types of response mapping. L. Karkkainen 2023-01-29 01:59:24 +00:00
  • 7909f673e5 Handle empty/missing accept header more directly L. Karkkainen 2023-01-29 01:52:53 +00:00
  • e35286e332 Rethinking of renderer selection logic, cleanup. L. Karkkainen 2023-01-29 01:43:40 +00:00
  • 8eeb1c20dc Unfinished hacks, moving to another machine. L. Karkkainen 2023-01-29 00:04:39 +00:00
  • 4f000ab59c
    Define colors for light/default mode as well. L. Kärkkäinen 2023-01-28 23:36:42 +00:00
  • ae757c8ad6
    Merge branch 'issue2661' into niceback-error-handling L. Kärkkäinen 2023-01-28 23:29:14 +00:00
  • f30f53f67d
    Move DirectoryHandler to app instance Adam Hopkins 2023-01-28 23:25:25 +02:00
  • ea09906e0a Refactored to sanic.pages.error module. Traceback and style tuning. Print also headers, and for other than 500 errors as well. 500 error message text UX workaround. L. Karkkainen 2023-01-27 18:50:35 +00:00
  • 77bdfa14ed HTML error formatting rebuilt on top of BasePage, and using external module niceback to do the tracebacks. L. Karkkainen 2023-01-27 06:45:49 +00:00
  • faf1ff8d4f Fix the document title (needs positional argument). L. Karkkainen 2023-01-27 05:39:45 +00:00
  • b5175238fb URL sanitation. L. Karkkainen 2023-01-27 05:31:52 +00:00
  • 32d62c2db4 Style tweaks L. Karkkainen 2023-01-27 05:24:02 +00:00
  • a00ec8ab37 Better UX for empty folders. L. Karkkainen 2023-01-27 04:38:49 +00:00
  • 859a8130c1 Fix Sanic brand colour in breadcrumbs. L. Karkkainen 2023-01-27 04:38:21 +00:00
  • 2038799d7a Remove parent directory link from table L. Karkkainen 2023-01-27 04:30:23 +00:00
  • 41da8bbd61 Improve navigation with breadcrumbs L. Karkkainen 2023-01-27 04:29:15 +00:00
  • e328d4406b Timestamps a bit less ugly. L. Karkkainen 2023-01-27 03:14:13 +00:00
  • d9c883eb9b Add a header bar with Sanic logo. Remove duplicate title element. Avoid escaping in style element and add new styles. L. Karkkainen 2023-01-27 03:05:00 +00:00
  • 10d4f2803a
    Simple server to include autoindex Adam Hopkins 2023-01-26 18:06:13 +02:00