-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ improve(minor): bud dev dx (#2482)
Improve developer experience when running `bud dev` by listing "shortcuts" a la vite. ## Type of change **MINOR: feature**
- Loading branch information
1 parent
04970cc
commit 742b388
Showing
21 changed files
with
266 additions
and
337 deletions.
There are no files selected for viewing
This file contains 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 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 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,70 @@ | ||
import {Box, Text} from '@roots/bud-support/ink' | ||
|
||
export interface Props { | ||
display?: boolean | ||
} | ||
|
||
const Footer = ({display}: Props) => { | ||
if (!display) { | ||
return ( | ||
<Box flexDirection="column"> | ||
<Text>{` `}</Text> | ||
<Text> | ||
<Text dimColor>{` `}Press</Text> h{' '} | ||
<Text dimColor>to show help</Text> | ||
</Text> | ||
</Box> | ||
) | ||
} | ||
|
||
return ( | ||
<Box flexDirection="column"> | ||
<Text>{` `}</Text> | ||
<Text color="blue"> | ||
{` `}Shortcuts{` `} | ||
</Text> | ||
<Text>{` `}</Text> | ||
<Text> | ||
{` `} | ||
<Text dimColor>Press</Text> b <Text dimColor>to open browser</Text> | ||
</Text> | ||
<Text> | ||
{` `} | ||
<Text dimColor>Press</Text> c{' '} | ||
<Text dimColor>to toggle compact display</Text> | ||
</Text> | ||
<Text> | ||
{` `} | ||
<Text dimColor>Press</Text> d{' '} | ||
<Text dimColor> | ||
to toggle detailed debug information (may be system intensive) | ||
</Text> | ||
</Text> | ||
<Text> | ||
{` `} | ||
<Text dimColor>Press</Text> e{' '} | ||
<Text dimColor>to toggle entrypoints display</Text> | ||
</Text> | ||
<Text> | ||
{` `} | ||
<Text dimColor>Press</Text> h <Text dimColor>to hide help</Text> | ||
</Text> | ||
<Text> | ||
{` `} | ||
<Text dimColor>Press</Text> q <Text dimColor>to quit</Text> | ||
</Text> | ||
<Text> | ||
{` `} | ||
<Text dimColor>Press</Text> r{' '} | ||
<Text dimColor>to clear/reload console</Text> | ||
</Text> | ||
<Text> | ||
{` `} | ||
<Text dimColor>Press</Text> s{' '} | ||
<Text dimColor>to toggle server info display</Text> | ||
</Text> | ||
</Box> | ||
) | ||
} | ||
|
||
export default Footer |
Oops, something went wrong.