wip(shared): Work on workbench views
This commit is contained in:
parent
cab7f5d2c5
commit
c53ff25053
25 changed files with 386 additions and 96 deletions
38
sites/shared/components/workbench/menus/ui-settings/log.mjs
Normal file
38
sites/shared/components/workbench/menus/ui-settings/log.mjs
Normal file
|
@ -0,0 +1,38 @@
|
|||
//import { Chevron } from 'shared/components/navigation/primary.mjs'
|
||||
|
||||
export const ConsoleLog = (props) => null
|
||||
// FIXME
|
||||
/*
|
||||
(
|
||||
<Li>
|
||||
<Details>
|
||||
<Summary>
|
||||
<SumDiv>
|
||||
<Deg />
|
||||
<span>console.log()</span>
|
||||
</SumDiv>
|
||||
<Chevron />
|
||||
</Summary>
|
||||
<Ul>
|
||||
{['designConfig', 'patternConfig', 'gist', 'draft', 'renderProps'].map((it) => (
|
||||
<Li key={it}>
|
||||
<SumButton
|
||||
onClick={() => {
|
||||
if (it === 'designConfig') return console.log(props.design.designConfig)
|
||||
if (it === 'patternConfig') return console.log(props.design.patternConfig)
|
||||
if (it === 'renderProps') return console.log(props.draft.getRenderProps())
|
||||
return console.log(props[it])
|
||||
}}
|
||||
>
|
||||
<SumDiv>
|
||||
<Deg />
|
||||
<span>{it}</span>
|
||||
</SumDiv>
|
||||
</SumButton>
|
||||
</Li>
|
||||
))}
|
||||
</Ul>
|
||||
</Details>
|
||||
</Li>
|
||||
)
|
||||
*/
|
Loading…
Add table
Add a link
Reference in a new issue