docbrown/app
Arit Amana abec2e58e9
First Few Unified Embed implementations (Liquid Tags) (#15550)
* Adding {% embed %} for liquid tags

This commit introduces the crease for us to unify our embed experience.
The main concept is introducing a lookup function for the given "link".
And with that lookup function find the underlying `LiquidTagBase` that
can handle the specific URL.

This is part proof of concept and part laying the foundation for a
plugin architecture of different LiquidTags.

We have a lot more work ahead of us to normalize this:

- Update and migrate existing data (not required but hopefully helps us
  deprecate existing liquid tags)
- Move these "embeddable" tags into a module space that eases lookup.
- Document how someone might make a Railstie gem to inject new
  embeddable formats into their application.

Related to #15099

* start adding UnifiedEmbeds to LiqTag models

* add specs for asciinema and codepen liqtags

* new tags and their specs

* complete first pass of liqtag models

* complete implementation for JsFiddleTag

* fixing twittertimeline tag

* almost done with YoutubeTag embed

* remove Medium UnifiedEmbed due to broken image in prod

* remove semi-working unified embed

* update specs

* Address PR review feedback

* add missing spec

* implement PR feedback

* last of PR review-related changes

* fix failing spec

Co-authored-by: Jeremy Friesen <jeremy.n.friesen@gmail.com>
2021-12-01 19:33:34 -05:00
..
assets Increase scrollable area on toolbar (#15615) 2021-12-01 13:59:03 +01:00
black_box
components/admin/users
controllers Renaming method to reduce surprise (#15632) 2021-12-01 16:38:26 -05:00
decorators Refactoring Spam Handler (#15412) 2021-11-30 12:45:12 -05:00
errors
helpers Enable Forem (Passport) Auth (#15141) 2021-11-23 14:59:00 -06:00
javascript Validate the color contrast ratio before submitting the Creator Settings Form (#15444) 2021-12-01 18:49:11 +02:00
lib
liquid_tags First Few Unified Embed implementations (Liquid Tags) (#15550) 2021-12-01 19:33:34 -05:00
mailers
models Renaming method to reduce surprise (#15632) 2021-12-01 16:38:26 -05:00
policies
queries
refinements
sanitizers
serializers
services Fixing logic error for feed (#15611) 2021-12-01 13:48:02 -05:00
uploaders
validators
view_objects
views Replacing User#warned with User#warned? (#15628) 2021-12-01 13:14:16 -05:00
workers Extracting Article.featured scope (#15612) 2021-12-01 12:16:32 -05:00