wip: console

This commit is contained in:
Frank
2025-09-03 06:22:44 -04:00
parent 36ea46ee67
commit 23af974bd3

View File

@@ -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">&nbsp;/&nbsp;</span> <span data-slot="divider">&nbsp;/&nbsp;</span>
<a <a href="/auth" target="_self">
href="/auth"
target="_self"
>
{auth() ? "Dashboard" : "Sign in"} {auth() ? "Dashboard" : "Sign in"}
</a> </a>
</section> </section>