Settings fixes: - MAX_SITES_PER_USER, USER_RATE_LIMIT_PER_MIN/HR now read from DB settings table (DB > ENV > default), so dashboard/settings changes apply without restart. Sync cache refreshed on every save or delete. - /api/me reports the live DB value for max_sites_per_user. Admin improvements: - Admin users bypass per-user rate limiting entirely (role=admin or ADMIN_EMAILS). - Admin Overview now shows platform stats: registered users, new users (7d), total user sites, available tools. Plugin cleanup: - Appwrite and Directus plugins removed from the active registry (8 plugins now: WordPress, WooCommerce, WordPress Specialist, Gitea, n8n, Supabase, OpenPanel, Coolify). Plugin code is retained for future re-enabling. - Settings page plugin visibility list updated to match. Mobile onboarding: - Stepper steps on narrow viewports stack vertically with correct full border and rounded corners on each step. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
790 B
TypeScript
28 lines
790 B
TypeScript
import { StrictMode } from "react";
|
|
import { createRoot } from "react-dom/client";
|
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
import { BrowserRouter } from "react-router-dom";
|
|
import { App } from "./App";
|
|
import "./styles/globals.css";
|
|
|
|
const qc = new QueryClient({
|
|
defaultOptions: {
|
|
queries: { refetchOnWindowFocus: false, retry: 1, staleTime: 10_000 },
|
|
},
|
|
});
|
|
|
|
const root = document.getElementById("app");
|
|
if (!root) throw new Error("#app not found");
|
|
|
|
const basename = window.location.pathname.startsWith("/dashboard") ? "/dashboard" : "/";
|
|
|
|
createRoot(root).render(
|
|
<StrictMode>
|
|
<QueryClientProvider client={qc}>
|
|
<BrowserRouter basename={basename}>
|
|
<App />
|
|
</BrowserRouter>
|
|
</QueryClientProvider>
|
|
</StrictMode>,
|
|
);
|