-
Notifications
You must be signed in to change notification settings - Fork 0
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
a300eaa
commit 76f0d6b
Showing
123 changed files
with
5,024 additions
and
2,417 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
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,5 @@ | ||
--- | ||
"@thinairthings/uix": patch | ||
--- | ||
|
||
added bin section to package.json |
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,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/config@3.0.1/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
{ | ||
"watch": [ | ||
"src" | ||
], | ||
"ext": "ts,tsx", | ||
"exec": "tsup-node" | ||
} |
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 was deleted.
Oops, something went wrong.
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,27 @@ | ||
|
||
import React, { FC } from 'react'; | ||
import { ReactQueryProvider } from './ReactQueryProvider'; | ||
|
||
// const nullStream = new Writable({ | ||
// write(chunk, encoding, callback) { | ||
// // Do nothing with the chunk | ||
// // You can reroute this to logs if you want | ||
// callback(); | ||
// } | ||
// }); | ||
// const { stderr } = useStderr() | ||
// useEffect(() => { | ||
// stderr.write = nullStream.write.bind(nullStream) | ||
// }, [stderr]) | ||
export const CommandEnvironment: FC<{ | ||
Command: FC<any> | ||
}> = ({ | ||
Command | ||
}) => { | ||
|
||
return ( | ||
<ReactQueryProvider> | ||
<Command /> | ||
</ReactQueryProvider> | ||
) | ||
} |
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,26 @@ | ||
|
||
import React, { FC } from 'react' | ||
import { Text, Box } from 'ink' | ||
import { UixErr } from '../../types/Result' | ||
|
||
export const Error: FC<{ | ||
message: string, | ||
error: NonNullable<ReturnType<typeof UixErr>['error']> | ||
isBugReport?: boolean | ||
}> = ({ | ||
message, | ||
error, | ||
isBugReport | ||
}) => { | ||
return ( | ||
<Box flexDirection='column'> | ||
<Text>❌ {message}</Text> | ||
{isBugReport && <> | ||
<Text color='red'>Please file a bug report!</Text> | ||
<Box borderStyle={'round'}> | ||
<Text wrap='wrap'> Message: {error.message}</Text> | ||
</Box> | ||
</>} | ||
</Box> | ||
) | ||
} |
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,42 @@ | ||
import { Text } from 'ink'; | ||
import terminalImage from 'terminal-image'; | ||
import React from 'react'; | ||
import propTypes from 'prop-types'; | ||
|
||
const { useState, useEffect } = React; | ||
|
||
export const Image = (props: any) => { | ||
const [imageData, setImageData] = useState(''); | ||
|
||
useEffect(() => { | ||
(async () => { | ||
setImageData(await terminalImage.file(props.src, props)); | ||
})(); | ||
}, [props]); | ||
|
||
return <Text>{imageData}</Text>; | ||
}; | ||
|
||
Image.propTypes = { | ||
src: propTypes.oneOfType([ | ||
propTypes.object, | ||
propTypes.string | ||
]).isRequired, | ||
width: propTypes.oneOfType([ | ||
propTypes.number, | ||
propTypes.string | ||
]), | ||
height: propTypes.oneOfType([ | ||
propTypes.number, | ||
propTypes.string | ||
]), | ||
preserveAspectRatio: propTypes.bool, | ||
maximumFrameRate: propTypes.number | ||
}; | ||
|
||
Image.defaultProps = { | ||
width: '100%', | ||
height: '100%', | ||
preserveAspectRatio: true, | ||
maximumFrameRate: 30 | ||
}; |
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,16 @@ | ||
|
||
import Spinner from 'ink-spinner'; | ||
import React, { FC } from 'react'; | ||
import { Text } from 'ink'; | ||
export const Loading: FC<{ | ||
text: string | ||
}> = ({ | ||
text | ||
}) => { | ||
return ( | ||
<Text color='green'> | ||
<Spinner type="dots" /> | ||
{` ${text}`} | ||
</Text> | ||
) | ||
} |
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,16 @@ | ||
|
||
import React, { FC, ReactNode } from 'react' | ||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query' | ||
|
||
const queryClient = new QueryClient() | ||
export const ReactQueryProvider: FC<{ | ||
children: ReactNode | ||
}> = ({ | ||
children | ||
}) => { | ||
return ( | ||
<QueryClientProvider client={queryClient}> | ||
{children} | ||
</QueryClientProvider> | ||
) | ||
} |
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,13 @@ | ||
import React, { FC } from 'react' | ||
import { Text, Box } from 'ink' | ||
|
||
|
||
export const Success: FC<{ | ||
message: string | ||
}> = ({ | ||
message | ||
}) => { | ||
return ( | ||
<Text>✅ {message}</Text> | ||
) | ||
} |
Oops, something went wrong.