aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Template/JSResourceLocator.php
Commit message (Collapse)AuthorAgeFilesLines
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-15/+15
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-24/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(JSRecourceLocator): Add missing slash after server rootFerdinand Thiessen2024-03-221-1/+1
| | | | | | The `OC::$SERVERROOT` is always returned without a trailing slash, so we need to add a slash between server root and apps directory. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(JSResourceLocator): Consider configured app roots for filesFerdinand Thiessen2024-02-291-40/+22
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Add custom apps translation scripts and image path for consistencyAkhil2023-10-191-2/+7
| | | | Signed-off-by: Akhil <akhil@e.email>
* Merge pull request #38261 from fsamapoor/replace_strpos_calls_in_lib_privateRobin Appelman2023-06-011-2/+2
|\ | | | | Refactors "strpos" calls in lib/private to improve code readability.
| * Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-2/+2
| | | | | | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* | fix: Do not attempt to use l10n files as sources for combined js filesJulius Härtl2023-05-151-1/+1
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix(JSResourceLocator): Handle missing translations silentlyFerdinand Thiessen2023-05-111-9/+16
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(OC/Template): Allow `.mjs` files within custom app pathsFerdinand Thiessen2023-02-221-29/+21
| | | | | | | | | | If apps are installed in non standard app paths, we need to check `$app_path/$script` instead of only doing so for translations. Without this it would fallback to `.js` extension even if a `.mjs` file exists. Also tried make the code more selfe explaining. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* feat(template): Allow `JSResourceLocator` to find ES6 scriptsFerdinand Thiessen2023-02-221-17/+28
| | | | | | | | Enable module js (ES6) support on the `JSResourceLocator`. This changes `JSResourceLocator` to look for `.mjs` files first to allow applications to provide a fallback `.js` for older Nextcloud versions. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* fix(OC/Template): Remove usage of deprecated functions in `JSResourceLocator`Ferdinand Thiessen2023-02-221-5/+25
| | | | | | Move from `\OC_App::getAppPath` to `IAppManager::getAppPath`. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Drop 3rdparty root since it is unused and adjust testsJulius Härtl2022-12-071-4/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use single resource locator instanceJulius Härtl2022-12-071-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Make it possible to load theme/<themename>/distCarl Schwan2022-08-261-1/+3
| | | | | | | This fix a regression with the theming api following the change in webpack bundling introduced in 24 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Migrate from ILogger to LoggerInterface in lib/privateCôme Chilliet2022-03-241-1/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Avoid double-loading dist/core-main.js when apps have scripts named mainJulius Härtl2022-03-081-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Detect app's script higher up as some scripts were shadowedLouis Chemineau2022-01-081-0/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Restore some line in JSResourceLocator.phpLouis Chemineau2022-01-081-5/+7
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Move bundles to /distJohn Molakvoæ (skjnldsv)2022-01-081-8/+11
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Load apps/APP/l10n/*.js and themes/THEME/apps/APP/l10n/*.jsMorris Jobke2018-10-221-0/+1
| | | | | | Before it quit right after finding the theme version of the l10n file which results in a not translated part of the UI. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #7061 from kyrofa/bugfix/6028/app_path_realpathMorris Jobke2017-11-141-0/+7
|\ | | | | {J,CS}SResourceLocator: account for symlinks in app path
| * JSResourceLocator: re-use $app_pathKyle Fazzari2017-11-121-7/+9
| | | | | | | | Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
| * JSResourceLocator: account for symlinks in app pathKyle Fazzari2017-11-071-3/+8
| | | | | | | | Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
* | Update license headersMorris Jobke2017-11-061-0/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Stop infinit loop on invalid settings css/js fileJoas Schilling2017-05-191-0/+9
| | | | | | Don't try to find dirname of false... Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add returnRoeland Jago Douma2017-03-241-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add debug modeRoeland Jago Douma2017-03-241-0/+8
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* [PoC] JS CombinerRoeland Jago Douma2017-03-241-1/+26
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix othersJoas Schilling2016-07-211-2/+3
|
* Move \OC\Template to PSR-4Roeland Jago Douma2016-05-131-0/+78