From: Matthias Schmidt Date: Thu, 17 Jun 2021 04:40:20 +0000 (+0200) Subject: Delete `WCF.Like.js` (#4300) X-Git-Tag: 5.5.0_Alpha_1~634 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=88400dbb5b2d6654132cf99e494af6f1d48b2930;p=GitHub%2FWoltLab%2FWCF.git Delete `WCF.Like.js` (#4300) As this component would result in an error when used for many versions, it is safe to remove it. --- diff --git a/com.woltlab.wcf/fileDelete.xml b/com.woltlab.wcf/fileDelete.xml index 8e68069e70..c294e8a1ca 100644 --- a/com.woltlab.wcf/fileDelete.xml +++ b/com.woltlab.wcf/fileDelete.xml @@ -1184,6 +1184,7 @@ js/WCF.Core.min.js js/WCF.ImageViewer.min.js js/WCF.Label.min.js + js/WCF.Like js/WCF.Like.min.js js/WCF.Location.min.js js/WCF.Message.min.js diff --git a/com.woltlab.wcf/templates/headIncludeJavaScript.tpl b/com.woltlab.wcf/templates/headIncludeJavaScript.tpl index fe9b47518a..b3653dcc9e 100644 --- a/com.woltlab.wcf/templates/headIncludeJavaScript.tpl +++ b/com.woltlab.wcf/templates/headIncludeJavaScript.tpl @@ -215,7 +215,6 @@ window.addEventListener('pageshow', function(event) { WCF.User.init({@$__wcf->user->userID}, '{@$__wcf->user->username|encodeJS}'); -{js application='wcf' file='WCF.Like' bundle='WCF.Combined' hasTiny=true} {js application='wcf' file='WCF.ACL' bundle='WCF.Combined' hasTiny=true} {js application='wcf' file='WCF.Attachment' bundle='WCF.Combined' hasTiny=true} {js application='wcf' file='WCF.ColorPicker' bundle='WCF.Combined' hasTiny=true} diff --git a/wcfsetup/install/files/js/.buildOrder b/wcfsetup/install/files/js/.buildOrder index c573d15cfe..82ce398102 100644 --- a/wcfsetup/install/files/js/.buildOrder +++ b/wcfsetup/install/files/js/.buildOrder @@ -5,7 +5,6 @@ 3rdParty/polyfill/focus-visible WCF.Assets WCF -WCF.Like WCF.ACL WCF.Attachment WCF.ColorPicker diff --git a/wcfsetup/install/files/js/WCF.Like.js b/wcfsetup/install/files/js/WCF.Like.js deleted file mode 100644 index 049062e904..0000000000 --- a/wcfsetup/install/files/js/WCF.Like.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; - -/** - * Like support for WCF - * - * @author Alexander Ebert - * @copyright 2001-2019 WoltLab GmbH - * @license GNU Lesser General Public License - * - * @deprecated 3.0 - please use `WoltLabSuite/Core/Ui/Reaction/Handler` instead - */ -WCF.Like = Class.extend({ - init: function() { - throw new Error("The `WCF.Like` API is obsolete and therefore no longer supported. Please use the current API `WoltLabSuite/Core/Ui/Reaction/Handler` instead."); - }, - _domNodeInserted: function() {}, - _initContainers: function() {}, - _getContainers: function() {}, - _getWidgetContainer: function() {}, - _getObjectID: function() {}, - _addWidget: function() {}, - _buildWidget: function() {}, - _createWidget: function() {}, - _showLikeDetails: function() {}, - _click: function() {}, - _sendRequest: function() {}, - _success: function() {}, - _updateBadge: function() {}, - _updateSummary: function() {}, - _setActiveState: function() {} -}); diff --git a/wcfsetup/install/files/lib/system/template/plugin/JsFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/JsFunctionTemplatePlugin.class.php index b5ce7402e9..c51e118e75 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/JsFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/JsFunctionTemplatePlugin.class.php @@ -23,8 +23,8 @@ use wcf\util\StringUtil; * {js application='wbb' file='WBB'} * http://example.com/js/WBB.js * - * {js application='wcf' file='WCF.Like' bundle='WCF.Combined'} - * http://example.com/wcf/js/WCF.Like.js (ENABLE_DEBUG_MODE=1) + * {js application='wcf' file='WCF.User' bundle='WCF.Combined'} + * http://example.com/wcf/js/WCF.User.js (ENABLE_DEBUG_MODE=1) * http://example.com/wcf/js/WCF.Combined.min.js (ENABLE_DEBUG_MODE=0) * * {js application='wcf' lib='jquery'} @@ -33,8 +33,8 @@ use wcf\util\StringUtil; * {js application='wcf' lib='jquery-ui' file='awesomeWidget'} * http://example.com/wcf/js/3rdParty/jquery-ui/awesomeWidget.js * - * {js application='wcf' file='WCF.Like' bundle='WCF.Combined' hasTiny=true} - * http://example.com/wcf/js/WCF.Like.js (ENABLE_DEBUG_MODE=1) + * {js application='wcf' file='WCF.User' bundle='WCF.Combined' hasTiny=true} + * http://example.com/wcf/js/WCF.User.js (ENABLE_DEBUG_MODE=1) * http://example.com/wcf/js/WCF.Combined.min.js (ENABLE_DEBUG_MODE=0) * http://example.com/wcf/js/WCF.Combined.tiny.min.js (ENABLE_DEBUG_MODE=0 && VISITOR_USE_TINY_BUILD=1) *