Merge branch 'master' of github.com:Budibase/budibase into feature/rbac

This commit is contained in:
mike12345567 2021-02-05 13:20:48 +00:00
commit 924086da83
10 changed files with 42 additions and 26 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "0.7.3", "version": "0.7.4",
"npmClient": "yarn", "npmClient": "yarn",
"packages": [ "packages": [
"packages/*" "packages/*"

View File

@ -1,6 +1,6 @@
{ {
"name": "@budibase/builder", "name": "@budibase/builder",
"version": "0.7.3", "version": "0.7.4",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"private": true, "private": true,
"scripts": { "scripts": {
@ -64,9 +64,9 @@
}, },
"dependencies": { "dependencies": {
"@budibase/bbui": "^1.56.0", "@budibase/bbui": "^1.56.0",
"@budibase/client": "^0.7.3", "@budibase/client": "^0.7.4",
"@budibase/colorpicker": "1.0.1", "@budibase/colorpicker": "1.0.1",
"@budibase/string-templates": "^0.7.3", "@budibase/string-templates": "^0.7.4",
"@budibase/svelte-ag-grid": "^0.0.16", "@budibase/svelte-ag-grid": "^0.0.16",
"@sentry/browser": "5.19.1", "@sentry/browser": "5.19.1",
"@svelteschool/svelte-forms": "0.7.0", "@svelteschool/svelte-forms": "0.7.0",

View File

@ -132,7 +132,8 @@
<header> <header>
<div class="input"> <div class="input">
<Input placeholder="✎ Edit Query Name" bind:value={query.name} /> <div class="label">Enter query name:</div>
<Input outline border bind:value={query.name} />
</div> </div>
{#if config} {#if config}
<div class="props"> <div class="props">
@ -216,7 +217,9 @@
<style> <style>
.input { .input {
width: 300px; width: 500px;
display: flex;
align-items: center;
} }
.select { .select {
@ -288,4 +291,12 @@
margin-top: -28px; margin-top: -28px;
z-index: -2; z-index: -2;
} }
.label {
font-family: var(--font-sans);
color: var(--grey-8);
font-size: var(--font-size-s);
margin-right: 8px;
font-weight: 600;
}
</style> </style>

View File

@ -14,7 +14,9 @@
async function exportApp() { async function exportApp() {
appExportLoading = true appExportLoading = true
try { try {
download(`/api/backups/export?appId=${_id}&appname=${name}`) download(
`/api/backups/export?appId=${_id}&appname=${encodeURIComponent(name)}`
)
notifier.success("App Export Complete.") notifier.success("App Export Complete.")
} catch (err) { } catch (err) {
console.error(err) console.error(err)
@ -30,13 +32,13 @@
<Spacer medium /> <Spacer medium />
<div class="card-footer"> <div class="card-footer">
<TextButton text medium blue href="/_builder/{_id}"> <TextButton text medium blue href="/_builder/{_id}">
Open Open {name}
{name}
</TextButton> </TextButton>
{#if appExportLoading} {#if appExportLoading}
<Spinner size="10" /> <Spinner size="10" />
{:else}<i class="ri-folder-download-line" on:click={exportApp} />{/if} {:else}
<i class="ri-folder-download-line" on:click={exportApp} />
{/if}
</div> </div>
</div> </div>

View File

@ -1,6 +1,6 @@
{ {
"name": "@budibase/client", "name": "@budibase/client",
"version": "0.7.3", "version": "0.7.4",
"license": "MPL-2.0", "license": "MPL-2.0",
"main": "dist/budibase-client.js", "main": "dist/budibase-client.js",
"module": "dist/budibase-client.js", "module": "dist/budibase-client.js",
@ -9,14 +9,14 @@
"dev:builder": "rollup -cw" "dev:builder": "rollup -cw"
}, },
"dependencies": { "dependencies": {
"@budibase/string-templates": "^0.7.3", "@budibase/string-templates": "^0.7.4",
"deep-equal": "^2.0.1", "deep-equal": "^2.0.1",
"regexparam": "^1.3.0", "regexparam": "^1.3.0",
"shortid": "^2.2.15", "shortid": "^2.2.15",
"svelte-spa-router": "^3.0.5" "svelte-spa-router": "^3.0.5"
}, },
"devDependencies": { "devDependencies": {
"@budibase/standard-components": "^0.7.3", "@budibase/standard-components": "^0.7.4",
"@rollup/plugin-commonjs": "^16.0.0", "@rollup/plugin-commonjs": "^16.0.0",
"@rollup/plugin-node-resolve": "^10.0.0", "@rollup/plugin-node-resolve": "^10.0.0",
"fs-extra": "^8.1.0", "fs-extra": "^8.1.0",
@ -30,5 +30,5 @@
"svelte": "^3.30.0", "svelte": "^3.30.0",
"svelte-jester": "^1.0.6" "svelte-jester": "^1.0.6"
}, },
"gitHead": "62ebf3cedcd7e9b2494b4f8cbcfb90927609b491" "gitHead": "1a80b09fd093f2599a68f7db72ad639dd50922dd"
} }

View File

@ -1,7 +1,7 @@
{ {
"name": "@budibase/server", "name": "@budibase/server",
"email": "hi@budibase.com", "email": "hi@budibase.com",
"version": "0.7.3", "version": "0.7.4",
"description": "Budibase Web Server", "description": "Budibase Web Server",
"main": "src/electron.js", "main": "src/electron.js",
"repository": { "repository": {
@ -50,8 +50,8 @@
"author": "Budibase", "author": "Budibase",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"dependencies": { "dependencies": {
"@budibase/client": "^0.7.3", "@budibase/client": "^0.7.4",
"@budibase/string-templates": "^0.7.3", "@budibase/string-templates": "^0.7.4",
"@elastic/elasticsearch": "7.10.0", "@elastic/elasticsearch": "7.10.0",
"@koa/router": "8.0.0", "@koa/router": "8.0.0",
"@sendgrid/mail": "7.1.1", "@sendgrid/mail": "7.1.1",
@ -120,5 +120,5 @@
"./scripts/jestSetup.js" "./scripts/jestSetup.js"
] ]
}, },
"gitHead": "62ebf3cedcd7e9b2494b4f8cbcfb90927609b491" "gitHead": "1a80b09fd093f2599a68f7db72ad639dd50922dd"
} }

View File

@ -4,7 +4,9 @@ const os = require("os")
const fs = require("fs-extra") const fs = require("fs-extra")
exports.exportAppDump = async function(ctx) { exports.exportAppDump = async function(ctx) {
const { appId, appname } = ctx.query const { appId } = ctx.query
const appname = decodeURI(ctx.query.appname)
const backupsDir = path.join(os.homedir(), ".budibase", "backups") const backupsDir = path.join(os.homedir(), ".budibase", "backups")
fs.ensureDirSync(backupsDir) fs.ensureDirSync(backupsDir)

View File

@ -34,9 +34,9 @@
"keywords": [ "keywords": [
"svelte" "svelte"
], ],
"version": "0.7.3", "version": "0.7.4",
"license": "MIT", "license": "MIT",
"gitHead": "62ebf3cedcd7e9b2494b4f8cbcfb90927609b491", "gitHead": "1a80b09fd093f2599a68f7db72ad639dd50922dd",
"dependencies": { "dependencies": {
"@budibase/bbui": "^1.55.1", "@budibase/bbui": "^1.55.1",
"@budibase/svelte-ag-grid": "^0.0.16", "@budibase/svelte-ag-grid": "^0.0.16",

View File

@ -1,6 +1,6 @@
{ {
"name": "@budibase/string-templates", "name": "@budibase/string-templates",
"version": "0.7.3", "version": "0.7.4",
"description": "Handlebars wrapper for Budibase templating.", "description": "Handlebars wrapper for Budibase templating.",
"main": "src/index.js", "main": "src/index.js",
"module": "src/index.js", "module": "src/index.js",
@ -32,5 +32,6 @@
"rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^7.0.2", "rollup-plugin-terser": "^7.0.2",
"typescript": "^4.1.3" "typescript": "^4.1.3"
} },
"gitHead": "1a80b09fd093f2599a68f7db72ad639dd50922dd"
} }

View File

@ -1,7 +1,7 @@
{ {
"name": "@budibase/deployment", "name": "@budibase/deployment",
"email": "hi@budibase.com", "email": "hi@budibase.com",
"version": "0.7.3", "version": "0.7.4",
"description": "Budibase Deployment Server", "description": "Budibase Deployment Server",
"main": "src/index.js", "main": "src/index.js",
"repository": { "repository": {
@ -34,5 +34,5 @@
"pouchdb-all-dbs": "^1.0.2", "pouchdb-all-dbs": "^1.0.2",
"server-destroy": "^1.0.1" "server-destroy": "^1.0.1"
}, },
"gitHead": "62ebf3cedcd7e9b2494b4f8cbcfb90927609b491" "gitHead": "1a80b09fd093f2599a68f7db72ad639dd50922dd"
} }