Natural Performance Manager

    @frontierjs/web

    0.0.15 • Public • Published
    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,
    }
    

    Keywords

    Install

    npm i @frontierjs/web

    DownloadsWeekly Downloads

    57

    Version

    0.0.15

    License

    ISC

    Unpacked Size

    666 kB

    Total Files

    13

    Last publish

    Collaborators

    • jdkdev