aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Daily RSS Cache: invalidate cache base on the dateArthurHoaro2020-12-172-30/+121
| | | | | | Currently the cache is only invalidated when the datastore changes, while it should rely on selected period of time. Fixes #1659
* Merge pull request #1644 from ArthurHoaro/fix/daily-rssArthurHoaro2020-12-161-0/+27
|\ | | | | Daily RSS - Remove relative description (today, yesterday)
| * Daily RSS - Remove relative description (today, yesterday)ArthurHoaro2020-11-151-0/+27
| | | | | | | | It is not useful for the RSS feed, as every new entry will be 'yesterday', and it requires an update the next day.
* | Merge pull request #1645 from ArthurHoaro/feature/plugin-register-routeArthurHoaro2020-12-164-0/+72
|\ \ | | | | | | Plugin system: allow plugins to provide custom routes
| * | Plugin system: allow plugins to provide custom routesArthurHoaro2020-11-154-0/+72
| |/ | | | | | | | | | | | | | | | | | | - each route will be prefixed by `/plugin/<plugin_name>` - add a new template for plugins rendering - add a live example in the demo_plugin Check out the "Plugin System" documentation for more detail. Related to #143
* / ConfigureControllerTest.php: update expected languages number to 6nodiscc2020-11-221-1/+1
|/ | | | Following the addition of russian translations in #1642 Fixes https://github.com/shaarli/Shaarli/issues/1647
* Manually fix remaining PHPCS errorsArthurHoaro2020-11-092-16/+16
|
* Merge pull request #1621 from ArthurHoaro/feature/tag-separatorsArthurHoaro2020-11-0811-29/+337
|\
| * Feature: support any tag separatorArthurHoaro2020-11-0511-29/+337
| | | | | | | | | | | | | | | | So it allows to have multiple words tags. Breaking change: commas ',' are no longer a default separator. Fixes #594
* | Fix an issue truncating extracted metadata contentArthurHoaro2020-11-081-0/+30
| | | | | | | | Previous regex forced the selection to stop at either the first single or double quote found, regardless of the opening quote. Using '\1', we're sure to wait for the proper quote before stopping the capture.
* | Display error details even with dev.debug set to falseArthurHoaro2020-11-051-1/+28
|/ | | | | | | It makes more sense to display the error even if it's unexpected. Only for logged in users. Fixes #1606
* Merge pull request #1620 from ArthurHoaro/feature/no-auto-linkArthurHoaro2020-11-051-0/+20
|\ | | | | Default formatter: add a setting to disable auto-linkification
| * Default formatter: add a setting to disable auto-linkificationArthurHoaro2020-11-031-0/+20
| | | | | | | | | | | | | | + update documentation + single parameter for both URL and hashtags Fixes #1094
* | Fix: redirect to referrer after bookmark deletionArthurHoaro2020-11-051-1/+5
|/ | | | | | Except if the referer points to a permalink (which has been deleted). Fixes #1622
* Merge pull request #1610 from ArthurHoaro/fix/wallabagArthurHoaro2020-11-031-6/+29
|\ | | | | Plugin wallabag: minor improvements
| * Plugin wallabag: minor improvementsArthurHoaro2020-10-271-6/+29
| | | | | | | | | | | | | | | | - hide the wallabag icon for logged out users - set API V2 as default parameter - fix URL encoding issue with special chars Fixes #1147
* | UT: fix formatting issue when the current day has a single digitArthurHoaro2020-11-022-3/+3
| |
* | Merge pull request #1616 from dimtion/fix-api-redirectArthurHoaro2020-10-291-4/+4
|\ \ | | | | | | API postLink: change relative path to absolute path
| * | postLink: change relative path to absolute pathLoïc Carr2020-10-281-4/+4
| | |
* | | Raise 404 error instead of 500 if permalink access is deniedArthurHoaro2020-10-281-2/+2
| | |
* | | Bulk creation: ignore blank linesArthurHoaro2020-10-271-1/+2
| | |
* | | Feature: bulk creation of bookmarksArthurHoaro2020-10-2710-75/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0/+1
| | |
* | | Feature: add weekly and monthly view/RSS feed for daily pageArthurHoaro2020-10-273-121/+677
| | | | | | | | | | | | | | | | | | | | | | | | | | | - 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-275-4/+7
| | |
* | | Feature: Share private bookmarks using a URL containing a private keyArthurHoaro2020-10-273-0/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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-274-1/+342
|\ \ \ | |_|/ |/| | Feature: add a Server administration page
| * | Feature: add a Server administration pageArthurHoaro2020-10-214-1/+342
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Use PSR-3 logger for login attemptsArthurHoaro2020-10-207-46/+66
|/ / | | | | | | Fixes #1122
* | Asynchronous retrieval of bookmark's thumbnailsArthurHoaro2020-10-204-8/+158
| | | | | | | | | | | | | | | | | | 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-204-150/+347
|\ \
| * | Improve metadata retrieval (performances and accuracy)ArthurHoaro2020-10-152-122/+146
| | | | | | | | | | | | | | | - Use dedicated function to download headers to avoid apply multiple regexps on headers - Also try to extract title from meta tags
| * | Add a setting to retrieve bookmark metadata asynchrounouslyArthurHoaro2020-10-153-35/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | | add search highlight unit testsArthurHoaro2020-10-166-3/+184
| | |
* | | Strict types: fix an issue in daily where the date could be an intArthurHoaro2020-10-161-2/+2
|/ /
* | Add strict types for bookmarks managementArthurHoaro2020-10-137-109/+22
| | | | | | | | | | | | | | | | 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 mutex on datastore I/O operationsArthurHoaro2020-10-1318-41/+92
| | | | | | | | | | | | To make sure that there is no concurrent operation on the datastore file. Fixes #1132
* | Merge pull request #1540 from ArthurHoaro/fix/metadata-regexesArthurHoaro2020-10-131-0/+89
|\ \ | | | | | | Improve regex to extract HTML metadata (title, description, etc.)
| * | Improve regex to extract HTML metadata (title, description, etc.)ArthurHoaro2020-09-031-0/+89
| | | | | | | | | | | | | | | | | | Also added a bunch of tests to cover more use cases. Fixes #1375
* | | Merge pull request #1525 from ArthurHoaro/feature/rest-api-bookmark-datesArthurHoaro2020-10-131-4/+4
|\ \ \ | | | | | | | | REST API: allow override of creation and update dates
| * | | REST API: allow override of creation and update datesArthurHoaro2020-08-291-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that if they're not provided, default behaviour will apply: creation and update dates will be autogenerated, and not empty. Fixes #1223
* | | | Add Markdown Extra formatterArthurHoaro2020-10-132-1/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Library: [Parsedown Extra](https://github.com/erusev/parsedown-extra) Also sort dependencies alphabetically. Fixes #1169
* | | | Merge pull request #1575 from ArthurHoaro/feature/php8ArthurHoaro2020-10-03111-287/+368
|\ \ \ \
| * | | | Use assertRegExp polyfill instead of regexMatchesArthurHoaro2020-09-291-1/+2
| | | | |
| * | | | Fix missing @expectedException convertionArthurHoaro2020-09-298-20/+14
| | | | |
| * | | | Compatibility with PHP 8ArthurHoaro2020-09-293-18/+7
| | | | |
| * | | | Compatibility with PHPUnit 9ArthurHoaro2020-09-29110-249/+346
| | | | |
* | | | | Merge pull request #1574 from stoeps13/hosting-fixArthurHoaro2020-10-031-0/+47
|\ \ \ \ \
| * | | | | Revert unrelated changes and add unit testsArthurHoaro2020-09-301-0/+47
| |/ / / /
* | | | | Fix a bug preventing to edit bookmark with ID #0ArthurHoaro2020-09-301-0/+24
| | | | |