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:
Christoph Wurst 2019-01-29 09:17:11 +01: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

View File

@ -22,7 +22,6 @@
"octemplate.js",
"contactsmenu_templates.js",
"eventsource.js",
"config.js",
"public/appconfig.js",
"public/comments.js",
"public/publicpage.js",

39
core/js/dist/main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,6 @@
"public/appconfig.js",
"public/comments.js",
"public/whatsnew.js",
"config.js",
"oc-requesttoken.js",
"mimetype.js",
"mimetypelist.js",

View File

@ -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;

View File

@ -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,
};