mirror of
https://github.com/XFox111/PasswordGeneratorExtension.git
synced 2026-04-22 08:08:01 +03:00
86c4e0498b
* Bump @types/react from 18.0.32 to 18.0.33 (#160) Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.0.32 to 18.0.33. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: "@types/react" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * CodeQL URL sanitization fix (#162) * Redone feedback link determination (CodeQL#7, CodeQL#8) * Removed unused import to fix CI pipeline * Changed RNG method for password generator (CodeQL#1, CodeQL#2) (#163) * Bump @fluentui/react-components from 9.18.6 to 9.19.1 (#168) Bumps [@fluentui/react-components](https://github.com/microsoft/fluentui) from 9.18.6 to 9.19.1. - [Release notes](https://github.com/microsoft/fluentui/releases) - [Changelog](https://github.com/microsoft/fluentui/blob/master/azure-pipelines.release-fluentui.yml) - [Commits](https://github.com/microsoft/fluentui/compare/@fluentui/react-components_v9.18.6...@fluentui/react-components_v9.19.1) --- updated-dependencies: - dependency-name: "@fluentui/react-components" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump typescript from 5.0.3 to 5.0.4 (#167) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.0.3 to 5.0.4. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v5.0.3...v5.0.4) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump webpack from 5.77.0 to 5.81.0 (#166) Bumps [webpack](https://github.com/webpack/webpack) from 5.77.0 to 5.81.0. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v5.77.0...v5.81.0) --- updated-dependencies: - dependency-name: webpack dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/react from 18.0.33 to 18.2.0 (#165) Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.0.33 to 18.2.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: "@types/react" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/react-dom from 18.0.11 to 18.2.1 (#164) Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 18.0.11 to 18.2.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom) --- updated-dependencies: - dependency-name: "@types/react-dom" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eugene Fox <eugene.xfox@outlook.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
68 lines
2.6 KiB
TypeScript
68 lines
2.6 KiB
TypeScript
import { AccordionItem, AccordionHeader, AccordionPanel, Link, Text, Button } from "@fluentui/react-components";
|
|
import { InfoRegular, PersonFeedbackRegular } from "@fluentui/react-icons";
|
|
import { ReactComponent as BuyMeACoffee } from "../Assets/BuyMeACoffee.svg";
|
|
import React from "react";
|
|
import { loc } from "../Utils/Localization";
|
|
import * as Platform from "react-device-detect";
|
|
|
|
export default class AboutSection extends React.Component
|
|
{
|
|
public render(): JSX.Element
|
|
{
|
|
return (
|
|
<AccordionItem value="about">
|
|
<AccordionHeader as="h2" icon={ <InfoRegular /> }>{ loc("About") }</AccordionHeader>
|
|
<AccordionPanel>
|
|
<section className="stack gap fadeIn">
|
|
<Text as="p">
|
|
{ loc("Developed by Eugene Fox") } (<Link href="https://twitter.com/xfox111" target="_blank">@xfox111</Link>)
|
|
<br />
|
|
{ loc("Licensed under") } <Link href="https://github.com/XFox111/PasswordGeneratorExtension/blob/master/LICENSE" target="_blank">{ loc("MIT license") }</Link>
|
|
</Text>
|
|
<Text as="p">
|
|
{ loc("Want to contribute translation for your language?") } <Link href="https://github.com/XFox111/PasswordGeneratorExtension/blob/master/CONTRIBUTING.md" target="_blank">{ loc("Read this to get started") }</Link>
|
|
</Text>
|
|
<Text as="p">
|
|
<Link href="https://xfox111.net/" target="_blank">{ loc("My website") }</Link>
|
|
<br />
|
|
<Link href="https://github.com/xfox111/PasswordGeneratorExtension" target="_blank">{ loc("Source code") }</Link>
|
|
<br />
|
|
<Link href="https://github.com/XFox111/PasswordGeneratorExtension/releases/latest" target="_blank">{ loc("Changelog") }</Link>
|
|
</Text>
|
|
|
|
<div className="stack horizontal gap">
|
|
<Button
|
|
as="a" target="_blank"
|
|
href={ this.GetFeedbackLink() }
|
|
appearance="primary" icon={ <PersonFeedbackRegular /> }>
|
|
|
|
{ loc("Leave feedback") }
|
|
</Button>
|
|
|
|
<Button
|
|
as="a" target="_blank"
|
|
href="https://buymeacoffee.com/xfox111"
|
|
className="bmc" appearance="primary" icon={ <BuyMeACoffee /> }>
|
|
|
|
{ loc("Buy me a coffee") }
|
|
</Button>
|
|
</div>
|
|
</section>
|
|
</AccordionPanel>
|
|
</AccordionItem>
|
|
);
|
|
}
|
|
|
|
private GetFeedbackLink(): string
|
|
{
|
|
if (Platform.isEdgeChromium)
|
|
return "https://microsoftedge.microsoft.com/addons/detail/password-generator/manimdhobjbkfpeeehlhhneookiokpbj";
|
|
else if (Platform.isChrome)
|
|
return "https://chrome.google.com/webstore/detail/password-generator/jnjobgjobffgmgfnkpkjfjkkfhfikmfl";
|
|
else if (Platform.isFirefox)
|
|
return "https://addons.mozilla.org/en-US/firefox/addon/easy-password-generator";
|
|
else
|
|
return "mailto:feedback@xfox111.net";
|
|
}
|
|
}
|