]> git.immae.eu Git - github/shaarli/Shaarli.git/commit
Feature: bulk creation of bookmarks
authorArthurHoaro <arthur@hoa.ro>
Sat, 10 Oct 2020 15:40:26 +0000 (17:40 +0200)
committerArthurHoaro <arthur@hoa.ro>
Tue, 27 Oct 2020 19:11:30 +0000 (20:11 +0100)
commit5d8de7587d67b5c3e5d1fed8562d9b87ecde80c1
tree2236e571035332a63f87a09222f2278b93f63515
parentb8e5a253ab5521ce2be6c0d3e04e0101527df3c1
Feature: bulk creation of bookmarks

This changes creates a new form in addlink page allowing to create
multiple bookmarks at once more easily. It focuses on re-using as much
existing code and template component as  possible.

These changes includes:
  - a new form in addlink (hidden behind a button by default),
containing a text area for URL, and tags/private status to apply to
created links
  - this form displays a new template called editlink.batch, itself
including editlink template multiple times
  - User interation in this new templates are handle by a new JS script
(shaare-batch.js) making AJAX requests, and therefore does not need page
reloading
  - ManageShaareController has been split into 3 distinct controllers:
    + ShaareAdd: displays addlink template
    + ShaareManage: various operation applied on existing shaares
(change visibility, pin, deletion, etc.)
    + ShaarePublish: handles creation/edit forms and saving Shaare's
form
  - Updated translations

Fixes #137
25 files changed:
application/front/controller/admin/ManageShaareController.php [deleted file]
application/front/controller/admin/ShaareAddController.php [new file with mode: 0644]
application/front/controller/admin/ShaareManageController.php [new file with mode: 0644]
application/front/controller/admin/ShaarePublishController.php [new file with mode: 0644]
application/render/TemplatePage.php
assets/common/js/metadata.js
assets/common/js/shaare-batch.js [new file with mode: 0644]
assets/default/js/base.js
assets/default/scss/shaarli.scss
inc/languages/fr/LC_MESSAGES/shaarli.po
index.php
tests/front/controller/admin/ManageShaareControllerTest/AddShaareTest.php [deleted file]
tests/front/controller/admin/ShaareAddControllerTest.php [new file with mode: 0644]
tests/front/controller/admin/ShaareManageControllerTest/ChangeVisibilityBookmarkTest.php [moved from tests/front/controller/admin/ManageShaareControllerTest/ChangeVisibilityBookmarkTest.php with 98% similarity]
tests/front/controller/admin/ShaareManageControllerTest/DeleteBookmarkTest.php [moved from tests/front/controller/admin/ManageShaareControllerTest/DeleteBookmarkTest.php with 98% similarity]
tests/front/controller/admin/ShaareManageControllerTest/PinBookmarkTest.php [moved from tests/front/controller/admin/ManageShaareControllerTest/PinBookmarkTest.php with 95% similarity]
tests/front/controller/admin/ShaareManageControllerTest/SharePrivateTest.php [moved from tests/front/controller/admin/ManageShaareControllerTest/SharePrivateTest.php with 94% similarity]
tests/front/controller/admin/ShaarePublishControllerTest/DisplayCreateBatchFormTest.php [new file with mode: 0644]
tests/front/controller/admin/ShaarePublishControllerTest/DisplayCreateFormTest.php [moved from tests/front/controller/admin/ManageShaareControllerTest/DisplayCreateFormTest.php with 98% similarity]
tests/front/controller/admin/ShaarePublishControllerTest/DisplayEditFormTest.php [moved from tests/front/controller/admin/ManageShaareControllerTest/DisplayEditFormTest.php with 95% similarity]
tests/front/controller/admin/ShaarePublishControllerTest/SaveBookmarkTest.php [moved from tests/front/controller/admin/ManageShaareControllerTest/SaveBookmarkTest.php with 98% similarity]
tpl/default/addlink.html
tpl/default/editlink.batch.html [new file with mode: 0644]
tpl/default/editlink.html
webpack.config.js