mirror of
https://github.com/storytold/autocraft.git
synced 2026-11-28 00:59:43 +01:00
- web/: an HTTP client for the Api interface (CSRF from the X-CSRF-Token response header, errors carry the server's text, 401 goes to sign-in); the mock API and its view-as menu only in VITE_MOCK=1 builds; the clock is real time outside the mock; nav links to the server-rendered pages. - Server: serves web/dist (CRAFT_AUTO_WEB_DIST) behind sign-in, hashed assets cached a year, index.html uncached for every client route, a 503 page when the build is missing; a strict CSP for the app with the hash of the Radix scroll-lock style. - The v1 Decisions, Item and Progress pages are gone; Contributors, Classifiers, Run and cost, Repos and Access stay at their paths. - Access roles operator, maintainer and viewer; rows with role admin become operator on connect. - v1 form POSTs and sign-out refuse a foreign Origin or Sec-Fetch-Site.
37 lines
951 B
JSON
37 lines
951 B
JSON
{
|
|
"name": "craft-triage-web",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"license": "MIT OR Apache-2.0",
|
|
"scripts": {
|
|
"dev": "VITE_MOCK=1 vite --host 127.0.0.1",
|
|
"build": "tsc --noEmit && vite build",
|
|
"preview": "vite preview --host 127.0.0.1"
|
|
},
|
|
"dependencies": {
|
|
"@fontsource-variable/geist-mono": "5.2.5",
|
|
"@fontsource-variable/inter": "5.2.5",
|
|
"clsx": "2.1.1",
|
|
"lucide-react": "0.512.0",
|
|
"radix-ui": "1.4.3",
|
|
"react": "18.3.1",
|
|
"react-dom": "18.3.1",
|
|
"react-markdown": "9.0.1",
|
|
"react-resizable-panels": "2.1.7",
|
|
"react-router-dom": "6.29.0",
|
|
"remark-gfm": "4.0.0",
|
|
"tailwind-merge": "2.6.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "18.3.12",
|
|
"@types/react-dom": "18.3.1",
|
|
"@vitejs/plugin-react": "4.3.4",
|
|
"autoprefixer": "10.4.20",
|
|
"postcss": "8.4.49",
|
|
"tailwindcss": "3.4.3",
|
|
"typescript": "5.8.3",
|
|
"vite": "6.0.7"
|
|
}
|
|
}
|