mirror of https://github.com/Budibase/budibase.git
37 changed files with 1327 additions and 321 deletions
@ -0,0 +1,20 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
GITHUB_BASE_URL=https://raw.githubusercontent.com/Budibase/budibase/master/hosting |
|||
|
|||
if ! [ -x "$(command -v wget)" ]; then |
|||
echo 'Error: wget is not installed. Please install it for your operating system.' >&2 |
|||
exit 1 |
|||
fi |
|||
|
|||
fetch_config_files() { |
|||
wget $GITHUB_BASE_URL/docker-compose.yaml |
|||
wget $GITHUB_BASE_URL/envoy.yaml |
|||
wget $GITHUB_BASE_URL/hosting.properties |
|||
wget $GITHUB_BASE_URL/start.sh |
|||
} |
|||
|
|||
fetch_config_files |
|||
|
|||
# Start budibase |
|||
docker-compose --env-file hosting.properties up -d |
|||
@ -0,0 +1,42 @@ |
|||
<script> |
|||
import { backendUiStore, store, allScreens } from "builderStore" |
|||
import { notifier } from "builderStore/store/notifications" |
|||
import { DropdownMenu, Button, Input, TextButton, Icon } from "@budibase/bbui" |
|||
import ConfirmDialog from "components/common/ConfirmDialog.svelte" |
|||
import IntegrationConfigForm from "../TableIntegrationMenu//IntegrationConfigForm.svelte" |
|||
import { DropdownContainer, DropdownItem } from "components/common/Dropdowns" |
|||
import ParameterBuilder from "components/integration/QueryParameterBuilder.svelte" |
|||
|
|||
export let bindable |
|||
export let parameters |
|||
|
|||
let anchor |
|||
let dropdown |
|||
let confirmDeleteDialog |
|||
|
|||
function hideEditor() { |
|||
dropdown?.hide() |
|||
} |
|||
</script> |
|||
|
|||
<div on:click|stopPropagation bind:this={anchor}> |
|||
<TextButton |
|||
text |
|||
on:click={dropdown.show} |
|||
active={false}> |
|||
<Icon name="add" /> |
|||
Add Parameters |
|||
</TextButton> |
|||
<DropdownMenu align="right" {anchor} bind:this={dropdown}> |
|||
<div class="wrapper"> |
|||
<ParameterBuilder bind:parameters {bindable} /> |
|||
</div> |
|||
</DropdownMenu> |
|||
</div> |
|||
|
|||
<style> |
|||
.wrapper { |
|||
padding: var(--spacing-xl); |
|||
min-width: 600px; |
|||
} |
|||
</style> |
|||
@ -1,10 +1,15 @@ |
|||
import { notificationStore } from "../store/notification" |
|||
import API from "./api" |
|||
/** |
|||
* Executes an automation. Must have "App Action" trigger. |
|||
*/ |
|||
export const triggerAutomation = async (automationId, fields) => { |
|||
return await API.post({ |
|||
const res = await API.post({ |
|||
url: `/api/automations/${automationId}/trigger`, |
|||
body: { fields }, |
|||
}) |
|||
res.error |
|||
? notificationStore.danger("An error has occurred") |
|||
: notificationStore.success("Automation triggered") |
|||
return res |
|||
} |
|||
|
|||
@ -1,14 +1,18 @@ |
|||
import { notificationStore } from "../store/notification" |
|||
import API from "./api" |
|||
|
|||
/** |
|||
* Executes a query against an external data connector. |
|||
*/ |
|||
export const executeQuery = async ({ queryId, parameters }) => { |
|||
const response = await API.post({ |
|||
const res = await API.post({ |
|||
url: `/api/queries/${queryId}`, |
|||
body: { |
|||
parameters, |
|||
}, |
|||
}) |
|||
return response |
|||
if (res.error) { |
|||
notificationStore.danger("An error has occurred") |
|||
} |
|||
return res |
|||
} |
|||
|
|||
File diff suppressed because it is too large
Loading…
Reference in new issue