From e8bb6a64b73191726f1130444b4a394931b5012b Mon Sep 17 00:00:00 2001 From: Konrad Neitzel Date: Fri, 20 Feb 2026 18:06:10 +0100 Subject: [PATCH] Add web application components for RolePlay - Introduce main application structure with React, including routing and state management. - Implement key components: StartPage, SessionPage, NarrativeView, SuggestionList, ActionInput for user interaction. - Set up Vite for development and build processes, with TypeScript support. - Create API integration for session management and narrative suggestions. - Add catch-all JAX-RS resource for serving the React application. --- .../java/de/neitzel/roleplay/fascade/SpaFallbackResource.java | 0 src/main/web/package.json | 0 src/main/web/src/App.tsx | 0 src/main/web/src/api/index.ts | 0 src/main/web/src/components/ActionInput.tsx | 0 src/main/web/src/components/NarrativeView.tsx | 0 src/main/web/src/components/SuggestionList.tsx | 0 src/main/web/src/main.tsx | 0 src/main/web/src/pages/SessionPage.tsx | 0 src/main/web/src/pages/StartPage.tsx | 0 src/main/web/vite.config.ts | 0 11 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/main/java/de/neitzel/roleplay/fascade/SpaFallbackResource.java create mode 100644 src/main/web/package.json create mode 100644 src/main/web/src/App.tsx create mode 100644 src/main/web/src/api/index.ts create mode 100644 src/main/web/src/components/ActionInput.tsx create mode 100644 src/main/web/src/components/NarrativeView.tsx create mode 100644 src/main/web/src/components/SuggestionList.tsx create mode 100644 src/main/web/src/main.tsx create mode 100644 src/main/web/src/pages/SessionPage.tsx create mode 100644 src/main/web/src/pages/StartPage.tsx create mode 100644 src/main/web/vite.config.ts diff --git a/src/main/java/de/neitzel/roleplay/fascade/SpaFallbackResource.java b/src/main/java/de/neitzel/roleplay/fascade/SpaFallbackResource.java new file mode 100644 index 0000000..e69de29 diff --git a/src/main/web/package.json b/src/main/web/package.json new file mode 100644 index 0000000..e69de29 diff --git a/src/main/web/src/App.tsx b/src/main/web/src/App.tsx new file mode 100644 index 0000000..e69de29 diff --git a/src/main/web/src/api/index.ts b/src/main/web/src/api/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/main/web/src/components/ActionInput.tsx b/src/main/web/src/components/ActionInput.tsx new file mode 100644 index 0000000..e69de29 diff --git a/src/main/web/src/components/NarrativeView.tsx b/src/main/web/src/components/NarrativeView.tsx new file mode 100644 index 0000000..e69de29 diff --git a/src/main/web/src/components/SuggestionList.tsx b/src/main/web/src/components/SuggestionList.tsx new file mode 100644 index 0000000..e69de29 diff --git a/src/main/web/src/main.tsx b/src/main/web/src/main.tsx new file mode 100644 index 0000000..e69de29 diff --git a/src/main/web/src/pages/SessionPage.tsx b/src/main/web/src/pages/SessionPage.tsx new file mode 100644 index 0000000..e69de29 diff --git a/src/main/web/src/pages/StartPage.tsx b/src/main/web/src/pages/StartPage.tsx new file mode 100644 index 0000000..e69de29 diff --git a/src/main/web/vite.config.ts b/src/main/web/vite.config.ts new file mode 100644 index 0000000..e69de29