Lint
This commit is contained in:
parent
30db237071
commit
1779a5ee19
|
@ -2,6 +2,7 @@
|
|||
import { Button, Select, Input, Label } from "@budibase/bbui"
|
||||
import { onMount, createEventDispatcher } from "svelte"
|
||||
import { flags } from "stores/builder"
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
export let value
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
<script>
|
||||
import { datasources, tables, integrations } from "stores/builder"
|
||||
import { datasources, tables, integrations, appStore } from "stores/builder"
|
||||
import EditRolesButton from "./buttons/EditRolesButton.svelte"
|
||||
import { TableNames } from "constants"
|
||||
import { Grid } from "@budibase/frontend-core"
|
||||
import { API } from "api"
|
||||
import { appStore } from "stores/builder"
|
||||
import GridAddColumnModal from "components/backend/DataTable/modals/grid/GridCreateColumnModal.svelte"
|
||||
import GridCreateEditRowModal from "components/backend/DataTable/modals/grid/GridCreateEditRowModal.svelte"
|
||||
import GridEditUserModal from "components/backend/DataTable/modals/grid/GridEditUserModal.svelte"
|
||||
|
|
|
@ -2,7 +2,15 @@
|
|||
import { goto, isActive, params } from "@roxi/routify"
|
||||
import { Layout } from "@budibase/bbui"
|
||||
import { BUDIBASE_INTERNAL_DB_ID } from "constants/backend"
|
||||
import { datasources, queries, tables, views, viewsV2 } from "stores/builder"
|
||||
import {
|
||||
datasources,
|
||||
queries,
|
||||
tables,
|
||||
views,
|
||||
viewsV2,
|
||||
userSelectedResourceMap,
|
||||
database,
|
||||
} from "stores/builder"
|
||||
import EditDatasourcePopover from "./popovers/EditDatasourcePopover.svelte"
|
||||
import EditQueryPopover from "./popovers/EditQueryPopover.svelte"
|
||||
import NavItem from "components/common/NavItem.svelte"
|
||||
|
@ -14,7 +22,6 @@
|
|||
} from "helpers/data/utils"
|
||||
import IntegrationIcon from "./IntegrationIcon.svelte"
|
||||
import { TableNames } from "constants"
|
||||
import { userSelectedResourceMap, database } from "stores/builder"
|
||||
import { enrichDatasources } from "./datasourceUtils"
|
||||
import { onMount } from "svelte"
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
Button,
|
||||
FancySelect,
|
||||
} from "@budibase/bbui"
|
||||
import { builderStore, appStore } from "stores/builder"
|
||||
import { builderStore, appStore, roles } from "stores/builder"
|
||||
import { groups, licensing, apps, users, auth, admin } from "stores/portal"
|
||||
import {
|
||||
fetchData,
|
||||
|
@ -28,7 +28,6 @@
|
|||
import RoleSelect from "components/common/RoleSelect.svelte"
|
||||
import UpgradeModal from "components/common/users/UpgradeModal.svelte"
|
||||
import { emailValidator } from "helpers/validation"
|
||||
import { roles } from "stores/builder"
|
||||
import { fly } from "svelte/transition"
|
||||
|
||||
let query = null
|
||||
|
|
|
@ -2,11 +2,10 @@
|
|||
import { Button, Heading, Body, Layout, Modal, Divider } from "@budibase/bbui"
|
||||
import CreateTableModal from "components/backend/TableNavigator/modals/CreateTableModal.svelte"
|
||||
import ICONS from "components/backend/DatasourceNavigator/icons"
|
||||
import { tables, datasources } from "stores/builder"
|
||||
import { tables, datasources, builderStore } from "stores/builder"
|
||||
import { goto } from "@roxi/routify"
|
||||
import { DEFAULT_BB_DATASOURCE_ID, DB_TYPE_EXTERNAL } from "constants/backend"
|
||||
import { onMount } from "svelte"
|
||||
import { builderStore } from "stores/builder"
|
||||
|
||||
let modal
|
||||
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
<script>
|
||||
import { queries } from "stores/builder"
|
||||
import { queries, builderStore } from "stores/builder"
|
||||
import { syncURLToState } from "helpers/urlStateSync"
|
||||
import * as routify from "@roxi/routify"
|
||||
import { onDestroy } from "svelte"
|
||||
import { builderStore } from "stores/builder"
|
||||
|
||||
$: queryId = $queries.selectedQueryId
|
||||
$: builderStore.selectResource(queryId)
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
<script>
|
||||
import { queries, datasources } from "stores/builder"
|
||||
import { queries, datasources, database } from "stores/builder"
|
||||
import QueryViewer from "components/integration/QueryViewer.svelte"
|
||||
import RestQueryViewer from "components/integration/RestQueryViewer.svelte"
|
||||
import { IntegrationTypes } from "constants/backend"
|
||||
import { cloneDeep } from "lodash/fp"
|
||||
import { database } from "stores/builder"
|
||||
|
||||
$: query = $queries.selected
|
||||
$: editableQuery = cloneDeep(query)
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
<script>
|
||||
import { syncURLToState } from "helpers/urlStateSync"
|
||||
import { tables } from "stores/builder"
|
||||
import { tables, builderStore } from "stores/builder"
|
||||
import * as routify from "@roxi/routify"
|
||||
import { onDestroy } from "svelte"
|
||||
import { builderStore } from "stores/builder"
|
||||
|
||||
$: tableId = $tables.selectedTableId
|
||||
$: builderStore.selectResource(tableId)
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
<script>
|
||||
import { views } from "stores/builder"
|
||||
import { views, builderStore } from "stores/builder"
|
||||
import { syncURLToState } from "helpers/urlStateSync"
|
||||
import * as routify from "@roxi/routify"
|
||||
import { onDestroy } from "svelte"
|
||||
import { builderStore } from "stores/builder"
|
||||
|
||||
$: name = $views.selectedViewName
|
||||
$: builderStore.selectResource(name)
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
<script>
|
||||
import { viewsV2 } from "stores/builder"
|
||||
import { viewsV2, builderStore } from "stores/builder"
|
||||
import { syncURLToState } from "helpers/urlStateSync"
|
||||
import * as routify from "@roxi/routify"
|
||||
import { onDestroy } from "svelte"
|
||||
import { builderStore } from "stores/builder"
|
||||
|
||||
$: id = $viewsV2.selectedViewId
|
||||
$: builderStore.selectResource(id)
|
||||
|
|
|
@ -9,13 +9,12 @@
|
|||
import DesignSection from "./DesignSection.svelte"
|
||||
import CustomStylesSection from "./CustomStylesSection.svelte"
|
||||
import ConditionalUISection from "./ConditionalUISection.svelte"
|
||||
import { notifications } from "@budibase/bbui"
|
||||
import { getComponentName } from "stores/builder/components/utils"
|
||||
import {
|
||||
getBindableProperties,
|
||||
getComponentBindableProperties,
|
||||
} from "builder/dataBinding"
|
||||
import { ActionButton } from "@budibase/bbui"
|
||||
import { ActionButton, notifications } from "@budibase/bbui"
|
||||
import { capitalise } from "helpers"
|
||||
|
||||
const onUpdateName = async value => {
|
||||
|
|
|
@ -1,13 +1,17 @@
|
|||
<script>
|
||||
import { syncURLToState } from "helpers/urlStateSync"
|
||||
import { builderStore, screenStore, selectedScreen } from "stores/builder"
|
||||
import {
|
||||
builderStore,
|
||||
screenStore,
|
||||
selectedScreen,
|
||||
componentStore,
|
||||
} from "stores/builder"
|
||||
import * as routify from "@roxi/routify"
|
||||
import { onDestroy } from "svelte"
|
||||
import { findComponent } from "stores/builder/components/utils"
|
||||
import ComponentSettingsPanel from "./_components/Component/ComponentSettingsPanel.svelte"
|
||||
import NavigationPanel from "./_components/Navigation/index.svelte"
|
||||
import ScreenSettingsPanel from "./_components/Screen/index.svelte"
|
||||
import { componentStore } from "stores/builder"
|
||||
|
||||
$: componentId = $componentStore.selectedComponentId
|
||||
$: builderStore.selectResource(componentId)
|
||||
|
|
|
@ -4,10 +4,9 @@
|
|||
import ScreenRoleModal from "./ScreenRoleModal.svelte"
|
||||
import sanitizeUrl from "builder/store/screenTemplates/utils/sanitizeUrl"
|
||||
import { Modal, notifications } from "@budibase/bbui"
|
||||
import { screenStore, navigationStore } from "stores/builder"
|
||||
import { screenStore, navigationStore, tables } from "stores/builder"
|
||||
import { get } from "svelte/store"
|
||||
import getTemplates from "builder/store/screenTemplates"
|
||||
import { tables } from "stores/builder"
|
||||
import { Roles } from "constants/backend"
|
||||
import { capitalise } from "helpers"
|
||||
import { goto } from "@roxi/routify"
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
<script>
|
||||
import { Select, ModalContent } from "@budibase/bbui"
|
||||
import { RoleUtils } from "@budibase/frontend-core"
|
||||
import { roles } from "stores/builder"
|
||||
import { roles, screenStore } from "stores/builder"
|
||||
import { get } from "svelte/store"
|
||||
import { screenStore } from "stores/builder"
|
||||
import { onMount } from "svelte"
|
||||
|
||||
export let onConfirm
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { writable, get } from "svelte/store"
|
||||
import { get } from "svelte/store"
|
||||
import { createBuilderWebsocket } from "./websocket.js"
|
||||
import { BuilderSocketEvent } from "@budibase/shared-core"
|
||||
import BudiStore from "./BudiStore"
|
||||
|
|
|
@ -23,6 +23,7 @@ import {
|
|||
DB_TYPE_EXTERNAL,
|
||||
} from "constants/backend"
|
||||
import BudiStore from "../BudiStore"
|
||||
import { Utils } from "@budibase/frontend-core"
|
||||
|
||||
export const INITIAL_COMPONENTS_STATE = {
|
||||
components: [],
|
||||
|
|
|
@ -6,8 +6,9 @@ import {
|
|||
themeStore,
|
||||
navigationStore,
|
||||
deploymentStore,
|
||||
datasources,
|
||||
tables,
|
||||
} from "stores/builder"
|
||||
import { datasources, tables } from "stores/builder"
|
||||
import { get } from "svelte/store"
|
||||
import { auth, apps } from "stores/portal"
|
||||
import { screenStore } from "./screens"
|
||||
|
|
Loading…
Reference in New Issue