aboutsummaryrefslogtreecommitdiffhomepage
path: root/assets
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1621 from ArthurHoaro/feature/tag-separatorsArthurHoaro2020-11-083-30/+54
|\
| * ESLintArthurHoaro2020-11-052-5/+8
| |
| * Tags separator: vintage theme compatibilityArthurHoaro2020-11-052-20/+27
| |
| * Feature: support any tag separatorArthurHoaro2020-11-052-12/+26
| | | | | | | | | | | | | | | | So it allows to have multiple words tags. Breaking change: commas ',' are no longer a default separator. Fixes #594
* | Display error details even with dev.debug set to falseArthurHoaro2020-11-051-1/+5
|/ | | | | | | It makes more sense to display the error even if it's unexpected. Only for logged in users. Fixes #1606
* Fix confirm popup before bookmark deletionArthurHoaro2020-11-051-1/+2
| | | | | | Regression introduced by #1596 Fixes #1623
* Bulk creation: displays a progress bar when saving all displayed formsArthurHoaro2020-10-272-4/+41
|
* Bulk creation: fix private status based on the first formArthurHoaro2020-10-271-0/+8
|
* Feature: bulk creation of bookmarksArthurHoaro2020-10-274-23/+204
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Feature: add a Server administration pageArthurHoaro2020-10-211-1/+55
| | | | | | | | | | | | It contains mostly read only information about the current Shaarli instance, PHP version, extensions, file and folder permissions, etc. Also action buttons to clear the cache or sync thumbnails. Part of the content of this page is also displayed on the install page, to check server requirement before installing Shaarli config file. Fixes #40 Fixes #185
* 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
* Merge pull request #1567 from ArthurHoaro/feature/async-title-retrievalArthurHoaro2020-10-203-10/+92
|\
| * Add a setting to retrieve bookmark metadata asynchrounouslyArthurHoaro2020-10-153-10/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | Feature: highlight fulltext search resultsArthurHoaro2020-10-161-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | How it works: 1. when a fulltext search is made, Shaarli looks for the first occurence position of every term matching the search. No change here, but we store these positions in an array, in Bookmark's additionalContent. 2. when formatting bookmarks (through BookmarkFormatter implementation): 1. first we insert specific tokens at every search result positions 2. we format the content (escape HTML, apply markdown, etc.) 3. as a last step, we replace our token with displayable span elements Cons: this tightens coupling between search filters and formatters Pros: it was absolutely necessary not to perform the search twice. this solution has close to no impact on performances. Fixes #205
* | Improve Manage tags pageArthurHoaro2020-10-161-1/+1
|/ | | | Fixes #1125
* Security: fix multiple XSS vulnerabilities + fix search tags with special charsArthurHoaro2020-10-061-2/+8
| | | | | | XSS vulnerabilities fixed in editlink, linklist, tag.cloud and tag.list. Also fixed tag search with special characters: urlencode function needs to be applied on raw data, before espaping, otherwise the rendered URL is wrong.
* Issue #1437 - Make tag cloud/list views buttons more obvioussprak30002020-10-021-3/+3
| | | | This work alters the markup and CSS for the tag sort UI to match the button feel filters and links per page uses.
* Fix ESLint after dependency upgradeArthurHoaro2020-09-221-9/+10
|
* Upgrade front end dependenciesArthurHoaro2020-09-222-20/+20
| | | | | | | | | | | | | Mostly in order to get rid of deprecated deps, and upgrade vulnerable ones. - Upgrade webpack from 3.x to 4.x - Moved babel package to main repo - Replaced deprecated extract-text-webpack-plugin with extract-text-webpack-plugin - Replaced deprecated babel-minify-webpack-plugin with terser-webpack-plugin - Replaced deprecated node-sass with (dart) sass package - Replaced deprecated sass-lint with stylelint (the rules might be a bit different Related to #1531: trivy doesn't raise any more issue
* Merge pull request #1526 from kcaran/links_per_pageArthurHoaro2020-09-031-0/+5
|\
| * Moved definition of a.selected to pass sasslint testKeith Carangelo2020-08-301-4/+4
| |
| * Added $links_per_page variable to template and display on defaultKeith Carangelo2020-08-291-0/+5
| |
* | Export: refresh CRSF token after submitArthurHoaro2020-09-011-3/+16
|/ | | | | | This allow users to submit the form multiple times, because there is no actual browser redirection to the page. Fixes #1532
* Better support for notes permalinkArthurHoaro2020-07-281-2/+6
|
* Process thumbnail synchronize page through Slim controllersArthurHoaro2020-07-231-3/+3
|
* Process token retrieve through Slim controllerArthurHoaro2020-07-232-2/+2
|
* Process change visibility action through Slim controllerArthurHoaro2020-07-231-1/+1
|
* Use multi-level routes for existing controllers instead of 1 level everywhereArthurHoaro2020-07-231-4/+4
| | | | Also prefix most admin routes with /admin/
* Explicitly define base and asset path in templatesArthurHoaro2020-07-232-13/+22
| | | | | | | 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.
* Process manage tags page through Slim controllerArthurHoaro2020-07-232-3/+7
|
* Fix all relative link to work with new URLArthurHoaro2020-07-232-6/+6
|
* Fix SASS LintArthurHoaro2020-01-261-4/+4
|
* Render login page through Slim controllerArthurHoaro2020-01-261-1/+12
|
* Apply the new system (Bookmark + Service) to the whole code baseArthurHoaro2020-01-181-0/+173
| | | | See https://github.com/shaarli/Shaarli/issues/1307
* Fix image lazy loading issuesArthurHoaro2019-08-151-0/+2
| | | | | For some reason, bLazy won't load the image if the img block has either 0 height or width.
* Responsive issue with delete button fixRajat Hans2019-07-241-1/+0
|
* WIP - Plugin to override default template colorsArthurHoaro2019-07-081-26/+32
| | | | | | | | | | * Adds a new core plugin to override default template colors * Adds a new hook when plugin settings are saved (`save_plugin_parameters`) * Use CSS native variables for main colors instead of SASS variables * Disable SASS sort order rules due to a bug in the plugin Fixes #1312
* Merge pull request #1301 from ArthurHoaro/template/print-cssArthurHoaro2019-05-251-0/+14
|\ | | | | Add print CSS rules to the default template
| * Add print CSS rules to the default templateArthurHoaro2019-05-081-0/+14
| | | | | | | | | | | | | | Fixes #1291 * Display the header bar only on the first page * Hide search bars, pagination buttons, filters, and edit/delete buttons
* | Switch from FontAwesome v4.x to ForkAwesomeArthurHoaro2019-05-192-2/+2
|/ | | | And use the Shaarli icon made by @xuv in the header and footer (default template).
* Merge pull request #1295 from ArthurHoaro/feature/visited-link-colorArthurHoaro2019-05-081-1/+1
|\ | | | | Slightly lighten visited link color
| * Slightly lighten visited link colorArthurHoaro2019-04-221-1/+1
| | | | | | | | To make it more visible in the middle of raw text.
* | Merge pull request #1296 from ArthurHoaro/feature/sticky-labelArthurHoaro2019-05-081-2/+10
|\ \ | | | | | | Display sticky label in linklist
| * | Display sticky label in linklistArthurHoaro2019-04-221-2/+10
| |/ | | | | | | Add sticky label, like private label, in linklist to make it more visible.
* | Merge pull request #1276 from ArthurHoaro/feature/bulk-visibilityArthurHoaro2019-04-221-0/+22
|\ \ | |/ |/| Bulk action: set visibility
| * Bulk action: set visibilityArthurHoaro2019-02-091-0/+22
| | | | | | | | | | | | Added 2 buttons when link checkboxes are checked to set them either public or private. Related to #572 #1160
* | Fix button overlapping on mobile in linklistArthurHoaro2019-02-091-0/+3
|/
* Merge pull request #1208 from ArthurHoaro/feature/select-allArthurHoaro2018-10-062-5/+24
|\ | | | | Add a button to toggle all checkboxes of displayed links
| * Add a button to toggle all checkboxes of displayed linksArthurHoaro2018-08-132-5/+24
| | | | | | | | Related to #1160
* | Sticky feature - Add translation and display for logged out usersArthurHoaro2018-10-061-3/+3
| |