|
|
|
@ -1,32 +1,14 @@
|
|
|
|
|
// const { Table } = require('@vizality/components');
|
|
|
|
|
import React, { memo, useState, useEffect, useRef } from 'react';
|
|
|
|
|
import React, { memo, useState, useEffect } from 'react';
|
|
|
|
|
|
|
|
|
|
import { UserProfile, UserPopout, Icon, SearchBar, KeyboardShortcut, KeybindRecorder, Avatar, Text, HeaderBarContainer, CarouselWithPreview, ApplicationCommandDiscoverySectionList, ApplicationStoreListingCarousel, FormNotice, Notice, NumberBadge, TextBadge, IconBadge, AsyncComponent, ProgressBar } from '@vizality/components';
|
|
|
|
|
import { UserProfile, UserPopout, Icon, SearchBar, KeyboardShortcut, KeybindRecorder, Text, HeaderBarContainer, CarouselWithPreview, ApplicationStoreListingCarousel, FormNotice, Notice, NumberBadge, TextBadge, IconBadge, ProgressBar } from '@vizality/components';
|
|
|
|
|
import { getModuleByDisplayName, getModule } from '@vizality/webpack';
|
|
|
|
|
|
|
|
|
|
const TransitionGroup = getModuleByDisplayName('TransitionGroup');
|
|
|
|
|
const SlideIn = getModuleByDisplayName('SlideIn');
|
|
|
|
|
|
|
|
|
|
const { getCurrentUser } = getModule('getCurrentUser');
|
|
|
|
|
// eslint-disable-next-line no-empty-function
|
|
|
|
|
|
|
|
|
|
const { PremiumPaymentGuildAnimation } = getModule('PremiumPaymentGuildAnimation');
|
|
|
|
|
const KeybindEntry = (() => {
|
|
|
|
|
let keybindentry;
|
|
|
|
|
try {
|
|
|
|
|
const UserSettingsKeybinds = getModuleByDisplayName('FluxContainer(UserSettingsKeybinds)')?.prototype?.render?.call({ memoizedGetStateFromStores: () => ({}) });
|
|
|
|
|
if (!UserSettingsKeybinds) throw 'Failed to get UserSettingsKeybinds component!';
|
|
|
|
|
const [ keybind ] = UserSettingsKeybinds.type?.prototype?.renderKeybinds?.call({ keybindActionTypes: {}, keybindDescriptions: {} }, [ {} ]);
|
|
|
|
|
if (!keybind) throw 'Failed to render fake Keybind!';
|
|
|
|
|
keybindentry = keybind.props?.children?.type;
|
|
|
|
|
if (!keybindentry) throw 'Failed to get KeybindEntry component!';
|
|
|
|
|
} catch (err) {
|
|
|
|
|
console.error(err);
|
|
|
|
|
keybindentry = () => null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return keybindentry;
|
|
|
|
|
})();
|
|
|
|
|
// const { PremiumPaymentGuildAnimation } = getModule('PremiumPaymentGuildAnimation');
|
|
|
|
|
// const { usePaymentModalAnimationScene } = getModule('usePaymentModalAnimationScene');
|
|
|
|
|
export default memo(() => {
|
|
|
|
|
const [ completed, setCompleted ] = useState(0);
|
|
|
|
@ -37,7 +19,7 @@ export default memo(() => {
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
{/* e.WAITING = "WAITING",
|
|
|
|
|
{/* e.WAITING = "WAITING",
|
|
|
|
|
e.PURCHASING = "PURCHASING",
|
|
|
|
|
e.FAIL = "FAIL",
|
|
|
|
|
e.COMPLETED = "COMPLETED" */}
|
|
|
|
@ -68,11 +50,6 @@ export default memo(() => {
|
|
|
|
|
<Notice color={Notice.Colors.DANGER} />
|
|
|
|
|
<UserPopout user={getCurrentUser()} />
|
|
|
|
|
<UserProfile user={getCurrentUser()} />
|
|
|
|
|
{/* <Sticker
|
|
|
|
|
className='pie'
|
|
|
|
|
src='https://i.giphy.com/media/wTgYlmxctT2O4/giphy.webp'
|
|
|
|
|
/>
|
|
|
|
|
<Emote name='Bob' src="https://cdn.discordapp.com/avatars/97549189629636608/42091c785e85fc5c20b9f1733d6b802a.png" /> */}
|
|
|
|
|
<HeaderBarContainer>
|
|
|
|
|
<Text>I like pie</Text>
|
|
|
|
|
</HeaderBarContainer>
|
|
|
|
@ -153,24 +130,13 @@ export default memo(() => {
|
|
|
|
|
]}
|
|
|
|
|
renderItem={handleRender}
|
|
|
|
|
/> */}
|
|
|
|
|
{/* <Avatar
|
|
|
|
|
<Avatar
|
|
|
|
|
isTyping={true}
|
|
|
|
|
isMobile={true}
|
|
|
|
|
src='https://cdn.discordapp.com/avatars/597905003717459968/74809b431684d381a5ed0637f8adbf91.png'
|
|
|
|
|
status='online'
|
|
|
|
|
statusTooltip={true}
|
|
|
|
|
size={Avatar.Sizes.SIZE_32}
|
|
|
|
|
/> */}
|
|
|
|
|
<KeybindEntry
|
|
|
|
|
keybind={{ managed: false, id: '1', action: 'TOGGLE_MUTE', shortcut: [] }}
|
|
|
|
|
keybindActionTypes={[
|
|
|
|
|
{ label: 'Unassigned', value: 'UNASSIGNED' },
|
|
|
|
|
{ label: 'Push to Talk (Normal)', value: 'TOGGLE_MUTE' }
|
|
|
|
|
]}
|
|
|
|
|
keybindDescriptions={{
|
|
|
|
|
UNASSIGNED: 'Navigate backward in page history',
|
|
|
|
|
TOGGLE_MUTE: 'asdasd asda dasda ds'
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<video autoPlay loop autoPictureInPicture controls={false}>
|
|
|
|
|
<source src="https://www.kelp.agency/wp-content/uploads/2020/06/orbit_1_1.webm" type="video/webm" />
|
|
|
|
|