aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/plugins
Commit message (Collapse)AuthorAgeFilesLines
* Compatibility with PHPUnit 9ArthurHoaro2020-09-299-12/+12
|
* Comply with PHPUnit V8: setup/teardown functions must return voidArthurHoaro2020-09-267-8/+8
|
* Fix plugin base path in core pluginsArthurHoaro2020-09-222-21/+39
| | | | | | | Also fix note check in archiveorg plugin, and regression on vintage template. Documentation regarding relative path has been added. Fixes #1548
* Plugins: do not save metadata along plugin parametersArthurHoaro2020-09-121-0/+3
| | | | | | Also prevent the token to be saved. Fixes #1550
* Default colors plugin: generate CSS file during initializationArthurHoaro2020-08-291-9/+10
| | | | | 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.
* Better handling of plugin incompatibilityArthurHoaro2020-08-271-0/+5
| | | | | 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.:
* New basePath: fix officiel plugin paths and vintage templateArthurHoaro2020-07-261-0/+4
|
* Process main page (linklist) through Slim controllerArthurHoaro2020-07-234-11/+11
| | | | | Including a bunch of improvements on the container, and helper used across new controllers.
* Slim router: handle add tag routeArthurHoaro2020-07-234-87/+0
|
* Add and update unit test for the new system (Bookmark + Service)ArthurHoaro2020-01-183-324/+8
| | | | See #1307
* Markdown plugin: fix RSS feed direct link reverseArthurHoaro2019-08-151-0/+10
| | | | The plugin was only reversing permalinks and failed with setting rss_permalinks set to false
* Default colors plugin - Add unit testsArthurHoaro2019-07-201-0/+195
|
* Remove the redirector settingArthurHoaro2019-02-091-1/+1
| | | | Fixes #1239
* Optimize and cleanup importsVirtualTam2019-01-131-2/+0
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* namespacing: add plugin tests to \Shaarli\Plugin\[...]VirtualTam2019-01-129-15/+22
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* namespacing: \Shaarli\Plugin\PluginManagerVirtualTam2019-01-128-8/+11
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* namespacing: \Shaarli\RouterVirtualTam2019-01-124-0/+7
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* namespacing: move LinkUtils along \Shaarli\Bookmark classesVirtualTam2019-01-121-0/+1
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* namespacing: \Shaarli\Bookmark\LinkDBVirtualTam2019-01-121-0/+2
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* lint: apply phpcbf to tests/VirtualTam2018-12-021-1/+2
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Merge pull request #1205 from ArthurHoaro/feature/opengraphArthurHoaro2018-10-061-0/+2
|\ | | | | Add OpenGraph meta tags on permalink page
| * Add OpenGraph meta tags on permalink pageArthurHoaro2018-08-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Includes: - og:title - og:type -> article - og:image -> if there is a thumbnail - og:url -> permalink - og:description -> first 300 chars of raw description - article:published_time - article:modified_time - article:tag -> one OG meta tag for each shaare tag Fixes #258
* | Merge pull request #1212 from ArthurHoaro/hotfix/hashtag-md-escapeArthurHoaro2018-10-065-6/+38
|\ \ | | | | | | Fix hashtags with markdown escape enabled
| * | Fix hashtags with markdown escape enabledArthurHoaro2018-08-145-6/+38
| |/ | | | | | | | | | | They're now transformed to markdown syntax links before processing them through Parsedown. Fixes #1210
* / Isso plugin: add an icon in linklist if enabledArthurHoaro2018-08-141-6/+10
|/ | | | Fixes #1075
* Fix feed permalink rendering with markdown escape set to trueArthurHoaro2018-05-191-0/+55
| | | | Fixes #1134
* Update parsedown to its latest version instead of fixed 1.6ArthurHoaro2018-03-311-2/+2
|
* PSR: use elseif instead of else ifArthurHoaro2018-02-281-1/+1
| | | | See https://www.php-fig.org/psr/psr-2/\#51-if-elseif-else
* Executes daily hooks before creating columns.kalvn2018-02-011-17/+11
|
* Add a whitelist of protocols for URLsArthurHoaro2017-05-253-5/+29
| | | | | | | - for Shaare - for markdown description links and images Not whitelisted protocols will be replaced by `http://`
* Remove readityourself pluginArthurHoaro2017-04-011-99/+0
| | | | Fixes #818
* application: introduce the Shaarli\Config namespaceVirtualTam2017-03-046-1/+5
| | | | | | | | | | | Namespaces have been introduced with the REST API, and should be generalized to the whole codebase to manage object scope and benefit from autoloading. See: - https://secure.php.net/manual/en/language.namespaces.php - http://www.php-fig.org/psr/psr-4/ Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Add markdown_escape settingArthurHoaro2017-02-282-9/+54
| | | | | | | | | | | | | This setting allows to escape HTML in markdown rendering or not. The goal behind it is to avoid XSS issue in shared instances. More info: * the setting is set to true by default * it is set to false for anyone who already have the plugin enabled (avoid breaking existing entries) * improve the HTML sanitization when the setting is set to false - but don't consider it XSS proof * mention the setting in the plugin README
* Remove CSS call for addlink toolbar pluginArthurHoaro2017-01-151-40/+0
| | | | Fixes #724
* Cleanup: explicit method visibilityVirtualTam2017-01-0510-54/+50
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Move PubSubHubbub code as a default pluginArthurHoaro2016-12-201-0/+54
|
* Add a persistent 'shorturl' key to all linksArthurHoaro2016-12-121-5/+16
| | | | | | | All existing link will keep their permalinks. New links will have smallhash generated with date+id. The purpose of this is to avoid collision between links due to their creation date.
* Unit Test for the new ID systemArthurHoaro2016-12-121-5/+9
|
* Markdown: fixes feed rendering with nomarkdown tagArthurHoaro2016-11-221-4/+25
| | | | | | | | | | | * make sure we match exactly `nomarkdown` tag * pass the whole link data to stripNoMarkdownTag() to: * strip the noMD tag in taglist (array) * strip the tag in tags (string) Fixes #689 tmp
* Fix an issue with links not being reversed in code blocksArthurHoaro2016-10-223-0/+61
| | | | | | Fixes #672 + Markdown to HTML unit test
* Isso comments pluginArthurHoaro2016-10-171-0/+136
| | | | Use Isso client to let visitors comments on permalinks
* New init function for plugins, supports errors reportingArthurHoaro2016-10-142-4/+42
| | | | | | | | 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.
* Archive.org plugin: do not propose archival of private notesTeromene2016-10-131-4/+98
| | | | Fixes #637
* Parse plugin parameters description with the PluginManagerArthurHoaro2016-08-021-1/+3
| | | | | | Plugin parameter can contain a description in their meta file under the key: parameter.<param_name>="<description>"
* Merge pull request #570 from ArthurHoaro/config-managerArthur2016-07-092-8/+14
|\ | | | | Introduce a configuration manager
| * PluginManager no longer uses singleton patternArthurHoaro2016-06-112-7/+10
| |
| * Use the configuration manager for wallabag and readityourself pluginArthurHoaro2016-06-112-4/+7
| |
* | The tag is no longer privateArthurHoaro2016-05-301-2/+4
|/ | | | A private tag is never loaded for visitor, making this feature useless.
* Markdown: Add the 'meta-tag' `.nomarkdown` which prevent a shaare from being ↵ArthurHoaro2016-03-211-1/+36
| | | | | | parsed with markdown Also add the tag in tag list in edit_link, so it will appear on autocompletion.
* Markdown: don't escape content + sanitize sensible tagsArthurHoaro2016-02-191-7/+12
| | | | Instead of trying to fix broken content for Markdown parsing, parse it unescaped, then sanatize sensible tags such as scripts, etc.