1
0
mirror of https://github.com/XFox111/PasswordGeneratorExtension.git synced 2026-07-02 19:52:43 +03:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Eugene Fox 33b3df7433 Minor 2.2.0 (#90)
* Bump @types/react from 18.0.24 to 18.0.26 (#85)

Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.0.24 to 18.0.26.
- [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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump typescript from 4.8.4 to 4.9.4 (#84)

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.8.4 to 4.9.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.8.4...v4.9.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @types/webextension-polyfill from 0.9.1 to 0.9.2 (#83)

Bumps [@types/webextension-polyfill](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/webextension-polyfill) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/webextension-polyfill)

---
updated-dependencies:
- dependency-name: "@types/webextension-polyfill"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @fluentui/react-components from 9.7.1 to 9.7.2 (#82)

Bumps [@fluentui/react-components](https://github.com/microsoft/fluentui) from 9.7.1 to 9.7.2.
- [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.7.1...@fluentui/react-components_v9.7.2)

---
updated-dependencies:
- dependency-name: "@fluentui/react-components"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fixed tooltip trigger area #81 (#87)

* PT-BR translation correction (#88)

* Update "Repeating"

Update "Repeating"

* Update licence MIT

Update licence MIT

* Let it snow! (#89)

* Updated package.json version

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Maison da Silva <maisonmdsgreen@hotmail.com>
2022-12-26 04:26:12 +03:00
Eugene Fox 408d417c3f Minor 2.1.0 (#79)
* Bump @types/node from 18.11.8 to 18.11.9 (#65)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.8 to 18.11.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump sass from 1.55.0 to 1.56.1 (#73)

Bumps [sass](https://github.com/sass/dart-sass) from 1.55.0 to 1.56.1.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.55.0...1.56.1)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump loader-utils from 2.0.2 to 2.0.4 (#74)

Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.4.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.2...v2.0.4)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @fluentui/react-components from 9.6.1 to 9.7.1 (#76)

Bumps [@fluentui/react-components](https://github.com/microsoft/fluentui) from 9.6.1 to 9.7.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.6.1...@fluentui/react-components_v9.7.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>

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.6 to 18.0.9 (#78)

Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 18.0.6 to 18.0.9.
- [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-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @types/jest from 29.2.0 to 29.2.3 (#77)

Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 29.2.0 to 29.2.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

---
updated-dependencies:
- dependency-name: "@types/jest"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

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>

* Updated package.json version

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-06 15:43:19 +03:00
Maison da Silva f8a80d4a4c Lang PT-BR (#70)
* Create messages.json

Lang PT-br brasil

* Fixed pt-br locale path

* Update messages.json

* Updated language list in README.md

Co-authored-by: Eugene Fox <eugene@xfox111.net>
2022-12-06 15:18:16 +03:00
9 changed files with 789 additions and 501 deletions
+1
View File
@@ -21,6 +21,7 @@ Extension for web browsers which helps you to easily generate strong passwords i
- Ukrainian
- Polish
- Russian
- Portuguese (Brazil)
<img width="1136" alt="Password generator v2.0" src="https://user-images.githubusercontent.com/28831743/188680034-a673b1b4-3153-4054-bb0d-949568de1748.png">
+9 -9
View File
@@ -1,15 +1,15 @@
{
"name": "password-generator",
"version": "2.0.3",
"version": "2.2.0",
"private": true,
"dependencies": {
"@craco/craco": "^6.4.5",
"@fluentui/react-components": "^9.6.1",
"@fluentui/react-components": "^9.7.2",
"@fluentui/react-icons": "^2.0.186",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "^1.55.0",
"typescript": "^4.8.4",
"sass": "^1.56.1",
"typescript": "^4.9.4",
"webextension-polyfill": "^0.10.0"
},
"devDependencies": {
@@ -17,11 +17,11 @@
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"@types/craco__craco": "^6.4.0",
"@types/jest": "^29.2.0",
"@types/node": "^18.11.8",
"@types/react": "^18.0.24",
"@types/react-dom": "^18.0.0",
"@types/webextension-polyfill": "^0.9.1",
"@types/jest": "^29.2.3",
"@types/node": "^18.11.9",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
"@types/webextension-polyfill": "^0.9.2",
"react-scripts": "5.0.1"
},
"scripts": {
+174
View File
@@ -0,0 +1,174 @@
{
"name": {
"message": "Gerador de Senhas",
"description": "manifest.json"
},
"description": {
"message": "A extensão do gerador de senhas permite gerar facilmente uma senha longa e segura em um clique",
"description": "manifest.json"
},
"author": {
"message": "Eugene Fox",
"description": "manifest.json"
},
"Password_generator": {
"message": "Gerador de senhas",
"description": "App.tsx"
},
"Copy": {
"message": "Copiar",
"description": "PasswordView.tsx"
},
"Generate_new": {
"message": "Gerar nova",
"description": "PasswordView.tsx"
},
"Exclude_special_symbols_one_time": {
"message": "Gerar senha sem símbolos especiais",
"description": "PasswordView.tsx"
},
"Include_special_symbols_one_time": {
"message": "Gerar senha com símbolos especiais",
"description": "PasswordView.tsx"
},
"Settings": {
"message": "Configurações",
"description": "SettingsSection.tsx"
},
"Password_length": {
"message": "Comprimento da senha",
"description": "SettingsSection.tsx"
},
"Recommended_password_length": {
"message": "Comprimento recomendado da senha",
"description": "SettingsSection.tsx"
},
"Character_options": {
"message": "Opções de caracteres",
"description": "SettingsSection.tsx"
},
"Include": {
"message": "Incluir",
"description": "SettingsSection.tsx"
},
"Special_symbols": {
"message": "Símbolos especiais",
"description": "SettingsSection.tsx"
},
"Numeric": {
"message": "Numérico",
"description": "SettingsSection.tsx"
},
"Uppercase": {
"message": "Maiúsculas",
"description": "SettingsSection.tsx"
},
"Lowercase": {
"message": "Minúsculas",
"description": "SettingsSection.tsx"
},
"Exclude": {
"message": "Excluir",
"description": "SettingsSection.tsx"
},
"Similar": {
"message": "Semelhante",
"description": "SettingsSection.tsx"
},
"Ambiguous": {
"message": "Ambíguo",
"description": "SettingsSection.tsx"
},
"Repeating": {
"message": "Repetido",
"description": "SettingsSection.tsx"
},
"Add_shortcut_to_context_menu": {
"message": "Adicionar atalho ao menu de contexto",
"description": "SettingsSection.tsx"
},
"Right_click_password_field_to_quickly_generate_password": {
"message": "Clique com o botão direito do mouse no campo de senha para gerar a senha rapidamente",
"description": "SettingsSection.tsx"
},
"Automatically_copy_to_clipboard": {
"message": "Copiar automaticamente para a área de transferência",
"description": "SettingsSection.tsx"
},
"About": {
"message": "Sobre",
"description": "AboutSection.tsx"
},
"Developed_by_Eugene_Fox": {
"message": "Desenvolvido por Eugene Fox",
"description": "AboutSection.tsx"
},
"Licensed_under": {
"message": "Licenciado sob",
"description": "AboutSection.tsx"
},
"MIT_license": {
"message": "Licença MIT",
"description": "AboutSection.tsx"
},
"Want_to_contribute_translation_for_your_language_": {
"message": "Quer contribuir com a tradução para o seu idioma?",
"description": "AboutSection.tsx"
},
"Read_this_to_get_started": {
"message": "Leia isto para começar",
"description": "AboutSection.tsx"
},
"My_website": {
"message": "Meu website",
"description": "AboutSection.tsx"
},
"Source_code": {
"message": "Código fonte",
"description": "AboutSection.tsx"
},
"Changelog": {
"message": "Registro de alterações",
"description": "AboutSection.tsx"
},
"Leave_feedback": {
"message": "Deixar feedback",
"description": "AboutSection.tsx"
},
"Buy_me_a_coffee": {
"message": "Compre-me um café",
"description": "AboutSection.tsx"
},
"Set_name": {
"message": "Nome",
"description": "CharacterHelpDialog.tsx"
},
"Characters": {
"message": "Caracteres",
"description": "CharacterHelpDialog.tsx"
},
"__etc_": {
"message": ", etc.",
"description": "CharacterHelpDialog.tsx"
},
"OK": {
"message": "OK",
"description": "CharacterHelpDialog.tsx"
},
"Either_lowercase_or_uppercase_characters_must_be_included": {
"message": "Caracteres minúsculos ou maiúsculos devem ser incluídos",
"description": "Generator.tsx"
},
"Selected_length_is_too_long_to_exclude_repeating_characters": {
"message": "O comprimento selecionado é muito longo para excluir caracteres repetidos",
"description": "Generator.tsx"
},
"Quick_generator_is_only_available_on_password_fields": {
"message": "O gerador rápido está disponível apenas em campos de senha",
"description": "ContentService.tsx"
},
"Quick_generate_password": {
"message": "Gerar senha rápida",
"description": "BackgroundService.tsx"
}
}
+14
View File
@@ -1,6 +1,14 @@
body
{
margin: 0;
}
main
{
width: 400px;
padding: 8px;
-webkit-user-select: none;
user-select: none;
h1, h2, h3, h4, h5, h6, p
{
@@ -43,6 +51,12 @@ main
}
}
button.fui-Link
{
-webkit-user-select: none;
user-select: none;
}
.scaleUpIn
{
animation-name: scaleUpInAnim;
+3
View File
@@ -8,6 +8,7 @@ import PasswordView from "./Components/PasswordView";
import Settings from "./Utils/Settings";
import GeneratorOptions from "./Utils/GeneratorOptions";
import { loc } from "./Utils/Localization";
import Snow from "./Holidays/Snow";
interface IStates
{
@@ -63,6 +64,8 @@ export default class App extends React.Component<IProps, IStates>
return (
<FluentProvider theme={ this.state.theme }>
<main className="stack gap">
<Snow />
<header className="stack horizontal gap">
<Title2 as="h1">{ loc("Password generator") }</Title2>
<Text as="span">v{ Package.version }</Text>
+8 -6
View File
@@ -64,12 +64,14 @@ export default class SettingsSection extends React.Component<IProps>
</div>
<Divider />
<div className="stack">
<div>
<Tooltip content={ loc("Right-click password field to quickly generate password") } relationship="description">
<Checkbox label={ <Text>{ loc("Add shortcut to context menu") } <QuestionCircleRegular /></Text> }
checked={ settings.AddContext } onChange={ (_, e) => Settings.Update({ AddContext: e.checked as boolean }) } />
</Tooltip>
</div>
<Checkbox
checked={ settings.AddContext }
onChange={ (_, e) => Settings.Update({ AddContext: e.checked as boolean }) }
label={
<Tooltip content={ loc("Right-click password field to quickly generate password") } relationship="description">
<Text>{ loc("Add shortcut to context menu") } <QuestionCircleRegular /></Text>
</Tooltip>
} />
<Checkbox label={ loc("Automatically copy to clipboard") }
checked={ settings.Autocopy } onChange={ (_, e) => Settings.Update({ Autocopy: e.checked as boolean }) } />
</div>
+55
View File
@@ -0,0 +1,55 @@
.snowflakeContainer
{
position: absolute;
overflow: hidden;
pointer-events: none;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.snowflake
{
--size: 1px;
width: var(--size);
height: var(--size);
background: white;
border-radius: 50%;
position: absolute;
top: -5px;
@media (prefers-color-scheme: light)
{
background: var(--colorPalettePlatinumBorderActive);
}
}
@keyframes snowfall
{
0%
{
transform: translate3d(var(--left-ini), 0, 0);
opacity: .6;
}
100%
{
transform: translate3d(var(--left-end), 610px, 0);
opacity: 0;
}
}
@for $i from 1 through 50
{
.snowflake:nth-child(#{$i})
{
--size: #{random(5)}px;
--left-ini: #{random(20) - 10}vw;
--left-end: #{random(20) - 10}vw;
left: #{random(100)}vw;
animation: snowfall #{5 + random(10)}s linear infinite;
animation-delay: -#{random(10)}s;
}
}
+23
View File
@@ -0,0 +1,23 @@
import React from "react";
import "./Snow.scss";
export default class Snow extends React.Component
{
public render(): JSX.Element
{
// Show snowflakes only from 15th of December till 10th of January
let now = new Date();
if (
(now.getMonth() !== 11 || now.getDate() < 15) &&
(now.getMonth() !== 0 || now.getDate() > 10)
)
return <></>;
return (
<div className="snowflakeContainer">
{ [...Array(50)].map((_, i) => <div key={i} className="snowflake" />) }
</div>
);
}
}
+502 -486
View File
File diff suppressed because it is too large Load Diff