ArthurHoaro
270da70532
Return true after update ReorderDatastore to complete it
2017-11-11 16:51:10 +01:00
ArthurHoaro
91c807d275
Increase buffer size for cURL download
...
1kB chunk size has caused me a lot of trouble with Travis which wasn't completing the download
2017-11-11 16:49:57 +01:00
ArthurHoaro
ece7db113a
Improve messages if there is no plugin or parameter available in the admin page
...
Fixes #931
2017-11-11 11:01:28 +01:00
ArthurHoaro
488786d3e4
Merge pull request #1015 from ArthurHoaro/theme/tag-cloud-center
...
Fix alignement and better clarity for 'List all links with those tags' button
2017-11-11 10:55:54 +01:00
VirtualTam
dd883aaf09
Improve SessionManager constructor and tests
...
Relates to https://github.com/shaarli/Shaarli/pull/1005
Changed:
- pass a copy of the ConfigManager instance instead of a reference
- move FakeConfigManager to a dedicated file
- update tests
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
2017-11-08 20:26:03 +01:00
ArthurHoaro
055ce4bd19
Fix alignement and better clarity for 'List all links with those tags' button
...
Fix CSS class typo and display the link as a button
Fixes #999
2017-11-08 19:21:00 +01:00
ArthurHoaro
b14d34d2c7
Merge pull request #1012 from ArthurHoaro/hotfix/urlencode
...
Don't URL encode description links if parameter 'redirector.encode_url' is set to false
2017-11-08 18:54:32 +01:00
ArthurHoaro
e813f97b1a
Merge pull request #1013 from ArthurHoaro/theme/remove-redirector
...
Remove redirector setting from Configure page
2017-11-08 18:53:32 +01:00
ArthurHoaro
a89f423dfa
Remove redirector setting from Configure page
...
This feature is pretty much useless these days as browsers have builtin features to support the thag "<meta name='referrer'", so keep the setting page as clean as possible.
Also, avoid advertising it too much, because I'm pretty sure it doesn't work very well with markdown descriptions (as Parsedown have some trouble regarding URL detection (without MarkDown link tag)).
2017-11-07 20:31:55 +01:00
ArthurHoaro
fd08b50a80
Don't URL encode description links if parameter 'redirector.encode_url' is set to false
2017-11-07 20:23:58 +01:00
VirtualTam
d12b2a08c8
Merge pull request #1009 from kalvn/patch-1
...
Addition of shaarli2mastodon plugin.
2017-11-02 10:03:06 +01:00
kalvn
f8623666aa
Addition of shaarli2mastodon plugin.
2017-11-01 18:36:11 +01:00
ArthurHoaro
b7fdbfa789
Merge pull request #978 from ArthurHoaro/theme/improvements
...
Theme improvements: move thumbnails to the right and reduce margins overall
2017-10-28 15:23:54 +02:00
ArthurHoaro
94c1756562
Theme improvements: move thumbnails to the right and reduce margins overall
...
* Reduce multiple margins (markdown, space between block, etc.)
* Move thumbnails to the right in the same line as the title
* Move edit button as floating to the left
* Move fold/collapse and checkbox buttons as floating to the right
* Add a bunch of HTML ID in the linklist template
Relates to #877
2017-10-28 15:11:57 +02:00
ArthurHoaro
d65342e304
Extract the title/charset during page download, and check content type
...
Use CURLOPT_WRITEFUNCTION to check the response code and content type (only allow HTML).
Also extract the title and charset during downloading chunk of data, and stop it when everything has been extracted.
Closes #579
2017-10-28 14:35:49 +02:00
ArthurHoaro
0926d26390
Merge pull request #962 from ArthurHoaro/feature/perfs2
...
Performances: reorder links when they're written instead of read
2017-10-28 12:44:44 +02:00
VirtualTam
88d38cb290
Merge pull request #1005 from virtualtam/refactor/authentication
...
Refactor session management utilities
2017-10-25 22:49:22 +02:00
VirtualTam
ae7c954b12
Improve SessionManager tests
...
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
2017-10-24 22:01:02 +02:00
nodiscc
6bc7afab91
Merge pull request #1006 from shaarli/doc-cve-2017-15215
...
Changelog: link to CVE-2017-15215, give attribution
2017-10-24 15:12:19 +02:00
nodiscc
fc2beb8c6a
Changelog: link to CVE-2017-15215, give attribution
2017-10-23 01:06:11 +02:00
VirtualTam
fd7d84616d
Move session ID check to SessionManager
...
Relates to https://github.com/shaarli/Shaarli/issues/324
Changed:
- `is_session_id_valid()` -> `SessionManager::checkId()`
- update tests
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
2017-10-22 19:54:44 +02:00
VirtualTam
ebd650c06c
Refactor session token management
...
Relates to https://github.com/shaarli/Shaarli/issues/324
Added:
- `SessionManager` class to group session-related features
- unit tests
Changed:
- `getToken()` -> `SessionManager->generateToken()`
- `tokenOk()` -> `SessionManager->checkToken()`
- inject a `$token` parameter to `PageBuilder`'s constructor
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
2017-10-22 19:19:46 +02:00
VirtualTam
e648f62b4f
Merge pull request #1004 from virtualtam/doc/docker/reverse-proxy
...
Documentation: add reverse proxy examples for Docker images
2017-10-22 17:07:45 +02:00
VirtualTam
1a2c5ddeb5
Documentation: add reverse proxy examples for Docker images
...
Closes https://github.com/shaarli/Shaarli/issues/888
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
2017-10-22 15:03:20 +02:00
ArthurHoaro
2e6314af31
Merge pull request #1002 from ArthurHoaro/doc/install-docker
...
Docs: mention Docker in the download & install page
2017-10-22 14:56:26 +02:00
ArthurHoaro
d8acf85504
Merge pull request #871 from ArthurHoaro/feature/translation
...
Shaarli's translation
2017-10-22 13:19:51 +02:00
ArthurHoaro
1a47014f99
Translation documentation
2017-10-22 13:16:59 +02:00
ArthurHoaro
6a65bc5798
Translations : Working demo example of translation extension
2017-10-22 13:16:56 +02:00
ArthurHoaro
f39580c6fd
Add language selection in the configure page of the default theme
2017-10-22 13:16:53 +02:00
VirtualTam
efd3a6405a
Merge pull request #1001 from virtualtam/docker/latest
...
docker: add 'latest' image
2017-10-22 13:00:47 +02:00
ArthurHoaro
d637976329
Use makefile target to generate MO file and remove it from git
2017-10-22 12:56:55 +02:00
ArthurHoaro
40ec173e68
JS translation
2017-10-22 12:56:55 +02:00
ArthurHoaro
12266213d0
Shaarli's translation
...
* translation system and unit tests
* Translations everywhere
Dont use translation merge
It is not available with PHP builtin gettext, so it would have lead to inconsistency.
2017-10-22 12:55:03 +02:00
ArthurHoaro
cfcc38192a
Doc: mention Docker docs in the download & install page
2017-10-22 12:50:04 +02:00
VirtualTam
fab0f4e576
docker: add 'latest' image
...
This implies the following changes:
- `shaarli/shaarli:latest` will now point to the `latest` release
- `shaarli/shaarli:master` will point to the `master` branch
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
2017-10-21 18:44:19 +02:00
VirtualTam
72cfe44436
Merge pull request #846 from virtualtam/docker/alpine
...
Docker: switch to Alpine Linux
2017-10-21 18:00:08 +02:00
nodiscc
919c980344
documentation: update tag cloud/filtering doc
...
Ref. https://github.com/shaarli/Shaarli/issues/959
2017-10-19 18:06:07 +02:00
VirtualTam
1f40141a69
Merge pull request #996 from virtualtam/fix/user-css
...
Fix: enable access to data/user.css (Apache 2.2 & 2.4)
2017-10-17 22:39:29 +02:00
VirtualTam
710291b164
Fix: enable access to data/user.css (Apache 2.2 & 2.4)
...
Relates to https://github.com/shaarli/Shaarli/issues/872
Relates to https://github.com/shaarli/Shaarli/issues/993
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
2017-10-16 19:41:22 +02:00
VirtualTam
a93b620a35
EditorConfig: add .htaccess support
...
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
2017-10-16 19:38:33 +02:00
VirtualTam
839566500c
Merge pull request #995 from virtualtam/lint/editorconfig
...
Add EditorConfig configuration
2017-10-16 19:18:29 +02:00
VirtualTam
e9619cc4f8
Add EditorConfig configuration
...
EditorConfig allows specifying indentation, line feed and encoding
properties according to the type of file being edited.
Most editors support it out-of-the-box, or can benefit from it through a
plugin.
See:
- http://editorconfig.org/
- https://github.com/editorconfig/editorconfig
- https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
2017-10-11 21:35:17 +02:00
VirtualTam
9f32160c32
Merge pull request #992 from ArthurHoaro/feature/import-history
...
Don't write History for link import
2017-10-08 16:35:57 +02:00
VirtualTam
0a496258af
Merge pull request #990 from danieljakots/master
...
Fix link in Upgrade-and-migration.md
2017-10-08 16:35:33 +02:00
ArthurHoaro
66e74d50d3
Don't write History for link import
...
With large imports it has a large impact on performances and isn't really useful.
Instead, write an IMPORT event, which let client using the history service resync its DB.
-> 15k link import done in 6 seconds.
Fixes #985
2017-10-07 16:40:16 +02:00
Daniel Jakots
ba6245670d
Fix link in Upgrade-and-migration.md
2017-10-07 09:35:40 -04:00
ArthurHoaro
78865393a6
Badge version
2017-10-07 12:27:50 +02:00
ArthurHoaro
a01437f9e1
Merge pull request #988 from ArthurHoaro/changelog-0.9.2
...
Changelog 0.9.2 + AUTHORS
2017-10-07 12:12:34 +02:00
ArthurHoaro
6770135b0a
Update AUTHORS
...
Signed-off-by: ArthurHoaro <arthur@hoa.ro>
2017-10-07 12:10:23 +02:00
ArthurHoaro
6f2c02a0ce
Changelog v0.9.2
2017-10-07 12:05:07 +02:00