-
Couldn't load subscription status.
- Fork 11.6k
[12.x] Update local exception page #57036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
110 commits
Select commit
Hold shift + click to select a range
f8ce0b7
Configure Vite with Tailwind CSS
avosalmon dad97ca
Register new renderer template
avosalmon 82d38c1
Base layout with static content
avosalmon 0888643
Use dashed border
avosalmon 683eb1f
Add separator
avosalmon 174e8b4
Replace hard-coded values
avosalmon 9c8d2cf
Replace hard-coded query
avosalmon 1fb06dd
Add empty state
avosalmon 3bad2df
Clean up section container
avosalmon 68b8270
Clean up
avosalmon f478559
Add section-container
avosalmon 450f83d
Use section-container in topbar
avosalmon a9b66af
Clean up
avosalmon 38b600d
Extract query component
avosalmon 5b85647
Add request-header component
avosalmon abbd2e7
Add request-body component
avosalmon e6ef2b3
Add routing component
avosalmon b0ddee4
Add routing-parameter component
avosalmon 1f0ab8d
Add overview component
avosalmon f564b6f
Add request-url component
avosalmon 876c794
Add header component
avosalmon 2f6df39
Add topbar component
avosalmon 0cc4101
Add trace component skeleton
avosalmon bec472a
Group exception frames
avosalmon bbccc3f
Add formatted-source and file-with-line components
avosalmon 0a22871
Add frames
avosalmon 25664d9
Add previous frame
avosalmon ec5a8c2
Show code snippet without syntax highlight
avosalmon f974481
Use exceptionAsMarkdown
avosalmon cfd76db
Remove unused props
avosalmon 5a78ca8
Assign snippet to a variable
avosalmon 9ba4e9d
Syntax highlight code snippet
avosalmon bac1485
Update phiki
avosalmon a861ed6
Syntax highlight query, body, and route parameters
avosalmon daf5d32
Update phiki
avosalmon adfc38d
Use LineDecoration to highlight code snippet
avosalmon 532ba63
Unescape highlighted text
avosalmon a71d76b
Add syntax-highlight component
avosalmon 7b7093e
Handle files with less than 5 lines
avosalmon f64ba8a
Install Alpine.js
avosalmon 73b965e
Add layout component
avosalmon 84e041b
Add laravel-ascii component
avosalmon a91d284
Update method badge
avosalmon 986d441
Mark frame as main
avosalmon 782a371
Expand/collapse frames
avosalmon b1d8d3d
Use current color in SVGs
avosalmon ef05d21
Don't show callable when the frame doesn't have a class
avosalmon 83ecab9
Copy request URL to clipboard
avosalmon a8855d2
Truncate long source
avosalmon 9d926c5
Add tooltip
avosalmon e32b10b
wip: tooltip
avosalmon 4b0cde1
Add side prop to tooltip
avosalmon d394d42
Add tooltip on request url
avosalmon 82c2ac4
Prevent non-vendor frame from overflowing
avosalmon 7a1306e
Allow horizontal scroll on request body
avosalmon 2d15770
Add tooltip on request headers
avosalmon 1d5f15c
Add tooltip on database query
avosalmon af23e44
Hide JS-dependent elements until Alpine is loaded
avosalmon f4b9e5b
Paginate queries
avosalmon c50901e
Add database icon
avosalmon a7a8bae
Add folder icons
avosalmon e98383e
Add copy icon
avosalmon c424c4b
Add globe icon
avosalmon 7e63c29
Add alert icon
avosalmon abb927c
Copy exception as markdown
avosalmon 88ae3ab
Add badge component
avosalmon 3f7a7e3
Add http-method component
avosalmon b78c995
Expand frames on clicking parent div
avosalmon fb04ce6
Open file in editor
avosalmon 727a691
Use pointer cursor on pagination buttons
avosalmon a950b66
Replace custom tooltip component with tippy.js
avosalmon 23fec53
Upgrade phiki/phiki
avosalmon c980a18
Use dark-plus theme
avosalmon 0334967
Use dvh instead of screen
avosalmon 832a3b7
wip: light mode
avosalmon 7a2cb14
Style gutter text
avosalmon 6a84e0c
Only show the first 100 queries
avosalmon 483e912
light mode styling
avosalmon 14594a2
Add light theme for syntax highlighter
avosalmon bad2ba1
Uppercase keys
avosalmon c6d921e
Style copy as markdown button
avosalmon ca49d56
Clean up
avosalmon d92fdc5
Add hover effect on laravel ascii logo
avosalmon 243d674
Add shadow
avosalmon d9e5886
Fix tooltip position for queries
avosalmon 56afe9c
Tweak padding for mobile
avosalmon 1ab301f
Allow HTML in tooltip
avosalmon 777fea1
Show frame arguments
avosalmon ba96213
Syntax highlight frame source
avosalmon 1c3fc8c
Add markdown template
avosalmon 336d94d
Replace renderer directory
avosalmon f85d2d2
Simplify CSS rendering
avosalmon 3bcba71
Remove unused method
avosalmon 90ef93f
Revert unintended changes
avosalmon 958a0c5
Rename array key
avosalmon 5c180f4
Rename type to operator
avosalmon da8f0da
Set max width for tooltip
avosalmon 2734439
Display vendor frames in two lines
avosalmon 059ee24
Apply fixes from StyleCI
StyleCIBot abee620
Add empty state for routing context
avosalmon aeb042d
Only round top corners when frame is expanded
avosalmon 8ffe31f
Update dot color for non-vendor frame
avosalmon aaaf065
Update topbar height
avosalmon 9322f8f
Adjust padding around header section
avosalmon 503d0e3
Move up request url and have it overlap the separator line
avosalmon 6bd87b0
Adjust spacing
avosalmon bd944da
Adjust spacing for mobile
avosalmon a62d376
Replace shadow-sm with shadow-xs
avosalmon c967475
Apply bg-white without opacity in light mode
avosalmon ddd6e5b
Adjust spacing
avosalmon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
47 changes: 47 additions & 0 deletions
47
src/Illuminate/Foundation/resources/exceptions/renderer/components/badge.blade.php
This file contains hidden or 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,47 @@ | ||
| @props(['type' => 'default', 'variant' => 'soft']) | ||
|
|
||
| @php | ||
| $baseClasses = 'inline-flex w-fit shrink-0 items-center justify-center gap-1 font-mono leading-3 uppercase transition-colors dark:border [&_svg]:size-2.5 h-6 min-w-5 rounded-md px-1.5 text-xs/none'; | ||
|
|
||
| $types = [ | ||
| 'default' => [ | ||
| 'soft' => 'bg-black/8 text-neutral-900 dark:border-neutral-700 dark:bg-white/10 dark:text-neutral-100', | ||
| 'solid' => 'bg-neutral-600 text-neutral-100 dark:border-neutral-500 dark:bg-neutral-600', | ||
| ], | ||
| 'success' => [ | ||
| 'soft' => 'bg-emerald-200 text-emerald-900 dark:border-emerald-600 dark:bg-emerald-900/70 dark:text-emerald-400', | ||
| 'solid' => 'bg-emerald-600 dark:border-emerald-500 dark:bg-emerald-600', | ||
| ], | ||
| 'primary' => [ | ||
| 'soft' => 'bg-blue-100 text-blue-900 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-300', | ||
| 'solid' => 'bg-blue-700 dark:border-blue-600 dark:bg-blue-700', | ||
| ], | ||
| 'error' => [ | ||
| 'soft' => 'bg-rose-200 text-rose-900 dark:border-rose-900 dark:bg-rose-950 dark:text-rose-100 dark:[&_svg]:!text-white', | ||
| 'solid' => 'bg-rose-600 dark:border-rose-500 dark:bg-rose-600', | ||
| ], | ||
| 'alert' => [ | ||
| 'soft' => 'bg-amber-200 text-amber-900 dark:border-amber-800 dark:bg-amber-950 dark:text-amber-300', | ||
| 'solid' => 'bg-amber-600 dark:border-amber-500 dark:bg-amber-600', | ||
| ], | ||
| 'white' => [ | ||
| 'soft' => 'bg-white text-neutral-900 dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-100', | ||
| 'solid' => 'bg-black/10 text-neutral-900 dark:text-neutral-900 dark:bg-white', | ||
| ], | ||
| ]; | ||
|
|
||
| $variants = [ | ||
| 'soft' => '', | ||
| 'solid' => 'text-white dark:text-white [&_svg]:!text-white', | ||
| ]; | ||
|
|
||
| $typeClasses = $types[$type][$variant] ?? $types['default']['soft']; | ||
| $variantClasses = $variants[$variant] ?? $variants['soft']; | ||
|
|
||
| $classes = implode(' ', [$baseClasses, $typeClasses, $variantClasses]); | ||
|
|
||
| @endphp | ||
|
|
||
| <div {{ $attributes->merge(['class' => $classes]) }}> | ||
| {{ $slot }} | ||
| </div> |
5 changes: 0 additions & 5 deletions
5
src/Illuminate/Foundation/resources/exceptions/renderer/components/card.blade.php
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capture up to 101 queries to know whether there are more than 100 queries. We only display the first 100 queries on the UI.