YireoTraining_ExampleLokiComponents

Examples
Latest Release dev-master

Example module to demonstrate various usecases of Loki Components, as being used in the Yireo LokiCheckout extension suite for Magento 2.

You can use this module without the requirement of having the LokiCheckout. This module only depends upon the free Yireo_LokiComponents module.

Installation

Install this package via composer (assuming you have setup the composer.yireo.com repository correctly already):

composer require yireo-training/magento2-example-loki-components

Next, enable this module:

bin/magento module:enable YireoTraining_ExampleLokiComponents

Support

For getting support, create an Issue under the following project URL:

https://github.com/yireo-training/YireoTraining_ExampleLokiComponents

Loki Components

The following LokiComponents are created or references in this module:

example-loki-components.random example-loki-components.like example-loki-components.switcher comments example-loki-components.comments-add example-loki-components.comments-listing example-loki-components.comments-counter example-loki-components.notification
Module Dependencies

The following dependencies are declared in the module its `etc/module.xml` file:

Yireo_LokiComponents
Composer details
Magento module name
YireoTraining_ExampleLokiComponents
Composer name
yireo-training/magento2-example-loki-components
Composer version
0.0.6
Default branch
master
Requirements
magento/framework: *
Releases
dev-master 25 April 2025
0.0.6 25 April 2025
0.0.5 16 April 2025
0.0.4 09 April 2025
0.0.3 11 March 2025
0.0.2 22 February 2025
0.0.1 03 January 2025
Changelog

[0.0.6] - 25 April 2025

Fixed

  • Remove x-model because of CSP compliance

[0.0.5] - 16 April 2025

Fixed

  • Chop up modal into regular component, Loki Component and component partial
  • Complete modal example

[0.0.4] - 09 April 2025

Fixed

  • Additional styling via Tailwind
  • Add keywords to composer.json
  • Housekeeping

[0.0.3] - 11 March 2025

Fixed

  • POF for LokiMapComponents
  • Huge refactoring to move logic into new LokiFieldComponents
  • Add configurable listing of links
  • Rename URL
  • Update docs

[0.0.2] - 22 February 2025

  • Add README
  • Add TODO file for site building
  • Refactor LocalMessageRegistry methods
  • Add links to Luma footer
  • Fix old call
  • Rename numeric to number because numeric is reserved
  • Fix die statement
  • Major rewrite of context
  • Move isAjax to single ViewModel
  • Rewrite repository and viewModel instantiation
  • Rename repository abstract methods
  • Update composer.json

[0.0.1] - 26 December 2024

  • First release

[dev] - 24 December 2024

  • Initial proof-of-concept

Last modified: April 30, 2025