discourse/plugins/styleguide
Joffrey JAFFEUX 1060e4573a
DEV: allows fabricators to use faker (#26555)
The complexity of the situation is that we don't want to load faker into production by default but fabricators and styleguide are available on production.

This is made possible through app/assets/javascripts/discourse/app/lib/load-faker.js which contains a function to ensure faker is loaded asynchronously (loadFaker) and another function to access the loaded faker (getLoadedFaker).

Note 1: this commit also refactors fabricators to have access to context and use faker where possible
Note 2: this commit moves automation to admin bundle

---------

Co-authored-by: David Taylor <david@taylorhq.com>
2024-04-08 21:00:09 +02:00
..
app/controllers/styleguide DEV: Move core plugin TL -> group settings (#25355) 2024-01-23 11:35:14 +10:00
assets DEV: allows fabricators to use faker (#26555) 2024-04-08 21:00:09 +02:00
config Update translations (#26136) 2024-03-12 15:40:11 +01:00
db/post_migrate DEV: Move core plugin TL -> group settings (#25355) 2024-01-23 11:35:14 +10:00
lib/styleguide
public/images
spec/integration DEV: Move core plugin TL -> group settings (#25355) 2024-01-23 11:35:14 +10:00
README.md
plugin.rb DEV: Update rubocop-discourse to latest version 2024-03-04 15:08:35 +01:00
screenshot.png

README.md

styleguide

Adds a URL of /styleguide to discourse that renders widgets in various configurations to aid in styling.

Screenshot