From 45f3552fb3458eaccf0e3161295887baab292056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Tue, 22 Nov 2022 15:52:57 -0300 Subject: [PATCH] Remove `@implements EventListener` JS annotation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a link to the MDN documentation page instead. Signed-off-by: MaurĂ­cio Meneghini Fauth --- js/src/functions.js | 4 ++-- js/src/modules/themes-manager.js | 2 +- js/src/server/databases.js | 4 ++-- js/src/server/privileges.js | 28 ++++++++++++++-------------- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/js/src/functions.js b/js/src/functions.js index 6848c30962..57d518f1bc 100644 --- a/js/src/functions.js +++ b/js/src/functions.js @@ -397,7 +397,7 @@ const escapeHtml = (value = '') => { return element.innerHTML; }; -Functions.escapeHtml = escapeHtml +Functions.escapeHtml = escapeHtml; /** * JavaScript escaping @@ -3722,7 +3722,7 @@ Functions.getAutoSubmitEventHandler = function () { }; /** - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ const PrintPage = { handleEvent: () => { diff --git a/js/src/modules/themes-manager.js b/js/src/modules/themes-manager.js index 9807938473..43f2d119a0 100644 --- a/js/src/modules/themes-manager.js +++ b/js/src/modules/themes-manager.js @@ -1,7 +1,7 @@ import $ from 'jquery'; /** - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ export const ThemesManager = { handleEvent: () => { diff --git a/js/src/server/databases.js b/js/src/server/databases.js index 5d788ccc6c..6376908a2f 100644 --- a/js/src/server/databases.js +++ b/js/src/server/databases.js @@ -3,7 +3,7 @@ import $ from 'jquery'; /* global Navigation */ /** - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ const DropDatabases = { /** @@ -79,7 +79,7 @@ const DropDatabases = { }; /** - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ const CreateDatabase = { /** diff --git a/js/src/server/privileges.js b/js/src/server/privileges.js index 39d922eab6..672646b0d6 100644 --- a/js/src/server/privileges.js +++ b/js/src/server/privileges.js @@ -30,7 +30,7 @@ function exportPrivilegesModalHandler (data, msgbox) { } /** - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ const EditUserGroup = { /** @@ -88,7 +88,7 @@ const EditUserGroup = { }; /** - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ const AccountLocking = { handleEvent: function () { @@ -130,7 +130,7 @@ const AccountLocking = { /** * Display a warning if there is already a user by the name entered as the username. * - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ const AddUserLoginCheckUsername = { handleEvent: function () { @@ -160,7 +160,7 @@ const AddUserLoginCheckUsername = { /** * Indicating password strength * - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ const PasswordStrength = { handleEvent: function () { @@ -175,7 +175,7 @@ const PasswordStrength = { /** * Automatically switching to 'Use Text field' from 'No password' once start writing in text area * - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ const SwitchToUseTextField = { handleEvent: function () { @@ -186,7 +186,7 @@ const SwitchToUseTextField = { }; /** - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ const ChangePasswordStrength = { handleEvent: function () { @@ -199,7 +199,7 @@ const ChangePasswordStrength = { /** * Display a notice if sha256_password is selected * - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ const ShowSha256PasswordNotice = { handleEvent: function () { @@ -213,7 +213,7 @@ const ShowSha256PasswordNotice = { }; /** - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ const RevokeUser = { /** @@ -281,7 +281,7 @@ const RevokeUser = { }; /** - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ const ExportPrivileges = { /** @@ -307,7 +307,7 @@ const ExportPrivileges = { }; /** - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ const ExportUser = { /** @@ -323,7 +323,7 @@ const ExportUser = { }; /** - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ const SslTypeToggle = { handleEvent: function () { @@ -337,7 +337,7 @@ const SslTypeToggle = { }; /** - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ const SslPrivilegeToggle = { handleEvent: function () { @@ -416,7 +416,7 @@ function addOrUpdateSubmenu () { } /** - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ const SelectAllPrivileges = { /** @@ -439,7 +439,7 @@ function setMaxWidth () { /** * Validates the "add a user" form * - * @implements EventListener + * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener */ const CheckAddUser = { handleEvent: function () {