docbrown/app/javascript/packs
Julien Maury a2677cc0a9
Remove defer attributes from inline scripts - gist embeds (#13407)
* replace inline attribute defer with external js - show.html.erb

* fix typo in filename

* disable no-undef and bail if not defined

* put js on subfolder utilities

* refactor jsx instead of loading chunk with defer

* fix typo in desc

* better name for global gist helper

* use InstantClick

* working script on preview AND single view, not dynamic import, though

* embed only if gists

* combine all approaches to make dynamic import work

* make gist embeds work on submit comment form

* make gist embeds work on preview comment

* refactor - preview comments and submit

* add pack editComment + helper embedGistsInComments

* comment gist helper

* delete useless file utility

* use new syntax for events

* put code in method embedGistsInComments

* delete older pack gist

* handle edge case 'view full discussion'

* resolve conflict with package ibm-openapi-validator

* resolve conflict with package husky

* empty commit to test random error travis

* better name for class dismiss

* handle future events submit

* delete test code on click toggle form

* delete unused file

* rename pack as js file, not jsx

* Added POC using MutationObserver.

* missing case: notification page

* use custom pack notification page

* add e2e test for comment with embed gist

* add e2e test for preview post with embed gist

* add an extra step in tests to check gist is present

Co-authored-by: Nick Taylor <nick@dev.to>
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
2021-06-11 08:22:50 +01:00
..
actionsPanel.js [deploy] New Feature: Mod Actions Panel (#7777) 2020-06-08 13:24:18 -04:00
admin.js Remove duplicate jquery import, remove jquery-rails and use @rails/ujs (#13891) 2021-06-01 15:28:09 +02:00
analyticsArticle.js Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
analyticsDashboard.js Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
articleForm.jsx Pin posts to feed (#13807) 2021-06-04 10:54:53 +02:00
articleModerationTools.js Bump cypress from 6.9.1 to 7.2.0 (#13528) 2021-04-28 10:09:43 +01:00
articlePage.jsx Remove defer attributes from inline scripts - gist embeds (#13407) 2021-06-11 08:22:50 +01:00
base.jsx Improve keyboard accessibility of comment rate limit and error modals (#13536) 2021-05-03 07:14:23 +01:00
Chat.jsx Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
clipboardCopy.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00
colorPreview.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00
commentDropdowns.js Optimise dropdowns for accessibility - Post comments and share (#13868) 2021-06-03 09:13:17 +01:00
commentModPage.js Fix broken experience level button in moderation panel (#11797) 2020-12-08 10:20:35 +01:00
commentsDisplay.js Remove defer attributes from inline scripts - gist embeds (#13407) 2021-06-11 08:22:50 +01:00
contentDisplayPolicy.js Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
dashboardDropdowns.js Optimise dropdowns for accessibility: Dashboard and Manage pages (#13909) 2021-06-04 10:19:56 +01:00
dashboardTagsDisableUnchangedButtons.js [15 Minute Fix] Added the prefer-const eslint rule (#13098) 2021-03-23 16:29:56 -04:00
flagUserModal.jsx Use faster JS selection methods (#11409) 2020-11-16 17:35:50 +01:00
fullScreenModeControl.js Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
githubRepos.jsx Upgrade to Preact 10.4.4 (#8739) 2020-06-18 10:07:17 -04:00
homePage.jsx show the sidebar on all logged in feed views (#13877) 2021-06-01 09:55:13 +01:00
homePageFeed.jsx Pin posts to feed (#13807) 2021-06-04 10:54:53 +02:00
homePageFeedShortcuts.jsx Provide skip links: Tweak skip link style, refactor main area ID (#12694) 2021-02-17 10:15:31 +00:00
listingDashboard.jsx Upgrade to Preact 10.4.4 (#8739) 2020-06-18 10:07:17 -04:00
listingForm.jsx Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
listings.jsx Upgrade to Preact 10.4.4 (#8739) 2020-06-18 10:07:17 -04:00
modCenter.jsx Mod Center MVP 🎉 (#8744) 2020-06-23 14:58:16 -04:00
notificationPage.js Remove defer attributes from inline scripts - gist embeds (#13407) 2021-06-11 08:22:50 +01:00
notificationSubscriptionHandler.js improve keyboard accessibility of modals 12427 10610 (#12511) 2021-02-24 16:01:10 +00:00
Onboarding.jsx remove default import for onboarding (#12541) 2021-02-02 12:46:39 -05:00
onboardingRedirectCheck.jsx Moved src/utils out of src/ folder to utilities/ folder. (#7875) 2020-05-15 10:07:42 -04:00
orgCreditsSelector.js Crayonsification of Listings form (#10429) 2020-09-30 09:14:48 +02:00
postCommentsPage.js Remove defer attributes from inline scripts - gist embeds (#13407) 2021-06-11 08:22:50 +01:00
profileDropdown.js Add flag link to profile dropdown view (#12862) 2021-04-01 09:26:43 +00:00
readingList.jsx Filter by tags of reading list items not tags you follow (#11394) 2020-11-13 10:45:32 -05:00
responseTemplates.js [deploy] Finalize and add response templates feature (#7068) 2020-04-16 15:53:29 -04:00
Search.jsx Prep work to sync mobile search in #10424 (#11525) 2020-11-30 06:13:06 -05:00
sidebarWidget.jsx Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
signupModalShortcuts.jsx Use faster JS selection methods (#11409) 2020-11-16 17:35:50 +01:00
stickySaveFooter.js Use faster JS selection methods (#11409) 2020-11-16 17:35:50 +01:00
validateFileInputs.js [deploy] Add valiation for file name length to file uploads (#6918) 2020-03-27 18:54:27 -04:00
webShare.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00