adding builder route for testing

This commit is contained in:
Martin McKeaveney 2020-05-18 18:05:36 +01:00
parent ccbcb0af40
commit 8d798579eb
3 changed files with 53 additions and 5 deletions

View File

@ -1,8 +1,8 @@
name: Budibase Release name: Budibase Release
on: on:
# Trigger the workflow on push, # Trigger the workflow on push with tags,
# but only for the release branch # but only for the master branch
push: push:
branches: branches:
- master - master
@ -25,10 +25,10 @@ jobs:
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- run: yarn - run: yarn
# - run: yarn lint - run: yarn lint
- run: yarn bootstrap - run: yarn bootstrap
- run: yarn build - run: yarn build
# - run: yarn test - run: yarn test
- name: Prepare for app notarization (macOS) - name: Prepare for app notarization (macOS)
if: startsWith(matrix.os, 'macos') if: startsWith(matrix.os, 'macos')

View File

@ -0,0 +1,48 @@
<script>
import { store } from "builderStore"
import AppList from "components/start/AppList.svelte"
import { onMount } from "svelte"
import IconButton from "components/common/IconButton.svelte"
import Spinner from "components/common/Spinner.svelte"
let promise = getApps()
async function getApps() {
const res = await fetch(`/api/applications`)
const json = await res.json()
if (res.ok) {
return json
} else {
throw new Error(json)
}
}
</script>
<main>
{#await promise}
<div class="spinner-container">
<Spinner />
</div>
{:then result}
<AppList apps={result} />
{:catch err}
<h1 style="color:red">{err}</h1>
{/await}
</main>
<style>
main {
height: 100%;
width: 100%;
font-family: "Roboto", Helvetica, Arial, sans-serif;
}
.spinner-container {
height: 100%;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
</style>

View File

@ -13,7 +13,7 @@ if (isDev) {
}) })
} }
const APP_URL = "http://localhost:4001" const APP_URL = "http://localhost:4001/_builder"
const APP_TITLE = "Budibase Builder" const APP_TITLE = "Budibase Builder"
let win let win