Merge pull request #301 from mjashanks/master

Few Bugfixes
This commit is contained in:
Michael Shanks 2020-06-03 12:38:02 +01:00 committed by GitHub
commit 13d852a49c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 14 additions and 8 deletions

View File

@ -28,7 +28,7 @@
{/each}
</select>
{:else}
<Input on:change={onChange} value={parameter.value} />
<Input onChange={onChange} value={parameter.value} />
<button on:click={() => (isOpen = !isOpen)}>
<div class="icon" style={`transform: rotate(${isOpen ? 0 : 90}deg);`}>
<ArrowDownIcon size={36} />

View File

@ -7,6 +7,7 @@
<div class="uk-margin block-field">
<div class="uk-form-controls">
<select class="budibase__input" on:change {value}>
<option value=""></option>
{#each $backendUiStore.models as model}
<option value={model._id}>{model.name}</option>
{/each}

View File

@ -7,6 +7,7 @@
<div class="uk-margin block-field">
<div class="uk-form-controls">
<select class="budibase__input" bind:value>
<option value=""></option>
{#each $backendUiStore.models as model}
<option value={model}>{model.name}</option>
{/each}

View File

@ -38,6 +38,7 @@ router
ctx.config = {
latestPackagesFolder: budibaseAppsDir(),
jwtSecret: env.JWT_SECRET,
useAppRootPath: true,
}
ctx.isDev = env.NODE_ENV !== "production" && env.NODE_ENV !== "jest"
await next()

View File

@ -9,8 +9,10 @@
"_id": 0,
"type": "div",
"_styles": {
"layout": {},
"position": {}
"active": {},
"hover": {},
"normal": {},
"selected": {}
},
"_code": ""
},

View File

@ -9,8 +9,10 @@
"_id": 1,
"type": "div",
"_styles": {
"layout": {},
"position": {}
"active": {},
"hover": {},
"normal": {},
"selected": {}
},
"_code": ""
},

View File

@ -28,8 +28,7 @@ module.exports = async (config, appId, pageName, pkg) => {
await savePageJson(appPath, pageName, pkg)
}
const rootPath = (config, appname) =>
config.useAppRootPath ? `/${appname}` : ""
const rootPath = (config, appId) => (config.useAppRootPath ? `/${appId}` : "")
const copyClientLib = async (appPath, pageName) => {
const sourcepath = require.resolve("@budibase/client")

View File

@ -13,7 +13,7 @@
$: target = openInNewTab ? "_blank" : "_self"
</script>
<a href={url} bind:this={anchorElement} {target}>{text}</a>
<a href={_bb.relativeUrl(url)} bind:this={anchorElement} {target}>{text}</a>
<style>
.textDecoration {