]> git.immae.eu Git - github/shaarli/Shaarli.git/log
github/shaarli/Shaarli.git
3 years agoMerge pull request #1542 from shaarli/dependabot/npm_and_yarn/node-sass-4.13.1
ArthurHoaro [Sun, 6 Sep 2020 11:24:09 +0000 (13:24 +0200)] 
Merge pull request #1542 from shaarli/dependabot/npm_and_yarn/node-sass-4.13.1

Bump node-sass from 4.12.0 to 4.13.1

3 years agoBump node-sass from 4.12.0 to 4.13.1 1542/head
dependabot[bot] [Fri, 4 Sep 2020 09:54:32 +0000 (09:54 +0000)] 
Bump node-sass from 4.12.0 to 4.13.1

Bumps [node-sass](https://github.com/sass/node-sass) from 4.12.0 to 4.13.1.
- [Release notes](https://github.com/sass/node-sass/releases)
- [Changelog](https://github.com/sass/node-sass/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sass/node-sass/compare/v4.12.0...v4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoMerge pull request #1541 from ArthurHoaro/fix/legacy-login-encoding
ArthurHoaro [Thu, 3 Sep 2020 16:54:45 +0000 (18:54 +0200)] 
Merge pull request #1541 from ArthurHoaro/fix/legacy-login-encoding

3 years agoFix: encoding in legacy route login redirection to post bookmark 1541/head
ArthurHoaro [Thu, 3 Sep 2020 16:46:10 +0000 (18:46 +0200)] 
Fix: encoding in legacy route login redirection to post bookmark

When a bookmark is post from a logged out user, he is first redirected to the login page with 'returnurl' containing the link, then redirected again when the login is processed.
We need to reencode the posted URL, otherwise the browser does not handle the fragment as a part of the posted parameter.

3 years agoMerge pull request #1537 from ArthurHoaro/fix/back-compatible-targets
ArthurHoaro [Thu, 3 Sep 2020 12:57:24 +0000 (14:57 +0200)] 
Merge pull request #1537 from ArthurHoaro/fix/back-compatible-targets

3 years agoFix feed target in UT 1537/head
ArthurHoaro [Thu, 3 Sep 2020 08:18:04 +0000 (10:18 +0200)] 
Fix feed target in UT

3 years agoImprove backward compatibility for LegacyRouter
ArthurHoaro [Thu, 3 Sep 2020 08:09:32 +0000 (10:09 +0200)] 
Improve backward compatibility for LegacyRouter

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

3 years agoMerge pull request #1519 from ArthurHoaro/fix/mobile-pin-link
ArthurHoaro [Thu, 3 Sep 2020 06:49:20 +0000 (08:49 +0200)] 
Merge pull request #1519 from ArthurHoaro/fix/mobile-pin-link

Default template: display pin button in mobile view

3 years agoMerge pull request #1523 from ArthurHoaro/fix/default-colors-generation
ArthurHoaro [Thu, 3 Sep 2020 06:48:51 +0000 (08:48 +0200)] 
Merge pull request #1523 from ArthurHoaro/fix/default-colors-generation

Default colors plugin: generate CSS file during initialization

3 years agoMerge pull request #1520 from ArthurHoaro/fix/jp-language
ArthurHoaro [Thu, 3 Sep 2020 06:46:47 +0000 (08:46 +0200)] 
Merge pull request #1520 from ArthurHoaro/fix/jp-language

3 years agoMerge pull request #1526 from kcaran/links_per_page
ArthurHoaro [Thu, 3 Sep 2020 06:45:48 +0000 (08:45 +0200)] 
Merge pull request #1526 from kcaran/links_per_page

3 years agoMerge pull request #1524 from ArthurHoaro/fix/rss-sticky
ArthurHoaro [Thu, 3 Sep 2020 06:45:12 +0000 (08:45 +0200)] 
Merge pull request #1524 from ArthurHoaro/fix/rss-sticky

Fixed: Pinned bookmarks are displayed first in ATOM/RSS feeds

3 years agoMerge pull request #1536 from ArthurHoaro/fix/login-private-shaarli
ArthurHoaro [Thu, 3 Sep 2020 06:35:18 +0000 (08:35 +0200)] 
Merge pull request #1536 from ArthurHoaro/fix/login-private-shaarli

Fix login loop for private instances

3 years agoMerge pull request #1534 from ArthurHoaro/fix/legacy-route-post
ArthurHoaro [Thu, 3 Sep 2020 06:35:05 +0000 (08:35 +0200)] 
Merge pull request #1534 from ArthurHoaro/fix/legacy-route-post

3 years agoMerge pull request #1535 from ArthurHoaro/fix/export-token
ArthurHoaro [Thu, 3 Sep 2020 06:34:57 +0000 (08:34 +0200)] 
Merge pull request #1535 from ArthurHoaro/fix/export-token

Export: refresh CRSF token after submit

3 years agoFix login loop for private instances 1536/head
ArthurHoaro [Tue, 1 Sep 2020 09:26:24 +0000 (11:26 +0200)] 
Fix login loop for private instances

GET /login and POST /login have 2 distinct route name.

Fixes #1533

3 years agoExport: refresh CRSF token after submit 1535/head
ArthurHoaro [Tue, 1 Sep 2020 09:01:21 +0000 (11:01 +0200)] 
Export: refresh CRSF token after submit

This allow users to submit the form multiple times, because there is no actual browser redirection to the page.

Fixes #1532

3 years agoSupport redirection of legacy route 'do=configure' 1534/head
ArthurHoaro [Tue, 1 Sep 2020 08:40:35 +0000 (10:40 +0200)] 
Support redirection of legacy route 'do=configure'

3 years agoFix legacy redirection when Shaarli instance is under a subfolder
ArthurHoaro [Tue, 1 Sep 2020 08:40:18 +0000 (10:40 +0200)] 
Fix legacy redirection when Shaarli instance is under a subfolder

3 years agoFix support for legacy route login redirection
ArthurHoaro [Tue, 1 Sep 2020 08:12:54 +0000 (10:12 +0200)] 
Fix support for legacy route login redirection

Makes sure that the user is properly redirected to the bookmark form after login, even with legacy routes

3 years agoMerge pull request #1530 from ArthurHoaro/fix/untagged-only-broken
ArthurHoaro [Tue, 1 Sep 2020 07:37:01 +0000 (09:37 +0200)] 
Merge pull request #1530 from ArthurHoaro/fix/untagged-only-broken

Fix broken route to filter not tagged bookmarks

3 years agoAvoid using global variables 1526/head
Keith Carangelo [Mon, 31 Aug 2020 13:20:03 +0000 (09:20 -0400)] 
Avoid using global variables

Co-authored-by: ArthurHoaro <arthur@hoa.ro>
3 years agoFix broken route to filter not tagged bookmarks 1530/head
ArthurHoaro [Mon, 31 Aug 2020 11:58:09 +0000 (13:58 +0200)] 
Fix broken route to filter not tagged bookmarks

Also display the filter for visitors.

Fixes #1529

3 years agoMerge pull request #1512 from shaarli/dependabot/npm_and_yarn/elliptic-6.5.3
ArthurHoaro [Mon, 31 Aug 2020 12:06:32 +0000 (14:06 +0200)] 
Merge pull request #1512 from shaarli/dependabot/npm_and_yarn/elliptic-6.5.3

Bump elliptic from 6.4.1 to 6.5.3

3 years agoMerge pull request #1505 from shaarli/dependabot/npm_and_yarn/lodash-4.17.19
ArthurHoaro [Mon, 31 Aug 2020 12:03:58 +0000 (14:03 +0200)] 
Merge pull request #1505 from shaarli/dependabot/npm_and_yarn/lodash-4.17.19

Bump lodash from 4.17.15 to 4.17.19

3 years agoMoved definition of a.selected to pass sasslint test
Keith Carangelo [Sun, 30 Aug 2020 11:26:21 +0000 (07:26 -0400)] 
Moved definition of a.selected to pass sasslint test

3 years agoAdded $links_per_page variable to template and display on default
Keith Carangelo [Sat, 29 Aug 2020 15:02:59 +0000 (11:02 -0400)] 
Added $links_per_page variable to template and display on default

3 years agoFixed: Pinned bookmarks are displayed first in ATOM/RSS feeds 1524/head
ArthurHoaro [Sat, 29 Aug 2020 08:06:40 +0000 (10:06 +0200)] 
Fixed: Pinned bookmarks are displayed first in ATOM/RSS feeds

Fixes #1485

3 years agoDefault colors plugin: generate CSS file during initialization 1523/head
ArthurHoaro [Sat, 29 Aug 2020 07:38:30 +0000 (09:38 +0200)] 
Default colors plugin: generate CSS file during initialization

Current behaviour only generate the custom CSS file when the plugin settings are saved, which can be annoying if the file is deleted but the settings are set.
Most common use case is Docker deployment, because the plugin directory is not mounted as a volume.

3 years agoFix UT 1520/head
ArthurHoaro [Thu, 27 Aug 2020 13:26:52 +0000 (15:26 +0200)] 
Fix UT

3 years agoJapanese translation: add language to admin configuration page
ArthurHoaro [Thu, 27 Aug 2020 13:00:33 +0000 (15:00 +0200)] 
Japanese translation: add language to admin configuration page

Also use ISO country code (JP) instead of JA.

3 years agoDefault template: display pin button in mobile view 1519/head
ArthurHoaro [Thu, 27 Aug 2020 12:47:52 +0000 (14:47 +0200)] 
Default template: display pin button in mobile view

Fixes #1347

3 years agoMerge pull request #1518 from ArthurHoaro/authors/v0.12.0-beta
ArthurHoaro [Thu, 27 Aug 2020 11:56:36 +0000 (13:56 +0200)] 
Merge pull request #1518 from ArthurHoaro/authors/v0.12.0-beta

Update authors for v0.12.0-beta

3 years agoUpdate authors for v0.12.0-beta 1518/head
ArthurHoaro [Thu, 27 Aug 2020 11:52:18 +0000 (13:52 +0200)] 
Update authors for v0.12.0-beta

3 years agoMerge pull request #1517 from ArthurHoaro/changelog/v0.12.0-beta
ArthurHoaro [Thu, 27 Aug 2020 11:44:18 +0000 (13:44 +0200)] 
Merge pull request #1517 from ArthurHoaro/changelog/v0.12.0-beta

Changelog for v0.12.0-beta

3 years agoChangelog for v0.12.0-beta 1517/head
ArthurHoaro [Thu, 27 Aug 2020 11:36:34 +0000 (13:36 +0200)] 
Changelog for v0.12.0-beta

3 years agoMerge pull request #1516 from ArthurHoaro/feature/plugin-incompatibility
ArthurHoaro [Thu, 27 Aug 2020 10:10:16 +0000 (12:10 +0200)] 
Merge pull request #1516 from ArthurHoaro/feature/plugin-incompatibility

Better handling of plugin incompatibility

3 years agoBetter handling of plugin incompatibility 1516/head
ArthurHoaro [Thu, 27 Aug 2020 10:04:36 +0000 (12:04 +0200)] 
Better handling of plugin incompatibility

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.:

3 years agoMerge pull request #1511 from ArthurHoaro/wip-slim-routing
ArthurHoaro [Thu, 27 Aug 2020 08:27:34 +0000 (10:27 +0200)] 
Merge pull request #1511 from ArthurHoaro/wip-slim-routing

3 years agoMove error handling to dedicated controller instead of middleware 1511/head
ArthurHoaro [Fri, 21 Aug 2020 08:50:44 +0000 (10:50 +0200)] 
Move error handling to dedicated controller instead of middleware

3 years agoMove all admin controller into a dedicated group
ArthurHoaro [Thu, 13 Aug 2020 09:08:13 +0000 (11:08 +0200)] 
Move all admin controller into a dedicated group

Also handle authentication check in a new middleware for the admin group.

3 years agoBookmark's thumbnails PHPDoc improvement
ArthurHoaro [Sat, 1 Aug 2020 09:14:03 +0000 (11:14 +0200)] 
Bookmark's thumbnails PHPDoc improvement

3 years agoRemove anonymous permission and initialize bookmarks on login
ArthurHoaro [Sat, 1 Aug 2020 09:10:57 +0000 (11:10 +0200)] 
Remove anonymous permission and initialize bookmarks on login

3 years agoBump elliptic from 6.4.1 to 6.5.3 1512/head
dependabot[bot] [Thu, 30 Jul 2020 13:43:35 +0000 (13:43 +0000)] 
Bump elliptic from 6.4.1 to 6.5.3

Bumps [elliptic](https://github.com/indutny/elliptic) from 6.4.1 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.4.1...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoFix basePath in unit tests reference DB
ArthurHoaro [Tue, 28 Jul 2020 20:24:41 +0000 (22:24 +0200)] 
Fix basePath in unit tests reference DB

3 years agoInclude empty basePath in formatting
ArthurHoaro [Tue, 28 Jul 2020 19:09:22 +0000 (21:09 +0200)] 
Include empty basePath in formatting

3 years agoBetter support for notes permalink
ArthurHoaro [Tue, 28 Jul 2020 18:46:11 +0000 (20:46 +0200)] 
Better support for notes permalink

3 years agoFix links per page controller path
ArthurHoaro [Mon, 27 Jul 2020 10:56:59 +0000 (12:56 +0200)] 
Fix links per page controller path

3 years agoFix redirection after post install login
ArthurHoaro [Mon, 27 Jul 2020 10:34:17 +0000 (12:34 +0200)] 
Fix redirection after post install login

3 years agoNew basePath: fix officiel plugin paths and vintage template
ArthurHoaro [Sun, 26 Jul 2020 12:43:10 +0000 (14:43 +0200)] 
New basePath: fix officiel plugin paths and vintage template

3 years agoFix: header search action should be on linklist
ArthurHoaro [Fri, 24 Jul 2020 10:49:50 +0000 (12:49 +0200)] 
Fix: header search action should be on linklist

3 years agoFix: visitor are allowed to chose nb of links per page
ArthurHoaro [Fri, 24 Jul 2020 10:48:53 +0000 (12:48 +0200)] 
Fix: visitor are allowed to chose nb of links per page

3 years agoFix default link and redirection in install controller
ArthurHoaro [Fri, 24 Jul 2020 08:30:47 +0000 (10:30 +0200)] 
Fix default link and redirection in install controller

3 years agoUpdate French translation
ArthurHoaro [Thu, 23 Jul 2020 15:13:22 +0000 (17:13 +0200)] 
Update French translation

3 years agoMultiple small fixes
ArthurHoaro [Thu, 23 Jul 2020 14:41:32 +0000 (16:41 +0200)] 
Multiple small fixes

3 years agoMove PHP and config init to dedicated file
ArthurHoaro [Wed, 22 Jul 2020 16:12:10 +0000 (18:12 +0200)] 
Move PHP and config init to dedicated file

in order to keep index.php as minimal as possible

3 years agoProcess login through Slim controller
ArthurHoaro [Tue, 21 Jul 2020 18:33:33 +0000 (20:33 +0200)] 
Process login through Slim controller

3 years agoProcess Shaarli install through Slim controller
ArthurHoaro [Tue, 7 Jul 2020 08:15:56 +0000 (10:15 +0200)] 
Process Shaarli install through Slim controller

3 years agoProcess main page (linklist) through Slim controller
ArthurHoaro [Mon, 6 Jul 2020 06:04:35 +0000 (08:04 +0200)] 
Process main page (linklist) through Slim controller

Including a bunch of improvements on the container,
and helper used across new controllers.

3 years agoProcess thumbnail synchronize page through Slim controllers
ArthurHoaro [Sat, 27 Jun 2020 10:08:26 +0000 (12:08 +0200)] 
Process thumbnail synchronize page through Slim controllers

3 years agoProcess token retrieve through Slim controller
ArthurHoaro [Sun, 21 Jun 2020 10:21:31 +0000 (12:21 +0200)] 
Process token retrieve through Slim controller

3 years agoProcess plugins administration page through Slim controllers
ArthurHoaro [Sat, 20 Jun 2020 13:14:24 +0000 (15:14 +0200)] 
Process plugins administration page through Slim controllers

3 years agoProcess bookmarks import through Slim controller
ArthurHoaro [Wed, 17 Jun 2020 17:08:02 +0000 (19:08 +0200)] 
Process bookmarks import through Slim controller

3 years agoProcess bookmark exports through Slim controllers
ArthurHoaro [Wed, 17 Jun 2020 14:04:18 +0000 (16:04 +0200)] 
Process bookmark exports through Slim controllers

3 years agoUse NetscapeBookmarkUtils object instance instead of static calls
ArthurHoaro [Wed, 17 Jun 2020 13:55:31 +0000 (15:55 +0200)] 
Use NetscapeBookmarkUtils object instance instead of static calls

3 years agoPin bookmarks through Slim controller
ArthurHoaro [Mon, 15 Jun 2020 06:15:40 +0000 (08:15 +0200)] 
Pin bookmarks through Slim controller

3 years agoProcess change visibility action through Slim controller
ArthurHoaro [Sat, 13 Jun 2020 17:40:32 +0000 (19:40 +0200)] 
Process change visibility action through Slim controller

3 years agoFix bookmarklet with new routes
ArthurHoaro [Sat, 13 Jun 2020 16:17:15 +0000 (18:17 +0200)] 
Fix bookmarklet with new routes

   * Use the new shaare route
   * Add source hidden input in editlink template to close the popup after saving

3 years agoImprove ManageTagController coverage and error handling
ArthurHoaro [Sat, 13 Jun 2020 13:37:02 +0000 (15:37 +0200)] 
Improve ManageTagController coverage and error handling

3 years agoUse multi-level routes for existing controllers instead of 1 level everywhere
ArthurHoaro [Sat, 13 Jun 2020 11:08:01 +0000 (13:08 +0200)] 
Use multi-level routes for existing controllers instead of 1 level everywhere

Also prefix most admin routes with /admin/

3 years agoExplicitly define base and asset path in templates
ArthurHoaro [Sat, 13 Jun 2020 09:22:14 +0000 (11:22 +0200)] 
Explicitly define base and asset path in templates

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.

3 years agoHandle shaare creation/edition/deletion through Slim controllers
ArthurHoaro [Sat, 6 Jun 2020 12:01:03 +0000 (14:01 +0200)] 
Handle shaare creation/edition/deletion through Slim controllers

3 years agoProcess manage tags page through Slim controller
ArthurHoaro [Sat, 30 May 2020 13:51:14 +0000 (15:51 +0200)] 
Process manage tags page through Slim controller

3 years agoProcess configure page through Slim controller
ArthurHoaro [Sat, 30 May 2020 12:00:06 +0000 (14:00 +0200)] 
Process configure page through Slim controller

3 years agoPassword change: UT use case with open shaarli
ArthurHoaro [Wed, 27 May 2020 12:18:07 +0000 (14:18 +0200)] 
Password change: UT use case with open shaarli

3 years agoTest ShaarliAdminController
ArthurHoaro [Wed, 27 May 2020 12:13:49 +0000 (14:13 +0200)] 
Test ShaarliAdminController

3 years agoProcess password change controller through Slim
ArthurHoaro [Wed, 27 May 2020 11:35:48 +0000 (13:35 +0200)] 
Process password change controller through Slim

3 years agoProcess tools page through Slim controller
ArthurHoaro [Fri, 22 May 2020 11:47:02 +0000 (13:47 +0200)] 
Process tools page through Slim controller

3 years agoInitialize admin Slim controllers
ArthurHoaro [Fri, 22 May 2020 11:20:31 +0000 (13:20 +0200)] 
Initialize admin Slim controllers

  - Reorganize visitor controllers
  - Fix redirection with Slim's requests base path
  - Fix daily links

3 years agoProcess session filters through Slim controllers
ArthurHoaro [Fri, 22 May 2020 09:02:56 +0000 (11:02 +0200)] 
Process session filters through Slim controllers

Including:
  - visibility
  - links per page
  - untagged only

3 years agoProcess remove tag endpoint through Slim controller
ArthurHoaro [Wed, 20 May 2020 12:38:31 +0000 (14:38 +0200)] 
Process remove tag endpoint through Slim controller

3 years agoRefactor front controller tests to create container mock using a trait
ArthurHoaro [Wed, 20 May 2020 10:43:40 +0000 (12:43 +0200)] 
Refactor front controller tests to create container mock using a trait

3 years agoProcess OpenSearch controller through Slim
ArthurHoaro [Wed, 20 May 2020 08:47:20 +0000 (10:47 +0200)] 
Process OpenSearch controller through Slim

Also it was missing on the default template feeds

3 years agoRSS/ATOM feeds: process through Slim controller
ArthurHoaro [Mon, 18 May 2020 15:17:36 +0000 (17:17 +0200)] 
RSS/ATOM feeds: process through Slim controller

3 years agoMake FeedBuilder instance creation independant of the request stack
ArthurHoaro [Mon, 18 May 2020 11:03:13 +0000 (13:03 +0200)] 
Make FeedBuilder instance creation independant of the request stack

3 years agoRemove legacy handling of /add-tag route
ArthurHoaro [Mon, 18 May 2020 10:21:43 +0000 (12:21 +0200)] 
Remove legacy handling of /add-tag route

3 years agoPHP 7.1 compatibility
ArthurHoaro [Sun, 17 May 2020 13:45:26 +0000 (15:45 +0200)] 
PHP 7.1 compatibility

3 years agoProcess Daily RSS feed through Slim controller
ArthurHoaro [Sun, 17 May 2020 12:16:32 +0000 (14:16 +0200)] 
Process Daily RSS feed through Slim controller

The daily RSS template has been entirely rewritten to handle the whole feed through the template engine.

3 years agoSlim daily: minor bugfix with empty data
ArthurHoaro [Sun, 17 May 2020 09:29:17 +0000 (11:29 +0200)] 
Slim daily: minor bugfix with empty data

3 years agoSlim daily: support legacy query parameter
ArthurHoaro [Sun, 17 May 2020 09:11:57 +0000 (11:11 +0200)] 
Slim daily: support legacy query parameter

3 years agoProcess daily page through Slim controller
ArthurHoaro [Sun, 17 May 2020 09:06:39 +0000 (11:06 +0200)] 
Process daily page through Slim controller

3 years agoProcess tag list page through Slim controller
ArthurHoaro [Sat, 16 May 2020 12:56:22 +0000 (14:56 +0200)] 
Process tag list page through Slim controller

3 years agoFew optimizations and code readability for tag cloud controller
ArthurHoaro [Sat, 16 May 2020 11:33:39 +0000 (13:33 +0200)] 
Few optimizations and code readability for tag cloud controller

3 years agoHandle tag filtering in the Bookmark service
ArthurHoaro [Sat, 16 May 2020 11:13:00 +0000 (13:13 +0200)] 
Handle tag filtering in the Bookmark service

3 years agoWorking version before optimization
ArthurHoaro [Sat, 16 May 2020 10:55:29 +0000 (12:55 +0200)] 
Working version before optimization

3 years agoProcess tag cloud page through Slim controller
ArthurHoaro [Sun, 26 Jan 2020 13:35:25 +0000 (14:35 +0100)] 
Process tag cloud page through Slim controller

3 years agoSlim router: handle add tag route
ArthurHoaro [Tue, 12 May 2020 10:44:48 +0000 (12:44 +0200)] 
Slim router: handle add tag route

3 years agoProcess logout through Slim controller
ArthurHoaro [Thu, 23 Jan 2020 20:52:03 +0000 (21:52 +0100)] 
Process logout through Slim controller

3 years agoMigrate cache purge function to a proper class
ArthurHoaro [Thu, 23 Jan 2020 20:13:41 +0000 (21:13 +0100)] 
Migrate cache purge function to a proper class

And update dependencies and tests.

Note that SESSION['tags'] has been removed a log ago

3 years agoProcess picwall rendering through Slim controller + UT
ArthurHoaro [Sun, 26 Jan 2020 10:15:15 +0000 (11:15 +0100)] 
Process picwall rendering through Slim controller + UT