Skip to content

Commit 16ba153

Browse files
authored
Merge pull request #102 from CodeDead/release/v2.5.0
Release/v2.5.0
2 parents e97ce05 + a7e8c64 commit 16ba153

File tree

26 files changed

+595
-504
lines changed

26 files changed

+595
-504
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ The theme used in this application is [MUI](https://mui.com/).
8383

8484
### Images
8585

86-
The application icon was provided by [RemixIcon](https://remixicon.com/).
86+
The application icon (and derivatives) are provided by [RemixIcon](https://remixicon.com/).
87+
All other images were provided by [MUI](https://mui.com/material-ui/material-icons/).
8788

8889
### Translations
8990

package.json

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
{
22
"name": "advanced-passgen",
3-
"version": "2.4.3",
3+
"version": "2.5.0",
44
"private": true,
55
"type": "module",
66
"dependencies": {
77
"@emotion/react": "^11.11.1",
88
"@emotion/styled": "^11.11.0",
99
"@fontsource/roboto": "^5.0.8",
10-
"@mui/icons-material": "^5.14.19",
11-
"@mui/material": "^5.14.20",
12-
"@mui/system": "^5.14.20",
13-
"@mui/x-data-grid": "^6.18.4",
10+
"@mui/icons-material": "^5.15.0",
11+
"@mui/material": "^5.15.0",
12+
"@mui/system": "^5.15.0",
13+
"@mui/x-data-grid": "^6.18.5",
1414
"@shopify/react-web-worker": "^5.0.13",
15-
"@tauri-apps/api": "1.5.1",
15+
"@tauri-apps/api": "^1.5.2",
1616
"crypto-js": "^4.2.0",
17+
"graphemer": "^1.4.0",
1718
"react": "^18.2.0",
1819
"react-dom": "^18.2.0",
19-
"react-router-dom": "^6.20.1"
20+
"react-router-dom": "^6.21.0"
2021
},
2122
"scripts": {
2223
"start": "vite",
@@ -31,31 +32,19 @@
3132
"react-app/jest"
3233
]
3334
},
34-
"browserslist": {
35-
"production": [
36-
">0.2%",
37-
"not dead",
38-
"not op_mini all"
39-
],
40-
"development": [
41-
"last 1 chrome version",
42-
"last 1 firefox version",
43-
"last 1 safari version"
44-
]
45-
},
4635
"packageManager": "yarn@4.0.2",
4736
"devDependencies": {
48-
"@tauri-apps/cli": "^1.5.7",
37+
"@tauri-apps/cli": "^1.5.8",
4938
"@vitejs/plugin-react": "^4.2.1",
5039
"cross-env": "^7.0.3",
51-
"eslint": "^8.55.0",
40+
"eslint": "^8.56.0",
5241
"eslint-config-airbnb": "^19.0.4",
5342
"eslint-config-react-app": "^7.0.1",
54-
"eslint-plugin-import": "^2.29.0",
43+
"eslint-plugin-import": "^2.29.1",
5544
"eslint-plugin-jsx-a11y": "^6.8.0",
5645
"eslint-plugin-react": "^7.33.2",
5746
"eslint-plugin-react-hooks": "^4.6.0",
58-
"vite": "^5.0.7",
47+
"vite": "^5.0.10",
5948
"vite-plugin-eslint": "^1.8.1",
6049
"vite-plugin-svgr": "^4.2.0"
6150
}

src-tauri/Cargo.lock

Lines changed: 38 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "advanced-passgen"
3-
version = "2.4.3"
3+
version = "2.5.0"
44
description = "Advanced PassGen can be used to quickly generate thousands of passwords"
55
authors = ["CodeDead <admin@codedead.com>"]
66
license = "GPL-3.0-only"

src-tauri/src/main.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ async fn generate_passwords(
6464
let mut total_character_set = String::from(character_set);
6565
total_character_set.push_str(include_symbols);
6666

67-
let char_count = total_character_set.graphemes(true).count();
67+
let graphemes = total_character_set.graphemes(true);
68+
let char_count = graphemes.clone().count();
6869

6970
if !allow_duplicates {
7071
let mut current = min_length;
@@ -75,15 +76,15 @@ async fn generate_passwords(
7576
}
7677

7778
let mut rng = rand::thread_rng();
78-
let chars = total_character_set.chars();
79+
let chars = graphemes.collect::<Vec<&str>>();
7980
for _n in 0..amount {
8081
let mut can_continue = false;
8182
while !can_continue {
8283
let mut password = String::from("");
8384
let length = rng.gen_range(min_length..(max_length + 1));
8485
for _j in 0..length {
8586
let index = rng.gen_range(0..char_count);
86-
password.push(chars.clone().nth(index).unwrap());
87+
password.push_str(chars.clone()[index]);
8788
}
8889

8990
if allow_duplicates || (!allow_duplicates && !password_list.contains(&password)) {

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"package": {
1010
"productName": "advanced-passgen",
11-
"version": "2.4.3"
11+
"version": "2.5.0"
1212
},
1313
"tauri": {
1414
"allowlist": {

src/components/CreatePasswordDialog/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const CreatePasswordDialog = ({ open, onCreate, onClose }) => {
3939
characterSet,
4040
includeSymbols,
4141
allowDuplicates,
42+
useEmojis,
4243
} = state2;
4344

4445
const [title, setTitle] = useState('');
@@ -57,6 +58,7 @@ const CreatePasswordDialog = ({ open, onCreate, onClose }) => {
5758
numbers,
5859
specialCharacters,
5960
brackets,
61+
useEmojis,
6062
);
6163

6264
const worker = useWorker(createWorker);

0 commit comments

Comments
 (0)