From 3a8722a1a2232e15c1b16e38abd66164e778994d Mon Sep 17 00:00:00 2001 From: Keir Nellyer Date: Fri, 15 Jul 2016 23:54:20 +0100 Subject: [PATCH] Remove redundant files and variables --- Plugins/Mineplex.ReportSite/main.js | 56 --------- Plugins/Mineplex.ReportSite/reference.html | 128 --------------------- Plugins/Mineplex.ReportSite/view.php | 1 - 3 files changed, 185 deletions(-) delete mode 100644 Plugins/Mineplex.ReportSite/main.js delete mode 100644 Plugins/Mineplex.ReportSite/reference.html diff --git a/Plugins/Mineplex.ReportSite/main.js b/Plugins/Mineplex.ReportSite/main.js deleted file mode 100644 index b57c0384c..000000000 --- a/Plugins/Mineplex.ReportSite/main.js +++ /dev/null @@ -1,56 +0,0 @@ -const TAG_UUID = "data-player-uuid"; - -var elements = document.querySelectorAll('[' + TAG_UUID + ']'); // NodeList type - -for (var i = 0; i < elements.length; i++) -{ - var element = elements.item(i); - - element.addEventListener("click", (function(element) - { - return function(e) - { - var uuid = element.getAttribute("data-player-uuid"); - copy(uuid); - alertElement('Copied UUID to clipboard.', element, 1500); - } - })(element)); - -} - -/** - * Attempts to copy the supplied text into the users clipboard. - * If this fails they are presented with a box allowing them to copy and paste the text. - * This will only work on a supported browser and if this action is caused by some sort of player input. - * - * @param text the text to put in the users clipboard - */ -function copy(text) -{ - var copyElement = document.createElement('input'); - copyElement.setAttribute('type', 'text'); - copyElement.setAttribute('value', text); - copyElement = document.body.appendChild(copyElement); - copyElement.select(); - - try - { - document.execCommand('copy'); - } - catch (e) - { - console.log("document.execCommand('copy'); is not supported by this browser."); - prompt('Copy the value below. (CTRL + C, ENTER)', text); - } - finally - { - copyElement.remove(); - } -} - -function alertElement(html, element, millis) -{ - var original = element.innerHTML; - element.innerHTML = html; - setTimeout(function() { element.innerHTML = original; }, millis); -} \ No newline at end of file diff --git a/Plugins/Mineplex.ReportSite/reference.html b/Plugins/Mineplex.ReportSite/reference.html deleted file mode 100644 index 73c365244..000000000 --- a/Plugins/Mineplex.ReportSite/reference.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - - - - - Report #1234 · Mineplex - - - - -
- - -
-
-
-

- Report #1234 -

-
-
-
-
-

   Chat Log

-
-
- Chat WilliamTiger: hey -
- Chat b2_mp: you're a tiger -
- Chat Mysticate: that's right!!! -
- Chat WilliamBurns: f*** off not true -
- Chat Phinary: Please watch your language! -
- PM jaws12 -> Phinary: somebody report him! -
- PM Phinary -> jaws12: Okay I will -
-
-
-

   Information

-
-
-
-
-
-
-
-
-
-
- 12/8/15
- 4:18 PM
- Reported by Phinary, jaws12
- Suspect is WilliamBurns
- Staff Member assigned is Artix
-
-
-
- -

   Users

-
- -   WilliamTiger JR.DEV
-  bfc8dadf-c568-4e31-9776-8e710669b02e -

- - -   b2_mp LEADER
-  efaf9a17-2304-4f42-8433-421523c308dc -

- - -   jaws12 DEV
-  00c6d020-4346-4f8a-a9b5-67d4bc3251bf -

- - -   WilliamBurns ULTRA
-  f9eedba5-668d-4ee5-9ee8-98edee840608 -

- - -   Phinary LEADER
-  b33207e2-0dc5-4cbd-b3ee-6c860727f722 -

- - -   Mysticate JR.DEV
-  5c359761-d55b-43a4-9b75-2cc64f8d027f -

-
-
-
- -
- - \ No newline at end of file diff --git a/Plugins/Mineplex.ReportSite/view.php b/Plugins/Mineplex.ReportSite/view.php index f9118aac5..4b202719a 100644 --- a/Plugins/Mineplex.ReportSite/view.php +++ b/Plugins/Mineplex.ReportSite/view.php @@ -12,7 +12,6 @@ const CATEGORIES = array( 2 => 'Chat Abuse' ); -const dataDir = 'data/'; const collapsedMessageCount = 20; // In Java this is "DateTimeFormatter.ISO_LOCAL_DATE_TIME"