Fix extension definitions
Before, extensions were missing the definition of mandatory methods. At the moment, it's not a problem because the coding guidelines are not enforced by the code. But in the future, it will break. Now, extensions have all mandatory method definitions.
This commit is contained in:
parent
17f42e4b53
commit
26be877e7a
21 changed files with 130 additions and 22 deletions
|
|
@ -4,7 +4,7 @@
|
|||
{
|
||||
"name": "Custom CSS",
|
||||
"description": "A FreshRSS extension which give ability to create user-specific CSS rules to apply in addition of the actual theme",
|
||||
"version": 0.2,
|
||||
"version": 0.3,
|
||||
"author": "Marien Fressinaud",
|
||||
"url": "https://github.com/FreshRSS/Extensions",
|
||||
"type": "gh-subdirectory"
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
{
|
||||
"name": "Custom JS",
|
||||
"description": "A FreshRSS extension which give ability to create user-specific Javascript rules to apply in addition of the actual theme",
|
||||
"version": 0.2,
|
||||
"version": 0.3,
|
||||
"author": "Frans de Jonge",
|
||||
"url": "https://github.com/FreshRSS/Extensions",
|
||||
"type": "gh-subdirectory"
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
{
|
||||
"name": "Image Proxy",
|
||||
"description": "No insecure content warnings or disappearing images on https sites",
|
||||
"version": 0.4,
|
||||
"version": 0.6,
|
||||
"author": "Frans de Jonge",
|
||||
"url": "https://github.com/FreshRSS/Extensions",
|
||||
"type": "gh-subdirectory"
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
{
|
||||
"name": "Sticky Feeds",
|
||||
"description": "Set the feed aside in the main stream following the window scroll",
|
||||
"version": 0.1,
|
||||
"version": 0.2,
|
||||
"author": "Marien Fressinaud",
|
||||
"url": "https://github.com/FreshRSS/Extensions",
|
||||
"type": "gh-subdirectory"
|
||||
|
|
@ -68,9 +68,9 @@
|
|||
{
|
||||
"name": "Keep Folder State",
|
||||
"description": "Stores the state of the folders locally and expand them automatically if necessary",
|
||||
"version": 0.1,
|
||||
"version": 0.2,
|
||||
"author": "Marco Heizmann",
|
||||
"url": "https://github.com/oyox/FreshRSS-extensions",
|
||||
"url": "https://github.com/FreshRSS/Extensions",
|
||||
"type": "gh-subdirectory"
|
||||
},
|
||||
{
|
||||
|
|
@ -116,9 +116,9 @@
|
|||
{
|
||||
"name": "Reading Time",
|
||||
"description": "Add a reading time estimation for each article",
|
||||
"version": 1.0,
|
||||
"version": 1.3,
|
||||
"author": "Lapineige",
|
||||
"url": "https://framagit.org/Lapineige/FreshRSS_Extension-ReadingTime/",
|
||||
"url": "https://github.com/FreshRSS/Extensions",
|
||||
"type": "gh-subdirectory"
|
||||
},
|
||||
{
|
||||
|
|
@ -156,7 +156,7 @@
|
|||
{
|
||||
"name": "Share By Email",
|
||||
"description": "Improve the sharing by email system.",
|
||||
"version": 0.1,
|
||||
"version": 0.2,
|
||||
"author": "Marien Fressinaud",
|
||||
"url": "https://github.com/FreshRSS/Extensions",
|
||||
"type": "gh-subdirectory"
|
||||
|
|
@ -188,7 +188,7 @@
|
|||
{
|
||||
"name": "Quick Collapse",
|
||||
"description": "Quickly change from folded to unfolded articles",
|
||||
"version": 0.1,
|
||||
"version": 0.2,
|
||||
"author": "romibi and Marien Fressinaud",
|
||||
"url": "https://github.com/FreshRSS/Extensions",
|
||||
"type": "gh-subdirectory"
|
||||
|
|
@ -208,6 +208,22 @@
|
|||
"author": "Kapdap",
|
||||
"url": "https://github.com/Kapdap/freshrss-extensions",
|
||||
"type": "gh-subdirectory"
|
||||
},
|
||||
{
|
||||
"name": "TinyTinyRSS API",
|
||||
"description": "Provides an API compliant with TinyTinyRSS applications.",
|
||||
"version": 0.2,
|
||||
"author": "Marien Fressinaud",
|
||||
"url": "https://github.com/FreshRSS/Extensions",
|
||||
"type": "gh-subdirectory"
|
||||
},
|
||||
{
|
||||
"name": "Title-Wrap",
|
||||
"description": "Applies a line-wrap to long article titles, as opposed to truncating the title when it overflows its display area.",
|
||||
"version": 0.2,
|
||||
"author": "Frans de Jonge, Joris Kinable",
|
||||
"url": "https://github.com/FreshRSS/Extensions",
|
||||
"type": "gh-subdirectory"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,14 @@
|
|||
<?php
|
||||
|
||||
class CustomCSSExtension extends Minz_Extension {
|
||||
public function install() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function init() {
|
||||
$this->registerTranslates();
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "Custom CSS",
|
||||
"author": "Marien Fressinaud",
|
||||
"description": "Give possibility to overwrite the CSS with a user-specific rules.",
|
||||
"version": 0.2,
|
||||
"version": 0.3,
|
||||
"entrypoint": "CustomCSS",
|
||||
"type": "user"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,14 @@
|
|||
<?php
|
||||
|
||||
class CustomJSExtension extends Minz_Extension {
|
||||
public function install() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function init() {
|
||||
$this->registerTranslates();
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "Custom JS",
|
||||
"author": "₣rans de Jonge",
|
||||
"description": "Apply custom JS.",
|
||||
"version": 0.2,
|
||||
"version": 0.3,
|
||||
"entrypoint": "CustomJS",
|
||||
"type": "user"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,14 @@ class ImageProxyExtension extends Minz_Extension {
|
|||
const SCHEME_INCLUDE = '';
|
||||
const URL_ENCODE = '1';
|
||||
|
||||
public function install() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function init() {
|
||||
$this->registerHook('entry_before_display',
|
||||
array('ImageProxyExtension', 'setImageProxyHook'));
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "Image Proxy",
|
||||
"author": "Frans de Jonge",
|
||||
"description": "No insecure content warnings or disappearing images.",
|
||||
"version": 0.5,
|
||||
"version": 0.6,
|
||||
"entrypoint": "ImageProxy",
|
||||
"type": "user"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,16 @@
|
|||
<?php
|
||||
|
||||
class KeepFolderStateExtension extends Minz_Extension {
|
||||
public function install() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function handleConfigureAction() {
|
||||
}
|
||||
|
||||
public function init() {
|
||||
Minz_View::appendScript($this->getFileUrl('jquerymin.js', 'js'),'','','');
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "Keep Folder State",
|
||||
"author": "Marco Heizmann",
|
||||
"description": "Stores the state of the folders locally and expand them automatically if necessary.",
|
||||
"version": 0.1,
|
||||
"version": 0.2,
|
||||
"entrypoint": "KeepFolderState",
|
||||
"type": "user"
|
||||
}
|
||||
|
|
@ -1,6 +1,17 @@
|
|||
<?php
|
||||
|
||||
class QuickCollapseExtension extends Minz_Extension {
|
||||
public function install() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function handleConfigureAction() {
|
||||
}
|
||||
|
||||
public function init() {
|
||||
$this->registerTranslates();
|
||||
$this->registerViews();
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "Quick Collapse",
|
||||
"author": "romibi and Marien Fressinaud",
|
||||
"description": "Quickly change from folded to unfolded articles",
|
||||
"version": 0.1,
|
||||
"version": 0.2,
|
||||
"entrypoint": "QuickCollapse",
|
||||
"type": "user"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,16 @@
|
|||
<?php
|
||||
class ReadingTimeExtension extends Minz_Extension {
|
||||
public function install() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function handleConfigureAction() {
|
||||
}
|
||||
|
||||
public function init() {
|
||||
Minz_View::appendScript($this->getFileUrl('readingtime.js', 'js'));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "ReadingTime",
|
||||
"author": "Lapineige",
|
||||
"description": "Add a reading time estimation next to each article title",
|
||||
"version": 1.2,
|
||||
"version": 1.3,
|
||||
"entrypoint": "ReadingTime",
|
||||
"type": "user"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,17 @@
|
|||
<?php
|
||||
|
||||
class ShareByEmailExtension extends Minz_Extension {
|
||||
public function install() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function handleConfigureAction() {
|
||||
}
|
||||
|
||||
public function init() {
|
||||
$this->registerTranslates();
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "Share By Email",
|
||||
"author": "Marien Fressinaud",
|
||||
"description": "Improve the sharing by email system.",
|
||||
"version": 0.1,
|
||||
"version": 0.2,
|
||||
"entrypoint": "ShareByEmail",
|
||||
"type": "user"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,17 @@
|
|||
<?php
|
||||
|
||||
class StickyFeedsExtension extends Minz_Extension {
|
||||
public function install() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function handleConfigureAction() {
|
||||
}
|
||||
|
||||
public function init() {
|
||||
Minz_View::appendStyle($this->getFileUrl('style.css', 'css'));
|
||||
Minz_View::appendScript($this->getFileUrl('script.js', 'js'));
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "Sticky Feeds",
|
||||
"author": "Marien Fressinaud",
|
||||
"description": "Set the feed aside in the main stream following the window scroll.",
|
||||
"version": 0.1,
|
||||
"version": 0.2,
|
||||
"entrypoint": "StickyFeeds",
|
||||
"type": "user"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
<?php
|
||||
|
||||
class TTRSS_APIExtension extends Minz_Extension {
|
||||
public function handleConfigureAction() {
|
||||
}
|
||||
|
||||
public function init() {
|
||||
$this->registerHook('post_update',
|
||||
array($this, 'postUpdateHook'));
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "TinyTinyRSS API",
|
||||
"author": "Marien Fressinaud",
|
||||
"description": "Provides an API compliant with TinyTinyRSS applications.",
|
||||
"version": 0.1,
|
||||
"version": 0.2,
|
||||
"entrypoint": "TTRSS_API",
|
||||
"type": "system"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,18 @@
|
|||
<?php
|
||||
|
||||
class TitleWrapExtension extends Minz_Extension {
|
||||
public function install() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function handleConfigureAction() {
|
||||
}
|
||||
|
||||
public function init() {
|
||||
Minz_View::appendStyle($this->getFileUrl('title_wrap.css', 'css'));
|
||||
Minz_View::appendStyle($this->getFileUrl('title_wrap.css', 'css'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"name": "Title-Wrap",
|
||||
"author": "₣rans de Jonge, Joris Kinable",
|
||||
"author": "Frans de Jonge, Joris Kinable",
|
||||
"description": "Applies a line-wrap to long article titles, as opposed to truncating the title when it overflows its display area.",
|
||||
"version": 0.1,
|
||||
"version": 0.2,
|
||||
"entrypoint": "TitleWrap",
|
||||
"type": "user"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue