1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-30 08:08:32 +00:00
Commit graph

1072 commits

Author SHA1 Message Date
SirStendec
f2479495ce Fix rendering of chat action messages. (msg.type is now msg.messageType because Twitch). Remove debug logging from channel_bar. 2018-02-27 01:41:19 -05:00
SirStendec
eb967e115f More fixes for the React 16 update. 2018-02-22 18:38:13 -05:00
SirStendec
0ae6e5021d A ton of stuff. Initial migration to React 16. Initial changes for Rooms support. Add support for clip champ badge. Start using .gql source files that are compiled during import so we don't need to include GraphQL-tag in builds. 2018-02-22 18:23:44 -05:00
SirStendec
f0bcf7f53e Update the gray theme. Make the settings menu draw a sub-page list if a page has no content. Update changelog. 2018-02-08 18:28:30 -05:00
SirStendec
3ca7d1d955 Add setting to hide live indicator. Fix clicking box-art with channel avatars displayed over thumbnails. Fix width of Chat on Videos with custom chat width. Update hide vodcasts to hide reruns. Fix performance issues and text wrapping in the directory. 2018-02-08 18:28:06 -05:00
SirStendec
8e27f2e6a3 Change multi-badge tooltips to put two badges on each line for a nicer display. Fix replacing badges while also setting per-user badge overrides. 2018-02-02 18:51:38 -05:00
SirStendec
2efbd1ae59 Change how user-specific badge overrides are rendered so that a transparent image badge looks correct no matter what badge style is enabled. 2018-02-02 18:19:42 -05:00
SirStendec
7cc6bf576f Fix a typo with room-specific user-specific emote sets. Add a suppress_logs argument to registering emote sets to avoid spam from the GameWisp add-on. 2018-02-02 18:11:37 -05:00
SirStendec
c9430e1aad Fix generation of CSS for transparent image badges added by FFZ or other extensions. 2018-02-02 16:29:41 -05:00
SirStendec
aee458badd Allow data.image rather than data.urls in generateOverrideCSS for badges. 2018-02-02 16:18:03 -05:00
SirStendec
5d53dd7071 Update changelog. Add handling for ritual messages, as well as a setting to disable them. Disabled ritual messages still render their message in chat, just not the system messages like "X is new here! Say hello!" 2018-02-02 16:00:58 -05:00
SirStendec
7a92d7968f Make badge tooltips better. Add support for overriding image, title, and color to per-user badges. Automatically regenerate badge CSS when loading new badge data unless told not to. Also fix a minor bug in directory/following that can occur if we're rendering a host card before host data has been processed. 2018-02-02 16:00:01 -05:00
SirStendec
b79e910100 If we need to refetch a query in .ensureQuery or .getFromQuery because the results don't have the data we have requested, make a shallow copy of the query document to ensure a cache miss from Apollo's transformDocument method.
This ensures that Apollo uses our newly modified query document when performing the actual request.
2018-02-02 15:57:22 -05:00
SirStendec
5429f4d329 More fixes for the Apollo update. It still has issues with ensuring queries are re-fetched properly, but it is at least modifying queries and doing what it's supposed to. 2018-02-01 16:39:24 -05:00
SirStendec
9e1ba06eef Temporary change to at least let FFZ finish loading with the wrong Apollo version. 2018-01-29 22:59:10 -05:00
SirStendec
0f07ac5c5b Working on replacing the GraphQL dependency with a package we control. 2018-01-29 22:25:39 -05:00
SirStendec
4c9e67a22e Fix Twitch chat badges not rendering. They removed badgeSets from the chat container, so for now access the raw data and parse it ourselves. It's actually about the same difficulty, so it should work fine. 2018-01-19 17:17:16 -05:00
SirStendec
0754144c36 Render badges. Fix badges with weird font sizes. Add an option to show metadata in theatre mode. Fixes #364. Fixes #363. 2018-01-16 17:36:56 -05:00
SirStendec
95d0002b56 Fix chat scroll pausing. scrollToBottom was moved from the object prototype (aka the correct place for functions) to being defined in the constructor (aka not the correct place), making it more annoying to override. 2018-01-15 20:40:54 -05:00
SirStendec
be9de6de25 Fix tool-tip placement. Fix incorrect player width in theater mode with collapsed chat and a custom chat width set. Fix channel bar placement with minimize navigation. Fix player size when entering fullscreen with theater mode enabled. Fix minor bug in has method. 2017-12-21 20:37:58 -05:00
SirStendec
160dd98062 Minor fixes. 2017-12-16 02:24:09 -05:00
SirStendec
53a47e02f5 Update changelog. Update build script to fix minified builds. The latest uglifyes requires keep_classnames as a compression option as well as mangle. 2017-12-16 02:13:53 -05:00
Lordmau5
bbf158aee1 Add Browse -> Popular support for avatar and uptime (#359)
* Add Browse -> Popular support for avatar and uptime

* Fix potential null-erroring

* Fix Twitch's mess once again...

Also add actual decent support for the popular page and various other fixes, such as hiding blocked games and whatnot

* Fix...
2017-12-16 02:00:44 -05:00
SirStendec
cc1705c0c8 Update dependency versions. 2017-12-14 16:21:41 -05:00
SirStendec
4c75eac19c Version bump. Fix Promise detection in non-Webkit browsers. Change how hollow button metadata is colored. 2017-12-14 16:21:30 -05:00
Lordmau5
941aab9feb Hide Vodcasts & Host Button (#353)
* Fix occasional vanishing of stream card uptime, avatar and other info

* Additionally fix routing issues with the modified avatar div

* Add hide vodcast functionality

* Add `vuedraggable` to dependencies

* Remove LegacyAPI

* Add host button with aut-host management menu

Messy code, but it works.

* Only add `disabled` class to button if chat connection isn't there

* Fix for host button not updating it's text properly after un-/hosting

* Add tooltip to host button and use alternative way to get the chat inst.

* Rework host button stuff into new metadata

All is functional, even though the code might be a mess.

* Implement Auto-Host settings tab

* Fix reassignment to const, hehe

* Custom TMI events for Host and Unhost, plus use existing chat connection

* Code adjustments, disabling the button when host is loading, etc.

* Address code-review suggestions

Translation support and a few other fixes

* Remove inline styling

* Show error in tooltip if hosting didn't work properly or similar issues

* Address change requests

* Fix mixup

* Fix host options not having a background

* Fix styling for the host options

This adds a small border

* Hide host button on own channel

* Fix popper

* Move `isChannelHosted` method further up

* Adjust handle of auto host menu and fix vodcast hiding

* Replace loading icon with text

* Add setting for host button; Also another small issue

* Fix joining your own channel multiple times
2017-12-13 23:43:56 -05:00
SirStendec
ac35ee5fab Fix balloon popups for metadata. 2017-12-13 20:45:22 -05:00
SirStendec
ac6663053f Add a setting to disable fixing bad emotes. People are the worst. 2017-12-13 20:22:11 -05:00
SirStendec
8e364e7d84 Misc. fixes to clean up after tw-. Fix tooltip placement. 2017-12-13 18:30:27 -05:00
SirStendec
4b246ade44 tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw-tw- 2017-12-13 17:35:20 -05:00
Lordmau5
5a9a3d221b Fix directory stuff for new Twitch website (#357) 2017-12-13 17:12:42 -05:00
SirStendec
e623becb9c Fix metadata forever. 2017-12-04 22:21:39 -05:00
SirStendec
c3ec40b8ea Fix a leak in the new metadata stuff with pop-ups. Fix the click handler for metadata not getting the most recent data. 2017-12-04 21:37:26 -05:00
SirStendec
e224800fb9 Add support for clickable stream metadata. Add helper utility for detecting clicks outside of elements. Add support for manually shown/hidden tooltips, which is used for custom pop-ups. 2017-12-04 18:58:19 -05:00
SirStendec
dfa0c9c88f Fix message highlighting. 2017-12-01 18:55:44 -05:00
SirStendec
fc40353b87 Bump version. Update change-log. Hide avatars in the directory by default. 2017-12-01 17:00:19 -05:00
SirStendec
428caedec1 Clean up the settings for the directory features. 2017-12-01 16:54:36 -05:00
SirStendec
cbaf4b6878 Remove hard-coded styles from the directory. Make the directory up-time tool-tips nicer. Only update the up-time tool-tips when necessary. Add localization support to the game block/unblock and thumbnail hide/show buttons. Make the buttons appear like they did before. Refactor the code for the buttons to reduce code duplication. 2017-12-01 16:22:45 -05:00
Lordmau5
60f86033e8 Address issues with Directory support (#342)
* Address issues with Directory support


De-duplicate `modifyStreams` for Game and Community

* More de-duplication!

PogChamp

* Early return for following.js

* Rely on `props.directoryType` instead of the router

* Move a method around to properly group them

* Fix for game buttons not properly showing when switching tabs

* More fixes!
2017-12-01 15:36:55 -05:00
SirStendec
fcc3cab35f node.remove() exists, so why have I been doing node.parentElement.removeChild(node). I am literally the worst. 2017-12-01 15:36:18 -05:00
SirStendec
ddee1e3bb5 A bunch of CSS tweaks. Add chat appearance features to whisper messages. Fix various layout options now that the player has been modified for Mini Player support. Fix alternating row colors and subscription messages. 2017-12-01 15:34:21 -05:00
SirStendec
aef58f24af Fix tokenization of cheers in chat messages. Also fix cached token invalidation when changing how chat lines should render. 2017-12-01 15:33:06 -05:00
SirStendec
691c09eb18 Don't try running FFZ on the blog sub-domain. 2017-12-01 15:31:59 -05:00
SirStendec
cf8774f1f2 Regenerate the gray theme and update the change-log. 2017-11-28 17:38:34 -05:00
SirStendec
4cfd76b89e Make some changes to how the directory stuff is implemented. There's too much code duplication right now. There's also code leaking from hosts to the main following page. There needs to be a way to detect if a live-channel-card is in the hosts section or not. Communities and Games use the same component, so there's a ton duplicated there. 2017-11-28 03:01:20 -05:00
Lordmau5
6a7a19bf83 Directory Support & Apollo InlineFragment fix (#338)
* Directory Support

- Channel avatar next to / on-top the stream card
- Stream uptime on stream card
- Host grouping with a nice UI
- Ability to block / hide games and / or their thumbnails

Missing / Not working as of right now:
- Channel avatar / uptime not showing in Game or Community directories
Fix not being able to open host menu on the stream name


Fix chat lines where you've been mentioned.


"Following" button is now hoverable

Not configurable though.
Merge remote-tracking branch 'upstream/master'


Fix for Apollo's InlineFragments


Basic game directory index support

(Outsource timeToString to some utility class!!!)
Empty merge

Fix Github's "You're behind the master branch!" annoyance
More work on Directory stuff

Community pages are now supported
Several other small things

* Proper router usage

* Several fixes

Also removing `package-lock.json` because for whatever reason that was in?

* Early return if the container or card are null
2017-11-28 02:16:37 -05:00
SirStendec
2b6e93ab11 Fix Chat Width not applying to Chat on Videos. Minor string tweaks for the disable auto-play feature. 2017-11-28 02:13:47 -05:00
Kane York
7f997d4884 Add setting to disable autoplay on the home page (#339)
* Disable autoplay on the home page (default allow)

* Also check contentShowing event

This fixes the behavior on Chrome's simulated slow networks - the video
plays for a small amount of time then pauses. The player never fires the
'play' event if the network is slow enough to require significant
buffering.
2017-11-28 02:07:16 -05:00
SirStendec
cbbe6f3e20 Basic badge stuff. Rendering of extension badges is still disabled for now, but SOON(tm). Fix emotes in locally echoed messages when emoji are present. Cache tokens in chat lines. Include the intl-login element within the username link in chat so it all underlines together. 2017-11-28 02:03:59 -05:00
SirStendec
f66069798d Fix chat lines where you've been mentioned. 2017-11-23 14:32:30 -05:00