]> git.immae.eu Git - github/shaarli/Shaarli.git/commit
Add a setting to retrieve bookmark metadata asynchrounously
authorArthurHoaro <arthur@hoa.ro>
Fri, 25 Sep 2020 11:29:36 +0000 (13:29 +0200)
committerArthurHoaro <arthur@hoa.ro>
Thu, 15 Oct 2020 07:08:46 +0000 (09:08 +0200)
commit4cf3564d28dc8e4d08a3e64f09ad045ffbde97ae
tree8f8ef095cdfea3b35953417fd3d8bb6cdbc7cb46
parentf34554c6c2cd8fe99fe2e8907bfc196a4884416a
Add a setting to retrieve bookmark metadata asynchrounously

  - There is a new standalone script (metadata.js) which requests
    a new controller to get bookmark metadata and fill the form async
  - This feature is enabled with the new setting: general.enable_async_metadata
    (enabled by default)
  - general.retrieve_description is now enabled by default
  - A small rotating loader animation has a been added to bookmark inputs
    when metadata is being retrieved (default template)
  - Custom JS htmlentities has been removed and  mathiasbynens/he
    library is used instead

Fixes #1563
19 files changed:
Makefile
application/config/ConfigManager.php
application/container/ContainerBuilder.php
application/container/ShaarliContainer.php
application/front/controller/admin/ManageShaareController.php
application/front/controller/admin/MetadataController.php [new file with mode: 0644]
application/http/MetadataRetriever.php [new file with mode: 0644]
assets/common/js/metadata.js [new file with mode: 0644]
assets/default/js/base.js
assets/default/scss/shaarli.scss
doc/md/Shaarli-configuration.md
index.php
package.json
tests/container/ContainerBuilderTest.php
tests/front/controller/admin/ManageShaareControllerTest/DisplayCreateFormTest.php
tests/http/MetadataRetrieverTest.php [new file with mode: 0644]
tpl/default/editlink.html
webpack.config.js
yarn.lock