API Reference scales_cms v0.1.20

Modules

ScalesCms keeps the contexts that define your domain and business logic.

The Cms context.

The CMS API Keys context.

The Cms context.

The Cms context.

Insert a block in a list and fix the sorting of that list of blocks

Set the new order of blocks after moving them

Deletes a page including its descendants.

Find the correct page variant for a specific locale if this is missing.

A collections of flows to aid publishing

Select the right version of a page variant based on the locale

Set a page variant to the latest version per locale. This provides the API of an easy way to find the latest version of a specific page

Starts a new version based on a give page variant. It copies then relevant parameters, and duplicates all blocks.

The Locales helper offers a list of supported locales and the default locale

A set of helper functions to aid the AWS S3 usage throughout the application

Module defining button color variants

Module containind topics for pubsub

Error handler for JWT

Guardian Implementation to resolve module to user

The entrypoint for defining your web interface, such as controllers, components, channels, and so on.

The Macros for defining the routes in the main application

CMS Settings LiveView component for managing API keys.

An index of all components

A header component for the CMS

The MD editor, rendering the Trix WYSIWYG editor for the MD component

A button collection component for the CMS

The button collection editor component for the CMS

The wrapper that goes around a block that is rendered in the WYSIWYG editor

A header component for the CMS

The MD editor, rendering the Trix WYSIWYG editor for the MD component

The MD editor, rendering the Trix WYSIWYG editor for the MD component

A header component for the CMS

The MD editor, rendering the Trix WYSIWYG editor for the MD component

A multi use Phoenix LiveView file uploader ready for direct to S3 uploading

A first draft of a fileuploader that can be used more than once in a live view

An upload to s3 image component

A header component for the CMS

The MD editor, rendering the Trix WYSIWYG editor for the MD component

A button collection component for the CMS

The image button collection editor component for the CMS

An upload to s3 lottie component

The markdown component, allowing the user to use a HTML WYSIWYG editor, transforming that HTML back to MD

The MD editor, rendering the Trix WYSIWYG editor for the MD component

An upload to s3 video component

The renderer of all the blocks, linking them to the right components

The wrapper that goes around a block that is rendered in the WYSIWYG editor

A drawer preview for the component library

The wrapper that goes around a block that is rendered in the WYSIWYG editor

A locale switcher component, that provides a PubSub feature throughout the whole application so they can tag along with locale changes

The renderer and config for the menu items

Provides core UI components.

This module is invoked by your endpoint in case of errors on HTML requests.

This module is invoked by your endpoint in case of errors on JSON requests.

A module providing Internationalization with a gettext-based API.

A starting point for date helpers

This module holds different layouts used by your application.

This module contains pages rendered by PageController.

Plug to serve specific assets for the CMS. Inspired from the LiveView Dashboard way of serving assets

This plug authenticates the API request based on JWT

Provides custom made UI components.

Provides a demo UserAuth environment to develop the CMS with a logged in user. Taken from mix.gen auth, so it matches with most Phoenix envs.

Mix Tasks

Provides the migrations for ScalesCMS