|
|
@ -2,7 +2,7 @@ |
|
|
import { onMount } from "svelte" |
|
|
import { onMount } from "svelte" |
|
|
import { store, currentScreens } from "builderStore" |
|
|
import { store, currentScreens } from "builderStore" |
|
|
import api from "builderStore/api" |
|
|
import api from "builderStore/api" |
|
|
import ComponentsHierarchy from "components/userInterface/ComponentNavigationTree/index.svelte" |
|
|
import ComponentNavigationTree from "components/userInterface/ComponentNavigationTree/index.svelte" |
|
|
import PageLayout from "components/userInterface/PageLayout.svelte" |
|
|
import PageLayout from "components/userInterface/PageLayout.svelte" |
|
|
import PagesList from "components/userInterface/PagesList.svelte" |
|
|
import PagesList from "components/userInterface/PagesList.svelte" |
|
|
import NewScreenModal from "components/userInterface/NewScreenModal.svelte" |
|
|
import NewScreenModal from "components/userInterface/NewScreenModal.svelte" |
|
|
@ -13,12 +13,9 @@ |
|
|
let routes = {} |
|
|
let routes = {} |
|
|
|
|
|
|
|
|
async function fetchRoutes() { |
|
|
async function fetchRoutes() { |
|
|
// fetch the routing stuff here |
|
|
|
|
|
const response = await api.get("/api/routing") |
|
|
const response = await api.get("/api/routing") |
|
|
const json = await response.json() |
|
|
const json = await response.json() |
|
|
|
|
|
|
|
|
console.log(json) |
|
|
|
|
|
|
|
|
|
|
|
routes = json.routes |
|
|
routes = json.routes |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -34,7 +31,7 @@ |
|
|
<PagesList /> |
|
|
<PagesList /> |
|
|
<div class="nav-items-container"> |
|
|
<div class="nav-items-container"> |
|
|
<PageLayout layout={$store.pages[$store.currentPageName]} /> |
|
|
<PageLayout layout={$store.pages[$store.currentPageName]} /> |
|
|
<ComponentsHierarchy {routes} /> |
|
|
<ComponentNavigationTree {routes} /> |
|
|
</div> |
|
|
</div> |
|
|
<Modal bind:this={modal}> |
|
|
<Modal bind:this={modal}> |
|
|
<NewScreenModal /> |
|
|
<NewScreenModal /> |
|
|
|