Import fixes for backend core constants. Minor name change for default data source from Test DB to Sample Data

This commit is contained in:
Dean 2022-11-21 12:47:36 +00:00
parent 4a94ef8bf9
commit a123e65e78
5 changed files with 7 additions and 6 deletions

View File

@ -3,7 +3,7 @@ exports.UserStatus = {
INACTIVE: "inactive",
}
exports.Cookies = {
exports.Cookie = {
CurrentApp: "budibase:currentapp",
Auth: "budibase:auth",
Init: "budibase:init",
@ -12,7 +12,7 @@ exports.Cookies = {
OIDC_CONFIG: "budibase:oidc:config",
}
exports.Headers = {
exports.Header = {
API_KEY: "x-budibase-api-key",
LICENSE_KEY: "x-budibase-license-key",
API_VER: "x-budibase-api-version",
@ -31,7 +31,7 @@ exports.GlobalRoles = {
WORKSPACE_MANAGER: "workspace_manager",
}
exports.Configs = {
exports.Config = {
SETTINGS: "settings",
ACCOUNT: "account",
SMTP: "smtp",

View File

@ -42,3 +42,4 @@ export enum Config {
export const MAX_VALID_DATE = new Date(2147483647000)
export const DEFAULT_TENANT_ID = "default"
export const BUDIBASE_DATASOURCE_TYPE = "budibase"

View File

@ -21,7 +21,7 @@
<Layout gap="XS" noPadding>
<header>
<svelte:component this={ICONS.BUDIBASE} height="26" width="26" />
<Heading size="M">Test DB</Heading>
<Heading size="M">Sample Data</Heading>
</header>
<Body size="M">A little something to get you up and running!</Body>
<Body size="M"

View File

@ -20,7 +20,7 @@ exports.DEFAULT_BB_DATASOURCE_ID = "datasource_internal_bb_default"
exports.DEFAULT_BB_DATASOURCE = {
_id: this.DEFAULT_BB_DATASOURCE_ID,
type: BUDIBASE_DATASOURCE_TYPE,
name: "Test DB",
name: "Sample Data",
source: "BUDIBASE",
config: {},
}

View File

@ -3,7 +3,7 @@ const controller = require("../../controllers/global/configs")
const { joiValidator } = require("@budibase/backend-core/auth")
const { adminOnly } = require("@budibase/backend-core/auth")
const Joi = require("joi")
const { Config } = require("../../../constants")
const { Config } = require("@budibase/backend-core/constants")
const router = new Router()