crelte /
crelte
Interfaces
| Interface | Description |
|---|---|
| LoadDataArray | - |
| LoadDataFn | - |
| LoadDataObj | - |
Type Aliases
| Type Alias | Description |
|---|---|
| Config | The type for the app.config object |
| Crelte | This is Crelte a container of useful features and functions. |
| CrelteRequest | This is Crelte a container of useful features and functions. |
| CrelteWithRoute | This is Crelte a container of useful features and functions. |
| Init | The type for the app.init function |
| LoadData | Load data function |
Functions
| Function | Description |
|---|---|
| getCookies | returns the cookies instance |
| getCrelte | Get Crelte from the current context |
| getEntry | Get a store with the current entry |
| getEnv | returns an env variable from the craft/.env file. All env variables need to start with VITE_ except ENDPOINT_URL, CRAFT_WEB_URL and FRONTEND_URL |
| getGlobal | returns a store which contains a globalSet |
| getLoading | returns a store which indicates if the a page is loading |
| getLoadingProgress | returns a store which indicates the loading progress between 0 and 1 |
| getQueries | Get the Queries from the current context |
| getRoute | Get a store with the current route |
| getRouter | Get the router from the current context |
| getSite | Get a store with the current site |
| getSsrCache | Get the SSR cache from the current context |
| onRequest | Listen for requests |
| onRoute | Listen for route changes |