forked from tsai/budibase
114 changed files with 1454 additions and 920 deletions
@ -1,9 +1,8 @@ |
|||||
<script> |
<script> |
||||
import { getContext } from "svelte" |
import { getContext } from "svelte" |
||||
import { Heading, Icon } from "@budibase/bbui" |
import { Heading, Icon } from "@budibase/bbui" |
||||
import { routeStore } from "../../client/src/store" |
|
||||
|
|
||||
const { styleable, linkable, builderStore } = getContext("sdk") |
const { routeStore, styleable, linkable, builderStore } = getContext("sdk") |
||||
const component = getContext("component") |
const component = getContext("component") |
||||
|
|
||||
export let title |
export let title |
||||
@ -1,7 +1,7 @@ |
|||||
<script> |
<script> |
||||
import { getContext, setContext, onMount } from "svelte" |
import { getContext, setContext, onMount } from "svelte" |
||||
import { dataSourceStore, createContextStore } from "../store" |
import { dataSourceStore, createContextStore } from "stores" |
||||
import { ActionTypes } from "../constants" |
import { ActionTypes } from "constants" |
||||
import { generate } from "shortid" |
import { generate } from "shortid" |
||||
|
|
||||
export let data |
export let data |
||||
@ -1,7 +1,7 @@ |
|||||
<script> |
<script> |
||||
import Provider from "./Provider.svelte" |
import Provider from "./Provider.svelte" |
||||
import { authStore } from "../store" |
import { authStore } from "stores" |
||||
import { ActionTypes, TableNames } from "../constants" |
import { ActionTypes, TableNames } from "constants" |
||||
|
|
||||
// Register this as a refreshable datasource so that user changes cause |
// Register this as a refreshable datasource so that user changes cause |
||||
// the user object to be refreshed |
// the user object to be refreshed |
||||
@ -1,5 +1,5 @@ |
|||||
<script> |
<script> |
||||
import { confirmationStore } from "../store" |
import { confirmationStore } from "stores" |
||||
import { Modal, ModalContent } from "@budibase/bbui" |
import { Modal, ModalContent } from "@budibase/bbui" |
||||
</script> |
</script> |
||||
|
|
||||
@ -1,5 +1,5 @@ |
|||||
<script> |
<script> |
||||
import { notificationStore } from "../store" |
import { notificationStore } from "stores" |
||||
import { Notification } from "@budibase/bbui" |
import { Notification } from "@budibase/bbui" |
||||
import { fly } from "svelte/transition" |
import { fly } from "svelte/transition" |
||||
</script> |
</script> |
||||
@ -1,5 +1,5 @@ |
|||||
import { writable, derived } from "svelte/store" |
import { writable, derived } from "svelte/store" |
||||
import Manifest from "@budibase/standard-components/manifest.json" |
import Manifest from "manifest.json" |
||||
import { findComponentById, findComponentPathById } from "../utils/components" |
import { findComponentById, findComponentPathById } from "../utils/components" |
||||
|
|
||||
const dispatchEvent = (type, data = {}) => { |
const dispatchEvent = (type, data = {}) => { |
||||
@ -1,12 +0,0 @@ |
|||||
export const hashString = str => { |
|
||||
if (!str) { |
|
||||
return 0 |
|
||||
} |
|
||||
let hash = 0 |
|
||||
for (let i = 0; i < str.length; i++) { |
|
||||
let char = str.charCodeAt(i) |
|
||||
hash = (hash << 5) - hash + char |
|
||||
hash = hash & hash // Convert to 32bit integer
|
|
||||
} |
|
||||
return hash |
|
||||
} |
|
||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue