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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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