Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Echo360 EchoVideos as a provider #182

Merged
merged 1 commit into from May 13, 2024
Merged

Conversation

echo360-damyon
Copy link
Contributor

At Echo360 (https://echo360.com/) we have been asked by our customers to allow videos captured in our EchoVideo platform to be able to be included in H5P content. We have added these features in our test environment and they will be released generally at the end of the year.

For this to work in the same way as other supported video platforms it will require changes to both this repository as well as the H5P Video library. Our changes are modelled after the other video platforms.

},
{
name: 'Echo360',
regexp: /^[^\/]+:\/\/(echo360[^\/]+)\/media\/([^\/]+)\/h5p.*$/i,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note: If Echo360 requires to have an extra link to serve videos for H5P in addition to the public link that one gets when intending to share the video, and that's not too confusing for Echo360 users, that regex seems fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - yes Echo360 requires a separate route which triggers some minor layout changes and feature changes

@devland devland merged commit 28ddd09 into h5p:master May 13, 2024
devland added a commit that referenced this pull request May 21, 2024
* Add cancel submit callback for h5p editor form

Allows the plugin to cancel validation and submission of the form
through a callback. Fixes h5p/moodle-mod_hvp#306
which expects the form to be submitted when it is canceled.

* Remove console.log

* JI-1235 Prevent pasting of restricted libraries

* Save content language even if it is not changed

* Fix whitelist check to be case insensitive

* Add support for more content type languages

* Add one more check

* Update eu.js

* Update ru.js

* Update pt.js

European PT translation

* Update tr.js

* fix: prevent resize if iframe is not ready

* JI-1497 Change audio URL icon

* JI-1405 Add support for additional icons after text

* JI-1526 Encode html before returning it as html

The callback should typically return html elements styles for highlighting the code. Since we don't do any styling for the highlighting we just have to encode the html.

* Update tr.js

* Create cs.js

Translating to cs

* Update cs.js

Translated to cs

* Updated German translation

* Create sv.json

* Rename sv.json to sv.js

* Fix invalid div element syntax

* Fix compatibility with newer jQuery versions

* Add missing language strings

* Fix variable usage consistency

* Remove unnecessary conversion

* Create sl.json

Added slovenian translation

* Rename sl.json to sl.js

* Update nl.js

* add chinese translation based on en.js

* Fix compatibility with newer jQuery versions

(cherry picked from commit 757f705)

* HFP-3008 Add content language to iframe

* Add content hub and a11y changes from Drupal git

See Drupal 7 git for git history for these commits.

* Fix missing merge from Drupal git

* Upgrade CKEditor to 4.14.1

* HFP-3008 Add language to iframe document instead of iframe

* HFP-3121 Update hub client

Add translations for reusing content

* HFP-3109 Update hub client

* Update hub client

* Create ko.json

This is a Korean translation

* JI-1927 Add new video widget translations

* JI-1927 Add Panopto mime type support in video widget

* Rename ko.json to ko.js

* JI-2026 Change confirmation message when reusing content

* Update nl.js

* Update Hub + translations

* Update nl.js

* Remove unused function

* Remove global user

* Revert "Remove global user"

This reverts commit fd3873f.

* Fix using language parameter instead of global user object

* Update Hub Client

* Update CKEditor 4.15.1

* JI-2080 Add H5PIntegration Hub object to init

* JI-2080 Update Hub Client

* Update hub client

* Update hub client

* Update hub client

* Update hub client css

* Update hub client

* JI-2271 Add flag determining whether content hub should be enabled

* JI-2271 Update hub client with pagination fix

* JI-2271 Update hub client

* HFP-3232 Change search placeholder text for content hub filters

* Fix PHP8.0 warning

Credits goes to Marina Glancy.

* Update hub client

* Revert "Update CKEditor 4.15.1"

This reverts commit 7f4fded.

* Revert "Upgrade CKEditor to 4.14.1"

This reverts commit b9582fd.

* JI-2316 Fix size bug for editor fields

* JI-2356 Update hub client

* Update hub client

* Update hub client

* Update hub client

* Fix edge case crashes after resetting the editor

* JI-2176 Implement new design for Tutorial and Example links

* JI-2176 Remove extra semicolons

* JI-2406 Update to version 4.16.1 of CKEditor

* JI-2406 Fix CKEditor field collapsing

The CKEditor input field would sometimes collapse because it uses an
internal element to determine the height of the input field, and this
element was hidden and removed from the DOM so the height returned
was invalid, causing the input height to collapse to 0. Setting the
getBody element of CKEditor to an element that is always visible
and not removed fixes this measurement problem.

* Fix bring back missing custom plugins

* JI-2406 Fix CKEditor collapsing if calculator element ever is hidden

Overrides the convertToPx function from
https://github.com/ckeditor/ckeditor4/blob/cae20318d46745cc46c811da4e7d68b38ca32449/core/tools.js#L899-L929
and instead adds the calculator element for every measurement
and removes it when it is done with the measurement.

* Update ko.js

* Fix bring back missing custom plugins

* HFP-2016/HFP-2282 Fix blinking CKEditor dialog

* HFP-2016/JI-2432 Fix resizing on exiting fullscreen

* JI-2176 Reduce size of buttons

* Add back code highlighter fix that got replaced

* JI-2506 Fix metadata form's dialogs from native JS to H5P.ConfirmationDialog

* Revert "JI-2506 Fix metadata form's dialogs from native JS to H5P.ConfirmationDialog"

This reverts commit 8b0d619.

* fix to finnish translation

* JI-2981 Fix JS files being loaded multiple times

This is an issue with complex editors/content types where code might be executing while it's being overwritten.
For example, this can happen when IV and CP are used together in Column and can cause strange bugs.

* Update to CKEditor 4.17.1

* Update ko.js

An updated translation into Korean.

* update Simplified Chinese translation and add missing translation.

* add zh.js Simplified Chinese translaton variant, WordPress platform requires this variant.

* add zh-hans.js Simplified Chinese translaton variant, Drupal platform requires this variant.

* Updated German locale

* JI-2981 Fix js loading tracker not being cleaned

* JI-1127 Stop using google font remotely
Fix #139

* JI-1127 Add LICENSE-2.0

* JI-1127 Add Readme license line

* updated all locales from English source

* HFP-3448 Add Vimeo source detection

* HFP-3448 Fix Vimeo URL regexp case sensitivity

The optional `channels` and `groups` parts are in fact characters so the
matching must be case sensitive.

* Fix single source for video providers

* JI-3494 Reuse the font from the core library (#150)

* JI-3485 Include patch version in library folder name (storage)

* Stop supporting PHP 5

* Added Upper Sorbian to language list

* JI-3620 Refactor use of glorified loop

The editor widgets relies on references to the parameter objects, 
changing the parameter object without updating the references means 
that the editor widgets will continue updating objects that won't be saved.

* Update sl.json

Fixed typos and added missing translation.

* Update nb.js (#166)

* Update nb.js

Updates of old and newly added strings.

* Update language/nb.js

fixed typo pointed out by @boyum

Co-authored-by: Sindre Bøyum <boyum@users.noreply.github.com>

* Update language/nb.js

fixed typo pointed out by @boyum

Co-authored-by: Sindre Bøyum <boyum@users.noreply.github.com>

---------

Co-authored-by: Sindre Bøyum <boyum@users.noreply.github.com>

* Fixed dynamic properties deprecation in PHP 8.2 (#169)

* Add files via upload (#165)

Adding translation for Galician (gl)

* Update Italian Translation (#176)

With this commit the Italian translation was completed, which was only partially done in the language/it.js file

* Update h5peditor.js to include Papiamento language (#178)

Include  'pap-cw (Papiamento (Curaçao and Bonaire)) and
'pap-aw' (Papiamento (Aruba)

* JI-5152 Install CKEditor 5

* JI-5152 Use CKEditor 5 for html fields

* JI-5152 Fix falling back to DOM to get data

* JI-5387 Handle enterMode

* JI-5366 CKEditor tables (#181)

* JI-5366 Adding table plugins with online builder

Also added FontFamily and GeneralHtmlSupport for future use

* JI-5366 Implement table plugins

* JI-5366 Implement table caption

* JI-5366 Fix table caption in default editor

* Update readme for compiling scss

* JI-5366 Fix styling outside ckeditor

* JI-5366 Make default table look like ckeditor4

* JI-5366 Add styling to table headers

* JI-5366 Add table overflow protection

Aligned tables would spill out of text field

* JI-5366 Save overflow protection for view

* JI-5366 CSS cleanup

* Update README.md

Co-authored-by: Sindre Bøyum <boyum@users.noreply.github.com>

* JI-5366 Use custom table plugin

* JI-5366 Avoid translation id conflict

* JI-5366 Update dependency

* JI-5366 Default tables to previous styling

---------

Co-authored-by: Erik <erik.langhaug@joubel.com>
Co-authored-by: Sindre Bøyum <boyum@users.noreply.github.com>

* JI-5387 CKEditor: Imitate entermode div in CKE 5 (#187)

Co-authored-by: Erik Langhaug <erik.langhaug@h5p.group>

* JI-5422 — CKE 5: Backwards compatibility font sizes (#186)

* JI-5422 CKE 5 backwards compatibility font sizes

add default font size as cke4

* JI-5422 Add 125% font size like cke4

* JI-5422 add custom font size support

---------

Co-authored-by: Vilde Stabell <vilde.voss.stabell@gmail.com>

* JI-3620 Refactor use of glorified loop

The editor widgets relies on references to the parameter objects, 
changing the parameter object without updating the references means 
that the editor widgets will continue updating objects that won't be saved.

* JI-3485 Include patch version in library folder name (storage)

* Fixed dynamic properties deprecation in PHP 8.2 (#169)

* JI-5784 Prevent cke5 from overflowing horizontally (#190)

* JI-5430 Implement font family choice for CKEditor (#188)

* JI-5387 CKEditor: change entermode if formats allowed (#189)

* JI-5424 fix formatted style

* JI-5366 CKEditor table fixes (#191)

* JI-5366 Default to left-aligned tables

* JI-5366 Default to left-aligned table headers

* Update dependencies and build CKEditor

---------

Co-authored-by: Erik Langhaug <erik.langhaug@h5p.group>

* JI-5682 cropper UI (#197)

* JI-5683 replace darkroom with cropper

* JI-5683 set new image for existing cropper instance

* JI-5682 add other handles and some UI

* JI-5682 hide handles on move/resize selector

* JI-5682 add selector masks

* JI-5682 move html inside cropper library

* JI-5682 add optional initial positioning and sizing options for selector

* JI-5682 update initialize function

* JI-5682 add buttons first draft

* JI-5682 finish cropper UI integration

* JI-5682 add comments

* JI-5682 remove unused lines

* JI-5682 update variable names

* JI-5682 replace onPointerUp functions with singularentity

* JI-5682 improve readability of updateMask

* JI-5682 reuse variables within crop function

* JI-5682 replace console.log with warning

* JI-5682 add empty lines

* JI-5682 update image loaded handling

* JI-5682 resize cropper on window resize

* JI-5682 add keyup event handlers and accessibility attributes

* JI-5682 improve cropper responsiveness

* JI-5682 update tooltip custom css class

* JI-5682 update custom cropper tooltip class

* JI-5812 Prevent CKEditor from deleting empty divs (#195)

* JI-5812 Prevent CKE from deleting empty divs

* Fix webpack config

* JI-5684 fix cropper rotation (#199)

* JI-5684 fix cropper rotation

* JI-5684 update crop limit logic

* JI-5684 fix scroll into view

* JI-5684 remove scroll into view

* JI-5366 CKEditor nested tables (#200)

* Fix webpack config

* JI-5366 Fix border style of nested tables

* Update CKE dependency and build

* Ji 5682 align cropper popup (#201)

* JI-5684 fix cropper rotation

* JI-5684 update crop limit logic

* JI-5684 fix scroll into view

* JI-5684 remove scroll into view

* JI-5682 align cropper popup

* JI-5682 update cropper align to work in cors iframe

* JI-5682 revert align cropper popup

* JI-5682 add new alignPopup function for crop tool

* JI-5682 update function description  with new param

---------

Co-authored-by: makmentins <maris.akmentins@h5p.group>

* JI-5681 fix crop selector sizing in edge (#202)

* JI-5681 fix crop selector sizing in edge

* JI-5681 fix floating point cropper selector dimensions

* JI-5681 put back padding value

* Ji 5682 additional UI changes (#203)

* JI-5681 fix crop selector sizing in edge

* JI-5681 fix floating point cropper selector dimensions

* JI-5681 put back padding value

* JI-5682 move container border and prevent user select around buttons for cropper

* JI-5839 CKEditor link improvements (#206)

* JI-5839 Add protocol, target and rel to links

Also some code cleanup

* JI-5839 Add underline to links, to mimic view

* Whitespace cleanup

* JI-5839 Style links more specifically

* JI-5842 Fix fontsize dropdown too large (#210)

* Compile scss

* Update CKEditor 5 table plugin

* Include the new CKEditor 5 build

* JI-5982 Upgrade CKE to version 41.1.0 (#213)

* JI-5982 Upgrade CKE to version 41.1.0

* Update ckeditor 5 to 41.1.0

* Include new CKEditor 5 build

---------

Co-authored-by: Erik Langhaug <erik.langhaug@h5p.group>

* JI-5884 update h5p-ckeditor-table version (#215)

* JI-5961 fix cke5 border bottom style (#214)

* JI-5884-update-h5p-ckeditor-table-version-again (#216)

* JI-5973 Change order and spacing of font size dropdown (#217)

* JI-6006 auto position cke toolbar dropdown panel (#218)

* JI-6023 ensure table overflow protection is added on cke destroy (#219)

* JI-5884 update cke5 deps (#220)

* JI-5787 Hide CKEditor link (#222)

* JI-6043 fix cropper popup height (#224)

* JI-6043 fix cropper popup height

* JI-6043 limit maxHeight

* JI-6042 Base CKE height on H5P iframe, not editor iframe (#225)

* JI-6042 Update CKE maxheight when CKE ui changes (#226)

* JI-6063 Downcast i to em in plugin instead (#227)

* JI-5452 remove compass and use webpack to build css (#228)

Co-authored-by: William Almnes <william.almnes@h5p.group>

* JI-5452 update prebuilt application.css file (#231)

* JI-6182 CKEditor disable sticky toolbar (#233)

* JI-6152 add drag and drop, and paste functionality to image widget (#230)

* JI-6152 add drag and drop, and paste functionality to image widget

* JI-6152 build css file

* JI-6152 fix bug with copyright html

* JI-6152 fix to make better accessible component

* JI-6152 build css production file

* JI-6152 adjust styling

* JI-6152 minor manual linting

* JI-6152 fix issues from review

* JI-6152 fix minor styling issues

* JI-6152 fix state

* JI-6152 add spanish translations

* JI-6152 add french translations

---------

Co-authored-by: William Almnes <william.almnes@h5p.group>
Co-authored-by: Gwenillia <55385809+Gwenillia@users.noreply.github.com>

* Build/ji 4001 build third party libs (#232)

* JI-5452 update prebuilt application.css file

* JI-4001 build zebra_datepicker from npm

* JI-4001 simplify build

* JI-4001 change mode

* JI-4001 load zebra_datepicker

* JI-4001 remove unused dependency

* JI-4001 simplify setting jQuery global var

* JI-4001 simplify loading of zebra_datepicker

* JI-4001 remove duplicate folder

* JI-4001 add h5p-image-cropper to build flow

---------

Co-authored-by: Vilde Stabell <vilde.voss.stabell@gmail.com>

* Fix/ji 6152 review adjustments (#235)

* JI-6152 fix bug with replicating button and fix minor styling issues

* JI-6152 more styling adjustments

* JI-6152 fix styling issues and focus

* JI-6152 adjustments to badge

* JI-6152 remove inline styling

---------

Co-authored-by: Gwenillia <55385809+Gwenillia@users.noreply.github.com>

* Feature/ji 6153 drag and drop video audio (#234)

* JI-6152 add drag and drop, and paste functionality to image widget

* JI-6152 build css file

* JI-6152 fix bug with copyright html

* JI-6152 fix to make better accessible component

* JI-6152 build css production file

* JI-6152 adjust styling

* JI-6152 minor manual linting

* JI-6152 fix issues from review

* JI-6152 fix minor styling issues

* JI-6153 create basic mvp of dnd for video/audio

* JI-6153 fix race condition when uploading and fix styling for box with quality input

* JI-6153 add support for pasting video files

* JI-6153 switch static text to use translations

* JI-6153 fix handling of error messages and improve accessibility

* JI-6153 use svg from css instead of code

* JI-6153 fix minor styling issues and minor bug

* JI-6153 fix reference to progress

* JI-6153 fix bug with replacing youtube url

* JI-6153 remove console.log

* JI-6153 fix issue after merge conflict

* JI-6153 fix styling issues

* JI-6153 handle input bug and fix aria label

* JI-6153 fix typo

* JI-6153 fix imports of svg

* JI-6153 fix styling issues and logic around replacing video

* JI-6253 update badge and adjust box scaling

* JI-6153 fix styling when uploading video

* JI-6153 create loading indicator when replacing url

* JI-6153 use single quotes instead of double

* JI-6153 more single quotes

* JI-6153 use correct icon for insert url

---------

Co-authored-by: William Almnes <william.almnes@h5p.group>

* JI-6153 add french translations

* JI-6152 fix various styling issues and positioning of copyright button (#237)

* JI-6152 fix various styling issues and positioning of copyright button

* JI-6152 adjust break point and hover styling

* Fix/ji 6153 review adjustments (#238)

* JI-6153 adjustments to styling and fixing bugs

* JI-6153 fix translations

* JI-6153 add spanish

* JI-6310 clean up unused tabs code

* HFP-3875 Turn group collapse button prototype into production version (#229)

* HFP-3864 Add prototype for list expand/collapse button

* HFP-3864 Check for collapse button before adding one

* HFP-3864 Show/hide collapse button based on list length

* HFP-3864 Listen to manual group collapsing

* HFP-3864 Ensure group collapsing functions are set

* HFP-3864 Move group collapsing functions up in code

* HFP-3875 Add translatable button texts

* HFP-3875-add-button-styling

* HFP-3875 Only show collapse button for ListEditor

* HFP-3875 Fix start text of button

* HFP-3875 Move CSS to stylesheet

* HFP-3875 Account for button height

* HFP-3875 Keep label with widget toggle buttons

* HFP-3875 Cover group initially collapsed

* HFP-3875 Clean up code

* HFP-3875 Adjust to font file v30

* HFP-3875 Fix merge conflict

* JI-6332 ensure image widget uses full width even if there are some float on previous elements (#242)

* Add Echo360 EchoVideos as a provider (#182)

* JI-6335 fix append metadata button (#243)

* Implement inline CKE plugin using classic function instead of arrow function

---------

Co-authored-by: Thomas Marstrander <marstranderthomas@gmail.com>
Co-authored-by: Paal Joergensen <pal.jorgensen@gmail.com>
Co-authored-by: Frode Petterson <frode.andre.petterson@gmail.com>
Co-authored-by: Iñigo Zendegi <izendegi@mondragon.edu>
Co-authored-by: maxtetdev <maxtet.dev@gmail.com>
Co-authored-by: Dinis Medeiros <formadordinis@gmail.com>
Co-authored-by: Merve Kartal <mervekartal@Tolgas-Mac-mini.local>
Co-authored-by: JPSchellenberg <jps@Lumi.education>
Co-authored-by: Rıdvan Altun <ridvanaltun@outlook.com>
Co-authored-by: Bohumil Havel <bohumil.havel@pdcon.cz>
Co-authored-by: Sebastian Rettig <sr258@users.noreply.github.com>
Co-authored-by: Xtractor Interactive AB <39831093+xtractorab@users.noreply.github.com>
Co-authored-by: Puhek <52817795+miropuhek@users.noreply.github.com>
Co-authored-by: viragom <67712564+viragom@users.noreply.github.com>
Co-authored-by: 徐征 <xuz@szlhxx.com>
Co-authored-by: Jeonghun Oh <totoromaum1@gmail.com>
Co-authored-by: Hannaes <hanna.solstad@joubel.com>
Co-authored-by: Sara Arjona <sara@moodle.com>
Co-authored-by: Frode Petterson <frode.petterson@joubel.com>
Co-authored-by: Erik Langhaug <erik.langhaug@joubel.com>
Co-authored-by: Ravi Majithia <ravikiran.majithia@joubel.com>
Co-authored-by: Jari <53904029+Urpokarhu1@users.noreply.github.com>
Co-authored-by: Sam Xu <sam.z.xu@gmail.com>
Co-authored-by: Sebastian Rettig <serettig@posteo.de>
Co-authored-by: Oliver Tacke <o.tacke@posteo.de>
Co-authored-by: j0kerZ <joker.wartune1527@gmail.com>
Co-authored-by: Ravi Majithia <77275193+ravimajithia@users.noreply.github.com>
Co-authored-by: Tor-Martin Karlsen <38659798+tmkarlsen@users.noreply.github.com>
Co-authored-by: Sindre Bøyum <boyum@users.noreply.github.com>
Co-authored-by: Meirza <115134930+meirzamoodle@users.noreply.github.com>
Co-authored-by: Antonio Aneiros <77668828+antonioaneiros@users.noreply.github.com>
Co-authored-by: Carlo Tacchella <tacchella.carlo@gmail.com>
Co-authored-by: Ace Suares <ace@suares.com>
Co-authored-by: Erik Langhaug <erik.langhaug@h5p.group>
Co-authored-by: Gwenillia <55385809+Gwenillia@users.noreply.github.com>
Co-authored-by: devland <adevland@gmail.com>
Co-authored-by: devland <5208532+devland@users.noreply.github.com>
Co-authored-by: makmentins <maris.akmentins@h5p.group>
Co-authored-by: makmentins <127746763+makmentins@users.noreply.github.com>
Co-authored-by: William Almnes <william.almnes@gmail.com>
Co-authored-by: William Almnes <william.almnes@h5p.group>
Co-authored-by: Gwen Tripet-Costet <gwenden31@gmail.com>
Co-authored-by: Damyon Wiese <111934118+echo360-damyon@users.noreply.github.com>
devland added a commit that referenced this pull request May 21, 2024
* Add cancel submit callback for h5p editor form

Allows the plugin to cancel validation and submission of the form
through a callback. Fixes h5p/moodle-mod_hvp#306
which expects the form to be submitted when it is canceled.

* Remove console.log

* JI-1235 Prevent pasting of restricted libraries

* Save content language even if it is not changed

* Fix whitelist check to be case insensitive

* Add support for more content type languages

* Add one more check

* Update eu.js

* Update ru.js

* Update pt.js

European PT translation

* Update tr.js

* fix: prevent resize if iframe is not ready

* JI-1497 Change audio URL icon

* JI-1405 Add support for additional icons after text

* JI-1526 Encode html before returning it as html

The callback should typically return html elements styles for highlighting the code. Since we don't do any styling for the highlighting we just have to encode the html.

* Update tr.js

* Create cs.js

Translating to cs

* Update cs.js

Translated to cs

* Updated German translation

* Create sv.json

* Rename sv.json to sv.js

* Fix invalid div element syntax

* Fix compatibility with newer jQuery versions

* Add missing language strings

* Fix variable usage consistency

* Remove unnecessary conversion

* Create sl.json

Added slovenian translation

* Rename sl.json to sl.js

* Update nl.js

* add chinese translation based on en.js

* Fix compatibility with newer jQuery versions

(cherry picked from commit 757f705)

* HFP-3008 Add content language to iframe

* Add content hub and a11y changes from Drupal git

See Drupal 7 git for git history for these commits.

* Fix missing merge from Drupal git

* Upgrade CKEditor to 4.14.1

* HFP-3008 Add language to iframe document instead of iframe

* HFP-3121 Update hub client

Add translations for reusing content

* HFP-3109 Update hub client

* Update hub client

* Create ko.json

This is a Korean translation

* JI-1927 Add new video widget translations

* JI-1927 Add Panopto mime type support in video widget

* Rename ko.json to ko.js

* JI-2026 Change confirmation message when reusing content

* Update nl.js

* Update Hub + translations

* Update nl.js

* Remove unused function

* Remove global user

* Revert "Remove global user"

This reverts commit fd3873f.

* Fix using language parameter instead of global user object

* Update Hub Client

* Update CKEditor 4.15.1

* JI-2080 Add H5PIntegration Hub object to init

* JI-2080 Update Hub Client

* Update hub client

* Update hub client

* Update hub client

* Update hub client css

* Update hub client

* JI-2271 Add flag determining whether content hub should be enabled

* JI-2271 Update hub client with pagination fix

* JI-2271 Update hub client

* HFP-3232 Change search placeholder text for content hub filters

* Fix PHP8.0 warning

Credits goes to Marina Glancy.

* Update hub client

* Revert "Update CKEditor 4.15.1"

This reverts commit 7f4fded.

* Revert "Upgrade CKEditor to 4.14.1"

This reverts commit b9582fd.

* JI-2316 Fix size bug for editor fields

* JI-2356 Update hub client

* Update hub client

* Update hub client

* Update hub client

* Fix edge case crashes after resetting the editor

* JI-2176 Implement new design for Tutorial and Example links

* JI-2176 Remove extra semicolons

* JI-2406 Update to version 4.16.1 of CKEditor

* JI-2406 Fix CKEditor field collapsing

The CKEditor input field would sometimes collapse because it uses an
internal element to determine the height of the input field, and this
element was hidden and removed from the DOM so the height returned
was invalid, causing the input height to collapse to 0. Setting the
getBody element of CKEditor to an element that is always visible
and not removed fixes this measurement problem.

* Fix bring back missing custom plugins

* JI-2406 Fix CKEditor collapsing if calculator element ever is hidden

Overrides the convertToPx function from
https://github.com/ckeditor/ckeditor4/blob/cae20318d46745cc46c811da4e7d68b38ca32449/core/tools.js#L899-L929
and instead adds the calculator element for every measurement
and removes it when it is done with the measurement.

* Update ko.js

* Fix bring back missing custom plugins

* HFP-2016/HFP-2282 Fix blinking CKEditor dialog

* HFP-2016/JI-2432 Fix resizing on exiting fullscreen

* JI-2176 Reduce size of buttons

* Add back code highlighter fix that got replaced

* JI-2506 Fix metadata form's dialogs from native JS to H5P.ConfirmationDialog

* Revert "JI-2506 Fix metadata form's dialogs from native JS to H5P.ConfirmationDialog"

This reverts commit 8b0d619.

* fix to finnish translation

* JI-2981 Fix JS files being loaded multiple times

This is an issue with complex editors/content types where code might be executing while it's being overwritten.
For example, this can happen when IV and CP are used together in Column and can cause strange bugs.

* Update to CKEditor 4.17.1

* Update ko.js

An updated translation into Korean.

* update Simplified Chinese translation and add missing translation.

* add zh.js Simplified Chinese translaton variant, WordPress platform requires this variant.

* add zh-hans.js Simplified Chinese translaton variant, Drupal platform requires this variant.

* Updated German locale

* JI-2981 Fix js loading tracker not being cleaned

* JI-1127 Stop using google font remotely
Fix #139

* JI-1127 Add LICENSE-2.0

* JI-1127 Add Readme license line

* updated all locales from English source

* HFP-3448 Add Vimeo source detection

* HFP-3448 Fix Vimeo URL regexp case sensitivity

The optional `channels` and `groups` parts are in fact characters so the
matching must be case sensitive.

* Fix single source for video providers

* JI-3494 Reuse the font from the core library (#150)

* JI-3485 Include patch version in library folder name (storage)

* Stop supporting PHP 5

* Added Upper Sorbian to language list

* JI-3620 Refactor use of glorified loop

The editor widgets relies on references to the parameter objects, 
changing the parameter object without updating the references means 
that the editor widgets will continue updating objects that won't be saved.

* Update sl.json

Fixed typos and added missing translation.

* Update nb.js (#166)

* Update nb.js

Updates of old and newly added strings.

* Update language/nb.js

fixed typo pointed out by @boyum

Co-authored-by: Sindre Bøyum <boyum@users.noreply.github.com>

* Update language/nb.js

fixed typo pointed out by @boyum

Co-authored-by: Sindre Bøyum <boyum@users.noreply.github.com>

---------

Co-authored-by: Sindre Bøyum <boyum@users.noreply.github.com>

* Fixed dynamic properties deprecation in PHP 8.2 (#169)

* Add files via upload (#165)

Adding translation for Galician (gl)

* Update Italian Translation (#176)

With this commit the Italian translation was completed, which was only partially done in the language/it.js file

* Update h5peditor.js to include Papiamento language (#178)

Include  'pap-cw (Papiamento (Curaçao and Bonaire)) and
'pap-aw' (Papiamento (Aruba)

* JI-5682 cropper UI (#197)

* JI-5683 replace darkroom with cropper

* JI-5683 set new image for existing cropper instance

* JI-5682 add other handles and some UI

* JI-5682 hide handles on move/resize selector

* JI-5682 add selector masks

* JI-5682 move html inside cropper library

* JI-5682 add optional initial positioning and sizing options for selector

* JI-5682 update initialize function

* JI-5682 add buttons first draft

* JI-5682 finish cropper UI integration

* JI-5682 add comments

* JI-5682 remove unused lines

* JI-5682 update variable names

* JI-5682 replace onPointerUp functions with singularentity

* JI-5682 improve readability of updateMask

* JI-5682 reuse variables within crop function

* JI-5682 replace console.log with warning

* JI-5682 add empty lines

* JI-5682 update image loaded handling

* JI-5682 resize cropper on window resize

* JI-5682 add keyup event handlers and accessibility attributes

* JI-5682 improve cropper responsiveness

* JI-5682 update tooltip custom css class

* JI-5682 update custom cropper tooltip class

* JI-5684 fix cropper rotation (#199)

* JI-5684 fix cropper rotation

* JI-5684 update crop limit logic

* JI-5684 fix scroll into view

* JI-5684 remove scroll into view

* Ji 5682 align cropper popup (#201)

* JI-5684 fix cropper rotation

* JI-5684 update crop limit logic

* JI-5684 fix scroll into view

* JI-5684 remove scroll into view

* JI-5682 align cropper popup

* JI-5682 update cropper align to work in cors iframe

* JI-5682 revert align cropper popup

* JI-5682 add new alignPopup function for crop tool

* JI-5682 update function description  with new param

---------

Co-authored-by: makmentins <maris.akmentins@h5p.group>

* JI-5681 fix crop selector sizing in edge (#202)

* JI-5681 fix crop selector sizing in edge

* JI-5681 fix floating point cropper selector dimensions

* JI-5681 put back padding value

* Ji 5682 additional UI changes (#203)

* JI-5681 fix crop selector sizing in edge

* JI-5681 fix floating point cropper selector dimensions

* JI-5681 put back padding value

* JI-5682 move container border and prevent user select around buttons for cropper

* JI-6043 fix cropper popup height (#224)

* JI-6043 fix cropper popup height

* JI-6043 limit maxHeight

* JI-5452 remove compass and use webpack to build css (#228)

Co-authored-by: William Almnes <william.almnes@h5p.group>

* JI-5452 update prebuilt application.css file (#231)

* JI-6152 add drag and drop, and paste functionality to image widget (#230)

* JI-6152 add drag and drop, and paste functionality to image widget

* JI-6152 build css file

* JI-6152 fix bug with copyright html

* JI-6152 fix to make better accessible component

* JI-6152 build css production file

* JI-6152 adjust styling

* JI-6152 minor manual linting

* JI-6152 fix issues from review

* JI-6152 fix minor styling issues

* JI-6152 fix state

* JI-6152 add spanish translations

* JI-6152 add french translations

---------

Co-authored-by: William Almnes <william.almnes@h5p.group>
Co-authored-by: Gwenillia <55385809+Gwenillia@users.noreply.github.com>

* Build/ji 4001 build third party libs (#232)

* JI-5452 update prebuilt application.css file

* JI-4001 build zebra_datepicker from npm

* JI-4001 simplify build

* JI-4001 change mode

* JI-4001 load zebra_datepicker

* JI-4001 remove unused dependency

* JI-4001 simplify setting jQuery global var

* JI-4001 simplify loading of zebra_datepicker

* JI-4001 remove duplicate folder

* JI-4001 add h5p-image-cropper to build flow

---------

Co-authored-by: Vilde Stabell <vilde.voss.stabell@gmail.com>

* Fix/ji 6152 review adjustments (#235)

* JI-6152 fix bug with replicating button and fix minor styling issues

* JI-6152 more styling adjustments

* JI-6152 fix styling issues and focus

* JI-6152 adjustments to badge

* JI-6152 remove inline styling

---------

Co-authored-by: Gwenillia <55385809+Gwenillia@users.noreply.github.com>

* Feature/ji 6153 drag and drop video audio (#234)

* JI-6152 add drag and drop, and paste functionality to image widget

* JI-6152 build css file

* JI-6152 fix bug with copyright html

* JI-6152 fix to make better accessible component

* JI-6152 build css production file

* JI-6152 adjust styling

* JI-6152 minor manual linting

* JI-6152 fix issues from review

* JI-6152 fix minor styling issues

* JI-6153 create basic mvp of dnd for video/audio

* JI-6153 fix race condition when uploading and fix styling for box with quality input

* JI-6153 add support for pasting video files

* JI-6153 switch static text to use translations

* JI-6153 fix handling of error messages and improve accessibility

* JI-6153 use svg from css instead of code

* JI-6153 fix minor styling issues and minor bug

* JI-6153 fix reference to progress

* JI-6153 fix bug with replacing youtube url

* JI-6153 remove console.log

* JI-6153 fix issue after merge conflict

* JI-6153 fix styling issues

* JI-6153 handle input bug and fix aria label

* JI-6153 fix typo

* JI-6153 fix imports of svg

* JI-6153 fix styling issues and logic around replacing video

* JI-6253 update badge and adjust box scaling

* JI-6153 fix styling when uploading video

* JI-6153 create loading indicator when replacing url

* JI-6153 use single quotes instead of double

* JI-6153 more single quotes

* JI-6153 use correct icon for insert url

---------

Co-authored-by: William Almnes <william.almnes@h5p.group>

* JI-6153 add french translations

* JI-6152 fix various styling issues and positioning of copyright button (#237)

* JI-6152 fix various styling issues and positioning of copyright button

* JI-6152 adjust break point and hover styling

* Fix/ji 6153 review adjustments (#238)

* JI-6153 adjustments to styling and fixing bugs

* JI-6153 fix translations

* JI-6153 add spanish

* JI-6310 clean up unused tabs code

* HFP-3875 Turn group collapse button prototype into production version (#229)

* HFP-3864 Add prototype for list expand/collapse button

* HFP-3864 Check for collapse button before adding one

* HFP-3864 Show/hide collapse button based on list length

* HFP-3864 Listen to manual group collapsing

* HFP-3864 Ensure group collapsing functions are set

* HFP-3864 Move group collapsing functions up in code

* HFP-3875 Add translatable button texts

* HFP-3875-add-button-styling

* HFP-3875 Only show collapse button for ListEditor

* HFP-3875 Fix start text of button

* HFP-3875 Move CSS to stylesheet

* HFP-3875 Account for button height

* HFP-3875 Keep label with widget toggle buttons

* HFP-3875 Cover group initially collapsed

* HFP-3875 Clean up code

* HFP-3875 Adjust to font file v30

* HFP-3875 Fix merge conflict

* JI-6332 ensure image widget uses full width even if there are some float on previous elements (#242)

* Add Echo360 EchoVideos as a provider (#182)

* JI-6335 fix append metadata button (#243)

---------

Co-authored-by: Thomas Marstrander <marstranderthomas@gmail.com>
Co-authored-by: Paal Joergensen <pal.jorgensen@gmail.com>
Co-authored-by: Frode Petterson <frode.andre.petterson@gmail.com>
Co-authored-by: Iñigo Zendegi <izendegi@mondragon.edu>
Co-authored-by: maxtetdev <maxtet.dev@gmail.com>
Co-authored-by: Dinis Medeiros <formadordinis@gmail.com>
Co-authored-by: Merve Kartal <mervekartal@Tolgas-Mac-mini.local>
Co-authored-by: JPSchellenberg <jps@Lumi.education>
Co-authored-by: Rıdvan Altun <ridvanaltun@outlook.com>
Co-authored-by: Bohumil Havel <bohumil.havel@pdcon.cz>
Co-authored-by: Sebastian Rettig <sr258@users.noreply.github.com>
Co-authored-by: Xtractor Interactive AB <39831093+xtractorab@users.noreply.github.com>
Co-authored-by: Puhek <52817795+miropuhek@users.noreply.github.com>
Co-authored-by: viragom <67712564+viragom@users.noreply.github.com>
Co-authored-by: 徐征 <xuz@szlhxx.com>
Co-authored-by: Jeonghun Oh <totoromaum1@gmail.com>
Co-authored-by: Hannaes <hanna.solstad@joubel.com>
Co-authored-by: Sara Arjona <sara@moodle.com>
Co-authored-by: Frode Petterson <frode.petterson@joubel.com>
Co-authored-by: Erik Langhaug <erik.langhaug@joubel.com>
Co-authored-by: Ravi Majithia <ravikiran.majithia@joubel.com>
Co-authored-by: Jari <53904029+Urpokarhu1@users.noreply.github.com>
Co-authored-by: Sam Xu <sam.z.xu@gmail.com>
Co-authored-by: Sebastian Rettig <serettig@posteo.de>
Co-authored-by: Oliver Tacke <o.tacke@posteo.de>
Co-authored-by: j0kerZ <joker.wartune1527@gmail.com>
Co-authored-by: Ravi Majithia <77275193+ravimajithia@users.noreply.github.com>
Co-authored-by: Tor-Martin Karlsen <38659798+tmkarlsen@users.noreply.github.com>
Co-authored-by: Sindre Bøyum <boyum@users.noreply.github.com>
Co-authored-by: Meirza <115134930+meirzamoodle@users.noreply.github.com>
Co-authored-by: Antonio Aneiros <77668828+antonioaneiros@users.noreply.github.com>
Co-authored-by: Carlo Tacchella <tacchella.carlo@gmail.com>
Co-authored-by: Ace Suares <ace@suares.com>
Co-authored-by: devland <5208532+devland@users.noreply.github.com>
Co-authored-by: makmentins <maris.akmentins@h5p.group>
Co-authored-by: William Almnes <william.almnes@gmail.com>
Co-authored-by: William Almnes <william.almnes@h5p.group>
Co-authored-by: Gwenillia <55385809+Gwenillia@users.noreply.github.com>
Co-authored-by: Gwen Tripet-Costet <gwenden31@gmail.com>
Co-authored-by: devland <adevland@gmail.com>
Co-authored-by: Damyon Wiese <111934118+echo360-damyon@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants