File tree Expand file tree Collapse file tree 6 files changed +82
-17
lines changed
Expand file tree Collapse file tree 6 files changed +82
-17
lines changed Original file line number Diff line number Diff line change @@ -262,9 +262,9 @@ svg.icon-muted {
262262 padding : 0.5rem ;
263263}
264264
265- .flow > * + * {
265+ /* .flow > * + * {
266266 margin-top: 1em;
267- }
267+ } */
268268
269269.full-pane {
270270 display : flex;
@@ -309,6 +309,13 @@ svg.icon-muted {
309309 display : block;
310310}
311311
312+ .small-icon-button ::part (base ) {
313+ padding : 0 ;
314+ margin : 0 ;
315+ height : 100% ;
316+ width : 100% ;
317+ }
318+
312319/* Utilities */
313320.d-flex {
314321 display : flex;
@@ -331,6 +338,11 @@ svg.icon-muted {
331338.flex-column {
332339 flex-direction : column;
333340}
341+ .flex-center {
342+ display : flex;
343+ justify-content : center;
344+ align-items : center;
345+ }
334346
335347.cursor-pointer {
336348 cursor : pointer;
@@ -644,6 +656,13 @@ svg.icon-muted {
644656 display : table-row;
645657}
646658
659+ .code-key {
660+ color : var (--wa-color-blue-60 );
661+ }
662+ .code-value {
663+ color : var (--wa-color-purple-50 );
664+ }
665+
647666/* Highlight.js GitHub Theme */
648667pre code .hljs {
649668 display : block;
Original file line number Diff line number Diff line change 5959 <button class:active ={currentTab == " stimulus-tab" } onclick ={updateTab } data-tab-id =" stimulus-tab" >Stimulus</button >
6060 <button class:active ={currentTab == " native-tab" } onclick ={updateTab } data-tab-id =" native-tab" >Native</button >
6161 <button class:active ={currentTab == " logs-tab" } onclick ={updateTab } data-tab-id =" logs-tab" >Log</button >
62+ <wa-select class =" color-scheme-selector" appearance =" filled" size =" small" value =" auto" title =" Press \ to toggle" >
63+ <wa-icon class =" only-light" slot =" start" name =" sun" variant =" regular" ></wa-icon >
64+ <wa-icon class =" only-dark" slot =" start" name =" moon" variant =" regular" ></wa-icon >
65+ <wa-option value =" light" >
66+ <wa-icon slot =" start" name =" sun" variant =" regular" ></wa-icon >
67+ Light
68+ </wa-option >
69+ <wa-option value =" dark" >
70+ <wa-icon slot =" start" name =" moon" variant =" regular" ></wa-icon >
71+ Dark
72+ </wa-option >
73+ <wa-divider ></wa-divider >
74+ <wa-option value =" auto" >
75+ <wa-icon class =" only-light" slot =" start" name =" sun" variant =" regular" ></wa-icon >
76+ <wa-icon class =" only-dark" slot =" start" name =" moon" variant =" regular" ></wa-icon >
77+ System
78+ </wa-option >
79+ </wa-select >
6280 </nav >
6381 <div id =" turbo-tab" class =" tab-content active" >
6482 <TurboTab />
Original file line number Diff line number Diff line change 123123 < div class = " position-absolute end-0" >
124124 < wa- dropdown class = " mb-2" use: preventDropdownClose>
125125 < wa- button slot= " trigger" label= " Filter Events" >
126- < wa- icon name= " filter" >< / wa- icon>
126+ < wa- icon name= " filter" label = " filter " >< / wa- icon>
127127 < / wa- button>
128128 {#each Object .entries (TURBO_EVENTS_GROUPED ) as [groupName, events]}
129129 < wa- dropdown- item role= " button" tabindex= " 0" onkeyup= {() => handleFilterGroupToggle (groupName)} onclick= {() => handleFilterGroupToggle (groupName)}>
Original file line number Diff line number Diff line change 167167 <div class =" d-flex flex-column h-100" >
168168 <div class =" scrollable-list flow" >
169169 <div class =" pane-section-heading" >Values</div >
170- <table class =" table table-sm w-100 turbo-table" >
171- <tbody >
172- {#each Object .entries (selected .controller .values ) as [_key, object]}
173- {#each Object .entries (object ) as [key, value]}
174- <tr >
175- <td ><div class ="code-keyword" >{key }</div ></td >
176- <td >{value }</td >
177- </tr >
178- {/each }
179- {/each }
180- </tbody >
181- </table >
170+ {#each Object .entries (selected .controller .values ) as [_key, valueObject]}
171+ <div class =" d-flex gap-2" >
172+ <span class ="code-key" >{valueObject .name }:</span >
173+ <span class ="code-value" >{valueObject .value }</span >
174+ <wa-button id ={` rich-tooltip-${valueObject .key } ` } variant =" neutral" appearance =" plain" size =" small" class =" small-icon-button" >
175+ <wa-icon name =" copy" label =" Home" ></wa-icon >
176+ </wa-button >
177+ <wa-tooltip for ={` rich-tooltip-${valueObject .key } ` } trigger =" click" style =" --max-width: 100%;" >
178+ <div class =" " >
179+ <div class ="flex-center" >Type: {valueObject .type }</div >
180+ <ul >
181+ <li >
182+ <div >
183+ <span >{` data-${selected .identifier }-${valueObject .key } ` }</span >
184+ <CopyButton value ={" asdf" } />
185+ </div >
186+ </li >
187+ <li >
188+ <div >
189+ <span >{` this.${valueObject .name } ` }</span >
190+ <CopyButton value ={" asdf" } />
191+ </div >
192+ </li >
193+ <li >
194+ <div >
195+ <span >{` this.${valueObject .name }s ` }</span >
196+ <CopyButton value ={" asdf" } />
197+ </div >
198+ </li >
199+ <li >
200+ <div >
201+ <span >{` this.has${valueObject .name [0 ].toUpperCase () + valueObject .name .slice (1 )} ` }</span >
202+ <CopyButton value ={" asdf" } />
203+ </div >
204+ </li >
205+ </ul >
206+ </div >
207+ </wa-tooltip >
208+ </div >
209+ {/each }
182210 </div >
183211 </div >
184212 {:else }
Original file line number Diff line number Diff line change 202202 {/ if }
203203 {#if turboCables .length > 0 }
204204 < wa- tooltip for = " turbo-cable-indication-icon" > {` ${ connectedTurboCablesCount ()} / ${ turboCables .length } Turbo Stream WebSockets are connected` }< / wa- tooltip>
205- < wa- icon name= " circle" id= " turbo-cable-indication-icon" class : connected= {connectedTurboCablesCount () == turboCables .length }>< / wa- icon>
205+ < wa- icon name= " circle" label = " websocket-indication " id= " turbo-cable-indication-icon" class : connected= {connectedTurboCablesCount () == turboCables .length }>< / wa- icon>
206206 {/ if }
207207 < / div>
208208 < / div>
Original file line number Diff line number Diff line change 2020
2121< button class = " btn-copy" onclick= {handleCopy} aria- label= " Copy to clipboard" >
2222 < wa- tooltip for = {id} trigger= " manual" bind: this = {tooltip}> Copied< / wa- tooltip>
23- < wa- icon {id} class = " copy-icon" class : copied name= {copied ? " check" : " copy" }>< / wa- icon>
23+ < wa- icon {id} class = " copy-icon" class : copied name= {copied ? " check" : " copy" } label = " copy-icon " >< / wa- icon>
2424< / button>
2525
2626< style>
You can’t perform that action at this time.
0 commit comments