aboutsummaryrefslogtreecommitdiffstats
path: root/ui-web/index.html
diff options
context:
space:
mode:
authorKostya <mail@sartin.in>2026-10-15 19:35:48 +0300
committerKostya <mail@sartin.in>2026-10-15 19:36:15 +0300
commitc263497ec8b05bc0f9254ed2f7ecb4dba6f67d4e (patch)
treed9b721c72a4ffa2d6256adc305716c8432cb190c /ui-web/index.html
parentc67d5ff663b876a15a3831f5a2b564c4002e99b6 (diff)
downloadguess-market-c263497ec8b05bc0f9254ed2f7ecb4dba6f67d4e.tar.gz
guess-market-c263497ec8b05bc0f9254ed2f7ecb4dba6f67d4e.tar.xz
guess-market-c263497ec8b05bc0f9254ed2f7ecb4dba6f67d4e.zip
ui-web: add browser client for the Ex4 bonus HEAD4.0master
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.
Diffstat (limited to 'ui-web/index.html')
-rw-r--r--ui-web/index.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/ui-web/index.html b/ui-web/index.html
new file mode 100644
index 0000000..279b73a
--- /dev/null
+++ b/ui-web/index.html
@@ -0,0 +1,12 @@
1<!doctype html>
2<html lang="en">
3 <head>
4 <meta charset="UTF-8" />
5 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6 <title>Guess Market</title>
7 </head>
8 <body>
9 <div id="root"></div>
10 <script type="module" src="/src/main.tsx"></script>
11 </body>
12</html>