UNPKG

@frontierjs/web

Version:

Web modules for FrontierJS

42 lines (31 loc) 707 B
```js 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, } ```