1
0
Fork 0
mirror of synced 2024-07-03 21:40:55 +12:00

Merge branch 'feature/page-refactor' of github.com:Budibase/budibase into feature/page-refactor

This commit is contained in:
Martin McKeaveney 2020-12-08 10:32:52 +00:00
commit 3af1b7bad7
6 changed files with 11 additions and 20 deletions

View file

@ -76,10 +76,6 @@ export default {
{ src: "src/index.html", dest: outputpath },
{ src: "src/favicon.png", dest: outputpath },
{ src: "assets", dest: outputpath },
{
src: "node_modules/@budibase/client/dist/budibase-client.esm.mjs",
dest: outputpath,
},
{
src: "node_modules/@budibase/bbui/dist/bbui.css",
dest: outputpath,

View file

@ -69,13 +69,11 @@
</script>
<div class="component-container">
{#if $currentAsset}
<iframe
style="height: 100%; width: 100%"
title="componentPreview"
bind:this={iframe}
srcdoc={iframeTemplate} />
{/if}
<iframe
style="height: 100%; width: 100%"
title="componentPreview"
bind:this={iframe}
srcdoc={iframeTemplate} />
</div>
<style>

View file

@ -1,12 +1,11 @@
<html>
<head>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto+Mono">
<style>
body, html {
height: 100% !important;
font-family: Inter !important;
margin: 0px !important;
font-family: Inter, sans-serif !important;
margin: 0 !important;
}
*, *:before, *:after {
box-sizing: border-box;
@ -35,8 +34,6 @@
}
}
let selectedComponentStyle
// Ignore clicks
["click", "mousedown"].forEach(type => {
document.addEventListener(type, function(e) {

View file

@ -3,7 +3,7 @@
"version": "0.3.8",
"license": "MPL-2.0",
"main": "dist/budibase-client.js",
"module": "dist/budibase-client.esm.mjs",
"module": "dist/budibase-client.js",
"scripts": {
"build": "rollup -c",
"dev:builder": "rollup -cw"

View file

@ -34,7 +34,7 @@ const createRouteStore = () => {
}
const setActiveRoute = route => {
store.update(state => {
state.activeRoute = route
state.activeRoute = state.routes.find(x => x.path === route)
return state
})
}

View file

@ -24,9 +24,9 @@ const createScreenStore = () => {
activeLayout = layouts[0]
if (screens.length === 1) {
activeScreen = screens[0]
} else {
} else if ($routeStore.activeRoute) {
activeScreen = screens.find(
screen => screen.routing.route === $routeStore.activeRoute
screen => screen._id === $routeStore.activeRoute.screenId
)
}
if (activeScreen) {