aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/front/controller/admin
Commit message (Collapse)AuthorAgeFilesLines
* Handle pagination through BookmarkServiceArthurHoaro2021-01-202-6/+8
| | | | | | | Handle all search results through SearchResult object. This is a required step toward implementing a BookmarkService based on SQL database. Related to #953
* Fix: bulk add - delete existing linkArthurHoaro2021-01-191-1/+44
| | | | | | Do not send redirect response in bookmark delete controller if the request comes from bulk creation page. Fixes #1683
* 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
* Feature: support any tag separatorArthurHoaro2020-11-053-5/+141
| | | | | | | | So it allows to have multiple words tags. Breaking change: commas ',' are no longer a default separator. Fixes #594
* 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
* 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
* Feature: Share private bookmarks using a URL containing a private keyArthurHoaro2020-10-271-0/+139
| | | | | | | | | | - 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
* Feature: add a Server administration pageArthurHoaro2020-10-211-0/+184
| | | | | | | | | | | | 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-202-6/+59
| | | | | | | | | 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-35/+83
| | | | | | | | | | | | | | - 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 strict types for bookmarks managementArthurHoaro2020-10-133-6/+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 Markdown Extra formatterArthurHoaro2020-10-131-1/+1
| | | | | | | | Library: [Parsedown Extra](https://github.com/erusev/parsedown-extra) Also sort dependencies alphabetically. Fixes #1169
* Merge pull request #1575 from ArthurHoaro/feature/php8ArthurHoaro2020-10-0319-42/+45
|\
| * Compatibility with PHPUnit 9ArthurHoaro2020-09-2919-42/+45
| |
* | Fix a bug preventing to edit bookmark with ID #0ArthurHoaro2020-09-301-0/+24
|/
* Fix invalid redirection using the path of an external domainArthurHoaro2020-09-222-6/+6
| | | | Fixes #1554
* Merge pull request #1539 from ArthurHoaro/feature/manual-root-urlArthurHoaro2020-09-222-4/+4
|\
| * Fix subfolder configuration in unit testsArthurHoaro2020-09-122-4/+4
| |
* | Plugins: do not save metadata along plugin parametersArthurHoaro2020-09-121-2/+3
|/ | | | | | Also prevent the token to be saved. Fixes #1550
* Fix UTArthurHoaro2020-08-271-1/+1
|
* Move all admin controller into a dedicated groupArthurHoaro2020-08-132-66/+0
| | | | Also handle authentication check in a new middleware for the admin group.
* New basePath: fix officiel plugin paths and vintage templateArthurHoaro2020-07-263-5/+34
|
* Fix: visitor are allowed to chose nb of links per pageArthurHoaro2020-07-241-47/+1
|
* Multiple small fixesArthurHoaro2020-07-231-1/+1
|
* Process Shaarli install through Slim controllerArthurHoaro2020-07-231-11/+7
|
* Process thumbnail synchronize page through Slim controllersArthurHoaro2020-07-231-0/+154
|
* Process token retrieve through Slim controllerArthurHoaro2020-07-231-0/+41
|
* Process plugins administration page through Slim controllersArthurHoaro2020-07-231-0/+190
|
* Process bookmarks import through Slim controllerArthurHoaro2020-07-232-5/+149
|
* Process bookmark exports through Slim controllersArthurHoaro2020-07-231-0/+167
|
* Pin bookmarks through Slim controllerArthurHoaro2020-07-231-0/+145
|
* Process change visibility action through Slim controllerArthurHoaro2020-07-231-0/+418
|
* Improve ManageTagController coverage and error handlingArthurHoaro2020-07-236-633/+1160
|
* Use multi-level routes for existing controllers instead of 1 level everywhereArthurHoaro2020-07-234-12/+12
| | | | Also prefix most admin routes with /admin/
* Explicitly define base and asset path in templatesArthurHoaro2020-07-232-77/+2
| | | | | | | 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.
* Handle shaare creation/edition/deletion through Slim controllersArthurHoaro2020-07-231-0/+652
|
* Process manage tags page through Slim controllerArthurHoaro2020-07-231-0/+272
|
* Process configure page through Slim controllerArthurHoaro2020-07-232-0/+275
|
* Password change: UT use case with open shaarliArthurHoaro2020-07-231-0/+17
|
* Test ShaarliAdminControllerArthurHoaro2020-07-231-0/+199
|
* Process password change controller through SlimArthurHoaro2020-07-235-26/+187
|
* Process tools page through Slim controllerArthurHoaro2020-07-232-1/+74
|
* Initialize admin Slim controllersArthurHoaro2020-07-233-0/+439
- Reorganize visitor controllers - Fix redirection with Slim's requests base path - Fix daily links