-
+
{name}
diff --git a/packages/builder/src/pages/_layout.svelte b/packages/builder/src/pages/app/_layout.svelte
similarity index 100%
rename from packages/builder/src/pages/_layout.svelte
rename to packages/builder/src/pages/app/_layout.svelte
diff --git a/packages/builder/src/pages/admin/index.svelte b/packages/builder/src/pages/app/admin/index.svelte
similarity index 100%
rename from packages/builder/src/pages/admin/index.svelte
rename to packages/builder/src/pages/app/admin/index.svelte
diff --git a/packages/builder/src/pages/auth/index.svelte b/packages/builder/src/pages/app/auth/index.svelte
similarity index 100%
rename from packages/builder/src/pages/auth/index.svelte
rename to packages/builder/src/pages/app/auth/index.svelte
diff --git a/packages/builder/src/pages/auth/login.svelte b/packages/builder/src/pages/app/auth/login.svelte
similarity index 100%
rename from packages/builder/src/pages/auth/login.svelte
rename to packages/builder/src/pages/app/auth/login.svelte
diff --git a/packages/builder/src/pages/builder/[application]/_reset.svelte b/packages/builder/src/pages/app/builder/[application]/_reset.svelte
similarity index 97%
rename from packages/builder/src/pages/builder/[application]/_reset.svelte
rename to packages/builder/src/pages/app/builder/[application]/_reset.svelte
index b025f94549..98846b3db7 100644
--- a/packages/builder/src/pages/builder/[application]/_reset.svelte
+++ b/packages/builder/src/pages/app/builder/[application]/_reset.svelte
@@ -6,9 +6,9 @@
import ThemeEditorDropdown from "components/settings/ThemeEditorDropdown.svelte"
import FeedbackNavLink from "components/feedback/FeedbackNavLink.svelte"
import { get } from "builderStore/api"
- import { isActive, goto, layout, params } from "@roxi/routify"
+ import { isActive, goto, layout } from "@roxi/routify"
import Logo from "/assets/bb-logo.svg"
- import { capitalise } from "../../../helpers"
+ import { capitalise } from "helpers"
// Get Package and set store
export let application
diff --git a/packages/builder/src/pages/builder/[application]/automate/[automation]/_layout.svelte b/packages/builder/src/pages/app/builder/[application]/automate/[automation]/_layout.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/automate/[automation]/_layout.svelte
rename to packages/builder/src/pages/app/builder/[application]/automate/[automation]/_layout.svelte
diff --git a/packages/builder/src/pages/builder/[application]/automate/[automation]/index.svelte b/packages/builder/src/pages/app/builder/[application]/automate/[automation]/index.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/automate/[automation]/index.svelte
rename to packages/builder/src/pages/app/builder/[application]/automate/[automation]/index.svelte
diff --git a/packages/builder/src/pages/builder/[application]/automate/_layout.svelte b/packages/builder/src/pages/app/builder/[application]/automate/_layout.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/automate/_layout.svelte
rename to packages/builder/src/pages/app/builder/[application]/automate/_layout.svelte
diff --git a/packages/builder/src/pages/builder/[application]/automate/index.svelte b/packages/builder/src/pages/app/builder/[application]/automate/index.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/automate/index.svelte
rename to packages/builder/src/pages/app/builder/[application]/automate/index.svelte
diff --git a/packages/builder/src/pages/builder/[application]/data/_layout.svelte b/packages/builder/src/pages/app/builder/[application]/data/_layout.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/data/_layout.svelte
rename to packages/builder/src/pages/app/builder/[application]/data/_layout.svelte
diff --git a/packages/builder/src/pages/builder/[application]/data/datasource/[selectedDatasource]/[query]/_layout.svelte b/packages/builder/src/pages/app/builder/[application]/data/datasource/[selectedDatasource]/[query]/_layout.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/data/datasource/[selectedDatasource]/[query]/_layout.svelte
rename to packages/builder/src/pages/app/builder/[application]/data/datasource/[selectedDatasource]/[query]/_layout.svelte
diff --git a/packages/builder/src/pages/builder/[application]/data/datasource/[selectedDatasource]/[query]/index.svelte b/packages/builder/src/pages/app/builder/[application]/data/datasource/[selectedDatasource]/[query]/index.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/data/datasource/[selectedDatasource]/[query]/index.svelte
rename to packages/builder/src/pages/app/builder/[application]/data/datasource/[selectedDatasource]/[query]/index.svelte
diff --git a/packages/builder/src/pages/builder/[application]/data/datasource/[selectedDatasource]/_layout.svelte b/packages/builder/src/pages/app/builder/[application]/data/datasource/[selectedDatasource]/_layout.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/data/datasource/[selectedDatasource]/_layout.svelte
rename to packages/builder/src/pages/app/builder/[application]/data/datasource/[selectedDatasource]/_layout.svelte
diff --git a/packages/builder/src/pages/builder/[application]/data/datasource/[selectedDatasource]/index.svelte b/packages/builder/src/pages/app/builder/[application]/data/datasource/[selectedDatasource]/index.svelte
similarity index 98%
rename from packages/builder/src/pages/builder/[application]/data/datasource/[selectedDatasource]/index.svelte
rename to packages/builder/src/pages/app/builder/[application]/data/datasource/[selectedDatasource]/index.svelte
index c0f8b99778..7651eed33d 100644
--- a/packages/builder/src/pages/builder/[application]/data/datasource/[selectedDatasource]/index.svelte
+++ b/packages/builder/src/pages/app/builder/[application]/data/datasource/[selectedDatasource]/index.svelte
@@ -5,7 +5,7 @@
import { notifications } from "@budibase/bbui"
import IntegrationConfigForm from "components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte"
import ICONS from "components/backend/DatasourceNavigator/icons"
- import { capitalise } from "../../../../../../helpers"
+ import { capitalise } from "helpers"
let unsaved = false
diff --git a/packages/builder/src/pages/builder/[application]/data/datasource/_layout.svelte b/packages/builder/src/pages/app/builder/[application]/data/datasource/_layout.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/data/datasource/_layout.svelte
rename to packages/builder/src/pages/app/builder/[application]/data/datasource/_layout.svelte
diff --git a/packages/builder/src/pages/builder/[application]/data/datasource/index.svelte b/packages/builder/src/pages/app/builder/[application]/data/datasource/index.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/data/datasource/index.svelte
rename to packages/builder/src/pages/app/builder/[application]/data/datasource/index.svelte
diff --git a/packages/builder/src/pages/builder/[application]/data/index.svelte b/packages/builder/src/pages/app/builder/[application]/data/index.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/data/index.svelte
rename to packages/builder/src/pages/app/builder/[application]/data/index.svelte
diff --git a/packages/builder/src/pages/builder/[application]/data/table/[selectedTable]/_layout.svelte b/packages/builder/src/pages/app/builder/[application]/data/table/[selectedTable]/_layout.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/data/table/[selectedTable]/_layout.svelte
rename to packages/builder/src/pages/app/builder/[application]/data/table/[selectedTable]/_layout.svelte
diff --git a/packages/builder/src/pages/builder/[application]/data/table/[selectedTable]/index.svelte b/packages/builder/src/pages/app/builder/[application]/data/table/[selectedTable]/index.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/data/table/[selectedTable]/index.svelte
rename to packages/builder/src/pages/app/builder/[application]/data/table/[selectedTable]/index.svelte
diff --git a/packages/builder/src/pages/builder/[application]/data/table/[selectedTable]/relationship/[selectedRow]/[selectedField]/index.svelte b/packages/builder/src/pages/app/builder/[application]/data/table/[selectedTable]/relationship/[selectedRow]/[selectedField]/index.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/data/table/[selectedTable]/relationship/[selectedRow]/[selectedField]/index.svelte
rename to packages/builder/src/pages/app/builder/[application]/data/table/[selectedTable]/relationship/[selectedRow]/[selectedField]/index.svelte
diff --git a/packages/builder/src/pages/builder/[application]/data/table/[selectedTable]/relationship/[selectedRow]/index.svelte b/packages/builder/src/pages/app/builder/[application]/data/table/[selectedTable]/relationship/[selectedRow]/index.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/data/table/[selectedTable]/relationship/[selectedRow]/index.svelte
rename to packages/builder/src/pages/app/builder/[application]/data/table/[selectedTable]/relationship/[selectedRow]/index.svelte
diff --git a/packages/builder/src/pages/builder/[application]/data/table/[selectedTable]/relationship/index.svelte b/packages/builder/src/pages/app/builder/[application]/data/table/[selectedTable]/relationship/index.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/data/table/[selectedTable]/relationship/index.svelte
rename to packages/builder/src/pages/app/builder/[application]/data/table/[selectedTable]/relationship/index.svelte
diff --git a/packages/builder/src/pages/builder/[application]/data/table/_layout.svelte b/packages/builder/src/pages/app/builder/[application]/data/table/_layout.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/data/table/_layout.svelte
rename to packages/builder/src/pages/app/builder/[application]/data/table/_layout.svelte
diff --git a/packages/builder/src/pages/builder/[application]/data/table/index.svelte b/packages/builder/src/pages/app/builder/[application]/data/table/index.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/data/table/index.svelte
rename to packages/builder/src/pages/app/builder/[application]/data/table/index.svelte
diff --git a/packages/builder/src/pages/builder/[application]/data/view/[selectedView]/_layout.svelte b/packages/builder/src/pages/app/builder/[application]/data/view/[selectedView]/_layout.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/data/view/[selectedView]/_layout.svelte
rename to packages/builder/src/pages/app/builder/[application]/data/view/[selectedView]/_layout.svelte
diff --git a/packages/builder/src/pages/builder/[application]/data/view/[selectedView]/index.svelte b/packages/builder/src/pages/app/builder/[application]/data/view/[selectedView]/index.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/data/view/[selectedView]/index.svelte
rename to packages/builder/src/pages/app/builder/[application]/data/view/[selectedView]/index.svelte
diff --git a/packages/builder/src/pages/builder/[application]/deploy/_layout.svelte b/packages/builder/src/pages/app/builder/[application]/deploy/_layout.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/deploy/_layout.svelte
rename to packages/builder/src/pages/app/builder/[application]/deploy/_layout.svelte
diff --git a/packages/builder/src/pages/builder/[application]/deploy/index.svelte b/packages/builder/src/pages/app/builder/[application]/deploy/index.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/deploy/index.svelte
rename to packages/builder/src/pages/app/builder/[application]/deploy/index.svelte
diff --git a/packages/builder/src/pages/builder/[application]/design/[assetType]/[asset]/_fallback.svelte b/packages/builder/src/pages/app/builder/[application]/design/[assetType]/[asset]/_fallback.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/design/[assetType]/[asset]/_fallback.svelte
rename to packages/builder/src/pages/app/builder/[application]/design/[assetType]/[asset]/_fallback.svelte
diff --git a/packages/builder/src/pages/builder/[application]/design/[assetType]/_layout.svelte b/packages/builder/src/pages/app/builder/[application]/design/[assetType]/_layout.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/design/[assetType]/_layout.svelte
rename to packages/builder/src/pages/app/builder/[application]/design/[assetType]/_layout.svelte
diff --git a/packages/builder/src/pages/builder/[application]/design/[assetType]/index.svelte b/packages/builder/src/pages/app/builder/[application]/design/[assetType]/index.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/design/[assetType]/index.svelte
rename to packages/builder/src/pages/app/builder/[application]/design/[assetType]/index.svelte
diff --git a/packages/builder/src/pages/builder/[application]/design/_layout.svelte b/packages/builder/src/pages/app/builder/[application]/design/_layout.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/design/_layout.svelte
rename to packages/builder/src/pages/app/builder/[application]/design/_layout.svelte
diff --git a/packages/builder/src/pages/builder/[application]/design/index.svelte b/packages/builder/src/pages/app/builder/[application]/design/index.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/design/index.svelte
rename to packages/builder/src/pages/app/builder/[application]/design/index.svelte
diff --git a/packages/builder/src/pages/builder/[application]/index.svelte b/packages/builder/src/pages/app/builder/[application]/index.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/index.svelte
rename to packages/builder/src/pages/app/builder/[application]/index.svelte
diff --git a/packages/builder/src/pages/builder/[application]/settings/_layout.svelte b/packages/builder/src/pages/app/builder/[application]/settings/_layout.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/settings/_layout.svelte
rename to packages/builder/src/pages/app/builder/[application]/settings/_layout.svelte
diff --git a/packages/builder/src/pages/builder/[application]/settings/index.svelte b/packages/builder/src/pages/app/builder/[application]/settings/index.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/[application]/settings/index.svelte
rename to packages/builder/src/pages/app/builder/[application]/settings/index.svelte
diff --git a/packages/builder/src/pages/builder/index.svelte b/packages/builder/src/pages/app/builder/index.svelte
similarity index 100%
rename from packages/builder/src/pages/builder/index.svelte
rename to packages/builder/src/pages/app/builder/index.svelte
diff --git a/packages/builder/src/pages/app/index.svelte b/packages/builder/src/pages/app/index.svelte
new file mode 100644
index 0000000000..dc44c9e636
--- /dev/null
+++ b/packages/builder/src/pages/app/index.svelte
@@ -0,0 +1,4 @@
+
diff --git a/packages/builder/src/pages/portal/_layout.svelte b/packages/builder/src/pages/app/portal/_layout.svelte
similarity index 86%
rename from packages/builder/src/pages/portal/_layout.svelte
rename to packages/builder/src/pages/app/portal/_layout.svelte
index c22229da15..2c80768e7a 100644
--- a/packages/builder/src/pages/portal/_layout.svelte
+++ b/packages/builder/src/pages/app/portal/_layout.svelte
@@ -35,15 +35,19 @@
onMount(getInfo)
let menu = [
- { title: "Apps", href: "/portal/apps" },
- { title: "Drafts", href: "/portal/drafts" },
- { title: "Users", href: "/portal/users", heading: "Manage" },
- { title: "Groups", href: "/portal/groups" },
- { title: "Auth", href: "/portal/oauth" },
- { title: "Email", href: "/portal/email" },
- { title: "General", href: "/portal/settings/general", heading: "Settings" },
- { title: "Theming", href: "/portal/theming" },
- { title: "Account", href: "/portal/account" },
+ { title: "Apps", href: "/app/portal/apps" },
+ { title: "Drafts", href: "/app/portal/drafts" },
+ { title: "Users", href: "/app/portal/users", heading: "Manage" },
+ { title: "Groups", href: "/app/portal/groups" },
+ { title: "Auth", href: "/app/portal/oauth" },
+ { title: "Email", href: "/app/portal/email" },
+ {
+ title: "General",
+ href: "/app/portal/settings/general",
+ heading: "Settings",
+ },
+ { title: "Theming", href: "/app/portal/theming" },
+ { title: "Account", href: "/app/portal/account" },
]
diff --git a/packages/builder/src/pages/portal/apps/_layout.svelte b/packages/builder/src/pages/app/portal/apps/_layout.svelte
similarity index 100%
rename from packages/builder/src/pages/portal/apps/_layout.svelte
rename to packages/builder/src/pages/app/portal/apps/_layout.svelte
diff --git a/packages/builder/src/pages/portal/apps/index.svelte b/packages/builder/src/pages/app/portal/apps/index.svelte
similarity index 100%
rename from packages/builder/src/pages/portal/apps/index.svelte
rename to packages/builder/src/pages/app/portal/apps/index.svelte
diff --git a/packages/builder/src/pages/portal/index.svelte b/packages/builder/src/pages/app/portal/index.svelte
similarity index 100%
rename from packages/builder/src/pages/portal/index.svelte
rename to packages/builder/src/pages/app/portal/index.svelte
diff --git a/packages/builder/src/pages/portal/oauth/index.svelte b/packages/builder/src/pages/app/portal/oauth/index.svelte
similarity index 100%
rename from packages/builder/src/pages/portal/oauth/index.svelte
rename to packages/builder/src/pages/app/portal/oauth/index.svelte
diff --git a/packages/builder/src/pages/portal/oauth/logos/Google.svelte b/packages/builder/src/pages/app/portal/oauth/logos/Google.svelte
similarity index 100%
rename from packages/builder/src/pages/portal/oauth/logos/Google.svelte
rename to packages/builder/src/pages/app/portal/oauth/logos/Google.svelte
diff --git a/packages/builder/src/pages/portal/settings/_layout.svelte b/packages/builder/src/pages/app/portal/settings/_layout.svelte
similarity index 100%
rename from packages/builder/src/pages/portal/settings/_layout.svelte
rename to packages/builder/src/pages/app/portal/settings/_layout.svelte
diff --git a/packages/builder/src/pages/portal/settings/general.svelte b/packages/builder/src/pages/app/portal/settings/general.svelte
similarity index 100%
rename from packages/builder/src/pages/portal/settings/general.svelte
rename to packages/builder/src/pages/app/portal/settings/general.svelte
diff --git a/packages/builder/src/pages/portal/settings/index.svelte b/packages/builder/src/pages/app/portal/settings/index.svelte
similarity index 100%
rename from packages/builder/src/pages/portal/settings/index.svelte
rename to packages/builder/src/pages/app/portal/settings/index.svelte
diff --git a/packages/builder/src/pages/index.svelte b/packages/builder/src/pages/index.svelte
index dc44c9e636..4767d8b38e 100644
--- a/packages/builder/src/pages/index.svelte
+++ b/packages/builder/src/pages/index.svelte
@@ -1,4 +1,4 @@
diff --git a/packages/builder/vite.config.js b/packages/builder/vite.config.js
index 4125dec77e..09c3e6ab63 100644
--- a/packages/builder/vite.config.js
+++ b/packages/builder/vite.config.js
@@ -56,6 +56,10 @@ export default ({ mode }) => {
find: "actions",
replacement: path.resolve("./src/actions"),
},
+ {
+ find: "helpers",
+ replacement: path.resolve("./src/helpers"),
+ },
],
},
}