@fortawesome/free-solid-svg-icons#faBug TypeScript Examples

The following examples show how to use @fortawesome/free-solid-svg-icons#faBug. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: icon.service.ts    From WowUp with GNU General Public License v3.0 5 votes vote down vote up
public constructor(private _matIconRegistry: MatIconRegistry, private _sanitizer: DomSanitizer) {
    this.addSvg(faAngleDoubleDown);
    this.addSvg(faArrowUp);
    this.addSvg(faArrowDown);
    this.addSvg(faSyncAlt);
    this.addSvg(faTimes);
    this.addSvg(faExternalLinkAlt);
    this.addSvg(faQuestionCircle);
    this.addSvg(faPlay);
    this.addSvg(faClock);
    this.addSvg(faBug);
    this.addSvg(faLink);
    this.addSvg(faDiscord);
    this.addSvg(faGithub);
    this.addSvg(faInfoCircle);
    this.addSvg(faCodeBranch);
    this.addSvg(faCaretDown);
    this.addSvg(faExclamationTriangle);
    this.addSvg(faCode);
    this.addSvg(faPatreon);
    this.addSvg(faCoins);
    this.addSvg(faCompressArrowsAlt);
    this.addSvg(faPencilAlt);
    this.addSvg(faCheckCircle);
    this.addSvg(faDiceD6);
    this.addSvg(faSearch);
    this.addSvg(faInfoCircle);
    this.addSvg(faNewspaper);
    this.addSvg(faCog);
    this.addSvg(faAngleUp);
    this.addSvg(faAngleDown);
    this.addSvg(faChevronRight);
    this.addSvg(faUserCircle);
    this.addSvg(faEllipsisV);
    this.addSvg(faCopy);
    this.addSvg(farCheckCircle);
    this.addSvg(faExclamation);
    this.addSvg(faTrash);
    this.addSvg(faHistory);
    this.addSvg(faCaretSquareRight);
    this.addSvg(faCaretSquareLeft);
    this.addSvg(faMinimize);
    this.addSvg(faUpRightFromSquare);
  }
Example #2
Source File: HelpContentReportIssue.tsx    From mysterium-vpn-desktop with MIT License 5 votes vote down vote up
HelpContentReportIssue: React.FC = observer(function HelpContentReportIssue() {
    const { feedback } = useStores()
    const email = useRef<HTMLInputElement>(null)
    const description = useRef<HTMLTextAreaElement>(null)
    const clearInputs = () => {
        if (email.current) {
            email.current.value = ""
        }
        if (description.current) {
            description.current.value = ""
        }
    }
    const submit = async () => {
        const res = feedback.reportIssue({
            email: email.current?.value,
            description: description.current?.value ?? "",
        })
        await toast.promise(res, {
            loading: "Sending report...",
            success: function successToast(issueId) {
                return (
                    <span>
                        <b>Report #{issueId} submitted</b>
                        <br />
                        Thanks for the feedback!
                    </span>
                )
            },
            error: function errorToast(reason) {
                return (
                    <span>
                        <b>Could not submit the report ?</b>
                        <br />
                        {reason}
                    </span>
                )
            },
        })
        clearInputs()
    }
    return (
        <>
            <FontAwesomeIcon icon={faBug} color="#ffffff88" size="2x" />
            <Title>Bug report</Title>
            <Explanation>
                Describe the problem you got while using the application. We will try to solve it. Also leave your email
                so that we can contact you if needed.
            </Explanation>
            <TextInput placeholder="Email (optional)" ref={email} />
            <DescriptionTextArea placeholder="Describe the issue" ref={description} />
            <Explanation>
                Description and <strong>application logs</strong> will be attached to the issue. Logs may include
                sensitive information, such as IP address and location. It will be only accessible and used by the dev
                team to address the issue you are having.
            </Explanation>
            <SendButton onClick={submit} loading={feedback.loading}>
                Send
            </SendButton>
        </>
    )
})
Example #3
Source File: HelpView.tsx    From mysterium-vpn-desktop with MIT License 4 votes vote down vote up
HelpView: React.FC = observer(function HelpView() {
    const { navigation } = useStores()
    const navigate = useNavigate()
    const location = useLocation()
    const isBugReportActive = location.pathname.includes(locations.helpBugReport)
    const isTermsAndConditionsActive = location.pathname.includes(locations.helpTermsAndConditions)
    return (
        <ViewContainer>
            <ViewNavBar />
            <ViewSplit>
                <ViewSidebar>
                    <SideTop>
                        <IconPerson color={brandLight} />
                        <Title>Get help</Title>
                        <Small>Help using Mysterium VPN</Small>
                    </SideTop>
                    <SideBot>
                        <SupportChatButton onClick={() => navigation.openChat()}>
                            <FontAwesomeIcon icon={faComments} />
                            Support chat
                        </SupportChatButton>
                        <NavButton active={isBugReportActive} onClick={() => navigate(locations.helpBugReport)}>
                            <FontAwesomeIcon icon={faBug} />
                            Bug report
                        </NavButton>
                        <NavButton
                            active={isTermsAndConditionsActive}
                            onClick={() => navigate(locations.helpTermsAndConditions)}
                        >
                            <FontAwesomeIcon icon={faFileContract} />
                            Terms & Conditions
                        </NavButton>
                        <NavButton active={false} onClick={() => shell.openExternal("https://docs.mysterium.network")}>
                            <FontAwesomeIcon icon={faBook} />
                            Documentation
                        </NavButton>
                        <SocialButtons>
                            <IconButton
                                active={false}
                                onClick={() => {
                                    shell.openExternal("https://discordapp.com/invite/n3vtSwc")
                                }}
                            >
                                <FontAwesomeIcon icon={faDiscord} size="2x" />
                            </IconButton>
                            <IconButton
                                active={false}
                                onClick={() => {
                                    shell.openExternal("https://www.reddit.com/r/MysteriumNetwork/")
                                }}
                            >
                                <FontAwesomeIcon icon={faReddit} size="2x" />
                            </IconButton>
                            <IconButton active={false}>
                                <FontAwesomeIcon
                                    icon={faTwitter}
                                    size="2x"
                                    onClick={() => {
                                        shell.openExternal("https://twitter.com/MysteriumNet")
                                    }}
                                />
                            </IconButton>
                            <IconButton active={false}>
                                <FontAwesomeIcon
                                    icon={faFacebookSquare}
                                    size="2x"
                                    onClick={() => {
                                        shell.openExternal("https://www.facebook.com/MysteriumNet")
                                    }}
                                />
                            </IconButton>
                        </SocialButtons>
                        <Version />
                    </SideBot>
                </ViewSidebar>
                <Content>
                    <Outlet />
                </Content>
            </ViewSplit>
        </ViewContainer>
    )
})