nextcloud/core/src
Christoph Wurst e2d209536f
Declare OCA.Search directly, not via a monkey patch
Apps could use OCA.Search very early on a page load without a problem
prior to Nextcloud 20 (current master). Since the unified search work
moved some code around, it now was added later, resulting in `TypeError:
OCA.Search is not a constructor` errors if the apps did not wrap their
calls in a `DOMLoaded` event handler.

To ensure existing code continues to work without modification, this
patch moves the declaration of the `OCA.Search` API to where we defined
`OCA`, instead of monkey-patching it later on.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-08-31 10:31:12 +02:00
..
components Make ellipsized unified search results visible on hover 2020-08-26 20:29:59 +02:00
files Move core/js/files to webpack 2020-05-22 20:28:31 +02:00
jquery Fix dark-theme selector 2020-08-21 11:42:50 +02:00
mixins Bump eslint-config-nextcloud from 0.0.6 to 0.1.0 2019-12-19 11:55:33 +01:00
OC Remove outdated legacy search scripts 2020-08-04 20:56:22 +02:00
OCA Declare OCA.Search directly, not via a monkey patch 2020-08-31 10:31:12 +02:00
OCP Use babel-loader-exclude-node-modules-except 2020-07-31 11:00:33 +02:00
Polyfill Bump eslint-config-nextcloud from 0.0.6 to 0.1.0 2019-12-19 11:55:33 +01:00
services Provide from on the search query too 2020-08-26 09:48:03 +02:00
systemtags Bump @nextcloud/eslint-config and peers 2020-07-31 09:35:55 +02:00
tests Add more tests for the new js modules 2020-02-10 12:05:43 +01:00
Util Move humanFileSize and OC.getCanonicalLocale to npm packages 2020-06-05 08:48:49 +02:00
views Add the missing cursor parameter to unified search requests 2020-08-26 09:45:21 +02:00
globals.js Use babel-loader-exclude-node-modules-except 2020-07-31 11:00:33 +02:00
init.js Up the limit for the header app menu, fix #21635 2020-07-10 06:43:38 +00:00
install.js Use DOMContentLoaded and fix sharebymail loading issue 2020-07-20 12:42:08 +02:00
logger.js Add a dedicated page for the recommended apps installation 2019-12-12 08:13:01 +01:00
login.js Start with webauthn 2020-03-31 22:17:07 +02:00
main.js Use DOMContentLoaded and fix sharebymail loading issue 2020-07-20 12:42:08 +02:00
maintenance.js Do not import the full OC since we don't need it 2020-06-05 09:42:39 +02:00
recommendedapps.js Bump eslint-config-nextcloud from 0.0.6 to 0.1.0 2019-12-19 11:55:33 +01:00
session-heartbeat.js OC.routing is just a @nextcloud/routing proxy 2020-06-04 11:11:18 +02:00
unified-search.js Declare OCA.Search directly, not via a monkey patch 2020-08-31 10:31:12 +02:00