chore: generate
This commit is contained in:
@@ -554,9 +554,7 @@ function MomentumChart(props: { data: StatsModelData; locale: string }) {
|
|||||||
function MomentumMetric(props: { label: string; value: string; watermark?: string }) {
|
function MomentumMetric(props: { label: string; value: string; watermark?: string }) {
|
||||||
return (
|
return (
|
||||||
<div data-component="model-momentum-metric">
|
<div data-component="model-momentum-metric">
|
||||||
<Show when={props.watermark}>
|
<Show when={props.watermark}>{(watermark) => <em aria-hidden="true">{watermark()}</em>}</Show>
|
||||||
{(watermark) => <em aria-hidden="true">{watermark()}</em>}
|
|
||||||
</Show>
|
|
||||||
<span>{props.label}</span>
|
<span>{props.label}</span>
|
||||||
<strong>{props.value}</strong>
|
<strong>{props.value}</strong>
|
||||||
</div>
|
</div>
|
||||||
@@ -920,7 +918,8 @@ function formatGeoShare(value: number) {
|
|||||||
|
|
||||||
function momentumChart(data: ModelUsagePoint[], updatedAt: string | null) {
|
function momentumChart(data: ModelUsagePoint[], updatedAt: string | null) {
|
||||||
const fallbackDate = updatedAt ? formatMomentumDateLabel(updatedAt) : "JAN 1"
|
const fallbackDate = updatedAt ? formatMomentumDateLabel(updatedAt) : "JAN 1"
|
||||||
const points = data.length > 1 ? data : [data[0] ?? emptyUsagePoint(fallbackDate), data[0] ?? emptyUsagePoint(fallbackDate)]
|
const points =
|
||||||
|
data.length > 1 ? data : [data[0] ?? emptyUsagePoint(fallbackDate), data[0] ?? emptyUsagePoint(fallbackDate)]
|
||||||
const max = Math.max(1, ...points.map((point) => point.tokens))
|
const max = Math.max(1, ...points.map((point) => point.tokens))
|
||||||
const split = Math.max(1, Math.floor((points.length - 1) / 2))
|
const split = Math.max(1, Math.floor((points.length - 1) / 2))
|
||||||
const coordinates = points.map((point, index) => ({
|
const coordinates = points.map((point, index) => ({
|
||||||
|
|||||||
@@ -3609,8 +3609,7 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border: 1px solid var(--stats-line);
|
border: 1px solid var(--stats-line);
|
||||||
background:
|
background:
|
||||||
linear-gradient(180deg, color-mix(in srgb, var(--stats-bg) 76%, transparent), transparent),
|
linear-gradient(180deg, color-mix(in srgb, var(--stats-bg) 76%, transparent), transparent), var(--stats-layer);
|
||||||
var(--stats-layer);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-page="stats"] [data-component="model-momentum-metric"] span {
|
[data-page="stats"] [data-component="model-momentum-metric"] span {
|
||||||
|
|||||||
Reference in New Issue
Block a user