diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-01-28 11:24:08 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-01-28 13:32:34 +0100 |
commit | 87bc9f1fa1fceccb248254030aaed16da5e6aed8 (patch) | |
tree | 53c264c26b57ab03ccb505796147d7ceaa9430cf /core/src | |
parent | 8d52a3ac4a9f13c7ff7197b80ba055f37ac575d3 (diff) | |
download | nextcloud-server-87bc9f1fa1fceccb248254030aaed16da5e6aed8.tar.gz nextcloud-server-87bc9f1fa1fceccb248254030aaed16da5e6aed8.zip |
Add OC and OCA namespace declarations to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/OC/index.js | 23 | ||||
-rw-r--r-- | core/src/OCA/index.js | 26 | ||||
-rw-r--r-- | core/src/OCP/index.js | 4 | ||||
-rw-r--r-- | core/src/globals.js | 8 |
4 files changed, 58 insertions, 3 deletions
diff --git a/core/src/OC/index.js b/core/src/OC/index.js new file mode 100644 index 00000000000..b785305c057 --- /dev/null +++ b/core/src/OC/index.js @@ -0,0 +1,23 @@ +/* + * @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at> + * + * @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +/** @namespace OC */ +export default {}; diff --git a/core/src/OCA/index.js b/core/src/OCA/index.js new file mode 100644 index 00000000000..fa354456c91 --- /dev/null +++ b/core/src/OCA/index.js @@ -0,0 +1,26 @@ +/* + * @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at> + * + * @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +/** + * Namespace for apps + * @namespace OCA + */ +export default {}; diff --git a/core/src/OCP/index.js b/core/src/OCP/index.js index db622f20f78..e71c0672c3c 100644 --- a/core/src/OCP/index.js +++ b/core/src/OCP/index.js @@ -4,8 +4,6 @@ import loader from './loader' /** @namespace OCP */ -const OCP = { +export default { Loader: loader, }; - -window['OCP'] = Object.assign({}, window.OCP, OCP) diff --git a/core/src/globals.js b/core/src/globals.js index 770ae223afe..a9884f335e0 100644 --- a/core/src/globals.js +++ b/core/src/globals.js @@ -48,6 +48,10 @@ import 'snap.js/dist/snap' import 'strengthify' import 'strengthify/strengthify.css' +import OC from './OC/index' +import OCP from './OCP/index' +import OCA from './OCA/index' + window['_'] = _ window['$'] = $ window['autosize'] = autosize @@ -64,3 +68,7 @@ window['jQuery'] = $ window['marked'] = marked window['md5'] = md5 window['moment'] = moment + +window['OC'] = OC +window['OCP'] = OCP +window['OCA'] = OCA |