| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \
| |/
|/| |
New init function for plugins, supports errors reporting
|
| |
| |
| |
| |
| |
| |
| |
| | |
All plugins can optionally add an init function named `pluginname_init()` which is called when the plugin is loaded.
This function is aware of the config, and can return initialization errors, which are displayed in the header template.
Note that the previous error system hack no longer work.
|
|\ \
| |/
|/| |
Bugfix: display plugin parameter description only if it exists
|
|/ |
|
|\
| |
| |
| |
| | |
Archive.org plugin: do not propose archival of private notes
Fixes #637
|
| |
| |
| |
| | |
Fixes #637
|
|\ \
| | |
| | | |
Save link update dates and render it in templates and feeds
|
| | |
| | |
| | |
| | |
| | | |
RSS doesn't support updated date for items, so we use the ATOM extension.
Updated dates also bump the global update
|
| | |
| | |
| | |
| | | |
It can be used as a timestamp by templates under the key 'updated_timestamp'.
|
|\ \ \
| | | |
| | | | |
Add trusted IPs in config and try to ban forwarded IP on failed login
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Add a new settings (which needs to be manually set): `security.trusted_proxies`
* On login failure, if the `REMOTE_ADDR` is in the trusted proxies, try to retrieve the forwarded IP in headers.
* If found, the client address is added in ipbans, else we do nothing.
Fixes #409
|
|\ \ \
| |_|/
|/| | |
Bump version to v0.8.0
|
|/ /
| |
| |
| | |
Signed-off-by: ArthurHoaro <arthur@hoa.ro>
|
|\ \
| | |
| | | |
Add a missing backslash in stable Dockerfile version
|
|/ / |
|
|\ \
| | |
| | | |
composer: display an error message if the autoload script is missing
|
|/ /
| |
| |
| |
| |
| |
| | |
Closes https://github.com/shaarli/Shaarli/issues/645
Relates to https://github.com/shaarli/Shaarli/issues/607
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
| |
| |
| |
| |
| |
| | |
Fixes https://github.com/shaarli/Shaarli/issues/642
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
| | |
|
|\ \
| | |
| | | |
Docker: update dependencies, introduce Composer (stable branch)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Relates to https://github.com/shaarli/Shaarli/issues/607
Relates to https://github.com/shaarli/Shaarli/pull/612
Relates to https://github.com/shaarli/Shaarli/pull/624
Relates to https://github.com/shaarli/Shaarli/pull/633
See https://github.com/shaarli/Shaarli/wiki/Server-requirements
Modifications:
- [prod][stable] refactor Dockerfile
- [prod][stable] set $TERM=dumb to avoid debconf-related issues
- [prod][stable] install ca-certificates
- [prod][stable] cleanup APT cache after installing packages
- [prod][stable] use Composer to resolve PHP dependencies
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|\ \ \
| |/ /
|/| | |
Docker: update dependencies, introduce Composer
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Relates to https://github.com/shaarli/Shaarli/issues/607
Relates to https://github.com/shaarli/Shaarli/pull/612
Relates to https://github.com/shaarli/Shaarli/pull/624
See https://github.com/shaarli/Shaarli/wiki/Server-requirements
Modifications:
- [all][env] set $TERM=dumb to avoid debconf-related issues
- [all][pkg] install ca-certificates
- [all][pkg] cleanup APT cache after installing packages
- [dev] refactor Dockerfile
- [prod][master] refactor Dockerfile
- [prod][master][php] use Composer to resolve PHP dependencies
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|\ \
| | |
| | | |
Add a description to plugin parameters
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Plugin parameter can contain a description in their meta file under the key:
parameter.<param_name>="<description>"
|
|\ \ \
| | | |
| | | | |
Fix: add missing final newlines, untabify text
|
|/ / /
| | |
| | |
| | | |
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|\ \ \
| | | |
| | | | |
Fix: ensure Internet Explorer bookmark dumps can be imported
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Relates to https://github.com/shaarli/Shaarli/issues/607
Modifications:
- [application][tests] NetscapeBookmarkUtils: more permissive doctype detection
The IE bookmark exports contain extra escape sequences, which can be observed
by binary comparison of the reference input data used in tests:
$ cmp -b -l -n 8 netscape_basic.htm internet_explorer_encoding.htm
1 74 < 357 M-o
2 41 ! 273 M-;
3 104 D 277 M-?
4 117 O 74 <
5 103 C 41 !
6 124 T 104 D
7 131 Y 117 O
8 120 P 103 C
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|\ \ \
| | | |
| | | | |
Fix: keep composer.json in release archives
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
Relates to https://github.com/shaarli/Shaarli/issues/607
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|\ \ \
| | | |
| | | | |
Refactor bookmark import using a generic Netscape parser
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Relates to #607
Relates to #608
Relates to #493 (abandoned)
Additions:
- use Composer's autoload to load 3rd-party dependencies under vendor/
Modifications:
- [import] replace the current parser with a generic, stable parser
- move code to application/NetscapeBookmarkUtils
- improve status report after parsing
- [router] use the same endpoint for both bookmark upload and import dialog
- [template] update bookmark import options
- allow adding tags to all imported links
- allow selecting the visibility (privacy) of imported links
- [tests] ensure bookmarks are properly parsed and imported in the LinkDB
- reuse reference input from the parser's test data
See:
- https://github.com/shaarli/netscape-bookmark-parser
- https://getcomposer.org/doc/01-basic-usage.md#autoloading
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
virtualtam/composer/shaarli/netscape-bookmark-parser
Composer: reference shaarli/netscape-bookmark-parser from Packagist
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Relates to https://github.com/shaarli/Shaarli/pull/607
Relates to https://github.com/shaarli/Shaarli/pull/612
Relates to https://github.com/shaarli/netscape-bookmark-parser/issues/15
Modification:
- reference the "shaarli" vendor repository on Packagist instead of
overriding the upstream package with an SCM repository
See https://packagist.org/packages/shaarli/netscape-bookmark-parser
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|\ \ \
| | | |
| | | | |
Added (and set as default) a cURL-based method for fetching HTTP content
|
| | |/
| |/|
| | |
| | | |
fixup between both methods
|
|\ \ \
| | | |
| | | | |
Bugfix: wrong key used to get default private links setting
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Initialize a translation function
|
|/ / /
| | |
| | |
| | | |
It matches the API of ngettext().
|
|\ \ \
| | | |
| | | | |
Generate a token for every pages
|
| |/ / |
|
|\ \ \
| |/ /
|/| | |
Bugfix: enable change password if open shaarli is disabled
|
|/ / |
|
|\ \
| | |
| | | |
Fix update method escapeUnescapedConfig
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Actually run it
* unit tests
Fixes #611
|
|\ \ \
| |/ /
|/| | |
Better whitespace handling in tags
|