Skip to content
Open
27 changes: 27 additions & 0 deletions dev/context.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { default as pane } from '../src/contactsPane'
import { DataBrowserContext, PaneRegistry } from 'pane-registry'
import { solidLogicSingleton, store } from 'solid-logic'
import { LiveStore } from 'rdflib'

// Configure fetcher for development
if (store.fetcher) {
// Configure for cross-origin requests
(store.fetcher as any).crossSite = true;
(store.fetcher as any).withCredentials = false;
}

export const context: DataBrowserContext = {
session: {
store: store as LiveStore,
paneRegistry: {
byName: (name: string) => {
return pane
}
} as PaneRegistry,
logic: solidLogicSingleton
},
dom: document,
getOutliner: () => null,
}

export const fetcher = store.fetcher
Loading