This commit is contained in:
Mirco Wittrien 2020-01-17 10:59:41 +01:00
parent a16809efe0
commit 83ab4bff97
4 changed files with 15 additions and 13 deletions

View File

@ -4601,10 +4601,8 @@
DiscordClassModules.Friends = BDFDB.ModuleUtils.findByProperties("friendsColumn", "friendsRow");
DiscordClassModules.Game = BDFDB.ModuleUtils.findByProperties("game", "gameName");
DiscordClassModules.GameIcon = BDFDB.ModuleUtils.findByProperties("gameIcon", "small", "xsmall");
DiscordClassModules.GameLibrary = BDFDB.ModuleUtils.findByProperties("gameLibrary", "scroller");
DiscordClassModules.GameLibraryTable = BDFDB.ModuleUtils.findByProperties("stickyHeader", "emptyStateText");
DiscordClassModules.GifFavoriteButton = BDFDB.ModuleUtils.findByProperties("gifFavoriteButton", "showPulse");
DiscordClassModules.GiftInventory = BDFDB.ModuleUtils.findByProperties("root", "body", "scroller");
DiscordClassModules.GoLiveDetails = BDFDB.ModuleUtils.findByProperties("panel", "gameWrapper");
DiscordClassModules.Guild = BDFDB.ModuleUtils.findByProperties("wrapper", "lowerBadge", "svg");
DiscordClassModules.GuildChannels = BDFDB.ModuleUtils.findByProperties("positionedContainer", "unreadBar");
@ -5230,7 +5228,6 @@
gameiconmedium: ["GameIcon", "medium"],
gameiconsmall: ["GameIcon", "small"],
gameiconxsmall: ["GameIcon", "xsmall"],
gamelibrary: ["GameLibrary", "gameLibrary"],
gamelibrarytable: ["GameLibraryTable", "table"],
gamelibrarytableheader: ["GameLibraryTable", "header"],
gamelibrarytableheadercell: ["GameLibraryTable", "headerCell"],
@ -5246,7 +5243,6 @@
giffavoriteshowpulse: ["GifFavoriteButton", "showPulse"],
giffavoritesize: ["GifFavoriteButton", "size"],
giffavoriteselected: ["GifFavoriteButton", "selected"],
giftinventory: ["GiftInventory", "root"],
goliveactions: ["GoLiveDetails", "actions"],
golivebody: ["GoLiveDetails", "body"],
goliveclickablegamewrapper: ["GoLiveDetails", "clickableGameWrapper"],
@ -6601,6 +6597,7 @@
NativeSubComponents.KeybindRecorder = BDFDB.ModuleUtils.findByName("KeybindRecorder");
NativeSubComponents.PopoutContainer = BDFDB.ModuleUtils.findByName("Popout");
NativeSubComponents.QuickSelect = BDFDB.ModuleUtils.findByName("QuickSelectWrapper");
NativeSubComponents.RadioGroup = BDFDB.ModuleUtils.findByName("RadioGroup");
NativeSubComponents.SearchBar = BDFDB.ModuleUtils.find(m => m && m.displayName == "SearchBar" && m.defaultProps.placeholder == BDFDB.LanguageUtils.LanguageStrings.SEARCH);
NativeSubComponents.Select = BDFDB.ModuleUtils.findByName("SelectTempWrapper");
NativeSubComponents.Slider = BDFDB.ModuleUtils.findByName("Slider");
@ -7604,9 +7601,18 @@
}
};
LibraryComponents.RadioGroup = BDFDB.ModuleUtils.findByName("RadioGroup");
LibraryComponents.RadioItem = BDFDB.ModuleUtils.findByName("RadioItem");
LibraryComponents.RadioGroup = BDFDB.ReactUtils.getValue(window.BDFDB, "LibraryComponents.RadioGroup") || reactInitialized && class BDFDB_RadioGroup extends LibraryModules.React.Component {
handleChange(value) {
this.props.value = value.value;
if (typeof this.props.onChange == "function") this.props.onChange(value, this);
BDFDB.ReactUtils.forceUpdate(this);
}
render() {
return BDFDB.ReactUtils.createElement(NativeSubComponents.RadioGroup, Object.assign({}, this.props, {
onChange: this.handleChange.bind(this)
}));
}
};
LibraryComponents.ScrollerHorizontal = BDFDB.ModuleUtils.findByName("HorizontalScroller");

File diff suppressed because one or more lines are too long

View File

@ -10,9 +10,7 @@ body,
#app-mount REPLACE_CLASS_chat,
#app-mount REPLACE_CLASS_nochannel,
#app-mount REPLACE_CLASS_activityfeed,
#app-mount REPLACE_CLASS_gamelibrary,
#app-mount REPLACE_CLASS_gamelibrarytableheader,
#app-mount REPLACE_CLASS_giftinventory,
#app-mount REPLACE_CLASS_applicationstore,
#app-mount REPLACE_CLASS_friends,
#app-mount REPLACE_CLASS_guilddiscovery,

View File

@ -161,8 +161,6 @@ body, /* body */
#app-mount .chat-3bRxxu, /* chat container */
#app-mount .noChannel-Z1DQK7, /* nochannel */
#app-mount .activityFeed-1C0EmJ, /* activityfeed */
#app-mount .gameLibrary-TTDw4Y, /* library */
#app-mount .root-1BQpZw, /* giftinventory */
#app-mount .applicationStore-1pNvnv, /* store */
#app-mount .container-3gCOGc, /* friends */
#app-mount .pageWrapper-1PgVDX, /* guilddiscovery */
@ -2248,7 +2246,7 @@ body:before {
color: rgb(var(--fontwhite4));
}
#app-mount .installationPath-24giJj { /* gamelibrary container */
#app-mount .installationPath-24giJj { /* gamelibrary path */
box-shadow: 0 1px 0 0 rgba(var(--fontwhite4), 0.3);
}
#app-mount .usageInfo-2WQAwr { /* gamelibrary usageinfo */