-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8213cd7
commit 00f3746
Showing
22 changed files
with
232 additions
and
350 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 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.