]>
git.immae.eu Git - github/shaarli/Shaarli.git/log
ArthurHoaro [Tue, 19 Jan 2021 10:18:56 +0000 (11:18 +0100)]
Fix: error when using bulk shaare with a single URL
Make sure that header metadata associated with permalink is only used in linklist template.
Fixes #1686
ArthurHoaro [Tue, 19 Jan 2021 09:34:11 +0000 (10:34 +0100)]
Inject current template name in templates
Use either legacy key _PAGE_ or new 'template' one.
Related to https://github.com/kalvn/Shaarli-Material/issues/118
nodiscc [Mon, 4 Jan 2021 17:51:05 +0000 (17:51 +0000)]
Merge pull request #1675 from yudete/master
Update Japanese translations
yudete [Mon, 4 Jan 2021 09:55:03 +0000 (18:55 +0900)]
Update Japanese translations
yude [Mon, 4 Jan 2021 09:51:10 +0000 (18:51 +0900)]
Merge pull request #2 from shaarli/master
Merge fork source
ArthurHoaro [Sun, 3 Jan 2021 10:43:54 +0000 (11:43 +0100)]
Merge pull request #1671 from ArthurHoaro/fix/plugin-colors-update
Fix default_colors plugin: update CSS file on color change
ArthurHoaro [Sun, 3 Jan 2021 10:43:31 +0000 (11:43 +0100)]
Merge pull request #1672 from ArthurHoaro/feature/api-parse-tags-string
ArthurHoaro [Tue, 29 Dec 2020 11:50:23 +0000 (12:50 +0100)]
API: POST/PUT Link - properly parse tags string
Even though the documentation specify that tags should be passed as an array, tags string is actually allowed. So this adds a proper parsing with configured separator.
Related to #1651
ArthurHoaro [Tue, 29 Dec 2020 10:59:14 +0000 (11:59 +0100)]
Fix default_colors plugin: update CSS file on color change
Last update of this plugin remove the save_plugin_parameters hook.
Fixes #1657
ArthurHoaro [Tue, 29 Dec 2020 10:44:10 +0000 (11:44 +0100)]
Merge pull request #1664 from ArthurHoaro/fix/metadata-sync
Fix: synchronous metadata retrieval is failing in strict mode
ArthurHoaro [Tue, 29 Dec 2020 10:43:39 +0000 (11:43 +0100)]
Merge pull request #1665 from ArthurHoaro/fix/metadata-regexes-2
Fix metadata extract regex (2)
ArthurHoaro [Tue, 29 Dec 2020 10:43:00 +0000 (11:43 +0100)]
Merge pull request #1666 from ArthurHoaro/feature/daily-rss-cache
Daily RSS Cache: invalidate cache base on the date
ArthurHoaro [Mon, 28 Dec 2020 23:36:22 +0000 (00:36 +0100)]
Merge pull request #1669 from leyrer/master
Typo fix line 76 'Authentication' -> Authorization
leyrer [Sat, 26 Dec 2020 12:45:01 +0000 (13:45 +0100)]
Typo fix line 76 'Authentication' -> Authorization
ArthurHoaro [Thu, 17 Dec 2020 14:43:33 +0000 (15:43 +0100)]
Daily RSS Cache: invalidate cache base on the date
Currently the cache is only invalidated when the datastore changes, while it should rely on selected period of time.
Fixes #1659
ArthurHoaro [Thu, 17 Dec 2020 12:56:24 +0000 (13:56 +0100)]
Fix metadata extract regex (2)
Reference: https://stackoverflow.com/questions/
8055727 /negating-a-backreference-in-regular-expressions
Fixes #1656
ArthurHoaro [Wed, 16 Dec 2020 15:04:53 +0000 (16:04 +0100)]
Merge pull request #1644 from ArthurHoaro/fix/daily-rss
Daily RSS - Remove relative description (today, yesterday)
ArthurHoaro [Wed, 16 Dec 2020 15:04:15 +0000 (16:04 +0100)]
Merge pull request #1645 from ArthurHoaro/feature/plugin-register-route
Plugin system: allow plugins to provide custom routes
ArthurHoaro [Wed, 16 Dec 2020 15:02:14 +0000 (16:02 +0100)]
Merge pull request #1658 from dougbreaux/master
newer alpine (for newer PHP) and apk upgrade #1655
ArthurHoaro [Wed, 16 Dec 2020 15:01:32 +0000 (16:01 +0100)]
Merge pull request #1652 from ArthurHoaro/fix/failing-mutex
Fix: soft fail if the mutex is not working
ArthurHoaro [Wed, 16 Dec 2020 15:00:35 +0000 (16:00 +0100)]
Merge pull request #1661 from shaarli/dependabot/npm_and_yarn/ini-1.3.7
ArthurHoaro [Wed, 16 Dec 2020 14:59:46 +0000 (15:59 +0100)]
Merge pull request #1660 from e2jk/patch-1
Upgrade alpine from 3.8 to 3.10 in armhf Dockerfile
ArthurHoaro [Wed, 16 Dec 2020 13:04:32 +0000 (14:04 +0100)]
Fix: synchronous metadata retrieval is failing in strict mode
Metadata can now only be string or null.
Fixes #1653
dependabot[bot] [Fri, 11 Dec 2020 03:39:18 +0000 (03:39 +0000)]
Bump ini from 1.3.5 to 1.3.7
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)
Signed-off-by: dependabot[bot] <support@github.com>
Doug Breaux [Mon, 7 Dec 2020 04:02:34 +0000 (22:02 -0600)]
remove apk upgrade #1655
Emilien Klein [Sun, 6 Dec 2020 20:02:39 +0000 (21:02 +0100)]
Upgrade alpine from 3.8 to 3.10 in armhf Dockerfile
The Docker for armhf doesn't build anymore on Alpine 3.8, upgrading to 3.10.
Building works fine on a Rapsberry Pi 4 running Raspbian GNU/Linux 10 (buster)
This is the error with 3.8:
```
[2/4] Fetching packages...
error css-loader@4.3.0: The engine "node" is incompatible with this module. Expected version ">= 10.13.0".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
The command '/bin/sh -c apk --update --no-cache add yarn nodejs-current python2 build-base && cd /shaarli && yarn install && yarn run build && rm -rf node_modules' returned a non-zero code: 1
```
Not upgrading to 3.11, due to this error:
```
2/4] Fetching packages...
error browserslist@4.14.3: The engine "node" is incompatible with this module. Expected version "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7". Got "13.1.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
The command '/bin/sh -c apk --update --no-cache add yarn nodejs-current python2 build-base && cd /shaarli && yarn install && yarn run build && rm -rf node_modules' returned a non-zero code: 1
```
Not upgrading to 3.12 either, due to this error:
```
ERROR: unsatisfiable constraints:
py2-pip (missing):
required by: world[py2-pip]
The command '/bin/sh -c apk --update --no-cache add py2-pip && cd /usr/src/app/shaarli && pip install --no-cache-dir mkdocs && mkdocs build --clean' returned a non-zero code: 1
```
There's probably a way to have Python2 pip installed on 3.12, but I suppose other issues would arise (such as the one happening with 3.11), so only proposing to upgrade to 3.10 now. This would probably be looked at more in detail when merging the amd64 and arm/v7 Docker builds, see #1496.
Doug Breaux [Fri, 4 Dec 2020 22:12:39 +0000 (16:12 -0600)]
newer alpine (for newer PHP) and apk upgrade #1655
ArthurHoaro [Tue, 24 Nov 2020 12:28:17 +0000 (13:28 +0100)]
Fix: soft fail if the mutex is not working
And display the error in server admin page
Fixes #1650
ArthurHoaro [Tue, 24 Nov 2020 12:39:09 +0000 (13:39 +0100)]
Merge pull request #1648 from nodiscc/fix-ConfigureControllerTest
ConfigureControllerTest.php: update expected languages number to 6
ArthurHoaro [Tue, 24 Nov 2020 12:35:37 +0000 (13:35 +0100)]
chmod -x russian translation file
nodiscc [Sun, 22 Nov 2020 11:06:14 +0000 (11:06 +0000)]
ConfigureControllerTest.php: update expected languages number to 6
Following the addition of russian translations in #1642
Fixes https://github.com/shaarli/Shaarli/issues/1647
ArthurHoaro [Tue, 17 Nov 2020 12:13:49 +0000 (13:13 +0100)]
Merge pull request #1642 from prog-it/master
ArthurHoaro [Sun, 15 Nov 2020 11:48:16 +0000 (12:48 +0100)]
Merge pull request #1639 from ArthurHoaro/doc/fix-release
Doc: fix missing merge on Release page
ArthurHoaro [Tue, 27 Oct 2020 18:23:45 +0000 (19:23 +0100)]
Plugin system: allow plugins to provide custom routes
- 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
ArthurHoaro [Sun, 15 Nov 2020 11:05:08 +0000 (12:05 +0100)]
Daily RSS - Remove relative description (today, yesterday)
It is not useful for the RSS feed, as every new entry will be 'yesterday', and it requires an update the next day.
prog-it [Sun, 15 Nov 2020 01:16:55 +0000 (06:16 +0500)]
Add russian language file
prog-it [Sat, 14 Nov 2020 02:45:10 +0000 (07:45 +0500)]
Add russian language selection
ArthurHoaro [Thu, 12 Nov 2020 12:16:20 +0000 (13:16 +0100)]
Doc: fix missing merge on Release page
ArthurHoaro [Thu, 12 Nov 2020 12:05:19 +0000 (13:05 +0100)]
Update badge versions
ArthurHoaro [Thu, 12 Nov 2020 12:00:45 +0000 (13:00 +0100)]
Merge pull request #1638 from ArthurHoaro/changelog/v0.12.1
CHANGELOG v0.12.1
ArthurHoaro [Thu, 12 Nov 2020 11:56:22 +0000 (12:56 +0100)]
CHANGELOG v0.12.1
ArthurHoaro [Tue, 10 Nov 2020 09:46:04 +0000 (10:46 +0100)]
Merge pull request #1635 from ArthurHoaro/feature/phpcs
ArthurHoaro [Tue, 10 Nov 2020 09:45:50 +0000 (10:45 +0100)]
Merge pull request #1637 from ArthurHoaro/fix/server-admin-update-check
Server admin: do not retrieve latest version without update_check
ArthurHoaro [Tue, 10 Nov 2020 09:45:22 +0000 (10:45 +0100)]
Merge pull request #1636 from ArthurHoaro/fix/vintage-async-metadata
ArthurHoaro [Tue, 10 Nov 2020 09:45:05 +0000 (10:45 +0100)]
Merge pull request #1630 from ArthurHoaro/fix/apache-config
Reviewed Apache configuration
ArthurHoaro [Tue, 10 Nov 2020 09:44:50 +0000 (10:44 +0100)]
Merge pull request #1634 from ArthurHoaro/fix/docker-compose
Docker-compose: fix SSL certificate + add parameter for Docker tag
ArthurHoaro [Tue, 10 Nov 2020 09:44:29 +0000 (10:44 +0100)]
Merge pull request #1628 from ArthurHoaro/fix/nginx-config
Reviewed nginx configuration
ArthurHoaro [Mon, 9 Nov 2020 13:37:45 +0000 (14:37 +0100)]
Server admin: do not retrieve latest version without update_check
If the setting 'updates.check_updates' is disabled, do not retrieve the latest version on server administration page.
Additionally, updated default values for
- updates.check_updates from false to true
- updates.check_updates_branch from stable to latest
ArthurHoaro [Mon, 9 Nov 2020 11:46:43 +0000 (12:46 +0100)]
Vintage theme: fix routes in daily page
ArthurHoaro [Mon, 9 Nov 2020 11:46:24 +0000 (12:46 +0100)]
Vintage theme: display global messages
ArthurHoaro [Mon, 9 Nov 2020 11:36:04 +0000 (12:36 +0100)]
Vintage theme: support async metadata retrieval
ArthurHoaro [Mon, 9 Nov 2020 11:17:40 +0000 (12:17 +0100)]
Update Static Analysis documentation
ArthurHoaro [Mon, 9 Nov 2020 09:56:02 +0000 (10:56 +0100)]
Run PHPCS during Travis CI checks + disable xdebug
ArthurHoaro [Sun, 8 Nov 2020 14:02:45 +0000 (15:02 +0100)]
Manually fix remaining PHPCS errors
ArthurHoaro [Tue, 22 Sep 2020 18:25:47 +0000 (20:25 +0200)]
Apply PHP Code Beautifier on source code for linter automatic fixes
ArthurHoaro [Mon, 9 Nov 2020 09:36:13 +0000 (10:36 +0100)]
Docker-compose: fix SSL certificate + add parameter for Docker tag
Use envvar SHAARLI_VIRTUAL_HOST for Traefik's docker.domain parameter instead of localhost (I'm not sure if did work at some point).
Add an environment variable to choose which Docker tag to use instead of using master by default.
Fixes #1632
ArthurHoaro [Tue, 22 Sep 2020 18:16:23 +0000 (20:16 +0200)]
Coding style: switch PHPCS to PSR12
Also temporarily ignore test code (one step at a time).
Reference: https://www.php-fig.org/psr/psr-12/
Related to #95
ArthurHoaro [Sun, 8 Nov 2020 13:07:33 +0000 (14:07 +0100)]
Merge pull request #1621 from ArthurHoaro/feature/tag-separators
ArthurHoaro [Sun, 8 Nov 2020 13:06:45 +0000 (14:06 +0100)]
Merge pull request #1629 from ArthurHoaro/fix/demo-vimeo
Replace vimeo link in demo bookmarks due to IP ban on the demo instance
ArthurHoaro [Sun, 8 Nov 2020 13:06:38 +0000 (14:06 +0100)]
Merge pull request #1631 from ArthurHoaro/fix/html-extract-quote-fix
Fix an issue truncating extracted metadata content
ArthurHoaro [Sun, 8 Nov 2020 12:54:39 +0000 (13:54 +0100)]
Fix an issue truncating extracted metadata content
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.
ArthurHoaro [Sun, 8 Nov 2020 12:13:13 +0000 (13:13 +0100)]
Reviewed Apache configuration
(in documentation)
For security purpose, block access to any static file not matching the list of allowed extensions.
It allows us to remove the specific retriction on dotfiles, and fix Apache part of #1608.
ArthurHoaro [Sun, 8 Nov 2020 10:58:17 +0000 (11:58 +0100)]
Replace vimeo link in demo bookmarks due to IP ban on the demo instance
Fixes #1148
ArthurHoaro [Sat, 7 Nov 2020 13:27:49 +0000 (14:27 +0100)]
Reviewed nginx configuration
Both in documentation and Docker image.
For security purpose, it no longer allow to access static files through
the main nginx *location*. Static files are served if their extension
matches the whitelist.
As a side effect, we no longer need specific restrictions, and
therefore it fixes the nginx part of #1608.
ArthurHoaro [Fri, 6 Nov 2020 09:00:03 +0000 (10:00 +0100)]
Merge pull request #1627 from ArthurHoaro/fix/unexpected-error
Display error details even with dev.debug set to false
ArthurHoaro [Thu, 5 Nov 2020 18:45:41 +0000 (19:45 +0100)]
Display error details even with dev.debug set to false
It makes more sense to display the error even if it's unexpected.
Only for logged in users.
Fixes #1606
ArthurHoaro [Thu, 5 Nov 2020 18:08:38 +0000 (19:08 +0100)]
ESLint
ArthurHoaro [Thu, 5 Nov 2020 17:16:52 +0000 (18:16 +0100)]
Tags separator: vintage theme compatibility
ArthurHoaro [Tue, 3 Nov 2020 12:35:27 +0000 (13:35 +0100)]
Bump shaarli/netscape-bookmark-parser dependency version
ArthurHoaro [Thu, 22 Oct 2020 14:21:03 +0000 (16:21 +0200)]
Feature: support any tag separator
So it allows to have multiple words tags.
Breaking change: commas ',' are no longer a default separator.
Fixes #594
ArthurHoaro [Thu, 5 Nov 2020 16:54:14 +0000 (17:54 +0100)]
Merge pull request #1626 from ArthurHoaro/fix/vintage-webpack
Webpack: fix vintage theme images include
ArthurHoaro [Thu, 5 Nov 2020 16:44:33 +0000 (17:44 +0100)]
Webpack: fix vintage theme images include
ArthurHoaro [Thu, 5 Nov 2020 15:58:24 +0000 (16:58 +0100)]
Merge pull request #1625 from ArthurHoaro/fix/delete-confirm-popup
Fix confirm popup before bookmark deletion
ArthurHoaro [Thu, 5 Nov 2020 15:32:15 +0000 (16:32 +0100)]
Fix confirm popup before bookmark deletion
Regression introduced by #1596
Fixes #1623
ArthurHoaro [Thu, 5 Nov 2020 15:47:17 +0000 (16:47 +0100)]
Merge pull request #1620 from ArthurHoaro/feature/no-auto-link
Default formatter: add a setting to disable auto-linkification
ArthurHoaro [Thu, 5 Nov 2020 15:36:34 +0000 (16:36 +0100)]
Merge pull request #1624 from ArthurHoaro/fix/delete-redirect
Fix: redirect to referrer after bookmark deletion
ArthurHoaro [Thu, 5 Nov 2020 15:36:04 +0000 (16:36 +0100)]
Merge pull request #1619 from ArthurHoaro/fix/translations
Fix French translation
ArthurHoaro [Thu, 5 Nov 2020 15:14:22 +0000 (16:14 +0100)]
Fix: redirect to referrer after bookmark deletion
Except if the referer points to a permalink (which has been deleted).
Fixes #1622
ArthurHoaro [Tue, 3 Nov 2020 11:38:38 +0000 (12:38 +0100)]
Default formatter: add a setting to disable auto-linkification
+ update documentation
+ single parameter for both URL and hashtags
Fixes #1094
ArthurHoaro [Tue, 3 Nov 2020 10:58:02 +0000 (11:58 +0100)]
Fix French translation
2 missing key + 1 wrong translation
Fixes #1571
ArthurHoaro [Tue, 3 Nov 2020 10:46:54 +0000 (11:46 +0100)]
Merge pull request #1610 from ArthurHoaro/fix/wallabag
Plugin wallabag: minor improvements
ArthurHoaro [Mon, 2 Nov 2020 18:42:20 +0000 (19:42 +0100)]
Merge pull request #1618 from ArthurHoaro/fix/ut-daily-date-1-digit
UT: fix formatting issue when the current day has a single digit
ArthurHoaro [Mon, 2 Nov 2020 18:22:50 +0000 (19:22 +0100)]
UT: fix formatting issue when the current day has a single digit
ArthurHoaro [Thu, 29 Oct 2020 15:03:07 +0000 (16:03 +0100)]
Merge pull request #1616 from dimtion/fix-api-redirect
API postLink: change relative path to absolute path
Loïc Carr [Thu, 29 Oct 2020 02:57:40 +0000 (19:57 -0700)]
postLink: change relative path to absolute path
ArthurHoaro [Wed, 28 Oct 2020 13:18:25 +0000 (14:18 +0100)]
Merge pull request #1615 from ArthurHoaro/hotfix/save-redirect
Remove unnecessary escape of referer
ArthurHoaro [Wed, 28 Oct 2020 13:13:50 +0000 (14:13 +0100)]
Remove unnecessary escape of referer
Fixes #1611
ArthurHoaro [Wed, 28 Oct 2020 13:08:08 +0000 (14:08 +0100)]
Merge pull request #1614 from ArthurHoaro/hotfix/php71-compat-login
Fix compatiliby issue on login with PHP 7.1
ArthurHoaro [Wed, 28 Oct 2020 13:02:08 +0000 (14:02 +0100)]
Fix compatiliby issue on login with PHP 7.1
session_set_cookie_params does not return any value in PHP 7.1
ArthurHoaro [Wed, 28 Oct 2020 12:22:40 +0000 (13:22 +0100)]
Merge pull request #1613 from ArthurHoaro/hotfix/404-not-authorized
Raise 404 error instead of 500 if permalink access is denied
ArthurHoaro [Wed, 28 Oct 2020 11:54:52 +0000 (12:54 +0100)]
Raise 404 error instead of 500 if permalink access is denied
ArthurHoaro [Wed, 28 Oct 2020 11:30:19 +0000 (12:30 +0100)]
Merge pull request #1612 from ArthurHoaro/hotfix/simplexml
Include php-simplexml in Docker image
ArthurHoaro [Wed, 28 Oct 2020 11:25:52 +0000 (12:25 +0100)]
Include php-simplexml in Docker image
Composer 2.0 is now blocking everything if requirements are not met
ArthurHoaro [Sat, 24 Oct 2020 14:25:06 +0000 (16:25 +0200)]
Plugin wallabag: minor improvements
- hide the wallabag icon for logged out users
- set API V2 as default parameter
- fix URL encoding issue with special chars
Fixes #1147
ArthurHoaro [Tue, 27 Oct 2020 19:18:18 +0000 (20:18 +0100)]
Merge pull request #1587 from ArthurHoaro/feature/batch-bookmark-creation
ArthurHoaro [Fri, 23 Oct 2020 11:28:02 +0000 (13:28 +0200)]
Bulk creation: ignore blank lines
ArthurHoaro [Fri, 23 Oct 2020 10:53:49 +0000 (12:53 +0200)]
Bulk creation: displays a progress bar when saving all displayed forms
ArthurHoaro [Fri, 23 Oct 2020 10:29:52 +0000 (12:29 +0200)]
Bulk creation: improve performances using memoization
Reduced additional processing time per links from ~40ms to ~5ms
ArthurHoaro [Sun, 11 Oct 2020 11:34:38 +0000 (13:34 +0200)]
Bulk creation: fix private status based on the first form
ArthurHoaro [Sat, 10 Oct 2020 15:40:26 +0000 (17:40 +0200)]
Feature: bulk creation of bookmarks
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