docbrown/app/javascript/utilities
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
..
__tests__ Update storybook mention autocomplete component to take over whole textarea (#13044) 2021-03-18 15:04:59 +00:00
connect Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
Constants [deploy] 🚀 Feature: Draw Command for connect with image annotations (#10136) 2020-10-07 16:06:22 +02:00
http Moved src/utils out of src/ folder to utilities/ folder. (#7875) 2020-05-15 10:07:42 -04:00
markdown Advise users about potential accessibility failings in their posts - RFC #58 (#13745) 2021-06-03 10:27:12 +01:00
search Prep work to sync mobile search in #10424 (#11525) 2020-11-30 06:13:06 -05:00
calculateTextAreaHeight.js Add mention autocomplete to posts (#13101) 2021-03-31 14:42:59 +01:00
codeFullscreenModeSwitcher.js [15 Minute Fix] Added the prefer-const eslint rule (#13098) 2021-03-23 16:29:56 -04:00
debounceAction.js Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
dragAndDrop.js Drag and drop an image in the editor (#10145) 2020-09-04 14:12:59 -04:00
dragAndUpload.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00
dropdownUtils.js Optimise dropdowns for accessibility: Dashboard and Manage pages (#13909) 2021-06-04 10:19:56 +01:00
gist.js Remove defer attributes from inline scripts - gist embeds (#13407) 2021-06-11 08:22:50 +01:00
pasteImage.js Add paste image (#10212) 2021-02-04 10:58:56 -05:00
sendFollowUser.js Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
textAreaUtils.js Remove input scroll from position (#13569) 2021-04-29 11:00:37 +02:00
viewport.js Fix feed navigation shortcuts when first article is not 100% visible (#11874) 2021-04-13 22:35:50 -04:00