-
Notifications
You must be signed in to change notification settings - Fork 14
chore: added Cursor to the extensions page #504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
f0e1399
73c812b
b60a4f8
52ff812
441934a
7f7c38c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,8 @@ export default async function AuthorizePage({ | |
| const loginUrl = | ||
| editor == "vscode" | ||
| ? `/login?redirect=${encodeURIComponent("/authorize?editor=vscode")}` | ||
| : editor == "" | ||
| ? `/login?redirect=${encodeURIComponent("/authorize?editor=cursor")}` | ||
Eldemarkki marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| : "/login"; | ||
|
|
||
| const token = cookies().get("token")?.value; | ||
|
|
@@ -32,6 +34,8 @@ export default async function AuthorizePage({ | |
|
|
||
| const { username } = me; | ||
|
|
||
| const editorName = editor == "vscode" ? "Visual Studio Code" : "Cursor"; | ||
|
||
|
|
||
| return ( | ||
| <Stack align="center" gap="xl"> | ||
| <Image | ||
|
|
@@ -40,10 +44,14 @@ export default async function AuthorizePage({ | |
| width={40} | ||
| height={40} | ||
| /> | ||
| <Text>{t("authorize.body")}</Text> | ||
| <Text>{t("authorize.body", { editor: editorName })}</Text> | ||
| <Button | ||
| component="a" | ||
| href={`vscode://testausserveri-ry.testaustime/authorize?token=${token}`} | ||
| href={ | ||
| editor == "vscode" | ||
| ? `vscode://testausserveri-ry.testaustime/authorize?token=${token}` | ||
|
||
| : `cursor://testausserveri-ry.testaustime/authorize?token=${token}` | ||
| } | ||
| > | ||
| {t("authorize.continue", { username })} | ||
| </Button> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,6 +77,13 @@ export default async function ExtensionsPage({ | |
| sourceCodeLink="https://github.com/Testausserveri/testaustime-vscode" | ||
| text={t("extensions.vscode")} | ||
| /> | ||
| <ExtensionBlock | ||
| logo="/images/cursor.svg" | ||
| alt="Cursor logo" | ||
| downloadLink="https://marketplace.visualstudio.com/items?itemName=testausserveri-ry.testaustime" | ||
|
||
| sourceCodeLink="https://github.com/Testausserveri/testaustime-cursor" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the repo in process of being moved under Testaustime (or at least Testausserveri) organization? At least I didn't see any messages in Discord about that
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes. we'll talk about that in discord. |
||
| text={t("extensions.cursor")} | ||
| /> | ||
| <ExtensionBlock | ||
| logo="/images/neovim.svg" | ||
| alt="Neovim logo" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be cursor instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also could use something like this so it's easier to extend in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be better in my opinion.