1
0
Fork 0
mirror of synced 2024-07-08 15:56:23 +12:00

Merge pull request #2917 from Budibase/fix/post-release-fixes

Fix/post release fixes
This commit is contained in:
Martin McKeaveney 2021-10-07 20:59:07 +01:00 committed by GitHub
commit 30bb10a75a
17 changed files with 83 additions and 27 deletions

View file

@ -1,5 +1,5 @@
{
"version": "0.9.154-alpha.1",
"version": "0.9.156",
"npmClient": "yarn",
"packages": [
"packages/*"

View file

@ -1,6 +1,6 @@
{
"name": "@budibase/auth",
"version": "0.9.154-alpha.1",
"version": "0.9.156",
"description": "Authentication middlewares for budibase builder and apps",
"main": "src/index.js",
"author": "Budibase",

View file

@ -1,7 +1,7 @@
{
"name": "@budibase/bbui",
"description": "A UI solution used in the different Budibase projects.",
"version": "0.9.154-alpha.1",
"version": "0.9.156",
"license": "AGPL-3.0",
"svelte": "src/index.js",
"module": "dist/bbui.es.js",

View file

@ -1,6 +1,6 @@
{
"name": "@budibase/builder",
"version": "0.9.154-alpha.1",
"version": "0.9.156",
"license": "AGPL-3.0",
"private": true,
"scripts": {
@ -65,10 +65,10 @@
}
},
"dependencies": {
"@budibase/bbui": "^0.9.154-alpha.1",
"@budibase/client": "^0.9.154-alpha.1",
"@budibase/bbui": "^0.9.156",
"@budibase/client": "^0.9.156",
"@budibase/colorpicker": "1.1.2",
"@budibase/string-templates": "^0.9.154-alpha.1",
"@budibase/string-templates": "^0.9.156",
"@sentry/browser": "5.19.1",
"@spectrum-css/page": "^3.0.1",
"@spectrum-css/vars": "^3.0.1",

View file

@ -68,5 +68,5 @@
{/if}
<ManageAccessButton resourceId={decodeURI(name)} />
<HideAutocolumnButton bind:hideAutocolumns />
<ExportButton {view} />
<ExportButton view={view.name} />
</Table>

View file

@ -64,7 +64,7 @@ export default `
appId,
theme,
customTheme,
previewDevice
previewDevice,
} = parsed
// Set some flags so the app knows we're in the builder

View file

@ -33,7 +33,10 @@
</div>
{/each}
<div class="template start-from-scratch" on:click={() => onSelect(null)}>
<div class="background-icon" style={`background: var(--background);`}>
<div
class="background-icon"
style={`background: rgb(50, 50, 50); color: white;`}
>
<Icon name="Add" />
</div>
<Heading size="XS">Start from scratch</Heading>
@ -74,7 +77,7 @@
align-items: center;
cursor: pointer;
border-radius: 4px;
background: #1a1a1a;
background: var(--background-alt);
padding: 8px 16px;
}

View file

@ -56,7 +56,7 @@ export function createAuthStore() {
analytics.identify(user._id, user)
analytics.showChat({
email: user.email,
created_at: user.createdAt || Date.now(),
created_at: (user.createdAt || Date.now()) / 1000,
name: user.name,
user_id: user._id,
tenant: user.tenantId,

View file

@ -1,6 +1,6 @@
{
"name": "@budibase/cli",
"version": "0.9.154-alpha.1",
"version": "0.9.156",
"description": "Budibase CLI, for developers, self hosting and migrations.",
"main": "src/index.js",
"bin": {

View file

@ -1,6 +1,6 @@
{
"name": "@budibase/client",
"version": "0.9.154-alpha.1",
"version": "0.9.156",
"license": "MPL-2.0",
"module": "dist/budibase-client.js",
"main": "dist/budibase-client.js",
@ -19,9 +19,9 @@
"dev:builder": "rollup -cw"
},
"dependencies": {
"@budibase/bbui": "^0.9.154-alpha.1",
"@budibase/bbui": "^0.9.156",
"@budibase/standard-components": "^0.9.139",
"@budibase/string-templates": "^0.9.154-alpha.1",
"@budibase/string-templates": "^0.9.156",
"regexparam": "^1.3.0",
"shortid": "^2.2.15",
"svelte-spa-router": "^3.0.5"

View file

@ -0,0 +1,42 @@
<a
href="https://www.budibase.com/?utm_source=budibase-apps-public-screens&utm_medium=badge&utm_campaign=made-in-budibase"
>
<div>
<img src="https://i.imgur.com/Xhdt1YP.png" alt="Budibase" />
<p>Made In Budibase</p>
</div>
</a>
<style>
div {
position: absolute;
right: 20px;
bottom: 20px;
padding: 10px;
border-radius: 5px;
background: var(--spectrum-alias-background-color-primary);
z-index: 999999 !important;
visibility: visible !important;
display: flex;
justify-content: center;
align-items: center;
border: 1px solid;
border-color: var(--spectrum-global-color-gray-300) !important;
height: 45px;
}
p {
text-decoration: none;
color: var(--spectrum-heading-m-text-color);
}
a:visited {
text-decoration: none;
color: var(--spectrum-heading-m-text-color);
}
img {
height: 20px;
margin-right: 10px;
}
</style>

View file

@ -1,7 +1,7 @@
{
"name": "@budibase/server",
"email": "hi@budibase.com",
"version": "0.9.154-alpha.1",
"version": "0.9.156",
"description": "Budibase Web Server",
"main": "src/index.js",
"repository": {
@ -66,9 +66,9 @@
"author": "Budibase",
"license": "AGPL-3.0-or-later",
"dependencies": {
"@budibase/auth": "^0.9.154-alpha.1",
"@budibase/client": "^0.9.154-alpha.1",
"@budibase/string-templates": "^0.9.154-alpha.1",
"@budibase/auth": "^0.9.156",
"@budibase/client": "^0.9.156",
"@budibase/string-templates": "^0.9.156",
"@elastic/elasticsearch": "7.10.0",
"@koa/router": "8.0.0",
"@sendgrid/mail": "7.1.1",

View file

@ -21,9 +21,12 @@ exports.endUserPing = async ctx => {
return
}
posthogClient.capture("budibase:end_user_ping", {
userId: ctx.user && ctx.user._id,
appId: ctx.appId,
posthogClient.capture({
event: "budibase:end_user_ping",
distinctId: ctx.user && ctx.user._id,
properties: {
appId: ctx.appId,
},
})
ctx.body = {

View file

@ -2,6 +2,8 @@ const {
ViewNames,
generateMemoryViewID,
getMemoryViewParams,
DocumentTypes,
SEPARATOR,
} = require("../../../db/utils")
const env = require("../../../environment")
@ -10,6 +12,11 @@ exports.getView = async (db, viewName) => {
const designDoc = await db.get("_design/database")
return designDoc.views[viewName]
} else {
// This is a table view, don't read the view from the DB
if (viewName.startsWith(DocumentTypes.TABLE + SEPARATOR)) {
return null
}
const viewDoc = await db.get(generateMemoryViewID(viewName))
return viewDoc.view
}

View file

@ -45,6 +45,7 @@ module.exports = async (ctx, next) => {
// retrieving global user gets the right role
roleId = globalUser.roleId || BUILTIN_ROLE_IDS.BASIC
}
// nothing more to do
if (!appId) {
return next()

View file

@ -1,6 +1,6 @@
{
"name": "@budibase/string-templates",
"version": "0.9.154-alpha.1",
"version": "0.9.156",
"description": "Handlebars wrapper for Budibase templating.",
"main": "src/index.cjs",
"module": "dist/bundle.mjs",

View file

@ -1,7 +1,7 @@
{
"name": "@budibase/worker",
"email": "hi@budibase.com",
"version": "0.9.154-alpha.1",
"version": "0.9.156",
"description": "Budibase background service",
"main": "src/index.js",
"repository": {
@ -27,8 +27,8 @@
"author": "Budibase",
"license": "AGPL-3.0-or-later",
"dependencies": {
"@budibase/auth": "^0.9.154-alpha.1",
"@budibase/string-templates": "^0.9.154-alpha.1",
"@budibase/auth": "^0.9.156",
"@budibase/string-templates": "^0.9.156",
"@koa/router": "^8.0.0",
"@techpass/passport-openidconnect": "^0.3.0",
"aws-sdk": "^2.811.0",