File size: 1,737 Bytes
a566fb0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
/**
* pages.config.js - Page routing configuration
*
* This file is AUTO-GENERATED. Do not add imports or modify PAGES manually.
* Pages are auto-registered when you create files in the ./pages/ folder.
*
* THE ONLY EDITABLE VALUE: mainPage
* This controls which page is the landing page (shown when users visit the app).
*
* Example file structure:
*
* import HomePage from './pages/HomePage';
* import Dashboard from './pages/Dashboard';
* import Settings from './pages/Settings';
*
* export const PAGES = {
* "HomePage": HomePage,
* "Dashboard": Dashboard,
* "Settings": Settings,
* }
*
* export const pagesConfig = {
* mainPage: "HomePage",
* Pages: PAGES,
* };
*
* Example with Layout (wraps all pages):
*
* import Home from './pages/Home';
* import Settings from './pages/Settings';
* import __Layout from './Layout.jsx';
*
* export const PAGES = {
* "Home": Home,
* "Settings": Settings,
* }
*
* export const pagesConfig = {
* mainPage: "Home",
* Pages: PAGES,
* Layout: __Layout,
* };
*
* To change the main page from HomePage to Dashboard, use find_replace:
* Old: mainPage: "HomePage",
* New: mainPage: "Dashboard",
*
* The mainPage value must match a key in the PAGES object exactly.
*/
import Home from './pages/Home';
import Lessons from './pages/Lessons';
import Quiz from './pages/Quiz';
import __Layout from './Layout.jsx';
export const PAGES = {
"Home": Home,
"Lessons": Lessons,
"Quiz": Quiz,
}
export const pagesConfig = {
mainPage: "Home",
Pages: PAGES,
Layout: __Layout,
}; |