diff options
author | Simon L <szaimen@e.mail.de> | 2023-06-24 15:10:29 +0200 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2023-06-24 15:00:15 +0000 |
commit | 95deec130aa958b6ebb13e216e01318a90ae7ba9 (patch) | |
tree | fced69fa0103cf075e6ff8ec464912882fec89ae /core | |
parent | 908adb339bc67bc92328989bcc8a6993deefc4d3 (diff) | |
download | nextcloud-server-95deec130aa958b6ebb13e216e01318a90ae7ba9.tar.gz nextcloud-server-95deec130aa958b6ebb13e216e01318a90ae7ba9.zip |
address review
Signed-off-by: Simon L <szaimen@e.mail.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/src/OC/capabilities.js | 2 | ||||
-rw-r--r-- | core/src/OC/util.js | 4 | ||||
-rw-r--r-- | core/src/OCA/search.js | 2 | ||||
-rw-r--r-- | core/src/Polyfill/tooltip.js | 4 | ||||
-rw-r--r-- | core/src/globals.js | 2 | ||||
-rw-r--r-- | core/src/jquery/placeholder.js | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/core/src/OC/capabilities.js b/core/src/OC/capabilities.js index 8fc21abf369..72a71d7c743 100644 --- a/core/src/OC/capabilities.js +++ b/core/src/OC/capabilities.js @@ -32,6 +32,6 @@ import { getCapabilities as realGetCapabilities } from '@nextcloud/capabilities' * @since 14.0.0 */ export const getCapabilities = () => { - OC.debug && console.debug('OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities') + OC.debug && console.warn('OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities') return realGetCapabilities() } diff --git a/core/src/OC/util.js b/core/src/OC/util.js index 42ac73ef07d..f0dd7e0ac14 100644 --- a/core/src/OC/util.js +++ b/core/src/OC/util.js @@ -124,7 +124,7 @@ export default { */ formatDate(timestamp, format) { if (window.TESTING === undefined) { - OC.debug && console.debug('OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment') + OC.debug && console.warn('OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment') } format = format || 'LLL' return moment(timestamp).format(format) @@ -136,7 +136,7 @@ export default { */ relativeModifiedDate(timestamp) { if (window.TESTING === undefined) { - OC.debug && console.debug('OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment') + OC.debug && console.warn('OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment') } const diff = moment().diff(moment(timestamp)) if (diff >= 0 && diff < 45000) { diff --git a/core/src/OCA/search.js b/core/src/OCA/search.js index 81a86a04247..f0395c0bcd5 100644 --- a/core/src/OCA/search.js +++ b/core/src/OCA/search.js @@ -26,7 +26,7 @@ export default class Search { * @deprecated 20.0.0, will be removed in Nextcloud 22 */ constructor() { - OC.debug && console.debug('OCA.Search is deprecated. Please use the unified search API instead') + OC.debug && console.warn('OCA.Search is deprecated. Please use the unified search API instead') } } diff --git a/core/src/Polyfill/tooltip.js b/core/src/Polyfill/tooltip.js index eeb52580957..925b67c3e8b 100644 --- a/core/src/Polyfill/tooltip.js +++ b/core/src/Polyfill/tooltip.js @@ -31,13 +31,13 @@ $.prototype.tooltip = (function(tooltip) { } catch (ex) { if (ex instanceof TypeError && config === 'destroy') { if (window.TESTING === undefined) { - OC.debug && console.debug('Deprecated call $.tooltip(\'destroy\') has been deprecated and should be removed') + OC.debug && console.warn('Deprecated call $.tooltip(\'destroy\') has been deprecated and should be removed') } return tooltip.call(this, 'dispose') } if (ex instanceof TypeError && config === 'fixTitle') { if (window.TESTING === undefined) { - OC.debug && console.debug('Deprecated call $.tooltip(\'fixTitle\') has been deprecated and should be removed') + OC.debug && console.warn('Deprecated call $.tooltip(\'fixTitle\') has been deprecated and should be removed') } return tooltip.call(this, '_fixTitle') } diff --git a/core/src/globals.js b/core/src/globals.js index 61ad3921999..1a4c0582768 100644 --- a/core/src/globals.js +++ b/core/src/globals.js @@ -56,7 +56,7 @@ import { getToken as getRequestToken } from './OC/requesttoken.js' const warnIfNotTesting = function() { if (window.TESTING === undefined) { - OC.debug && console.debug.apply(console, arguments) + OC.debug && console.warn.apply(console, arguments) } } diff --git a/core/src/jquery/placeholder.js b/core/src/jquery/placeholder.js index b77692fdf39..9e24216a1b5 100644 --- a/core/src/jquery/placeholder.js +++ b/core/src/jquery/placeholder.js @@ -140,7 +140,7 @@ const toRgb = (s) => { } String.prototype.toRgb = function() { - OC.debug && console.debug('String.prototype.toRgb is deprecated! It will be removed in Nextcloud 22.') + OC.debug && console.warn('String.prototype.toRgb is deprecated! It will be removed in Nextcloud 22.') return toRgb(this) } |