diff --git a/README.md b/README.md index cabe7b4..eb5c6c3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# TailwindElements-React-Starter +# Universal-React-Starter - [DaisyUI](https://daisyui.com/) - main styling - [react-icons](https://react-icons.github.io/react-icons/) - big icon library @@ -11,8 +11,9 @@ ## Usage 1. Setup `VITE_APP_NAME` in `.env.{mode}` files -2. run: `bun run dev` -3. To build for production, run: `bun run build` +2. Setup `VITE_BASE_PATH` in `.env.{mode}` files +3. run: `bun run dev` +4. To build for production, run: `bun run build` _bun can be replaced by packet manager of your choice_ diff --git a/bun.lockb b/bun.lockb index 5dd2ec3..25692cf 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/index.html b/index.html index 1a7416c..2f9e5ca 100644 --- a/index.html +++ b/index.html @@ -1,12 +1,34 @@ - +
- + + +Base path is: {main.basePath}
HomePage
diff --git a/src/features/InboxPage.tsx b/src/pages/InboxPage.tsx similarity index 100% rename from src/features/InboxPage.tsx rename to src/pages/InboxPage.tsx diff --git a/src/features/SettingsAdvancedPage.tsx b/src/pages/SettingsAdvancedPage.tsx similarity index 100% rename from src/features/SettingsAdvancedPage.tsx rename to src/pages/SettingsAdvancedPage.tsx diff --git a/src/routes/DebugNavigationButtonsGenerator.tsx b/src/routes/GenerateNavigationButtonsDebug.tsx similarity index 79% rename from src/routes/DebugNavigationButtonsGenerator.tsx rename to src/routes/GenerateNavigationButtonsDebug.tsx index a69bab8..b878a82 100644 --- a/src/routes/DebugNavigationButtonsGenerator.tsx +++ b/src/routes/GenerateNavigationButtonsDebug.tsx @@ -1,7 +1,8 @@ import React from "react"; -import * as R from "../routes/routes"; +import { v4 } from "uuid"; import { Link } from "wouter"; -import { Routes } from "../routes/routes"; +import * as R from "./routes"; +import { Routes } from "./routes"; import inDev from "../utils/inDebug"; const routesCrawler = ( @@ -9,19 +10,18 @@ const routesCrawler = ( routesPack: Routes[] = R.routesRoot, ): JSX.Element[] => { // Roll through routes and generate Route for each - return routesPack.map((route, index): JSX.Element => { + return routesPack.map((route): JSX.Element => { // Debug log shows generated routes inDev(() => console.log( - "routesCrawler", + "routesCrawler buttons", parentPath ? parentPath + route.path : route.path, ), ); return ( -