Move OC.AppConfig to the server bundle and add a deprecation verion
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
ef94996fee
commit
8e9d259074
|
@ -22,7 +22,6 @@
|
|||
"octemplate.js",
|
||||
"contactsmenu_templates.js",
|
||||
"eventsource.js",
|
||||
"config.js",
|
||||
"public/appconfig.js",
|
||||
"public/comments.js",
|
||||
"public/publicpage.js",
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -8,7 +8,6 @@
|
|||
"public/appconfig.js",
|
||||
"public/comments.js",
|
||||
"public/whatsnew.js",
|
||||
"config.js",
|
||||
"oc-requesttoken.js",
|
||||
"mimetype.js",
|
||||
"mimetypelist.js",
|
||||
|
|
|
@ -18,11 +18,13 @@
|
|||
*
|
||||
*/
|
||||
|
||||
import OCP from '../OCP/index';
|
||||
|
||||
/**
|
||||
* @namespace
|
||||
* @deprecated Use OCP.AppConfig instead
|
||||
* @deprecated 16.0.0 Use OCP.AppConfig instead
|
||||
*/
|
||||
OC.AppConfig={
|
||||
const AppConfig = {
|
||||
/**
|
||||
* @deprecated Use OCP.AppConfig.getValue() instead
|
||||
*/
|
||||
|
@ -63,4 +65,7 @@ OC.AppConfig={
|
|||
deleteKey:function(app,key){
|
||||
OCP.AppConfig.deleteKey(app, key);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
export default AppConfig;
|
|
@ -22,6 +22,7 @@
|
|||
import Backbone from 'backbone';
|
||||
|
||||
import Apps from './apps'
|
||||
import AppConfig from './appconfig'
|
||||
import ContactsMenu from './contactsmenu';
|
||||
import {davCall, davSync} from './backbone-webdav';
|
||||
|
||||
|
@ -34,6 +35,7 @@ Object.assign(Backbone, {
|
|||
/** @namespace OC */
|
||||
export default {
|
||||
Apps,
|
||||
AppConfig,
|
||||
Backbone,
|
||||
ContactsMenu,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue