-
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
f190240
commit b0c499a
Showing
20 changed files
with
193 additions
and
54 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
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 |
---|---|---|
@@ -1,17 +1,21 @@ | ||
export interface LTInstance { | ||
type: "lighttube"; | ||
export interface BaseInstance { | ||
name: string; | ||
url: string; | ||
notes?: string; | ||
region?: string; | ||
supportsProxy?: boolean; | ||
}; | ||
|
||
export interface InvidiousInstance { | ||
export interface LTInstance extends BaseInstance { | ||
type: "lighttube"; | ||
}; | ||
|
||
export interface InvidiousInstance extends BaseInstance { | ||
type: "invidious"; | ||
name: string; | ||
url: string; | ||
notes?: string; | ||
region?: string; | ||
}; | ||
|
||
export type Instance = LTInstance | InvidiousInstance; | ||
export interface PoketubeInstance extends BaseInstance { | ||
type: "poketube"; | ||
}; | ||
|
||
export type Instance = LTInstance | InvidiousInstance | PoketubeInstance; |
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
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
2 changes: 1 addition & 1 deletion
2
...mponents/options/ChangeInstanceButton.tsx → ...ts/options/links/ChangeInstanceButton.tsx
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,24 @@ | ||
import { Button, ButtonProps } from "@mantine/core"; | ||
import { IconExternalLink } from "@tabler/icons-react"; | ||
import { useContext } from "react"; | ||
import { OptionsContext } from "../OptionsContext"; | ||
|
||
export const OpenWithButton = (props: ButtonProps) => { | ||
const { open, setView } = useContext(OptionsContext); | ||
|
||
return ( | ||
<Button | ||
color="violet" | ||
variant="light" | ||
rightSection={<IconExternalLink />} | ||
onClick={() => { | ||
open(); | ||
setView("openWith"); | ||
}} | ||
size="compact-md" | ||
{...props} | ||
> | ||
Open With | ||
</Button> | ||
); | ||
}; |
2 changes: 1 addition & 1 deletion
2
src/components/options/OptionsButton.tsx → ...omponents/options/links/OptionsButton.tsx
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
Oops, something went wrong.