1
0
mirror of https://github.com/chylex/Discord-History-Tracker.git synced 2024-12-22 14:42:50 +01:00
Commit Graph

254 Commits

Author SHA1 Message Date
2c05220e19 Fix angled brackets around urls not getting removed in renderer 2016-11-01 16:50:15 +01:00
8ffdd8eaec Fix style of code elements, detection of inline code, and prevent formatting inside them 2016-11-01 16:37:26 +01:00
a71bb740c2 Rename the regex for escaped characters and add unescaped ones in renderer 2016-11-01 16:36:35 +01:00
823b4049f7 Fix detection of escaped asterisk in renderer 2016-11-01 16:35:51 +01:00
ab9eacc060 Improve the look of pagination buttons in renderer 2016-11-01 16:11:03 +01:00
d22163b358 Stop execution of tracker when automatically moving to Friends list 2016-11-01 16:10:38 +01:00
4db76900d3 Add handling of escaped formatting characters in renderer 2016-11-01 16:09:28 +01:00
454bc0fb39 Fix images going out of bounds in renderer 2016-11-01 15:56:29 +01:00
e7a06f6748 Add an option to display all messages on one page in renderer 2016-11-01 15:51:02 +01:00
ee34d82aea Make getAllMessages and getRawMessages in renderer return a map instead of an array 2016-11-01 15:45:36 +01:00
37d0c1e182 Add a polyfill info comment to Object.values in tracker 2016-11-01 13:10:28 +01:00
693943453f Add refresh prompt when running the tracker script in a channel 2016-11-01 13:03:18 +01:00
094ed75eca Add a couple utility functions to renderer (retrieving messages and selected channel) 2016-10-31 22:22:22 +01:00
60a66690bd Fix inconsistency in renderer element ID and menu style 2016-10-31 21:27:24 +01:00
7d9d1a9869 Fix max width of image thumbnails in renderer 2016-10-31 01:18:37 +01:00
b74b03d44d Add .jpeg to attachment image extensions in renderer 2016-10-31 00:00:13 +01:00
ba2b5fa7c8 Fix image alt text in renderer (change title to alt) 2016-10-30 23:56:02 +01:00
f7136560a1 Add 'edited' label to edited messages in renderer 2016-10-30 23:50:00 +01:00
b5eec0fc65 Remove bit 2 (user mentions) from savefile.js 2016-10-30 23:49:34 +01:00
ba3564dbcb Add embedded image rendering 2016-10-30 23:43:40 +01:00
6a6a44c04d Fix thumbnail links in renderer 2016-10-30 23:42:32 +01:00
6a9d6607ed Add message attachment rendering 2016-10-30 23:36:33 +01:00
45896cc266 Add styles and templates for embedded images and downloads 2016-10-30 23:35:54 +01:00
dd338dfaf6 Work on message rendering (wrap contents in <p>, update stylesheets) 2016-10-30 23:35:10 +01:00
7af9ca8302 Fix message sorting in renderer having issues with varying message key lengths 2016-10-30 22:41:56 +01:00
a94b5a0358 Fix renderer pagination updating too late, causing empty message list when changing msgs per page 2016-10-30 22:19:04 +01:00
caaaedcf73 Add styles for disabled elements, selects, and texts in the renderer menu 2016-10-30 22:12:05 +01:00
000ef6d57f Add basic configurable pagination to renderer 2016-10-30 22:11:41 +01:00
d64ed39724 Add menu separator to renderer 2016-10-30 21:09:15 +01:00
41864af9d7 Reorganize renderer GUI scripts into scr.gui.js 2016-10-30 20:18:08 +01:00
8f9f28518f Update the menu styles in renderer (flex, fix button text selecting, futureproofing) 2016-10-30 20:14:37 +01:00
c4baf33a9f Tweak the message username size and padding in renderer 2016-10-30 20:12:30 +01:00
f8ae7ea42c Add a border between channels in renderer 2016-10-30 16:48:13 +01:00
4b5323d152 Redesign and move the menu to the top in renderer 2016-10-30 16:48:04 +01:00
22a451ff76 Fix an issue with cached request checking while not in a channel in tracker 2016-10-30 16:29:43 +01:00
5c1f03c5f3 Tweak the wording in tracker GUI 2016-10-30 16:29:28 +01:00
a87043114b Update info in the tracker settings GUI 2016-10-30 15:38:11 +01:00
312e4b9f34 Add a warning message to tracker if ran while in a channel 2016-10-30 15:29:24 +01:00
bd39323683 Add first request cache and untracked request detection to tracker 2016-10-30 15:28:07 +01:00
fbbbbcd39c Prevent tracker script from being ran twice 2016-10-30 13:35:14 +01:00
b9d50ddb01 Add channel and message counting to tracker, and display them in the controller UI 2016-10-27 23:44:46 +02:00
a3b3f55d47 Fix broken saved message detection in tracker 2016-10-27 20:51:34 +02:00
47d846b283 Change the upload button title in tracker 2016-10-27 20:48:42 +02:00
f75d6f7a84 Add a couple notes to the tracker GUI 2016-10-27 20:40:43 +02:00
dc0132357f Fix slash escaping in renderer 2016-10-27 20:17:26 +02:00
42789dcf7b Add message HTML escaping to renderer 2016-10-27 20:13:31 +02:00
06f8ba529c Fix HTML escaping in renderer getting renamed by UglifyJS 2016-10-27 20:12:05 +02:00
b7829f09f9 Set UglifyJS to mangle props and add a file with reserved props 2016-10-27 19:39:34 +02:00
54a1ffddbf Register users in message mentions when tracking 2016-10-27 17:06:05 +02:00
b6286d619c Rename 'src' to 'scr' in renderer script prefixes 2016-10-27 16:55:17 +02:00
63cbd25ee9 Add channel and user mention highlighting in renderer, and fix typos in scr.discord.js 2016-10-27 16:50:32 +02:00
a42a7b6913 Add a way of retrieving channel and user names from renderer state object 2016-10-27 16:49:51 +02:00
b97c483be9 Add message formatting and styles to renderer (inline formats, code, urls) 2016-10-27 16:26:35 +02:00
81a56e4da5 Add regular expressions for formatting to scr.discord.js 2016-10-27 15:47:52 +02:00
35aa3c2724 Add comments to renderer stylesheet and use Verdana instead of Arial 2016-10-27 15:44:43 +02:00
178c230d2c Work on menu and channel list layout and styles in renderer 2016-10-27 15:44:25 +02:00
a459943351 Move renderer data to src.state.js, refactor src.savefile.js, and update execution file to use the state obj 2016-10-27 13:30:05 +02:00
da8027163e Fix HTML escaping in renderer crashing on non-string values 2016-10-27 13:26:55 +02:00
4dda9a6167 Tweak channel list style and layout in renderer 2016-10-26 13:01:59 +02:00
218c28f30e Add HTML escaping to templating in src.template.js 2016-10-26 13:01:10 +02:00
062abeb86a Add HTML character escaping to src.dom.js 2016-10-26 03:10:08 +02:00
e25ccd960e Add basic renderer functionality with file upload, channel selection, and message rendering 2016-10-25 23:27:03 +02:00
f48110faf3 Update renderer styles 2016-10-25 23:25:27 +02:00
88258d102a Add scr.savefile.js to renderer with getter methods 2016-10-25 23:25:10 +02:00
1bd72406b6 Add scr.discord.js to renderer with templates and HTML generation 2016-10-25 23:24:28 +02:00
679a2d8532 Add a smaller version of dom.js to renderer 2016-10-25 22:47:05 +02:00
7f654eaf5d Add template.js to renderer for basic templating 2016-10-25 22:46:55 +02:00
2a5f430884 Remove script.js from renderer 2016-10-25 22:46:38 +02:00
72511b92c6 Remove an unneeded TODO comment from gui.js 2016-10-25 21:41:51 +02:00
874fe42701 Add a basic renderer layout and style 2016-10-25 20:25:09 +02:00
5ec0747fd1 Add and implement a 'Switch to next channel' option 2016-10-25 17:44:02 +02:00
50a1e2e94e Add isInMessageView to discord.js and use it to prevent instant autoscrolling 2016-10-25 17:42:13 +02:00
d6bbb57a3f Add a function to select the next text channel to discord.js 2016-10-25 17:33:18 +02:00
939720dfa9 Add and implement configurable actions after reaching the first or a saved message 2016-10-25 17:17:45 +02:00
4087684913 Add a return value to addDiscordMessages in state.js 2016-10-25 16:57:32 +02:00
810ef6d343 Add hasMoreMessages to discord.js 2016-10-25 16:56:06 +02:00
0d6386f31c Disable upload and settings buttons while tracking 2016-10-25 16:47:43 +02:00
4bde931eca Add and implement an autoscroll setting 2016-10-25 15:32:13 +02:00
21f02b826a Implement execution code with basic message tracking and GUI display 2016-10-25 15:31:56 +02:00
bc81581f94 Fix a crash in gui.js caused by accessing STATE too early 2016-10-25 15:31:08 +02:00
4e110da654 Fix tracking toggle handling in state changed event in gui.js 2016-10-25 15:16:26 +02:00
fdd796b907 Remove trigger parameter from onStateChanged in state.js 2016-10-25 15:11:00 +02:00
1eaea33919 Add a settings overlay to gui.js 2016-10-25 15:10:28 +02:00
eae99d18f1 Add loadOlderMessages function to discord.js 2016-10-25 15:07:47 +02:00
019b96a1e0 Move state changed event handler in gui.js outside showController 2016-10-25 15:07:25 +02:00
13c83991a7 Add a basic settings object to state.js 2016-10-25 15:06:19 +02:00
a57d068008 Update state event listener in gui.js 2016-10-24 23:55:36 +02:00
d9426f1f53 Add more info to state.js state change event 2016-10-24 23:32:49 +02:00
3a4da84c55 Add a basic GUI with database upload and basic state handling 2016-10-24 19:54:06 +02:00
66070febcc Add state.js with basic tracking and savefile properties 2016-10-24 19:44:42 +02:00
827553a00c Add a basic validity check to savefile.js constructor 2016-10-24 18:39:49 +02:00
497e196d52 Fix issues with discord.js channel info function and do minor refactoring 2016-10-24 12:48:13 +02:00
86f5776250 Add a Discord message request hook and a function to retrieve selected channel info 2016-10-24 03:10:59 +02:00
11a3bace81 Add a GROUP server type into the database specification 2016-10-24 02:58:33 +02:00
b215d1dd82 Do minor code tweaks in savefile.js and add new line at the end of hooks.js 2016-10-23 23:53:19 +02:00
74151822c5 Add a reconstructor and a combineWith function to savefile.js 2016-10-23 23:11:18 +02:00
14b90cd624 Add Discord message processing to savefile.js 2016-10-23 23:10:49 +02:00
a8abb720a1 Add user, server, and channel registration functions to savefile.js 2016-10-23 21:10:25 +02:00
8112e5eda4 Update database specifications and storage in the object 2016-10-23 19:35:45 +02:00
2ee1f6550b Add savefile.js with the database format specifications 2016-10-23 19:25:26 +02:00
00e951076e Add element manipulation to dom.js and fix createStyle 2016-10-23 03:13:43 +02:00
c4f4180e76 Add dom.js for DOM manipulation, timers, and download trigger 2016-10-23 02:26:02 +02:00
265e8bf29d Add hooks.js for Ajax request intercepting 2016-10-23 00:51:37 +02:00
49ea05f90a Add some essential source files 2016-10-22 17:25:57 +02:00