aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/front
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary escape of refererArthurHoaro2020-10-281-1/+1
| | | | Fixes #1611
* Bulk creation: ignore blank linesArthurHoaro2020-10-271-0/+3
|
* Bulk creation: improve performances using memoizationArthurHoaro2020-10-271-9/+43
| | | | Reduced additional processing time per links from ~40ms to ~5ms
* Bulk creation: fix private status based on the first formArthurHoaro2020-10-271-1/+5
|
* Feature: bulk creation of bookmarksArthurHoaro2020-10-274-386/+458
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix rebase issueArthurHoaro2020-10-271-2/+2
|
* Feature: add weekly and monthly view/RSS feed for daily pageArthurHoaro2020-10-271-46/+59
| | | | | | | | | - Heavy refactoring of DailyController - Add a banner like in tag cloud to display monthly and weekly links - Translations: t() now supports variables with optional first letter uppercase Fixes #160
* Move utils classes to Shaarli\Helper namespace and folderArthurHoaro2020-10-271-1/+1
|
* Feature: Share private bookmarks using a URL containing a private keyArthurHoaro2020-10-272-1/+29
| | | | | | | | | | - Add a share link next to « Permalink » in linklist (using share icon from fork awesome) - This link generates a private key associated to the bookmark - Accessing the bookmark while logged out with the proper key will display it Fixes #475
* Merge pull request #1604 from ArthurHoaro/feature/server-admin-pageArthurHoaro2020-10-273-11/+116
|\ | | | | Feature: add a Server administration page
| * Feature: add a Server administration pageArthurHoaro2020-10-213-11/+116
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge pull request #1601 from ArthurHoaro/feature/psr3ArthurHoaro2020-10-241-1/+0
|\ \
| * | Use PSR-3 logger for login attemptsArthurHoaro2020-10-201-1/+0
| |/ | | | | | | Fixes #1122
* / Dislay an error if an exception occurs in the error handlerArthurHoaro2020-10-201-4/+1
|/ | | | Related to #1598
* Asynchronous retrieval of bookmark's thumbnailsArthurHoaro2020-10-202-7/+6
| | | | | | | | | 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-202-24/+41
|\
| * Add a setting to retrieve bookmark metadata asynchrounouslyArthurHoaro2020-10-152-24/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | Inject ROOT_PATH in plugin instead of regenerating it everywhereArthurHoaro2020-10-161-0/+1
|/
* Add strict types for bookmarks managementArthurHoaro2020-10-131-1/+1
| | | | | | | | Parameters typing and using strict types overall increase the codebase quality by enforcing the a given parameter will have the expected type. It also removes the need to unnecessary unit tests checking methods behavior with invalid input.
* Add Markdown Extra formatterArthurHoaro2020-10-131-1/+1
| | | | | | | | Library: [Parsedown Extra](https://github.com/erusev/parsedown-extra) Also sort dependencies alphabetically. Fixes #1169
* Security: fix multiple XSS vulnerabilities + fix search tags with special charsArthurHoaro2020-10-064-12/+21
| | | | | | 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.
* Fix a bug preventing to edit bookmark with ID #0ArthurHoaro2020-09-301-1/+1
|
* Fix warning if the encoding retrieved from external headers is invalidArthurHoaro2020-09-301-1/+1
| | | | Also fixed the regex to support this failing header: charset="utf-8"\r\n"
* Fix invalid redirection using the path of an external domainArthurHoaro2020-09-221-0/+7
| | | | Fixes #1554
* Merge pull request #1559 from ArthurHoaro/fix/edit-redirectArthurHoaro2020-09-221-1/+1
|\ | | | | Fix redirection to referer after editing a link
| * Fix redirection to referer after editing a linkArthurHoaro2020-09-221-1/+1
| | | | | | | | Fixes #1545
* | Merge pull request #1539 from ArthurHoaro/feature/manual-root-urlArthurHoaro2020-09-221-1/+1
|\ \ | |/ |/|
| * Fix subfolder configuration in unit testsArthurHoaro2020-09-121-1/+1
| |
* | Merge pull request #1553 from ArthurHoaro/fix/404-pageArthurHoaro2020-09-121-0/+29
|\ \ | | | | | | Properly handle 404 errors
| * | Properly handle 404 errorsArthurHoaro2020-09-121-0/+29
| |/ | | | | | | | | | | Use 404 template instead of default Slim error page if the route is not found. Fixes #827
* / Plugins: do not save metadata along plugin parametersArthurHoaro2020-09-121-0/+1
|/ | | | | | Also prevent the token to be saved. Fixes #1550
* Merge pull request #1538 from ArthurHoaro/feature/plugins-bookmark-serviceArthurHoaro2020-09-062-14/+14
|\ | | | | Inject BookmarkServiceInterface in plugins data
| * Inject BookmarkServiceInterface in plugins dataArthurHoaro2020-09-032-14/+14
| | | | | | | | Related discussion: ilesinge/shaarli-related#7
* | Merge pull request #1537 from ArthurHoaro/fix/back-compatible-targetsArthurHoaro2020-09-031-2/+2
|\ \
| * | Improve backward compatibility for LegacyRouterArthurHoaro2020-09-031-2/+2
| |/ | | | | | | | | | | | | LegacyRouter is no longer used for routing, only in existing plugins to match the _PAGE_ parameter. So we change a few of its values there, to match the new ones defined in TemplatePage. @see discussion in shaarli/Shaarli#1537
* / Fix login loop for private instancesArthurHoaro2020-09-011-1/+1
|/ | | | | | GET /login and POST /login have 2 distinct route name. Fixes #1533
* Better handling of plugin incompatibilityArthurHoaro2020-08-271-1/+2
| | | | | If a PHP is raised while executing plugin hook, Shaarli will display an error instead of rendering the error page (or just ending in fatal error for default hooks). Also added phpErrorHandler which is handled differently that regular errorHandler by Slim.:
* Move error handling to dedicated controller instead of middlewareArthurHoaro2020-08-212-25/+46
|
* Move all admin controller into a dedicated groupArthurHoaro2020-08-135-22/+52
| | | | Also handle authentication check in a new middleware for the admin group.
* Remove anonymous permission and initialize bookmarks on loginArthurHoaro2020-08-011-5/+0
|
* Fix basePath in unit tests reference DBArthurHoaro2020-07-281-0/+1
|
* Better support for notes permalinkArthurHoaro2020-07-282-1/+6
|
* Fix redirection after post install loginArthurHoaro2020-07-271-1/+1
|
* New basePath: fix officiel plugin paths and vintage templateArthurHoaro2020-07-2610-164/+38
|
* Fix: visitor are allowed to chose nb of links per pageArthurHoaro2020-07-242-19/+34
|
* Fix default link and redirection in install controllerArthurHoaro2020-07-241-2/+2
|
* Update French translationArthurHoaro2020-07-231-1/+1
|
* Multiple small fixesArthurHoaro2020-07-234-17/+17
|
* Process login through Slim controllerArthurHoaro2020-07-233-11/+130
|
* Process Shaarli install through Slim controllerArthurHoaro2020-07-235-3/+214
|