Import fixes for backend core constants. Minor name change for default data source from Test DB to Sample Data
This commit is contained in:
parent
4a94ef8bf9
commit
a123e65e78
|
@ -3,7 +3,7 @@ exports.UserStatus = {
|
||||||
INACTIVE: "inactive",
|
INACTIVE: "inactive",
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.Cookies = {
|
exports.Cookie = {
|
||||||
CurrentApp: "budibase:currentapp",
|
CurrentApp: "budibase:currentapp",
|
||||||
Auth: "budibase:auth",
|
Auth: "budibase:auth",
|
||||||
Init: "budibase:init",
|
Init: "budibase:init",
|
||||||
|
@ -12,7 +12,7 @@ exports.Cookies = {
|
||||||
OIDC_CONFIG: "budibase:oidc:config",
|
OIDC_CONFIG: "budibase:oidc:config",
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.Headers = {
|
exports.Header = {
|
||||||
API_KEY: "x-budibase-api-key",
|
API_KEY: "x-budibase-api-key",
|
||||||
LICENSE_KEY: "x-budibase-license-key",
|
LICENSE_KEY: "x-budibase-license-key",
|
||||||
API_VER: "x-budibase-api-version",
|
API_VER: "x-budibase-api-version",
|
||||||
|
@ -31,7 +31,7 @@ exports.GlobalRoles = {
|
||||||
WORKSPACE_MANAGER: "workspace_manager",
|
WORKSPACE_MANAGER: "workspace_manager",
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.Configs = {
|
exports.Config = {
|
||||||
SETTINGS: "settings",
|
SETTINGS: "settings",
|
||||||
ACCOUNT: "account",
|
ACCOUNT: "account",
|
||||||
SMTP: "smtp",
|
SMTP: "smtp",
|
||||||
|
|
|
@ -42,3 +42,4 @@ export enum Config {
|
||||||
|
|
||||||
export const MAX_VALID_DATE = new Date(2147483647000)
|
export const MAX_VALID_DATE = new Date(2147483647000)
|
||||||
export const DEFAULT_TENANT_ID = "default"
|
export const DEFAULT_TENANT_ID = "default"
|
||||||
|
export const BUDIBASE_DATASOURCE_TYPE = "budibase"
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<Layout gap="XS" noPadding>
|
<Layout gap="XS" noPadding>
|
||||||
<header>
|
<header>
|
||||||
<svelte:component this={ICONS.BUDIBASE} height="26" width="26" />
|
<svelte:component this={ICONS.BUDIBASE} height="26" width="26" />
|
||||||
<Heading size="M">Test DB</Heading>
|
<Heading size="M">Sample Data</Heading>
|
||||||
</header>
|
</header>
|
||||||
<Body size="M">A little something to get you up and running!</Body>
|
<Body size="M">A little something to get you up and running!</Body>
|
||||||
<Body size="M"
|
<Body size="M"
|
||||||
|
|
|
@ -20,7 +20,7 @@ exports.DEFAULT_BB_DATASOURCE_ID = "datasource_internal_bb_default"
|
||||||
exports.DEFAULT_BB_DATASOURCE = {
|
exports.DEFAULT_BB_DATASOURCE = {
|
||||||
_id: this.DEFAULT_BB_DATASOURCE_ID,
|
_id: this.DEFAULT_BB_DATASOURCE_ID,
|
||||||
type: BUDIBASE_DATASOURCE_TYPE,
|
type: BUDIBASE_DATASOURCE_TYPE,
|
||||||
name: "Test DB",
|
name: "Sample Data",
|
||||||
source: "BUDIBASE",
|
source: "BUDIBASE",
|
||||||
config: {},
|
config: {},
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ const controller = require("../../controllers/global/configs")
|
||||||
const { joiValidator } = require("@budibase/backend-core/auth")
|
const { joiValidator } = require("@budibase/backend-core/auth")
|
||||||
const { adminOnly } = require("@budibase/backend-core/auth")
|
const { adminOnly } = require("@budibase/backend-core/auth")
|
||||||
const Joi = require("joi")
|
const Joi = require("joi")
|
||||||
const { Config } = require("../../../constants")
|
const { Config } = require("@budibase/backend-core/constants")
|
||||||
|
|
||||||
const router = new Router()
|
const router = new Router()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue