/src/lib/utils.js
deepMergeObjects(target, source)
target - string : target object source - string : object to merge with target
target
string
source
simplifyPath(path)
path - string : URL
path
slugify(string)
string - string : String to convert to slug
setTokenAxios(cookies)
cookies - string : Request from headers coockie
cookies
import { setTokenAxios } from '@aquilacms/aquila-connector/lib/utils'; const Token = setTokenAxios(cookies);
generateURLImageCache(type, size, id, fileName, extension)
type - string : Image type size - string : Image size ("256x256" is the default value) id - string : Image ID fileName - string : Image filename extension - string : Image extension (with point)
type
size
"256x256"
id
fileName
extension
There was an error while loading. Please reload this page.