Update signature of Minz_Extension::getFileUrl (#310)
To align with https://github.com/FreshRSS/FreshRSS/pull/7495 The code still works without this change though.
This commit is contained in:
parent
857bfd7c35
commit
4ac7c9c6a6
15 changed files with 24 additions and 24 deletions
|
|
@ -6,6 +6,6 @@ final class ColorfulListExtension extends Minz_Extension
|
|||
{
|
||||
#[\Override]
|
||||
public function init(): void {
|
||||
Minz_View::appendScript($this->getFileUrl('script.js', 'js'));
|
||||
Minz_View::appendScript($this->getFileUrl('script.js'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "Colorful List",
|
||||
"author": "Claud Xiao",
|
||||
"description": "Colorful Entry Title based on RSS source",
|
||||
"version": "0.3.1",
|
||||
"version": "0.3.2",
|
||||
"entrypoint": "ColorfulList",
|
||||
"type": "user"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ final class QuickCollapseExtension extends Minz_Extension {
|
|||
$this->registerTranslates();
|
||||
$this->registerHook('js_vars', [$this, 'jsVars']);
|
||||
|
||||
Minz_View::appendStyle($this->getFileUrl('style.css', 'css'));
|
||||
Minz_View::appendScript($this->getFileUrl('script.js', 'js'), false, true, false);
|
||||
Minz_View::appendStyle($this->getFileUrl('style.css'));
|
||||
Minz_View::appendScript($this->getFileUrl('script.js'), cond: false, defer: true, async: false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -17,8 +17,8 @@ final class QuickCollapseExtension extends Minz_Extension {
|
|||
*/
|
||||
public function jsVars(): array {
|
||||
return [
|
||||
'icon_url_in' => $this->getFileUrl('in.svg', 'svg'),
|
||||
'icon_url_out' => $this->getFileUrl('out.svg', 'svg'),
|
||||
'icon_url_in' => $this->getFileUrl('in.svg'),
|
||||
'icon_url_out' => $this->getFileUrl('out.svg'),
|
||||
'i18n' => [
|
||||
'toggle_collapse' => _t('gen.js.toggle_collapse'),
|
||||
],
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "Quick Collapse",
|
||||
"author": "romibi and Marien Fressinaud",
|
||||
"description": "Quickly change from folded to unfolded articles",
|
||||
"version": "1.0",
|
||||
"version": "1.0.1",
|
||||
"entrypoint": "QuickCollapse",
|
||||
"type": "user"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ final class ReadingTimeExtension extends Minz_Extension {
|
|||
FreshRSS_Context::userConf()->save();
|
||||
}
|
||||
$this->registerHook('js_vars', [$this, 'getParams']);
|
||||
Minz_View::appendScript($this->getFileUrl('readingtime.js', 'js'));
|
||||
Minz_View::appendScript($this->getFileUrl('readingtime.js'));
|
||||
}
|
||||
|
||||
public function getSpeed(): int {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "ReadingTime",
|
||||
"author": "Lapineige, hkcomori",
|
||||
"description": "Add a reading time estimation next to each article",
|
||||
"version": "1.6.0",
|
||||
"version": "1.6.1",
|
||||
"entrypoint": "ReadingTime",
|
||||
"type": "user"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ final class FreshExtension_shareByEmail_Controller extends Minz_ActionController
|
|||
|
||||
Minz_View::prependTitle(_t('shareByEmail.share.title') . ' · ');
|
||||
if ($this->extension !== null) {
|
||||
Minz_View::appendStyle($this->extension->getFileUrl('shareByEmail.css', 'css'));
|
||||
Minz_View::appendStyle($this->extension->getFileUrl('shareByEmail.css'));
|
||||
}
|
||||
$this->view->_layout('simple');
|
||||
$this->view->to = '';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "Share By Email",
|
||||
"author": "Marien Fressinaud",
|
||||
"description": "Improve the sharing by email system.",
|
||||
"version": "0.3.2",
|
||||
"version": "0.3.3",
|
||||
"entrypoint": "ShareByEmail",
|
||||
"type": "user"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ declare(strict_types=1);
|
|||
final class StickyFeedsExtension extends Minz_Extension {
|
||||
#[\Override]
|
||||
public function init(): void {
|
||||
Minz_View::appendStyle($this->getFileUrl('style.css', 'css'));
|
||||
Minz_View::appendScript($this->getFileUrl('script.js', 'js'));
|
||||
Minz_View::appendStyle($this->getFileUrl('style.css'));
|
||||
Minz_View::appendScript($this->getFileUrl('script.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.2.1",
|
||||
"version": "0.2.2",
|
||||
"entrypoint": "StickyFeeds",
|
||||
"type": "user"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ final class TitleWrapExtension extends Minz_Extension {
|
|||
#[\Override]
|
||||
public function init(): void {
|
||||
if (version_compare(FRESHRSS_VERSION, "1.23.1") > 0) {
|
||||
Minz_View::appendStyle($this->getFileUrl('title_wrap.css', 'css'));
|
||||
Minz_View::appendStyle($this->getFileUrl('title_wrap.css'));
|
||||
} else {
|
||||
// legacy <1.24.0 (= 1.23.2-dev)
|
||||
Minz_View::appendStyle($this->getFileUrl('title_wrap_legacy.css', 'css'));
|
||||
Minz_View::appendStyle($this->getFileUrl('title_wrap_legacy.css'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "Title-Wrap",
|
||||
"author": "₣rans 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.3.0",
|
||||
"version": "0.3.1",
|
||||
"entrypoint": "TitleWrap",
|
||||
"type": "user"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,20 +19,20 @@ final class WordHighlighterExtension extends Minz_Extension
|
|||
$this->registerTranslates();
|
||||
|
||||
// register CSS for WordHighlighter:
|
||||
Minz_View::appendStyle($this->getFileUrl('style.css', 'css'));
|
||||
Minz_View::appendStyle($this->getFileUrl('style.css'));
|
||||
|
||||
Minz_View::appendScript($this->getFileUrl('mark.min.js', 'js'), false, false, false);
|
||||
Minz_View::appendScript($this->getFileUrl('mark.min.js'), cond: false, defer: false, async: false);
|
||||
|
||||
$current_user = Minz_Session::paramString('currentUser');
|
||||
|
||||
$staticPath = join_path($this->getPath(), 'static');
|
||||
$configFileJs = join_path($staticPath, ('config.' . $current_user . '.js'));
|
||||
$configFileJs = join_path($staticPath, 'config.' . $current_user . '.js');
|
||||
|
||||
if (file_exists($configFileJs)) {
|
||||
Minz_View::appendScript($this->getFileUrl(('config.' . $current_user . '.js'), 'js'));
|
||||
Minz_View::appendScript($this->getFileUrl('config.' . $current_user . '.js'));
|
||||
}
|
||||
|
||||
Minz_View::appendScript($this->getFileUrl('word-highlighter.js', 'js'));
|
||||
Minz_View::appendScript($this->getFileUrl('word-highlighter.js'));
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@ declare(strict_types=1);
|
|||
final class ShowFeedIdExtension extends Minz_Extension {
|
||||
#[\Override]
|
||||
public function init(): void {
|
||||
Minz_View::appendScript($this->getFileUrl('showfeedid.js', 'js'));
|
||||
Minz_View::appendScript($this->getFileUrl('showfeedid.js'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "ShowFeedID",
|
||||
"author": "math-GH",
|
||||
"description": "Show the ID of feed and category",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"entrypoint": "ShowFeedID",
|
||||
"type": "user"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue