mirror of
https://github.com/pockethost/pockethost.git
synced 2026-03-21 23:53:24 +00:00
chore(dashboard,pockethost,superadmin): fix frontend dev mode and expose pure js common
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { assertTruthy } from 'pockethost'
|
||||
import { assertTruthy } from 'pockethost/common'
|
||||
|
||||
export const html = () => {
|
||||
const htmlElement = document.querySelector('html')
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
ClientResponseError,
|
||||
PocketBase,
|
||||
type AuthModel,
|
||||
} from 'pockethost'
|
||||
} from 'pockethost/common'
|
||||
|
||||
export type AuthToken = string
|
||||
export type AuthStoreProps = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LoggerService, LogLevelName } from 'pockethost'
|
||||
import { LoggerService, LogLevelName } from 'pockethost/common'
|
||||
import { PUBLIC_DEBUG } from './env'
|
||||
|
||||
// Initiate the logging service
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createCleanupManager } from 'pockethost'
|
||||
import { createCleanupManager } from 'pockethost/common'
|
||||
import { onDestroy } from 'svelte'
|
||||
|
||||
// TODO: Document this more
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user