Skip to content

Commit 8639a98

Browse files
authored
Merge pull request #31 from UselessStudio/release-0.2.1
Release 0.2.1
2 parents 13bae1d + 3e57073 commit 8639a98

File tree

6 files changed

+23
-6
lines changed

6 files changed

+23
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# 🔐 [TeleOTP](http://t.me/TeleOTPAppBot)
22
[![Deploy static content to Pages](https://github.com/UselessStudio/TeleOTP/actions/workflows/deploy.yml/badge.svg)](https://github.com/UselessStudio/TeleOTP/actions/workflows/deploy.yml)
33
[![Build Telegram bot image](https://github.com/UselessStudio/TeleOTP/actions/workflows/bot.yml/badge.svg)](https://github.com/UselessStudio/TeleOTP/actions/workflows/bot.yml)
4-
[![Plausible analytics](https://img.shields.io/badge/Plausible-analytics-blue)](https://analytics.gesti.tech/teleotp.pages.dev)
4+
[![Plausible analytics](https://img.shields.io/badge/Plausible-analytics-blue)](https://analytics.gesti.tech/teleotp.gesti.tech)
55

66
Telegram Mini App that allows you to generate one-time 2FA passwords inside Telegram.
77

@@ -782,4 +782,4 @@ export const icons: Record<string, SvgIconComponent> = {
782782
TeleOTP is made for [Telegram Mini App Contest](https://t.me/contest/327).
783783

784784
Designed by [@lunnaholy](https://github.com/lunnaholy),
785-
implemented by [@LowderPlay](https://github.com/LowderPlay) with ❤️
785+
implemented by [@LowderPlay](https://github.com/LowderPlay) with ❤️

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
5+
<meta name="viewport" content="viewport-fit=contain, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum scale=1.0, user-scalable=no" />
66
<title>Vite + React + TS</title>
77
<script src="https://telegram.org/js/telegram-web-app.js"></script>
88
</head>

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "teleotp",
33
"private": true,
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"type": "module",
66
"homepage": "https://github.com/UselessStudio/TeleOTP",
77
"scripts": {

src/components/TelegramTextField.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ const TelegramTextField = styled((props: TextFieldProps) => (
44
<TextField
55
{...props}
66
variant="standard"
7+
onFocus={(e) => {
8+
e.target.scrollIntoView({behavior: "smooth"});
9+
}}
710
/>
811
))(({ theme }) => ({
912
'label': {

src/pages/Decrypt.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import LottieAnimation from "../components/LottieAnimation.tsx";
88
import ClearIcon from '@mui/icons-material/Clear';
99
import {useNavigate} from "react-router-dom";
1010
import {BiometricsManagerContext} from "../managers/biometrics.tsx";
11+
import { Fingerprint } from "@mui/icons-material";
1112

1213
const Decrypt: FC = () => {
1314
const [password, setPassword] = useState("");
@@ -54,6 +55,19 @@ const Decrypt: FC = () => {
5455
setWrongPassword(false);
5556
}}
5657
/>
58+
{biometricsManager?.isSaved &&
59+
<Button
60+
size="small"
61+
sx={{
62+
borderRadius: 1000,
63+
width: 64,
64+
height: 64,
65+
}}
66+
onClick={() => {encryptionManager?.unlockBiometrics()}}
67+
>
68+
<Fingerprint fontSize="large" />
69+
</Button>
70+
}
5771
{wrongPassword ?
5872
<Button
5973
startIcon={<ClearIcon />}

0 commit comments

Comments
 (0)