fix(console): tell referral link visitors the program has ended (#51920)

This commit is contained in:
vprdev
2026-09-28 12:52:09 -07:00
committed by GitHub
parent 7f964bbb00
commit d03d6e28d6
20 changed files with 65 additions and 2 deletions
+2
View File
@@ -4,6 +4,8 @@ import { dict as en } from "./en"
export const dict = {
...en,
"go.promo.spaceBunny": "يتوفر Space Bunny Free، وهو نموذج مجهول جديد، لفترة محدودة",
"go.referral.ended.label": "تحذير",
"go.referral.ended": "انتهى برنامج الإحالة. لم تعد روابط الإحالة تمنح رصيدًا لك أو للشخص الذي شاركها.",
"go.graph.bonus": "استخدام مضاعف {{count}} مرات",
"nav.github": "GitHub",
"nav.docs": "الوثائق",
+2
View File
@@ -4,6 +4,8 @@ import { dict as en } from "./en"
export const dict = {
...en,
"go.promo.spaceBunny": "Space Bunny Free, um novo modelo anônimo, está disponível por tempo limitado",
"go.referral.ended.label": "Aviso",
"go.referral.ended": "O programa de indicação foi encerrado. Links de indicação não geram mais crédito para você nem para quem os compartilhou.",
"go.graph.bonus": "{{count}}× mais uso",
"nav.github": "GitHub",
"nav.docs": "Documentação",
+2
View File
@@ -4,6 +4,8 @@ import { dict as en } from "./en"
export const dict = {
...en,
"go.promo.spaceBunny": "Space Bunny Free, en ny anonym model, er tilgængelig i en begrænset periode",
"go.referral.ended.label": "Advarsel",
"go.referral.ended": "Henvisningsprogrammet er afsluttet. Henvisningslinks giver ikke længere kredit til dig eller den, der delte dem.",
"go.graph.bonus": "{{count}}× forbrug",
"nav.github": "GitHub",
"nav.docs": "Dokumentation",
+2
View File
@@ -4,6 +4,8 @@ import { dict as en } from "./en"
export const dict = {
...en,
"go.promo.spaceBunny": "Space Bunny Free, ein neues anonymes Modell, ist für begrenzte Zeit verfügbar",
"go.referral.ended.label": "Warnung",
"go.referral.ended": "Das Empfehlungsprogramm wurde beendet. Empfehlungslinks bringen weder dir noch der Person, die sie geteilt hat, Guthaben.",
"go.graph.bonus": "{{count}}× Nutzung",
"nav.github": "GitHub",
"nav.docs": "Dokumentation",
+2
View File
@@ -1,5 +1,7 @@
export const dict = {
"go.promo.spaceBunny": "Space Bunny Free, a new anonymous model, is available for a limited time",
"go.referral.ended.label": "Warning",
"go.referral.ended": "The referral program has ended. Referral links no longer earn credit for you or the person who shared them.",
"go.graph.bonus": "{{count}}× usage",
"nav.github": "GitHub",
"nav.docs": "Docs",
+2
View File
@@ -4,6 +4,8 @@ import { dict as en } from "./en"
export const dict = {
...en,
"go.promo.spaceBunny": "Space Bunny Free, un nuevo modelo anónimo, está disponible por tiempo limitado",
"go.referral.ended.label": "Advertencia",
"go.referral.ended": "El programa de referidos ha terminado. Los enlaces de referido ya no otorgan crédito ni a ti ni a quien los compartió.",
"go.graph.bonus": "{{count}}× de uso",
"nav.github": "GitHub",
"nav.docs": "Documentación",
+2
View File
@@ -4,6 +4,8 @@ import { dict as en } from "./en"
export const dict = {
...en,
"go.promo.spaceBunny": "Space Bunny Free, un nouveau modèle anonyme, est disponible pour une durée limitée",
"go.referral.ended.label": "Avertissement",
"go.referral.ended": "Le programme de parrainage est terminé. Les liens de parrainage ne donnent plus de crédit, ni à vous ni à la personne qui les a partagés.",
"go.graph.bonus": "{{count}}× d’utilisation",
"app.meta.description": "OpenCode - L'agent de code open source.",
"nav.github": "GitHub",
+2
View File
@@ -4,6 +4,8 @@ import { dict as en } from "./en"
export const dict = {
...en,
"go.promo.spaceBunny": "Space Bunny Free, un nuovo modello anonimo, è disponibile per un periodo limitato",
"go.referral.ended.label": "Avviso",
"go.referral.ended": "Il programma referral è terminato. I link referral non danno più credito né a te né a chi li ha condivisi.",
"go.graph.bonus": "Utilizzo {{count}}×",
"nav.github": "GitHub",
"nav.docs": "Documentazione",
+2
View File
@@ -4,6 +4,8 @@ import { dict as en } from "./en"
export const dict = {
...en,
"go.promo.spaceBunny": "新しい匿名モデル Space Bunny Free が期間限定で利用可能です",
"go.referral.ended.label": "警告",
"go.referral.ended": "紹介プログラムは終了しました。紹介リンクを使っても、あなたや共有した人にクレジットは付与されません。",
"go.graph.bonus": "利用枠{{count}}倍",
"nav.github": "GitHub",
"nav.docs": "ドキュメント",
+2
View File
@@ -4,6 +4,8 @@ import { dict as en } from "./en"
export const dict = {
...en,
"go.promo.spaceBunny": "새로운 익명 모델 Space Bunny Free를 한정된 기간 동안 사용할 수 있습니다",
"go.referral.ended.label": "경고",
"go.referral.ended": "추천 프로그램이 종료되었습니다. 추천 링크로는 더 이상 본인이나 링크를 공유한 사람에게 크레딧이 지급되지 않습니다.",
"go.graph.bonus": "사용량 {{count}}배",
"nav.github": "GitHub",
"nav.docs": "문서",
+2
View File
@@ -4,6 +4,8 @@ import { dict as en } from "./en"
export const dict = {
...en,
"go.promo.spaceBunny": "Space Bunny Free, en ny anonym modell, er tilgjengelig i en begrenset periode",
"go.referral.ended.label": "Advarsel",
"go.referral.ended": "Henvisningsprogrammet er avsluttet. Henvisningslenker gir ikke lenger kreditt til deg eller den som delte dem.",
"go.graph.bonus": "{{count}}× bruk",
"nav.github": "GitHub",
"nav.docs": "Dokumentasjon",
+2
View File
@@ -3,6 +3,8 @@ import { dict as en } from "./en"
export const dict = {
...en,
"go.promo.spaceBunny": "Space Bunny Free, nowy anonimowy model, jest dostępny przez ograniczony czas",
"go.referral.ended.label": "Ostrzeżenie",
"go.referral.ended": "Program poleceń został zakończony. Linki polecające nie dają już środków ani Tobie, ani osobie, która je udostępniła.",
"go.graph.bonus": "{{count}}× większy limit",
"nav.github": "GitHub",
"nav.docs": "Dokumentacja",
+2
View File
@@ -4,6 +4,8 @@ import { dict as en } from "./en"
export const dict = {
...en,
"go.promo.spaceBunny": "Space Bunny Free — новая анонимная модель, доступная в течение ограниченного времени",
"go.referral.ended.label": "Предупреждение",
"go.referral.ended": "Реферальная программа завершена. Реферальные ссылки больше не начисляют кредиты ни вам, ни тому, кто ими поделился.",
"go.graph.bonus": "Лимит ×{{count}}",
"nav.github": "GitHub",
"nav.docs": "Документация",
+2
View File
@@ -4,6 +4,8 @@ import { dict as en } from "./en"
export const dict = {
...en,
"go.promo.spaceBunny": "Space Bunny Free โมเดลนิรนามใหม่ เปิดให้ใช้งานในช่วงเวลาจำกัด",
"go.referral.ended.label": "คำเตือน",
"go.referral.ended": "โปรแกรมแนะนำเพื่อนสิ้นสุดแล้ว ลิงก์แนะนำจะไม่ให้เครดิตแก่คุณหรือผู้ที่แชร์ลิงก์อีกต่อไป",
"go.graph.bonus": "ใช้งาน {{count}} เท่า",
"nav.github": "GitHub",
"nav.docs": "เอกสาร",
+2
View File
@@ -4,6 +4,8 @@ import { dict as en } from "./en"
export const dict = {
...en,
"go.promo.spaceBunny": "Yeni anonim model Space Bunny Free sınırlı bir süre için kullanılabilir",
"go.referral.ended.label": "Uyarı",
"go.referral.ended": "Tavsiye programı sona erdi. Tavsiye bağlantıları artık size veya bağlantıyı paylaşan kişiye kredi kazandırmıyor.",
"go.graph.bonus": "{{count}}× kullanım",
"nav.github": "GitHub",
"nav.docs": "Dokümantasyon",
+2
View File
@@ -3,6 +3,8 @@ import { dict as en } from "./en"
export const dict = {
...en,
"go.promo.spaceBunny": "Space Bunny Free — нова анонімна модель, доступна протягом обмеженого часу",
"go.referral.ended.label": "Попередження",
"go.referral.ended": "Реферальну програму завершено. Реферальні посилання більше не нараховують кредити ні вам, ні тому, хто ними поділився.",
"go.graph.bonus": "Ліміт ×{{count}}",
"nav.github": "GitHub",
"nav.docs": "Документація",
+2
View File
@@ -4,6 +4,8 @@ import { dict as en } from "./en"
export const dict = {
...en,
"go.promo.spaceBunny": "全新匿名模型 Space Bunny Free 限时上线",
"go.referral.ended.label": "警告",
"go.referral.ended": "推荐计划已结束。推荐链接不再为你或分享链接的人提供额度。",
"go.graph.bonus": "{{count}} 倍用量",
"nav.github": "GitHub",
"nav.docs": "文档",
+2
View File
@@ -4,6 +4,8 @@ import { dict as en } from "./en"
export const dict = {
...en,
"go.promo.spaceBunny": "全新匿名模型 Space Bunny Free 限時上線",
"go.referral.ended.label": "警告",
"go.referral.ended": "推薦計畫已結束。推薦連結不再為你或分享連結的人提供額度。",
"go.graph.bonus": "{{count}} 倍用量",
"nav.github": "GitHub",
"nav.docs": "文件",
@@ -340,6 +340,26 @@ body {
}
}
[data-component="referral-ended-notice"] {
/* Matches the docs warning callout, which uses fixed colors in both themes. */
border: 1px solid rgb(98, 71, 31);
background: rgb(28, 20, 8);
color: rgb(239, 239, 239);
line-height: 1.8;
padding: 16px;
margin-bottom: 24px;
strong {
display: block;
text-transform: uppercase;
margin-bottom: 8px;
}
p {
margin: 0;
}
}
[data-component="desktop-app-banner"] {
display: flex;
align-items: center;
+9 -2
View File
@@ -1,7 +1,7 @@
import "./index.css"
import { createAsync, query } from "@solidjs/router"
import { createAsync, query, useSearchParams } from "@solidjs/router"
import { Title, Meta } from "@solidjs/meta"
import { For } from "solid-js"
import { For, Show } from "solid-js"
//import { HttpHeader } from "@solidjs/start"
import goLogoLight from "../../asset/go-ornate-light.svg"
import goLogoDark from "../../asset/go-ornate-dark.svg"
@@ -61,6 +61,7 @@ export default function Home() {
const subscribeUrl = "https://opencode.ai/console/go"
const i18n = useI18n()
const language = useLanguage()
const [searchParams] = useSearchParams()
return (
<main data-page="go">
{/*<HttpHeader name="Cache-Control" value="public, max-age=1, s-maxage=3600, stale-while-revalidate=86400" />*/}
@@ -89,6 +90,12 @@ export default function Home() {
<div data-component="content">
<section data-component="hero">
<Show when={searchParams.ref}>
<aside data-component="referral-ended-notice" aria-label={i18n.t("go.referral.ended.label")}>
<strong>{i18n.t("go.referral.ended.label")}</strong>
<p>{i18n.t("go.referral.ended")}</p>
</aside>
</Show>
<div data-component="desktop-app-banner">
<span data-slot="badge">{i18n.t("home.banner.badge")}</span>
<div data-slot="content">