aboutsummaryrefslogtreecommitdiffhomepage
path: root/assets/common/js
Commit message (Collapse)AuthorAgeFilesLines
* Bulk creation: displays a progress bar when saving all displayed formsArthurHoaro2020-10-271-4/+18
|
* Feature: bulk creation of bookmarksArthurHoaro2020-10-272-23/+134
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Asynchronous retrieval of bookmark's thumbnailsArthurHoaro2020-10-201-21/+85
| | | | | | | | | This feature is based general.enable_async_metadata setting and works with existing metadata.js file. The script is compatible with any template: - the thumbnail div bloc must have attribute - the bookmark bloc must have attribute with the bookmark ID as value Fixes #1564
* Add a setting to retrieve bookmark metadata asynchrounouslyArthurHoaro2020-10-151-0/+39
| | | | | | | | | | | | | | - 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
* Process thumbnail synchronize page through Slim controllersArthurHoaro2020-07-231-3/+3
|
* Process token retrieve through Slim controllerArthurHoaro2020-07-231-1/+1
|
* Explicitly define base and asset path in templatesArthurHoaro2020-07-231-3/+5
| | | | | | | With the new routes, all pages are not all at the same folder level anymore (e.g. /shaare and /shaare/123), so we can't just use './' everywhere. The most consistent way to handle this is to prefix all path with the proper variable, and handle the actual path in controllers.
* Fix all relative link to work with new URLArthurHoaro2020-07-231-1/+1
|
* Add a page to update all thumbnails through AJAX requests in both templatesArthurHoaro2018-07-051-0/+51
|
* Update thumbnail integration after rebasing the branchArthurHoaro2018-07-052-10/+7
|
* Webpack / Rewrite all JS to ES6 SyntaxArthurHoaro2018-03-281-0/+10