reference

Configuration reference

The methods called on MVC::Keayl::Admin to set the admin up, in one place. Each links to the page covering it in detail. The per-resource declarations used inside a register block are tabulated in Registering resources.

Mounting and configuration

MethodPurpose
endpoint()Returns the engine dispatcher for the host to mount. See Mounting.
config()Returns the shared configuration object.
configure(:mount-path, :site-title, :logout-path)Sets the mount path, site title, and navbar logout link path. See Mounting.
registry()Returns the resource registry (by-model, by-slug, all).

Resources and pages

MethodPurpose
register(Model, { ... }, :slug, :singular, :plural, :per-page, :scope-counts)Registers a resource. See Registering resources.
page(slug, &block, :title, :group, :label, :priority, :icon, :hide)Registers a standalone page. See Customization.
path-for(name, *args)Builds the mount-prefixed URL for a resource action. See Registering resources.

Navigation and dashboard

MethodPurpose
menu-link(:label, :url, :group, :priority, :icon, :external)Adds a custom menu link. See Navigation.
menu-group-order(*groups)Orders the menu groups explicitly. See Navigation.
dashboard-block(&block, :title)Adds a custom dashboard panel. See Navigation.

Authentication and authorization

MethodPurpose
authenticate-with($strategy)Installs an authentication strategy. See Authentication.
authorize-with($policy)Installs an authorization policy. See Authorization.

Assets, theming, and localization

MethodPurpose
use-stylesheet($url)Layers a host stylesheet after the bundle. See Assets.
view-path($dir)Adds a host view path searched before the engine's. See Customization.
load-locales($dir)Loads locale files into the I18n backend. See Customization.
locale($code)Selects the active locale. See Customization.

Generators

The keayl-admin command scaffolds the admin from the shell, not from Raku:

CommandPurpose
keayl-admin generate admin:installMounts the engine and writes the initializer, dashboard, and auth stubs.
keayl-admin generate admin <Model>Emits an explicit registration introspected from the model's schema.

See Installation.

MVC::Keayl::Admin v0.9.0

Generated administration interface for MVC::Keayl applications

Authors

  • Greg Donald

License

Artistic-2.0

Dependencies

MVC::Keayl:auth<zef:gdonald>ORM::ActiveRecord:auth<zef:gdonald>Template::HAML:auth<zef:gdonald>

Provides

  • MVC::Keayl::Admin
  • MVC::Keayl::Admin::ActionItem
  • MVC::Keayl::Admin::Assets
  • MVC::Keayl::Admin::AssetsController
  • MVC::Keayl::Admin::Attachments
  • MVC::Keayl::Admin::Attribute
  • MVC::Keayl::Admin::Authentication
  • MVC::Keayl::Admin::Authentication::Basic
  • MVC::Keayl::Admin::Authentication::Session
  • MVC::Keayl::Admin::Authorization
  • MVC::Keayl::Admin::Authorization::Abilities
  • MVC::Keayl::Admin::Authorization::Policy
  • MVC::Keayl::Admin::Authorization::Role
  • MVC::Keayl::Admin::BatchAction
  • MVC::Keayl::Admin::Chrome
  • MVC::Keayl::Admin::Column
  • MVC::Keayl::Admin::Config
  • MVC::Keayl::Admin::Controller
  • MVC::Keayl::Admin::CustomAction
  • MVC::Keayl::Admin::DSL
  • MVC::Keayl::Admin::Dashboard
  • MVC::Keayl::Admin::DashboardController
  • MVC::Keayl::Admin::Engine
  • MVC::Keayl::Admin::ExportSpec
  • MVC::Keayl::Admin::Field
  • MVC::Keayl::Admin::Filter
  • MVC::Keayl::Admin::FilterPanel
  • MVC::Keayl::Admin::Form
  • MVC::Keayl::Admin::Formatter
  • MVC::Keayl::Admin::Generators
  • MVC::Keayl::Admin::I18n
  • MVC::Keayl::Admin::IndexView
  • MVC::Keayl::Admin::Inflection
  • MVC::Keayl::Admin::Menu
  • MVC::Keayl::Admin::MenuEntry
  • MVC::Keayl::Admin::Nested
  • MVC::Keayl::Admin::Page
  • MVC::Keayl::Admin::PageController
  • MVC::Keayl::Admin::Pages
  • MVC::Keayl::Admin::Pagination
  • MVC::Keayl::Admin::Panel
  • MVC::Keayl::Admin::Panels
  • MVC::Keayl::Admin::Paths
  • MVC::Keayl::Admin::Predicate
  • MVC::Keayl::Admin::Registry
  • MVC::Keayl::Admin::Resource
  • MVC::Keayl::Admin::ResourceController
  • MVC::Keayl::Admin::Scope
  • MVC::Keayl::Admin::Scopes
  • MVC::Keayl::Admin::Show
  • MVC::Keayl::Admin::Table
  • MVC::Keayl::Admin::TestSupport
  • MVC::Keayl::Admin::Url
  • MVC::Keayl::Admin::View

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.