From c263497ec8b05bc0f9254ed2f7ecb4dba6f67d4e Mon Sep 17 00:00:00 2001 From: Kostya Date: Thu, 15 Oct 2026 19:35:48 +0300 Subject: ui-web: add browser client for the Ex4 bonus A React + TypeScript single-page client served by Vite, working against the same servlets as the desktop client: login, the events screen with filters, details, order books and trading, and the account screen with deposit, holdings, ledger rows and the user directory. No file upload, as the exercise specifies. It looks like the desktop client on purpose: the three skins of theme.css as CSS variables, the four animations redone with SVG and keyframes, and the desktop's Nerd Fonts, which npm run dev copies from ui-fx instead of keeping a second copy in the repo. The shared chat sits in a drawer above the status bar, as on the desktop, on its own poll because chat lines don't move the market version. Vite forwards /guess-market to Tomcat on 8080, so the page and the API share an origin and the session cookie needs no CORS. The client polls /api/sync once a second and reloads only when the version moved. run-web.bat installs the packages and starts it on localhost:5173. package.sh stages the sources under build/dist/ex4, without node_modules. --- ui-web/src/graphics.tsx | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 ui-web/src/graphics.tsx (limited to 'ui-web/src/graphics.tsx') diff --git a/ui-web/src/graphics.tsx b/ui-web/src/graphics.tsx new file mode 100644 index 0000000..2d452df --- /dev/null +++ b/ui-web/src/graphics.tsx @@ -0,0 +1,51 @@ + +export function Equalizer() { + return ( + + ); +} + +export function Sparkline({ negative }: { negative: boolean }) { + return ( + + ); +} + +export function MarketChart() { + return ( + + ); +} + +export function Pinwheel() { + return ( + + ); +} -- cgit v1.2.3