Skip to content

Utils and schemes ​

Utils ​

Shared utilities used by the app and plugins. All under utils/ in the Admin-Frontend repo.

FilePurpose
index.jsGeneral helpers: isSame, sortBy, toQueryString, deepSearch, and other shared functions
cacheHelpers.jsClient-side cache helpers (e.g. localStorage/sessionStorage)
cancelTokenManager.jsAxios cancel token registration and cancellation (used by axios plugin)
helper.jsmakeMutations and other Vue/store helpers
fileHierarchy.jsBuild or traverse file/folder hierarchy
apiRateLimiter.jsRequest queue / rate limiting for API calls (used by axios plugin)

Schemes ​

Auth schemes used by @nuxtjs/auth-next. Under schemes/.

FilePurpose
customScheme.jsCustom auth scheme (e.g. extended local strategy)
external.jsExternal auth strategy scheme (token/user endpoints for external users); referenced in nuxt.config as ~/schemes/external for the external strategy