chore(dashboard,pockethost,superadmin): fix frontend dev mode and expose pure js common

This commit is contained in:
Ben Allfree
2024-06-06 22:39:03 -07:00
parent 7de708b354
commit 9ed4fbbe3c
100 changed files with 228 additions and 207 deletions

View File

@@ -1,4 +1,4 @@
import { assertTruthy } from 'pockethost'
import { assertTruthy } from 'pockethost/common'
export const html = () => {
const htmlElement = document.querySelector('html')

View File

@@ -5,7 +5,7 @@ import {
ClientResponseError,
PocketBase,
type AuthModel,
} from 'pockethost'
} from 'pockethost/common'
export type AuthToken = string
export type AuthStoreProps = {

View File

@@ -1,4 +1,4 @@
import { LoggerService, LogLevelName } from 'pockethost'
import { LoggerService, LogLevelName } from 'pockethost/common'
import { PUBLIC_DEBUG } from './env'
// Initiate the logging service

View File

@@ -1,4 +1,4 @@
import { createCleanupManager } from 'pockethost'
import { createCleanupManager } from 'pockethost/common'
import { onDestroy } from 'svelte'
// TODO: Document this more

View File

@@ -1,6 +1,10 @@
import { client } from '$src/pocketbase-client'
import consoleLogger from '@pockethost/plugin-console-logger'
import { loadPlugins, type InstanceFields, type InstanceId } from 'pockethost'
import {
loadPlugins,
type InstanceFields,
type InstanceId,
} from 'pockethost/common'
import { writable } from 'svelte/store'
// TODO: Removing this will cause the app to crash