Delete `WCF.Like.js` (#4300)
authorMatthias Schmidt <gravatronics@live.com>
Thu, 17 Jun 2021 04:40:20 +0000 (06:40 +0200)
committerGitHub <noreply@github.com>
Thu, 17 Jun 2021 04:40:20 +0000 (06:40 +0200)
As this component would result in an error when used for many versions, it is safe to remove it.

com.woltlab.wcf/fileDelete.xml
com.woltlab.wcf/templates/headIncludeJavaScript.tpl
wcfsetup/install/files/js/.buildOrder
wcfsetup/install/files/js/WCF.Like.js [deleted file]
wcfsetup/install/files/lib/system/template/plugin/JsFunctionTemplatePlugin.class.php

index 8e68069e70e202382f643ce8dde476dfa3504db5..c294e8a1cae5666e865ed55dbfa19a0baa4f6172 100644 (file)
                <file>js/WCF.Core.min.js</file>
                <file>js/WCF.ImageViewer.min.js</file>
                <file>js/WCF.Label.min.js</file>
+               <file>js/WCF.Like</file>
                <file>js/WCF.Like.min.js</file>
                <file>js/WCF.Location.min.js</file>
                <file>js/WCF.Message.min.js</file>
index fe9b47518ae4dc970cd0316aeeceb5e02fda99fe..b3653dcc9eae5020641465fc977c41f238d2fa41 100644 (file)
@@ -215,7 +215,6 @@ window.addEventListener('pageshow', function(event) {
        WCF.User.init({@$__wcf->user->userID}, '{@$__wcf->user->username|encodeJS}');
 </script>
 
-{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}
index c573d15cfe30d2f76286cde5eeb97d769fdbd030..82ce3981022da64b02c86ef2684aa16298097aea 100644 (file)
@@ -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 (file)
index 049062e..0000000
+++ /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 <http://opensource.org/licenses/lgpl-license.php>
- * 
- * @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() {}
-});
index b5ce7402e9deed14980b7047e6291220f6be4917..c51e118e7551ea6375ba6de4878c865365592218 100644 (file)
@@ -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)
  *