diff options
| author | Jay V <[email protected]> | 2025-11-03 18:03:10 -0500 |
|---|---|---|
| committer | Jay V <[email protected]> | 2025-11-03 18:17:32 -0500 |
| commit | d06afd87e5a0325730b11478eb49af4ced12608a (patch) | |
| tree | 97555b444fac7e289063a3bcded796a9cfc8db0b /packages/console/app/src/component | |
| parent | 9fb6e81007ad000e5e55255af7e12a6c6fb58bde (diff) | |
| download | opencode-d06afd87e5a0325730b11478eb49af4ced12608a.tar.gz opencode-d06afd87e5a0325730b11478eb49af4ced12608a.zip | |
ignore: lander
Diffstat (limited to 'packages/console/app/src/component')
| -rw-r--r-- | packages/console/app/src/component/footer.tsx | 7 | ||||
| -rw-r--r-- | packages/console/app/src/component/header.tsx | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/packages/console/app/src/component/footer.tsx b/packages/console/app/src/component/footer.tsx index 93d8e2d8c..5eac75967 100644 --- a/packages/console/app/src/component/footer.tsx +++ b/packages/console/app/src/component/footer.tsx @@ -1,6 +1,7 @@ import { createAsync } from "@solidjs/router" import { createMemo } from "solid-js" import { github } from "~/lib/github" +import { config } from "~/config" export function Footer() { const githubData = createAsync(() => github()) @@ -10,13 +11,13 @@ export function Footer() { notation: "compact", compactDisplay: "short", }).format(githubData()!.stars!) - : "25K", + : config.github.starsFormatted.compact, ) return ( <footer data-component="footer"> <div data-slot="cell"> - <a href="https://github.com/sst/opencode" target="_blank"> + <a href={config.github.repoUrl} target="_blank"> GitHub <span>[{starCount()}]</span> </a> </div> @@ -27,7 +28,7 @@ export function Footer() { <a href="/discord">Discord</a> </div> <div data-slot="cell"> - <a href="https://x.com/opencode">X</a> + <a href={config.social.twitter}>X</a> </div> </footer> ) diff --git a/packages/console/app/src/component/header.tsx b/packages/console/app/src/component/header.tsx index 7a3d3acec..06e710a18 100644 --- a/packages/console/app/src/component/header.tsx +++ b/packages/console/app/src/component/header.tsx @@ -18,6 +18,7 @@ import { createMemo, Match, Show, Switch } from "solid-js" import { createStore } from "solid-js/store" import { github } from "~/lib/github" import { createEffect, onCleanup } from "solid-js" +import { config } from "~/config" import "./header-context-menu.css" const isDarkMode = () => window.matchMedia("(prefers-color-scheme: dark)").matches @@ -42,7 +43,7 @@ export function Header(props: { zen?: boolean }) { notation: "compact", compactDisplay: "short", }).format(githubData()?.stars!) - : "29K", + : config.github.starsFormatted.compact, ) const [store, setStore] = createStore({ @@ -148,7 +149,7 @@ export function Header(props: { zen?: boolean }) { <nav data-component="nav-desktop"> <ul> <li> - <a href="https://github.com/sst/opencode" target="_blank"> + <a href={config.github.repoUrl} target="_blank"> GitHub <span>[{starCount()}]</span> </a> </li> @@ -222,7 +223,7 @@ export function Header(props: { zen?: boolean }) { <A href="/">Home</A> </li> <li> - <a href="https://github.com/sst/opencode" target="_blank"> + <a href={config.github.repoUrl} target="_blank"> GitHub <span>[{starCount()}]</span> </a> </li> |
