API Reference Legendary v8.12.0

modules

Modules

Legendary.Auth keeps the contexts that define your domain and business logic.

Manages the cache in Mnesia for Pow. This allows users to remain logged in even if their traffic is hitting different nodes in the cluster.

Functions for working with roles on users, such as testing whether a user has a role.

The baseline user schema module.

Custom admin login for user records.

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

Provides core UI components.

Utility functions for working with users and roles.

A plug that returns 403 unauthorized if the user is not an admin. Used to block out logged-in-only routes.

Hook into Pow Controllers to provide additional framework feature. In particular, we disconnect any active live views when a user logs out. This will cause the live view to re-connect with the new session environment.

Mailer module for Pow which links it to our well-styled defaults.

HTML module for Registration form.

HTML module for sign in form.

HTML module for password resets.

Legendary.Core keeps the contexts that define your domain and business logic.

Generic additional utility functions for Maps.

Router module that brings in core framework routes, such as the feature flag admin interface. Can be included like

A shareable connection pool. We use this so that all the apps connecting to one database can use on connection pool, even if they have different repos.

The core library for email in the application. The functions here can be composed in the application to send different emails.

The base mailer for email for the application.

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

Utilities for converting data uris and base64 strings to Plug.Upload structs so they can be processed in the same way as files submitted by multipart forms.

HTML helpers for emails.

Conveniences for translating and building error messages.

A module providing Internationalization with a gettext-based API.

HTML helpers for our styled (Tailwind) forms.

Provides an API used by Cypress to remote control the database state for integration tests.

Collects metrics for the application and allows them to be transmitted using the Telemetry framework.

The internationalization and strings module. Keeps strings outside the codebase and allows them to be replaced on a per locale basis by editing yml files.

Parent module for all Legendary framework mix tasks. Provides some helpers used by tasks and generators.

mix-tasks

Mix Tasks

Mix task to create an admin user from the command line.