Add OC and OCA namespace declarations to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
8d52a3ac4a
commit
87bc9f1fa1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -39,11 +39,12 @@ function escapeHTML(s) {
|
|||
}
|
||||
|
||||
/** @namespace OCP */
|
||||
var OCP = Object.assign({}, window.OCP),
|
||||
/**
|
||||
* @namespace OC
|
||||
*/
|
||||
OC = {
|
||||
var OCP = Object.assign({}, window.OCP);
|
||||
|
||||
/**
|
||||
* @namespace OC
|
||||
*/
|
||||
Object.assign(window.OC, {
|
||||
PERMISSION_NONE:0,
|
||||
PERMISSION_CREATE:4,
|
||||
PERMISSION_READ:1,
|
||||
|
@ -900,7 +901,7 @@ var OCP = Object.assign({}, window.OCP),
|
|||
}
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
/**
|
||||
* Current user attributes
|
||||
|
@ -2338,12 +2339,6 @@ OC.set=function(name, value) {
|
|||
}
|
||||
})();
|
||||
|
||||
/**
|
||||
* Namespace for apps
|
||||
* @namespace OCA
|
||||
*/
|
||||
window.OCA = {};
|
||||
|
||||
/**
|
||||
* select a range in an input field
|
||||
* @link http://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area
|
||||
|
|
|
@ -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 {};
|
|
@ -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 {};
|
|
@ -4,8 +4,6 @@
|
|||
import loader from './loader'
|
||||
|
||||
/** @namespace OCP */
|
||||
const OCP = {
|
||||
export default {
|
||||
Loader: loader,
|
||||
};
|
||||
|
||||
window['OCP'] = Object.assign({}, window.OCP, OCP)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue