File tree Expand file tree Collapse file tree 5 files changed +28
-22
lines changed Expand file tree Collapse file tree 5 files changed +28
-22
lines changed Original file line number Diff line number Diff line change 1+ from pprint import pformat
2+
13from django .utils .translation import gettext_lazy as _
24from django .views .debug import get_default_exception_reporter_filter
3- from pprint import pformat
5+
46from debug_toolbar .panels import Panel
5- from debug_toolbar .sanitize import force_str
67
78get_safe_settings = get_default_exception_reporter_filter ().get_safe_settings
89
Original file line number Diff line number Diff line change @@ -137,13 +137,15 @@ def contrasting_color_generator():
137137 and then vary subsequent bits systematically.
138138 """
139139
140- return cycle ([
141- "#0C375A" ,
142- "#21A0A0" ,
143- "#FFC300" ,
144- "#FF5733" ,
145- "#C70039" ,
146- "#900C3F" ,
147- "#581845" ,
148- "#F1C40F"
149- ])
140+ return cycle (
141+ [
142+ "#0C375A" ,
143+ "#21A0A0" ,
144+ "#FFC300" ,
145+ "#FF5733" ,
146+ "#C70039" ,
147+ "#900C3F" ,
148+ "#581845" ,
149+ "#F1C40F" ,
150+ ]
151+ )
Original file line number Diff line number Diff line change 153153 transition : none;
154154}
155155
156- # djDebug button , # djDebug .djButton {
156+ # djDebug button ,
157+ # djDebug .djButton {
157158 background-color : var (--djdt-background-color );
158159 border : 1px solid var (--djdt-button-border-color );
159160 border-radius : 4px ;
164165 text-decoration : none;
165166}
166167
167- # djDebug [data-theme = "light" ] button , # djDebug [data-theme = "light" ] .djButton {
168+ # djDebug [data-theme = "light" ] button ,
169+ # djDebug [data-theme = "light" ] .djButton {
168170 box-shadow : 0 -15px 20px -10px rgba (0 , 0 , 0 , 0.15 ) inset;
169171}
170172
171- # djDebug button : hover , # djDebug .djButton : hover {
173+ # djDebug button : hover ,
174+ # djDebug .djButton : hover {
172175 border-color : var (--djdt-button-hover-border-color );
173176 cursor : pointer;
174177}
175178
176- # djDebug button : active , # djDebug .djButton : active {
179+ # djDebug button : active ,
180+ # djDebug .djButton : active {
177181 border : 1px solid # aaa ;
178182}
179183
464468
465469# djDebug .djdt-badge .djdt-badge-success {
466470 color : # fff ;
467- background-color : # 05A53F ;
471+ background-color : # 05a53f ;
468472}
469473
470474# djDebug .djdt-panelContent .djDebugClose {
@@ -1090,7 +1094,9 @@ To regenerate:
10901094}
10911095
10921096# djDebug .djDetailsRow {
1093- background-color : var (--djdt-djdt-panel-content-table-strip-background-color );
1097+ background-color : var (
1098+ --djdt-djdt-panel-content-table-strip-background-color
1099+ );
10941100}
10951101
10961102# djDebug .djDebugRowWarning .djdt-time {
Original file line number Diff line number Diff line change @@ -120,9 +120,7 @@ const djdt = {
120120 for ( const el of this . querySelectorAll ( ".djDebugCollapsed" ) ) {
121121 $$ . toggle ( el , ! isSelected ) ;
122122 }
123- for ( const el of this . querySelectorAll (
124- ".djDebugUncollapsed"
125- ) ) {
123+ for ( const el of this . querySelectorAll ( ".djDebugUncollapsed" ) ) {
126124 $$ . toggle ( el , isSelected ) ;
127125 }
128126 } ) ;
Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ def tidy_stacktrace(stack: list[stubs.InspectStack]) -> stubs.TidyStackTrace:
6969 return trace
7070
7171
72-
7372def render_stacktrace (trace : stubs .TidyStackTrace ) -> SafeString :
7473 show_locals = dt_settings .get_config ()["ENABLE_STACKTRACES_LOCALS" ]
7574 html = ""
You can’t perform that action at this time.
0 commit comments