Problem/Motivation

For obvious reasons, we need to create a D8 version of this module. Drupal 8 handles javascript very differently, via libraries, so this will need to be more than a straight port of the D7 version.

Proposed resolution

Build upon two new architectures in D8: Asset libraries and Configuration. Give admins the ability to organize their script snippets into libraries and apply the placement rules on a library basis.

Remaining tasks

Add to this list as needed:
- Configuration/Admin Page
- Library Attachment

User interface changes

Rather than a draggable/weight based design, use the new library dependency feature to order script loading.

Data model changes

Store library configuration in configuration entities.
Store JS snippets in files.
-- Event Subscriber to ConfigEvents::IMPORT and create snippet files on import or config save.

CommentFileSizeAuthor
#6 library_config.png64.92 KBFatherShawn
#6 proposed_admin.png117.15 KBFatherShawn
Members fund testing for the Drupal project. Drupal Association Learn more

Comments

FatherShawn created an issue. See original summary.

FatherShawn’s picture

Issue summary: View changes
FatherShawn’s picture

Issue summary: View changes
FatherShawn’s picture

Issue summary: View changes
focal55’s picture

Thanks for the great work FatherShawn. Looking forward to the D8 version.

FatherShawn’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
FileSize
117.15 KB
64.92 KB
FatherShawn’s picture

Issue summary: View changes

Finally have space to begin to move forward. Here's what I'm thinking for an admin interface:
admin ui

This gives a hint at the library config ui:
library config

FatherShawn’s picture

FatherShawn’s picture

Status: Active » Closed (duplicate)