Merge pull request #56129 from nextcloud/chore/remove-oc-app-config

chore: remove deprecated `OC.AppConfig` in favor of `OCP.AppConfig`
jtr/shorten-mb-grapheme-safety
Ferdinand Thiessen 2025-11-03 16:25:48 +07:00 committed by GitHub
commit 68e492ef17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 9 additions and 69 deletions

@ -1,69 +1,10 @@
/**
/*!
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2014 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { deleteKey, getApps, getKeys, getValue, setValue } from '../OCP/appconfig.js'
export const appConfig = window.oc_appconfig || {}
/**
* @namespace
* @deprecated 16.0.0 Use OCP.AppConfig instead
*/
export const AppConfig = {
/**
* @param app
* @param key
* @param defaultValue
* @param callback
* @deprecated Use OCP.AppConfig.getValue() instead
*/
getValue: function(app, key, defaultValue, callback) {
getValue(app, key, defaultValue, {
success: callback,
})
},
/**
* @param app
* @param key
* @param value
* @deprecated Use OCP.AppConfig.setValue() instead
*/
setValue: function(app, key, value) {
setValue(app, key, value)
},
/**
* @param callback
* @deprecated Use OCP.AppConfig.getApps() instead
*/
getApps: function(callback) {
getApps({
success: callback,
})
},
/**
* @param app
* @param callback
* @deprecated Use OCP.AppConfig.getKeys() instead
*/
getKeys: function(app, callback) {
getKeys(app, {
success: callback,
})
},
/**
* @param app
* @param key
* @deprecated Use OCP.AppConfig.deleteKey() instead
*/
deleteKey: function(app, key) {
deleteKey(app, key)
},
}
export const appConfig = window.oc_appconfig || {}

@ -27,7 +27,7 @@ import {
} from '@nextcloud/router'
import logger from '../logger.js'
import { isUserAdmin } from './admin.js'
import { AppConfig, appConfig } from './appconfig.js'
import { appConfig } from './appconfig.js'
import Apps from './apps.js'
import appswebroots from './appswebroots.js'
import Backbone from './backbone.js'
@ -98,7 +98,6 @@ export default {
* Deprecated helpers to be removed
*/
Apps,
AppConfig,
appConfig,
appswebroots,
Backbone,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/core-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