Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
565 changes: 193 additions & 372 deletions Cargo.lock

Large diffs are not rendered by default.

13 changes: 0 additions & 13 deletions client/.eslintignore

This file was deleted.

34 changes: 0 additions & 34 deletions client/.eslintrc.cjs

This file was deleted.

42 changes: 42 additions & 0 deletions client/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import react from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';
import prettier from 'eslint-config-prettier';
import globals from 'globals';

// Flat config (ESLint 9). Mirrors the old .eslintrc.cjs stack: eslint:recommended +
// typescript-eslint recommended + react (+ jsx-runtime) + react-hooks, with prettier last to
// switch off formatting rules. The old .eslintignore is folded into `ignores` below — flat config
// no longer reads that file.
export default tseslint.config(
{
ignores: [
'build/**',
'coverage/**',
'test-results/**',
'playwright-report/**',
'blob-report/**',
'.playwright-mcp/**',
'playwright/.cache/**'
]
},
js.configs.recommended,
...tseslint.configs.recommended,
react.configs.flat.recommended,
react.configs.flat['jsx-runtime'],
reactHooks.configs.flat.recommended,
{
settings: { react: { version: 'detect' } },
languageOptions: {
globals: { ...globals.browser, ...globals.node }
}
},
prettier,
{
// Test code may use non-null assertions on values it has just constructed / knows are defined
// (e.g. asserting on a Patch's `monitor`). Production code keeps the strict rule.
files: ['**/*.test.ts', '**/*.test.tsx'],
rules: { '@typescript-eslint/no-non-null-assertion': 'off' }
}
);
2 changes: 1 addition & 1 deletion client/gallery/Gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export default function Gallery() {
key: f.key,
label: f.label,
kind: f.kind,
help: 'help' in f ? f.help ?? null : null
help: 'help' in f ? (f.help ?? null) : null
}))
};
})
Expand Down
16 changes: 12 additions & 4 deletions client/gallery/gallery.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ body {
padding: 28px 32px 64px;
background: #0b0f14;
color: #cfe3ea;
font: 14px/1.5 'Segoe UI', system-ui, sans-serif;
font:
14px/1.5 'Segoe UI',
system-ui,
sans-serif;
}

h1 {
Expand Down Expand Up @@ -84,8 +87,11 @@ figcaption {
width: 1074px;
height: 380px;
border-radius: 12px;
background: linear-gradient(180deg, rgba(12, 22, 28, 0.82), rgba(8, 14, 18, 0.88)), var(--shot-bg);
box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
background:
linear-gradient(180deg, rgba(12, 22, 28, 0.82), rgba(8, 14, 18, 0.88)), var(--shot-bg);
box-shadow:
0 18px 60px rgba(0, 0, 0, 0.5),
inset 0 0 0 1px rgba(255, 255, 255, 0.06);
overflow: hidden;
}

Expand All @@ -101,7 +107,9 @@ figcaption {
border-radius: 12px;
background-size: cover;
background-position: center;
box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
box-shadow:
0 18px 60px rgba(0, 0, 0, 0.5),
inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.autotheme-stage {
flex: 0 0 auto;
Expand Down
7 changes: 5 additions & 2 deletions client/gallery/iframe-demo.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand All @@ -14,7 +14,10 @@
justify-content: center;
background: radial-gradient(120% 120% at 30% 20%, #1a3640, #0d1f26 70%);
color: #dceff4;
font: 14px/1.5 'Segoe UI', system-ui, sans-serif;
font:
14px/1.5 'Segoe UI',
system-ui,
sans-serif;
}
.card {
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion client/gallery/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion client/gallery/studio.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
Loading