Move OC.AppConfig to the server bundle and add a deprecation verion

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/13878/head
Christoph Wurst 2019-01-29 09:17:11 +07:00
parent ef94996fee
commit 8e9d259074
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
6 changed files with 40 additions and 14 deletions

@ -22,7 +22,6 @@
"octemplate.js", "octemplate.js",
"contactsmenu_templates.js", "contactsmenu_templates.js",
"eventsource.js", "eventsource.js",
"config.js",
"public/appconfig.js", "public/appconfig.js",
"public/comments.js", "public/comments.js",
"public/publicpage.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/appconfig.js",
"public/comments.js", "public/comments.js",
"public/whatsnew.js", "public/whatsnew.js",
"config.js",
"oc-requesttoken.js", "oc-requesttoken.js",
"mimetype.js", "mimetype.js",
"mimetypelist.js", "mimetypelist.js",

@ -18,11 +18,13 @@
* *
*/ */
import OCP from '../OCP/index';
/** /**
* @namespace * @namespace
* @deprecated Use OCP.AppConfig instead * @deprecated 16.0.0 Use OCP.AppConfig instead
*/ */
OC.AppConfig={ const AppConfig = {
/** /**
* @deprecated Use OCP.AppConfig.getValue() instead * @deprecated Use OCP.AppConfig.getValue() instead
*/ */
@ -63,4 +65,7 @@ OC.AppConfig={
deleteKey:function(app,key){ deleteKey:function(app,key){
OCP.AppConfig.deleteKey(app, key); OCP.AppConfig.deleteKey(app, key);
} }
}; };
export default AppConfig;

@ -22,6 +22,7 @@
import Backbone from 'backbone'; import Backbone from 'backbone';
import Apps from './apps' import Apps from './apps'
import AppConfig from './appconfig'
import ContactsMenu from './contactsmenu'; import ContactsMenu from './contactsmenu';
import {davCall, davSync} from './backbone-webdav'; import {davCall, davSync} from './backbone-webdav';
@ -34,6 +35,7 @@ Object.assign(Backbone, {
/** @namespace OC */ /** @namespace OC */
export default { export default {
Apps, Apps,
AppConfig,
Backbone, Backbone,
ContactsMenu, ContactsMenu,
}; };