eslint import/newline-after-import
This commit is contained in:
parent
92f411bf77
commit
db2c20e3ae
|
@ -59,7 +59,8 @@
|
||||||
],
|
],
|
||||||
"import/no-relative-packages": "error",
|
"import/no-relative-packages": "error",
|
||||||
"import/export": "error",
|
"import/export": "error",
|
||||||
"import/no-duplicates": "error"
|
"import/no-duplicates": "error",
|
||||||
|
"import/newline-after-import": "error"
|
||||||
},
|
},
|
||||||
"globals": {
|
"globals": {
|
||||||
"GeolocationPositionError": true
|
"GeolocationPositionError": true
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
const _passport = require("koa-passport")
|
const _passport = require("koa-passport")
|
||||||
const LocalStrategy = require("passport-local").Strategy
|
const LocalStrategy = require("passport-local").Strategy
|
||||||
|
|
||||||
import { getGlobalDB } from "../context"
|
import { getGlobalDB } from "../context"
|
||||||
import { Cookie } from "../constants"
|
import { Cookie } from "../constants"
|
||||||
import { getSessionsForUser, invalidateSessions } from "../security/sessions"
|
import { getSessionsForUser, invalidateSessions } from "../security/sessions"
|
||||||
|
@ -26,6 +27,7 @@ import { clearCookie, getCookie } from "../utils"
|
||||||
import { ssoSaveUserNoOp } from "../middleware/passport/sso/sso"
|
import { ssoSaveUserNoOp } from "../middleware/passport/sso/sso"
|
||||||
|
|
||||||
const refresh = require("passport-oauth2-refresh")
|
const refresh = require("passport-oauth2-refresh")
|
||||||
|
|
||||||
export {
|
export {
|
||||||
auditLog,
|
auditLog,
|
||||||
authError,
|
authError,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { prefixed, DocumentType } from "@budibase/types"
|
import { prefixed, DocumentType } from "@budibase/types"
|
||||||
|
|
||||||
export {
|
export {
|
||||||
SEPARATOR,
|
SEPARATOR,
|
||||||
UNICODE_MAX,
|
UNICODE_MAX,
|
||||||
|
|
|
@ -6,6 +6,7 @@ import { AppState, DeletedApp, getAppMetadata } from "../cache/appMetadata"
|
||||||
import { isDevApp, isDevAppID, getProdAppID } from "../docIds/conversions"
|
import { isDevApp, isDevAppID, getProdAppID } from "../docIds/conversions"
|
||||||
import { App, Database } from "@budibase/types"
|
import { App, Database } from "@budibase/types"
|
||||||
import { getStartEndKeyURL } from "../docIds"
|
import { getStartEndKeyURL } from "../docIds"
|
||||||
|
|
||||||
export * from "../docIds"
|
export * from "../docIds"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { APP_DEV_PREFIX, APP_PREFIX } from "../constants"
|
import { APP_DEV_PREFIX, APP_PREFIX } from "../constants"
|
||||||
import { App } from "@budibase/types"
|
import { App } from "@budibase/types"
|
||||||
|
|
||||||
const NO_APP_ERROR = "No app provided"
|
const NO_APP_ERROR = "No app provided"
|
||||||
|
|
||||||
export function isDevAppID(appId?: string) {
|
export function isDevAppID(appId?: string) {
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
import PosthogProcessor from "./PosthogProcessor"
|
import PosthogProcessor from "./PosthogProcessor"
|
||||||
|
|
||||||
export default PosthogProcessor
|
export default PosthogProcessor
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
import { testEnv } from "../../../../../tests/extra"
|
import { testEnv } from "../../../../../tests/extra"
|
||||||
import PosthogProcessor from "../PosthogProcessor"
|
import PosthogProcessor from "../PosthogProcessor"
|
||||||
import { Event, IdentityType, Hosting } from "@budibase/types"
|
import { Event, IdentityType, Hosting } from "@budibase/types"
|
||||||
|
|
||||||
const tk = require("timekeeper")
|
const tk = require("timekeeper")
|
||||||
|
|
||||||
import * as cache from "../../../../cache/generic"
|
import * as cache from "../../../../cache/generic"
|
||||||
import { CacheKey } from "../../../../cache/generic"
|
import { CacheKey } from "../../../../cache/generic"
|
||||||
import * as context from "../../../../context"
|
import * as context from "../../../../context"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import env from "../environment"
|
import env from "../environment"
|
||||||
import * as context from "../context"
|
import * as context from "../context"
|
||||||
|
|
||||||
export * from "./installation"
|
export * from "./installation"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -38,6 +38,7 @@ export * as docIds from "./docIds"
|
||||||
// circular dependencies
|
// circular dependencies
|
||||||
import * as context from "./context"
|
import * as context from "./context"
|
||||||
import * as _tenancy from "./tenancy"
|
import * as _tenancy from "./tenancy"
|
||||||
|
|
||||||
export const tenancy = {
|
export const tenancy = {
|
||||||
..._tenancy,
|
..._tenancy,
|
||||||
...context,
|
...context,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { Header } from "../../constants"
|
import { Header } from "../../constants"
|
||||||
|
|
||||||
const correlator = require("correlation-id")
|
const correlator = require("correlation-id")
|
||||||
|
|
||||||
export const setHeader = (headers: any) => {
|
export const setHeader = (headers: any) => {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { Header } from "../../constants"
|
import { Header } from "../../constants"
|
||||||
import { v4 as uuid } from "uuid"
|
import { v4 as uuid } from "uuid"
|
||||||
|
|
||||||
const correlator = require("correlation-id")
|
const correlator = require("correlation-id")
|
||||||
|
|
||||||
const correlation = (ctx: any, next: any) => {
|
const correlation = (ctx: any, next: any) => {
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
import env from "../../environment"
|
import env from "../../environment"
|
||||||
import { logger } from "./logger"
|
import { logger } from "./logger"
|
||||||
import { IncomingMessage } from "http"
|
import { IncomingMessage } from "http"
|
||||||
|
|
||||||
const pino = require("koa-pino-logger")
|
const pino = require("koa-pino-logger")
|
||||||
|
|
||||||
import { Options } from "pino-http"
|
import { Options } from "pino-http"
|
||||||
import { Ctx } from "@budibase/types"
|
import { Ctx } from "@budibase/types"
|
||||||
|
|
||||||
const correlator = require("correlation-id")
|
const correlator = require("correlation-id")
|
||||||
|
|
||||||
export function pinoSettings(): Options {
|
export function pinoSettings(): Options {
|
||||||
|
|
|
@ -2,6 +2,7 @@ export * as local from "./passport/local"
|
||||||
export * as google from "./passport/sso/google"
|
export * as google from "./passport/sso/google"
|
||||||
export * as oidc from "./passport/sso/oidc"
|
export * as oidc from "./passport/sso/oidc"
|
||||||
import * as datasourceGoogle from "./passport/datasource/google"
|
import * as datasourceGoogle from "./passport/datasource/google"
|
||||||
|
|
||||||
export const datasource = {
|
export const datasource = {
|
||||||
google: datasourceGoogle,
|
google: datasourceGoogle,
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@ import {
|
||||||
SaveSSOUserFunction,
|
SaveSSOUserFunction,
|
||||||
GoogleInnerConfig,
|
GoogleInnerConfig,
|
||||||
} from "@budibase/types"
|
} from "@budibase/types"
|
||||||
|
|
||||||
const GoogleStrategy = require("passport-google-oauth").OAuth2Strategy
|
const GoogleStrategy = require("passport-google-oauth").OAuth2Strategy
|
||||||
|
|
||||||
export function buildVerifyFn(saveUserFn: SaveSSOUserFunction) {
|
export function buildVerifyFn(saveUserFn: SaveSSOUserFunction) {
|
||||||
|
|
|
@ -6,6 +6,7 @@ const mockStrategy = require("passport-google-oauth").OAuth2Strategy
|
||||||
|
|
||||||
jest.mock("../sso")
|
jest.mock("../sso")
|
||||||
import * as _sso from "../sso"
|
import * as _sso from "../sso"
|
||||||
|
|
||||||
const sso = jest.mocked(_sso)
|
const sso = jest.mocked(_sso)
|
||||||
|
|
||||||
const mockSaveUserFn = jest.fn()
|
const mockSaveUserFn = jest.fn()
|
||||||
|
|
|
@ -11,6 +11,7 @@ const mockSaveUser = jest.fn()
|
||||||
|
|
||||||
jest.mock("../../../../users")
|
jest.mock("../../../../users")
|
||||||
import * as _users from "../../../../users"
|
import * as _users from "../../../../users"
|
||||||
|
|
||||||
const users = jest.mocked(_users)
|
const users = jest.mocked(_users)
|
||||||
|
|
||||||
const getErrorMessage = () => {
|
const getErrorMessage = () => {
|
||||||
|
|
|
@ -5,6 +5,7 @@ import { structures } from "../../../tests"
|
||||||
import { ContextUser, ServiceType } from "@budibase/types"
|
import { ContextUser, ServiceType } from "@budibase/types"
|
||||||
import { doInAppContext } from "../../context"
|
import { doInAppContext } from "../../context"
|
||||||
import env from "../../environment"
|
import env from "../../environment"
|
||||||
|
|
||||||
env._set("SERVICE_TYPE", ServiceType.APPS)
|
env._set("SERVICE_TYPE", ServiceType.APPS)
|
||||||
|
|
||||||
const appId = "app_aaa"
|
const appId = "app_aaa"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
const sanitize = require("sanitize-s3-objectkey")
|
const sanitize = require("sanitize-s3-objectkey")
|
||||||
|
|
||||||
import AWS from "aws-sdk"
|
import AWS from "aws-sdk"
|
||||||
import stream, { Readable } from "stream"
|
import stream, { Readable } from "stream"
|
||||||
import fetch from "node-fetch"
|
import fetch from "node-fetch"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
const redis = require("../redis/init")
|
const redis = require("../redis/init")
|
||||||
const { v4: uuidv4 } = require("uuid")
|
const { v4: uuidv4 } = require("uuid")
|
||||||
const { logWarn } = require("../logging")
|
const { logWarn } = require("../logging")
|
||||||
|
|
||||||
import env from "../environment"
|
import env from "../environment"
|
||||||
import {
|
import {
|
||||||
Session,
|
Session,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import env from "../environment"
|
import env from "../environment"
|
||||||
|
|
||||||
export * from "../docIds/newid"
|
export * from "../docIds/newid"
|
||||||
const bcrypt = env.JS_BCRYPT ? require("bcryptjs") : require("bcrypt")
|
const bcrypt = env.JS_BCRYPT ? require("bcryptjs") : require("bcrypt")
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ import {
|
||||||
TenantResolutionStrategy,
|
TenantResolutionStrategy,
|
||||||
} from "@budibase/types"
|
} from "@budibase/types"
|
||||||
import type { SetOption } from "cookies"
|
import type { SetOption } from "cookies"
|
||||||
|
|
||||||
const jwt = require("jsonwebtoken")
|
const jwt = require("jsonwebtoken")
|
||||||
|
|
||||||
const APP_PREFIX = DocumentType.APP + SEPARATOR
|
const APP_PREFIX = DocumentType.APP + SEPARATOR
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
jest.mock("../../../../src/logging/alerts")
|
jest.mock("../../../../src/logging/alerts")
|
||||||
import * as _alerts from "../../../../src/logging/alerts"
|
import * as _alerts from "../../../../src/logging/alerts"
|
||||||
|
|
||||||
export const alerts = jest.mocked(_alerts)
|
export const alerts = jest.mocked(_alerts)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
jest.mock("../../../../src/accounts")
|
jest.mock("../../../../src/accounts")
|
||||||
import * as _accounts from "../../../../src/accounts"
|
import * as _accounts from "../../../../src/accounts"
|
||||||
|
|
||||||
export const accounts = jest.mocked(_accounts)
|
export const accounts = jest.mocked(_accounts)
|
||||||
|
|
||||||
export * as date from "./date"
|
export * as date from "./date"
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
import Chance from "./Chance"
|
import Chance from "./Chance"
|
||||||
|
|
||||||
export const generator = new Chance()
|
export const generator = new Chance()
|
||||||
|
|
|
@ -9,6 +9,7 @@ mocks.fetch.enable()
|
||||||
// mock all dates to 2020-01-01T00:00:00.000Z
|
// mock all dates to 2020-01-01T00:00:00.000Z
|
||||||
// use tk.reset() to use real dates in individual tests
|
// use tk.reset() to use real dates in individual tests
|
||||||
import tk from "timekeeper"
|
import tk from "timekeeper"
|
||||||
|
|
||||||
tk.freeze(mocks.date.MOCK_DATE)
|
tk.freeze(mocks.date.MOCK_DATE)
|
||||||
|
|
||||||
if (!process.env.DEBUG) {
|
if (!process.env.DEBUG) {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import "@spectrum-css/actiongroup/dist/index-vars.css"
|
import "@spectrum-css/actiongroup/dist/index-vars.css"
|
||||||
|
|
||||||
export let vertical = false
|
export let vertical = false
|
||||||
export let justified = false
|
export let justified = false
|
||||||
export let quiet = false
|
export let quiet = false
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import "@spectrum-css/avatar/dist/index-vars.css"
|
import "@spectrum-css/avatar/dist/index-vars.css"
|
||||||
|
|
||||||
let sizes = new Map([
|
let sizes = new Map([
|
||||||
["XXS", "--spectrum-alias-avatar-size-50"],
|
["XXS", "--spectrum-alias-avatar-size-50"],
|
||||||
["XS", "--spectrum-alias-avatar-size-75"],
|
["XS", "--spectrum-alias-avatar-size-75"],
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import "@spectrum-css/buttongroup/dist/index-vars.css"
|
import "@spectrum-css/buttongroup/dist/index-vars.css"
|
||||||
|
|
||||||
export let vertical = false
|
export let vertical = false
|
||||||
export let gap = ""
|
export let gap = ""
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import "@spectrum-css/divider/dist/index-vars.css"
|
import "@spectrum-css/divider/dist/index-vars.css"
|
||||||
|
|
||||||
export let size = "M"
|
export let size = "M"
|
||||||
|
|
||||||
export let vertical = false
|
export let vertical = false
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import Input from "../Form/Input.svelte"
|
import Input from "../Form/Input.svelte"
|
||||||
|
|
||||||
let value = ""
|
let value = ""
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
import Icon from "../Icon/Icon.svelte"
|
import Icon from "../Icon/Icon.svelte"
|
||||||
import Popover from "../Popover/Popover.svelte"
|
import Popover from "../Popover/Popover.svelte"
|
||||||
import { onMount } from "svelte"
|
import { onMount } from "svelte"
|
||||||
|
|
||||||
const flipDurationMs = 150
|
const flipDurationMs = 150
|
||||||
|
|
||||||
export let constraints
|
export let constraints
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
<script>
|
<script>
|
||||||
import { getContext } from "svelte"
|
import { getContext } from "svelte"
|
||||||
|
|
||||||
const multilevel = getContext("sidenav-type")
|
const multilevel = getContext("sidenav-type")
|
||||||
import Badge from "../Badge/Badge.svelte"
|
import Badge from "../Badge/Badge.svelte"
|
||||||
|
|
||||||
export let href = ""
|
export let href = ""
|
||||||
export let external = false
|
export let external = false
|
||||||
export let heading = ""
|
export let heading = ""
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { setContext } from "svelte"
|
import { setContext } from "svelte"
|
||||||
import "@spectrum-css/sidenav/dist/index-vars.css"
|
import "@spectrum-css/sidenav/dist/index-vars.css"
|
||||||
|
|
||||||
export let multilevel = false
|
export let multilevel = false
|
||||||
setContext("sidenav-type", multilevel)
|
setContext("sidenav-type", multilevel)
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import "@spectrum-css/label/dist/index-vars.css"
|
import "@spectrum-css/label/dist/index-vars.css"
|
||||||
import Badge from "../Badge/Badge.svelte"
|
import Badge from "../Badge/Badge.svelte"
|
||||||
|
|
||||||
export let value
|
export let value
|
||||||
|
|
||||||
const displayLimit = 5
|
const displayLimit = 5
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { getContext, onMount, createEventDispatcher } from "svelte"
|
import { getContext, onMount, createEventDispatcher } from "svelte"
|
||||||
import Portal from "svelte-portal"
|
import Portal from "svelte-portal"
|
||||||
|
|
||||||
export let title
|
export let title
|
||||||
export let icon = ""
|
export let icon = ""
|
||||||
export let id
|
export let id
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { helpers } from "@budibase/shared-core"
|
import { helpers } from "@budibase/shared-core"
|
||||||
|
|
||||||
export const deepGet = helpers.deepGet
|
export const deepGet = helpers.deepGet
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
import { Button, Select, Input, Label } from "@budibase/bbui"
|
import { Button, Select, Input, Label } from "@budibase/bbui"
|
||||||
import { onMount, createEventDispatcher } from "svelte"
|
import { onMount, createEventDispatcher } from "svelte"
|
||||||
import { flags } from "stores/backend"
|
import { flags } from "stores/backend"
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
|
|
||||||
export let value
|
export let value
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import { Helpers } from "@budibase/bbui"
|
import { Helpers } from "@budibase/bbui"
|
||||||
|
|
||||||
export let size
|
export let size
|
||||||
export let svgHtml
|
export let svgHtml
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import { capitalise } from "helpers"
|
import { capitalise } from "helpers"
|
||||||
|
|
||||||
export let value
|
export let value
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import dayjs from "dayjs"
|
import dayjs from "dayjs"
|
||||||
|
|
||||||
export let value
|
export let value
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
import { Select, Body } from "@budibase/bbui"
|
import { Select, Body } from "@budibase/bbui"
|
||||||
import { onMount } from "svelte"
|
import { onMount } from "svelte"
|
||||||
import DrawerBindableInput from "components/common/bindings/DrawerBindableInput.svelte"
|
import DrawerBindableInput from "components/common/bindings/DrawerBindableInput.svelte"
|
||||||
|
|
||||||
export let parameters
|
export let parameters
|
||||||
export let bindings
|
export let bindings
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
import FlatButtonGroup from "./FlatButtonGroup.svelte"
|
import FlatButtonGroup from "./FlatButtonGroup.svelte"
|
||||||
|
|
||||||
export default FlatButtonGroup
|
export default FlatButtonGroup
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import KeyValueBuilder from "components/integration/KeyValueBuilder.svelte"
|
import KeyValueBuilder from "components/integration/KeyValueBuilder.svelte"
|
||||||
import { getUserBindings } from "builderStore/dataBinding"
|
import { getUserBindings } from "builderStore/dataBinding"
|
||||||
|
|
||||||
export let bindable = true
|
export let bindable = true
|
||||||
export let queryBindings = []
|
export let queryBindings = []
|
||||||
export let hideHeading = false
|
export let hideHeading = false
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
import { environment } from "stores/portal"
|
import { environment } from "stores/portal"
|
||||||
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
|
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
|
||||||
import { getContext } from "svelte"
|
import { getContext } from "svelte"
|
||||||
|
|
||||||
const modalContext = getContext(Context.Modal)
|
const modalContext = getContext(Context.Modal)
|
||||||
|
|
||||||
export let save
|
export let save
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
import { Body, ProgressBar, Heading, Icon, Link } from "@budibase/bbui"
|
import { Body, ProgressBar, Heading, Icon, Link } from "@budibase/bbui"
|
||||||
import { admin, auth } from "../../stores/portal"
|
import { admin, auth } from "../../stores/portal"
|
||||||
import { onMount } from "svelte"
|
import { onMount } from "svelte"
|
||||||
|
|
||||||
export let usage
|
export let usage
|
||||||
export let warnWhenFull = false
|
export let warnWhenFull = false
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
import { Body } from "@budibase/bbui"
|
import { Body } from "@budibase/bbui"
|
||||||
import FontAwesomeIcon from "components/common/FontAwesomeIcon.svelte"
|
import FontAwesomeIcon from "components/common/FontAwesomeIcon.svelte"
|
||||||
import { IntegrationTypes } from "constants/backend"
|
import { IntegrationTypes } from "constants/backend"
|
||||||
|
|
||||||
export let datasource
|
export let datasource
|
||||||
const getSubtitle = datasource => {
|
const getSubtitle = datasource => {
|
||||||
if (datasource.source === IntegrationTypes.REST) {
|
if (datasource.source === IntegrationTypes.REST) {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import { redirect } from "@roxi/routify"
|
import { redirect } from "@roxi/routify"
|
||||||
|
|
||||||
$redirect("../../")
|
$redirect("../../")
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import { redirect } from "@roxi/routify"
|
import { redirect } from "@roxi/routify"
|
||||||
|
|
||||||
$redirect("../")
|
$redirect("../")
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { DetailSummary } from "@budibase/bbui"
|
import { DetailSummary } from "@budibase/bbui"
|
||||||
import InfoDisplay from "./InfoDisplay.svelte"
|
import InfoDisplay from "./InfoDisplay.svelte"
|
||||||
|
|
||||||
export let componentDefinition
|
export let componentDefinition
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import { Icon } from "@budibase/bbui"
|
import { Icon } from "@budibase/bbui"
|
||||||
|
|
||||||
export let datasource
|
export let datasource
|
||||||
export let selected = false
|
export let selected = false
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { redirect } from "@roxi/routify"
|
import { redirect } from "@roxi/routify"
|
||||||
|
|
||||||
$redirect("./data")
|
$redirect("./data")
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import { Badge } from "@budibase/bbui"
|
import { Badge } from "@budibase/bbui"
|
||||||
|
|
||||||
export let value
|
export let value
|
||||||
|
|
||||||
$: isError = !value || value.toLowerCase() === "error"
|
$: isError = !value || value.toLowerCase() === "error"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import { BackupTrigger } from "constants/backend/backups"
|
import { BackupTrigger } from "constants/backend/backups"
|
||||||
|
|
||||||
export let row
|
export let row
|
||||||
|
|
||||||
$: trigger = row?.trigger || "manual"
|
$: trigger = row?.trigger || "manual"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { redirect } from "@roxi/routify"
|
import { redirect } from "@roxi/routify"
|
||||||
|
|
||||||
$redirect("../portal")
|
$redirect("../portal")
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import dayjs from "dayjs"
|
import dayjs from "dayjs"
|
||||||
import relativeTime from "dayjs/plugin/relativeTime"
|
import relativeTime from "dayjs/plugin/relativeTime"
|
||||||
|
|
||||||
dayjs.extend(relativeTime)
|
dayjs.extend(relativeTime)
|
||||||
|
|
||||||
export let row
|
export let row
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { redirect } from "@roxi/routify"
|
import { redirect } from "@roxi/routify"
|
||||||
|
|
||||||
$redirect("./usage")
|
$redirect("./usage")
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { redirect } from "@roxi/routify"
|
import { redirect } from "@roxi/routify"
|
||||||
|
|
||||||
$redirect("./apps")
|
$redirect("./apps")
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { redirect } from "@roxi/routify"
|
import { redirect } from "@roxi/routify"
|
||||||
|
|
||||||
$redirect("./auth")
|
$redirect("./auth")
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import { Icon } from "@budibase/bbui"
|
import { Icon } from "@budibase/bbui"
|
||||||
|
|
||||||
export let value
|
export let value
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { redirect } from "@roxi/routify"
|
import { redirect } from "@roxi/routify"
|
||||||
|
|
||||||
$redirect("./users")
|
$redirect("./users")
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import TagsTableRenderer from "./TagsTableRenderer.svelte"
|
import TagsTableRenderer from "./TagsTableRenderer.svelte"
|
||||||
|
|
||||||
export let value
|
export let value
|
||||||
|
|
||||||
$: roles = value?.filter(role => role != null).map(role => role.name) ?? []
|
$: roles = value?.filter(role => role != null).map(role => role.name) ?? []
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import { Tag, Tags } from "@budibase/bbui"
|
import { Tag, Tags } from "@budibase/bbui"
|
||||||
|
|
||||||
export let value
|
export let value
|
||||||
|
|
||||||
const displayLimit = 5
|
const displayLimit = 5
|
||||||
|
|
|
@ -13,6 +13,7 @@ import {
|
||||||
getPouches,
|
getPouches,
|
||||||
} from "./utils"
|
} from "./utils"
|
||||||
import { exportObjects, importObjects } from "./objectStore"
|
import { exportObjects, importObjects } from "./objectStore"
|
||||||
|
|
||||||
const tar = require("tar")
|
const tar = require("tar")
|
||||||
|
|
||||||
type BackupOpts = { env?: string; import?: string; export?: string }
|
type BackupOpts = { env?: string; import?: string; export?: string }
|
||||||
|
|
|
@ -3,6 +3,7 @@ import fs from "fs"
|
||||||
import { join } from "path"
|
import { join } from "path"
|
||||||
import { TEMP_DIR, MINIO_DIR } from "./utils"
|
import { TEMP_DIR, MINIO_DIR } from "./utils"
|
||||||
import { progressBar } from "../utils"
|
import { progressBar } from "../utils"
|
||||||
|
|
||||||
const {
|
const {
|
||||||
ObjectStoreBuckets,
|
ObjectStoreBuckets,
|
||||||
ObjectStore,
|
ObjectStore,
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import util from "util"
|
import util from "util"
|
||||||
import childProcess from "child_process"
|
import childProcess from "child_process"
|
||||||
|
|
||||||
const runCommand = util.promisify(childProcess.exec)
|
const runCommand = util.promisify(childProcess.exec)
|
||||||
|
|
||||||
export async function exec(command: string, dir = "./") {
|
export async function exec(command: string, dir = "./") {
|
||||||
|
|
|
@ -2,6 +2,7 @@ const { success } = require("../utils")
|
||||||
const { updateDockerComposeService } = require("./utils")
|
const { updateDockerComposeService } = require("./utils")
|
||||||
const randomString = require("randomstring")
|
const randomString = require("randomstring")
|
||||||
const { GENERATED_USER_EMAIL } = require("../constants")
|
const { GENERATED_USER_EMAIL } = require("../constants")
|
||||||
|
|
||||||
import { DockerCompose } from "./types"
|
import { DockerCompose } from "./types"
|
||||||
|
|
||||||
export async function generateUser(password: string | null, silent: boolean) {
|
export async function generateUser(password: string | null, silent: boolean) {
|
||||||
|
|
|
@ -4,6 +4,7 @@ import fs from "fs"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import yaml from "yaml"
|
import yaml from "yaml"
|
||||||
import { getAppService } from "./utils"
|
import { getAppService } from "./utils"
|
||||||
|
|
||||||
const randomString = require("randomstring")
|
const randomString = require("randomstring")
|
||||||
|
|
||||||
const SINGLE_IMAGE = "budibase/budibase:latest"
|
const SINGLE_IMAGE = "budibase/budibase:latest"
|
||||||
|
|
|
@ -16,6 +16,7 @@ import { success, error, info, moveDirectory } from "../utils"
|
||||||
import { captureEvent } from "../events"
|
import { captureEvent } from "../events"
|
||||||
import { init as hostingInit } from "../hosting/init"
|
import { init as hostingInit } from "../hosting/init"
|
||||||
import { start as hostingStart } from "../hosting/start"
|
import { start as hostingStart } from "../hosting/start"
|
||||||
|
|
||||||
const fp = require("find-free-port")
|
const fp = require("find-free-port")
|
||||||
|
|
||||||
type PluginOpts = {
|
type PluginOpts = {
|
||||||
|
|
|
@ -3,6 +3,7 @@ import fs from "fs"
|
||||||
import os from "os"
|
import os from "os"
|
||||||
import { join } from "path"
|
import { join } from "path"
|
||||||
import { processStringSync } from "@budibase/string-templates"
|
import { processStringSync } from "@budibase/string-templates"
|
||||||
|
|
||||||
const download = require("download")
|
const download = require("download")
|
||||||
const tar = require("tar")
|
const tar = require("tar")
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@ import chalk from "chalk"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
import path, { join } from "path"
|
import path, { join } from "path"
|
||||||
import fetch from "node-fetch"
|
import fetch from "node-fetch"
|
||||||
|
|
||||||
const progress = require("cli-progress")
|
const progress = require("cli-progress")
|
||||||
|
|
||||||
export function downloadFile(url: string, filePath: string) {
|
export function downloadFile(url: string, filePath: string) {
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
import { CoreMultiselect, CoreCheckboxGroup } from "@budibase/bbui"
|
import { CoreMultiselect, CoreCheckboxGroup } from "@budibase/bbui"
|
||||||
import Field from "./Field.svelte"
|
import Field from "./Field.svelte"
|
||||||
import { getOptions } from "./optionsParser"
|
import { getOptions } from "./optionsParser"
|
||||||
|
|
||||||
export let field
|
export let field
|
||||||
export let label
|
export let label
|
||||||
export let placeholder
|
export let placeholder
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
import { CoreSelect, CoreRadioGroup } from "@budibase/bbui"
|
import { CoreSelect, CoreRadioGroup } from "@budibase/bbui"
|
||||||
import Field from "./Field.svelte"
|
import Field from "./Field.svelte"
|
||||||
import { getOptions } from "./optionsParser"
|
import { getOptions } from "./optionsParser"
|
||||||
|
|
||||||
export let field
|
export let field
|
||||||
export let label
|
export let label
|
||||||
export let placeholder
|
export let placeholder
|
||||||
|
|
|
@ -15,6 +15,7 @@ import { initWebsocket } from "./websocket.js"
|
||||||
// Provide svelte and svelte/internal as globals for custom components
|
// Provide svelte and svelte/internal as globals for custom components
|
||||||
import * as svelte from "svelte"
|
import * as svelte from "svelte"
|
||||||
import * as internal from "svelte/internal"
|
import * as internal from "svelte/internal"
|
||||||
|
|
||||||
window.svelte_internal = internal
|
window.svelte_internal = internal
|
||||||
window.svelte = svelte
|
window.svelte = svelte
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 0fcc284eaad4020be4a1410452b31a2966cf1989
|
Subproject commit 9c58e23fee4c013dbf2df55ba82b5f717fda83ba
|
|
@ -1,5 +1,6 @@
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
|
|
||||||
module FetchMock {
|
module FetchMock {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const fetch = jest.requireActual("node-fetch")
|
const fetch = jest.requireActual("node-fetch")
|
||||||
|
|
|
@ -3,6 +3,7 @@ import { writeFileSync } from "fs"
|
||||||
import { examples, schemas } from "./resources"
|
import { examples, schemas } from "./resources"
|
||||||
import * as parameters from "./parameters"
|
import * as parameters from "./parameters"
|
||||||
import * as security from "./security"
|
import * as security from "./security"
|
||||||
|
|
||||||
const swaggerJsdoc = require("swagger-jsdoc")
|
const swaggerJsdoc = require("swagger-jsdoc")
|
||||||
|
|
||||||
const VARIABLES = {}
|
const VARIABLES = {}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import { ImportSource } from "."
|
import { ImportSource } from "."
|
||||||
import SwaggerParser from "@apidevtools/swagger-parser"
|
import SwaggerParser from "@apidevtools/swagger-parser"
|
||||||
import { OpenAPI } from "openapi-types"
|
import { OpenAPI } from "openapi-types"
|
||||||
|
|
||||||
const yaml = require("js-yaml")
|
const yaml = require("js-yaml")
|
||||||
|
|
||||||
export abstract class OpenAPISource extends ImportSource {
|
export abstract class OpenAPISource extends ImportSource {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import { ImportSource, ImportInfo } from "./base"
|
import { ImportSource, ImportInfo } from "./base"
|
||||||
import { Query } from "../../../../../definitions/common"
|
import { Query } from "../../../../../definitions/common"
|
||||||
import { URL } from "url"
|
import { URL } from "url"
|
||||||
|
|
||||||
const curlconverter = require("curlconverter")
|
const curlconverter = require("curlconverter")
|
||||||
|
|
||||||
const parseCurl = (data: string): any => {
|
const parseCurl = (data: string): any => {
|
||||||
|
|
|
@ -27,6 +27,7 @@ import sdk from "../../../sdk"
|
||||||
import * as exporters from "../view/exporters"
|
import * as exporters from "../view/exporters"
|
||||||
import { apiFileReturn } from "../../../utilities/fileSystem"
|
import { apiFileReturn } from "../../../utilities/fileSystem"
|
||||||
import { Format } from "../view/exporters"
|
import { Format } from "../view/exporters"
|
||||||
|
|
||||||
export * as views from "./views"
|
export * as views from "./views"
|
||||||
|
|
||||||
function pickApi(tableId: any) {
|
function pickApi(tableId: any) {
|
||||||
|
|
|
@ -18,6 +18,7 @@ import {
|
||||||
import { builderSocket } from "../../../websockets"
|
import { builderSocket } from "../../../websockets"
|
||||||
|
|
||||||
const cloneDeep = require("lodash/cloneDeep")
|
const cloneDeep = require("lodash/cloneDeep")
|
||||||
|
|
||||||
import isEqual from "lodash/isEqual"
|
import isEqual from "lodash/isEqual"
|
||||||
|
|
||||||
export async function fetch(ctx: Ctx) {
|
export async function fetch(ctx: Ctx) {
|
||||||
|
|
|
@ -4,6 +4,7 @@ import currentApp from "../middleware/currentapp"
|
||||||
import zlib from "zlib"
|
import zlib from "zlib"
|
||||||
import { mainRoutes, staticRoutes, publicRoutes } from "./routes"
|
import { mainRoutes, staticRoutes, publicRoutes } from "./routes"
|
||||||
import { middleware as pro } from "@budibase/pro"
|
import { middleware as pro } from "@budibase/pro"
|
||||||
|
|
||||||
export { shutdown } from "./routes/public"
|
export { shutdown } from "./routes/public"
|
||||||
const compress = require("koa-compress")
|
const compress = require("koa-compress")
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ import {
|
||||||
generateQueryPreviewValidation,
|
generateQueryPreviewValidation,
|
||||||
generateQueryValidation,
|
generateQueryValidation,
|
||||||
} from "../controllers/query/validation"
|
} from "../controllers/query/validation"
|
||||||
|
|
||||||
const { BUILDER, PermissionType, PermissionLevel } = permissions
|
const { BUILDER, PermissionType, PermissionLevel } = permissions
|
||||||
|
|
||||||
const router: Router = new Router()
|
const router: Router = new Router()
|
||||||
|
|
|
@ -6,6 +6,7 @@ import { permissions } from "@budibase/backend-core"
|
||||||
import env from "../../environment"
|
import env from "../../environment"
|
||||||
import { paramResource } from "../../middleware/resourceId"
|
import { paramResource } from "../../middleware/resourceId"
|
||||||
import { devClientLibPath } from "../../utilities/fileSystem"
|
import { devClientLibPath } from "../../utilities/fileSystem"
|
||||||
|
|
||||||
const { BUILDER, PermissionType, PermissionLevel } = permissions
|
const { BUILDER, PermissionType, PermissionLevel } = permissions
|
||||||
|
|
||||||
const router: Router = new Router()
|
const router: Router = new Router()
|
||||||
|
|
|
@ -4,6 +4,7 @@ import authorized from "../../middleware/authorized"
|
||||||
import { paramResource, bodyResource } from "../../middleware/resourceId"
|
import { paramResource, bodyResource } from "../../middleware/resourceId"
|
||||||
import { permissions } from "@budibase/backend-core"
|
import { permissions } from "@budibase/backend-core"
|
||||||
import { tableValidator } from "./utils/validators"
|
import { tableValidator } from "./utils/validators"
|
||||||
|
|
||||||
const { BUILDER, PermissionLevel, PermissionType } = permissions
|
const { BUILDER, PermissionLevel, PermissionType } = permissions
|
||||||
|
|
||||||
const router: Router = new Router()
|
const router: Router = new Router()
|
||||||
|
|
|
@ -7,6 +7,7 @@ import sdk from "../../../sdk"
|
||||||
|
|
||||||
import tk from "timekeeper"
|
import tk from "timekeeper"
|
||||||
import { mocks } from "@budibase/backend-core/tests"
|
import { mocks } from "@budibase/backend-core/tests"
|
||||||
|
|
||||||
tk.freeze(mocks.date.MOCK_DATE)
|
tk.freeze(mocks.date.MOCK_DATE)
|
||||||
|
|
||||||
let { basicDatasource } = setup.structures
|
let { basicDatasource } = setup.structures
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
const { checkBuilderEndpoint } = require("./utilities/TestFunctions")
|
const { checkBuilderEndpoint } = require("./utilities/TestFunctions")
|
||||||
const setup = require("./utilities")
|
const setup = require("./utilities")
|
||||||
|
|
||||||
import os from "os"
|
import os from "os"
|
||||||
|
|
||||||
jest.mock("process", () => ({
|
jest.mock("process", () => ({
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
const pg = require("pg")
|
const pg = require("pg")
|
||||||
|
|
||||||
jest.mock("pg", () => {
|
jest.mock("pg", () => {
|
||||||
return {
|
return {
|
||||||
Client: jest.fn().mockImplementation(() => ({
|
Client: jest.fn().mockImplementation(() => ({
|
||||||
|
@ -13,6 +14,7 @@ jest.mock("pg", () => {
|
||||||
import * as setup from "./utilities"
|
import * as setup from "./utilities"
|
||||||
import { mocks } from "@budibase/backend-core/tests"
|
import { mocks } from "@budibase/backend-core/tests"
|
||||||
import { env, events } from "@budibase/backend-core"
|
import { env, events } from "@budibase/backend-core"
|
||||||
|
|
||||||
const structures = setup.structures
|
const structures = setup.structures
|
||||||
|
|
||||||
env._set("ENCRYPTION_KEY", "budibase")
|
env._set("ENCRYPTION_KEY", "budibase")
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
const nodeFetch = require("node-fetch")
|
const nodeFetch = require("node-fetch")
|
||||||
|
|
||||||
nodeFetch.mockSearch()
|
nodeFetch.mockSearch()
|
||||||
import { SearchParams } from "@budibase/backend-core"
|
import { SearchParams } from "@budibase/backend-core"
|
||||||
import * as search from "../../../sdk/app/rows/search/internalSearch"
|
import * as search from "../../../sdk/app/rows/search/internalSearch"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import TestConfig from "../../../../tests/utilities/TestConfiguration"
|
import TestConfig from "../../../../tests/utilities/TestConfiguration"
|
||||||
import env from "../../../../environment"
|
import env from "../../../../environment"
|
||||||
import supertest from "supertest"
|
import supertest from "supertest"
|
||||||
|
|
||||||
export * as structures from "../../../../tests/utilities/structures"
|
export * as structures from "../../../../tests/utilities/structures"
|
||||||
|
|
||||||
function user() {
|
function user() {
|
||||||
|
|
|
@ -2,6 +2,7 @@ import { Webhook } from "@budibase/types"
|
||||||
import * as setup from "./utilities"
|
import * as setup from "./utilities"
|
||||||
import { checkBuilderEndpoint } from "./utilities/TestFunctions"
|
import { checkBuilderEndpoint } from "./utilities/TestFunctions"
|
||||||
import { mocks } from "@budibase/backend-core/tests"
|
import { mocks } from "@budibase/backend-core/tests"
|
||||||
|
|
||||||
const { basicWebhook, basicAutomation, collectAutomation } = setup.structures
|
const { basicWebhook, basicAutomation, collectAutomation } = setup.structures
|
||||||
|
|
||||||
describe("/webhooks", () => {
|
describe("/webhooks", () => {
|
||||||
|
|
|
@ -2,6 +2,7 @@ import Router from "@koa/router"
|
||||||
import * as controller from "../controllers/user"
|
import * as controller from "../controllers/user"
|
||||||
import authorized from "../../middleware/authorized"
|
import authorized from "../../middleware/authorized"
|
||||||
import { permissions } from "@budibase/backend-core"
|
import { permissions } from "@budibase/backend-core"
|
||||||
|
|
||||||
const { PermissionType, PermissionLevel } = permissions
|
const { PermissionType, PermissionLevel } = permissions
|
||||||
|
|
||||||
const router: Router = new Router()
|
const router: Router = new Router()
|
||||||
|
|
|
@ -3,9 +3,11 @@ if (process.env.DD_APM_ENABLED) {
|
||||||
}
|
}
|
||||||
|
|
||||||
import * as db from "./db"
|
import * as db from "./db"
|
||||||
|
|
||||||
db.init()
|
db.init()
|
||||||
import { ServiceType } from "@budibase/types"
|
import { ServiceType } from "@budibase/types"
|
||||||
import { env as coreEnv } from "@budibase/backend-core"
|
import { env as coreEnv } from "@budibase/backend-core"
|
||||||
|
|
||||||
coreEnv._set("SERVICE_TYPE", ServiceType.APPS)
|
coreEnv._set("SERVICE_TYPE", ServiceType.APPS)
|
||||||
import { apiEnabled } from "./features"
|
import { apiEnabled } from "./features"
|
||||||
import createKoaApp from "./koa"
|
import createKoaApp from "./koa"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
const setup = require("./utilities")
|
const setup = require("./utilities")
|
||||||
|
|
||||||
import environment from "../../environment"
|
import environment from "../../environment"
|
||||||
import openai from "openai"
|
import openai from "openai"
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ import { Row, Document, DBView } from "@budibase/types"
|
||||||
// bypass the main application db config
|
// bypass the main application db config
|
||||||
// use in memory pouchdb directly
|
// use in memory pouchdb directly
|
||||||
import { db as dbCore } from "@budibase/backend-core"
|
import { db as dbCore } from "@budibase/backend-core"
|
||||||
|
|
||||||
const Pouch = dbCore.getPouch({ inMemory: true })
|
const Pouch = dbCore.getPouch({ inMemory: true })
|
||||||
|
|
||||||
export async function runView(
|
export async function runView(
|
||||||
|
|
|
@ -9,6 +9,7 @@ import {
|
||||||
DatabaseQueryOpts,
|
DatabaseQueryOpts,
|
||||||
} from "@budibase/types"
|
} from "@budibase/types"
|
||||||
import { FieldTypes } from "../constants"
|
import { FieldTypes } from "../constants"
|
||||||
|
|
||||||
export { DocumentType, VirtualDocumentType } from "@budibase/types"
|
export { DocumentType, VirtualDocumentType } from "@budibase/types"
|
||||||
|
|
||||||
type Optional = string | null
|
type Optional = string | null
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import { context } from "@budibase/backend-core"
|
import { context } from "@budibase/backend-core"
|
||||||
import { DocumentType, SEPARATOR, ViewName } from "../utils"
|
import { DocumentType, SEPARATOR, ViewName } from "../utils"
|
||||||
import { LinkDocument, Row, SearchIndex } from "@budibase/types"
|
import { LinkDocument, Row, SearchIndex } from "@budibase/types"
|
||||||
|
|
||||||
const SCREEN_PREFIX = DocumentType.SCREEN + SEPARATOR
|
const SCREEN_PREFIX = DocumentType.SCREEN + SEPARATOR
|
||||||
|
|
||||||
/**************************************************
|
/**************************************************
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { Document } from "@budibase/types"
|
import { Document } from "@budibase/types"
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Query,
|
Query,
|
||||||
Datasource,
|
Datasource,
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { env as coreEnv } from "@budibase/backend-core"
|
import { env as coreEnv } from "@budibase/backend-core"
|
||||||
import { ServiceType } from "@budibase/types"
|
import { ServiceType } from "@budibase/types"
|
||||||
|
|
||||||
coreEnv._set("SERVICE_TYPE", ServiceType.APPS)
|
coreEnv._set("SERVICE_TYPE", ServiceType.APPS)
|
||||||
import { join } from "path"
|
import { join } from "path"
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@ import Sql from "./base/sql"
|
||||||
import { MSSQLTablesResponse, MSSQLColumn } from "./base/types"
|
import { MSSQLTablesResponse, MSSQLColumn } from "./base/types"
|
||||||
import { getReadableErrorMessage } from "./base/errorMapping"
|
import { getReadableErrorMessage } from "./base/errorMapping"
|
||||||
import sqlServer from "mssql"
|
import sqlServer from "mssql"
|
||||||
|
|
||||||
const DEFAULT_SCHEMA = "dbo"
|
const DEFAULT_SCHEMA = "dbo"
|
||||||
|
|
||||||
import { ConfidentialClientApplication } from "@azure/msal-node"
|
import { ConfidentialClientApplication } from "@azure/msal-node"
|
||||||
|
|
|
@ -30,6 +30,7 @@ import {
|
||||||
Result,
|
Result,
|
||||||
} from "oracledb"
|
} from "oracledb"
|
||||||
import { OracleTable, OracleColumn, OracleColumnsResponse } from "./base/types"
|
import { OracleTable, OracleColumn, OracleColumnsResponse } from "./base/types"
|
||||||
|
|
||||||
let oracledb: any
|
let oracledb: any
|
||||||
try {
|
try {
|
||||||
oracledb = require("oracledb")
|
oracledb = require("oracledb")
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue