import { Preload } from '@frontierjs/web/preload'
import { ApiClient } from '@frontierjs/web/api-client'
import { Auth } from '@frontierjs/web/auth'
import { Resource } from '@frontierjs/web/resource'
import models from '@/core/models-schema.json'
import hooks from '@/core/client-hooks'
import { apiUrl, currentUser, currentAccount } from '@/core/app'
const preload = Preload({
errorsUrl: import.meta.env.VITE_ERRORS_URL
})
const { api, client } = ApiClient({
apiUrl,
hooks,
models,
debug: import.meta.hot
})
const auth = Auth({
client,
currentUser,
currentAccount
})
const resource = Resource({ api, models })
export {
preload,
api,
client,
auth,
resource,
}
@frontierjs/web
0.0.20 • Public • PublishedPackage Sidebar
Install
npm i @frontierjs/web
Weekly Downloads
4
Version
0.0.20
License
ISC
Unpacked Size
446 kB
Total Files
13