mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-23 18:54:21 +01:00
wip: console
This commit is contained in:
@@ -24,6 +24,8 @@ function CopyStatus() {
|
|||||||
const isLoggedIn = query(async () => {
|
const isLoggedIn = query(async () => {
|
||||||
"use server"
|
"use server"
|
||||||
const actor = await getActor()
|
const actor = await getActor()
|
||||||
|
// TODO
|
||||||
|
console.log(actor)
|
||||||
if (actor.type === "account") {
|
if (actor.type === "account") {
|
||||||
const workspaces = await withActor(() => Account.workspaces())
|
const workspaces = await withActor(() => Account.workspaces())
|
||||||
return workspaces[0].id
|
return workspaces[0].id
|
||||||
@@ -67,7 +69,9 @@ export default function Home() {
|
|||||||
|
|
||||||
<section data-component="cta">
|
<section data-component="cta">
|
||||||
<div data-slot="left">
|
<div data-slot="left">
|
||||||
<a target="_self" href="/docs">Get Started</a>
|
<a target="_self" href="/docs">
|
||||||
|
Get Started
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div data-slot="right">
|
<div data-slot="right">
|
||||||
<button data-copy data-slot="command">
|
<button data-copy data-slot="command">
|
||||||
@@ -84,14 +88,9 @@ export default function Home() {
|
|||||||
|
|
||||||
<section data-component="zen">
|
<section data-component="zen">
|
||||||
<a href="/docs/zen">opencode zen</a>
|
<a href="/docs/zen">opencode zen</a>
|
||||||
<span data-slot="description">
|
<span data-slot="description">, a curated list of models provided by opencode</span>
|
||||||
, a curated list of models provided by opencode
|
|
||||||
</span>
|
|
||||||
<span data-slot="divider"> / </span>
|
<span data-slot="divider"> / </span>
|
||||||
<a
|
<a href="/auth" target="_self">
|
||||||
href="/auth"
|
|
||||||
target="_self"
|
|
||||||
>
|
|
||||||
{auth() ? "Dashboard" : "Sign in"}
|
{auth() ? "Dashboard" : "Sign in"}
|
||||||
</a>
|
</a>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user