Add OpenAPI docs, frontend, migrations, and API updates

- OpenAPI: add missing endpoints (add-from-url, subscriptions, public availability)
- OpenAPI: CalendarSubscription schema, Subscriptions tag
- Frontend app
- Migrations: count_for_availability, subscriptions_sync, user_preferences, calendar_settings
- Config, rate limit, auth, calendar, booking, ICS, availability, user service updates

Made-with: Cursor
This commit is contained in:
Michilis
2026-03-02 14:07:55 +00:00
parent 2cb9d72a7f
commit 75105b8b46
8120 changed files with 1486881 additions and 314 deletions

40
frontend/vite.config.ts Normal file
View File

@@ -0,0 +1,40 @@
import { defineConfig, loadEnv } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), "");
const apiUrl = env.VITE_API_URL || "http://localhost:8080";
return {
plugins: [react(), tailwindcss()],
server: {
port: 5173,
proxy: {
"/auth": apiUrl,
"/users": apiUrl,
"/calendars": apiUrl,
"/events": apiUrl,
"/contacts": apiUrl,
"/availability": apiUrl,
"/booking": apiUrl,
"/api-keys": apiUrl,
"/cal": apiUrl,
"/openapi.json": apiUrl,
"/docs": apiUrl,
},
},
build: {
outDir: "dist",
sourcemap: mode !== "production",
rollupOptions: {
output: {
manualChunks: {
vendor: ["react", "react-dom", "react-router-dom"],
date: ["date-fns"],
},
},
},
},
};
});