GeezerVison is showing github.com — ignore: cloud · roderik/opencode@3f225e3
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: cloud/app/src/routes/index.tsx +3-4Lines changed: 3 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ import IMG_SPLASH from "../asset/lander/screenshot-splash.png" |
7 | 7 | import IMG_VSCODE from "../asset/lander/screenshot-vscode.png" |
8 | 8 | import IMG_GITHUB from "../asset/lander/screenshot-github.png" |
9 | 9 | import { IconCopy, IconCheck } from "../component/icon" |
10 | | -import { A, createAsync, query, redirect } from "@solidjs/router" |
| 10 | +import { A, createAsync, query } from "@solidjs/router" |
11 | 11 | import { getActor, withActor } from "~/context/auth" |
12 | 12 | import { Account } from "@opencode/cloud-core/account.js" |
13 | 13 |
|
@@ -26,7 +26,6 @@ const isLoggedIn = query(async () => { |
26 | 26 | if (actor.type === "account") { |
27 | 27 | const workspaces = await withActor(() => Account.workspaces()) |
28 | 28 | return workspaces[0].id |
29 | | - // throw redirect("/" + workspaces[0].id) |
30 | 29 | } |
31 | 30 | return false |
32 | 31 | }, "isLoggedIn") |
@@ -84,8 +83,8 @@ export default function Home() { |
84 | 83 | </div> |
85 | 84 | <div data-slot="right"> |
86 | 85 | {workspaceId() |
87 | | - ? <A href={`/workspace/${workspaceId()}`}>Dashboard</A> |
88 | | - : <A href="/auth/authorize">Login</A> |
| 86 | + ? <A href={`/${workspaceId()}`}>Dashboard</A> |
| 87 | + : <a href="/auth/authorize" target="_self">Login</a> |
89 | 88 | } |
90 | 89 | </div> |
91 | 90 | </section> |
|