diff --git a/packages/console/app/src/component/spotlight.css b/packages/console/app/src/component/spotlight.css
deleted file mode 100644
index 4b311c3d021..00000000000
--- a/packages/console/app/src/component/spotlight.css
+++ /dev/null
@@ -1,15 +0,0 @@
-.spotlight-container {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 50dvh;
- pointer-events: none;
- overflow: hidden;
-}
-
-.spotlight-container canvas {
- display: block;
- width: 100%;
- height: 100%;
-}
diff --git a/packages/console/app/src/component/spotlight.tsx b/packages/console/app/src/component/spotlight.tsx
deleted file mode 100644
index 19accb88a63..00000000000
--- a/packages/console/app/src/component/spotlight.tsx
+++ /dev/null
@@ -1,820 +0,0 @@
-import { createSignal, createEffect, onMount, onCleanup, Accessor } from "solid-js"
-import "./spotlight.css"
-
-export interface ParticlesConfig {
- enabled: boolean
- amount: number
- size: [number, number]
- speed: number
- opacity: number
- drift: number
-}
-
-export interface SpotlightConfig {
- placement: [number, number]
- color: string
- speed: number
- spread: number
- length: number
- width: number
- pulsating: false | [number, number]
- distance: number
- saturation: number
- noiseAmount: number
- distortion: number
- opacity: number
- particles: ParticlesConfig
-}
-
-export const defaultConfig: SpotlightConfig = {
- placement: [0.5, -0.15],
- color: "#ffffff",
- speed: 0.8,
- spread: 0.5,
- length: 4.0,
- width: 0.15,
- pulsating: [0.95, 1.1],
- distance: 3.5,
- saturation: 0.35,
- noiseAmount: 0.15,
- distortion: 0.05,
- opacity: 0.325,
- particles: {
- enabled: true,
- amount: 70,
- size: [1.25, 1.5],
- speed: 0.75,
- opacity: 0.9,
- drift: 1.5,
- },
-}
-
-export interface SpotlightAnimationState {
- time: number
- intensity: number
- pulseValue: number
-}
-
-interface SpotlightProps {
- config: Accessor
- class?: string
- onAnimationFrame?: (state: SpotlightAnimationState) => void
-}
-
-const hexToRgb = (hex: string): [number, number, number] => {
- const m = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex)
- return m ? [parseInt(m[1], 16) / 255, parseInt(m[2], 16) / 255, parseInt(m[3], 16) / 255] : [1, 1, 1]
-}
-
-const getAnchorAndDir = (
- placement: [number, number],
- w: number,
- h: number,
-): { anchor: [number, number]; dir: [number, number] } => {
- const [px, py] = placement
- const outside = 0.2
-
- let anchorX = px * w
- let anchorY = py * h
- let dirX = 0
- let dirY = 0
-
- const centerX = 0.5
- const centerY = 0.5
-
- if (py <= 0.25) {
- anchorY = -outside * h + py * h
- dirY = 1
- dirX = (centerX - px) * 0.5
- } else if (py >= 0.75) {
- anchorY = (1 + outside) * h - (1 - py) * h
- dirY = -1
- dirX = (centerX - px) * 0.5
- } else if (px <= 0.25) {
- anchorX = -outside * w + px * w
- dirX = 1
- dirY = (centerY - py) * 0.5
- } else if (px >= 0.75) {
- anchorX = (1 + outside) * w - (1 - px) * w
- dirX = -1
- dirY = (centerY - py) * 0.5
- } else {
- dirY = 1
- }
-
- const len = Math.sqrt(dirX * dirX + dirY * dirY)
- if (len > 0) {
- dirX /= len
- dirY /= len
- }
-
- return { anchor: [anchorX, anchorY], dir: [dirX, dirY] }
-}
-
-interface UniformData {
- iTime: number
- iResolution: [number, number]
- lightPos: [number, number]
- lightDir: [number, number]
- color: [number, number, number]
- speed: number
- lightSpread: number
- lightLength: number
- sourceWidth: number
- pulsating: number
- pulsatingMin: number
- pulsatingMax: number
- fadeDistance: number
- saturation: number
- noiseAmount: number
- distortion: number
- particlesEnabled: number
- particleAmount: number
- particleSizeMin: number
- particleSizeMax: number
- particleSpeed: number
- particleOpacity: number
- particleDrift: number
-}
-
-const WGSL_SHADER = `
- struct Uniforms {
- iTime: f32,
- _pad0: f32,
- iResolution: vec2,
- lightPos: vec2,
- lightDir: vec2,
- color: vec3,
- speed: f32,
- lightSpread: f32,
- lightLength: f32,
- sourceWidth: f32,
- pulsating: f32,
- pulsatingMin: f32,
- pulsatingMax: f32,
- fadeDistance: f32,
- saturation: f32,
- noiseAmount: f32,
- distortion: f32,
- particlesEnabled: f32,
- particleAmount: f32,
- particleSizeMin: f32,
- particleSizeMax: f32,
- particleSpeed: f32,
- particleOpacity: f32,
- particleDrift: f32,
- _pad1: f32,
- _pad2: f32,
- };
-
- @group(0) @binding(0) var uniforms: Uniforms;
-
- struct VertexOutput {
- @builtin(position) position: vec4,
- @location(0) vUv: vec2,
- };
-
- @vertex
- fn vertexMain(@builtin(vertex_index) vertexIndex: u32) -> VertexOutput {
- var positions = array, 3>(
- vec2(-1.0, -1.0),
- vec2(3.0, -1.0),
- vec2(-1.0, 3.0)
- );
-
- var output: VertexOutput;
- let pos = positions[vertexIndex];
- output.position = vec4(pos, 0.0, 1.0);
- output.vUv = pos * 0.5 + 0.5;
- return output;
- }
-
- fn hash(p: vec2) -> f32 {
- let p3 = fract(p.xyx * 0.1031);
- return fract((p3.x + p3.y) * p3.z + dot(p3, p3.yzx + 33.33));
- }
-
- fn hash2(p: vec2) -> vec2 {
- let n = sin(dot(p, vec2(41.0, 289.0)));
- return fract(vec2(n * 262144.0, n * 32768.0));
- }
-
- fn fastNoise(st: vec2) -> f32 {
- return fract(sin(dot(st, vec2(12.9898, 78.233))) * 43758.5453);
- }
-
- fn lightStrengthCombined(lightSource: vec2, lightRefDirection: vec2, coord: vec2) -> f32 {
- let sourceToCoord = coord - lightSource;
- let distSq = dot(sourceToCoord, sourceToCoord);
- let distance = sqrt(distSq);
-
- let baseSize = min(uniforms.iResolution.x, uniforms.iResolution.y);
- let maxDistance = max(baseSize * uniforms.lightLength, 0.001);
- if (distance > maxDistance) {
- return 0.0;
- }
-
- let invDist = 1.0 / max(distance, 0.001);
- let dirNorm = sourceToCoord * invDist;
- let cosAngle = dot(dirNorm, lightRefDirection);
-
- if (cosAngle < 0.0) {
- return 0.0;
- }
-
- let side = dot(dirNorm, vec2(-lightRefDirection.y, lightRefDirection.x));
- let time = uniforms.iTime;
- let speed = uniforms.speed;
-
- let asymNoise = fastNoise(vec2(side * 6.0 + time * 0.12, distance * 0.004 + cosAngle * 2.0));
- let asymShift = (asymNoise - 0.5) * uniforms.distortion * 0.6;
-
- let distortPhase = time * 1.4 + distance * 0.006 + cosAngle * 4.5 + side * 1.7;
- let distortedAngle = cosAngle + uniforms.distortion * sin(distortPhase) * 0.22 + asymShift;
-
- let flickerSeed = cosAngle * 9.0 + side * 4.0 + time * speed * 0.35;
- let flicker = 0.86 + fastNoise(vec2(flickerSeed, distance * 0.01)) * 0.28;
-
- let asymSpread = max(uniforms.lightSpread * (0.9 + (asymNoise - 0.5) * 0.25), 0.001);
- let spreadFactor = pow(max(distortedAngle, 0.0), 1.0 / asymSpread);
- let lengthFalloff = clamp(1.0 - distance / maxDistance, 0.0, 1.0);
-
- let fadeMaxDist = max(baseSize * uniforms.fadeDistance, 0.001);
- let fadeFalloff = clamp((fadeMaxDist - distance) / fadeMaxDist, 0.0, 1.0);
-
- var pulse: f32 = 1.0;
- if (uniforms.pulsating > 0.5) {
- let pulseCenter = (uniforms.pulsatingMin + uniforms.pulsatingMax) * 0.5;
- let pulseAmplitude = (uniforms.pulsatingMax - uniforms.pulsatingMin) * 0.5;
- pulse = pulseCenter + pulseAmplitude * sin(time * speed * 3.0);
- }
-
- let timeSpeed = time * speed;
- let wave = 0.5
- + 0.25 * sin(cosAngle * 28.0 + side * 8.0 + timeSpeed * 1.2)
- + 0.18 * cos(cosAngle * 22.0 - timeSpeed * 0.95 + side * 6.0)
- + 0.12 * sin(cosAngle * 35.0 + timeSpeed * 1.6 + asymNoise * 3.0);
- let minStrength = 0.14 + asymNoise * 0.06;
- let baseStrength = max(clamp(wave * (0.85 + asymNoise * 0.3), 0.0, 1.0), minStrength);
-
- let lightStrength = baseStrength * lengthFalloff * fadeFalloff * spreadFactor * pulse * flicker;
- let ambientLight = (0.06 + asymNoise * 0.04) * lengthFalloff * fadeFalloff * spreadFactor;
-
- return max(lightStrength, ambientLight);
- }
-
- fn particle(coord: vec2, particlePos: vec2, size: f32) -> f32 {
- let delta = coord - particlePos;
- let distSq = dot(delta, delta);
- let sizeSq = size * size;
-
- if (distSq > sizeSq * 9.0) {
- return 0.0;
- }
-
- let d = sqrt(distSq);
- let core = smoothstep(size, size * 0.35, d);
- let glow = smoothstep(size * 3.0, 0.0, d) * 0.55;
- return core + glow;
- }
-
- fn renderParticles(coord: vec2, lightSource: vec2, lightDir: vec2) -> f32 {
- if (uniforms.particlesEnabled < 0.5 || uniforms.particleAmount < 1.0) {
- return 0.0;
- }
-
- var particleSum: f32 = 0.0;
- let particleCount = i32(uniforms.particleAmount);
- let time = uniforms.iTime * uniforms.particleSpeed;
- let perpDir = vec2(-lightDir.y, lightDir.x);
- let baseSize = min(uniforms.iResolution.x, uniforms.iResolution.y);
- let maxDist = max(baseSize * uniforms.lightLength, 1.0);
- let spreadScale = uniforms.lightSpread * baseSize * 0.65;
- let coneHalfWidth = uniforms.lightSpread * baseSize * 0.55;
-
- for (var i: i32 = 0; i < particleCount; i = i + 1) {
- let fi = f32(i);
- let seed = vec2(fi * 127.1, fi * 311.7);
- let rnd = hash2(seed);
-
- let lifeDuration = 2.0 + hash(seed + vec2(19.0, 73.0)) * 3.0;
- let lifeOffset = hash(seed + vec2(91.0, 37.0)) * lifeDuration;
- let lifeProgress = fract((time + lifeOffset) / lifeDuration);
-
- let fadeIn = smoothstep(0.0, 0.2, lifeProgress);
- let fadeOut = 1.0 - smoothstep(0.8, 1.0, lifeProgress);
- let lifeFade = fadeIn * fadeOut;
- if (lifeFade < 0.01) {
- continue;
- }
-
- let alongLight = rnd.x * maxDist * 0.8;
- let perpOffset = (rnd.y - 0.5) * spreadScale;
-
- let floatPhase = rnd.y * 6.28318 + fi * 0.37;
- let floatSpeed = 0.35 + rnd.x * 0.9;
- let drift = vec2(
- sin(time * floatSpeed + floatPhase),
- cos(time * floatSpeed * 0.85 + floatPhase * 1.3)
- ) * uniforms.particleDrift * baseSize * 0.08;
-
- let wobble = vec2(
- sin(time * 1.4 + floatPhase * 2.1),
- cos(time * 1.1 + floatPhase * 1.6)
- ) * uniforms.particleDrift * baseSize * 0.03;
-
- let flowOffset = (rnd.x - 0.5) * baseSize * 0.12 + fract(time * 0.06 + rnd.y) * baseSize * 0.1;
-
- let basePos = lightSource + lightDir * (alongLight + flowOffset) + perpDir * perpOffset + drift + wobble;
-
- let toParticle = basePos - lightSource;
- let projLen = dot(toParticle, lightDir);
- if (projLen < 0.0 || projLen > maxDist) {
- continue;
- }
-
- let sideDist = abs(dot(toParticle, perpDir));
- if (sideDist > coneHalfWidth) {
- continue;
- }
-
- let size = mix(uniforms.particleSizeMin, uniforms.particleSizeMax, rnd.x);
- let twinkle = 0.7 + 0.3 * sin(time * (1.5 + rnd.y * 2.0) + floatPhase);
- let distFade = 1.0 - smoothstep(maxDist * 0.2, maxDist * 0.95, projLen);
- if (distFade < 0.01) {
- continue;
- }
-
- let p = particle(coord, basePos, size);
- if (p > 0.0) {
- particleSum = particleSum + p * lifeFade * twinkle * distFade * uniforms.particleOpacity;
- if (particleSum >= 1.0) {
- break;
- }
- }
- }
-
- return min(particleSum, 1.0);
- }
-
- @fragment
- fn fragmentMain(@builtin(position) fragCoord: vec4, @location(0) vUv: vec2) -> @location(0) vec4 {
- let coord = vec2(fragCoord.x, fragCoord.y);
-
- let normalizedX = (coord.x / uniforms.iResolution.x) - 0.5;
- let widthOffset = -normalizedX * uniforms.sourceWidth * uniforms.iResolution.x;
-
- let perpDir = vec2(-uniforms.lightDir.y, uniforms.lightDir.x);
- let adjustedLightPos = uniforms.lightPos + perpDir * widthOffset;
-
- let lightValue = lightStrengthCombined(adjustedLightPos, uniforms.lightDir, coord);
-
- if (lightValue < 0.001) {
- let particles = renderParticles(coord, adjustedLightPos, uniforms.lightDir);
- if (particles < 0.001) {
- return vec4(0.0, 0.0, 0.0, 0.0);
- }
- let particleBrightness = particles * 1.8;
- return vec4(uniforms.color * particleBrightness, particles * 0.9);
- }
-
- var fragColor = vec4(lightValue, lightValue, lightValue, lightValue);
-
- if (uniforms.noiseAmount > 0.01) {
- let n = fastNoise(coord * 0.5 + uniforms.iTime * 0.5);
- let grain = mix(1.0, n, uniforms.noiseAmount * 0.5);
- fragColor = vec4(fragColor.rgb * grain, fragColor.a);
- }
-
- let brightness = 1.0 - (coord.y / uniforms.iResolution.y);
- fragColor = vec4(
- fragColor.x * (0.15 + brightness * 0.85),
- fragColor.y * (0.35 + brightness * 0.65),
- fragColor.z * (0.55 + brightness * 0.45),
- fragColor.a
- );
-
- if (abs(uniforms.saturation - 1.0) > 0.01) {
- let gray = dot(fragColor.rgb, vec3(0.299, 0.587, 0.114));
- fragColor = vec4(mix(vec3(gray), fragColor.rgb, uniforms.saturation), fragColor.a);
- }
-
- fragColor = vec4(fragColor.rgb * uniforms.color, fragColor.a);
-
- let particles = renderParticles(coord, adjustedLightPos, uniforms.lightDir);
- if (particles > 0.001) {
- let particleBrightness = particles * 1.8;
- fragColor = vec4(fragColor.rgb + uniforms.color * particleBrightness, max(fragColor.a, particles * 0.9));
- }
-
- return fragColor;
- }
-`
-
-const UNIFORM_BUFFER_SIZE = 144
-
-function updateUniformBuffer(buffer: Float32Array, data: UniformData): void {
- buffer[0] = data.iTime
- buffer[2] = data.iResolution[0]
- buffer[3] = data.iResolution[1]
- buffer[4] = data.lightPos[0]
- buffer[5] = data.lightPos[1]
- buffer[6] = data.lightDir[0]
- buffer[7] = data.lightDir[1]
- buffer[8] = data.color[0]
- buffer[9] = data.color[1]
- buffer[10] = data.color[2]
- buffer[11] = data.speed
- buffer[12] = data.lightSpread
- buffer[13] = data.lightLength
- buffer[14] = data.sourceWidth
- buffer[15] = data.pulsating
- buffer[16] = data.pulsatingMin
- buffer[17] = data.pulsatingMax
- buffer[18] = data.fadeDistance
- buffer[19] = data.saturation
- buffer[20] = data.noiseAmount
- buffer[21] = data.distortion
- buffer[22] = data.particlesEnabled
- buffer[23] = data.particleAmount
- buffer[24] = data.particleSizeMin
- buffer[25] = data.particleSizeMax
- buffer[26] = data.particleSpeed
- buffer[27] = data.particleOpacity
- buffer[28] = data.particleDrift
-}
-
-export default function Spotlight(props: SpotlightProps) {
- let containerRef: HTMLDivElement | undefined
- let canvasRef: HTMLCanvasElement | null = null
- let deviceRef: GPUDevice | null = null
- let contextRef: GPUCanvasContext | null = null
- let pipelineRef: GPURenderPipeline | null = null
- let uniformBufferRef: GPUBuffer | null = null
- let bindGroupRef: GPUBindGroup | null = null
- let animationIdRef: number | null = null
- let cleanupFunctionRef: (() => void) | null = null
- let uniformDataRef: UniformData | null = null
- let uniformArrayRef: Float32Array | null = null
- let configRef: SpotlightConfig = props.config()
- let frameCount = 0
-
- const [isVisible, setIsVisible] = createSignal(false)
-
- createEffect(() => {
- configRef = props.config()
- })
-
- onMount(() => {
- if (!containerRef) return
-
- const observer = new IntersectionObserver(
- (entries) => {
- const entry = entries[0]
- setIsVisible(entry.isIntersecting)
- },
- { threshold: 0.1 },
- )
-
- observer.observe(containerRef)
-
- onCleanup(() => {
- observer.disconnect()
- })
- })
-
- createEffect(() => {
- const visible = isVisible()
- const config = props.config()
- if (!visible || !containerRef) {
- return
- }
-
- if (cleanupFunctionRef) {
- cleanupFunctionRef()
- cleanupFunctionRef = null
- }
-
- const initializeWebGPU = async () => {
- if (!containerRef) {
- return
- }
-
- await new Promise((resolve) => setTimeout(resolve, 10))
-
- if (!containerRef) {
- return
- }
-
- if (!navigator.gpu) {
- console.warn("WebGPU is not supported in this browser")
- return
- }
-
- const adapter = await navigator.gpu.requestAdapter({
- powerPreference: "high-performance",
- })
- if (!adapter) {
- console.warn("Failed to get WebGPU adapter")
- return
- }
-
- const device = await adapter.requestDevice()
- deviceRef = device
-
- const canvas = document.createElement("canvas")
- canvas.style.width = "100%"
- canvas.style.height = "100%"
- canvasRef = canvas
-
- while (containerRef.firstChild) {
- containerRef.removeChild(containerRef.firstChild)
- }
- containerRef.appendChild(canvas)
-
- const context = canvas.getContext("webgpu")
- if (!context) {
- console.warn("Failed to get WebGPU context")
- return
- }
- contextRef = context
-
- const presentationFormat = navigator.gpu.getPreferredCanvasFormat()
- context.configure({
- device,
- format: presentationFormat,
- alphaMode: "premultiplied",
- })
-
- const shaderModule = device.createShaderModule({
- code: WGSL_SHADER,
- })
-
- const uniformBuffer = device.createBuffer({
- size: UNIFORM_BUFFER_SIZE,
- usage: GPUBufferUsage.UNIFORM | GPUBufferUsage.COPY_DST,
- })
- uniformBufferRef = uniformBuffer
-
- const bindGroupLayout = device.createBindGroupLayout({
- entries: [
- {
- binding: 0,
- visibility: GPUShaderStage.VERTEX | GPUShaderStage.FRAGMENT,
- buffer: { type: "uniform" },
- },
- ],
- })
-
- const bindGroup = device.createBindGroup({
- layout: bindGroupLayout,
- entries: [
- {
- binding: 0,
- resource: { buffer: uniformBuffer },
- },
- ],
- })
- bindGroupRef = bindGroup
-
- const pipelineLayout = device.createPipelineLayout({
- bindGroupLayouts: [bindGroupLayout],
- })
-
- const pipeline = device.createRenderPipeline({
- layout: pipelineLayout,
- vertex: {
- module: shaderModule,
- entryPoint: "vertexMain",
- },
- fragment: {
- module: shaderModule,
- entryPoint: "fragmentMain",
- targets: [
- {
- format: presentationFormat,
- blend: {
- color: {
- srcFactor: "src-alpha",
- dstFactor: "one-minus-src-alpha",
- operation: "add",
- },
- alpha: {
- srcFactor: "one",
- dstFactor: "one-minus-src-alpha",
- operation: "add",
- },
- },
- },
- ],
- },
- primitive: {
- topology: "triangle-list",
- },
- })
- pipelineRef = pipeline
-
- const { clientWidth: wCSS, clientHeight: hCSS } = containerRef
- const dpr = Math.min(window.devicePixelRatio, 2)
- const w = wCSS * dpr
- const h = hCSS * dpr
- const { anchor, dir } = getAnchorAndDir(config.placement, w, h)
-
- uniformDataRef = {
- iTime: 0,
- iResolution: [w, h],
- lightPos: anchor,
- lightDir: dir,
- color: hexToRgb(config.color),
- speed: config.speed,
- lightSpread: config.spread,
- lightLength: config.length,
- sourceWidth: config.width,
- pulsating: config.pulsating !== false ? 1.0 : 0.0,
- pulsatingMin: config.pulsating !== false ? config.pulsating[0] : 1.0,
- pulsatingMax: config.pulsating !== false ? config.pulsating[1] : 1.0,
- fadeDistance: config.distance,
- saturation: config.saturation,
- noiseAmount: config.noiseAmount,
- distortion: config.distortion,
- particlesEnabled: config.particles.enabled ? 1.0 : 0.0,
- particleAmount: config.particles.amount,
- particleSizeMin: config.particles.size[0],
- particleSizeMax: config.particles.size[1],
- particleSpeed: config.particles.speed,
- particleOpacity: config.particles.opacity,
- particleDrift: config.particles.drift,
- }
-
- const updatePlacement = () => {
- if (!containerRef || !canvasRef || !uniformDataRef) {
- return
- }
-
- const dpr = Math.min(window.devicePixelRatio, 2)
- const { clientWidth: wCSS, clientHeight: hCSS } = containerRef
- const w = Math.floor(wCSS * dpr)
- const h = Math.floor(hCSS * dpr)
-
- canvasRef.width = w
- canvasRef.height = h
-
- uniformDataRef.iResolution = [w, h]
-
- const { anchor, dir } = getAnchorAndDir(configRef.placement, w, h)
- uniformDataRef.lightPos = anchor
- uniformDataRef.lightDir = dir
- }
-
- const loop = (t: number) => {
- if (!deviceRef || !contextRef || !pipelineRef || !uniformBufferRef || !bindGroupRef || !uniformDataRef) {
- return
- }
-
- const timeSeconds = t * 0.001
- uniformDataRef.iTime = timeSeconds
- frameCount++
-
- if (props.onAnimationFrame && frameCount % 2 === 0) {
- const pulsatingMin = configRef.pulsating !== false ? configRef.pulsating[0] : 1.0
- const pulsatingMax = configRef.pulsating !== false ? configRef.pulsating[1] : 1.0
- const pulseCenter = (pulsatingMin + pulsatingMax) * 0.5
- const pulseAmplitude = (pulsatingMax - pulsatingMin) * 0.5
- const pulseValue =
- configRef.pulsating !== false
- ? pulseCenter + pulseAmplitude * Math.sin(timeSeconds * configRef.speed * 3.0)
- : 1.0
-
- const baseIntensity1 = 0.45 + 0.15 * Math.sin(timeSeconds * configRef.speed * 1.5)
- const baseIntensity2 = 0.3 + 0.2 * Math.cos(timeSeconds * configRef.speed * 1.1)
- const intensity = Math.max((baseIntensity1 + baseIntensity2) * pulseValue, 0.55)
-
- props.onAnimationFrame({
- time: timeSeconds,
- intensity,
- pulseValue: Math.max(pulseValue, 0.9),
- })
- }
-
- try {
- if (!uniformArrayRef) {
- uniformArrayRef = new Float32Array(36)
- }
- updateUniformBuffer(uniformArrayRef, uniformDataRef)
- deviceRef.queue.writeBuffer(uniformBufferRef, 0, uniformArrayRef.buffer)
-
- const commandEncoder = deviceRef.createCommandEncoder()
-
- const textureView = contextRef.getCurrentTexture().createView()
-
- const renderPass = commandEncoder.beginRenderPass({
- colorAttachments: [
- {
- view: textureView,
- clearValue: { r: 0, g: 0, b: 0, a: 0 },
- loadOp: "clear",
- storeOp: "store",
- },
- ],
- })
-
- renderPass.setPipeline(pipelineRef)
- renderPass.setBindGroup(0, bindGroupRef)
- renderPass.draw(3)
- renderPass.end()
-
- deviceRef.queue.submit([commandEncoder.finish()])
-
- animationIdRef = requestAnimationFrame(loop)
- } catch (error) {
- console.warn("WebGPU rendering error:", error)
- return
- }
- }
-
- window.addEventListener("resize", updatePlacement)
- updatePlacement()
- animationIdRef = requestAnimationFrame(loop)
-
- cleanupFunctionRef = () => {
- if (animationIdRef) {
- cancelAnimationFrame(animationIdRef)
- animationIdRef = null
- }
-
- window.removeEventListener("resize", updatePlacement)
-
- if (uniformBufferRef) {
- uniformBufferRef.destroy()
- uniformBufferRef = null
- }
-
- if (deviceRef) {
- deviceRef.destroy()
- deviceRef = null
- }
-
- if (canvasRef && canvasRef.parentNode) {
- canvasRef.parentNode.removeChild(canvasRef)
- }
-
- canvasRef = null
- contextRef = null
- pipelineRef = null
- bindGroupRef = null
- uniformDataRef = null
- }
- }
-
- void initializeWebGPU()
-
- onCleanup(() => {
- if (cleanupFunctionRef) {
- cleanupFunctionRef()
- cleanupFunctionRef = null
- }
- })
- })
-
- createEffect(() => {
- if (!uniformDataRef || !containerRef) {
- return
- }
-
- const config = props.config()
-
- uniformDataRef.color = hexToRgb(config.color)
- uniformDataRef.speed = config.speed
- uniformDataRef.lightSpread = config.spread
- uniformDataRef.lightLength = config.length
- uniformDataRef.sourceWidth = config.width
- uniformDataRef.pulsating = config.pulsating !== false ? 1.0 : 0.0
- uniformDataRef.pulsatingMin = config.pulsating !== false ? config.pulsating[0] : 1.0
- uniformDataRef.pulsatingMax = config.pulsating !== false ? config.pulsating[1] : 1.0
- uniformDataRef.fadeDistance = config.distance
- uniformDataRef.saturation = config.saturation
- uniformDataRef.noiseAmount = config.noiseAmount
- uniformDataRef.distortion = config.distortion
- uniformDataRef.particlesEnabled = config.particles.enabled ? 1.0 : 0.0
- uniformDataRef.particleAmount = config.particles.amount
- uniformDataRef.particleSizeMin = config.particles.size[0]
- uniformDataRef.particleSizeMax = config.particles.size[1]
- uniformDataRef.particleSpeed = config.particles.speed
- uniformDataRef.particleOpacity = config.particles.opacity
- uniformDataRef.particleDrift = config.particles.drift
-
- const dpr = Math.min(window.devicePixelRatio, 2)
- const { clientWidth: wCSS, clientHeight: hCSS } = containerRef
- const { anchor, dir } = getAnchorAndDir(config.placement, wCSS * dpr, hCSS * dpr)
- uniformDataRef.lightPos = anchor
- uniformDataRef.lightDir = dir
- })
-
- return (
-
- )
-}
diff --git a/packages/console/app/src/i18n/ar.ts b/packages/console/app/src/i18n/ar.ts
index b1e0be7e83e..53b6ad73c0d 100644
--- a/packages/console/app/src/i18n/ar.ts
+++ b/packages/console/app/src/i18n/ar.ts
@@ -298,32 +298,6 @@ export const dict = {
"go.faq.a10":
"قد تكون مؤهلًا لاسترداد أموالك إذا تم الخصم خلال آخر 14 يومًا ولم تستخدم مخصصات Go خلال فترة الفوترة تلك. {{contact}} لطلب استرداد الأموال.",
- "black.meta.title": "OpenCode Black | الوصول إلى أفضل نماذج البرمجة في العالم",
- "black.meta.description": "احصل على وصول إلى Claude، GPT، Gemini والمزيد مع خطط اشتراك OpenCode Black.",
- "black.hero.title": "الوصول إلى أفضل نماذج البرمجة في العالم",
- "black.hero.subtitle": "بما في ذلك Claude، GPT، Gemini والمزيد",
- "black.title": "OpenCode Black | الأسعار",
- "black.paused": "التسجيل في خطة Black متوقف مؤقتًا.",
- "black.plan.icon20": "خطة Black 20",
- "black.plan.icon100": "خطة Black 100",
- "black.plan.icon200": "خطة Black 200",
- "black.plan.multiplier100": "استخدام أكثر بـ 5 أضعاف من Black 20",
- "black.plan.multiplier200": "استخدام أكثر بـ 20 ضعفًا من Black 20",
- "black.price.perMonth": "شهريًا",
- "black.price.perPersonBilledMonthly": "للشخص الواحد، يُفوتر شهريًا",
- "black.terms.1": "لن يبدأ اشتراكك على الفور",
- "black.terms.2": "ستتم إضافتك إلى قائمة الانتظار وتفعيلك قريبًا",
- "black.terms.3": "لن يتم خصم المبلغ من بطاقتك إلا عند تفعيل اشتراكك",
- "black.terms.4": "تطبق حدود الاستخدام، وقد يصل الاستخدام المؤتمت بكثافة إلى الحدود بشكل أسرع",
- "black.terms.5": "الاشتراكات للأفراد، تواصل مع قسم المؤسسات للفرق",
- "black.terms.6": "قد يتم تعديل الحدود وقد يتم إيقاف الخطط في المستقبل",
- "black.terms.7": "ألغِ اشتراكك في أي وقت",
- "black.finePrint.beforeTerms": "الأسعار المعروضة لا تشمل الضرائب المطبقة",
- "black.finePrint.terms": "شروط الخدمة",
- "black.workspace.title": "OpenCode Black | اختر مساحة العمل",
- "black.workspace.selectPlan": "اختر مساحة عمل لهذه الخطة",
- "black.workspace.name": "مساحة العمل {{n}}",
-
"download.title": "OpenCode | تنزيل",
"download.meta.description": "نزّل OpenCode لـ macOS، Windows، وLinux",
"download.section.terminal": "OpenCode للطرفية",
diff --git a/packages/console/app/src/i18n/br.ts b/packages/console/app/src/i18n/br.ts
index 69e17bdb53d..91db8043ee0 100644
--- a/packages/console/app/src/i18n/br.ts
+++ b/packages/console/app/src/i18n/br.ts
@@ -307,32 +307,6 @@ export const dict = {
"go.faq.a10":
"Você pode ter direito a um reembolso se a cobrança foi feita nos últimos 14 dias e você não usou sua cota do Go durante esse período de faturamento. {{contact}} para solicitar um reembolso.",
- "black.meta.title": "OpenCode Black | Acesse os melhores modelos de codificação do mundo",
- "black.meta.description": "Tenha acesso ao Claude, GPT, Gemini e mais com os planos de assinatura OpenCode Black.",
- "black.hero.title": "Acesse os melhores modelos de codificação do mundo",
- "black.hero.subtitle": "Incluindo Claude, GPT, Gemini e mais",
- "black.title": "OpenCode Black | Preços",
- "black.paused": "A inscrição no plano Black está temporariamente pausada.",
- "black.plan.icon20": "Plano Black 20",
- "black.plan.icon100": "Plano Black 100",
- "black.plan.icon200": "Plano Black 200",
- "black.plan.multiplier100": "5x mais uso que o Black 20",
- "black.plan.multiplier200": "20x mais uso que o Black 20",
- "black.price.perMonth": "por mês",
- "black.price.perPersonBilledMonthly": "por pessoa faturado mensalmente",
- "black.terms.1": "Sua assinatura não começará imediatamente",
- "black.terms.2": "Você será adicionado à lista de espera e ativado em breve",
- "black.terms.3": "Seu cartão só será cobrado quando sua assinatura for ativada",
- "black.terms.4": "Limites de uso se aplicam; uso fortemente automatizado pode atingir os limites mais cedo",
- "black.terms.5": "Assinaturas são para indivíduos, contate Enterprise para equipes",
- "black.terms.6": "Limites podem ser ajustados e planos podem ser descontinuados no futuro",
- "black.terms.7": "Cancele sua assinatura a qualquer momento",
- "black.finePrint.beforeTerms": "Os preços mostrados não incluem impostos aplicáveis",
- "black.finePrint.terms": "Termos de Serviço",
- "black.workspace.title": "OpenCode Black | Selecionar Workspace",
- "black.workspace.selectPlan": "Selecione um workspace para este plano",
- "black.workspace.name": "Workspace {{n}}",
-
"download.title": "OpenCode | Baixar",
"download.meta.description": "Baixe o OpenCode para macOS, Windows e Linux",
"download.section.terminal": "OpenCode Terminal",
diff --git a/packages/console/app/src/i18n/da.ts b/packages/console/app/src/i18n/da.ts
index 46a99632673..80bd8a97d2d 100644
--- a/packages/console/app/src/i18n/da.ts
+++ b/packages/console/app/src/i18n/da.ts
@@ -305,32 +305,6 @@ export const dict = {
"go.faq.a10":
"Du kan muligvis få en refusion, hvis opkrævningen blev foretaget inden for de seneste 14 dage, og du ikke har brugt din Go-kvote i den pågældende faktureringsperiode. {{contact}} for at anmode om en refusion.",
- "black.meta.title": "OpenCode Black | Få adgang til verdens bedste kodningsmodeller",
- "black.meta.description": "Få adgang til Claude, GPT, Gemini og mere med OpenCode Black-abonnementer.",
- "black.hero.title": "Få adgang til verdens bedste kodningsmodeller",
- "black.hero.subtitle": "Inklusive Claude, GPT, Gemini og mere",
- "black.title": "OpenCode Black | Priser",
- "black.paused": "Black-plantilmelding er midlertidigt sat på pause.",
- "black.plan.icon20": "Black 20-plan",
- "black.plan.icon100": "Black 100-plan",
- "black.plan.icon200": "Black 200-plan",
- "black.plan.multiplier100": "5x mere brug end Black 20",
- "black.plan.multiplier200": "20x mere brug end Black 20",
- "black.price.perMonth": "pr. måned",
- "black.price.perPersonBilledMonthly": "pr. person faktureret månedligt",
- "black.terms.1": "Dit abonnement starter ikke med det samme",
- "black.terms.2": "Du bliver sat på ventelisten og aktiveret snart",
- "black.terms.3": "Dit kort debiteres først, når dit abonnement er aktiveret",
- "black.terms.4": "Forbrugsgrænser gælder, tung automatiseret brug kan nå grænserne hurtigere",
- "black.terms.5": "Abonnementer er for enkeltpersoner, kontakt Enterprise for teams",
- "black.terms.6": "Grænser kan justeres, og planer kan blive udfaset i fremtiden",
- "black.terms.7": "Opsig dit abonnement når som helst",
- "black.finePrint.beforeTerms": "Viste priser inkluderer ikke gældende skat",
- "black.finePrint.terms": "Servicevilkår",
- "black.workspace.title": "OpenCode Black | Vælg workspace",
- "black.workspace.selectPlan": "Vælg et workspace til denne plan",
- "black.workspace.name": "Workspace {{n}}",
-
"download.title": "OpenCode | Download",
"download.meta.description": "Download OpenCode til macOS, Windows og Linux",
"download.section.terminal": "OpenCode Terminal",
diff --git a/packages/console/app/src/i18n/de.ts b/packages/console/app/src/i18n/de.ts
index b1674cf59b1..66f067e6e4b 100644
--- a/packages/console/app/src/i18n/de.ts
+++ b/packages/console/app/src/i18n/de.ts
@@ -307,32 +307,6 @@ export const dict = {
"go.faq.a10":
"Du hast möglicherweise Anspruch auf eine Rückerstattung, wenn die Zahlung innerhalb der letzten 14 Tage erfolgt ist und du dein Go-Kontingent in diesem Abrechnungszeitraum nicht genutzt hast. {{contact}}, um eine Rückerstattung anzufordern.",
- "black.meta.title": "OpenCode Black | Zugriff auf die weltweit besten Coding-Modelle",
- "black.meta.description": "Erhalte Zugriff auf Claude, GPT, Gemini und mehr mit OpenCode Black Abos.",
- "black.hero.title": "Zugriff auf die weltweit besten Coding-Modelle",
- "black.hero.subtitle": "Einschließlich Claude, GPT, Gemini und mehr",
- "black.title": "OpenCode Black | Preise",
- "black.paused": "Die Anmeldung zum Black-Plan ist vorübergehend pausiert.",
- "black.plan.icon20": "Black 20 Plan",
- "black.plan.icon100": "Black 100 Plan",
- "black.plan.icon200": "Black 200 Plan",
- "black.plan.multiplier100": "5x mehr Nutzung als Black 20",
- "black.plan.multiplier200": "20x mehr Nutzung als Black 20",
- "black.price.perMonth": "pro Monat",
- "black.price.perPersonBilledMonthly": "pro Person, monatlich abgerechnet",
- "black.terms.1": "Dein Abonnement startet nicht sofort",
- "black.terms.2": "Du wirst auf die Warteliste gesetzt und bald freigeschaltet",
- "black.terms.3": "Deine Karte wird erst belastet, wenn dein Abonnement aktiviert ist",
- "black.terms.4": "Nutzungslimits gelten, stark automatisierte Nutzung kann Limits schneller erreichen",
- "black.terms.5": "Abonnements sind für Einzelpersonen, kontaktiere Enterprise für Teams",
- "black.terms.6": "Limits können angepasst werden und Pläne können in Zukunft eingestellt werden",
- "black.terms.7": "Kündige dein Abonnement jederzeit",
- "black.finePrint.beforeTerms": "Angezeigte Preise enthalten keine anfallenden Steuern",
- "black.finePrint.terms": "Nutzungsbedingungen",
- "black.workspace.title": "OpenCode Black | Workspace wählen",
- "black.workspace.selectPlan": "Wähle einen Workspace für diesen Plan",
- "black.workspace.name": "Workspace {{n}}",
-
"download.title": "OpenCode | Download",
"download.meta.description": "Lade OpenCode für macOS, Windows und Linux herunter",
"download.section.terminal": "OpenCode Terminal",
diff --git a/packages/console/app/src/i18n/en.ts b/packages/console/app/src/i18n/en.ts
index c4e6424a57d..283543cfe3f 100644
--- a/packages/console/app/src/i18n/en.ts
+++ b/packages/console/app/src/i18n/en.ts
@@ -303,32 +303,6 @@ export const dict = {
"go.faq.a10":
"You may qualify for a refund if the charge was made within the last 14 days and you have not used your Go allowance during that billing period. {{contact}} to request a refund.",
- "black.meta.title": "OpenCode Black | Access all the world's best coding models",
- "black.meta.description": "Get access to Claude, GPT, Gemini and more with OpenCode Black subscription plans.",
- "black.hero.title": "Access all the world's best coding models",
- "black.hero.subtitle": "Including Claude, GPT, Gemini and more",
- "black.title": "OpenCode Black | Pricing",
- "black.paused": "Black plan enrollment is temporarily paused.",
- "black.plan.icon20": "Black 20 plan",
- "black.plan.icon100": "Black 100 plan",
- "black.plan.icon200": "Black 200 plan",
- "black.plan.multiplier100": "5x more usage than Black 20",
- "black.plan.multiplier200": "20x more usage than Black 20",
- "black.price.perMonth": "per month",
- "black.price.perPersonBilledMonthly": "per person billed monthly",
- "black.terms.1": "Your subscription will not start immediately",
- "black.terms.2": "You will be added to the waitlist and activated soon",
- "black.terms.3": "Your card will only be charged when your subscription is activated",
- "black.terms.4": "Usage limits apply, heavily automated use may reach limits sooner",
- "black.terms.5": "Subscriptions are for individuals, contact Enterprise for teams",
- "black.terms.6": "Limits may be adjusted and plans may be discontinued in the future",
- "black.terms.7": "Cancel your subscription at any time",
- "black.finePrint.beforeTerms": "Prices shown don't include applicable tax",
- "black.finePrint.terms": "Terms of Service",
- "black.workspace.title": "OpenCode Black | Select Workspace",
- "black.workspace.selectPlan": "Select a workspace for this plan",
- "black.workspace.name": "Workspace {{n}}",
-
"download.title": "OpenCode | Download",
"download.meta.description": "Download OpenCode for macOS, Windows, and Linux",
"download.section.terminal": "OpenCode Terminal",
diff --git a/packages/console/app/src/i18n/es.ts b/packages/console/app/src/i18n/es.ts
index 6a17406530e..df16d53abf0 100644
--- a/packages/console/app/src/i18n/es.ts
+++ b/packages/console/app/src/i18n/es.ts
@@ -308,32 +308,6 @@ export const dict = {
"go.faq.a10":
"Podrías tener derecho a un reembolso si el cargo se realizó en los últimos 14 días y no has utilizado tu cuota de Go durante ese periodo de facturación. {{contact}} para solicitar un reembolso.",
- "black.meta.title": "OpenCode Black | Accede a los mejores modelos de codificación del mundo",
- "black.meta.description": "Obtén acceso a Claude, GPT, Gemini y más con los planes de suscripción de OpenCode Black.",
- "black.hero.title": "Accede a los mejores modelos de codificación del mundo",
- "black.hero.subtitle": "Incluyendo Claude, GPT, Gemini y más",
- "black.title": "OpenCode Black | Precios",
- "black.paused": "La inscripción al plan Black está temporalmente pausada.",
- "black.plan.icon20": "Plan Black 20",
- "black.plan.icon100": "Plan Black 100",
- "black.plan.icon200": "Plan Black 200",
- "black.plan.multiplier100": "5x más uso que Black 20",
- "black.plan.multiplier200": "20x más uso que Black 20",
- "black.price.perMonth": "al mes",
- "black.price.perPersonBilledMonthly": "por persona facturado mensualmente",
- "black.terms.1": "Tu suscripción no comenzará inmediatamente",
- "black.terms.2": "Serás añadido a la lista de espera y activado pronto",
- "black.terms.3": "Tu tarjeta solo se cargará cuando tu suscripción se active",
- "black.terms.4": "Aplican límites de uso, el uso fuertemente automatizado puede alcanzar los límites antes",
- "black.terms.5": "Las suscripciones son para individuos, contacta a Enterprise para equipos",
- "black.terms.6": "Los límites pueden ajustarse y los planes pueden discontinuarse en el futuro",
- "black.terms.7": "Cancela tu suscripción en cualquier momento",
- "black.finePrint.beforeTerms": "Los precios mostrados no incluyen impuestos aplicables",
- "black.finePrint.terms": "Términos de Servicio",
- "black.workspace.title": "OpenCode Black | Seleccionar Espacio de Trabajo",
- "black.workspace.selectPlan": "Selecciona un espacio de trabajo para este plan",
- "black.workspace.name": "Espacio de trabajo {{n}}",
-
"download.title": "OpenCode | Descargar",
"download.meta.description": "Descarga OpenCode para macOS, Windows y Linux",
"download.section.terminal": "OpenCode Terminal",
diff --git a/packages/console/app/src/i18n/fr.ts b/packages/console/app/src/i18n/fr.ts
index 8589e587521..8c9c625400f 100644
--- a/packages/console/app/src/i18n/fr.ts
+++ b/packages/console/app/src/i18n/fr.ts
@@ -310,33 +310,6 @@ export const dict = {
"go.faq.a10":
"Vous pourriez avoir droit à un remboursement si le paiement a été effectué au cours des 14 derniers jours et que vous n’avez pas utilisé votre quota Go pendant cette période de facturation. {{contact}} pour demander un remboursement.",
- "black.meta.title": "OpenCode Black | Accédez aux meilleurs modèles de code au monde",
- "black.meta.description": "Accédez à Claude, GPT, Gemini et plus avec les forfaits d'abonnement OpenCode Black.",
- "black.hero.title": "Accédez aux meilleurs modèles de code au monde",
- "black.hero.subtitle": "Y compris Claude, GPT, Gemini et plus",
- "black.title": "OpenCode Black | Tarification",
- "black.paused": "L'inscription au plan Black est temporairement suspendue.",
- "black.plan.icon20": "Forfait Black 20",
- "black.plan.icon100": "Forfait Black 100",
- "black.plan.icon200": "Forfait Black 200",
- "black.plan.multiplier100": "5x plus d'utilisation que Black 20",
- "black.plan.multiplier200": "20x plus d'utilisation que Black 20",
- "black.price.perMonth": "par mois",
- "black.price.perPersonBilledMonthly": "par personne facturé mensuellement",
- "black.terms.1": "Votre abonnement ne commencera pas immédiatement",
- "black.terms.2": "Vous serez ajouté à la liste d'attente et activé bientôt",
- "black.terms.3": "Votre carte ne sera débitée que lorsque votre abonnement sera activé",
- "black.terms.4":
- "Des limites d'utilisation s'appliquent, une utilisation fortement automatisée peut atteindre les limites plus tôt",
- "black.terms.5": "Les abonnements sont pour les individus, contactez Enterprise pour les équipes",
- "black.terms.6": "Les limites peuvent être ajustées et les forfaits peuvent être interrompus à l'avenir",
- "black.terms.7": "Annulez votre abonnement à tout moment",
- "black.finePrint.beforeTerms": "Les prix affichés n'incluent pas les taxes applicables",
- "black.finePrint.terms": "Conditions d'utilisation",
- "black.workspace.title": "OpenCode Black | Sélectionner un espace de travail",
- "black.workspace.selectPlan": "Sélectionnez un espace de travail pour ce forfait",
- "black.workspace.name": "Espace de travail {{n}}",
-
"download.title": "OpenCode | Téléchargement",
"download.meta.description": "Téléchargez OpenCode pour macOS, Windows et Linux",
"download.section.terminal": "OpenCode Terminal",
diff --git a/packages/console/app/src/i18n/it.ts b/packages/console/app/src/i18n/it.ts
index fd40e501252..5633acce4cd 100644
--- a/packages/console/app/src/i18n/it.ts
+++ b/packages/console/app/src/i18n/it.ts
@@ -305,34 +305,6 @@ export const dict = {
"go.faq.a10":
"Potresti avere diritto a un rimborso se l'addebito è stato effettuato negli ultimi 14 giorni e non hai utilizzato la tua quota Go durante quel periodo di fatturazione. {{contact}} per richiedere un rimborso.",
- "black.meta.title": "OpenCode Black | Accedi ai migliori modelli di coding al mondo",
- "black.meta.description":
- "Ottieni l'accesso a Claude, GPT, Gemini e altri con i piani di abbonamento OpenCode Black.",
- "black.hero.title": "Accedi ai migliori modelli di coding al mondo",
- "black.hero.subtitle": "Inclusi Claude, GPT, Gemini e altri",
- "black.title": "OpenCode Black | Prezzi",
- "black.paused": "L'iscrizione al piano Black è temporaneamente sospesa.",
- "black.plan.icon20": "Piano Black 20",
- "black.plan.icon100": "Piano Black 100",
- "black.plan.icon200": "Piano Black 200",
- "black.plan.multiplier100": "5x più utilizzo rispetto a Black 20",
- "black.plan.multiplier200": "20x più utilizzo rispetto a Black 20",
- "black.price.perMonth": "al mese",
- "black.price.perPersonBilledMonthly": "per persona fatturato mensilmente",
- "black.terms.1": "Il tuo abbonamento non inizierà immediatamente",
- "black.terms.2": "Verrai aggiunto alla lista d'attesa e attivato presto",
- "black.terms.3": "La tua carta verrà addebitata solo quando il tuo abbonamento sarà attivato",
- "black.terms.4":
- "Si applicano limiti di utilizzo, un uso fortemente automatizzato potrebbe raggiungere i limiti prima",
- "black.terms.5": "Gli abbonamenti sono per individui, contatta Enterprise per i team",
- "black.terms.6": "I limiti potrebbero essere modificati e i piani potrebbero essere interrotti in futuro",
- "black.terms.7": "Annulla il tuo abbonamento in qualsiasi momento",
- "black.finePrint.beforeTerms": "I prezzi mostrati non includono le tasse applicabili",
- "black.finePrint.terms": "Termini di servizio",
- "black.workspace.title": "OpenCode Black | Seleziona Workspace",
- "black.workspace.selectPlan": "Seleziona un workspace per questo piano",
- "black.workspace.name": "Workspace {{n}}",
-
"download.title": "OpenCode | Download",
"download.meta.description": "Scarica OpenCode per macOS, Windows e Linux",
"download.section.terminal": "OpenCode Terminal",
diff --git a/packages/console/app/src/i18n/ja.ts b/packages/console/app/src/i18n/ja.ts
index e09874be456..9629bb2f7b4 100644
--- a/packages/console/app/src/i18n/ja.ts
+++ b/packages/console/app/src/i18n/ja.ts
@@ -302,32 +302,6 @@ export const dict = {
"go.faq.a10":
"請求から14日以内で、その請求期間中にGoの利用枠を一切使用していない場合、返金の対象となる可能性があります。返金を希望する場合は、{{contact}}ください。",
- "black.meta.title": "OpenCode Black | 世界最高峰のコーディングモデルすべてにアクセス",
- "black.meta.description": "OpenCode Black サブスクリプションプランで、Claude、GPT、Gemini などにアクセス。",
- "black.hero.title": "世界最高峰のコーディングモデルすべてにアクセス",
- "black.hero.subtitle": "Claude、GPT、Gemini などを含む",
- "black.title": "OpenCode Black | 料金",
- "black.paused": "Blackプランの登録は一時的に停止しています。",
- "black.plan.icon20": "Black 20 プラン",
- "black.plan.icon100": "Black 100 プラン",
- "black.plan.icon200": "Black 200 プラン",
- "black.plan.multiplier100": "Black 20 の5倍の利用量",
- "black.plan.multiplier200": "Black 20 の20倍の利用量",
- "black.price.perMonth": "/月",
- "black.price.perPersonBilledMonthly": "1人あたり / 月額請求",
- "black.terms.1": "サブスクリプションはすぐには開始されません",
- "black.terms.2": "ウェイトリストに追加され、まもなく有効化されます",
- "black.terms.3": "サブスクリプションが有効化された時点でのみカードに請求されます",
- "black.terms.4": "利用制限が適用されます。過度な自動化利用は早く制限に達する可能性があります",
- "black.terms.5": "サブスクリプションは個人向けです。チーム利用はエンタープライズにお問い合わせください",
- "black.terms.6": "将来的に制限が調整されたり、プランが廃止される可能性があります",
- "black.terms.7": "サブスクリプションはいつでもキャンセル可能です",
- "black.finePrint.beforeTerms": "表示価格には適用される税金は含まれていません",
- "black.finePrint.terms": "利用規約",
- "black.workspace.title": "OpenCode Black | ワークスペースの選択",
- "black.workspace.selectPlan": "このプランのワークスペースを選択してください",
- "black.workspace.name": "ワークスペース {{n}}",
-
"download.title": "OpenCode | ダウンロード",
"download.meta.description": "OpenCode を macOS、Windows、Linux 向けにダウンロード",
"download.section.terminal": "OpenCode Terminal",
diff --git a/packages/console/app/src/i18n/ko.ts b/packages/console/app/src/i18n/ko.ts
index 9c602a227e6..586d1c8f12b 100644
--- a/packages/console/app/src/i18n/ko.ts
+++ b/packages/console/app/src/i18n/ko.ts
@@ -296,32 +296,6 @@ export const dict = {
"go.faq.a10":
"결제일로부터 14일 이내이며 해당 결제 기간에 Go 사용 한도를 전혀 사용하지 않은 경우 환불 대상이 될 수 있습니다. 환불을 요청하려면 {{contact}}를 선택해 주세요.",
- "black.meta.title": "OpenCode Black | 세계 최고의 코딩 모델에 액세스하세요",
- "black.meta.description": "OpenCode Black 구독 플랜으로 Claude, GPT, Gemini 등에 액세스하세요.",
- "black.hero.title": "세계 최고의 코딩 모델에 액세스하세요",
- "black.hero.subtitle": "Claude, GPT, Gemini 등 포함",
- "black.title": "OpenCode Black | 가격",
- "black.paused": "Black 플랜 등록이 일시적으로 중단되었습니다.",
- "black.plan.icon20": "Black 20 플랜",
- "black.plan.icon100": "Black 100 플랜",
- "black.plan.icon200": "Black 200 플랜",
- "black.plan.multiplier100": "Black 20보다 5배 더 많은 사용량",
- "black.plan.multiplier200": "Black 20보다 20배 더 많은 사용량",
- "black.price.perMonth": "월",
- "black.price.perPersonBilledMonthly": "인당 / 월 청구",
- "black.terms.1": "구독이 즉시 시작되지 않습니다",
- "black.terms.2": "대기 명단에 추가되며 곧 활성화됩니다",
- "black.terms.3": "구독이 활성화될 때만 카드가 청구됩니다",
- "black.terms.4": "사용량 제한이 적용되며, 과도한 자동화 사용 시 제한에 더 빨리 도달할 수 있습니다",
- "black.terms.5": "구독은 개인용이며, 팀용은 엔터프라이즈에 문의하세요",
- "black.terms.6": "향후 제한이 조정되거나 플랜이 중단될 수 있습니다",
- "black.terms.7": "언제든지 구독을 취소할 수 있습니다",
- "black.finePrint.beforeTerms": "표시된 가격에는 해당 세금이 포함되어 있지 않습니다",
- "black.finePrint.terms": "서비스 약관",
- "black.workspace.title": "OpenCode Black | 워크스페이스 선택",
- "black.workspace.selectPlan": "이 플랜을 사용할 워크스페이스를 선택하세요",
- "black.workspace.name": "워크스페이스 {{n}}",
-
"download.title": "OpenCode | 다운로드",
"download.meta.description": "macOS, Windows, Linux용 OpenCode 다운로드",
"download.section.terminal": "OpenCode 터미널",
diff --git a/packages/console/app/src/i18n/no.ts b/packages/console/app/src/i18n/no.ts
index 79c429df969..8893f19ecfb 100644
--- a/packages/console/app/src/i18n/no.ts
+++ b/packages/console/app/src/i18n/no.ts
@@ -306,32 +306,6 @@ export const dict = {
"go.faq.a10":
"Du kan ha rett på refusjon hvis belastningen ble gjort i løpet av de siste 14 dagene og du ikke har brukt noe av Go-kvoten i den faktureringsperioden. {{contact}} for å be om refusjon.",
- "black.meta.title": "OpenCode Black | Få tilgang til verdens beste kodemodeller",
- "black.meta.description": "Få tilgang til Claude, GPT, Gemini og mer med OpenCode Black-abonnementer.",
- "black.hero.title": "Få tilgang til verdens beste kodemodeller",
- "black.hero.subtitle": "Inkludert Claude, GPT, Gemini og mer",
- "black.title": "OpenCode Black | Priser",
- "black.paused": "Black-planregistrering er midlertidig satt på pause.",
- "black.plan.icon20": "Black 20-plan",
- "black.plan.icon100": "Black 100-plan",
- "black.plan.icon200": "Black 200-plan",
- "black.plan.multiplier100": "5x mer bruk enn Black 20",
- "black.plan.multiplier200": "20x mer bruk enn Black 20",
- "black.price.perMonth": "per måned",
- "black.price.perPersonBilledMonthly": "per person fakturert månedlig",
- "black.terms.1": "Abonnementet ditt starter ikke umiddelbart",
- "black.terms.2": "Du blir lagt til i ventelisten og aktivert snart",
- "black.terms.3": "Kortet ditt belastes kun når abonnementet aktiveres",
- "black.terms.4": "Bruksgrenser gjelder, tung automatisert bruk kan nå grensene raskere",
- "black.terms.5": "Abonnementer er for enkeltpersoner, kontakt Enterprise for team",
- "black.terms.6": "Grenser kan justeres og planer kan avvikles i fremtiden",
- "black.terms.7": "Avslutt abonnementet når som helst",
- "black.finePrint.beforeTerms": "Priser vist inkluderer ikke gjeldende skatt",
- "black.finePrint.terms": "Vilkår for bruk",
- "black.workspace.title": "OpenCode Black | Velg arbeidsområde",
- "black.workspace.selectPlan": "Velg et arbeidsområde for denne planen",
- "black.workspace.name": "Arbeidsområde {{n}}",
-
"download.title": "OpenCode | Last ned",
"download.meta.description": "Last ned OpenCode for macOS, Windows og Linux",
"download.section.terminal": "OpenCode Terminal",
diff --git a/packages/console/app/src/i18n/pl.ts b/packages/console/app/src/i18n/pl.ts
index 3aaf0b1edc2..1dc52057e7a 100644
--- a/packages/console/app/src/i18n/pl.ts
+++ b/packages/console/app/src/i18n/pl.ts
@@ -306,32 +306,6 @@ export const dict = {
"go.faq.a10":
"Możesz kwalifikować się do zwrotu, jeśli opłata została pobrana w ciągu ostatnich 14 dni i nie wykorzystano żadnej części limitu Go w tym okresie rozliczeniowym. {{contact}}, aby poprosić o zwrot.",
- "black.meta.title": "OpenCode Black | Dostęp do najlepszych na świecie modeli kodujących",
- "black.meta.description": "Uzyskaj dostęp do Claude, GPT, Gemini i innych dzięki planom subskrypcji OpenCode Black.",
- "black.hero.title": "Dostęp do najlepszych na świecie modeli kodujących",
- "black.hero.subtitle": "W tym Claude, GPT, Gemini i inne",
- "black.title": "OpenCode Black | Cennik",
- "black.paused": "Rejestracja planu Black jest tymczasowo wstrzymana.",
- "black.plan.icon20": "Plan Black 20",
- "black.plan.icon100": "Plan Black 100",
- "black.plan.icon200": "Plan Black 200",
- "black.plan.multiplier100": "5x większe użycie niż Black 20",
- "black.plan.multiplier200": "20x większe użycie niż Black 20",
- "black.price.perMonth": "miesięcznie",
- "black.price.perPersonBilledMonthly": "za osobę rozliczane miesięcznie",
- "black.terms.1": "Twoja subskrypcja nie rozpocznie się natychmiast",
- "black.terms.2": "Zostaniesz dodany do listy oczekujących i aktywowany wkrótce",
- "black.terms.3": "Twoja karta zostanie obciążona dopiero po aktywacji subskrypcji",
- "black.terms.4": "Obowiązują limity użycia, intensywne automatyczne użycie może wyczerpać limity szybciej",
- "black.terms.5": "Subskrypcje są dla osób indywidualnych, skontaktuj się z Enterprise dla zespołów",
- "black.terms.6": "Limity mogą zostać dostosowane, a plany mogą zostać wycofane w przyszłości",
- "black.terms.7": "Anuluj subskrypcję w dowolnym momencie",
- "black.finePrint.beforeTerms": "Podane ceny nie zawierają stosownego podatku",
- "black.finePrint.terms": "Warunki świadczenia usług",
- "black.workspace.title": "OpenCode Black | Wybierz obszar roboczy",
- "black.workspace.selectPlan": "Wybierz obszar roboczy dla tego planu",
- "black.workspace.name": "Obszar roboczy {{n}}",
-
"download.title": "OpenCode | Pobierz",
"download.meta.description": "Pobierz OpenCode na macOS, Windows i Linux",
"download.section.terminal": "Terminal OpenCode",
diff --git a/packages/console/app/src/i18n/ru.ts b/packages/console/app/src/i18n/ru.ts
index 6536d571ebd..5e848b02e8d 100644
--- a/packages/console/app/src/i18n/ru.ts
+++ b/packages/console/app/src/i18n/ru.ts
@@ -309,33 +309,6 @@ export const dict = {
"go.faq.a10":
"Вы можете претендовать на возврат, если списание произошло в течение последних 14 дней и вы не использовали лимит Go в этом расчетном периоде. {{contact}}, чтобы запросить возврат.",
- "black.meta.title": "OpenCode Black | Доступ к лучшим моделям для кодинга в мире",
- "black.meta.description": "Получите доступ к Claude, GPT, Gemini и другим моделям с подпиской OpenCode Black.",
- "black.hero.title": "Доступ к лучшим моделям для кодинга в мире",
- "black.hero.subtitle": "Включая Claude, GPT, Gemini и другие",
- "black.title": "OpenCode Black | Цены",
- "black.paused": "Регистрация на план Black временно приостановлена.",
- "black.plan.icon20": "План Black 20",
- "black.plan.icon100": "План Black 100",
- "black.plan.icon200": "План Black 200",
- "black.plan.multiplier100": "в 5x больше использования, чем Black 20",
- "black.plan.multiplier200": "в 20x больше использования, чем Black 20",
- "black.price.perMonth": "в месяц",
- "black.price.perPersonBilledMonthly": "за человека при ежемесячной оплате",
- "black.terms.1": "Ваша подписка начнется не сразу",
- "black.terms.2": "Вы будете добавлены в список ожидания и активированы в ближайшее время",
- "black.terms.3": "Оплата с карты будет списана только при активации подписки",
- "black.terms.4":
- "Действуют лимиты использования; интенсивное автоматизированное использование может исчерпать лимиты быстрее",
- "black.terms.5": "Подписки предназначены для частных лиц, для команд обратитесь в Enterprise",
- "black.terms.6": "Лимиты могут быть скорректированы, а планы могут быть прекращены в будущем",
- "black.terms.7": "Отмените подписку в любое время",
- "black.finePrint.beforeTerms": "Указанные цены не включают применимые налоги",
- "black.finePrint.terms": "Условия обслуживания",
- "black.workspace.title": "OpenCode Black | Выбор рабочего пространства",
- "black.workspace.selectPlan": "Выберите рабочее пространство для этого плана",
- "black.workspace.name": "Рабочее пространство {{n}}",
-
"download.title": "OpenCode | Скачать",
"download.meta.description": "Скачать OpenCode для macOS, Windows и Linux",
"download.section.terminal": "OpenCode Terminal",
diff --git a/packages/console/app/src/i18n/th.ts b/packages/console/app/src/i18n/th.ts
index d8bed749f4d..e436fd2babd 100644
--- a/packages/console/app/src/i18n/th.ts
+++ b/packages/console/app/src/i18n/th.ts
@@ -302,32 +302,6 @@ export const dict = {
"go.faq.a10":
"หากมีการเรียกเก็บเงินภายใน 14 วันที่ผ่านมาและคุณยังไม่ได้ใช้สิทธิ์การใช้งาน Go เลยในรอบการเรียกเก็บเงินนั้น คุณอาจมีสิทธิ์ได้รับเงินคืน {{contact}}เพื่อขอเงินคืน",
- "black.meta.title": "OpenCode Black | เข้าถึงโมเดลเขียนโค้ดที่ดีที่สุดในโลก",
- "black.meta.description": "เข้าถึง Claude, GPT, Gemini และอื่นๆ ด้วยแผนสมาชิก OpenCode Black",
- "black.hero.title": "เข้าถึงโมเดลเขียนโค้ดที่ดีที่สุดในโลก",
- "black.hero.subtitle": "รวมถึง Claude, GPT, Gemini และอื่นๆ อีกมากมาย",
- "black.title": "OpenCode Black | ราคา",
- "black.paused": "การสมัครแผน Black หยุดชั่วคราว",
- "black.plan.icon20": "แผน Black 20",
- "black.plan.icon100": "แผน Black 100",
- "black.plan.icon200": "แผน Black 200",
- "black.plan.multiplier100": "ใช้งานได้มากกว่า Black 20 ถึง 5 เท่า",
- "black.plan.multiplier200": "ใช้งานได้มากกว่า Black 20 ถึง 20 เท่า",
- "black.price.perMonth": "ต่อเดือน",
- "black.price.perPersonBilledMonthly": "ต่อคน เรียกเก็บรายเดือน",
- "black.terms.1": "การสมัครสมาชิกของคุณจะยังไม่เริ่มต้นทันที",
- "black.terms.2": "คุณจะถูกเพิ่มในรายชื่อรอและจะได้รับการเปิดใช้งานเร็วๆ นี้",
- "black.terms.3": "บัตรของคุณจะถูกตัดเงินเมื่อการสมัครสมาชิกของคุณถูกเปิดใช้งานเท่านั้น",
- "black.terms.4": "มีขีดจำกัดการใช้งาน การใช้ระบบอัตโนมัติอย่างหนักอาจทำให้ถึงขีดจำกัดเร็วขึ้น",
- "black.terms.5": "การสมัครสมาชิกสำหรับบุคคลธรรมดา ติดต่อฝ่ายองค์กรสำหรับทีม",
- "black.terms.6": "ขีดจำกัดอาจมีการปรับเปลี่ยนและแผนอาจถูกยกเลิกในอนาคต",
- "black.terms.7": "ยกเลิกการสมัครสมาชิกได้ตลอดเวลา",
- "black.finePrint.beforeTerms": "ราคาที่แสดงยังไม่รวมภาษีที่เกี่ยวข้อง",
- "black.finePrint.terms": "ข้อกำหนดการให้บริการ",
- "black.workspace.title": "OpenCode Black | เลือก Workspace",
- "black.workspace.selectPlan": "เลือก Workspace สำหรับแผนนี้",
- "black.workspace.name": "Workspace {{n}}",
-
"download.title": "OpenCode | ดาวน์โหลด",
"download.meta.description": "ดาวน์โหลด OpenCode สำหรับ macOS, Windows และ Linux",
"download.section.terminal": "OpenCode Terminal",
diff --git a/packages/console/app/src/i18n/tr.ts b/packages/console/app/src/i18n/tr.ts
index 3e3d8abe8b0..95b685f4101 100644
--- a/packages/console/app/src/i18n/tr.ts
+++ b/packages/console/app/src/i18n/tr.ts
@@ -308,32 +308,6 @@ export const dict = {
"go.faq.a10":
"Ücret son 14 gün içinde tahsil edildiyse ve ilgili faturalandırma döneminde Go kullanım hakkınızı hiç kullanmadıysanız para iadesine hak kazanabilirsiniz. {{contact}} ve para iadesi talep edin.",
- "black.meta.title": "OpenCode Black | Dünyanın en iyi kodlama modellerine erişin",
- "black.meta.description": "OpenCode Black abonelik planlarıyla Claude, GPT, Gemini ve daha fazlasına erişin.",
- "black.hero.title": "Dünyanın en iyi kodlama modellerine erişin",
- "black.hero.subtitle": "Claude, GPT, Gemini ve daha fazlası dahil",
- "black.title": "OpenCode Black | Fiyatlandırma",
- "black.paused": "Black plan kaydı geçici olarak duraklatıldı.",
- "black.plan.icon20": "Black 20 planı",
- "black.plan.icon100": "Black 100 planı",
- "black.plan.icon200": "Black 200 planı",
- "black.plan.multiplier100": "Black 20'den 5 kat daha fazla kullanım",
- "black.plan.multiplier200": "Black 20'den 20 kat daha fazla kullanım",
- "black.price.perMonth": "aylık",
- "black.price.perPersonBilledMonthly": "kişi başı aylık faturalandırılır",
- "black.terms.1": "Aboneliğiniz hemen başlamayacak",
- "black.terms.2": "Bekleme listesine ekleneceksiniz ve yakında aktive edileceksiniz",
- "black.terms.3": "Kartınızdan sadece aboneliğiniz aktive edildiğinde ödeme alınacaktır",
- "black.terms.4": "Kullanım limitleri geçerlidir, yoğun otomatik kullanım limitlere daha erken ulaşabilir",
- "black.terms.5": "Abonelikler bireyler içindir, ekipler için Enterprise ile iletişime geçin",
- "black.terms.6": "Limitler ayarlanabilir ve planlar gelecekte sonlandırılabilir",
- "black.terms.7": "Aboneliğinizi istediğiniz zaman iptal edin",
- "black.finePrint.beforeTerms": "Gösterilen fiyatlara geçerli vergiler dahil değildir",
- "black.finePrint.terms": "Hizmet Şartları",
- "black.workspace.title": "OpenCode Black | Çalışma Alanı Seç",
- "black.workspace.selectPlan": "Bu plan için bir çalışma alanı seçin",
- "black.workspace.name": "Çalışma Alanı {{n}}",
-
"download.title": "OpenCode | İndir",
"download.meta.description": "OpenCode'u macOS, Windows ve Linux için indirin",
"download.section.terminal": "OpenCode Terminal",
diff --git a/packages/console/app/src/i18n/uk.ts b/packages/console/app/src/i18n/uk.ts
index 7486c87b59e..7ad5f0e5bfc 100644
--- a/packages/console/app/src/i18n/uk.ts
+++ b/packages/console/app/src/i18n/uk.ts
@@ -304,32 +304,6 @@ export const dict = {
"go.faq.a10":
"Ви можете претендувати на повернення, якщо кошти було списано протягом останніх 14 днів і ви не використали ліміт Go протягом цього розрахункового періоду. {{contact}}, щоб подати запит на повернення.",
- "black.meta.title": "OpenCode Black | Доступ до найкращих моделей кодування",
- "black.meta.description": "Отримайте доступ до Claude, GPT, Gemini та інших із планами підписки OpenCode Black.",
- "black.hero.title": "Доступ до найкращих моделей кодування",
- "black.hero.subtitle": "Включаючи Claude, GPT, Gemini та інші",
- "black.title": "OpenCode Black | Ціни",
- "black.paused": "Реєстрація в план Black тимчасово призупинена.",
- "black.plan.icon20": "План Black 20",
- "black.plan.icon100": "План Black 100",
- "black.plan.icon200": "План Black 200",
- "black.plan.multiplier100": "5x більше використання ніж Black 20",
- "black.plan.multiplier200": "20x більше використання ніж Black 20",
- "black.price.perMonth": "на місяць",
- "black.price.perPersonBilledMonthly": "за особу з щомісячною оплатою",
- "black.terms.1": "Ваша підписка не розпочнеться негайно",
- "black.terms.2": "Вас додадуть до списку очікування та активують незабаром",
- "black.terms.3": "Картку буде списано лише після активації підписки",
- "black.terms.4": "Діють ліміти використання, інтенсивне автоматичне використання може швидше вичерпати ліміти",
- "black.terms.5": "Підписки призначені для фізичних осіб, зверніться в Enterprise для команд",
- "black.terms.6": "Ліміти можуть бути змінені, а плани можуть бути припинені в майбутньому",
- "black.terms.7": "Скасуйте підписку в будь-який час",
- "black.finePrint.beforeTerms": "Зазначені ціни не включають податки",
- "black.finePrint.terms": "Умови надання послуг",
- "black.workspace.title": "OpenCode Black | Виберіть робочий простір",
- "black.workspace.selectPlan": "Виберіть робочий простір для цього плану",
- "black.workspace.name": "Робочий простір {{n}}",
-
"download.title": "OpenCode | Завантажити",
"download.meta.description": "Завантажте OpenCode для macOS, Windows та Linux",
"download.section.terminal": "Термінал OpenCode",
diff --git a/packages/console/app/src/i18n/zh.ts b/packages/console/app/src/i18n/zh.ts
index 65321e67bf9..8fd49173103 100644
--- a/packages/console/app/src/i18n/zh.ts
+++ b/packages/console/app/src/i18n/zh.ts
@@ -287,32 +287,6 @@ export const dict = {
"go.faq.a10":
"如果扣款发生在过去 14 天内,并且您在该计费周期内尚未使用任何 Go 额度,您可能符合退款条件。请{{contact}}申请退款。",
- "black.meta.title": "OpenCode Black | 访问全球顶尖编程模型",
- "black.meta.description": "通过 OpenCode Black 订阅计划使用 Claude, GPT, Gemini 等模型。",
- "black.hero.title": "访问全球顶尖编程模型",
- "black.hero.subtitle": "包括 Claude, GPT, Gemini 等",
- "black.title": "OpenCode Black | 定价",
- "black.paused": "Black 订阅已暂时暂停注册。",
- "black.plan.icon20": "Black 20 计划",
- "black.plan.icon100": "Black 100 计划",
- "black.plan.icon200": "Black 200 计划",
- "black.plan.multiplier100": "用量是 Black 20 的 5 倍",
- "black.plan.multiplier200": "用量是 Black 20 的 20 倍",
- "black.price.perMonth": "/ 月",
- "black.price.perPersonBilledMonthly": "每人每月",
- "black.terms.1": "您的订阅不会立即开始",
- "black.terms.2": "您将被加入候补名单,并很快激活",
- "black.terms.3": "您的卡只会在订阅激活时扣费",
- "black.terms.4": "适用使用限制,高度自动化的使用可能会更快达到限制",
- "black.terms.5": "订阅仅限个人,团队请联系企业版",
- "black.terms.6": "未来可能会调整限制或停止计划",
- "black.terms.7": "随时取消订阅",
- "black.finePrint.beforeTerms": "显示价格不含税",
- "black.finePrint.terms": "服务条款",
- "black.workspace.title": "OpenCode Black | 选择工作区",
- "black.workspace.selectPlan": "为此计划选择一个工作区",
- "black.workspace.name": "工作区 {{n}}",
-
"download.title": "OpenCode | 下载",
"download.meta.description": "下载适用于 macOS, Windows, 和 Linux 的 OpenCode",
"download.section.terminal": "OpenCode 终端",
diff --git a/packages/console/app/src/i18n/zht.ts b/packages/console/app/src/i18n/zht.ts
index af8b73b39a8..cc0530ef169 100644
--- a/packages/console/app/src/i18n/zht.ts
+++ b/packages/console/app/src/i18n/zht.ts
@@ -286,32 +286,6 @@ export const dict = {
"go.faq.a10":
"若扣款發生在過去 14 天內,且你在該計費期間尚未使用任何 Go 額度,你可能符合退款資格。請{{contact}}申請退款。",
- "black.meta.title": "OpenCode Black | 存取全球最佳編碼模型",
- "black.meta.description": "透過 OpenCode Black 訂閱方案存取 Claude、GPT、Gemini 等模型。",
- "black.hero.title": "存取全球最佳編碼模型",
- "black.hero.subtitle": "包括 Claude、GPT、Gemini 等",
- "black.title": "OpenCode Black | 定價",
- "black.paused": "Black 訂閱暫時暫停註冊。",
- "black.plan.icon20": "Black 20 方案",
- "black.plan.icon100": "Black 100 方案",
- "black.plan.icon200": "Black 200 方案",
- "black.plan.multiplier100": "比 Black 20 多 5 倍使用量",
- "black.plan.multiplier200": "比 Black 20 多 20 倍使用量",
- "black.price.perMonth": "每月",
- "black.price.perPersonBilledMonthly": "每人每月計費",
- "black.terms.1": "你的訂閱不會立即開始",
- "black.terms.2": "你將被加入候補名單並在不久後啟用",
- "black.terms.3": "你的卡片僅在訂閱啟用時才會扣款",
- "black.terms.4": "適用使用限制,高度自動化的使用可能會更快達到限制",
- "black.terms.5": "訂閱僅限個人使用,團隊請聯繫企業版",
- "black.terms.6": "未來可能會調整限制或終止方案",
- "black.terms.7": "隨時取消你的訂閱",
- "black.finePrint.beforeTerms": "顯示價格未包含適用稅項",
- "black.finePrint.terms": "服務條款",
- "black.workspace.title": "OpenCode Black | 選擇工作區",
- "black.workspace.selectPlan": "為此方案選擇一個工作區",
- "black.workspace.name": "工作區 {{n}}",
-
"download.title": "OpenCode | 下載",
"download.meta.description": "下載適用於 macOS、Windows 與 Linux 的 OpenCode",
"download.section.terminal": "OpenCode 終端",
diff --git a/packages/console/app/src/middleware.ts b/packages/console/app/src/middleware.ts
index 4aa2148f711..8591165a531 100644
--- a/packages/console/app/src/middleware.ts
+++ b/packages/console/app/src/middleware.ts
@@ -31,6 +31,10 @@ export default createMiddleware({
event.response.headers.append("set-cookie", cookie(locale))
}
+ // Black subscriptions were migrated to Go.
+ if (/^\/black(\/|$)/.test(url.pathname))
+ return new Response(null, { status: 301, headers: { Location: locale ? `/${locale}/go` : "/go" } })
+
// The legacy dashboard and its sign-in moved to the new Console.
if (/^\/(auth|workspace)(\/|$)/.test(url.pathname) && Resource.ConsoleMigration.consoleUrl)
return new Response(null, {
diff --git a/packages/console/app/src/routes/black.css b/packages/console/app/src/routes/black.css
deleted file mode 100644
index 648a79c33fe..00000000000
--- a/packages/console/app/src/routes/black.css
+++ /dev/null
@@ -1,843 +0,0 @@
-::view-transition-group(*) {
- animation-duration: 250ms;
- animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
-}
-
-::view-transition-old(root),
-::view-transition-new(root) {
- animation-duration: 250ms;
- animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
-}
-
-::view-transition-image-pair(root) {
- isolation: isolate;
-}
-
-::view-transition-old(root) {
- animation: none;
- mix-blend-mode: normal;
-}
-
-::view-transition-new(root) {
- animation: none;
- mix-blend-mode: normal;
-}
-
-@keyframes fade-in {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
-
-@keyframes fade-out {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
-}
-
-@keyframes fade-in-up {
- from {
- opacity: 0;
- transform: translateY(8px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
-}
-
-@keyframes reveal-terms {
- from {
- mask-position: 0% 200%;
- }
- to {
- mask-position: 0% 50%;
- }
-}
-
-@keyframes hide-terms {
- from {
- mask-position: 0% 50%;
- }
- to {
- mask-position: 0% 200%;
- }
-}
-
-::view-transition-old(terms-20),
-::view-transition-old(terms-100),
-::view-transition-old(terms-200) {
- mask-image: linear-gradient(to bottom, transparent, black 25% 75%, transparent);
- mask-repeat: no-repeat;
- mask-size: 100% 200%;
- animation: hide-terms 200ms cubic-bezier(0.25, 0, 0.5, 1) forwards;
-}
-
-::view-transition-new(terms-20),
-::view-transition-new(terms-100),
-::view-transition-new(terms-200) {
- mask-image: linear-gradient(to bottom, transparent, black 25% 75%, transparent);
- mask-repeat: no-repeat;
- mask-position: 0% 200%;
- mask-size: 100% 200%;
- animation: reveal-terms 300ms cubic-bezier(0.25, 0, 0.5, 1) 50ms forwards;
-}
-
-::view-transition-old(actions-20),
-::view-transition-old(actions-100),
-::view-transition-old(actions-200) {
- animation: fade-out 80ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
-}
-
-::view-transition-new(actions-20),
-::view-transition-new(actions-100),
-::view-transition-new(actions-200) {
- animation: fade-in-up 300ms cubic-bezier(0.16, 1, 0.3, 1) 300ms forwards;
- opacity: 0;
-}
-
-::view-transition-group(card-20),
-::view-transition-group(card-100),
-::view-transition-group(card-200) {
- animation-duration: 250ms;
- animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
-}
-
-[data-page="black"] {
- background: #000;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: stretch;
- font-family: var(--font-mono);
- color: #fff;
-
- [data-component="header-logo"] {
- filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25)) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.1));
- position: relative;
- z-index: 1;
- }
-
- .header-light-rays {
- position: absolute;
- inset: 0 0 auto 0;
- height: 30dvh;
- pointer-events: none;
- z-index: 0;
- }
-
- [data-component="header"] {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding-top: 40px;
- flex-shrink: 0;
- }
-
- [data-component="content"] {
- display: flex;
- flex-direction: column;
- align-items: center;
- width: 100%;
- flex-grow: 1;
-
- [data-slot="hero"] {
- display: flex;
- flex-direction: column;
- align-items: center;
- text-align: center;
- gap: 8px;
- margin-top: 40px;
- padding: 0 20px;
-
- @media (min-width: 768px) {
- margin-top: 60px;
- }
-
- h1 {
- color: rgba(255, 255, 255, 0.92);
- font-size: 16px;
- font-style: normal;
- font-weight: 400;
- line-height: 1.45;
- margin: 0;
-
- @media (min-width: 768px) {
- font-size: 20px;
- }
-
- @media (max-width: 480px) {
- font-size: 14px;
- }
- }
-
- p {
- color: rgba(255, 255, 255, 0.59);
- font-size: 16px;
- font-style: normal;
- font-weight: 400;
- line-height: 1.45;
- margin: 0;
-
- @media (min-width: 768px) {
- font-size: 20px;
- }
-
- @media (max-width: 480px) {
- font-size: 14px;
- }
- }
- }
-
- [data-slot="hero-black"] {
- margin-top: 40px;
- padding: 0 20px;
- position: relative;
-
- @media (min-width: 768px) {
- margin-top: 60px;
- }
-
- svg {
- width: 100%;
- max-width: 590px;
- height: auto;
- overflow: visible;
- filter: drop-shadow(0 0 20px rgba(255, 255, 255, calc(0.1 + var(--hero-black-glow-intensity, 0) * 0.15)))
- drop-shadow(0 -5px 30px rgba(255, 255, 255, calc(var(--hero-black-glow-intensity, 0) * 0.2)));
- mask-image: linear-gradient(to bottom, black, transparent);
- stroke-width: 1.5;
-
- [data-slot="black-base"] {
- fill: url(#hero-black-fill-gradient);
- stroke: url(#hero-black-stroke-gradient);
- }
-
- [data-slot="black-glow"] {
- fill: url(#hero-black-top-glow);
- pointer-events: none;
- }
-
- [data-slot="black-shimmer"] {
- fill: url(#hero-black-shimmer-gradient);
- pointer-events: none;
- mix-blend-mode: overlay;
- }
- }
- }
-
- [data-slot="cta"] {
- display: flex;
- flex-direction: column;
- gap: 16px;
- align-items: center;
- text-align: center;
- margin-top: -40px;
- width: 100%;
-
- @media (min-width: 768px) {
- margin-top: -20px;
- }
-
- [data-slot="heading"] {
- color: rgba(255, 255, 255, 0.92);
- text-align: center;
- font-size: 18px;
- font-style: normal;
- font-weight: 400;
- line-height: 160%;
-
- span {
- display: inline-block;
- }
- }
- [data-slot="subheading"] {
- color: rgba(255, 255, 255, 0.59);
- font-size: 15px;
- font-style: normal;
- font-weight: 400;
- line-height: 160%;
-
- @media (min-width: 768px) {
- font-size: 18px;
- line-height: 160%;
- }
- }
- [data-slot="button"] {
- display: inline-flex;
- height: 40px;
- padding: 0 12px;
- justify-content: center;
- align-items: center;
- gap: 8px;
- border-radius: 4px;
- background: rgba(255, 255, 255, 0.92);
- text-decoration: none;
- color: #000;
- font-family: "JetBrains Mono Nerd Font";
- font-size: 16px;
- font-style: normal;
- font-weight: 500;
- line-height: normal;
-
- &:hover {
- background: #e0e0e0;
- }
-
- &:active {
- transform: scale(0.98);
- }
- }
- [data-slot="back-soon"] {
- color: rgba(255, 255, 255, 0.59);
- text-align: center;
- font-size: 13px;
- font-style: normal;
- font-weight: 400;
- line-height: 160%; /* 20.8px */
- }
- [data-slot="follow-us"] {
- display: inline-flex;
- height: 40px;
- padding: 0 12px;
- justify-content: center;
- align-items: center;
- gap: 8px;
- border-radius: 4px;
- border: 1px solid rgba(255, 255, 255, 0.17);
- color: rgba(255, 255, 255, 0.59);
- font-family: var(--font-mono);
- font-size: 14px;
- font-style: normal;
- font-weight: 400;
- line-height: normal;
- text-decoration: none;
- }
-
- [data-slot="pricing"] {
- display: flex;
- flex-direction: column;
- gap: 16px;
- width: 100%;
- max-width: 660px;
- padding: 0 20px;
-
- @media (min-width: 768px) {
- padding: 0;
- }
- }
-
- [data-slot="paused"] {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- color: rgba(255, 255, 255, 0.59);
- font-size: 18px;
- font-style: normal;
- font-weight: 400;
- line-height: 160%;
- padding: 120px 20px;
- }
-
- [data-slot="pricing-card"] {
- display: flex;
- flex-direction: column;
- gap: 12px;
- padding: 24px;
- border: 1px solid rgba(255, 255, 255, 0.17);
- background: black;
- background-clip: padding-box;
- border-radius: 4px;
- text-decoration: none;
- transition: border-color 0.15s ease;
- cursor: pointer;
- text-align: left;
-
- @media (max-width: 480px) {
- padding: 16px;
- }
-
- &:hover:not(:active) {
- border-color: rgba(255, 255, 255, 0.35);
- }
-
- [data-slot="icon"] {
- color: rgba(255, 255, 255, 0.59);
- }
-
- [data-slot="price"] {
- display: flex;
- flex-wrap: wrap;
- align-items: baseline;
- gap: 8px;
- }
-
- [data-slot="amount"] {
- color: rgba(255, 255, 255, 0.92);
- font-size: 24px;
- font-weight: 500;
- }
-
- [data-slot="period"] {
- color: rgba(255, 255, 255, 0.59);
- font-size: 14px;
- }
-
- [data-slot="multiplier"] {
- color: rgba(255, 255, 255, 0.39);
- font-size: 14px;
-
- &::before {
- content: "·";
- margin-right: 8px;
- }
- }
- }
-
- [data-slot="selected-plan"] {
- display: flex;
- flex-direction: column;
- gap: 32px;
- width: 100%;
- max-width: 660px;
- margin: 0 auto;
- position: relative;
- background-color: rgba(0, 0, 0, 0.75);
- z-index: 1;
-
- @media (max-width: 480px) {
- margin: 0 20px;
- width: calc(100% - 40px);
- }
- }
-
- [data-slot="selected-card"] {
- display: flex;
- flex-direction: column;
- gap: 12px;
- padding: 24px;
- border: 1px solid rgba(255, 255, 255, 0.17);
- border-radius: 4px;
- width: 100%;
-
- [data-slot="icon"] {
- color: rgba(255, 255, 255, 0.59);
- }
-
- [data-slot="price"] {
- display: flex;
- flex-wrap: wrap;
- align-items: baseline;
- gap: 8px;
- }
-
- [data-slot="amount"] {
- color: rgba(255, 255, 255, 0.92);
- font-size: 24px;
- font-weight: 500;
- }
-
- [data-slot="period"] {
- color: rgba(255, 255, 255, 0.59);
- font-size: 14px;
- }
-
- [data-slot="multiplier"] {
- color: rgba(255, 255, 255, 0.39);
- font-size: 14px;
-
- &::before {
- content: "·";
- margin-right: 8px;
- }
- }
-
- [data-slot="terms"] {
- list-style: none;
- padding: 0;
- margin: 0;
- display: flex;
- flex-direction: column;
- gap: 8px;
- text-align: left;
-
- li {
- color: rgba(255, 255, 255, 0.59);
- font-size: 14px;
- line-height: 1.5;
- padding-left: 16px;
- position: relative;
-
- &::before {
- content: "▪";
- position: absolute;
- left: 0;
- color: rgba(255, 255, 255, 0.39);
- }
-
- @media (max-width: 768px) {
- font-size: 12px;
- }
- }
- }
-
- [data-slot="actions"] {
- display: flex;
- gap: 16px;
- margin-top: 8px;
-
- button,
- a {
- flex: 1;
- display: inline-flex;
- height: 48px;
- padding: 0 16px;
- justify-content: center;
- align-items: center;
- border-radius: 4px;
- font-family: var(--font-mono);
- font-size: 16px;
- font-weight: 400;
- text-decoration: none;
- cursor: pointer;
- }
-
- [data-slot="cancel"] {
- background: rgba(255, 255, 255, 0.05);
- border: 1px solid rgba(255, 255, 255, 0.17);
- color: rgba(255, 255, 255, 0.92);
- transition-property: background-color, border-color;
- transition-duration: 150ms;
- transition-timing-function: cubic-bezier(0.25, 0, 0.5, 1);
-
- &:hover {
- background-color: rgba(255, 255, 255, 0.08);
- border-color: rgba(255, 255, 255, 0.25);
- }
- }
-
- [data-slot="continue"] {
- background: rgb(255, 255, 255);
- color: rgb(0, 0, 0);
- transition: background-color 150ms cubic-bezier(0.25, 0, 0.5, 1);
-
- &:hover {
- background: rgba(255, 255, 255, 0.9);
- }
- }
- }
- }
-
- [data-slot="fine-print"] {
- color: rgba(255, 255, 255, 0.39);
- text-align: center;
- font-size: 13px;
- font-style: normal;
- font-weight: 400;
- line-height: 160%; /* 20.8px */
- font-style: italic;
-
- a {
- color: rgba(255, 255, 255, 0.39);
- text-decoration: underline;
- }
- }
- }
-
- /* Subscribe page styles */
- [data-slot="subscribe-form"] {
- display: flex;
- flex-direction: column;
- gap: 32px;
- align-items: center;
- margin-top: -18px;
- width: 100%;
- max-width: 660px;
- padding: 0 20px;
-
- @media (min-width: 768px) {
- margin-top: 40px;
- padding: 0;
- }
-
- [data-slot="form-card"] {
- width: 100%;
- border: 1px solid rgba(255, 255, 255, 0.17);
- border-radius: 4px;
- padding: 24px;
- display: flex;
- flex-direction: column;
- gap: 20px;
- }
-
- [data-slot="plan-header"] {
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
-
- [data-slot="title"] {
- color: rgba(255, 255, 255, 0.92);
- font-size: 16px;
- font-weight: 400;
- margin-bottom: 8px;
- }
-
- [data-slot="icon"] {
- color: rgba(255, 255, 255, 0.59);
- isolation: isolate;
- transform: translateZ(0);
- }
-
- [data-slot="price"] {
- display: flex;
- flex-wrap: wrap;
- align-items: baseline;
- gap: 8px;
- }
-
- [data-slot="amount"] {
- color: rgba(255, 255, 255, 0.92);
- font-size: 24px;
- font-weight: 500;
- }
-
- [data-slot="period"] {
- color: rgba(255, 255, 255, 0.59);
- font-size: 14px;
- }
-
- [data-slot="multiplier"] {
- color: rgba(255, 255, 255, 0.39);
- font-size: 14px;
-
- &::before {
- content: "·";
- margin: 0 8px;
- }
- }
-
- [data-slot="divider"] {
- height: 1px;
- background: rgba(255, 255, 255, 0.17);
- }
-
- [data-slot="section-title"] {
- color: rgba(255, 255, 255, 0.92);
- font-size: 16px;
- font-weight: 400;
- }
-
- [data-slot="checkout-form"] {
- display: flex;
- flex-direction: column;
- gap: 20px;
- }
-
- [data-slot="error"] {
- color: #ff6b6b;
- font-size: 14px;
- }
-
- [data-slot="submit-button"] {
- width: 100%;
- height: 48px;
- background: rgba(255, 255, 255, 0.92);
- border: none;
- border-radius: 4px;
- color: #000;
- font-family: var(--font-mono);
- font-size: 16px;
- font-weight: 500;
- cursor: pointer;
- transition: background 0.15s ease;
-
- &:hover:not(:disabled) {
- background: #e0e0e0;
- }
-
- &:disabled {
- opacity: 0.5;
- cursor: not-allowed;
- }
- }
-
- [data-slot="charge-notice"] {
- color: #d4a500;
- font-size: 14px;
- text-align: center;
- }
-
- [data-slot="loading"] {
- display: flex;
- justify-content: center;
- padding: 40px 0;
-
- p {
- color: rgba(255, 255, 255, 0.59);
- font-size: 14px;
- }
- }
-
- [data-slot="fine-print"] {
- color: rgba(255, 255, 255, 0.39);
- text-align: center;
- font-size: 13px;
- font-style: italic;
- view-transition-name: fine-print;
-
- a {
- color: rgba(255, 255, 255, 0.39);
- text-decoration: underline;
- }
- }
- }
- }
-
- [data-component="footer"] {
- display: flex;
- flex-direction: column;
- width: 100%;
- justify-content: center;
- align-items: center;
- gap: 24px;
- flex-shrink: 0;
-
- @media (min-width: 768px) {
- height: 120px;
- }
-
- [data-slot="footer-content"] {
- display: flex;
- gap: 24px;
- align-items: center;
- justify-content: center;
-
- @media (min-width: 768px) {
- gap: 40px;
- }
-
- span,
- a {
- color: rgba(255, 255, 255, 0.39);
- font-family: "JetBrains Mono Nerd Font";
- font-size: 16px;
- font-style: normal;
- font-weight: 400;
- line-height: normal;
- text-decoration: none;
- }
-
- [data-slot="github-stars"] {
- color: rgba(255, 255, 255, 0.25);
- font-family: "JetBrains Mono Nerd Font";
- font-size: 16px;
- font-style: normal;
- font-weight: 400;
- line-height: normal;
- }
-
- [data-slot="anomaly"] {
- display: none;
-
- @media (min-width: 768px) {
- display: block;
- }
- }
- }
- [data-slot="anomaly-alt"] {
- color: rgba(255, 255, 255, 0.39);
- font-family: "JetBrains Mono Nerd Font";
- font-size: 16px;
- font-style: normal;
- font-weight: 400;
- line-height: normal;
- text-decoration: none;
- margin-bottom: 24px;
-
- a {
- color: rgba(255, 255, 255, 0.39);
- font-family: "JetBrains Mono Nerd Font";
- font-size: 16px;
- font-style: normal;
- font-weight: 400;
- line-height: normal;
- text-decoration: none;
- }
-
- @media (min-width: 768px) {
- display: none;
- }
- }
- }
-}
-
-[data-component="black-workspace-picker-modal"] {
- font-family: var(--font-mono);
-
- [data-slot="workspace-list"] {
- width: 100%;
- padding: 0;
- margin: 0;
- list-style: none;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- gap: 8px;
- align-self: stretch;
- outline: none;
- overflow-y: auto;
- max-height: 240px;
- scrollbar-width: none;
-
- &::-webkit-scrollbar {
- display: none;
- }
- }
-
- [data-slot="workspace-item"] {
- width: 100%;
- display: flex;
- padding: 8px 12px;
- align-items: center;
- gap: 8px;
- align-self: stretch;
- cursor: pointer;
-
- [data-slot="selected-icon"] {
- visibility: hidden;
- color: rgba(255, 255, 255, 0.39);
- font-family: "IBM Plex Mono", monospace;
- font-size: 16px;
- font-style: normal;
- font-weight: 400;
- line-height: 160%;
- }
-
- span:last-child {
- color: rgba(255, 255, 255, 0.92);
- font-size: 16px;
- font-style: normal;
- font-weight: 400;
- line-height: 160%;
- }
-
- &:hover,
- &[data-active="true"] {
- background: #161616;
-
- [data-slot="selected-icon"] {
- visibility: visible;
- }
- }
- }
-}
diff --git a/packages/console/app/src/routes/black.tsx b/packages/console/app/src/routes/black.tsx
deleted file mode 100644
index 31f19ccfb75..00000000000
--- a/packages/console/app/src/routes/black.tsx
+++ /dev/null
@@ -1,281 +0,0 @@
-import { A, createAsync, RouteSectionProps } from "@solidjs/router"
-import { Title, Meta } from "@solidjs/meta"
-import { createMemo, createSignal } from "solid-js"
-import { github } from "~/lib/github"
-import { config } from "~/config"
-import { useLanguage } from "~/context/language"
-import { LanguagePicker } from "~/component/language-picker"
-import { useI18n } from "~/context/i18n"
-import Spotlight, { defaultConfig, type SpotlightAnimationState } from "~/component/spotlight"
-import { LocaleLinks } from "~/component/locale-links"
-import { SocialMeta } from "~/component/social-meta"
-import "./black.css"
-
-export default function BlackLayout(props: RouteSectionProps) {
- const language = useLanguage()
- const i18n = useI18n()
- const githubData = createAsync(() => github())
- const starCount = createMemo(() =>
- githubData()?.stars
- ? new Intl.NumberFormat(language.tag(language.locale()), {
- notation: "compact",
- compactDisplay: "short",
- }).format(githubData()!.stars!)
- : config.github.starsFormatted.compact,
- )
-
- const [spotlightAnimationState, setSpotlightAnimationState] = createSignal({
- time: 0,
- intensity: 0.5,
- pulseValue: 1,
- })
-
- const svgLightingValues = createMemo(() => {
- const state = spotlightAnimationState()
- const t = state.time
-
- const wave1 = Math.sin(t * 1.5) * 0.5 + 0.5
- const wave2 = Math.sin(t * 2.3 + 1.2) * 0.5 + 0.5
- const wave3 = Math.sin(t * 0.8 + 2.5) * 0.5 + 0.5
-
- const shimmerPos = Math.sin(t * 0.7) * 0.5 + 0.5
- const glowIntensity = Math.max(state.intensity * state.pulseValue * 0.35, 0.15)
- const fillOpacity = Math.max(0.1 + wave1 * 0.08 * state.pulseValue, 0.12)
- const strokeBrightness = Math.max(55 + wave2 * 25 * state.pulseValue, 60)
-
- const shimmerIntensity = Math.max(wave3 * 0.15 * state.pulseValue, 0.08)
-
- return {
- glowIntensity,
- fillOpacity,
- strokeBrightness,
- shimmerPos,
- shimmerIntensity,
- }
- })
-
- const svgLightingStyle = createMemo(() => {
- const values = svgLightingValues()
- return {
- "--hero-black-glow-intensity": values.glowIntensity.toFixed(3),
- "--hero-black-stroke-brightness": `${values.strokeBrightness.toFixed(0)}%`,
- } as Record
- })
-
- const handleAnimationFrame = (state: SpotlightAnimationState) => {
- setSpotlightAnimationState(state)
- }
-
- const spotlightConfig = () => defaultConfig
-
- return (
-
-
{i18n.t("black.meta.title")}
-
-
-
-
-
-
-
-
-
-
{i18n.t("black.hero.title")}
-
{i18n.t("black.hero.subtitle")}
-
-
-
-
- {props.children}
-
-
-
- )
-}
diff --git a/packages/console/app/src/routes/black/common.tsx b/packages/console/app/src/routes/black/common.tsx
deleted file mode 100644
index 8932a967e4d..00000000000
--- a/packages/console/app/src/routes/black/common.tsx
+++ /dev/null
@@ -1,65 +0,0 @@
-import { Match, Switch } from "solid-js"
-import { useI18n } from "~/context/i18n"
-
-export const plans = [
- { id: "20", multiplier: null },
- { id: "100", multiplier: "black.plan.multiplier100" },
- { id: "200", multiplier: "black.plan.multiplier200" },
-] as const
-
-export type PlanID = (typeof plans)[number]["id"]
-export type Plan = (typeof plans)[number]
-
-export function PlanIcon(props: { plan: string }) {
- const i18n = useI18n()
-
- return (
-
-
-
-
-
-
-
-
-
-
-
- )
-}
diff --git a/packages/console/app/src/routes/black/index.tsx b/packages/console/app/src/routes/black/index.tsx
deleted file mode 100644
index b7e3caf5330..00000000000
--- a/packages/console/app/src/routes/black/index.tsx
+++ /dev/null
@@ -1,122 +0,0 @@
-import { A, createAsync, query, useSearchParams } from "@solidjs/router"
-import { Title } from "@solidjs/meta"
-import { createMemo, createSignal, For, Match, onMount, Show, Switch } from "solid-js"
-import { PlanIcon, plans } from "./common"
-import { useI18n } from "~/context/i18n"
-import { useLanguage } from "~/context/language"
-import { Resource } from "@opencode/console-resource"
-
-const getPaused = query(async () => {
- "use server"
- return Resource.App.stage === "production"
-}, "black.paused")
-
-export default function Black() {
- const [params] = useSearchParams()
- const i18n = useI18n()
- const language = useLanguage()
- const paused = createAsync(() => getPaused())
- const [selected, setSelected] = createSignal((params.plan as string) || null)
- const [mounted, setMounted] = createSignal(false)
- const selectedPlan = createMemo(() => plans.find((p) => p.id === selected()))
-
- onMount(() => {
- requestAnimationFrame(() => setMounted(true))
- })
-
- const transition = (action: () => void) => {
- if (mounted() && "startViewTransition" in document) {
- ;(document as any).startViewTransition(action)
- return
- }
-
- action()
- }
-
- const select = (planId: string) => {
- if (selected() === planId) {
- return
- }
-
- transition(() => setSelected(planId))
- }
-
- const cancel = () => {
- transition(() => setSelected(null))
- }
-
- return (
- <>
- {i18n.t("black.title")}
-
- {i18n.t("black.paused")}
}>
-
-
-
-
- {(plan) => (
-
- )}
-
-
-
-
- {(plan) => (
-
-
-
-
- ${plan().id}{" "}
- {i18n.t("black.price.perPersonBilledMonthly")}
-
- {(multiplier) => {i18n.t(multiplier())}}
-
-
-
- - {i18n.t("black.terms.1")}
- - {i18n.t("black.terms.2")}
- - {i18n.t("black.terms.3")}
- - {i18n.t("black.terms.4")}
- - {i18n.t("black.terms.5")}
- - {i18n.t("black.terms.6")}
- - {i18n.t("black.terms.7")}
-
-
-
-
-
-
- )}
-
-
-
-
-
- {i18n.t("black.finePrint.beforeTerms")} ·{" "}
- {i18n.t("black.finePrint.terms")}
-
-
-
- >
- )
-}
diff --git a/packages/console/app/src/routes/black/workspace.css b/packages/console/app/src/routes/black/workspace.css
deleted file mode 100644
index bf9d948786f..00000000000
--- a/packages/console/app/src/routes/black/workspace.css
+++ /dev/null
@@ -1,214 +0,0 @@
-[data-page="black"] {
- background: #000;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: stretch;
- font-family: var(--font-mono);
- color: #fff;
-
- [data-component="header-gradient"] {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 288px;
- background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(0, 0, 0, 0) 100%);
- }
-
- [data-component="header"] {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding-top: 40px;
- flex-shrink: 0;
-
- /* [data-component="header-logo"] { */
- /* } */
- }
-
- [data-component="content"] {
- display: flex;
- flex-direction: column;
- align-items: center;
- width: 100%;
- flex-grow: 1;
-
- [data-slot="hero-black"] {
- margin-top: 110px;
-
- @media (min-width: 768px) {
- margin-top: 150px;
- }
- }
-
- [data-slot="select-workspace"] {
- display: flex;
- margin-top: -24px;
- width: 100%;
- max-width: 480px;
- height: 305px;
- padding: 32px 20px 0 20px;
- flex-direction: column;
- align-items: flex-start;
- gap: 24px;
-
- border: 1px solid #303030;
- background: #0a0a0a;
- box-shadow:
- 0 100px 80px 0 rgba(0, 0, 0, 0.04),
- 0 41.778px 33.422px 0 rgba(0, 0, 0, 0.05),
- 0 22.336px 17.869px 0 rgba(0, 0, 0, 0.06),
- 0 12.522px 10.017px 0 rgba(0, 0, 0, 0.08),
- 0 6.65px 5.32px 0 rgba(0, 0, 0, 0.09),
- 0 2.767px 2.214px 0 rgba(0, 0, 0, 0.13);
-
- [data-slot="select-workspace-title"] {
- flex-shrink: 0;
- align-self: stretch;
- color: rgba(255, 255, 255, 0.59);
- text-align: center;
- font-size: 16px;
- font-style: normal;
- font-weight: 400;
- line-height: 160%; /* 25.6px */
- }
-
- [data-slot="workspaces"] {
- width: 100%;
- padding: 0;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- gap: 8px;
- align-self: stretch;
- outline: none;
- overflow-y: auto;
- flex: 1;
- min-height: 0;
-
- scrollbar-width: none;
- &::-webkit-scrollbar {
- display: none;
- }
-
- [data-slot="workspace"] {
- width: 100%;
- display: flex;
- padding: 8px 12px;
- align-items: center;
- gap: 8px;
- align-self: stretch;
- cursor: pointer;
-
- [data-slot="selected-icon"] {
- visibility: hidden;
- color: rgba(255, 255, 255, 0.39);
- font-family: "IBM Plex Mono";
- font-size: 16px;
- font-style: normal;
- font-weight: 400;
- line-height: 160%; /* 25.6px */
- }
-
- a {
- color: rgba(255, 255, 255, 0.92);
- font-size: 16px;
- font-style: normal;
- font-weight: 400;
- line-height: 160%; /* 25.6px */
- text-decoration: none;
- }
- }
-
- [data-slot="workspace"]:hover,
- [data-slot="workspace"][data-active="true"] {
- background: #161616;
-
- [data-slot="selected-icon"] {
- visibility: visible;
- }
- }
- }
- }
- }
-
- [data-component="footer"] {
- display: flex;
- flex-direction: column;
- width: 100%;
- justify-content: center;
- align-items: center;
- gap: 24px;
- flex-shrink: 0;
-
- @media (min-width: 768px) {
- height: 120px;
- }
-
- [data-slot="footer-content"] {
- display: flex;
- gap: 24px;
- align-items: center;
- justify-content: center;
-
- @media (min-width: 768px) {
- gap: 40px;
- }
-
- span,
- a {
- color: rgba(255, 255, 255, 0.39);
- font-family: "JetBrains Mono Nerd Font";
- font-size: 16px;
- font-style: normal;
- font-weight: 400;
- line-height: normal;
- text-decoration: none;
- }
-
- [data-slot="github-stars"] {
- color: rgba(255, 255, 255, 0.25);
- font-family: "JetBrains Mono Nerd Font";
- font-size: 16px;
- font-style: normal;
- font-weight: 400;
- line-height: normal;
- }
-
- [data-slot="anomaly"] {
- display: none;
-
- @media (min-width: 768px) {
- display: block;
- }
- }
- }
- [data-slot="anomaly-alt"] {
- color: rgba(255, 255, 255, 0.39);
- font-family: "JetBrains Mono Nerd Font";
- font-size: 16px;
- font-style: normal;
- font-weight: 400;
- line-height: normal;
- text-decoration: none;
- margin-bottom: 24px;
-
- a {
- color: rgba(255, 255, 255, 0.39);
- font-family: "JetBrains Mono Nerd Font";
- font-size: 16px;
- font-style: normal;
- font-weight: 400;
- line-height: normal;
- text-decoration: none;
- }
-
- @media (min-width: 768px) {
- display: none;
- }
- }
- }
-}
diff --git a/packages/console/app/src/routes/black/workspace.tsx b/packages/console/app/src/routes/black/workspace.tsx
deleted file mode 100644
index 106e8a23ea8..00000000000
--- a/packages/console/app/src/routes/black/workspace.tsx
+++ /dev/null
@@ -1,238 +0,0 @@
-import { A, createAsync, useNavigate } from "@solidjs/router"
-import "./workspace.css"
-import { Title } from "@solidjs/meta"
-import { github } from "~/lib/github"
-import { createEffect, createMemo, For, onMount } from "solid-js"
-import { config } from "~/config"
-import { createList } from "solid-list"
-import { useLanguage } from "~/context/language"
-import { LanguagePicker } from "~/component/language-picker"
-import { useI18n } from "~/context/i18n"
-
-export default function BlackWorkspace() {
- const navigate = useNavigate()
- const language = useLanguage()
- const i18n = useI18n()
- const githubData = createAsync(() => github())
- const starCount = createMemo(() =>
- githubData()?.stars
- ? new Intl.NumberFormat(language.tag(language.locale()), {
- notation: "compact",
- compactDisplay: "short",
- }).format(githubData()!.stars!)
- : config.github.starsFormatted.compact,
- )
-
- // TODO: Frank, replace with real workspaces
- const workspaces = [
- { id: "wrk_123", n: 1 },
- { id: "wrk_456", n: 2 },
- { id: "wrk_789", n: 3 },
- { id: "wrk_111", n: 4 },
- { id: "wrk_222", n: 5 },
- { id: "wrk_333", n: 6 },
- { id: "wrk_444", n: 7 },
- { id: "wrk_555", n: 8 },
- ].map((workspace) => ({
- ...workspace,
- name: i18n.t("black.workspace.name", { n: workspace.n }),
- }))
-
- let listRef: HTMLUListElement | undefined
-
- const { active, setActive, onKeyDown } = createList({
- items: () => workspaces.map((w) => w.id),
- initialActive: workspaces[0]?.id ?? null,
- handleTab: true,
- })
-
- onMount(() => {
- listRef?.focus()
- })
-
- createEffect(() => {
- const id = active()
- if (!id || !listRef) return
- const el = listRef.querySelector(`[data-id="${id}"]`)
- el?.scrollIntoView({ block: "nearest" })
- })
-
- return (
-
-
{i18n.t("black.workspace.title")}
-
-
-
-
-
-
-
-
-
-
-
- {i18n.t("black.workspace.selectPlan")}
- {
- if (e.key === "Enter" && active()) {
- navigate(`/black/workspace/${active()}`)
- } else if (e.key === "Tab") {
- e.preventDefault()
- onKeyDown(e)
- } else {
- onKeyDown(e)
- }
- }}
- >
-
- {(workspace) => (
- - setActive(workspace.id)}
- onClick={() => navigate(`/black/workspace/${workspace.id}`)}
- >
- [*]
- {workspace.name}
-
- )}
-
-
-
-
-
-
- )
-}