mirror of
https://github.com/aliasvault/aliasvault.git
synced 2025-12-30 17:48:18 -05:00
Compare commits
186 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b19d27902 | ||
|
|
812302b9bc | ||
|
|
4581dc8fd9 | ||
|
|
42ba9d2869 | ||
|
|
773e6569c2 | ||
|
|
c24671ffb1 | ||
|
|
cd87692588 | ||
|
|
15dc89ac07 | ||
|
|
a95757e982 | ||
|
|
6061511d3c | ||
|
|
cc873fd483 | ||
|
|
8caa69e130 | ||
|
|
c45d0c8f56 | ||
|
|
6c0fc44a66 | ||
|
|
3b88cb5b50 | ||
|
|
7314dc3d1d | ||
|
|
2c98b81111 | ||
|
|
fe7da551a4 | ||
|
|
c4c29b11f3 | ||
|
|
ab740c093f | ||
|
|
056f8e97e9 | ||
|
|
819924c6e2 | ||
|
|
c6203b9e19 | ||
|
|
347a72e55d | ||
|
|
30a2b1326c | ||
|
|
4d66ea9694 | ||
|
|
1cf28c43fb | ||
|
|
6a75e56123 | ||
|
|
ef72abceb4 | ||
|
|
19406cf58d | ||
|
|
9fda76a5ff | ||
|
|
610d1b4654 | ||
|
|
602d59d268 | ||
|
|
edae632025 | ||
|
|
2c3d2379ee | ||
|
|
70ed03e1b3 | ||
|
|
bf1a235dd2 | ||
|
|
2bb7f0a742 | ||
|
|
8cd5118749 | ||
|
|
2fccb162e6 | ||
|
|
ad3c0323b9 | ||
|
|
9e859f6dc0 | ||
|
|
5f70912b7a | ||
|
|
dcc45eb5b6 | ||
|
|
340d3943a2 | ||
|
|
64a879f72d | ||
|
|
0f8e1f7e15 | ||
|
|
f86400fa50 | ||
|
|
047b0723b3 | ||
|
|
f785063065 | ||
|
|
3720ad1961 | ||
|
|
fe617fc024 | ||
|
|
1138b16daa | ||
|
|
108a6855c2 | ||
|
|
fb002e54b7 | ||
|
|
58ae63c74b | ||
|
|
51287c85dc | ||
|
|
b638e3375d | ||
|
|
5d827bb7ac | ||
|
|
666b3ccada | ||
|
|
87a62000d3 | ||
|
|
54c6e94751 | ||
|
|
54a5584baf | ||
|
|
ff48f1882f | ||
|
|
0b95203aac | ||
|
|
3f5328ab3c | ||
|
|
f913d84557 | ||
|
|
9a9752c557 | ||
|
|
82458f74e3 | ||
|
|
71633b166e | ||
|
|
3305958e60 | ||
|
|
4ae1f6ec35 | ||
|
|
4498833b4e | ||
|
|
7054593c07 | ||
|
|
6d197fe870 | ||
|
|
d70eb0a447 | ||
|
|
aecb52de3c | ||
|
|
cd6ea06430 | ||
|
|
0d13440821 | ||
|
|
8e3da4b381 | ||
|
|
81538d4666 | ||
|
|
634b7cada1 | ||
|
|
bed2c78964 | ||
|
|
a75392c573 | ||
|
|
7b10665488 | ||
|
|
ddf995db1d | ||
|
|
8d9d55ce82 | ||
|
|
ccf473635e | ||
|
|
56c8b61e9e | ||
|
|
69234de51c | ||
|
|
893c06cc00 | ||
|
|
b2c07f6de6 | ||
|
|
229fbd4824 | ||
|
|
48c5a5e38a | ||
|
|
5b3f36936a | ||
|
|
b4c696c89b | ||
|
|
d53c133812 | ||
|
|
cbbfe1c611 | ||
|
|
437c7bb807 | ||
|
|
03faee8d3a | ||
|
|
e66a87e8df | ||
|
|
11f1daa08b | ||
|
|
784e64ece8 | ||
|
|
4da1333aa5 | ||
|
|
65413c7ab7 | ||
|
|
290e5329f8 | ||
|
|
ec060d1392 | ||
|
|
293501405f | ||
|
|
783b2d44ef | ||
|
|
29d38759eb | ||
|
|
97f30ad9ba | ||
|
|
c728d71868 | ||
|
|
27fc298b5e | ||
|
|
6eb8266d05 | ||
|
|
f22cac70e9 | ||
|
|
f1c94ea145 | ||
|
|
d587f3fd5c | ||
|
|
db874d3799 | ||
|
|
3f5b731703 | ||
|
|
258981b2e4 | ||
|
|
34b3545168 | ||
|
|
c37dafd228 | ||
|
|
dbe15bdc51 | ||
|
|
9eb4a3136a | ||
|
|
747596615e | ||
|
|
60221cf0e8 | ||
|
|
d9aa765284 | ||
|
|
b7a916e414 | ||
|
|
110c0d2628 | ||
|
|
ecfc6f948d | ||
|
|
990d94397b | ||
|
|
b861a30596 | ||
|
|
583534fae9 | ||
|
|
8136eb379d | ||
|
|
9f5c1b35c4 | ||
|
|
7bd51fa2fe | ||
|
|
4340ed48e6 | ||
|
|
2fabc8c4dc | ||
|
|
99884b9761 | ||
|
|
c80a9c1b32 | ||
|
|
3c993fe875 | ||
|
|
ca1f3c3f64 | ||
|
|
728b5c2a9c | ||
|
|
73600a49f8 | ||
|
|
8a2e806311 | ||
|
|
9c8462f9ce | ||
|
|
e2fc9878b0 | ||
|
|
f5f05703a0 | ||
|
|
b30f8853aa | ||
|
|
d85d62f3b4 | ||
|
|
8bd8d688ef | ||
|
|
c174a6bfb4 | ||
|
|
3125eb3751 | ||
|
|
1e5a84b392 | ||
|
|
180977b833 | ||
|
|
2d40e424e8 | ||
|
|
af0b5ff5f8 | ||
|
|
1b8e6cc6a1 | ||
|
|
eb04263751 | ||
|
|
daccab9bcc | ||
|
|
6577021bd7 | ||
|
|
de6ae7f7e1 | ||
|
|
a272aa11f2 | ||
|
|
6cc77adbab | ||
|
|
b6b476f9c8 | ||
|
|
86aef6961c | ||
|
|
542f99c484 | ||
|
|
6ce666a35d | ||
|
|
0ddd47b0e7 | ||
|
|
f55d7717f8 | ||
|
|
1eaacd1ed0 | ||
|
|
4b385e0ea2 | ||
|
|
ff90cc2937 | ||
|
|
8bb6ec2b7c | ||
|
|
7a4e55912c | ||
|
|
a1f97cd709 | ||
|
|
dbb2aa5610 | ||
|
|
3af46c80fa | ||
|
|
e10ef4bd75 | ||
|
|
54853c7a4d | ||
|
|
1dde9ab4b4 | ||
|
|
3585e20354 | ||
|
|
c926933804 | ||
|
|
5a43f7142c | ||
|
|
a15138afc8 | ||
|
|
bd62ecd8bd |
95
.env.example
95
.env.example
@@ -14,91 +14,60 @@
|
||||
# Docker containers to apply the changes.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
# ===========================================
|
||||
# NETWORK PORTS
|
||||
# ===========================================
|
||||
|
||||
# Configure the network ports used by AliasVault by the `reverse-proxy` and `smtp` containers.
|
||||
# You can change these if the defaults are in use on your system.
|
||||
# After making changes, re-run the install script to apply them.
|
||||
# You can change these if the defaults are already in use on your system.
|
||||
# Requires a restart before taking effect.
|
||||
HTTP_PORT=80
|
||||
HTTPS_PORT=443
|
||||
SMTP_PORT=25
|
||||
SMTP_TLS_PORT=587
|
||||
|
||||
# Set the hostname that your AliasVault will be accessible at.
|
||||
# E.g. `aliasvault.mydomain.com` or if you're running it on your local machine, choose `localhost`.
|
||||
HOSTNAME=
|
||||
# ===========================================
|
||||
# EMAIL SERVER CONFIGURATION
|
||||
# ===========================================
|
||||
|
||||
# Set a random 32 character string for the JWT key.
|
||||
# This can be generated using the following command:
|
||||
# $ openssl rand -base64 32
|
||||
JWT_KEY=
|
||||
|
||||
# Set the password for the data protection certificate.
|
||||
# This can be generated using the following command:
|
||||
# $ openssl rand -base64 32
|
||||
DATA_PROTECTION_CERT_PASS=
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Database configuration
|
||||
# ----------------------------------------------------------------------------
|
||||
# These are the credentials that are used by the PostgreSQL container
|
||||
# on startup to create the database and user, and for the application to
|
||||
# connect to the database.
|
||||
POSTGRES_DB=aliasvault
|
||||
POSTGRES_USER=aliasvault
|
||||
|
||||
# Set the password for the database user.
|
||||
# This can be generated using the following command:
|
||||
# $ openssl rand -base64 32
|
||||
POSTGRES_PASSWORD=
|
||||
|
||||
# Note: in order to change the password for an existing installation
|
||||
# refer to https://docs.aliasvault.net/misc/dev/database-operations.html
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Admin user configuration
|
||||
# ----------------------------------------------------------------------------
|
||||
# Set the password for the admin user. This is an encrypted hash that needs
|
||||
# to be generated using the `aliasvault-cli` tool. This allows you to login
|
||||
# to the admin panel at https://your-hostname/admin.
|
||||
#
|
||||
# For example:
|
||||
# docker run --rm ghcr.io/lanedirt/aliasvault-installcli:latest hash-password "my-password"
|
||||
#
|
||||
# Then copy the output and paste it into the ADMIN_PASSWORD_HASH variable below.
|
||||
# When changing the hash, update the ADMIN_PASSWORD_GENERATED variable to the current date and time
|
||||
# and then restart the AliasVault docker containers to apply the changes.
|
||||
ADMIN_PASSWORD_HASH=
|
||||
|
||||
# Set the date and time the admin password was last generated. When changing the
|
||||
# admin password hash manually, make sure to increase this value so the system
|
||||
# knows that the password has been changed and should be overwritten with the new hash.
|
||||
ADMIN_PASSWORD_GENERATED=2024-01-01T00:00:00Z
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Email server configuration for email aliases
|
||||
# ----------------------------------------------------------------------------
|
||||
# In order to use AliasVault's private email domains feature, you need to configure
|
||||
# your DNS. Please refer to the full documentation for more instructions on DNS:
|
||||
# https://docs.aliasvault.net/installation/install.html#3-email-server-setup
|
||||
#
|
||||
# Set the private email domains below that are allowed to be used (comma separated values).
|
||||
# Example: PRIVATE_EMAIL_DOMAINS=example.com,example2.org
|
||||
# To disable the private email domains feature, set this to "DISABLED.TLD"
|
||||
PRIVATE_EMAIL_DOMAINS=DISABLED.TLD
|
||||
# To disable the private email domains feature, keep this empty.
|
||||
PRIVATE_EMAIL_DOMAINS=
|
||||
|
||||
# Set whether TLS is enabled for SMTP.
|
||||
# Enable TLS for SMTP.
|
||||
# ⚠️ Requires valid TLS certificates on your mail server (not provided by the AliasVault installer).
|
||||
# If set to true without proper certificates, the SMTP service will fail to start.
|
||||
# For self-hosted setups, we recommend keeping this **false** unless you're sure how to configure it.
|
||||
# Note: Disabling TLS does **not** impact email deliverability.
|
||||
SMTP_TLS_ENABLED=false
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# ===========================================
|
||||
# Let's Encrypt configuration
|
||||
# ----------------------------------------------------------------------------
|
||||
# ===========================================
|
||||
# Set whether Let's Encrypt is enabled. This is only supported through
|
||||
# the install.sh script.
|
||||
# the install.sh script and should be set to false for manual installations.
|
||||
LETSENCRYPT_ENABLED=false
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Set the hostname that your AliasVault will be accessible at in order for LetsEncrypt
|
||||
# to do its validation. This value is only required when LETSENCRYPT_ENABLED
|
||||
# is set to true.
|
||||
# Example: `aliasvault.mydomain.net`.
|
||||
HOSTNAME=
|
||||
|
||||
# ===========================================
|
||||
# Optional configuration settings
|
||||
# ----------------------------------------------------------------------------
|
||||
# ===========================================
|
||||
# Enable or disable ability for new users to create an account via the web interface.
|
||||
# Note: make sure you have created your (own) accounts before setting this to false.
|
||||
PUBLIC_REGISTRATION_ENABLED=true
|
||||
|
||||
# Whether to enable IP logging for auth attempts. When set to true the last octet is
|
||||
# always still anonymized, e.g. "127.0.0.1" becomes "127.0.0.xxx".
|
||||
IP_LOGGING_ENABLED=true
|
||||
|
||||
# Set the support email address which is shown to users in the main web app.
|
||||
|
||||
235
.github/workflows/docker-build.yml
vendored
235
.github/workflows/docker-build.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Docker Pull and Build
|
||||
name: Docker Build Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -11,142 +11,153 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
docker-compose-pull:
|
||||
name: Docker Compose Pull Test
|
||||
docker-all-in-one-build:
|
||||
name: Docker All-in-One Build Test
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
services:
|
||||
docker:
|
||||
image: docker:26.0.0
|
||||
options: --privileged
|
||||
|
||||
steps:
|
||||
- name: Get repository and branch information
|
||||
id: repo-info
|
||||
run: |
|
||||
if [ "${{ github.event_name }}" = "pull_request" ] && [ "${{ github.event.pull_request.head.repo.fork }}" = "true" ]; then
|
||||
echo "REPO_FULL_NAME=lanedirt/AliasVault" >> $GITHUB_ENV
|
||||
echo "BRANCH_NAME=main" >> $GITHUB_ENV
|
||||
else
|
||||
echo "REPO_FULL_NAME=${GITHUB_REPOSITORY}" >> $GITHUB_ENV
|
||||
echo "BRANCH_NAME=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Check local docker-compose.yml for :latest tags
|
||||
- name: Build all-in-one Docker image
|
||||
run: |
|
||||
# Check for explicit version tags instead of :latest
|
||||
if grep -E "ghcr\.io/lanedirt/aliasvault-[^:]+:[0-9]+\.[0-9]+\.[0-9]+" docker-compose.yml; then
|
||||
echo "❌ Error: docker-compose.yml contains explicit version tags instead of :latest"
|
||||
echo "Found the following explicit versions:"
|
||||
grep -E "ghcr\.io/lanedirt/aliasvault-[^:]+:[0-9]+\.[0-9]+\.[0-9]+" docker-compose.yml
|
||||
echo ""
|
||||
echo "All AliasVault images in docker-compose.yml must use ':latest' tags, not explicit versions."
|
||||
echo "Please update docker-compose.yml to use ':latest' for all AliasVault images."
|
||||
docker build -f dockerfiles/all-in-one/Dockerfile -t aliasvault-allinone:test .
|
||||
echo "✅ All-in-one Docker image built successfully"
|
||||
|
||||
- name: Run all-in-one container
|
||||
run: |
|
||||
docker run -d \
|
||||
--name aliasvault-test \
|
||||
-p 8080:80 \
|
||||
-p 8443:443 \
|
||||
-p 2525:25 \
|
||||
-p 2587:587 \
|
||||
-v "$(pwd)/database:/database" \
|
||||
-v "$(pwd)/certificates:/certificates" \
|
||||
-v "$(pwd)/logs:/logs" \
|
||||
-v "$(pwd)/secrets:/secrets" \
|
||||
aliasvault-allinone:test
|
||||
|
||||
- name: Wait for services to be ready
|
||||
run: |
|
||||
echo "Waiting for services to initialize..."
|
||||
for i in {1..60}; do
|
||||
if docker exec aliasvault-test curl -f http://localhost:3001/api 2>/dev/null; then
|
||||
echo "✅ API service is ready"
|
||||
break
|
||||
fi
|
||||
echo "Waiting for services... ($i/60)"
|
||||
sleep 5
|
||||
done
|
||||
|
||||
- name: Check container logs if needed
|
||||
if: failure()
|
||||
run: docker logs aliasvault-test
|
||||
|
||||
- name: Test root endpoint
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
timeout_minutes: 2
|
||||
max_attempts: 3
|
||||
command: |
|
||||
http_code=$(curl -k -s -o /dev/null -w "%{http_code}" https://localhost:8443/)
|
||||
if [ "$http_code" -ne 200 ]; then
|
||||
echo "❌ Root endpoint (/) failed with HTTP $http_code"
|
||||
docker logs aliasvault-test
|
||||
exit 1
|
||||
fi
|
||||
echo "✅ Root endpoint (/) returned HTTP 200"
|
||||
|
||||
- name: Test API endpoint
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
timeout_minutes: 2
|
||||
max_attempts: 3
|
||||
command: |
|
||||
http_code=$(curl -k -s -o /dev/null -w "%{http_code}" https://localhost:8443/api)
|
||||
if [ "$http_code" -ne 200 ]; then
|
||||
echo "❌ API endpoint (/api) failed with HTTP $http_code"
|
||||
docker logs aliasvault-test
|
||||
exit 1
|
||||
fi
|
||||
echo "✅ API endpoint (/api) returned HTTP 200"
|
||||
|
||||
- name: Test Admin endpoint
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
timeout_minutes: 2
|
||||
max_attempts: 3
|
||||
command: |
|
||||
http_code=$(curl -k -s -o /dev/null -w "%{http_code}" https://localhost:8443/admin/user/login)
|
||||
if [ "$http_code" -ne 200 ]; then
|
||||
echo "❌ Admin endpoint (/admin) failed with HTTP $http_code"
|
||||
docker logs aliasvault-test
|
||||
exit 1
|
||||
fi
|
||||
echo "✅ Admin endpoint (/admin) returned HTTP 200"
|
||||
|
||||
- name: Verify admin password hash file does not exist initially
|
||||
run: |
|
||||
if [ -f "./secrets/admin_password_hash" ]; then
|
||||
echo "❌ Admin password hash file should not exist initially"
|
||||
cat ./secrets/admin_password_hash
|
||||
exit 1
|
||||
fi
|
||||
echo "✅ Admin password hash file correctly does not exist initially"
|
||||
|
||||
echo "✅ docker-compose.yml correctly uses :latest tags for all AliasVault images"
|
||||
|
||||
- name: Download install script from current branch
|
||||
- name: Test admin password reset flow
|
||||
run: |
|
||||
INSTALL_SCRIPT_URL="https://raw.githubusercontent.com/$REPO_FULL_NAME/$BRANCH_NAME/install.sh"
|
||||
echo "Downloading install script from: $INSTALL_SCRIPT_URL"
|
||||
curl -f -o install.sh "$INSTALL_SCRIPT_URL"
|
||||
echo "🔧 Testing admin password reset flow..."
|
||||
|
||||
- name: Create .env file with custom SMTP port
|
||||
run: echo "SMTP_PORT=2525" > .env
|
||||
# Run the reset password script with auto-confirm
|
||||
echo "Running reset-admin-password.sh script..."
|
||||
password_output=$(docker exec aliasvault-test reset-admin-password.sh -y 2>&1)
|
||||
echo "Script output:"
|
||||
echo "$password_output"
|
||||
|
||||
- name: Set permissions and run install.sh (install)
|
||||
id: install_script
|
||||
run: |
|
||||
chmod +x install.sh
|
||||
{
|
||||
./install.sh install --verbose
|
||||
exit_code=$?
|
||||
if [ $exit_code -eq 2 ]; then
|
||||
echo "skip_remaining=true" >> $GITHUB_OUTPUT
|
||||
true
|
||||
elif [ $exit_code -ne 0 ]; then
|
||||
false
|
||||
fi
|
||||
} || {
|
||||
if [ $exit_code -eq 2 ]; then
|
||||
echo "skip_remaining=true" >> $GITHUB_OUTPUT
|
||||
true
|
||||
else
|
||||
exit $exit_code
|
||||
fi
|
||||
}
|
||||
# Extract the generated password from the output
|
||||
generated_password=$(echo "$password_output" | grep -E "^Password: " | sed 's/Password: //')
|
||||
if [ -z "$generated_password" ]; then
|
||||
echo "❌ Failed to extract generated password from script output"
|
||||
echo "Full output was:"
|
||||
echo "$password_output"
|
||||
exit 1
|
||||
fi
|
||||
echo "✅ Generated password extracted: $generated_password"
|
||||
|
||||
- name: Run docker compose up
|
||||
if: ${{ !steps.install_script.outputs.skip_remaining }}
|
||||
run: docker compose -f docker-compose.yml up -d
|
||||
# Verify that the admin_password_hash file now exists in the container
|
||||
if ! docker exec aliasvault-test test -f /secrets/admin_password_hash; then
|
||||
echo "❌ Admin password hash file was not created in container"
|
||||
docker exec aliasvault-test ls -la /secrets/
|
||||
exit 1
|
||||
fi
|
||||
echo "✅ Admin password hash file created in container"
|
||||
|
||||
- name: Wait for services
|
||||
if: ${{ !steps.install_script.outputs.skip_remaining }}
|
||||
run: sleep 10
|
||||
# Verify that the admin_password_hash file exists locally (mounted volume)
|
||||
if [ ! -f "./secrets/admin_password_hash" ]; then
|
||||
echo "❌ Admin password hash file not found in local secrets folder"
|
||||
ls -la ./secrets/
|
||||
exit 1
|
||||
fi
|
||||
echo "✅ Admin password hash file exists in local secrets folder"
|
||||
|
||||
- name: Test WASM App
|
||||
if: ${{ !steps.install_script.outputs.skip_remaining }}
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
timeout_minutes: 2
|
||||
max_attempts: 3
|
||||
command: |
|
||||
http_code=$(curl -k -s -o /dev/null -w "%{http_code}" https://localhost:443)
|
||||
if [ "$http_code" -ne 200 ]; then
|
||||
echo "WASM app failed with $http_code"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Test WebApi
|
||||
if: ${{ !steps.install_script.outputs.skip_remaining }}
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
timeout_minutes: 2
|
||||
max_attempts: 3
|
||||
command: |
|
||||
http_code=$(curl -k -s -o /dev/null -w "%{http_code}" https://localhost:443/api)
|
||||
if [ "$http_code" -ne 200 ]; then
|
||||
echo "WebApi failed with $http_code"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Test Admin App
|
||||
if: ${{ !steps.install_script.outputs.skip_remaining }}
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
timeout_minutes: 2
|
||||
max_attempts: 3
|
||||
command: |
|
||||
http_code=$(curl -k -s -o /dev/null -w "%{http_code}" https://localhost:443/admin/user/login)
|
||||
if [ "$http_code" -ne 200 ]; then
|
||||
echo "Admin app failed with $http_code"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Test SMTP
|
||||
if: ${{ !steps.install_script.outputs.skip_remaining }}
|
||||
- name: Test SMTP port
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
timeout_minutes: 2
|
||||
max_attempts: 3
|
||||
command: |
|
||||
if ! nc -zv localhost 2525 2>&1 | grep -q 'succeeded'; then
|
||||
echo "SMTP failed"
|
||||
echo "❌ SMTP port 2525 is not accessible"
|
||||
docker logs aliasvault-test
|
||||
exit 1
|
||||
fi
|
||||
echo "✅ SMTP port 2525 is accessible"
|
||||
|
||||
- name: Test reset-admin-password output
|
||||
if: ${{ !steps.install_script.outputs.skip_remaining }}
|
||||
- name: Cleanup
|
||||
if: always()
|
||||
run: |
|
||||
output=$(./install.sh reset-admin-password | sed 's/\x1b\[[0-9;]*m//g')
|
||||
if ! echo "$output" | grep -Eq '^\s*Password: [A-Za-z0-9+/=]{8,}'; then
|
||||
echo "Invalid reset-admin-password output"
|
||||
exit 1
|
||||
fi
|
||||
docker stop aliasvault-test || true
|
||||
docker rm aliasvault-test || true
|
||||
|
||||
docker-compose-build:
|
||||
name: Docker Compose Build Test
|
||||
|
||||
144
.github/workflows/release.yml
vendored
144
.github/workflows/release.yml
vendored
@@ -4,6 +4,27 @@ on:
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
build_browser_extensions:
|
||||
description: 'Build browser extensions'
|
||||
required: false
|
||||
default: true
|
||||
type: boolean
|
||||
build_mobile_apps:
|
||||
description: 'Build mobile apps'
|
||||
required: false
|
||||
default: true
|
||||
type: boolean
|
||||
build_multi_container:
|
||||
description: 'Build and push multi-container images'
|
||||
required: false
|
||||
default: true
|
||||
type: boolean
|
||||
build_all_in_one:
|
||||
description: 'Build and push all-in-one image'
|
||||
required: false
|
||||
default: true
|
||||
type: boolean
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
@@ -19,12 +40,14 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Upload install.sh to release
|
||||
if: github.event_name == 'release'
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: install.sh
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
build-chrome-extension:
|
||||
if: github.event_name == 'release' || inputs.build_browser_extensions
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -34,11 +57,12 @@ jobs:
|
||||
uses: ./.github/actions/build-browser-extension
|
||||
with:
|
||||
browser: chrome
|
||||
upload_to_release: true
|
||||
upload_to_release: ${{ github.event_name == 'release' }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
build-firefox-extension:
|
||||
if: github.event_name == 'release' || inputs.build_browser_extensions
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -48,11 +72,12 @@ jobs:
|
||||
uses: ./.github/actions/build-browser-extension
|
||||
with:
|
||||
browser: firefox
|
||||
upload_to_release: true
|
||||
upload_to_release: ${{ github.event_name == 'release' }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
build-edge-extension:
|
||||
if: github.event_name == 'release' || inputs.build_browser_extensions
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -62,11 +87,12 @@ jobs:
|
||||
uses: ./.github/actions/build-browser-extension
|
||||
with:
|
||||
browser: edge
|
||||
upload_to_release: true
|
||||
upload_to_release: ${{ github.event_name == 'release' }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
build-android-release:
|
||||
if: github.event_name == 'release' || inputs.build_mobile_apps
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -76,7 +102,7 @@ jobs:
|
||||
uses: ./.github/actions/build-android-app
|
||||
with:
|
||||
signed: true
|
||||
upload_to_release: true
|
||||
upload_to_release: ${{ github.event_name == 'release' }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
||||
@@ -84,7 +110,8 @@ jobs:
|
||||
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
|
||||
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
|
||||
|
||||
build-and-push-docker:
|
||||
build-and-push-docker-multi-container:
|
||||
if: github.event_name == 'release' || inputs.build_multi_container
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -111,11 +138,32 @@ jobs:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata
|
||||
- name: Extract metadata for multi-container images
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.REPO_LOWER }}
|
||||
tags: |
|
||||
type=raw,value=latest,enable=${{ github.event_name == 'release' && github.event.release.prerelease == false }}
|
||||
type=semver,pattern={{version}},enable=${{ github.event_name == 'release' }}
|
||||
type=ref,event=branch,enable=${{ github.ref_type == 'branch' }}
|
||||
type=raw,value={{branch}}-{{sha}},enable=${{ github.ref_type == 'branch' }}
|
||||
|
||||
- name: Generate tags for containers
|
||||
id: tags
|
||||
run: |
|
||||
# Transform base tags to include suffixes for each container
|
||||
TAGS="${{ steps.meta.outputs.tags }}"
|
||||
|
||||
# Generate tags for each container by replacing the base image name with suffixed versions
|
||||
echo "postgres=$(echo "$TAGS" | sed "s|${{ env.REPO_LOWER }}|${{ env.REPO_LOWER }}-postgres|g" | tr '\n' ',')" >> $GITHUB_OUTPUT
|
||||
echo "api=$(echo "$TAGS" | sed "s|${{ env.REPO_LOWER }}|${{ env.REPO_LOWER }}-api|g" | tr '\n' ',')" >> $GITHUB_OUTPUT
|
||||
echo "client=$(echo "$TAGS" | sed "s|${{ env.REPO_LOWER }}|${{ env.REPO_LOWER }}-client|g" | tr '\n' ',')" >> $GITHUB_OUTPUT
|
||||
echo "admin=$(echo "$TAGS" | sed "s|${{ env.REPO_LOWER }}|${{ env.REPO_LOWER }}-admin|g" | tr '\n' ',')" >> $GITHUB_OUTPUT
|
||||
echo "reverse-proxy=$(echo "$TAGS" | sed "s|${{ env.REPO_LOWER }}|${{ env.REPO_LOWER }}-reverse-proxy|g" | tr '\n' ',')" >> $GITHUB_OUTPUT
|
||||
echo "smtp=$(echo "$TAGS" | sed "s|${{ env.REPO_LOWER }}|${{ env.REPO_LOWER }}-smtp|g" | tr '\n' ',')" >> $GITHUB_OUTPUT
|
||||
echo "task-runner=$(echo "$TAGS" | sed "s|${{ env.REPO_LOWER }}|${{ env.REPO_LOWER }}-task-runner|g" | tr '\n' ',')" >> $GITHUB_OUTPUT
|
||||
echo "installcli=$(echo "$TAGS" | sed "s|${{ env.REPO_LOWER }}|${{ env.REPO_LOWER }}-installcli|g" | tr '\n' ',')" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and push Postgres image
|
||||
uses: docker/build-push-action@v5
|
||||
@@ -124,7 +172,8 @@ jobs:
|
||||
file: apps/server/Databases/AliasServerDb/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64/v8
|
||||
push: true
|
||||
tags: ${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-postgres:latest,${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-postgres:${{ github.ref_name }}
|
||||
tags: ${{ steps.tags.outputs.postgres }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Build and push API image
|
||||
uses: docker/build-push-action@v5
|
||||
@@ -133,7 +182,8 @@ jobs:
|
||||
file: apps/server/AliasVault.Api/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64/v8
|
||||
push: true
|
||||
tags: ${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-api:latest,${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-api:${{ github.ref_name }}
|
||||
tags: ${{ steps.tags.outputs.api }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Build and push Client image
|
||||
uses: docker/build-push-action@v5
|
||||
@@ -142,7 +192,8 @@ jobs:
|
||||
file: apps/server/AliasVault.Client/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64/v8
|
||||
push: true
|
||||
tags: ${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-client:latest,${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-client:${{ github.ref_name }}
|
||||
tags: ${{ steps.tags.outputs.client }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Build and push Admin image
|
||||
uses: docker/build-push-action@v5
|
||||
@@ -151,7 +202,8 @@ jobs:
|
||||
file: apps/server/AliasVault.Admin/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64/v8
|
||||
push: true
|
||||
tags: ${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-admin:latest,${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-admin:${{ github.ref_name }}
|
||||
tags: ${{ steps.tags.outputs.admin }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Build and push Reverse Proxy image
|
||||
uses: docker/build-push-action@v5
|
||||
@@ -160,7 +212,8 @@ jobs:
|
||||
file: apps/server/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64/v8
|
||||
push: true
|
||||
tags: ${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-reverse-proxy:latest,${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-reverse-proxy:${{ github.ref_name }}
|
||||
tags: ${{ steps.tags.outputs.reverse-proxy }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Build and push SMTP image
|
||||
uses: docker/build-push-action@v5
|
||||
@@ -169,7 +222,8 @@ jobs:
|
||||
file: apps/server/Services/AliasVault.SmtpService/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64/v8
|
||||
push: true
|
||||
tags: ${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-smtp:latest,${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-smtp:${{ github.ref_name }}
|
||||
tags: ${{ steps.tags.outputs.smtp }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Build and push TaskRunner image
|
||||
uses: docker/build-push-action@v5
|
||||
@@ -178,7 +232,8 @@ jobs:
|
||||
file: apps/server/Services/AliasVault.TaskRunner/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64/v8
|
||||
push: true
|
||||
tags: ${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-task-runner:latest,${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-task-runner:${{ github.ref_name }}
|
||||
tags: ${{ steps.tags.outputs.task-runner }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Build and push InstallCli image
|
||||
uses: docker/build-push-action@v5
|
||||
@@ -187,4 +242,65 @@ jobs:
|
||||
file: apps/server/Utilities/AliasVault.InstallCli/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64/v8
|
||||
push: true
|
||||
tags: ${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-installcli:latest,${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-installcli:${{ github.ref_name }}
|
||||
tags: ${{ steps.tags.outputs.installcli }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
build-and-push-docker-all-in-one:
|
||||
if: github.event_name == 'release' || inputs.build_all_in_one
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Convert repository name to lowercase
|
||||
run: |
|
||||
echo "REPO_LOWER=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
|
||||
|
||||
- name: Log in to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata for all-in-one image
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: |
|
||||
ghcr.io/${{ env.REPO_LOWER }}
|
||||
aliasvault/aliasvault
|
||||
tags: |
|
||||
# For release events with latest tag (only for non-prerelease)
|
||||
type=raw,value=latest,enable=${{ github.event_name == 'release' && github.event.release.prerelease == false }}
|
||||
# semver tags for releases (works for prerelease and normal release)
|
||||
type=semver,pattern={{version}},enable=${{ github.event_name == 'release' }}
|
||||
# For branches, use branch name and branch name + short SHA for uniqueness
|
||||
type=ref,event=branch,enable=${{ github.ref_type == 'branch' }}
|
||||
type=raw,value={{branch}}-{{sha}},enable=${{ github.ref_type == 'branch' }}
|
||||
|
||||
- name: Build and push all-in-one image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: dockerfiles/all-in-one/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64/v8
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
@@ -10,6 +10,11 @@ on:
|
||||
pull_request_target:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
# Cancel in-progress jobs when new commits are pushed
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build and analyze
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -406,6 +406,9 @@ certificates/**/*.pfx
|
||||
certificates/**/*.pem
|
||||
certificates/letsencrypt/**
|
||||
|
||||
# Secrets
|
||||
secrets/**
|
||||
|
||||
# Docs
|
||||
docs/_site
|
||||
docs/vendor
|
||||
|
||||
@@ -9,7 +9,9 @@ AliasVault is a privacy-first password and email alias manager. Create unique id
|
||||
|
||||
<a href="https://app.aliasvault.net">Try the cloud version 🔥</a> | <a href="https://aliasvault.net?utm_source=gh-readme">Website </a> | <a href="https://docs.aliasvault.net?utm_source=gh-readme">Documentation </a> | <a href="#self-hosting">Self-host instructions</a>
|
||||
|
||||
⭐ Star us on GitHub, it motivates us a lot!
|
||||
**⭐ Star us on GitHub, it motivates us a lot!**
|
||||
|
||||
If you enjoy using AliasVault, please also consider leaving a review on our apps or browser extensions, and share it with your friends or colleagues. Your support helps others discover a privacy-first alternative to traditional & closed-source password managers.
|
||||
|
||||
## About
|
||||
Built on 15 years of experience, AliasVault is independent, open-source, self-hostable and community-driven. It’s the response to a web that tracks everything: a way to take back control of your digital privacy and help you stay secure online.
|
||||
|
||||
12
apps/browser-extension/package-lock.json
generated
12
apps/browser-extension/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "aliasvault-browser-extension",
|
||||
"version": "0.20.2",
|
||||
"version": "0.21.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "aliasvault-browser-extension",
|
||||
"version": "0.20.2",
|
||||
"version": "0.21.2",
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"@hookform/resolvers": "^5.1.1",
|
||||
@@ -49,7 +49,7 @@
|
||||
"postcss": "^8.5.1",
|
||||
"tailwindcss": "^3.4.17",
|
||||
"typescript": "^5.6.3",
|
||||
"vite-plugin-static-copy": "^2.2.0",
|
||||
"vite-plugin-static-copy": "^2.3.2",
|
||||
"wxt": "^0.20.6"
|
||||
}
|
||||
},
|
||||
@@ -13160,9 +13160,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/vite-plugin-static-copy": {
|
||||
"version": "2.3.1",
|
||||
"resolved": "https://registry.npmjs.org/vite-plugin-static-copy/-/vite-plugin-static-copy-2.3.1.tgz",
|
||||
"integrity": "sha512-EfsPcBm3ewg3UMG8RJaC0ADq6/qnUZnokXx4By4+2cAcipjT9i0Y0owIJGqmZI7d6nxk4qB1q5aXOwNuSyPdyA==",
|
||||
"version": "2.3.2",
|
||||
"resolved": "https://registry.npmjs.org/vite-plugin-static-copy/-/vite-plugin-static-copy-2.3.2.tgz",
|
||||
"integrity": "sha512-iwrrf+JupY4b9stBttRWzGHzZbeMjAHBhkrn67MNACXJVjEMRpCI10Q3AkxdBkl45IHaTfw/CNVevzQhP7yTwg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "aliasvault-browser-extension",
|
||||
"description": "AliasVault Browser Extension",
|
||||
"private": true,
|
||||
"version": "0.21.2",
|
||||
"version": "0.22.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev:chrome": "wxt -b chrome",
|
||||
@@ -66,7 +66,7 @@
|
||||
"postcss": "^8.5.1",
|
||||
"tailwindcss": "^3.4.17",
|
||||
"typescript": "^5.6.3",
|
||||
"vite-plugin-static-copy": "^2.2.0",
|
||||
"vite-plugin-static-copy": "^2.3.2",
|
||||
"wxt": "^0.20.6"
|
||||
}
|
||||
}
|
||||
|
||||
12
apps/browser-extension/public/offscreen.html
Normal file
12
apps/browser-extension/public/offscreen.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AliasVault Offscreen Document</title>
|
||||
<!-- The offscreen.html is used for clipboard clearing. It is a hidden document that runs in a hidden context with access to clipboard operations. -->
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="text"></textarea>
|
||||
<script src="offscreen.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
37
apps/browser-extension/public/offscreen.js
Normal file
37
apps/browser-extension/public/offscreen.js
Normal file
@@ -0,0 +1,37 @@
|
||||
/**
|
||||
* Offscreen document for clipboard operations.
|
||||
* This document runs in a hidden context with access to clipboard operations.
|
||||
*/
|
||||
|
||||
// Listen for messages from the service worker
|
||||
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
||||
if (message.type === 'CLEAR_CLIPBOARD') {
|
||||
clearClipboard()
|
||||
.then(() => {
|
||||
sendResponse({ success: true, message: 'Clipboard cleared successfully' });
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error('[OFFSCREEN] Failed to clear clipboard:', error);
|
||||
sendResponse({ success: false, message: error.message });
|
||||
});
|
||||
// Return true to indicate we'll send response asynchronously
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
const textEl = document.querySelector('#text');
|
||||
|
||||
/**
|
||||
* Clear the clipboard by writing a space using execCommand.
|
||||
*/
|
||||
async function clearClipboard() {
|
||||
try {
|
||||
// Use execCommand to clear clipboard
|
||||
textEl.value = '\n';
|
||||
textEl.select();
|
||||
document.execCommand('copy');
|
||||
} catch (error) {
|
||||
console.error('[OFFSCREEN] Error clearing clipboard:', error);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
@@ -447,7 +447,7 @@
|
||||
CODE_SIGN_IDENTITY = "Apple Development";
|
||||
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 26;
|
||||
CURRENT_PROJECT_VERSION = 220001;
|
||||
DEVELOPMENT_TEAM = 8PHW4HN3F7;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
@@ -460,7 +460,7 @@
|
||||
"@executable_path/../../../../Frameworks",
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.14;
|
||||
MARKETING_VERSION = 0.21.2;
|
||||
MARKETING_VERSION = 0.22.0;
|
||||
OTHER_LDFLAGS = (
|
||||
"-framework",
|
||||
SafariServices,
|
||||
@@ -479,7 +479,7 @@
|
||||
buildSettings = {
|
||||
CODE_SIGN_ENTITLEMENTS = "AliasVault Extension/AliasVault_Extension.entitlements";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 26;
|
||||
CURRENT_PROJECT_VERSION = 220001;
|
||||
DEVELOPMENT_TEAM = 8PHW4HN3F7;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
@@ -492,7 +492,7 @@
|
||||
"@executable_path/../../../../Frameworks",
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.14;
|
||||
MARKETING_VERSION = 0.21.2;
|
||||
MARKETING_VERSION = 0.22.0;
|
||||
OTHER_LDFLAGS = (
|
||||
"-framework",
|
||||
SafariServices,
|
||||
@@ -515,7 +515,7 @@
|
||||
CODE_SIGN_IDENTITY = "Apple Development";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
CURRENT_PROJECT_VERSION = 26;
|
||||
CURRENT_PROJECT_VERSION = 220001;
|
||||
DEVELOPMENT_TEAM = 8PHW4HN3F7;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
@@ -530,7 +530,7 @@
|
||||
"@executable_path/../Frameworks",
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.14;
|
||||
MARKETING_VERSION = 0.21.2;
|
||||
MARKETING_VERSION = 0.22.0;
|
||||
OTHER_LDFLAGS = (
|
||||
"-framework",
|
||||
SafariServices,
|
||||
@@ -554,7 +554,7 @@
|
||||
CODE_SIGN_ENTITLEMENTS = AliasVault/AliasVault.entitlements;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
CURRENT_PROJECT_VERSION = 26;
|
||||
CURRENT_PROJECT_VERSION = 220001;
|
||||
DEVELOPMENT_TEAM = 8PHW4HN3F7;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
@@ -569,7 +569,7 @@
|
||||
"@executable_path/../Frameworks",
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.14;
|
||||
MARKETING_VERSION = 0.21.2;
|
||||
MARKETING_VERSION = 0.22.0;
|
||||
OTHER_LDFLAGS = (
|
||||
"-framework",
|
||||
SafariServices,
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
import { onMessage, sendMessage } from "webext-bridge/background";
|
||||
|
||||
import { handleResetAutoLockTimer, handlePopupHeartbeat, handleSetAutoLockTimeout } from '@/entrypoints/background/AutolockTimeoutHandler';
|
||||
import { handleClipboardCopied, handleCancelClipboardClear, handleGetClipboardClearTimeout, handleSetClipboardClearTimeout, handleGetClipboardCountdownState } from '@/entrypoints/background/ClipboardClearHandler';
|
||||
import { setupContextMenus } from '@/entrypoints/background/ContextMenu';
|
||||
import { handleOpenPopup, handlePopupWithCredential, handleToggleContextMenu } from '@/entrypoints/background/PopupMessageHandler';
|
||||
import { handleCheckAuthStatus, handleClearPersistedFormValues, handleClearVault, handleCreateIdentity, handleGetCredentials, handleGetDefaultEmailDomain, handleGetDefaultIdentitySettings, handleGetDerivedKey, handleGetPasswordSettings, handleGetPersistedFormValues, handleGetVault, handlePersistFormValues, handleStoreVault, handleSyncVault, handleUploadVault } from '@/entrypoints/background/VaultMessageHandler';
|
||||
import { handleCheckAuthStatus, handleClearPersistedFormValues, handleClearVault, handleCreateIdentity, handleGetCredentials, handleGetDefaultEmailDomain, handleGetDefaultIdentitySettings, handleGetEncryptionKey, handleGetEncryptionKeyDerivationParams, handleGetPasswordSettings, handleGetPersistedFormValues, handleGetVault, handlePersistFormValues, handleStoreEncryptionKey, handleStoreEncryptionKeyDerivationParams, handleStoreVault, handleSyncVault, handleUploadVault } from '@/entrypoints/background/VaultMessageHandler';
|
||||
|
||||
import { GLOBAL_CONTEXT_MENU_ENABLED_KEY } from '@/utils/Constants';
|
||||
import type { EncryptionKeyDerivationParams } from '@/utils/dist/shared/models/metadata';
|
||||
|
||||
import { defineBackground, storage, browser } from '#imports';
|
||||
|
||||
@@ -15,17 +18,26 @@ export default defineBackground({
|
||||
async main() {
|
||||
// Listen for messages using webext-bridge
|
||||
onMessage('CHECK_AUTH_STATUS', () => handleCheckAuthStatus());
|
||||
onMessage('STORE_VAULT', ({ data }) => handleStoreVault(data));
|
||||
onMessage('UPLOAD_VAULT', ({ data }) => handleUploadVault(data));
|
||||
onMessage('SYNC_VAULT', () => handleSyncVault());
|
||||
|
||||
onMessage('GET_ENCRYPTION_KEY', () => handleGetEncryptionKey());
|
||||
onMessage('GET_ENCRYPTION_KEY_DERIVATION_PARAMS', () => handleGetEncryptionKeyDerivationParams());
|
||||
onMessage('GET_VAULT', () => handleGetVault());
|
||||
onMessage('CLEAR_VAULT', () => handleClearVault());
|
||||
onMessage('GET_CREDENTIALS', () => handleGetCredentials());
|
||||
onMessage('CREATE_IDENTITY', ({ data }) => handleCreateIdentity(data));
|
||||
|
||||
onMessage('GET_DEFAULT_EMAIL_DOMAIN', () => handleGetDefaultEmailDomain());
|
||||
onMessage('GET_DEFAULT_IDENTITY_SETTINGS', () => handleGetDefaultIdentitySettings());
|
||||
onMessage('GET_PASSWORD_SETTINGS', () => handleGetPasswordSettings());
|
||||
onMessage('GET_DERIVED_KEY', () => handleGetDerivedKey());
|
||||
|
||||
onMessage('STORE_VAULT', ({ data }) => handleStoreVault(data));
|
||||
onMessage('STORE_ENCRYPTION_KEY', ({ data }) => handleStoreEncryptionKey(data as string));
|
||||
onMessage('STORE_ENCRYPTION_KEY_DERIVATION_PARAMS', ({ data }) => handleStoreEncryptionKeyDerivationParams(data as EncryptionKeyDerivationParams));
|
||||
|
||||
onMessage('CREATE_IDENTITY', ({ data }) => handleCreateIdentity(data));
|
||||
onMessage('UPLOAD_VAULT', ({ data }) => handleUploadVault(data));
|
||||
onMessage('SYNC_VAULT', () => handleSyncVault());
|
||||
|
||||
onMessage('CLEAR_VAULT', () => handleClearVault());
|
||||
|
||||
onMessage('OPEN_POPUP', () => handleOpenPopup());
|
||||
onMessage('OPEN_POPUP_WITH_CREDENTIAL', ({ data }) => handlePopupWithCredential(data));
|
||||
onMessage('TOGGLE_CONTEXT_MENU', ({ data }) => handleToggleContextMenu(data));
|
||||
@@ -34,6 +46,21 @@ export default defineBackground({
|
||||
onMessage('GET_PERSISTED_FORM_VALUES', () => handleGetPersistedFormValues());
|
||||
onMessage('CLEAR_PERSISTED_FORM_VALUES', () => handleClearPersistedFormValues());
|
||||
|
||||
// Clipboard management messages
|
||||
onMessage('CLIPBOARD_COPIED', () => handleClipboardCopied());
|
||||
onMessage('CANCEL_CLIPBOARD_CLEAR', () => handleCancelClipboardClear());
|
||||
onMessage('GET_CLIPBOARD_CLEAR_TIMEOUT', () => handleGetClipboardClearTimeout());
|
||||
onMessage('SET_CLIPBOARD_CLEAR_TIMEOUT', ({ data }) => handleSetClipboardClearTimeout(data as number));
|
||||
onMessage('GET_CLIPBOARD_COUNTDOWN_STATE', () => handleGetClipboardCountdownState());
|
||||
|
||||
// Auto-lock management messages
|
||||
onMessage('RESET_AUTO_LOCK_TIMER', () => handleResetAutoLockTimer());
|
||||
onMessage('SET_AUTO_LOCK_TIMEOUT', ({ data }) => handleSetAutoLockTimeout(data as number));
|
||||
onMessage('POPUP_HEARTBEAT', () => handlePopupHeartbeat());
|
||||
|
||||
// Handle clipboard copied from context menu
|
||||
onMessage('CLIPBOARD_COPIED_FROM_CONTEXT', () => handleClipboardCopied());
|
||||
|
||||
// Setup context menus
|
||||
const isContextMenuEnabled = await storage.getItem(GLOBAL_CONTEXT_MENU_ENABLED_KEY) ?? true;
|
||||
if (isContextMenuEnabled) {
|
||||
@@ -77,4 +104,4 @@ function getActiveElementIdentifier() : string {
|
||||
return target.id || target.name || '';
|
||||
}
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
import { storage } from 'wxt/utils/storage';
|
||||
|
||||
import { handleClearVault } from '@/entrypoints/background/VaultMessageHandler';
|
||||
|
||||
import { AUTO_LOCK_TIMEOUT_KEY } from '@/utils/Constants';
|
||||
|
||||
let autoLockTimer: NodeJS.Timeout | null = null;
|
||||
|
||||
/**
|
||||
* Reset the auto-lock timer.
|
||||
*/
|
||||
export function handleResetAutoLockTimer(): void {
|
||||
resetAutoLockTimer();
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle popup heartbeat - extend auto-lock timer.
|
||||
*/
|
||||
export function handlePopupHeartbeat(): void {
|
||||
extendAutoLockTimer();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the auto-lock timeout setting.
|
||||
*/
|
||||
export async function handleSetAutoLockTimeout(timeout: number): Promise<boolean> {
|
||||
await storage.setItem(AUTO_LOCK_TIMEOUT_KEY, timeout);
|
||||
resetAutoLockTimer();
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset the auto-lock timer based on current settings.
|
||||
*/
|
||||
async function resetAutoLockTimer(): Promise<void> {
|
||||
// Clear existing timer
|
||||
if (autoLockTimer) {
|
||||
clearTimeout(autoLockTimer);
|
||||
autoLockTimer = null;
|
||||
}
|
||||
|
||||
// Get timeout setting
|
||||
const timeout = await storage.getItem(AUTO_LOCK_TIMEOUT_KEY) as number ?? 0;
|
||||
|
||||
// Don't set timer if timeout is 0 (disabled) or if vault is already locked
|
||||
if (timeout === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if vault is unlocked before setting timer
|
||||
const encryptionKey = await storage.getItem('session:encryptionKey') as string | null;
|
||||
|
||||
if (!encryptionKey) {
|
||||
// Vault is already locked, don't start timer
|
||||
return;
|
||||
}
|
||||
|
||||
// Set new timer
|
||||
autoLockTimer = setTimeout(async () => {
|
||||
try {
|
||||
// Lock the vault using the existing handler
|
||||
handleClearVault();
|
||||
|
||||
console.info('[AUTO_LOCK] Vault locked due to inactivity');
|
||||
autoLockTimer = null;
|
||||
} catch (error) {
|
||||
console.error('[AUTO_LOCK] Error locking vault:', error);
|
||||
}
|
||||
}, timeout * 1000);
|
||||
}
|
||||
|
||||
/**
|
||||
* Extend the auto-lock timer by the full timeout period.
|
||||
* This is called by popup heartbeats to prevent locking while popup is active.
|
||||
*/
|
||||
async function extendAutoLockTimer(): Promise<void> {
|
||||
// Get timeout setting
|
||||
const timeout = await storage.getItem(AUTO_LOCK_TIMEOUT_KEY) as number ?? 0;
|
||||
|
||||
// Don't extend timer if timeout is 0 (disabled)
|
||||
if (timeout === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if vault is unlocked
|
||||
const encryptionKey = await storage.getItem('session:encryptionKey') as string | null;
|
||||
|
||||
if (!encryptionKey) {
|
||||
// Vault is already locked, don't extend timer
|
||||
return;
|
||||
}
|
||||
|
||||
// Clear existing timer and start a new one
|
||||
if (autoLockTimer) {
|
||||
clearTimeout(autoLockTimer);
|
||||
autoLockTimer = null;
|
||||
}
|
||||
|
||||
// Set new timer
|
||||
autoLockTimer = setTimeout(async () => {
|
||||
try {
|
||||
// Lock the vault using the existing handler
|
||||
handleClearVault();
|
||||
|
||||
console.info('[AUTO_LOCK] Vault locked due to inactivity');
|
||||
autoLockTimer = null;
|
||||
} catch (error) {
|
||||
console.error('[AUTO_LOCK] Error locking vault:', error);
|
||||
}
|
||||
}, timeout * 1000);
|
||||
|
||||
console.info(`[AUTO_LOCK] Timer extended (popup heartbeat)`);
|
||||
}
|
||||
@@ -0,0 +1,219 @@
|
||||
import { sendMessage } from 'webext-bridge/background';
|
||||
import { storage } from 'wxt/utils/storage';
|
||||
|
||||
import { CLIPBOARD_CLEAR_TIMEOUT_KEY } from '@/utils/Constants';
|
||||
|
||||
let clipboardClearTimer: NodeJS.Timeout | null = null;
|
||||
let countdownInterval: NodeJS.Timeout | null = null;
|
||||
let remainingTime = 0;
|
||||
let currentCountdownId = 0;
|
||||
let totalCountdownTime = 0;
|
||||
let countdownStartTime = 0;
|
||||
let offscreenDocumentCreated = false;
|
||||
|
||||
/**
|
||||
* Create offscreen document if it doesn't exist.
|
||||
*/
|
||||
async function createOffscreenDocument(): Promise<void> {
|
||||
if (offscreenDocumentCreated) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
// Check if chrome.offscreen API is available (Chrome 109+)
|
||||
if (!chrome.offscreen) {
|
||||
console.warn('[CLIPBOARD] Offscreen API not available, falling back to direct clipboard access');
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if offscreen document already exists
|
||||
if (chrome.runtime.getContexts) {
|
||||
const existingContexts = await chrome.runtime.getContexts({
|
||||
contextTypes: ['OFFSCREEN_DOCUMENT'],
|
||||
documentUrls: [chrome.runtime.getURL('offscreen.html')]
|
||||
});
|
||||
|
||||
if (existingContexts.length > 0) {
|
||||
offscreenDocumentCreated = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Create offscreen document
|
||||
await chrome.offscreen.createDocument({
|
||||
url: 'offscreen.html',
|
||||
reasons: [chrome.offscreen.Reason.CLIPBOARD],
|
||||
justification: 'Clear clipboard after timeout for security'
|
||||
});
|
||||
|
||||
offscreenDocumentCreated = true;
|
||||
} catch (error) {
|
||||
console.error('[CLIPBOARD] Failed to create offscreen document:', error);
|
||||
offscreenDocumentCreated = false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear clipboard using offscreen document or fallback method.
|
||||
*/
|
||||
async function clearClipboardContent(): Promise<void> {
|
||||
if (import.meta.env.CHROME || import.meta.env.EDGE) {
|
||||
/*
|
||||
* Chrome and Edge use mv3 and do not have direct access to clipboard
|
||||
* so we use an offscreen document to clear the clipboard.
|
||||
*/
|
||||
await createOffscreenDocument();
|
||||
|
||||
// Send message to offscreen document to clear clipboard
|
||||
const response = await chrome.runtime.sendMessage({ type: 'CLEAR_CLIPBOARD' });
|
||||
|
||||
if (response?.success) {
|
||||
console.info('[CLIPBOARD] Clipboard cleared via offscreen document');
|
||||
} else {
|
||||
throw new Error(response?.message || 'Failed to clear clipboard via offscreen');
|
||||
}
|
||||
} else {
|
||||
// Firefox and Safari use mv2 and can use direct clipboard access.
|
||||
await navigator.clipboard.writeText('');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle clipboard copied event - starts countdown and timer to clear clipboard.
|
||||
*/
|
||||
export async function handleClipboardCopied() : Promise<void> {
|
||||
const timeout = await storage.getItem(CLIPBOARD_CLEAR_TIMEOUT_KEY) as number ?? 10;
|
||||
|
||||
// Clear any existing timer
|
||||
if (clipboardClearTimer) {
|
||||
clearTimeout(clipboardClearTimer);
|
||||
clipboardClearTimer = null;
|
||||
}
|
||||
if (countdownInterval) {
|
||||
clearInterval(countdownInterval);
|
||||
countdownInterval = null;
|
||||
}
|
||||
|
||||
// Don't set timer if timeout is 0 (disabled)
|
||||
if (timeout === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Generate new countdown ID
|
||||
currentCountdownId = Date.now();
|
||||
const thisCountdownId = currentCountdownId;
|
||||
countdownStartTime = Date.now();
|
||||
totalCountdownTime = timeout;
|
||||
|
||||
remainingTime = timeout;
|
||||
|
||||
// Send initial countdown immediately with ID
|
||||
sendMessage('CLIPBOARD_COUNTDOWN', { remaining: remainingTime, total: timeout, id: thisCountdownId }, 'popup').catch(() => {});
|
||||
|
||||
// Send countdown updates to popup every 100ms for smooth animation
|
||||
let elapsed = 0;
|
||||
countdownInterval = setInterval(() => {
|
||||
// Check if this countdown is still active
|
||||
if (thisCountdownId !== currentCountdownId) {
|
||||
if (countdownInterval) {
|
||||
clearInterval(countdownInterval);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
elapsed += 0.1;
|
||||
remainingTime = Math.max(0, timeout - elapsed);
|
||||
sendMessage('CLIPBOARD_COUNTDOWN', { remaining: remainingTime, total: timeout, id: thisCountdownId }, 'popup').catch(() => {});
|
||||
|
||||
if (elapsed >= timeout && countdownInterval) {
|
||||
clearInterval(countdownInterval);
|
||||
countdownInterval = null;
|
||||
}
|
||||
}, 100);
|
||||
|
||||
// Set timer to clear clipboard
|
||||
clipboardClearTimer = setTimeout(async () => {
|
||||
try {
|
||||
// Clear clipboard using offscreen document or fallback
|
||||
await clearClipboardContent();
|
||||
|
||||
// Clean up regardless of success/failure
|
||||
clipboardClearTimer = null;
|
||||
if (countdownInterval) {
|
||||
clearInterval(countdownInterval);
|
||||
countdownInterval = null;
|
||||
}
|
||||
|
||||
// Reset countdown tracking
|
||||
currentCountdownId = 0;
|
||||
countdownStartTime = 0;
|
||||
totalCountdownTime = 0;
|
||||
|
||||
sendMessage('CLIPBOARD_CLEARED', {}, 'popup').catch(() => {});
|
||||
} catch (error) {
|
||||
console.error('[CLIPBOARD] Error during clipboard clear:', error);
|
||||
|
||||
// Clean up even on error
|
||||
clipboardClearTimer = null;
|
||||
if (countdownInterval) {
|
||||
clearInterval(countdownInterval);
|
||||
countdownInterval = null;
|
||||
}
|
||||
currentCountdownId = 0;
|
||||
countdownStartTime = 0;
|
||||
totalCountdownTime = 0;
|
||||
sendMessage('CLIPBOARD_CLEARED', {}, 'popup').catch(() => {});
|
||||
}
|
||||
}, timeout * 1000);
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancel clipboard clear countdown and timer.
|
||||
*/
|
||||
export function handleCancelClipboardClear(): void {
|
||||
if (clipboardClearTimer) {
|
||||
clearTimeout(clipboardClearTimer);
|
||||
clipboardClearTimer = null;
|
||||
}
|
||||
if (countdownInterval) {
|
||||
clearInterval(countdownInterval);
|
||||
countdownInterval = null;
|
||||
}
|
||||
sendMessage('CLIPBOARD_COUNTDOWN_CANCELLED', {}, 'popup').catch(() => {});
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the clipboard clear timeout setting.
|
||||
*/
|
||||
export async function handleGetClipboardClearTimeout(): Promise<number> {
|
||||
const timeout = await storage.getItem(CLIPBOARD_CLEAR_TIMEOUT_KEY) as number ?? 10;
|
||||
return timeout;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the clipboard clear timeout setting.
|
||||
*/
|
||||
export async function handleSetClipboardClearTimeout(data: number): Promise<boolean> {
|
||||
await storage.setItem(CLIPBOARD_CLEAR_TIMEOUT_KEY, data);
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current clipboard countdown state.
|
||||
*/
|
||||
export function handleGetClipboardCountdownState(): { remaining: number; total: number; id: number } | null {
|
||||
// Calculate actual remaining time based on elapsed time
|
||||
if (currentCountdownId && countdownStartTime && totalCountdownTime) {
|
||||
const elapsed = (Date.now() - countdownStartTime) / 1000;
|
||||
const actualRemaining = Math.max(0, totalCountdownTime - elapsed);
|
||||
|
||||
if (actualRemaining > 0) {
|
||||
return {
|
||||
remaining: actualRemaining,
|
||||
total: totalCountdownTime,
|
||||
id: currentCountdownId
|
||||
};
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import { storage } from 'wxt/utils/storage';
|
||||
|
||||
import type { EncryptionKeyDerivationParams } from '@/utils/dist/shared/models/metadata';
|
||||
import type { Vault, VaultResponse, VaultPostResponse } from '@/utils/dist/shared/models/webapi';
|
||||
import { EncryptionUtility } from '@/utils/EncryptionUtility';
|
||||
import { SqliteClient } from '@/utils/SqliteClient';
|
||||
@@ -82,11 +83,6 @@ export async function handleStoreVault(
|
||||
* Some updates, e.g. when mutating local database, these values will not be set.
|
||||
*/
|
||||
|
||||
// Store derived key in session storage (if it has a value)
|
||||
if (vaultRequest.derivedKey) {
|
||||
await storage.setItem('session:derivedKey', vaultRequest.derivedKey);
|
||||
}
|
||||
|
||||
if (vaultRequest.publicEmailDomainList) {
|
||||
await storage.setItem('session:publicEmailDomains', vaultRequest.publicEmailDomainList);
|
||||
}
|
||||
@@ -106,6 +102,36 @@ export async function handleStoreVault(
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Store the encryption key (derived key) in browser storage.
|
||||
*/
|
||||
export async function handleStoreEncryptionKey(
|
||||
encryptionKey: string,
|
||||
) : Promise<messageBoolResponse> {
|
||||
try {
|
||||
await storage.setItem('session:encryptionKey', encryptionKey);
|
||||
return { success: true };
|
||||
} catch (error) {
|
||||
console.error('Failed to store encryption key:', error);
|
||||
return { success: false, error: await t('common.errors.failedToStoreEncryptionKey') };
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Store the encryption key derivation parameters in browser storage.
|
||||
*/
|
||||
export async function handleStoreEncryptionKeyDerivationParams(
|
||||
params: EncryptionKeyDerivationParams,
|
||||
) : Promise<messageBoolResponse> {
|
||||
try {
|
||||
await storage.setItem('session:encryptionKeyDerivationParams', params);
|
||||
return { success: true };
|
||||
} catch (error) {
|
||||
console.error('Failed to store encryption key derivation params:', error);
|
||||
return { success: false, error: await t('common.errors.failedToStoreEncryptionParams') };
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sync the vault with the server to check if a newer vault is available. If so, the vault will be updated.
|
||||
*/
|
||||
@@ -141,8 +167,9 @@ export async function handleSyncVault(
|
||||
export async function handleGetVault(
|
||||
) : Promise<messageVaultResponse> {
|
||||
try {
|
||||
const encryptionKey = await handleGetEncryptionKey();
|
||||
|
||||
const encryptedVault = await storage.getItem('session:encryptedVault') as string;
|
||||
const derivedKey = await storage.getItem('session:derivedKey') as string;
|
||||
const publicEmailDomains = await storage.getItem('session:publicEmailDomains') as string[];
|
||||
const privateEmailDomains = await storage.getItem('session:privateEmailDomains') as string[];
|
||||
const vaultRevisionNumber = await storage.getItem('session:vaultRevisionNumber') as number;
|
||||
@@ -152,9 +179,14 @@ export async function handleGetVault(
|
||||
return { success: false, error: await t('common.errors.vaultNotAvailable') };
|
||||
}
|
||||
|
||||
if (!encryptionKey) {
|
||||
console.error('Encryption key not available');
|
||||
return { success: false, error: await t('common.errors.vaultIsLocked') };
|
||||
}
|
||||
|
||||
const decryptedVault = await EncryptionUtility.symmetricDecrypt(
|
||||
encryptedVault,
|
||||
derivedKey
|
||||
encryptionKey
|
||||
);
|
||||
|
||||
return {
|
||||
@@ -166,7 +198,7 @@ export async function handleGetVault(
|
||||
};
|
||||
} catch (error) {
|
||||
console.error('Failed to get vault:', error);
|
||||
return { success: false, error: await t('common.errors.failedToGetVault') };
|
||||
return { success: false, error: await t('common.errors.failedToRetrieveData') };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,7 +209,10 @@ export function handleClearVault(
|
||||
) : messageBoolResponse {
|
||||
storage.removeItems([
|
||||
'session:encryptedVault',
|
||||
'session:encryptionKey',
|
||||
// TODO: the derivedKey clear can be removed some period of time after 0.22.0 is released.
|
||||
'session:derivedKey',
|
||||
'session:encryptionKeyDerivationParams',
|
||||
'session:publicEmailDomains',
|
||||
'session:privateEmailDomains',
|
||||
'session:vaultRevisionNumber'
|
||||
@@ -191,9 +226,9 @@ export function handleClearVault(
|
||||
*/
|
||||
export async function handleGetCredentials(
|
||||
) : Promise<messageCredentialsResponse> {
|
||||
const derivedKey = await storage.getItem('session:derivedKey') as string;
|
||||
const encryptionKey = await handleGetEncryptionKey();
|
||||
|
||||
if (!derivedKey) {
|
||||
if (!encryptionKey) {
|
||||
return { success: false, error: await t('common.errors.vaultIsLocked') };
|
||||
}
|
||||
|
||||
@@ -203,7 +238,7 @@ export async function handleGetCredentials(
|
||||
return { success: true, credentials: credentials };
|
||||
} catch (error) {
|
||||
console.error('Error getting credentials:', error);
|
||||
return { success: false, error: await t('common.errors.failedToGetCredentials') };
|
||||
return { success: false, error: await t('common.errors.failedToRetrieveData') };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -213,9 +248,9 @@ export async function handleGetCredentials(
|
||||
export async function handleCreateIdentity(
|
||||
message: any,
|
||||
) : Promise<messageBoolResponse> {
|
||||
const derivedKey = await storage.getItem('session:derivedKey') as string;
|
||||
const encryptionKey = await handleGetEncryptionKey();
|
||||
|
||||
if (!derivedKey) {
|
||||
if (!encryptionKey) {
|
||||
return { success: false, error: await t('common.errors.vaultIsLocked') };
|
||||
}
|
||||
|
||||
@@ -223,7 +258,7 @@ export async function handleCreateIdentity(
|
||||
const sqliteClient = await createVaultSqliteClient();
|
||||
|
||||
// Add the new credential to the vault/database.
|
||||
sqliteClient.createCredential(message.credential);
|
||||
await sqliteClient.createCredential(message.credential, message.attachments || []);
|
||||
|
||||
// Upload the new vault to the server.
|
||||
await uploadNewVaultToServer(sqliteClient);
|
||||
@@ -231,7 +266,7 @@ export async function handleCreateIdentity(
|
||||
return { success: true };
|
||||
} catch (error) {
|
||||
console.error('Failed to create identity:', error);
|
||||
return { success: false, error: await t('common.errors.failedToCreateIdentity') };
|
||||
return { success: false, error: await t('common.errors.unknownError') };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -273,7 +308,7 @@ export function handleGetDefaultEmailDomain(): Promise<stringResponse> {
|
||||
return { success: true, value: defaultEmailDomain ?? undefined };
|
||||
} catch (error) {
|
||||
console.error('Error getting default email domain:', error);
|
||||
return { success: false, error: await t('common.errors.failedToGetDefaultEmailDomain') };
|
||||
return { success: false, error: await t('common.errors.failedToRetrieveData') };
|
||||
}
|
||||
})();
|
||||
}
|
||||
@@ -297,7 +332,7 @@ export async function handleGetDefaultIdentitySettings(
|
||||
};
|
||||
} catch (error) {
|
||||
console.error('Error getting default identity settings:', error);
|
||||
return { success: false, error: await t('common.errors.failedToGetDefaultIdentitySettings') };
|
||||
return { success: false, error: await t('common.errors.failedToRetrieveData') };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -313,17 +348,34 @@ export async function handleGetPasswordSettings(
|
||||
return { success: true, settings: passwordSettings };
|
||||
} catch (error) {
|
||||
console.error('Error getting password settings:', error);
|
||||
return { success: false, error: await t('common.errors.failedToGetPasswordSettings') };
|
||||
return { success: false, error: await t('common.errors.failedToRetrieveData') };
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the derived key for the encrypted vault.
|
||||
* Get the encryption key for the encrypted vault.
|
||||
*/
|
||||
export async function handleGetDerivedKey(
|
||||
) : Promise<string> {
|
||||
const derivedKey = await storage.getItem('session:derivedKey') as string;
|
||||
return derivedKey;
|
||||
export async function handleGetEncryptionKey(
|
||||
) : Promise<string | null> {
|
||||
// Try the current key name first (since 0.22.0)
|
||||
let encryptionKey = await storage.getItem('session:encryptionKey') as string | null;
|
||||
|
||||
// Fall back to the legacy key name if not found
|
||||
if (!encryptionKey) {
|
||||
// TODO: this check can be removed some period of time after 0.22.0 is released.
|
||||
encryptionKey = await storage.getItem('session:derivedKey') as string | null;
|
||||
}
|
||||
|
||||
return encryptionKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the encryption key derivation parameters for password change detection and offline mode.
|
||||
*/
|
||||
export async function handleGetEncryptionKeyDerivationParams(
|
||||
) : Promise<EncryptionKeyDerivationParams | null> {
|
||||
const params = await storage.getItem('session:encryptionKeyDerivationParams') as EncryptionKeyDerivationParams | null;
|
||||
return params;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -353,16 +405,16 @@ export async function handleUploadVault(
|
||||
* Data is encrypted using the derived key for additional security.
|
||||
*/
|
||||
export async function handlePersistFormValues(data: any): Promise<void> {
|
||||
const derivedKey = await storage.getItem('session:derivedKey') as string;
|
||||
if (!derivedKey) {
|
||||
throw new Error(await t('common.errors.noDerivedKeyAvailable'));
|
||||
const encryptionKey = await handleGetEncryptionKey();
|
||||
if (!encryptionKey) {
|
||||
throw new Error(await t('common.errors.unknownError'));
|
||||
}
|
||||
|
||||
// Always stringify the data properly
|
||||
const serializedData = JSON.stringify(data);
|
||||
const encryptedData = await EncryptionUtility.symmetricEncrypt(
|
||||
serializedData,
|
||||
derivedKey
|
||||
encryptionKey
|
||||
);
|
||||
await storage.setItem('session:persistedFormValues', encryptedData);
|
||||
}
|
||||
@@ -372,17 +424,17 @@ export async function handlePersistFormValues(data: any): Promise<void> {
|
||||
* Data is decrypted using the derived key.
|
||||
*/
|
||||
export async function handleGetPersistedFormValues(): Promise<any | null> {
|
||||
const derivedKey = await storage.getItem('session:derivedKey') as string;
|
||||
const encryptionKey = await handleGetEncryptionKey();
|
||||
const encryptedData = await storage.getItem('session:persistedFormValues') as string | null;
|
||||
|
||||
if (!encryptedData || !derivedKey) {
|
||||
if (!encryptedData || !encryptionKey) {
|
||||
return null;
|
||||
}
|
||||
|
||||
try {
|
||||
const decryptedData = await EncryptionUtility.symmetricDecrypt(
|
||||
encryptedData,
|
||||
derivedKey
|
||||
encryptionKey
|
||||
);
|
||||
return JSON.parse(decryptedData);
|
||||
} catch (error) {
|
||||
@@ -403,11 +455,15 @@ export async function handleClearPersistedFormValues(): Promise<void> {
|
||||
*/
|
||||
async function uploadNewVaultToServer(sqliteClient: SqliteClient) : Promise<VaultPostResponse> {
|
||||
const updatedVaultData = sqliteClient.exportToBase64();
|
||||
const derivedKey = await storage.getItem('session:derivedKey') as string;
|
||||
const encryptionKey = await handleGetEncryptionKey();
|
||||
|
||||
if (!encryptionKey) {
|
||||
throw new Error(await t('common.errors.vaultIsLocked'));
|
||||
}
|
||||
|
||||
const encryptedVault = await EncryptionUtility.symmetricEncrypt(
|
||||
updatedVaultData,
|
||||
derivedKey
|
||||
encryptionKey
|
||||
);
|
||||
|
||||
await storage.setItems([
|
||||
@@ -443,7 +499,7 @@ async function uploadNewVaultToServer(sqliteClient: SqliteClient) : Promise<Vaul
|
||||
if (response.status === 0) {
|
||||
await storage.setItem('session:vaultRevisionNumber', response.newRevisionNumber);
|
||||
} else {
|
||||
throw new Error(await t('common.errors.failedToUploadVaultToServer'));
|
||||
throw new Error(await t('common.errors.failedToUploadVault'));
|
||||
}
|
||||
|
||||
return response;
|
||||
@@ -454,15 +510,15 @@ async function uploadNewVaultToServer(sqliteClient: SqliteClient) : Promise<Vaul
|
||||
*/
|
||||
async function createVaultSqliteClient() : Promise<SqliteClient> {
|
||||
const encryptedVault = await storage.getItem('session:encryptedVault') as string;
|
||||
const derivedKey = await storage.getItem('session:derivedKey') as string;
|
||||
if (!encryptedVault || !derivedKey) {
|
||||
throw new Error(await t('common.errors.noVaultOrDerivedKeyFound'));
|
||||
const encryptionKey = await handleGetEncryptionKey();
|
||||
if (!encryptedVault || !encryptionKey) {
|
||||
throw new Error(await t('common.errors.unknownError'));
|
||||
}
|
||||
|
||||
// Decrypt the vault.
|
||||
const decryptedVault = await EncryptionUtility.symmetricDecrypt(
|
||||
encryptedVault,
|
||||
derivedKey
|
||||
encryptionKey
|
||||
);
|
||||
|
||||
// Initialize the SQLite client with the decrypted vault.
|
||||
|
||||
@@ -9,8 +9,7 @@ import { BoolResponse as messageBoolResponse } from '@/utils/types/messaging/Boo
|
||||
|
||||
import { t } from '@/i18n/StandaloneI18n';
|
||||
|
||||
import { defineContentScript } from '#imports';
|
||||
import { createShadowRootUi } from '#imports';
|
||||
import { defineContentScript, createShadowRootUi } from '#imports';
|
||||
|
||||
export default defineContentScript({
|
||||
matches: ['<all_urls>'],
|
||||
@@ -35,6 +34,7 @@ export default defineContentScript({
|
||||
name: 'aliasvault-ui',
|
||||
position: 'inline',
|
||||
anchor: 'body',
|
||||
mode: 'closed',
|
||||
/**
|
||||
* Handle mount.
|
||||
*/
|
||||
|
||||
@@ -1,108 +1,212 @@
|
||||
import type { Credential } from '@/utils/dist/shared/models/vault';
|
||||
import { CombinedStopWords } from '@/utils/formDetector/FieldPatterns';
|
||||
|
||||
export enum AutofillMatchingMode {
|
||||
DEFAULT = 'default',
|
||||
URL_EXACT = 'url_exact',
|
||||
URL_SUBDOMAIN = 'url_subdomain'
|
||||
}
|
||||
|
||||
type CredentialWithPriority = Credential & {
|
||||
priority: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter credentials based on current URL and page context to determine which credentials to show
|
||||
* in the autofill popup. Credentials are sorted by priority:
|
||||
* 1. Exact URL match (highest priority)
|
||||
* 2. Base URL match AND page title word match
|
||||
* 3. Base URL match only
|
||||
* 4. Page title word match only (lowest priority)
|
||||
* Extract domain from URL, handling both full URLs and partial domains
|
||||
* @param url - URL or domain string
|
||||
* @returns Normalized domain without protocol or www
|
||||
*/
|
||||
export function filterCredentials(credentials: Credential[], currentUrl: string, pageTitle: string): Credential[] {
|
||||
const urlObject = new URL(currentUrl);
|
||||
const baseUrl = `${urlObject.protocol}//${urlObject.hostname}`;
|
||||
const filtered: CredentialWithPriority[] = [];
|
||||
|
||||
const sanitizedCurrentUrl = currentUrl.toLowerCase().replace('www.', '');
|
||||
|
||||
// 1. Exact URL match (priority 1)
|
||||
credentials.forEach(cred => {
|
||||
if (!cred.ServiceUrl || cred.ServiceUrl.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
const sanitizedCredUrl = cred.ServiceUrl.toLowerCase().replace('www.', '');
|
||||
|
||||
if (sanitizedCurrentUrl.startsWith(sanitizedCredUrl)) {
|
||||
filtered.push({ ...cred, priority: 1 });
|
||||
}
|
||||
});
|
||||
|
||||
// If we have one or more exact matches, do not continue to other matches
|
||||
if (filtered.length > 0) {
|
||||
return filtered;
|
||||
function extractDomain(url: string): string {
|
||||
if (!url) {
|
||||
return '';
|
||||
}
|
||||
|
||||
// Prepare page title words for matching
|
||||
const titleWords = pageTitle.length > 0
|
||||
? pageTitle.toLowerCase()
|
||||
.split(/\s+/)
|
||||
.filter(word =>
|
||||
word.length > 3 &&
|
||||
!CombinedStopWords.has(word.toLowerCase())
|
||||
)
|
||||
: [];
|
||||
// Remove protocol if present
|
||||
let domain = url.toLowerCase().trim();
|
||||
domain = domain.replace(/^https?:\/\//, '');
|
||||
|
||||
// Check for base URL matches and page title matches
|
||||
// Remove www. prefix
|
||||
domain = domain.replace(/^www\./, '');
|
||||
|
||||
// Remove path, query, and fragment
|
||||
domain = domain.split('/')[0];
|
||||
domain = domain.split('?')[0];
|
||||
domain = domain.split('#')[0];
|
||||
|
||||
return domain;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if two domains match, supporting partial matches
|
||||
* @param domain1 - First domain
|
||||
* @param domain2 - Second domain
|
||||
* @returns True if domains match (including partial matches)
|
||||
*/
|
||||
function domainsMatch(domain1: string, domain2: string): boolean {
|
||||
if (!domain1 || !domain2) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const d1 = extractDomain(domain1);
|
||||
const d2 = extractDomain(domain2);
|
||||
|
||||
// Exact match
|
||||
if (d1 === d2) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Check if one domain contains the other (for subdomain matching)
|
||||
if (d1.includes(d2) || d2.includes(d1)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Extract root domains for comparison
|
||||
const d1Parts = d1.split('.');
|
||||
const d2Parts = d2.split('.');
|
||||
|
||||
// Get the last 2 parts (domain.tld) for comparison
|
||||
const d1Root = d1Parts.slice(-2).join('.');
|
||||
const d2Root = d2Parts.slice(-2).join('.');
|
||||
|
||||
return d1Root === d2Root;
|
||||
}
|
||||
|
||||
/**
|
||||
* Extract meaningful words from text, removing punctuation and filtering stop words
|
||||
* @param text - Text to extract words from
|
||||
* @returns Array of filtered words
|
||||
*/
|
||||
function extractWords(text: string): string[] {
|
||||
if (!text || text.length === 0) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return text.toLowerCase()
|
||||
// Replace common separators and punctuation with spaces
|
||||
.replace(/[|,;:\-–—/\\()[\]{}'"`~!@#$%^&*+=<>?]/g, ' ')
|
||||
// Split on whitespace and filter
|
||||
.split(/\s+/)
|
||||
.filter(word =>
|
||||
word.length > 3 &&
|
||||
!CombinedStopWords.has(word)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter credentials based on current URL and page context with anti-phishing protection.
|
||||
*
|
||||
* **Security Note**: When searching with a URL, text search fallback only applies to
|
||||
* credentials with no service URL defined. This prevents phishing attacks where a
|
||||
* malicious site might match credentials intended for the legitimate site.
|
||||
*
|
||||
* Credentials are sorted by priority:
|
||||
* 1. Exact domain match (priority 1 - highest)
|
||||
* 2. Partial/subdomain match (priority 2)
|
||||
* 3. Service name fallback match (priority 5 - lowest, only for credentials without URLs)
|
||||
*/
|
||||
export function filterCredentials(credentials: Credential[], currentUrl: string, pageTitle: string, matchingMode: AutofillMatchingMode = AutofillMatchingMode.DEFAULT): Credential[] {
|
||||
const filtered: CredentialWithPriority[] = [];
|
||||
const currentDomain = extractDomain(currentUrl);
|
||||
|
||||
// Determine feature flags based on matching mode
|
||||
let enableExactMatch = false;
|
||||
let enableSubdomainMatch = false;
|
||||
let enableServiceNameFallback = false;
|
||||
|
||||
switch (matchingMode) {
|
||||
case AutofillMatchingMode.URL_EXACT:
|
||||
enableExactMatch = true;
|
||||
enableSubdomainMatch = false;
|
||||
enableServiceNameFallback = false;
|
||||
break;
|
||||
|
||||
case AutofillMatchingMode.URL_SUBDOMAIN:
|
||||
enableExactMatch = true;
|
||||
enableSubdomainMatch = true;
|
||||
enableServiceNameFallback = false;
|
||||
break;
|
||||
|
||||
case AutofillMatchingMode.DEFAULT:
|
||||
enableExactMatch = true;
|
||||
enableSubdomainMatch = true;
|
||||
enableServiceNameFallback = true;
|
||||
break;
|
||||
}
|
||||
|
||||
// Process credentials with service URLs
|
||||
credentials.forEach(cred => {
|
||||
if (!cred.ServiceUrl || filtered.some(f => f.Id === cred.Id)) {
|
||||
if (!cred.ServiceUrl || cred.ServiceUrl.length === 0) {
|
||||
return; // Handle these in service name fallback
|
||||
}
|
||||
|
||||
const credDomain = extractDomain(cred.ServiceUrl);
|
||||
|
||||
// Check for exact match (priority 1)
|
||||
if (enableExactMatch && currentDomain === credDomain) {
|
||||
filtered.push({ ...cred, priority: 1 });
|
||||
return;
|
||||
}
|
||||
|
||||
let hasBaseUrlMatch = false;
|
||||
let hasTitleMatch = false;
|
||||
|
||||
// Check base URL match
|
||||
try {
|
||||
const credUrlObject = new URL(cred.ServiceUrl);
|
||||
const currentUrlObject = new URL(baseUrl);
|
||||
|
||||
const credDomainParts = credUrlObject.hostname.toLowerCase().split('.');
|
||||
const currentDomainParts = currentUrlObject.hostname.toLowerCase().split('.');
|
||||
|
||||
const credRootDomain = credDomainParts.slice(-2).join('.');
|
||||
const currentRootDomain = currentDomainParts.slice(-2).join('.');
|
||||
|
||||
if (credUrlObject.protocol === currentUrlObject.protocol &&
|
||||
credRootDomain === currentRootDomain) {
|
||||
hasBaseUrlMatch = true;
|
||||
}
|
||||
} catch {
|
||||
// Invalid URL, skip
|
||||
}
|
||||
|
||||
// Check page title match
|
||||
if (titleWords.length > 0) {
|
||||
const credNameWords = cred.ServiceName.toLowerCase()
|
||||
.split(/\s+/)
|
||||
.filter(word => word.length > 3 && !CombinedStopWords.has(word));
|
||||
hasTitleMatch = titleWords.some(word =>
|
||||
credNameWords.some(credWord => credWord.includes(word))
|
||||
);
|
||||
}
|
||||
|
||||
// Assign priority based on matches
|
||||
if (hasBaseUrlMatch && hasTitleMatch) {
|
||||
// Check for subdomain/partial match (priority 2)
|
||||
if (enableSubdomainMatch && domainsMatch(currentDomain, credDomain)) {
|
||||
filtered.push({ ...cred, priority: 2 });
|
||||
} else if (hasBaseUrlMatch) {
|
||||
filtered.push({ ...cred, priority: 3 });
|
||||
} else if (hasTitleMatch) {
|
||||
filtered.push({ ...cred, priority: 4 });
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
// Sort by priority and then take unique credentials
|
||||
// Service name fallback for credentials without URLs (priority 5)
|
||||
if (enableServiceNameFallback) {
|
||||
/*
|
||||
* SECURITY: Service name matching only applies to credentials with no service URL.
|
||||
* This prevents phishing attacks where a malicious site might match credentials
|
||||
* intended for a legitimate site.
|
||||
*/
|
||||
|
||||
// Extract words from page title
|
||||
const titleWords = extractWords(pageTitle);
|
||||
|
||||
if (titleWords.length > 0) {
|
||||
credentials.forEach(cred => {
|
||||
// CRITICAL: Only check credentials that have NO service URL defined
|
||||
if (cred.ServiceUrl && cred.ServiceUrl.length > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Skip if already in filtered list
|
||||
if (filtered.some(f => f.Id === cred.Id)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check page title match with service name
|
||||
if (cred.ServiceName) {
|
||||
const credNameWords = extractWords(cred.ServiceName);
|
||||
|
||||
/*
|
||||
* Match only complete words, not substrings
|
||||
* For example: "Express" should match "My Express Account" but not "AliExpress"
|
||||
*/
|
||||
const hasTitleMatch = titleWords.some(titleWord =>
|
||||
credNameWords.some(credWord =>
|
||||
titleWord === credWord // Exact word match only
|
||||
)
|
||||
);
|
||||
|
||||
if (hasTitleMatch) {
|
||||
filtered.push({ ...cred, priority: 5 });
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Sort by priority and return unique credentials (max 3)
|
||||
const uniqueCredentials = Array.from(
|
||||
new Map(filtered
|
||||
.sort((a, b) => a.priority - b.priority)
|
||||
.map(cred => [cred.Id, cred]))
|
||||
.values()
|
||||
new Map(
|
||||
filtered
|
||||
.sort((a, b) => a.priority - b.priority)
|
||||
.map(cred => [cred.Id, cred])
|
||||
).values()
|
||||
);
|
||||
// Show max 3 results
|
||||
|
||||
return uniqueCredentials.slice(0, 3);
|
||||
}
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
import { sendMessage } from 'webext-bridge/content-script';
|
||||
|
||||
import { openAutofillPopup } from '@/entrypoints/contentScript/Popup';
|
||||
|
||||
import type { Credential } from '@/utils/dist/shared/models/vault';
|
||||
import { FormDetector } from '@/utils/formDetector/FormDetector';
|
||||
import { FormFiller } from '@/utils/formDetector/FormFiller';
|
||||
import { ClickValidator } from '@/utils/security/ClickValidator';
|
||||
|
||||
/**
|
||||
* Global timestamp to track popup debounce time.
|
||||
@@ -12,6 +15,11 @@ import { FormFiller } from '@/utils/formDetector/FormFiller';
|
||||
*/
|
||||
let popupDebounceTime = 0;
|
||||
|
||||
/**
|
||||
* ClickValidator instance for form security validation
|
||||
*/
|
||||
const clickValidator = ClickValidator.getInstance();
|
||||
|
||||
/**
|
||||
* Check if popup can be shown based on debounce time.
|
||||
*/
|
||||
@@ -32,6 +40,8 @@ export function hidePopupFor(ms: number) : void {
|
||||
|
||||
/**
|
||||
* Validates if an element is a supported input field that can be processed for autofill.
|
||||
* This function supports regular input elements, custom elements with type attributes,
|
||||
* and custom web components that may contain shadow DOM.
|
||||
* @param element The element to validate
|
||||
* @returns An object containing validation result and the element cast as HTMLInputElement if valid
|
||||
*/
|
||||
@@ -42,14 +52,30 @@ export function validateInputField(element: Element | null): { isValid: boolean;
|
||||
|
||||
const textInputTypes = ['text', 'email', 'tel', 'password', 'search', 'url', 'number'];
|
||||
const elementType = element.getAttribute('type');
|
||||
const isInputElement = element.tagName.toLowerCase() === 'input';
|
||||
const tagName = element.tagName.toLowerCase();
|
||||
const isInputElement = tagName === 'input';
|
||||
|
||||
// Check if element has shadow DOM with input elements
|
||||
const elementWithShadow = element as HTMLElement & { shadowRoot?: ShadowRoot };
|
||||
const hasShadowDOMInput = elementWithShadow.shadowRoot &&
|
||||
elementWithShadow.shadowRoot.querySelector('input, textarea');
|
||||
|
||||
// Check if it's a custom element that might be an input
|
||||
const isLikelyCustomInputElement = tagName.includes('-') && (
|
||||
tagName.includes('input') ||
|
||||
tagName.includes('field') ||
|
||||
tagName.includes('text') ||
|
||||
hasShadowDOMInput
|
||||
);
|
||||
|
||||
// Check if it's a valid input field we should process
|
||||
const isValid = (
|
||||
// Case 1: It's an input element (with either explicit type or defaulting to "text")
|
||||
(isInputElement && (!elementType || textInputTypes.includes(elementType?.toLowerCase() ?? ''))) ||
|
||||
// Case 2: Non-input element but has valid type attribute
|
||||
(!isInputElement && elementType && textInputTypes.includes(elementType.toLowerCase()))
|
||||
(!isInputElement && elementType && textInputTypes.includes(elementType.toLowerCase())) ||
|
||||
// Case 3: It's a custom element that likely contains an input
|
||||
(isLikelyCustomInputElement)
|
||||
) as boolean;
|
||||
|
||||
return {
|
||||
@@ -64,10 +90,15 @@ export function validateInputField(element: Element | null): { isValid: boolean;
|
||||
* @param credential - The credential to fill.
|
||||
* @param input - The input element that triggered the popup. Required when filling credentials to know which form to fill.
|
||||
*/
|
||||
export function fillCredential(credential: Credential, input: HTMLInputElement) : void {
|
||||
export async function fillCredential(credential: Credential, input: HTMLInputElement): Promise<void> {
|
||||
// Set debounce time to 300ms to prevent the popup from being shown again within 300ms because of autofill events.
|
||||
hidePopupFor(300);
|
||||
|
||||
// Reset auto-lock timer when autofilling
|
||||
sendMessage('RESET_AUTO_LOCK_TIMER', {}, 'background').catch(() => {
|
||||
// Ignore errors as background script might not be ready
|
||||
});
|
||||
|
||||
const formDetector = new FormDetector(document, input);
|
||||
const form = formDetector.getForm();
|
||||
|
||||
@@ -77,7 +108,7 @@ export function fillCredential(credential: Credential, input: HTMLInputElement)
|
||||
}
|
||||
|
||||
const formFiller = new FormFiller(form, triggerInputEvents);
|
||||
formFiller.fillFields(credential);
|
||||
await formFiller.fillFields(credential);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -98,7 +129,7 @@ function findActualInput(element: HTMLElement): HTMLInputElement {
|
||||
return element as HTMLInputElement;
|
||||
}
|
||||
|
||||
// Try to find a visible child input
|
||||
// Try to find a visible child input in regular DOM
|
||||
const childInput = element.querySelector('input');
|
||||
if (childInput) {
|
||||
const style = window.getComputedStyle(childInput);
|
||||
@@ -107,6 +138,17 @@ function findActualInput(element: HTMLElement): HTMLInputElement {
|
||||
}
|
||||
}
|
||||
|
||||
// Try to find input in shadow DOM if element has shadowRoot
|
||||
if (element.shadowRoot) {
|
||||
const shadowInput = element.shadowRoot.querySelector('input');
|
||||
if (shadowInput) {
|
||||
const style = window.getComputedStyle(shadowInput);
|
||||
if (style.display !== 'none' && style.visibility !== 'hidden') {
|
||||
return shadowInput as HTMLInputElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Fallback to the provided element if no child input found
|
||||
return element as HTMLInputElement;
|
||||
}
|
||||
@@ -179,9 +221,16 @@ export function injectIcon(input: HTMLInputElement, container: HTMLElement): voi
|
||||
window.addEventListener('resize', updateIconPosition);
|
||||
|
||||
// Add click event to trigger the autofill popup and refocus the input
|
||||
icon.addEventListener('click', (e: MouseEvent) => {
|
||||
icon.addEventListener('click', async (e: MouseEvent) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
// Validate the click for security
|
||||
if (!await clickValidator.validateClick(e)) {
|
||||
console.warn('[AliasVault Security] Blocked autofill popup opening due to security validation failure');
|
||||
return;
|
||||
}
|
||||
|
||||
setTimeout(() => actualInput.focus(), 0);
|
||||
openAutofillPopup(actualInput, container);
|
||||
});
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
import { sendMessage } from 'webext-bridge/content-script';
|
||||
|
||||
import { filterCredentials } from '@/entrypoints/contentScript/Filter';
|
||||
import { filterCredentials, AutofillMatchingMode } from '@/entrypoints/contentScript/Filter';
|
||||
import { fillCredential } from '@/entrypoints/contentScript/Form';
|
||||
|
||||
import { DISABLED_SITES_KEY, TEMPORARY_DISABLED_SITES_KEY, GLOBAL_AUTOFILL_POPUP_ENABLED_KEY, VAULT_LOCKED_DISMISS_UNTIL_KEY, LAST_CUSTOM_EMAIL_KEY, LAST_CUSTOM_USERNAME_KEY } from '@/utils/Constants';
|
||||
import { DISABLED_SITES_KEY, TEMPORARY_DISABLED_SITES_KEY, GLOBAL_AUTOFILL_POPUP_ENABLED_KEY, VAULT_LOCKED_DISMISS_UNTIL_KEY, LAST_CUSTOM_EMAIL_KEY, LAST_CUSTOM_USERNAME_KEY, AUTOFILL_MATCHING_MODE_KEY } from '@/utils/Constants';
|
||||
import { CreateIdentityGenerator } from '@/utils/dist/shared/identity-generator';
|
||||
import type { Credential } from '@/utils/dist/shared/models/vault';
|
||||
import { CreatePasswordGenerator, PasswordGenerator, PasswordSettings } from '@/utils/dist/shared/password-generator';
|
||||
import { FormDetector } from '@/utils/formDetector/FormDetector';
|
||||
import { ClickValidator } from '@/utils/security/ClickValidator';
|
||||
import { SqliteClient } from '@/utils/SqliteClient';
|
||||
import { CredentialsResponse } from '@/utils/types/messaging/CredentialsResponse';
|
||||
import { IdentitySettingsResponse } from '@/utils/types/messaging/IdentitySettingsResponse';
|
||||
@@ -23,6 +24,11 @@ import { storage } from '#imports';
|
||||
*/
|
||||
let popupListeners = new WeakMap<HTMLElement, EventListener>();
|
||||
|
||||
/**
|
||||
* Global ClickValidator instance for content script security
|
||||
*/
|
||||
const clickValidator = ClickValidator.getInstance();
|
||||
|
||||
/**
|
||||
* Open (or refresh) the autofill popup including check if vault is locked.
|
||||
*/
|
||||
@@ -181,10 +187,14 @@ export async function createAutofillPopup(input: HTMLInputElement, credentials:
|
||||
credentials = [];
|
||||
}
|
||||
|
||||
// Load autofill matching mode setting
|
||||
const matchingMode = await storage.getItem(AUTOFILL_MATCHING_MODE_KEY) as AutofillMatchingMode ?? AutofillMatchingMode.DEFAULT;
|
||||
|
||||
const filteredCredentials = filterCredentials(
|
||||
credentials,
|
||||
window.location.href,
|
||||
document.title
|
||||
document.title,
|
||||
matchingMode
|
||||
);
|
||||
|
||||
updatePopupContent(filteredCredentials, credentialList, input, rootContainer, noMatchesText);
|
||||
@@ -318,20 +328,21 @@ export async function createAutofillPopup(input: HTMLInputElement, credentials:
|
||||
}
|
||||
};
|
||||
|
||||
// Add click listener with capture and prevent removal.
|
||||
// Add click listener with capture and prevent removal and security validation.
|
||||
addReliableClickHandler(createButton, handleCreateClick);
|
||||
|
||||
// Create search input.
|
||||
// Create search input with native placeholder.
|
||||
const searchInput = document.createElement('input');
|
||||
searchInput.type = 'text';
|
||||
searchInput.dataset.avDisable = 'true';
|
||||
searchInput.placeholder = searchPlaceholder;
|
||||
searchInput.dataset.avDisable = 'true';
|
||||
searchInput.id = 'aliasvault-search-input';
|
||||
searchInput.className = 'av-search-input';
|
||||
|
||||
// Handle search input.
|
||||
let searchTimeout: NodeJS.Timeout | null = null;
|
||||
searchInput.addEventListener('input', () => {
|
||||
handleSearchInput(searchInput, credentials, rootContainer, searchTimeout, credentialList, input, noMatchesText);
|
||||
searchInput.addEventListener('input', async () => {
|
||||
await handleSearchInput(searchInput, credentials, rootContainer, searchTimeout, credentialList, input, noMatchesText);
|
||||
});
|
||||
|
||||
// Close button
|
||||
@@ -412,7 +423,7 @@ export async function createAutofillPopup(input: HTMLInputElement, credentials:
|
||||
addReliableClickHandler(contextMenu, handleContextMenuClick);
|
||||
};
|
||||
|
||||
// Add click handlers
|
||||
// Add click handlers with security validation
|
||||
addReliableClickHandler(closeButton, (e: Event) => {
|
||||
handleCloseClick(e);
|
||||
});
|
||||
@@ -465,7 +476,7 @@ export async function createVaultLockedPopup(input: HTMLInputElement, rootContai
|
||||
const container = document.createElement('div');
|
||||
container.className = 'av-vault-locked-container';
|
||||
|
||||
// Make the entire container clickable
|
||||
// Make the entire container clickable with security validation
|
||||
addReliableClickHandler(container, handleUnlockClick);
|
||||
container.style.cursor = 'pointer';
|
||||
|
||||
@@ -507,7 +518,7 @@ export async function createVaultLockedPopup(input: HTMLInputElement, rootContai
|
||||
closeButton.style.top = '50%';
|
||||
closeButton.style.transform = 'translateY(-50%)';
|
||||
|
||||
// Handle close button click
|
||||
// Handle close button click with security validation
|
||||
addReliableClickHandler(closeButton, async (e) => {
|
||||
e.stopPropagation(); // Prevent opening the unlock popup
|
||||
await dismissVaultLockedPopup();
|
||||
@@ -540,7 +551,7 @@ export async function createVaultLockedPopup(input: HTMLInputElement, rootContai
|
||||
/**
|
||||
* Handle popup search input by filtering credentials based on the search term.
|
||||
*/
|
||||
function handleSearchInput(searchInput: HTMLInputElement, credentials: Credential[], rootContainer: HTMLElement, searchTimeout: NodeJS.Timeout | null, credentialList: HTMLElement | null, input: HTMLInputElement, noMatchesText?: string) : void {
|
||||
async function handleSearchInput(searchInput: HTMLInputElement, credentials: Credential[], rootContainer: HTMLElement, searchTimeout: NodeJS.Timeout | null, credentialList: HTMLElement | null, input: HTMLInputElement, noMatchesText?: string) : Promise<void> {
|
||||
if (searchTimeout) {
|
||||
clearTimeout(searchTimeout);
|
||||
}
|
||||
@@ -551,11 +562,15 @@ function handleSearchInput(searchInput: HTMLInputElement, credentials: Credentia
|
||||
let filteredCredentials;
|
||||
|
||||
if (searchTerm === '') {
|
||||
// Load autofill matching mode setting
|
||||
const matchingMode = await storage.getItem(AUTOFILL_MATCHING_MODE_KEY) as AutofillMatchingMode ?? AutofillMatchingMode.DEFAULT;
|
||||
|
||||
// If search is empty, use original URL-based filtering
|
||||
filteredCredentials = filterCredentials(
|
||||
uniqueCredentials,
|
||||
window.location.href,
|
||||
document.title
|
||||
document.title,
|
||||
matchingMode
|
||||
).sort((a, b) => {
|
||||
// First compare by service name
|
||||
const serviceNameComparison = (a.ServiceName ?? '').localeCompare(b.ServiceName ?? '');
|
||||
@@ -654,7 +669,7 @@ function createCredentialList(credentials: Credential[], input: HTMLInputElement
|
||||
</svg>
|
||||
`;
|
||||
|
||||
// Handle popout click
|
||||
// Handle popout click with security validation
|
||||
addReliableClickHandler(popoutIcon, (e) => {
|
||||
e.stopPropagation(); // Prevent credential fill
|
||||
sendMessage('OPEN_POPUP_WITH_CREDENTIAL', { credentialId: cred.Id }, 'background');
|
||||
@@ -664,7 +679,7 @@ function createCredentialList(credentials: Credential[], input: HTMLInputElement
|
||||
item.appendChild(credentialInfo);
|
||||
item.appendChild(popoutIcon);
|
||||
|
||||
// Update click handler to only trigger on credentialInfo
|
||||
// Update click handler to only trigger on credentialInfo with security validation
|
||||
addReliableClickHandler(credentialInfo, () => {
|
||||
fillCredential(cred, input);
|
||||
removeExistingPopup(rootContainer);
|
||||
@@ -1679,14 +1694,32 @@ function getValidServiceUrl(): string {
|
||||
|
||||
/**
|
||||
* Add click handler with mousedown/mouseup backup for better click reliability in shadow DOM.
|
||||
* Now includes optional security validation.
|
||||
*
|
||||
* Some websites due to their design cause the AliasVault autofill to re-trigger when clicking
|
||||
* outside of the input field, which causes the AliasVault popup to close before the click event
|
||||
* is registered. This is a workaround to ensure the click event is always registered.
|
||||
*/
|
||||
function addReliableClickHandler(element: HTMLElement, handler: (e: Event) => void): void {
|
||||
function addReliableClickHandler(
|
||||
element: HTMLElement,
|
||||
handler: (e: Event) => void
|
||||
): void {
|
||||
/**
|
||||
* Secure wrapper that validates clicks before executing handler
|
||||
*/
|
||||
const secureHandler = async (e: Event): Promise<void> => {
|
||||
const mouseEvent = e as MouseEvent;
|
||||
|
||||
if (!await clickValidator.validateClick(mouseEvent)) {
|
||||
console.warn(`[AliasVault Security] Blocked click action due to security validation failure`);
|
||||
return;
|
||||
}
|
||||
|
||||
handler(e);
|
||||
};
|
||||
|
||||
// Add primary click listener with capture and prevent removal
|
||||
element.addEventListener('click', handler, {
|
||||
element.addEventListener('click', secureHandler, {
|
||||
capture: true,
|
||||
passive: false
|
||||
});
|
||||
@@ -1699,11 +1732,11 @@ function addReliableClickHandler(element: HTMLElement, handler: (e: Event) => vo
|
||||
isMouseDown = true;
|
||||
}, { capture: true });
|
||||
|
||||
element.addEventListener('mouseup', (e) => {
|
||||
element.addEventListener('mouseup', async (e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
if (isMouseDown) {
|
||||
handler(e);
|
||||
await secureHandler(e);
|
||||
}
|
||||
isMouseDown = false;
|
||||
}, { capture: true });
|
||||
@@ -1728,7 +1761,6 @@ export async function createUpgradeRequiredPopup(input: HTMLInputElement, rootCo
|
||||
const container = document.createElement('div');
|
||||
container.className = 'av-upgrade-required-container';
|
||||
|
||||
// Make the entire container clickable
|
||||
addReliableClickHandler(container, handleUpgradeClick);
|
||||
container.style.cursor = 'pointer';
|
||||
|
||||
|
||||
@@ -0,0 +1,347 @@
|
||||
import { describe, it, expect, beforeEach } from 'vitest';
|
||||
|
||||
import type { Credential } from '@/utils/dist/shared/models/vault';
|
||||
|
||||
import { filterCredentials } from '../Filter';
|
||||
|
||||
describe('Filter - Credential URL Matching', () => {
|
||||
let testCredentials: Credential[];
|
||||
|
||||
beforeEach(() => {
|
||||
// Create test credentials using shared test data structure
|
||||
testCredentials = createSharedTestCredentials();
|
||||
});
|
||||
|
||||
// [#1] - Exact URL match
|
||||
it('should match exact URL', () => {
|
||||
const matches = filterCredentials(
|
||||
testCredentials,
|
||||
'www.coolblue.nl',
|
||||
''
|
||||
);
|
||||
|
||||
expect(matches).toHaveLength(1);
|
||||
expect(matches[0].ServiceName).toBe('Coolblue');
|
||||
});
|
||||
|
||||
// [#2] - Base URL with path match
|
||||
it('should match base URL with path', () => {
|
||||
const matches = filterCredentials(
|
||||
testCredentials,
|
||||
'https://gmail.com/signin',
|
||||
''
|
||||
);
|
||||
|
||||
expect(matches).toHaveLength(1);
|
||||
expect(matches[0].ServiceName).toBe('Gmail');
|
||||
});
|
||||
|
||||
// [#3] - Root domain with subdomain match
|
||||
it('should match root domain with subdomain', () => {
|
||||
const matches = filterCredentials(
|
||||
testCredentials,
|
||||
'https://mail.google.com',
|
||||
''
|
||||
);
|
||||
|
||||
expect(matches).toHaveLength(1);
|
||||
expect(matches[0].ServiceName).toBe('Google');
|
||||
});
|
||||
|
||||
// [#4] - No matches for non-existent domain
|
||||
it('should return empty array for no matches', () => {
|
||||
const matches = filterCredentials(
|
||||
testCredentials,
|
||||
'https://nonexistent.com',
|
||||
''
|
||||
);
|
||||
|
||||
expect(matches).toHaveLength(0);
|
||||
});
|
||||
|
||||
// [#5] - Partial URL stored matches full URL search
|
||||
it('should match partial URL with full URL - dumpert.nl case', () => {
|
||||
// Test case: stored URL is "dumpert.nl", search with full URL
|
||||
const matches = filterCredentials(
|
||||
testCredentials,
|
||||
'https://www.dumpert.nl',
|
||||
''
|
||||
);
|
||||
|
||||
expect(matches).toHaveLength(1);
|
||||
expect(matches[0].ServiceName).toBe('Dumpert');
|
||||
});
|
||||
|
||||
// [#6] - Full URL stored matches partial URL search
|
||||
it('should match full URL with partial URL', () => {
|
||||
const matches = filterCredentials(
|
||||
testCredentials,
|
||||
'coolblue.nl',
|
||||
''
|
||||
);
|
||||
|
||||
expect(matches).toHaveLength(1);
|
||||
expect(matches[0].ServiceName).toBe('Coolblue');
|
||||
});
|
||||
|
||||
// [#7] - Protocol variations (http/https/none) match
|
||||
it('should handle protocol variations correctly', () => {
|
||||
// Test that http and https variations match
|
||||
const httpsMatches = filterCredentials(
|
||||
testCredentials,
|
||||
'https://github.com',
|
||||
''
|
||||
);
|
||||
const httpMatches = filterCredentials(
|
||||
testCredentials,
|
||||
'http://github.com',
|
||||
''
|
||||
);
|
||||
const noProtocolMatches = filterCredentials(
|
||||
testCredentials,
|
||||
'https://github.com', // Converting no-protocol to https for test
|
||||
''
|
||||
);
|
||||
|
||||
expect(httpsMatches).toHaveLength(1);
|
||||
expect(httpMatches).toHaveLength(1);
|
||||
expect(noProtocolMatches).toHaveLength(1);
|
||||
expect(httpsMatches[0].ServiceName).toBe('GitHub');
|
||||
expect(httpMatches[0].ServiceName).toBe('GitHub');
|
||||
expect(noProtocolMatches[0].ServiceName).toBe('GitHub');
|
||||
});
|
||||
|
||||
// [#8] - WWW prefix variations match
|
||||
it('should handle www variations correctly', () => {
|
||||
// Test that www variations match
|
||||
const withWww = filterCredentials(
|
||||
testCredentials,
|
||||
'https://www.dumpert.nl',
|
||||
''
|
||||
);
|
||||
const withoutWww = filterCredentials(
|
||||
testCredentials,
|
||||
'https://dumpert.nl',
|
||||
''
|
||||
);
|
||||
|
||||
expect(withWww).toHaveLength(1);
|
||||
expect(withoutWww).toHaveLength(1);
|
||||
expect(withWww[0].ServiceName).toBe('Dumpert');
|
||||
expect(withoutWww[0].ServiceName).toBe('Dumpert');
|
||||
});
|
||||
|
||||
// [#9] - Subdomain matching
|
||||
it('should handle subdomain matching', () => {
|
||||
// Test subdomain matching
|
||||
const appSubdomain = filterCredentials(
|
||||
testCredentials,
|
||||
'https://app.example.com',
|
||||
''
|
||||
);
|
||||
const wwwSubdomain = filterCredentials(
|
||||
testCredentials,
|
||||
'https://www.example.com',
|
||||
''
|
||||
);
|
||||
const noSubdomain = filterCredentials(
|
||||
testCredentials,
|
||||
'https://example.com',
|
||||
''
|
||||
);
|
||||
|
||||
expect(appSubdomain).toHaveLength(1);
|
||||
expect(appSubdomain[0].ServiceName).toBe('Subdomain Example');
|
||||
expect(wwwSubdomain).toHaveLength(1);
|
||||
expect(wwwSubdomain[0].ServiceName).toBe('Subdomain Example');
|
||||
expect(noSubdomain).toHaveLength(1);
|
||||
expect(noSubdomain[0].ServiceName).toBe('Subdomain Example');
|
||||
});
|
||||
|
||||
// [#10] - Paths and query strings ignored
|
||||
it('should ignore paths and query strings', () => {
|
||||
// Test that paths and query strings are ignored
|
||||
const withPath = filterCredentials(
|
||||
testCredentials,
|
||||
'https://github.com/user/repo',
|
||||
''
|
||||
);
|
||||
const withQuery = filterCredentials(
|
||||
testCredentials,
|
||||
'https://stackoverflow.com/questions?tab=newest',
|
||||
''
|
||||
);
|
||||
const withFragment = filterCredentials(
|
||||
testCredentials,
|
||||
'https://gmail.com#inbox',
|
||||
''
|
||||
);
|
||||
|
||||
expect(withPath).toHaveLength(1);
|
||||
expect(withPath[0].ServiceName).toBe('GitHub');
|
||||
expect(withQuery).toHaveLength(1);
|
||||
expect(withQuery[0].ServiceName).toBe('Stack Overflow');
|
||||
expect(withFragment).toHaveLength(1);
|
||||
expect(withFragment[0].ServiceName).toBe('Gmail');
|
||||
});
|
||||
|
||||
// [#11] - Complex URL variations
|
||||
it('should handle complex URL variations', () => {
|
||||
// Test complex URL matching scenario
|
||||
const complexUrl = filterCredentials(
|
||||
testCredentials,
|
||||
'https://www.coolblue.nl/product/12345?ref=google',
|
||||
''
|
||||
);
|
||||
|
||||
expect(complexUrl).toHaveLength(1);
|
||||
expect(complexUrl[0].ServiceName).toBe('Coolblue');
|
||||
});
|
||||
|
||||
// [#12] - Priority ordering
|
||||
it('should handle priority ordering', () => {
|
||||
const matches = filterCredentials(
|
||||
testCredentials,
|
||||
'coolblue.nl',
|
||||
''
|
||||
);
|
||||
|
||||
expect(matches).toHaveLength(1);
|
||||
expect(matches[0].ServiceName).toBe('Coolblue');
|
||||
});
|
||||
|
||||
// [#13] - Title-only matching
|
||||
it('should match title only', () => {
|
||||
const matches = filterCredentials(
|
||||
testCredentials,
|
||||
'https://nomatch.com',
|
||||
'newyorktimes'
|
||||
);
|
||||
|
||||
expect(matches).toHaveLength(1);
|
||||
expect(matches[0].ServiceName).toBe('Title Only newyorktimes');
|
||||
});
|
||||
|
||||
/* [#14] - Domain name part matching */
|
||||
it('should handle domain name part matching', () => {
|
||||
const matches = filterCredentials(
|
||||
testCredentials,
|
||||
'https://coolblue.be',
|
||||
''
|
||||
);
|
||||
|
||||
expect(matches).toHaveLength(0);
|
||||
});
|
||||
|
||||
// [#15] - Package name matching
|
||||
it('should handle package name matching', () => {
|
||||
const matches = filterCredentials(
|
||||
testCredentials,
|
||||
'com.coolblue.app',
|
||||
''
|
||||
);
|
||||
|
||||
expect(matches).toHaveLength(1);
|
||||
expect(matches[0].ServiceName).toBe('Coolblue App');
|
||||
});
|
||||
|
||||
// [#16] - Invalid URL handling
|
||||
it('should handle invalid URL', () => {
|
||||
const matches = filterCredentials(
|
||||
testCredentials,
|
||||
'not a url',
|
||||
''
|
||||
);
|
||||
|
||||
expect(matches).toHaveLength(0);
|
||||
});
|
||||
|
||||
// [#17] - Anti-phishing protection
|
||||
it('should handle anti-phishing protection', () => {
|
||||
const matches = filterCredentials(
|
||||
testCredentials,
|
||||
'https://secure-bankk.com',
|
||||
''
|
||||
);
|
||||
|
||||
expect(matches).toHaveLength(0);
|
||||
});
|
||||
|
||||
// [#18] - Ensure only full words are matched
|
||||
it('should not match on string part of word', () => {
|
||||
const matches = filterCredentials(
|
||||
testCredentials,
|
||||
'',
|
||||
'Express Yourself App | Description'
|
||||
);
|
||||
|
||||
// The string above should not match "AliExpress" service name
|
||||
expect(matches).toHaveLength(0);
|
||||
});
|
||||
|
||||
// [#19] - Ensure separators and punctuation are stripped for matching
|
||||
it('should match service names when separated by commas and other punctuation', () => {
|
||||
const matches = filterCredentials(
|
||||
testCredentials,
|
||||
'https://nomatch.com',
|
||||
'Reddit, social media platform'
|
||||
);
|
||||
|
||||
// Should match "Reddit" even though it's followed by a comma and description
|
||||
expect(matches).toHaveLength(1);
|
||||
expect(matches[0].ServiceName).toBe('Reddit');
|
||||
});
|
||||
|
||||
/**
|
||||
* Creates the shared test credential dataset used across all platforms.
|
||||
* Note: when making changes to this list, make sure to update the corresponding list for iOS and Android tests as well.
|
||||
*/
|
||||
function createSharedTestCredentials(): Credential[] {
|
||||
return [
|
||||
createTestCredential('Gmail', 'https://gmail.com', 'user@gmail.com'),
|
||||
createTestCredential('Google', 'https://google.com', 'user@google.com'),
|
||||
createTestCredential('Coolblue', 'https://www.coolblue.nl', 'user@coolblue.nl'),
|
||||
createTestCredential('Amazon', 'https://amazon.com', 'user@amazon.com'),
|
||||
createTestCredential('Coolblue App', 'com.coolblue.app', 'user@coolblue.nl'),
|
||||
createTestCredential('Dumpert', 'dumpert.nl', 'user@dumpert.nl'),
|
||||
createTestCredential('GitHub', 'github.com', 'user@github.com'),
|
||||
createTestCredential('Stack Overflow', 'https://stackoverflow.com', 'user@stackoverflow.com'),
|
||||
createTestCredential('Subdomain Example', 'https://app.example.com', 'user@example.com'),
|
||||
createTestCredential('Title Only newyorktimes', '', ''),
|
||||
createTestCredential('Bank Account', 'https://secure-bank.com', 'user@bank.com'),
|
||||
createTestCredential('AliExpress', 'https://aliexpress.com', 'user@aliexpress.com'),
|
||||
createTestCredential('Reddit', '', 'user@reddit.com'),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function to create test credentials with standardized structure.
|
||||
* @param serviceName - The name of the service
|
||||
* @param serviceUrl - The URL of the service
|
||||
* @param username - The username for the service
|
||||
* @returns A test credential matching the platform's Credential type
|
||||
*/
|
||||
function createTestCredential(
|
||||
serviceName: string,
|
||||
serviceUrl: string,
|
||||
username: string
|
||||
): Credential {
|
||||
return {
|
||||
Id: Math.random().toString(),
|
||||
ServiceName: serviceName,
|
||||
ServiceUrl: serviceUrl,
|
||||
Username: username,
|
||||
Password: 'password123',
|
||||
Notes: '',
|
||||
Logo: new Uint8Array(),
|
||||
Alias: {
|
||||
FirstName: '',
|
||||
LastName: '',
|
||||
NickName: '',
|
||||
BirthDate: '',
|
||||
Gender: undefined,
|
||||
Email: username
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
@@ -222,7 +222,7 @@ body {
|
||||
|
||||
/* Search Input */
|
||||
.av-search-input {
|
||||
flex: 2;
|
||||
flex: 1;
|
||||
border-radius: 4px;
|
||||
background: #374151;
|
||||
color: #e5e7eb;
|
||||
@@ -231,12 +231,13 @@ body {
|
||||
border: 1px solid #4b5563;
|
||||
outline: none;
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
min-width: 0px;
|
||||
padding: 8px 12px;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.av-search-input::placeholder {
|
||||
color: #bdbebe;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.av-search-input:focus {
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { HashRouter as Router, Routes, Route } from 'react-router-dom';
|
||||
import { sendMessage } from 'webext-bridge/popup';
|
||||
|
||||
import { ClipboardCountdownBar } from '@/entrypoints/popup/components/ClipboardCountdownBar';
|
||||
import BottomNav from '@/entrypoints/popup/components/Layout/BottomNav';
|
||||
import Header from '@/entrypoints/popup/components/Layout/Header';
|
||||
import LoadingSpinner from '@/entrypoints/popup/components/LoadingSpinner';
|
||||
@@ -20,6 +22,11 @@ import Login from '@/entrypoints/popup/pages/Login';
|
||||
import Logout from '@/entrypoints/popup/pages/Logout';
|
||||
import Reinitialize from '@/entrypoints/popup/pages/Reinitialize';
|
||||
import Settings from '@/entrypoints/popup/pages/Settings';
|
||||
import AutofillSettings from '@/entrypoints/popup/pages/settings/AutofillSettings';
|
||||
import AutoLockSettings from '@/entrypoints/popup/pages/settings/AutoLockSettings';
|
||||
import ClipboardSettings from '@/entrypoints/popup/pages/settings/ClipboardSettings';
|
||||
import ContextMenuSettings from '@/entrypoints/popup/pages/settings/ContextMenuSettings';
|
||||
import LanguageSettings from '@/entrypoints/popup/pages/settings/LanguageSettings';
|
||||
import Unlock from '@/entrypoints/popup/pages/Unlock';
|
||||
import UnlockSuccess from '@/entrypoints/popup/pages/UnlockSuccess';
|
||||
import Upgrade from '@/entrypoints/popup/pages/Upgrade';
|
||||
@@ -65,6 +72,11 @@ const App: React.FC = () => {
|
||||
{ path: '/emails', element: <EmailsList />, showBackButton: false },
|
||||
{ path: '/emails/:id', element: <EmailDetails />, showBackButton: true, title: t('emails.title') },
|
||||
{ path: '/settings', element: <Settings />, showBackButton: false },
|
||||
{ path: '/settings/autofill', element: <AutofillSettings />, showBackButton: true, title: t('settings.autofillSettings') },
|
||||
{ path: '/settings/context-menu', element: <ContextMenuSettings />, showBackButton: true, title: t('settings.contextMenuSettings') },
|
||||
{ path: '/settings/clipboard', element: <ClipboardSettings />, showBackButton: true, title: t('settings.clipboardSettings') },
|
||||
{ path: '/settings/language', element: <LanguageSettings />, showBackButton: true, title: t('settings.language') },
|
||||
{ path: '/settings/auto-lock', element: <AutoLockSettings />, showBackButton: true, title: t('settings.autoLockTimeout') },
|
||||
{ path: '/logout', element: <Logout />, showBackButton: false },
|
||||
], [t]);
|
||||
|
||||
@@ -74,6 +86,29 @@ const App: React.FC = () => {
|
||||
}
|
||||
}, [isInitialLoading, setIsLoading]);
|
||||
|
||||
/**
|
||||
* Send heartbeat to background every 5 seconds while popup is open.
|
||||
* This extends the auto-lock timer to prevent vault locking while popup is active.
|
||||
*/
|
||||
useEffect(() => {
|
||||
// Send initial heartbeat
|
||||
sendMessage('POPUP_HEARTBEAT', {}, 'background').catch(() => {
|
||||
// Ignore errors as background script might not be ready
|
||||
});
|
||||
|
||||
// Set up heartbeat interval
|
||||
const heartbeatInterval = setInterval(() => {
|
||||
sendMessage('POPUP_HEARTBEAT', {}, 'background').catch(() => {
|
||||
// Ignore errors as background script might not be ready
|
||||
});
|
||||
}, 5000); // Send heartbeat every 5 seconds
|
||||
|
||||
// Cleanup: clear interval when popup closes
|
||||
return () : void => {
|
||||
clearInterval(heartbeatInterval);
|
||||
};
|
||||
}, []);
|
||||
|
||||
/**
|
||||
* Print global message if it exists.
|
||||
*/
|
||||
@@ -95,6 +130,7 @@ const App: React.FC = () => {
|
||||
</div>
|
||||
)}
|
||||
|
||||
<ClipboardCountdownBar />
|
||||
<Header
|
||||
routes={routes}
|
||||
rightButtons={headerButtons}
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
import React, { useEffect, useState, useRef } from 'react';
|
||||
import { onMessage, sendMessage } from 'webext-bridge/popup';
|
||||
|
||||
/**
|
||||
* Clipboard countdown bar component.
|
||||
*/
|
||||
export const ClipboardCountdownBar: React.FC = () => {
|
||||
const [isVisible, setIsVisible] = useState<boolean>(false);
|
||||
const animationRef = useRef<HTMLDivElement>(null);
|
||||
const currentCountdownIdRef = useRef<number>(0);
|
||||
|
||||
/**
|
||||
* Starts the countdown animation.
|
||||
*/
|
||||
const startAnimation = (remaining: number, total: number) : void => {
|
||||
// Use a small delay to ensure the component is fully rendered
|
||||
setTimeout(() => {
|
||||
if (animationRef.current) {
|
||||
// Calculate the starting percentage based on remaining time
|
||||
const percentage = (remaining / total) * 100;
|
||||
|
||||
// Reset any existing animation
|
||||
animationRef.current.style.transition = 'none';
|
||||
animationRef.current.style.width = `${percentage}%`;
|
||||
|
||||
// Force browser to flush styles
|
||||
void animationRef.current.offsetHeight;
|
||||
|
||||
// Start animation from current position to 0
|
||||
requestAnimationFrame(() => {
|
||||
if (animationRef.current) {
|
||||
animationRef.current.style.transition = `width ${remaining}s linear`;
|
||||
animationRef.current.style.width = '0%';
|
||||
}
|
||||
});
|
||||
}
|
||||
}, 10);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
// Request current countdown state on mount
|
||||
sendMessage('GET_CLIPBOARD_COUNTDOWN_STATE', {}, 'background').then((state) => {
|
||||
const countdownState = state as { remaining: number; total: number; id: number } | null;
|
||||
if (countdownState && countdownState.remaining > 0) {
|
||||
currentCountdownIdRef.current = countdownState.id;
|
||||
setIsVisible(true);
|
||||
startAnimation(countdownState.remaining, countdownState.total);
|
||||
}
|
||||
}).catch(() => {
|
||||
// No active countdown
|
||||
});
|
||||
// Listen for countdown updates from background script
|
||||
const unsubscribe = onMessage('CLIPBOARD_COUNTDOWN', ({ data }) => {
|
||||
const { remaining, total, id } = data as { remaining: number; total: number; id: number };
|
||||
setIsVisible(remaining > 0);
|
||||
|
||||
// Check if this is a new countdown (different ID)
|
||||
const isNewCountdown = id !== currentCountdownIdRef.current;
|
||||
|
||||
// Start animation when new countdown begins
|
||||
if (isNewCountdown && remaining > 0) {
|
||||
currentCountdownIdRef.current = id;
|
||||
startAnimation(remaining, total);
|
||||
}
|
||||
});
|
||||
|
||||
// Listen for clipboard cleared message
|
||||
const unsubscribeClear = onMessage('CLIPBOARD_CLEARED', () => {
|
||||
setIsVisible(false);
|
||||
currentCountdownIdRef.current = 0;
|
||||
if (animationRef.current) {
|
||||
animationRef.current.style.transition = 'none';
|
||||
animationRef.current.style.width = '0%';
|
||||
}
|
||||
});
|
||||
|
||||
// Listen for countdown cancelled message
|
||||
const unsubscribeCancel = onMessage('CLIPBOARD_COUNTDOWN_CANCELLED', () => {
|
||||
setIsVisible(false);
|
||||
currentCountdownIdRef.current = 0;
|
||||
if (animationRef.current) {
|
||||
animationRef.current.style.transition = 'none';
|
||||
animationRef.current.style.width = '0%';
|
||||
}
|
||||
});
|
||||
|
||||
return () : void => {
|
||||
// Clean up listeners
|
||||
unsubscribe();
|
||||
unsubscribeClear();
|
||||
unsubscribeCancel();
|
||||
};
|
||||
}, []);
|
||||
|
||||
if (!isVisible) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="fixed top-0 left-0 right-0 z-50 h-1 bg-gray-200 dark:bg-gray-700">
|
||||
<div
|
||||
ref={animationRef}
|
||||
className="h-full bg-orange-500"
|
||||
style={{ width: '100%', transition: 'none' }}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
@@ -21,14 +21,18 @@ const HeaderBlock: React.FC<HeaderBlockProps> = ({ credential }) => (
|
||||
<div>
|
||||
<h1 className="text-lg font-bold text-gray-900 dark:text-white">{credential.ServiceName}</h1>
|
||||
{credential.ServiceUrl && (
|
||||
<a
|
||||
href={credential.ServiceUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300 break-all"
|
||||
>
|
||||
{credential.ServiceUrl}
|
||||
</a>
|
||||
/^https?:\/\//i.test(credential.ServiceUrl) ? (
|
||||
<a
|
||||
href={credential.ServiceUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300 break-all"
|
||||
>
|
||||
{credential.ServiceUrl}
|
||||
</a>
|
||||
) : (
|
||||
<span className="break-all">{credential.ServiceUrl}</span>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import * as OTPAuth from 'otpauth';
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { sendMessage } from 'webext-bridge/popup';
|
||||
|
||||
import { useDb } from '@/entrypoints/popup/context/DbContext';
|
||||
|
||||
@@ -68,6 +69,9 @@ const TotpBlock: React.FC<TotpBlockProps> = ({ credentialId }) => {
|
||||
try {
|
||||
await navigator.clipboard.writeText(code);
|
||||
setCopiedId(id);
|
||||
|
||||
// Notify background script that clipboard was copied
|
||||
await sendMessage('CLIPBOARD_COPIED', { value: code }, 'background');
|
||||
|
||||
// Reset copied state after 2 seconds
|
||||
setTimeout(() => {
|
||||
|
||||
@@ -0,0 +1,286 @@
|
||||
import React, { useState, useEffect, useRef, useCallback, useMemo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import { useDb } from '@/entrypoints/popup/context/DbContext';
|
||||
|
||||
type EmailDomainFieldProps = {
|
||||
id: string;
|
||||
label: string;
|
||||
value: string;
|
||||
onChange: (value: string) => void;
|
||||
error?: string;
|
||||
required?: boolean;
|
||||
}
|
||||
|
||||
// Hardcoded public email domains (same as in AliasVault.Client)
|
||||
const PUBLIC_EMAIL_DOMAINS = [
|
||||
'spamok.com',
|
||||
'solarflarecorp.com',
|
||||
'spamok.nl',
|
||||
'3060.nl',
|
||||
'landmail.nl',
|
||||
'asdasd.nl',
|
||||
'spamok.de',
|
||||
'spamok.com.ua',
|
||||
'spamok.es',
|
||||
'spamok.fr',
|
||||
];
|
||||
|
||||
/**
|
||||
* Email domain field component with domain chooser functionality.
|
||||
* Allows users to select from private/public domains or enter custom email addresses.
|
||||
*/
|
||||
const EmailDomainField: React.FC<EmailDomainFieldProps> = ({
|
||||
id,
|
||||
label,
|
||||
value,
|
||||
onChange,
|
||||
error,
|
||||
required = false
|
||||
}) => {
|
||||
const { t } = useTranslation();
|
||||
const dbContext = useDb();
|
||||
const [isCustomDomain, setIsCustomDomain] = useState(false);
|
||||
const [localPart, setLocalPart] = useState('');
|
||||
const [selectedDomain, setSelectedDomain] = useState('');
|
||||
const [isPopupVisible, setIsPopupVisible] = useState(false);
|
||||
const [privateEmailDomains, setPrivateEmailDomains] = useState<string[]>([]);
|
||||
const popupRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
// Get private email domains from vault metadata
|
||||
useEffect(() => {
|
||||
/**
|
||||
* Load private email domains from vault metadata.
|
||||
*/
|
||||
const loadDomains = async (): Promise<void> => {
|
||||
const metadata = await dbContext.getVaultMetadata();
|
||||
if (metadata?.privateEmailDomains) {
|
||||
setPrivateEmailDomains(metadata.privateEmailDomains);
|
||||
}
|
||||
};
|
||||
loadDomains();
|
||||
}, [dbContext]);
|
||||
|
||||
// Check if private domains are available and valid
|
||||
const showPrivateDomains = useMemo(() => {
|
||||
return privateEmailDomains.length > 0 &&
|
||||
!(privateEmailDomains.length === 1 && (privateEmailDomains[0] === 'DISABLED.TLD' || privateEmailDomains[0] === ''));
|
||||
}, [privateEmailDomains]);
|
||||
|
||||
// Initialize state from value prop
|
||||
useEffect(() => {
|
||||
if (!value) {
|
||||
// Set default domain
|
||||
if (showPrivateDomains && privateEmailDomains[0]) {
|
||||
setSelectedDomain(privateEmailDomains[0]);
|
||||
} else if (PUBLIC_EMAIL_DOMAINS[0]) {
|
||||
setSelectedDomain(PUBLIC_EMAIL_DOMAINS[0]);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (value.includes('@')) {
|
||||
const [local, domain] = value.split('@');
|
||||
setLocalPart(local);
|
||||
setSelectedDomain(domain);
|
||||
|
||||
// Check if it's a custom domain
|
||||
const isKnownDomain = PUBLIC_EMAIL_DOMAINS.includes(domain) ||
|
||||
privateEmailDomains.includes(domain);
|
||||
setIsCustomDomain(!isKnownDomain);
|
||||
} else {
|
||||
setLocalPart(value);
|
||||
setIsCustomDomain(false);
|
||||
|
||||
// Set default domain if not already set
|
||||
if (!selectedDomain && !value.includes('@')) {
|
||||
if (showPrivateDomains && privateEmailDomains[0]) {
|
||||
setSelectedDomain(privateEmailDomains[0]);
|
||||
} else if (PUBLIC_EMAIL_DOMAINS[0]) {
|
||||
setSelectedDomain(PUBLIC_EMAIL_DOMAINS[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}, [value, privateEmailDomains, showPrivateDomains, selectedDomain]);
|
||||
|
||||
// Handle local part changes
|
||||
const handleLocalPartChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
const newLocalPart = e.target.value;
|
||||
|
||||
// Check if new value contains '@' symbol, if so, switch to custom domain mode
|
||||
if (newLocalPart.includes('@')) {
|
||||
setIsCustomDomain(true);
|
||||
onChange(newLocalPart);
|
||||
return;
|
||||
}
|
||||
|
||||
setLocalPart(newLocalPart);
|
||||
if (!isCustomDomain && selectedDomain) {
|
||||
onChange(`${newLocalPart}@${selectedDomain}`);
|
||||
} else {
|
||||
onChange(newLocalPart);
|
||||
}
|
||||
}, [isCustomDomain, selectedDomain, onChange]);
|
||||
|
||||
// Select a domain from the popup
|
||||
const selectDomain = useCallback((domain: string) => {
|
||||
setSelectedDomain(domain);
|
||||
const cleanLocalPart = localPart.includes('@') ? localPart.split('@')[0] : localPart;
|
||||
onChange(`${cleanLocalPart}@${domain}`);
|
||||
setIsCustomDomain(false);
|
||||
setIsPopupVisible(false);
|
||||
}, [localPart, onChange]);
|
||||
|
||||
// Toggle between custom domain and domain chooser
|
||||
const toggleCustomDomain = useCallback(() => {
|
||||
const newIsCustom = !isCustomDomain;
|
||||
setIsCustomDomain(newIsCustom);
|
||||
|
||||
if (!newIsCustom && !value.includes('@')) {
|
||||
// Switching to domain chooser mode, add default domain
|
||||
const defaultDomain = showPrivateDomains && privateEmailDomains[0]
|
||||
? privateEmailDomains[0]
|
||||
: PUBLIC_EMAIL_DOMAINS[0];
|
||||
onChange(`${localPart}@${defaultDomain}`);
|
||||
setSelectedDomain(defaultDomain);
|
||||
}
|
||||
}, [isCustomDomain, value, localPart, showPrivateDomains, privateEmailDomains, onChange]);
|
||||
|
||||
// Handle clicks outside the popup
|
||||
useEffect(() => {
|
||||
/**
|
||||
* Handle clicks outside the popup to close it.
|
||||
*/
|
||||
const handleClickOutside = (event: MouseEvent): void => {
|
||||
if (popupRef.current && !popupRef.current.contains(event.target as Node)) {
|
||||
setIsPopupVisible(false);
|
||||
}
|
||||
};
|
||||
|
||||
if (isPopupVisible) {
|
||||
document.addEventListener('mousedown', handleClickOutside);
|
||||
return (): void => {
|
||||
document.removeEventListener('mousedown', handleClickOutside);
|
||||
};
|
||||
}
|
||||
}, [isPopupVisible]);
|
||||
|
||||
return (
|
||||
<div className="space-y-2">
|
||||
<label htmlFor={id} className="block text-sm font-medium text-gray-700 dark:text-gray-300">
|
||||
{label}
|
||||
{required && <span className="text-red-500 ml-1">*</span>}
|
||||
</label>
|
||||
|
||||
<div className="relative w-full">
|
||||
<div className="flex w-full">
|
||||
<input
|
||||
type="text"
|
||||
id={id}
|
||||
className={`flex-1 min-w-0 px-3 py-2 border ${
|
||||
error ? 'border-red-500' : 'border-gray-300 dark:border-gray-600'
|
||||
} ${
|
||||
!isCustomDomain ? 'rounded-l-md' : 'rounded-md'
|
||||
} focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:text-white`}
|
||||
value={isCustomDomain ? value : localPart}
|
||||
onChange={handleLocalPartChange}
|
||||
placeholder={isCustomDomain ? t('credentials.enterFullEmail') : t('credentials.enterEmailPrefix')}
|
||||
/>
|
||||
|
||||
{!isCustomDomain && (
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setIsPopupVisible(!isPopupVisible)}
|
||||
className="inline-flex items-center px-2 py-2 border border-l-0 border-gray-300 dark:border-gray-600 rounded-r-md bg-gray-50 dark:bg-gray-600 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-500 cursor-pointer text-sm truncate max-w-[120px]"
|
||||
>
|
||||
<span className="text-gray-500 dark:text-gray-400">@</span>
|
||||
<span className="truncate ml-0.5">{selectedDomain}</span>
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Domain selection popup */}
|
||||
{isPopupVisible && !isCustomDomain && (
|
||||
<div
|
||||
ref={popupRef}
|
||||
className="absolute z-50 mt-2 w-full bg-white dark:bg-gray-800 rounded-lg shadow-lg border border-gray-200 dark:border-gray-700 max-h-96 overflow-y-auto"
|
||||
>
|
||||
<div className="p-4">
|
||||
{showPrivateDomains && (
|
||||
<div className="mb-4">
|
||||
<h4 className="text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2">
|
||||
{t('credentials.privateEmailTitle')} <span className="text-xs text-gray-500 dark:text-gray-400">({t('credentials.privateEmailAliasVaultServer')})</span>
|
||||
</h4>
|
||||
<p className="text-xs text-gray-500 dark:text-gray-400 mb-3">
|
||||
{t('credentials.privateEmailDescription')}
|
||||
</p>
|
||||
<div className="flex flex-wrap gap-2">
|
||||
{privateEmailDomains.map((domain) => (
|
||||
<button
|
||||
key={domain}
|
||||
type="button"
|
||||
onClick={() => selectDomain(domain)}
|
||||
className={`px-3 py-1.5 text-sm rounded-md transition-colors ${
|
||||
selectedDomain === domain
|
||||
? 'bg-primary-600 text-white hover:bg-primary-700'
|
||||
: 'bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-600 border border-gray-300 dark:border-gray-600'
|
||||
}`}
|
||||
>
|
||||
{domain}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className={showPrivateDomains ? 'border-t border-gray-200 dark:border-gray-600 pt-4' : ''}>
|
||||
<h4 className="text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2">
|
||||
{t('credentials.publicEmailTitle')}
|
||||
</h4>
|
||||
<p className="text-xs text-gray-500 dark:text-gray-400 mb-3">
|
||||
{t('credentials.publicEmailDescription')}
|
||||
</p>
|
||||
<div className="flex flex-wrap gap-2">
|
||||
{PUBLIC_EMAIL_DOMAINS.map((domain) => (
|
||||
<button
|
||||
key={domain}
|
||||
type="button"
|
||||
onClick={() => selectDomain(domain)}
|
||||
className={`px-3 py-1.5 text-sm rounded-md transition-colors ${
|
||||
selectedDomain === domain
|
||||
? 'bg-primary-600 text-white hover:bg-primary-700'
|
||||
: 'bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-600 border border-gray-300 dark:border-gray-600'
|
||||
}`}
|
||||
>
|
||||
{domain}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Toggle custom domain button */}
|
||||
<div>
|
||||
<button
|
||||
type="button"
|
||||
onClick={toggleCustomDomain}
|
||||
className="text-sm text-primary-600 dark:text-primary-400 hover:text-primary-700 dark:hover:text-primary-300"
|
||||
>
|
||||
{isCustomDomain
|
||||
? t('credentials.useDomainChooser')
|
||||
: t('credentials.enterCustomDomain')}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{/* Error message */}
|
||||
{error && (
|
||||
<p className="text-sm text-red-500 mt-1">{error}</p>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default EmailDomainField;
|
||||
@@ -1,5 +1,6 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { sendMessage } from 'webext-bridge/popup';
|
||||
|
||||
import { ClipboardCopyService } from '@/entrypoints/popup/utils/ClipboardCopyService';
|
||||
|
||||
@@ -81,6 +82,9 @@ export const FormInputCopyToClipboard: React.FC<FormInputCopyToClipboardProps> =
|
||||
try {
|
||||
await navigator.clipboard.writeText(value);
|
||||
clipboardService.setCopied(id);
|
||||
|
||||
// Notify background script that clipboard was copied
|
||||
await sendMessage('CLIPBOARD_COPIED', { value }, 'background');
|
||||
|
||||
// Reset copied state after 2 seconds
|
||||
setTimeout(() => {
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
import React, { useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
type HelpModalProps = {
|
||||
titleKey: string;
|
||||
contentKey: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reusable help modal component with a question mark icon button.
|
||||
* Shows a modal popup with help information when clicked.
|
||||
*/
|
||||
const HelpModal: React.FC<HelpModalProps> = ({ titleKey, contentKey, className = '' }) => {
|
||||
const { t } = useTranslation();
|
||||
const [showModal, setShowModal] = useState(false);
|
||||
|
||||
return (
|
||||
<>
|
||||
<button
|
||||
onClick={() => setShowModal(true)}
|
||||
className={`${className}`}
|
||||
type="button"
|
||||
aria-label="Help"
|
||||
>
|
||||
<svg
|
||||
className="w-4 h-4 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 cursor-help"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth={2}
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
||||
/>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
{showModal && (
|
||||
<div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4">
|
||||
<div className="bg-white dark:bg-gray-800 rounded-lg p-6 max-w-sm w-full">
|
||||
<div className="flex items-center justify-between mb-4">
|
||||
<h3 className="text-lg font-semibold text-gray-900 dark:text-white">
|
||||
{t(titleKey)}
|
||||
</h3>
|
||||
<button
|
||||
onClick={() => setShowModal(false)}
|
||||
className="text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"
|
||||
aria-label={t('common.close')}
|
||||
>
|
||||
<svg
|
||||
className="w-5 h-5"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth={2}
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
d="M6 18L18 6M6 6l12 12"
|
||||
/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<p className="text-sm text-gray-600 dark:text-gray-300">
|
||||
{t(contentKey)}
|
||||
</p>
|
||||
<button
|
||||
onClick={() => setShowModal(false)}
|
||||
className="mt-4 w-full px-4 py-2 bg-primary-600 hover:bg-primary-700 text-white rounded-md transition-colors"
|
||||
>
|
||||
{t('common.close')}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default HelpModal;
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { createContext, useContext, useState, useEffect, useCallback, useMemo } from 'react';
|
||||
import { sendMessage } from 'webext-bridge/popup';
|
||||
|
||||
import type { VaultMetadata } from '@/utils/dist/shared/models/metadata';
|
||||
import type { EncryptionKeyDerivationParams, VaultMetadata } from '@/utils/dist/shared/models/metadata';
|
||||
import type { VaultResponse } from '@/utils/dist/shared/models/webapi';
|
||||
import EncryptionUtility from '@/utils/EncryptionUtility';
|
||||
import SqliteClient from '@/utils/SqliteClient';
|
||||
@@ -13,6 +13,8 @@ type DbContextType = {
|
||||
dbInitialized: boolean;
|
||||
dbAvailable: boolean;
|
||||
initializeDatabase: (vaultResponse: VaultResponse, derivedKey: string) => Promise<SqliteClient>;
|
||||
storeEncryptionKey: (derivedKey: string) => Promise<void>;
|
||||
storeEncryptionKeyDerivationParams: (params: EncryptionKeyDerivationParams) => Promise<void>;
|
||||
clearDatabase: () => void;
|
||||
getVaultMetadata: () => Promise<VaultMetadata | null>;
|
||||
setCurrentVaultRevisionNumber: (revisionNumber: number) => Promise<void>;
|
||||
@@ -70,7 +72,6 @@ export const DbProvider: React.FC<{ children: React.ReactNode }> = ({ children }
|
||||
*/
|
||||
const request: StoreVaultRequest = {
|
||||
vaultBlob: vaultResponse.vault.blob,
|
||||
derivedKey: derivedKey,
|
||||
publicEmailDomainList: vaultResponse.vault.publicEmailDomainList,
|
||||
privateEmailDomainList: vaultResponse.vault.privateEmailDomainList,
|
||||
vaultRevisionNumber: vaultResponse.vault.currentRevisionNumber,
|
||||
@@ -145,6 +146,20 @@ export const DbProvider: React.FC<{ children: React.ReactNode }> = ({ children }
|
||||
}
|
||||
}, [dbInitialized, checkStoredVault]);
|
||||
|
||||
/**
|
||||
* Store encryption key in background worker.
|
||||
*/
|
||||
const storeEncryptionKey = useCallback(async (encryptionKey: string) : Promise<void> => {
|
||||
await sendMessage('STORE_ENCRYPTION_KEY', encryptionKey, 'background');
|
||||
}, []);
|
||||
|
||||
/**
|
||||
* Store encryption key derivation params in background worker.
|
||||
*/
|
||||
const storeEncryptionKeyDerivationParams = useCallback(async (params: EncryptionKeyDerivationParams) : Promise<void> => {
|
||||
await sendMessage('STORE_ENCRYPTION_KEY_DERIVATION_PARAMS', params, 'background');
|
||||
}, []);
|
||||
|
||||
/**
|
||||
* Clear database and remove from background worker, called when logging out.
|
||||
*/
|
||||
@@ -160,11 +175,13 @@ export const DbProvider: React.FC<{ children: React.ReactNode }> = ({ children }
|
||||
dbInitialized,
|
||||
dbAvailable,
|
||||
initializeDatabase,
|
||||
storeEncryptionKey,
|
||||
storeEncryptionKeyDerivationParams,
|
||||
clearDatabase,
|
||||
getVaultMetadata,
|
||||
setCurrentVaultRevisionNumber,
|
||||
hasPendingMigrations,
|
||||
}), [sqliteClient, dbInitialized, dbAvailable, initializeDatabase, clearDatabase, getVaultMetadata, setCurrentVaultRevisionNumber, hasPendingMigrations]);
|
||||
}), [sqliteClient, dbInitialized, dbAvailable, initializeDatabase, storeEncryptionKey, storeEncryptionKeyDerivationParams, clearDatabase, getVaultMetadata, setCurrentVaultRevisionNumber, hasPendingMigrations]);
|
||||
|
||||
return (
|
||||
<DbContext.Provider value={contextValue}>
|
||||
|
||||
@@ -47,13 +47,13 @@ export function useVaultMutate() : {
|
||||
// Upload the updated vault to the server.
|
||||
const base64Vault = dbContext.sqliteClient!.exportToBase64();
|
||||
|
||||
// Get derived key from background worker
|
||||
const derivedKey = await sendMessage('GET_DERIVED_KEY', {}, 'background') as string;
|
||||
// Get encryption key from background worker
|
||||
const encryptionKey = await sendMessage('GET_ENCRYPTION_KEY', {}, 'background') as string;
|
||||
|
||||
// Encrypt the vault.
|
||||
const encryptedVaultBlob = await EncryptionUtility.symmetricEncrypt(
|
||||
base64Vault,
|
||||
derivedKey
|
||||
encryptionKey
|
||||
);
|
||||
|
||||
const request: UploadVaultRequest = {
|
||||
|
||||
@@ -6,6 +6,7 @@ import { useAuth } from '@/entrypoints/popup/context/AuthContext';
|
||||
import { useDb } from '@/entrypoints/popup/context/DbContext';
|
||||
import { useWebApi } from '@/entrypoints/popup/context/WebApiContext';
|
||||
|
||||
import type { EncryptionKeyDerivationParams } from '@/utils/dist/shared/models/metadata';
|
||||
import type { VaultResponse } from '@/utils/dist/shared/models/webapi';
|
||||
|
||||
/**
|
||||
@@ -81,6 +82,19 @@ export const useVaultSync = () : {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check if the SRP salt has changed compared to locally stored encryption key derivation params
|
||||
const storedEncryptionParams = await sendMessage('GET_ENCRYPTION_KEY_DERIVATION_PARAMS', {}, 'background') as EncryptionKeyDerivationParams | null;
|
||||
if (storedEncryptionParams && statusResponse.srpSalt && statusResponse.srpSalt !== storedEncryptionParams.salt) {
|
||||
/**
|
||||
* Server SRP salt has changed compared to locally stored value, which means the user has changed
|
||||
* their password since the last time they logged in. This means that the local encryption key is no
|
||||
* longer valid and the user needs to re-authenticate. We trigger a logout but do not revoke tokens
|
||||
* as these were already revoked by the server upon password change.
|
||||
*/
|
||||
await webApi.logout(t('common.errors.passwordChanged'));
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
* If we get here, it means we have a valid connection to the server.
|
||||
* TODO: browser extension does not support offline mode yet.
|
||||
@@ -114,9 +128,9 @@ export const useVaultSync = () : {
|
||||
}
|
||||
|
||||
try {
|
||||
// Get derived key from background worker
|
||||
const passwordHashBase64 = await sendMessage('GET_DERIVED_KEY', {}, 'background') as string;
|
||||
const sqliteClient = await dbContext.initializeDatabase(vaultResponseJson as VaultResponse, passwordHashBase64);
|
||||
// Get encryption key from background worker
|
||||
const encryptionKey = await sendMessage('GET_ENCRYPTION_KEY', {}, 'background') as string;
|
||||
const sqliteClient = await dbContext.initializeDatabase(vaultResponseJson as VaultResponse, encryptionKey);
|
||||
|
||||
// Check if the current vault version is known and up to date, if not known trigger an exception, if not up to date redirect to the upgrade page.
|
||||
if (await sqliteClient.hasPendingMigrations()) {
|
||||
|
||||
@@ -9,6 +9,7 @@ import { sendMessage } from 'webext-bridge/popup';
|
||||
import * as Yup from 'yup';
|
||||
|
||||
import AttachmentUploader from '@/entrypoints/popup/components/CredentialDetails/AttachmentUploader';
|
||||
import EmailDomainField from '@/entrypoints/popup/components/EmailDomainField';
|
||||
import { FormInput } from '@/entrypoints/popup/components/FormInput';
|
||||
import HeaderButton from '@/entrypoints/popup/components/HeaderButton';
|
||||
import { HeaderIconType } from '@/entrypoints/popup/components/Icons/HeaderIcons';
|
||||
@@ -52,7 +53,7 @@ const CredentialAddEdit: React.FC = () => {
|
||||
const credentialSchema = useMemo(() => Yup.object().shape({
|
||||
Id: Yup.string(),
|
||||
ServiceName: Yup.string().required(t('credentials.validation.serviceNameRequired')),
|
||||
ServiceUrl: Yup.string().url(t('credentials.validation.invalidUrl')).nullable().optional(),
|
||||
ServiceUrl: Yup.string().nullable().optional(),
|
||||
Alias: Yup.object().shape({
|
||||
FirstName: Yup.string().nullable().optional(),
|
||||
LastName: Yup.string().nullable().optional(),
|
||||
@@ -98,7 +99,7 @@ const CredentialAddEdit: React.FC = () => {
|
||||
Username: "",
|
||||
Password: "",
|
||||
ServiceName: "",
|
||||
ServiceUrl: "",
|
||||
ServiceUrl: "https://",
|
||||
Notes: "",
|
||||
Alias: {
|
||||
FirstName: "",
|
||||
@@ -401,6 +402,11 @@ const CredentialAddEdit: React.FC = () => {
|
||||
birthdate = IdentityHelperUtils.normalizeBirthDateForDb(birthdate);
|
||||
}
|
||||
|
||||
// Clean up empty protocol-only URLs
|
||||
if (data.ServiceUrl === 'http://' || data.ServiceUrl === 'https://') {
|
||||
data.ServiceUrl = '';
|
||||
}
|
||||
|
||||
// If we're creating a new credential and mode is random, generate random values here
|
||||
if (!isEditMode && mode === 'random') {
|
||||
// Generate random values now and then read them from the form fields to manually assign to the credentialToSave object
|
||||
@@ -413,6 +419,9 @@ const CredentialAddEdit: React.FC = () => {
|
||||
data.Alias.BirthDate = birthdate;
|
||||
data.Alias.Gender = watch('Alias.Gender');
|
||||
data.Alias.Email = watch('Alias.Email');
|
||||
// Clean up ServiceUrl for random mode too
|
||||
const serviceUrl = watch('ServiceUrl');
|
||||
data.ServiceUrl = (serviceUrl === 'http://' || serviceUrl === 'https://') ? '' : serviceUrl;
|
||||
}
|
||||
|
||||
// Extract favicon from service URL if the credential has one
|
||||
@@ -585,11 +594,11 @@ const CredentialAddEdit: React.FC = () => {
|
||||
<div className="bg-white dark:bg-gray-800 p-4 rounded-lg border border-gray-200 dark:border-gray-700">
|
||||
<h2 className="text-lg font-semibold mb-4 text-gray-900 dark:text-white">{t('credentials.loginCredentials')}</h2>
|
||||
<div className="space-y-4">
|
||||
<FormInput
|
||||
<EmailDomainField
|
||||
id="email"
|
||||
label={t('common.email')}
|
||||
value={watch('Alias.Email') ?? ''}
|
||||
onChange={(value) => setValue('Alias.Email', value)}
|
||||
onChange={(value: string) => setValue('Alias.Email', value)}
|
||||
error={errors.Alias?.Email?.message}
|
||||
/>
|
||||
<UsernameField
|
||||
|
||||
@@ -172,14 +172,16 @@ const CredentialsList: React.FC = () => {
|
||||
</div>
|
||||
|
||||
{credentials.length > 0 ? (
|
||||
<input
|
||||
type="text"
|
||||
placeholder={t('credentials.searchPlaceholder')}
|
||||
value={searchTerm}
|
||||
onChange={(e) => setSearchTerm(e.target.value)}
|
||||
autoFocus
|
||||
className="w-full p-2 mb-4 border dark:border-gray-600 rounded bg-white dark:bg-gray-800 text-gray-900 dark:text-white focus:ring-blue-500 focus:border-blue-500"
|
||||
/>
|
||||
<div className="mb-4">
|
||||
<input
|
||||
type="text"
|
||||
value={searchTerm}
|
||||
onChange={(e) => setSearchTerm(e.target.value)}
|
||||
placeholder={`${t('content.searchVault')}`}
|
||||
autoFocus
|
||||
className="w-full p-2 border dark:border-gray-600 rounded bg-white dark:bg-gray-800 text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:ring-blue-500 focus:border-blue-500"
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
|
||||
@@ -50,6 +50,66 @@ const Login: React.FC = () => {
|
||||
const webApi = useWebApi();
|
||||
const srpUtil = new SrpUtility(webApi);
|
||||
|
||||
/**
|
||||
* Handle successful authentication by storing tokens and initializing the database
|
||||
*/
|
||||
const handleSuccessfulAuth = async (
|
||||
username: string,
|
||||
token: string,
|
||||
refreshToken: string,
|
||||
passwordHashBase64: string,
|
||||
loginResponse: LoginResponse
|
||||
) : Promise<void> => {
|
||||
// Try to get latest vault manually providing auth token.
|
||||
const vaultResponseJson = await webApi.authFetch<VaultResponse>('Vault', { method: 'GET', headers: {
|
||||
'Authorization': `Bearer ${token}`
|
||||
} });
|
||||
|
||||
const vaultError = webApi.validateVaultResponse(vaultResponseJson, t);
|
||||
if (vaultError) {
|
||||
setError(vaultError);
|
||||
hideLoading();
|
||||
return;
|
||||
}
|
||||
|
||||
// All is good. Store auth info which is required to make requests to the web API.
|
||||
await authContext.setAuthTokens(username, token, refreshToken);
|
||||
|
||||
// Store the encryption key and derivation params separately
|
||||
await dbContext.storeEncryptionKey(passwordHashBase64);
|
||||
await dbContext.storeEncryptionKeyDerivationParams({
|
||||
salt: loginResponse.salt,
|
||||
encryptionType: loginResponse.encryptionType,
|
||||
encryptionSettings: loginResponse.encryptionSettings
|
||||
});
|
||||
|
||||
// Initialize the SQLite context with the new vault data.
|
||||
const sqliteClient = await dbContext.initializeDatabase(vaultResponseJson, passwordHashBase64);
|
||||
|
||||
// Set logged in status to true which refreshes the app.
|
||||
await authContext.login();
|
||||
|
||||
// If there are pending migrations, redirect to the upgrade page.
|
||||
try {
|
||||
if (await sqliteClient.hasPendingMigrations()) {
|
||||
navigate('/upgrade', { replace: true });
|
||||
hideLoading();
|
||||
return;
|
||||
}
|
||||
} catch (err) {
|
||||
await authContext.logout();
|
||||
setError(err instanceof Error ? err.message : t('auth.errors.migrationError'));
|
||||
hideLoading();
|
||||
return;
|
||||
}
|
||||
|
||||
// Navigate to reinitialize page which will take care of the proper redirect.
|
||||
navigate('/reinitialize', { replace: true });
|
||||
|
||||
// Show app.
|
||||
hideLoading();
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
/**
|
||||
* Load the client URL from the storage.
|
||||
@@ -143,46 +203,14 @@ const Login: React.FC = () => {
|
||||
throw new Error(t('auth.errors.noToken'));
|
||||
}
|
||||
|
||||
// Try to get latest vault manually providing auth token.
|
||||
const vaultResponseJson = await webApi.authFetch<VaultResponse>('Vault', { method: 'GET', headers: {
|
||||
'Authorization': `Bearer ${validationResponse.token.token}`
|
||||
} });
|
||||
|
||||
const vaultError = webApi.validateVaultResponse(vaultResponseJson, t);
|
||||
if (vaultError) {
|
||||
setError(vaultError);
|
||||
hideLoading();
|
||||
return;
|
||||
}
|
||||
|
||||
// All is good. Store auth info which is required to make requests to the web API.
|
||||
await authContext.setAuthTokens(ConversionUtility.normalizeUsername(credentials.username), validationResponse.token.token, validationResponse.token.refreshToken);
|
||||
|
||||
// Initialize the SQLite context with the new vault data.
|
||||
const sqliteClient = await dbContext.initializeDatabase(vaultResponseJson, passwordHashBase64);
|
||||
|
||||
// Set logged in status to true which refreshes the app.
|
||||
await authContext.login();
|
||||
|
||||
// If there are pending migrations, redirect to the upgrade page.
|
||||
try {
|
||||
if (await sqliteClient.hasPendingMigrations()) {
|
||||
navigate('/upgrade', { replace: true });
|
||||
hideLoading();
|
||||
return;
|
||||
}
|
||||
} catch (err) {
|
||||
await authContext.logout();
|
||||
setError(err instanceof Error ? err.message : t('auth.errors.migrationError'));
|
||||
hideLoading();
|
||||
return;
|
||||
}
|
||||
|
||||
// Navigate to reinitialize page which will take care of the proper redirect.
|
||||
navigate('/reinitialize', { replace: true });
|
||||
|
||||
// Show app.
|
||||
hideLoading();
|
||||
// Handle successful authentication
|
||||
await handleSuccessfulAuth(
|
||||
ConversionUtility.normalizeUsername(credentials.username),
|
||||
validationResponse.token.token,
|
||||
validationResponse.token.refreshToken,
|
||||
passwordHashBase64,
|
||||
loginResponse
|
||||
);
|
||||
} catch (err) {
|
||||
// Show API authentication errors as-is.
|
||||
if (err instanceof ApiAuthError) {
|
||||
@@ -227,43 +255,14 @@ const Login: React.FC = () => {
|
||||
throw new Error(t('auth.errors.noToken'));
|
||||
}
|
||||
|
||||
// Try to get latest vault manually providing auth token.
|
||||
const vaultResponseJson = await webApi.authFetch<VaultResponse>('Vault', { method: 'GET', headers: {
|
||||
'Authorization': `Bearer ${validationResponse.token.token}`
|
||||
} });
|
||||
|
||||
const vaultError = webApi.validateVaultResponse(vaultResponseJson, t);
|
||||
if (vaultError) {
|
||||
setError(vaultError);
|
||||
hideLoading();
|
||||
return;
|
||||
}
|
||||
|
||||
// All is good. Store auth info which is required to make requests to the web API.
|
||||
await authContext.setAuthTokens(ConversionUtility.normalizeUsername(credentials.username), validationResponse.token.token, validationResponse.token.refreshToken);
|
||||
|
||||
// Initialize the SQLite context with the new vault data.
|
||||
const sqliteClient = await dbContext.initializeDatabase(vaultResponseJson, passwordHashBase64);
|
||||
|
||||
// Set logged in status to true which refreshes the app.
|
||||
await authContext.login();
|
||||
|
||||
// If there are pending migrations, redirect to the upgrade page.
|
||||
try {
|
||||
if (await sqliteClient.hasPendingMigrations()) {
|
||||
navigate('/upgrade', { replace: true });
|
||||
hideLoading();
|
||||
return;
|
||||
}
|
||||
} catch (err) {
|
||||
await authContext.logout();
|
||||
setError(err instanceof Error ? err.message : t('auth.errors.migrationError'));
|
||||
hideLoading();
|
||||
return;
|
||||
}
|
||||
|
||||
// Navigate to reinitialize page which will take care of the proper redirect.
|
||||
navigate('/reinitialize', { replace: true });
|
||||
// Handle successful authentication
|
||||
await handleSuccessfulAuth(
|
||||
ConversionUtility.normalizeUsername(credentials.username),
|
||||
validationResponse.token.token,
|
||||
validationResponse.token.refreshToken,
|
||||
passwordHashBase64,
|
||||
loginResponse
|
||||
);
|
||||
|
||||
// Reset 2FA state and login response as it's no longer needed
|
||||
setTwoFactorRequired(false);
|
||||
@@ -271,7 +270,6 @@ const Login: React.FC = () => {
|
||||
setPasswordHashString(null);
|
||||
setPasswordHashBase64(null);
|
||||
setLoginResponse(null);
|
||||
hideLoading();
|
||||
} catch (err) {
|
||||
// Show API authentication errors as-is.
|
||||
console.error('2FA error:', err);
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import React, { useEffect, useState, useCallback } from 'react';
|
||||
import React, { useEffect, useCallback } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { sendMessage } from 'webext-bridge/popup';
|
||||
|
||||
import HeaderButton from '@/entrypoints/popup/components/HeaderButton';
|
||||
import { HeaderIconType } from '@/entrypoints/popup/components/Icons/HeaderIcons';
|
||||
import LanguageSwitcher from '@/entrypoints/popup/components/LanguageSwitcher';
|
||||
import { useAuth } from '@/entrypoints/popup/context/AuthContext';
|
||||
import { useHeaderButtons } from '@/entrypoints/popup/context/HeaderButtonsContext';
|
||||
import { useLoading } from '@/entrypoints/popup/context/LoadingContext';
|
||||
@@ -14,21 +12,8 @@ import { useApiUrl } from '@/entrypoints/popup/utils/ApiUrlUtility';
|
||||
import { PopoutUtility } from '@/entrypoints/popup/utils/PopoutUtility';
|
||||
|
||||
import { AppInfo } from '@/utils/AppInfo';
|
||||
import { DISABLED_SITES_KEY, GLOBAL_AUTOFILL_POPUP_ENABLED_KEY, GLOBAL_CONTEXT_MENU_ENABLED_KEY, TEMPORARY_DISABLED_SITES_KEY } from '@/utils/Constants';
|
||||
|
||||
import { storage, browser } from "#imports";
|
||||
|
||||
/**
|
||||
* Popup settings type.
|
||||
*/
|
||||
type PopupSettings = {
|
||||
disabledUrls: string[];
|
||||
temporaryDisabledUrls: Record<string, number>;
|
||||
currentUrl: string;
|
||||
isEnabled: boolean;
|
||||
isGloballyEnabled: boolean;
|
||||
isContextMenuEnabled: boolean;
|
||||
}
|
||||
import { browser } from "#imports";
|
||||
|
||||
/**
|
||||
* Settings page component.
|
||||
@@ -41,32 +26,15 @@ const Settings: React.FC = () => {
|
||||
const { setIsInitialLoading } = useLoading();
|
||||
const { loadApiUrl, getDisplayUrl } = useApiUrl();
|
||||
const navigate = useNavigate();
|
||||
const [settings, setSettings] = useState<PopupSettings>({
|
||||
disabledUrls: [],
|
||||
temporaryDisabledUrls: {},
|
||||
currentUrl: '',
|
||||
isEnabled: true,
|
||||
isGloballyEnabled: true,
|
||||
isContextMenuEnabled: true
|
||||
});
|
||||
|
||||
/**
|
||||
* Get current tab in browser.
|
||||
*/
|
||||
const getCurrentTab = async (): Promise<browser.Tabs.Tab> => {
|
||||
const queryOptions = { active: true, currentWindow: true };
|
||||
const [tab] = await browser.tabs.query(queryOptions);
|
||||
return tab;
|
||||
};
|
||||
|
||||
/**
|
||||
* Open the client tab.
|
||||
*/
|
||||
const openClientTab = async () : Promise<void> => {
|
||||
const settingClientUrl = await storage.getItem('local:clientUrl') as string;
|
||||
const settingClientUrl = await browser.storage.local.get('clientUrl');
|
||||
let clientUrl = AppInfo.DEFAULT_CLIENT_URL;
|
||||
if (settingClientUrl && settingClientUrl.length > 0) {
|
||||
clientUrl = settingClientUrl;
|
||||
if (settingClientUrl?.clientUrl && settingClientUrl.clientUrl.length > 0) {
|
||||
clientUrl = settingClientUrl.clientUrl;
|
||||
}
|
||||
|
||||
window.open(clientUrl, '_blank');
|
||||
@@ -101,36 +69,8 @@ const Settings: React.FC = () => {
|
||||
* Load settings.
|
||||
*/
|
||||
const loadSettings = useCallback(async () : Promise<void> => {
|
||||
const tab = await getCurrentTab();
|
||||
const currentUrl = new URL(tab.url ?? '').hostname;
|
||||
|
||||
// Load settings local storage.
|
||||
const disabledUrls = await storage.getItem(DISABLED_SITES_KEY) as string[] ?? [];
|
||||
const temporaryDisabledUrls = await storage.getItem(TEMPORARY_DISABLED_SITES_KEY) as Record<string, number> ?? {};
|
||||
const isGloballyEnabled = await storage.getItem(GLOBAL_AUTOFILL_POPUP_ENABLED_KEY) !== false; // Default to true if not set
|
||||
const isContextMenuEnabled = await storage.getItem(GLOBAL_CONTEXT_MENU_ENABLED_KEY) !== false; // Default to true if not set
|
||||
|
||||
// Clean up expired temporary disables
|
||||
const now = Date.now();
|
||||
const cleanedTemporaryDisabledUrls = Object.fromEntries(
|
||||
Object.entries(temporaryDisabledUrls).filter(([_, expiry]) => expiry > now)
|
||||
);
|
||||
|
||||
if (Object.keys(cleanedTemporaryDisabledUrls).length !== Object.keys(temporaryDisabledUrls).length) {
|
||||
await storage.setItem(TEMPORARY_DISABLED_SITES_KEY, cleanedTemporaryDisabledUrls);
|
||||
}
|
||||
|
||||
// Load API URL
|
||||
await loadApiUrl();
|
||||
|
||||
setSettings({
|
||||
disabledUrls,
|
||||
temporaryDisabledUrls: cleanedTemporaryDisabledUrls,
|
||||
currentUrl,
|
||||
isEnabled: !disabledUrls.includes(currentUrl) && !(currentUrl in cleanedTemporaryDisabledUrls),
|
||||
isGloballyEnabled,
|
||||
isContextMenuEnabled
|
||||
});
|
||||
setIsInitialLoading(false);
|
||||
}, [setIsInitialLoading, loadApiUrl]);
|
||||
|
||||
@@ -138,95 +78,12 @@ const Settings: React.FC = () => {
|
||||
loadSettings();
|
||||
}, [loadSettings]);
|
||||
|
||||
/**
|
||||
* Toggle current site.
|
||||
*/
|
||||
const toggleCurrentSite = async () : Promise<void> => {
|
||||
const { currentUrl, disabledUrls, temporaryDisabledUrls, isEnabled } = settings;
|
||||
|
||||
let newDisabledUrls = [...disabledUrls];
|
||||
let newTemporaryDisabledUrls = { ...temporaryDisabledUrls };
|
||||
|
||||
if (isEnabled) {
|
||||
// When disabling, add to permanent disabled list
|
||||
if (!newDisabledUrls.includes(currentUrl)) {
|
||||
newDisabledUrls.push(currentUrl);
|
||||
}
|
||||
// Also remove from temporary disabled list if present
|
||||
delete newTemporaryDisabledUrls[currentUrl];
|
||||
} else {
|
||||
// When enabling, remove from both permanent and temporary disabled lists
|
||||
newDisabledUrls = newDisabledUrls.filter(url => url !== currentUrl);
|
||||
delete newTemporaryDisabledUrls[currentUrl];
|
||||
}
|
||||
|
||||
await storage.setItem(DISABLED_SITES_KEY, newDisabledUrls);
|
||||
await storage.setItem(TEMPORARY_DISABLED_SITES_KEY, newTemporaryDisabledUrls);
|
||||
|
||||
setSettings(prev => ({
|
||||
...prev,
|
||||
disabledUrls: newDisabledUrls,
|
||||
temporaryDisabledUrls: newTemporaryDisabledUrls,
|
||||
isEnabled: !isEnabled
|
||||
}));
|
||||
};
|
||||
|
||||
/**
|
||||
* Reset settings.
|
||||
*/
|
||||
const resetSettings = async () : Promise<void> => {
|
||||
await storage.setItem(DISABLED_SITES_KEY, []);
|
||||
await storage.setItem(TEMPORARY_DISABLED_SITES_KEY, {});
|
||||
|
||||
setSettings(prev => ({
|
||||
...prev,
|
||||
disabledUrls: [],
|
||||
temporaryDisabledUrls: {},
|
||||
isEnabled: true
|
||||
}));
|
||||
};
|
||||
|
||||
/**
|
||||
* Toggle global popup.
|
||||
*/
|
||||
const toggleGlobalPopup = async () : Promise<void> => {
|
||||
const newGloballyEnabled = !settings.isGloballyEnabled;
|
||||
|
||||
await storage.setItem(GLOBAL_AUTOFILL_POPUP_ENABLED_KEY, newGloballyEnabled);
|
||||
|
||||
setSettings(prev => ({
|
||||
...prev,
|
||||
isGloballyEnabled: newGloballyEnabled
|
||||
}));
|
||||
};
|
||||
|
||||
/**
|
||||
* Toggle context menu.
|
||||
*/
|
||||
const toggleContextMenu = async () : Promise<void> => {
|
||||
const newContextMenuEnabled = !settings.isContextMenuEnabled;
|
||||
|
||||
await storage.setItem(GLOBAL_CONTEXT_MENU_ENABLED_KEY, newContextMenuEnabled);
|
||||
await sendMessage('TOGGLE_CONTEXT_MENU', { enabled: newContextMenuEnabled }, 'background');
|
||||
|
||||
setSettings(prev => ({
|
||||
...prev,
|
||||
isContextMenuEnabled: newContextMenuEnabled
|
||||
}));
|
||||
};
|
||||
|
||||
/**
|
||||
* Set theme preference.
|
||||
*/
|
||||
const setThemePreference = async (newTheme: 'system' | 'light' | 'dark') : Promise<void> => {
|
||||
// Use the ThemeContext to apply the theme
|
||||
setTheme(newTheme);
|
||||
|
||||
// Update local state
|
||||
setSettings(prev => ({
|
||||
...prev,
|
||||
theme: newTheme
|
||||
}));
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -255,6 +112,41 @@ const Settings: React.FC = () => {
|
||||
navigate('/logout', { replace: true });
|
||||
};
|
||||
|
||||
/**
|
||||
* Navigate to autofill settings.
|
||||
*/
|
||||
const navigateToAutofillSettings = () : void => {
|
||||
navigate('/settings/autofill');
|
||||
};
|
||||
|
||||
/**
|
||||
* Navigate to clipboard settings.
|
||||
*/
|
||||
const navigateToClipboardSettings = () : void => {
|
||||
navigate('/settings/clipboard');
|
||||
};
|
||||
|
||||
/**
|
||||
* Navigate to language settings.
|
||||
*/
|
||||
const navigateToLanguageSettings = () : void => {
|
||||
navigate('/settings/language');
|
||||
};
|
||||
|
||||
/**
|
||||
* Navigate to auto-lock settings.
|
||||
*/
|
||||
const navigateToAutoLockSettings = () : void => {
|
||||
navigate('/settings/auto-lock');
|
||||
};
|
||||
|
||||
/**
|
||||
* Navigate to context menu settings.
|
||||
*/
|
||||
const navigateToContextMenuSettings = () : void => {
|
||||
navigate('/settings/context-menu');
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<div className="flex justify-between items-center mb-4">
|
||||
@@ -285,117 +177,202 @@ const Settings: React.FC = () => {
|
||||
</div>
|
||||
<button
|
||||
onClick={handleLogout}
|
||||
className="px-4 py-2 text-sm font-medium text-red-600 hover:text-red-700 dark:text-red-400 dark:hover:text-red-300"
|
||||
title={t('settings.logout')}
|
||||
className="p-2 bg-red-100 hover:bg-red-200 dark:bg-red-900/30 dark:hover:bg-red-900/50 text-red-600 hover:text-red-700 dark:text-red-400 dark:hover:text-red-300 rounded-md transition-colors"
|
||||
>
|
||||
{t('settings.logout')}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Global Settings Section */}
|
||||
<section>
|
||||
<h3 className="text-md font-semibold text-gray-900 dark:text-white mb-3">{t('settings.globalSettings')}</h3>
|
||||
<div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">
|
||||
<div className="p-4 space-y-4">
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<p className="text-sm font-medium text-gray-900 dark:text-white">{t('settings.autofillPopup')}</p>
|
||||
<p className={`text-sm mt-1 ${settings.isGloballyEnabled ? 'text-gray-600 dark:text-gray-400' : 'text-red-600 dark:text-red-400'}`}>
|
||||
{settings.isGloballyEnabled ? t('settings.activeOnAllSites') : t('settings.disabledOnAllSites')}
|
||||
</p>
|
||||
</div>
|
||||
<button
|
||||
onClick={toggleGlobalPopup}
|
||||
className={`px-4 py-2 rounded-md transition-colors ${
|
||||
settings.isGloballyEnabled
|
||||
? 'bg-green-500 hover:bg-green-600 text-white'
|
||||
: 'bg-red-500 hover:bg-red-600 text-white'
|
||||
}`}
|
||||
>
|
||||
{settings.isGloballyEnabled ? t('settings.enabled') : t('settings.disabled')}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<p className="text-sm font-medium text-gray-900 dark:text-white">{t('settings.rightClickContextMenu')}</p>
|
||||
<p className={`text-sm mt-1 ${settings.isContextMenuEnabled ? 'text-gray-600 dark:text-gray-400' : 'text-red-600 dark:text-red-400'}`}>
|
||||
{settings.isContextMenuEnabled ? t('settings.enabled') : t('settings.disabled')}
|
||||
</p>
|
||||
</div>
|
||||
<button
|
||||
onClick={toggleContextMenu}
|
||||
className={`px-4 py-2 rounded-md transition-colors ${
|
||||
settings.isContextMenuEnabled
|
||||
? 'bg-green-500 hover:bg-green-600 text-white'
|
||||
: 'bg-red-500 hover:bg-red-600 text-white'
|
||||
}`}
|
||||
>
|
||||
{settings.isContextMenuEnabled ? t('settings.enabled') : t('settings.disabled')}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Site-Specific Settings Section */}
|
||||
{settings.isGloballyEnabled && (
|
||||
<section>
|
||||
<h3 className="text-md font-semibold text-gray-900 dark:text-white mb-3">{t('settings.siteSpecificSettings')}</h3>
|
||||
<div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">
|
||||
<div className="p-4">
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<p className="text-sm font-medium text-gray-900 dark:text-white">{t('settings.autofillPopupOn')}{settings.currentUrl}</p>
|
||||
<p className={`text-sm mt-1 ${settings.isEnabled ? 'text-gray-600 dark:text-gray-400' : 'text-red-600 dark:text-red-400'}`}>
|
||||
{settings.isEnabled ? t('settings.enabledForThisSite') : t('settings.disabledForThisSite')}
|
||||
</p>
|
||||
{!settings.isEnabled && settings.temporaryDisabledUrls[settings.currentUrl] && (
|
||||
<p className="text-xs text-gray-500 dark:text-gray-400 mt-1">
|
||||
{t('settings.temporarilyDisabledUntil')}{new Date(settings.temporaryDisabledUrls[settings.currentUrl]).toLocaleTimeString()}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
{settings.isGloballyEnabled && (
|
||||
<button
|
||||
onClick={toggleCurrentSite}
|
||||
className={`px-4 py-2 ml-1 rounded-md transition-colors ${
|
||||
settings.isEnabled
|
||||
? 'bg-green-500 hover:bg-green-600 text-white'
|
||||
: 'bg-red-500 hover:bg-red-600 text-white'
|
||||
}`}
|
||||
>
|
||||
{settings.isEnabled ? t('settings.enabled') : t('settings.disabled')}
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="mt-4">
|
||||
<button
|
||||
onClick={resetSettings}
|
||||
className="w-full px-4 py-2 bg-gray-100 hover:bg-gray-200 dark:bg-gray-700 dark:hover:bg-gray-600 rounded-md text-gray-700 dark:text-gray-300 transition-colors text-sm"
|
||||
<svg
|
||||
className="w-5 h-5"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth={2}
|
||||
viewBox="0 0 24 24"
|
||||
aria-label={t('settings.logout')}
|
||||
>
|
||||
{t('settings.resetAllSiteSettings')}
|
||||
</button>
|
||||
</div>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"
|
||||
/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
)}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Settings Navigation Section */}
|
||||
<section>
|
||||
<h3 className="text-md font-semibold text-gray-900 dark:text-white mb-3">{t('settings.preferences')}</h3>
|
||||
<div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">
|
||||
<div className="divide-y divide-gray-200 dark:divide-gray-700">
|
||||
{/* Autofill Settings */}
|
||||
<button
|
||||
onClick={navigateToAutofillSettings}
|
||||
className="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors"
|
||||
>
|
||||
<div className="flex items-center">
|
||||
<svg
|
||||
className="w-5 h-5 mr-3 text-gray-600 dark:text-gray-400"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth={2}
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
|
||||
/>
|
||||
</svg>
|
||||
<span className="text-sm text-gray-900 dark:text-white">{t('settings.autofillSettings')}</span>
|
||||
</div>
|
||||
<svg
|
||||
className="w-4 h-4 text-gray-400"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth={2}
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path strokeLinecap="round" strokeLinejoin="round" d="M9 5l7 7-7 7" />
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
{/* Context Menu Settings */}
|
||||
<button
|
||||
onClick={navigateToContextMenuSettings}
|
||||
className="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors"
|
||||
>
|
||||
<div className="flex items-center">
|
||||
<svg
|
||||
className="w-5 h-5 mr-3 text-gray-600 dark:text-gray-400"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth={2}
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
d="M4 6h16M4 12h16m-7 6h7"
|
||||
/>
|
||||
</svg>
|
||||
<span className="text-sm text-gray-900 dark:text-white">{t('settings.contextMenuSettings')}</span>
|
||||
</div>
|
||||
<svg
|
||||
className="w-4 h-4 text-gray-400"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth={2}
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path strokeLinecap="round" strokeLinejoin="round" d="M9 5l7 7-7 7" />
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
{/* Auto-lock Settings */}
|
||||
<button
|
||||
onClick={navigateToAutoLockSettings}
|
||||
className="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors"
|
||||
>
|
||||
<div className="flex items-center">
|
||||
<svg
|
||||
className="w-5 h-5 mr-3 text-gray-600 dark:text-gray-400"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth={2}
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"
|
||||
/>
|
||||
</svg>
|
||||
<span className="text-sm text-gray-900 dark:text-white">{t('settings.autoLockTimeout')}</span>
|
||||
</div>
|
||||
<svg
|
||||
className="w-4 h-4 text-gray-400"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth={2}
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path strokeLinecap="round" strokeLinejoin="round" d="M9 5l7 7-7 7" />
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
{/* Clipboard Settings */}
|
||||
<button
|
||||
onClick={navigateToClipboardSettings}
|
||||
className="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors"
|
||||
>
|
||||
<div className="flex items-center">
|
||||
<svg
|
||||
className="w-5 h-5 mr-3 text-gray-600 dark:text-gray-400"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth={2}
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
d="M8 7v8a2 2 0 002 2h6M8 7V5a2 2 0 012-2h4.586a1 1 0 01.707.293l4.414 4.414a1 1 0 01.293.707V15a2 2 0 01-2 2h-2M8 7H6a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2v-2"
|
||||
/>
|
||||
</svg>
|
||||
<span className="text-sm text-gray-900 dark:text-white">{t('settings.clipboardSettings')}</span>
|
||||
</div>
|
||||
<svg
|
||||
className="w-4 h-4 text-gray-400"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth={2}
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path strokeLinecap="round" strokeLinejoin="round" d="M9 5l7 7-7 7" />
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
{/* Language Settings */}
|
||||
<button
|
||||
onClick={navigateToLanguageSettings}
|
||||
className="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors"
|
||||
>
|
||||
<div className="flex items-center">
|
||||
<svg
|
||||
className="w-5 h-5 mr-3 text-gray-600 dark:text-gray-400"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth={2}
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
d="M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129"
|
||||
/>
|
||||
</svg>
|
||||
<span className="text-sm text-gray-900 dark:text-white">{t('settings.language')}</span>
|
||||
</div>
|
||||
<svg
|
||||
className="w-4 h-4 text-gray-400"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth={2}
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path strokeLinecap="round" strokeLinejoin="round" d="M9 5l7 7-7 7" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Appearance Settings Section */}
|
||||
<section>
|
||||
<h3 className="text-md font-semibold text-gray-900 dark:text-white mb-3">{t('settings.appearance')}</h3>
|
||||
<div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">
|
||||
<div className="p-4">
|
||||
<div className="mb-4">
|
||||
<div>
|
||||
<p className="text-sm font-medium text-gray-900 dark:text-white mb-3">{t('settings.language')}</p>
|
||||
<LanguageSwitcher variant="dropdown" size="sm" />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-sm font-medium text-gray-900 dark:text-white mb-2">{t('settings.theme')}</p>
|
||||
<div className="flex flex-col space-y-2">
|
||||
@@ -408,7 +385,7 @@ const Settings: React.FC = () => {
|
||||
onChange={() => setThemePreference('system')}
|
||||
className="mr-2"
|
||||
/>
|
||||
<span className="text-sm text-gray-700 dark:text-gray-300">{t('settings.useDefault')}</span>
|
||||
<span className="text-xs text-gray-700 dark:text-gray-300">{t('settings.useDefault')}</span>
|
||||
</label>
|
||||
<label className="flex items-center">
|
||||
<input
|
||||
@@ -419,7 +396,7 @@ const Settings: React.FC = () => {
|
||||
onChange={() => setThemePreference('light')}
|
||||
className="mr-2"
|
||||
/>
|
||||
<span className="text-sm text-gray-700 dark:text-gray-300">{t('settings.light')}</span>
|
||||
<span className="text-xs text-gray-700 dark:text-gray-300">{t('settings.light')}</span>
|
||||
</label>
|
||||
<label className="flex items-center">
|
||||
<input
|
||||
@@ -430,7 +407,7 @@ const Settings: React.FC = () => {
|
||||
onChange={() => setThemePreference('dark')}
|
||||
className="mr-2"
|
||||
/>
|
||||
<span className="text-sm text-gray-700 dark:text-gray-300">{t('settings.dark')}</span>
|
||||
<span className="text-xs text-gray-700 dark:text-gray-300">{t('settings.dark')}</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -46,7 +46,7 @@ const Unlock: React.FC = () => {
|
||||
const statusResponse = await webApi.getStatus();
|
||||
const statusError = webApi.validateStatusResponse(statusResponse);
|
||||
if (statusError !== null) {
|
||||
await webApi.logout(t('common.apiErrors.' + statusError));
|
||||
await webApi.logout(t('common.errors.' + statusError));
|
||||
navigate('/logout');
|
||||
}
|
||||
setIsInitialLoading(false);
|
||||
@@ -105,6 +105,9 @@ const Unlock: React.FC = () => {
|
||||
// Get the derived key as base64 string required for decryption.
|
||||
const passwordHashBase64 = Buffer.from(passwordHash).toString('base64');
|
||||
|
||||
// Store the encryption key in session storage.
|
||||
await dbContext.storeEncryptionKey(passwordHashBase64);
|
||||
|
||||
// Initialize the SQLite context with the new vault data.
|
||||
await dbContext.initializeDatabase(vaultResponseJson, passwordHashBase64);
|
||||
|
||||
@@ -173,6 +176,7 @@ const Unlock: React.FC = () => {
|
||||
onChange={(e) => setPassword(e.target.value)}
|
||||
placeholder={t('auth.passwordPlaceholder')}
|
||||
required
|
||||
autoFocus
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { sendMessage } from 'webext-bridge/popup';
|
||||
|
||||
import HelpModal from '@/entrypoints/popup/components/HelpModal';
|
||||
import { useLoading } from '@/entrypoints/popup/context/LoadingContext';
|
||||
|
||||
import { AUTO_LOCK_TIMEOUT_KEY } from '@/utils/Constants';
|
||||
|
||||
import { storage } from "#imports";
|
||||
|
||||
/**
|
||||
* Auto-lock settings page component.
|
||||
*/
|
||||
const AutoLockSettings: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
const { setIsInitialLoading } = useLoading();
|
||||
const [autoLockTimeout, setAutoLockTimeout] = useState<number>(0);
|
||||
|
||||
useEffect(() => {
|
||||
/**
|
||||
* Load auto-lock settings.
|
||||
*/
|
||||
const loadSettings = async () : Promise<void> => {
|
||||
// Load auto-lock timeout
|
||||
const autoLockTimeoutValue = await storage.getItem(AUTO_LOCK_TIMEOUT_KEY) as number ?? 0;
|
||||
setAutoLockTimeout(autoLockTimeoutValue);
|
||||
setIsInitialLoading(false);
|
||||
};
|
||||
|
||||
loadSettings();
|
||||
}, [setIsInitialLoading]);
|
||||
|
||||
/**
|
||||
* Set auto-lock timeout.
|
||||
*/
|
||||
const setAutoLockTimeoutSetting = async (timeout: number) : Promise<void> => {
|
||||
await storage.setItem(AUTO_LOCK_TIMEOUT_KEY, timeout);
|
||||
await sendMessage('SET_AUTO_LOCK_TIMEOUT', timeout, 'background');
|
||||
setAutoLockTimeout(timeout);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<section>
|
||||
<h3 className="text-md font-semibold text-gray-900 dark:text-white mb-3">{t('settings.autoLockTimeout')}</h3>
|
||||
<div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">
|
||||
<div className="p-4">
|
||||
<div>
|
||||
<div className="flex items-center mb-2">
|
||||
<p className="text-sm font-medium text-gray-900 dark:text-white">{t('settings.autoLockTimeout')}</p>
|
||||
<HelpModal
|
||||
titleKey="settings.autoLockTimeout"
|
||||
contentKey="settings.autoLockTimeoutHelp"
|
||||
className="ml-2"
|
||||
/>
|
||||
</div>
|
||||
<p className="text-xs text-gray-600 dark:text-gray-400 mb-3">{t('settings.autoLockTimeoutDescription')}</p>
|
||||
<select
|
||||
value={autoLockTimeout}
|
||||
onChange={(e) => setAutoLockTimeoutSetting(Number(e.target.value))}
|
||||
className="w-full px-3 py-2 bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-md text-gray-900 dark:text-white focus:ring-primary-500 focus:border-primary-500"
|
||||
>
|
||||
<option value="0">{t('settings.autoLockNever')}</option>
|
||||
<option value="15">{t('settings.autoLock15Seconds')}</option>
|
||||
<option value="60">{t('settings.autoLock1Minute')}</option>
|
||||
<option value="300">{t('settings.autoLock5Minutes')}</option>
|
||||
<option value="900">{t('settings.autoLock15Minutes')}</option>
|
||||
<option value="1800">{t('settings.autoLock30Minutes')}</option>
|
||||
<option value="3600">{t('settings.autoLock1Hour')}</option>
|
||||
<option value="14400">{t('settings.autoLock4Hours')}</option>
|
||||
<option value="28800">{t('settings.autoLock8Hours')}</option>
|
||||
<option value="86400">{t('settings.autoLock24Hours')}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default AutoLockSettings;
|
||||
@@ -0,0 +1,260 @@
|
||||
import React, { useEffect, useState, useCallback } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import { AutofillMatchingMode } from '@/entrypoints/contentScript/Filter';
|
||||
import { useLoading } from '@/entrypoints/popup/context/LoadingContext';
|
||||
|
||||
import {
|
||||
DISABLED_SITES_KEY,
|
||||
GLOBAL_AUTOFILL_POPUP_ENABLED_KEY,
|
||||
TEMPORARY_DISABLED_SITES_KEY,
|
||||
AUTOFILL_MATCHING_MODE_KEY
|
||||
} from '@/utils/Constants';
|
||||
|
||||
import { storage, browser } from "#imports";
|
||||
|
||||
/**
|
||||
* Autofill settings type.
|
||||
*/
|
||||
type AutofillSettingsType = {
|
||||
disabledUrls: string[];
|
||||
temporaryDisabledUrls: Record<string, number>;
|
||||
currentUrl: string;
|
||||
isEnabled: boolean;
|
||||
isGloballyEnabled: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Autofill settings page component.
|
||||
*/
|
||||
const AutofillSettings: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
const { setIsInitialLoading } = useLoading();
|
||||
const [settings, setSettings] = useState<AutofillSettingsType>({
|
||||
disabledUrls: [],
|
||||
temporaryDisabledUrls: {},
|
||||
currentUrl: '',
|
||||
isEnabled: true,
|
||||
isGloballyEnabled: true
|
||||
});
|
||||
const [autofillMatchingMode, setAutofillMatchingMode] = useState<AutofillMatchingMode>(AutofillMatchingMode.DEFAULT);
|
||||
|
||||
/**
|
||||
* Get current tab in browser.
|
||||
*/
|
||||
const getCurrentTab = async () : Promise<chrome.tabs.Tab> => {
|
||||
const queryOptions = { active: true, currentWindow: true };
|
||||
const [tab] = await browser.tabs.query(queryOptions);
|
||||
return tab;
|
||||
};
|
||||
|
||||
/**
|
||||
* Load settings.
|
||||
*/
|
||||
const loadSettings = useCallback(async () : Promise<void> => {
|
||||
const tab = await getCurrentTab();
|
||||
const currentUrl = new URL(tab.url ?? '').hostname;
|
||||
|
||||
// Load settings local storage.
|
||||
const disabledUrls = await storage.getItem(DISABLED_SITES_KEY) as string[] ?? [];
|
||||
const temporaryDisabledUrls = await storage.getItem(TEMPORARY_DISABLED_SITES_KEY) as Record<string, number> ?? {};
|
||||
const isGloballyEnabled = await storage.getItem(GLOBAL_AUTOFILL_POPUP_ENABLED_KEY) !== false; // Default to true if not set
|
||||
|
||||
// Clean up expired temporary disables
|
||||
const now = Date.now();
|
||||
const cleanedTemporaryDisabledUrls = Object.fromEntries(
|
||||
Object.entries(temporaryDisabledUrls).filter(([_, expiry]) => expiry > now)
|
||||
);
|
||||
|
||||
if (Object.keys(cleanedTemporaryDisabledUrls).length !== Object.keys(temporaryDisabledUrls).length) {
|
||||
await storage.setItem(TEMPORARY_DISABLED_SITES_KEY, cleanedTemporaryDisabledUrls);
|
||||
}
|
||||
|
||||
// Load autofill matching mode
|
||||
const matchingModeValue = await storage.getItem(AUTOFILL_MATCHING_MODE_KEY) as AutofillMatchingMode ?? AutofillMatchingMode.DEFAULT;
|
||||
setAutofillMatchingMode(matchingModeValue);
|
||||
|
||||
setSettings({
|
||||
disabledUrls,
|
||||
temporaryDisabledUrls: cleanedTemporaryDisabledUrls,
|
||||
currentUrl,
|
||||
isEnabled: !disabledUrls.includes(currentUrl) && !(currentUrl in cleanedTemporaryDisabledUrls),
|
||||
isGloballyEnabled
|
||||
});
|
||||
setIsInitialLoading(false);
|
||||
}, [setIsInitialLoading]);
|
||||
|
||||
useEffect(() => {
|
||||
loadSettings();
|
||||
}, [loadSettings]);
|
||||
|
||||
/**
|
||||
* Toggle current site.
|
||||
*/
|
||||
const toggleCurrentSite = async () : Promise<void> => {
|
||||
const { currentUrl, disabledUrls, temporaryDisabledUrls, isEnabled } = settings;
|
||||
|
||||
let newDisabledUrls = [...disabledUrls];
|
||||
let newTemporaryDisabledUrls = { ...temporaryDisabledUrls };
|
||||
|
||||
if (isEnabled) {
|
||||
// When disabling, add to permanent disabled list
|
||||
if (!newDisabledUrls.includes(currentUrl)) {
|
||||
newDisabledUrls.push(currentUrl);
|
||||
}
|
||||
// Also remove from temporary disabled list if present
|
||||
delete newTemporaryDisabledUrls[currentUrl];
|
||||
} else {
|
||||
// When enabling, remove from both permanent and temporary disabled lists
|
||||
newDisabledUrls = newDisabledUrls.filter(url => url !== currentUrl);
|
||||
delete newTemporaryDisabledUrls[currentUrl];
|
||||
}
|
||||
|
||||
await storage.setItem(DISABLED_SITES_KEY, newDisabledUrls);
|
||||
await storage.setItem(TEMPORARY_DISABLED_SITES_KEY, newTemporaryDisabledUrls);
|
||||
|
||||
setSettings(prev => ({
|
||||
...prev,
|
||||
disabledUrls: newDisabledUrls,
|
||||
temporaryDisabledUrls: newTemporaryDisabledUrls,
|
||||
isEnabled: !isEnabled
|
||||
}));
|
||||
};
|
||||
|
||||
/**
|
||||
* Reset settings.
|
||||
*/
|
||||
const resetSettings = async () : Promise<void> => {
|
||||
await storage.setItem(DISABLED_SITES_KEY, []);
|
||||
await storage.setItem(TEMPORARY_DISABLED_SITES_KEY, {});
|
||||
|
||||
setSettings(prev => ({
|
||||
...prev,
|
||||
disabledUrls: [],
|
||||
temporaryDisabledUrls: {},
|
||||
isEnabled: true
|
||||
}));
|
||||
};
|
||||
|
||||
/**
|
||||
* Toggle global popup.
|
||||
*/
|
||||
const toggleGlobalPopup = async () : Promise<void> => {
|
||||
const newGloballyEnabled = !settings.isGloballyEnabled;
|
||||
|
||||
await storage.setItem(GLOBAL_AUTOFILL_POPUP_ENABLED_KEY, newGloballyEnabled);
|
||||
|
||||
setSettings(prev => ({
|
||||
...prev,
|
||||
isGloballyEnabled: newGloballyEnabled
|
||||
}));
|
||||
};
|
||||
|
||||
/**
|
||||
* Set autofill matching mode.
|
||||
*/
|
||||
const setAutofillMatchingModeSetting = async (mode: AutofillMatchingMode) : Promise<void> => {
|
||||
await storage.setItem(AUTOFILL_MATCHING_MODE_KEY, mode);
|
||||
setAutofillMatchingMode(mode);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
{/* Global Settings Section */}
|
||||
<section>
|
||||
<h3 className="text-md font-semibold text-gray-900 dark:text-white mb-3">{t('settings.globalSettings')}</h3>
|
||||
<div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">
|
||||
<div className="p-4">
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<p className="text-sm font-medium text-gray-900 dark:text-white">{t('settings.autofillPopup')}</p>
|
||||
<p className={`text-xs mt-1 ${settings.isGloballyEnabled ? 'text-gray-600 dark:text-gray-400' : 'text-red-600 dark:text-red-400'}`}>
|
||||
{settings.isGloballyEnabled ? t('settings.activeOnAllSites') : t('settings.disabledOnAllSites')}
|
||||
</p>
|
||||
</div>
|
||||
<button
|
||||
onClick={toggleGlobalPopup}
|
||||
className={`px-4 py-2 rounded-md transition-colors ${
|
||||
settings.isGloballyEnabled
|
||||
? 'bg-green-500 hover:bg-green-600 text-white'
|
||||
: 'bg-red-500 hover:bg-red-600 text-white'
|
||||
}`}
|
||||
>
|
||||
{settings.isGloballyEnabled ? t('settings.enabled') : t('settings.disabled')}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Site-Specific Settings Section */}
|
||||
{settings.isGloballyEnabled && (
|
||||
<section>
|
||||
<h3 className="text-md font-semibold text-gray-900 dark:text-white mb-3">{t('settings.siteSpecificSettings')}</h3>
|
||||
<div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">
|
||||
<div className="p-4">
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<p className="text-sm font-medium text-gray-900 dark:text-white">{t('settings.autofillPopupOn')}{settings.currentUrl}</p>
|
||||
<p className={`text-xs mt-1 ${settings.isEnabled ? 'text-gray-600 dark:text-gray-400' : 'text-red-600 dark:text-red-400'}`}>
|
||||
{settings.isEnabled ? t('settings.enabledForThisSite') : t('settings.disabledForThisSite')}
|
||||
</p>
|
||||
{!settings.isEnabled && settings.temporaryDisabledUrls[settings.currentUrl] && (
|
||||
<p className="text-xs text-gray-500 dark:text-gray-400 mt-1">
|
||||
{t('settings.temporarilyDisabledUntil')}{new Date(settings.temporaryDisabledUrls[settings.currentUrl]).toLocaleTimeString()}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
{settings.isGloballyEnabled && (
|
||||
<button
|
||||
onClick={toggleCurrentSite}
|
||||
className={`px-4 py-2 ml-1 rounded-md transition-colors ${
|
||||
settings.isEnabled
|
||||
? 'bg-green-500 hover:bg-green-600 text-white'
|
||||
: 'bg-red-500 hover:bg-red-600 text-white'
|
||||
}`}
|
||||
>
|
||||
{settings.isEnabled ? t('settings.enabled') : t('settings.disabled')}
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="mt-4">
|
||||
<button
|
||||
onClick={resetSettings}
|
||||
className="w-full px-4 py-2 bg-gray-100 hover:bg-gray-200 dark:bg-gray-700 dark:hover:bg-gray-600 rounded-md text-gray-700 dark:text-gray-300 transition-colors text-sm"
|
||||
>
|
||||
{t('settings.resetAllSiteSettings')}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
)}
|
||||
|
||||
{/* Autofill Matching Settings Section */}
|
||||
<section>
|
||||
<h3 className="text-md font-semibold text-gray-900 dark:text-white mb-3">{t('settings.autofillMatching')}</h3>
|
||||
<div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">
|
||||
<div className="p-4">
|
||||
<div>
|
||||
<p className="text-sm font-medium text-gray-900 dark:text-white mb-2">{t('settings.autofillMatchingMode')}</p>
|
||||
<p className="text-xs text-gray-600 dark:text-gray-400 mb-3">{t('settings.autofillMatchingModeDescription')}</p>
|
||||
<select
|
||||
value={autofillMatchingMode}
|
||||
onChange={(e) => setAutofillMatchingModeSetting(e.target.value as AutofillMatchingMode)}
|
||||
className="w-full px-3 py-2 bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-md text-gray-900 dark:text-white focus:ring-primary-500 focus:border-primary-500"
|
||||
>
|
||||
<option value={AutofillMatchingMode.DEFAULT}>{t('settings.autofillMatchingDefault')}</option>
|
||||
<option value={AutofillMatchingMode.URL_SUBDOMAIN}>{t('settings.autofillMatchingUrlSubdomain')}</option>
|
||||
<option value={AutofillMatchingMode.URL_EXACT}>{t('settings.autofillMatchingUrlExact')}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default AutofillSettings;
|
||||
@@ -0,0 +1,69 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { sendMessage } from 'webext-bridge/popup';
|
||||
|
||||
import { useLoading } from '@/entrypoints/popup/context/LoadingContext';
|
||||
|
||||
import { CLIPBOARD_CLEAR_TIMEOUT_KEY } from '@/utils/Constants';
|
||||
|
||||
import { storage } from "#imports";
|
||||
|
||||
/**
|
||||
* Clipboard settings page component.
|
||||
*/
|
||||
const ClipboardSettings: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
const { setIsInitialLoading } = useLoading();
|
||||
const [clipboardTimeout, setClipboardTimeout] = useState<number>(10);
|
||||
|
||||
useEffect(() => {
|
||||
/**
|
||||
* Load clipboard settings.
|
||||
*/
|
||||
const loadSettings = async () : Promise<void> => {
|
||||
// Load clipboard clear timeout
|
||||
const timeout = await storage.getItem(CLIPBOARD_CLEAR_TIMEOUT_KEY) as number ?? 10;
|
||||
setClipboardTimeout(timeout);
|
||||
setIsInitialLoading(false);
|
||||
};
|
||||
|
||||
loadSettings();
|
||||
}, [setIsInitialLoading]);
|
||||
|
||||
/**
|
||||
* Set clipboard clear timeout.
|
||||
*/
|
||||
const setClipboardClearTimeout = async (timeout: number) : Promise<void> => {
|
||||
await storage.setItem(CLIPBOARD_CLEAR_TIMEOUT_KEY, timeout);
|
||||
await sendMessage('SET_CLIPBOARD_CLEAR_TIMEOUT', timeout, 'background');
|
||||
setClipboardTimeout(timeout);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<section>
|
||||
<h3 className="text-md font-semibold text-gray-900 dark:text-white mb-3">{t('settings.clipboardSettings')}</h3>
|
||||
<div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">
|
||||
<div className="p-4">
|
||||
<div>
|
||||
<p className="text-sm font-medium text-gray-900 dark:text-white mb-2">{t('settings.clipboardClearTimeout')}</p>
|
||||
<p className="text-xs text-gray-600 dark:text-gray-400 mb-3">{t('settings.clipboardClearTimeoutDescription')}</p>
|
||||
<select
|
||||
value={clipboardTimeout}
|
||||
onChange={(e) => setClipboardClearTimeout(Number(e.target.value))}
|
||||
className="w-full px-3 py-2 bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-md text-gray-900 dark:text-white focus:ring-primary-500 focus:border-primary-500"
|
||||
>
|
||||
<option value="0">{t('settings.clipboardClearDisabled')}</option>
|
||||
<option value="5">{t('settings.clipboardClear5Seconds')}</option>
|
||||
<option value="10">{t('settings.clipboardClear10Seconds')}</option>
|
||||
<option value="15">{t('settings.clipboardClear15Seconds')}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default ClipboardSettings;
|
||||
@@ -0,0 +1,78 @@
|
||||
import React, { useEffect, useState, useCallback } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { sendMessage } from 'webext-bridge/popup';
|
||||
|
||||
import { useLoading } from '@/entrypoints/popup/context/LoadingContext';
|
||||
|
||||
import { GLOBAL_CONTEXT_MENU_ENABLED_KEY } from '@/utils/Constants';
|
||||
|
||||
import { storage } from "#imports";
|
||||
|
||||
/**
|
||||
* Context menu settings page component.
|
||||
*/
|
||||
const ContextMenuSettings: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
const { setIsInitialLoading } = useLoading();
|
||||
const [isContextMenuEnabled, setIsContextMenuEnabled] = useState<boolean>(true);
|
||||
|
||||
/**
|
||||
* Load settings.
|
||||
*/
|
||||
const loadSettings = useCallback(async () : Promise<void> => {
|
||||
const isEnabled = await storage.getItem(GLOBAL_CONTEXT_MENU_ENABLED_KEY) !== false; // Default to true if not set
|
||||
setIsContextMenuEnabled(isEnabled);
|
||||
setIsInitialLoading(false);
|
||||
}, [setIsInitialLoading]);
|
||||
|
||||
useEffect(() => {
|
||||
loadSettings();
|
||||
}, [loadSettings]);
|
||||
|
||||
/**
|
||||
* Toggle context menu.
|
||||
*/
|
||||
const toggleContextMenu = async () : Promise<void> => {
|
||||
const newContextMenuEnabled = !isContextMenuEnabled;
|
||||
|
||||
await storage.setItem(GLOBAL_CONTEXT_MENU_ENABLED_KEY, newContextMenuEnabled);
|
||||
await sendMessage('TOGGLE_CONTEXT_MENU', { enabled: newContextMenuEnabled }, 'background');
|
||||
|
||||
setIsContextMenuEnabled(newContextMenuEnabled);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<section>
|
||||
<h3 className="text-md font-semibold text-gray-900 dark:text-white mb-3">{t('settings.contextMenu')}</h3>
|
||||
<div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">
|
||||
<div className="p-4">
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<p className="text-sm font-medium text-gray-900 dark:text-white">{t('settings.rightClickContextMenu')}</p>
|
||||
<p className={`text-xs mt-1 ${isContextMenuEnabled ? 'text-gray-600 dark:text-gray-400' : 'text-red-600 dark:text-red-400'}`}>
|
||||
{isContextMenuEnabled ? t('settings.contextMenuEnabled') : t('settings.contextMenuDisabled')}
|
||||
</p>
|
||||
<p className="text-xs text-gray-500 dark:text-gray-400 mt-2">
|
||||
{t('settings.contextMenuDescription')}
|
||||
</p>
|
||||
</div>
|
||||
<button
|
||||
onClick={toggleContextMenu}
|
||||
className={`px-4 py-2 rounded-md transition-colors ${
|
||||
isContextMenuEnabled
|
||||
? 'bg-green-500 hover:bg-green-600 text-white'
|
||||
: 'bg-red-500 hover:bg-red-600 text-white'
|
||||
}`}
|
||||
>
|
||||
{isContextMenuEnabled ? t('settings.enabled') : t('settings.disabled')}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default ContextMenuSettings;
|
||||
@@ -0,0 +1,29 @@
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import LanguageSwitcher from '@/entrypoints/popup/components/LanguageSwitcher';
|
||||
|
||||
/**
|
||||
* Language settings page component.
|
||||
*/
|
||||
const LanguageSettings: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<section>
|
||||
<h3 className="text-md font-semibold text-gray-900 dark:text-white mb-3">{t('settings.language')}</h3>
|
||||
<div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">
|
||||
<div className="p-4">
|
||||
<div>
|
||||
<p className="text-sm font-medium text-gray-900 dark:text-white mb-3">{t('settings.selectLanguage')}</p>
|
||||
<LanguageSwitcher variant="dropdown" size="sm" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default LanguageSettings;
|
||||
@@ -3,20 +3,36 @@
|
||||
* Add new languages here to make them available throughout the application
|
||||
*/
|
||||
|
||||
import deTranslations from './locales/de.json';
|
||||
import enTranslations from './locales/en.json';
|
||||
import fiTranslations from './locales/fi.json';
|
||||
import itTranslations from './locales/it.json';
|
||||
import nlTranslations from './locales/nl.json';
|
||||
import zhTranslations from './locales/zh.json';
|
||||
|
||||
/**
|
||||
* Create a map of all available languages and their resources for i18n.
|
||||
* When adding a new language, add the translation JSON file to the locales folder and add the language to the map here.
|
||||
*/
|
||||
export const LANGUAGE_RESOURCES = {
|
||||
de: {
|
||||
translation: deTranslations
|
||||
},
|
||||
en: {
|
||||
translation: enTranslations
|
||||
},
|
||||
fi: {
|
||||
translation: fiTranslations
|
||||
},
|
||||
it: {
|
||||
translation: itTranslations
|
||||
},
|
||||
nl: {
|
||||
translation: nlTranslations
|
||||
}
|
||||
},
|
||||
zh: {
|
||||
translation: zhTranslations
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -24,18 +40,42 @@ export const LANGUAGE_RESOURCES = {
|
||||
* When adding a new language, add the language to the map here.
|
||||
*/
|
||||
export const AVAILABLE_LANGUAGES: ILanguageConfig[] = [
|
||||
{
|
||||
code: 'de',
|
||||
name: 'German',
|
||||
nativeName: 'Deutsch',
|
||||
flag: '🇩🇪'
|
||||
},
|
||||
{
|
||||
code: 'en',
|
||||
name: 'English',
|
||||
nativeName: 'English',
|
||||
flag: '🇺🇸'
|
||||
},
|
||||
{
|
||||
code: 'fi',
|
||||
name: 'Finnish',
|
||||
nativeName: 'Suomi',
|
||||
flag: '🇫🇮'
|
||||
},
|
||||
{
|
||||
code: 'it',
|
||||
name: 'Italian',
|
||||
nativeName: 'Italiano',
|
||||
flag: '🇮🇹'
|
||||
},
|
||||
{
|
||||
code: 'nl',
|
||||
name: 'Dutch',
|
||||
nativeName: 'Nederlands',
|
||||
flag: '🇳🇱'
|
||||
},
|
||||
{
|
||||
code: 'zh',
|
||||
name: 'Chinese',
|
||||
nativeName: '简体中文',
|
||||
flag: '🇨🇳'
|
||||
},
|
||||
/*
|
||||
* {
|
||||
* code: 'de',
|
||||
|
||||
392
apps/browser-extension/src/i18n/locales/ca.json
Normal file
392
apps/browser-extension/src/i18n/locales/ca.json
Normal file
@@ -0,0 +1,392 @@
|
||||
{
|
||||
"auth": {
|
||||
"loginTitle": "Log in to AliasVault",
|
||||
"username": "Username or email",
|
||||
"usernamePlaceholder": "name / name@company.com",
|
||||
"password": "Contrasenya",
|
||||
"passwordPlaceholder": "Enter your password",
|
||||
"rememberMe": "Remember me",
|
||||
"loginButton": "Login",
|
||||
"noAccount": "No account yet?",
|
||||
"createVault": "Create new vault",
|
||||
"twoFactorTitle": "Please enter the authentication code from your authenticator app.",
|
||||
"authCode": "Codi d'autenticació",
|
||||
"authCodePlaceholder": "Introduïu el codi de 6 dígits",
|
||||
"verify": "Verifica",
|
||||
"cancel": "Cancel",
|
||||
"twoFactorNote": "Note: if you don't have access to your authenticator device, you can reset your 2FA with a recovery code by logging in via the website.",
|
||||
"masterPassword": "Contrasenya Mestra",
|
||||
"unlockVault": "Unlock Vault",
|
||||
"unlockTitle": "Unlock Your Vault",
|
||||
"unlockDescription": "Enter your master password to unlock your vault.",
|
||||
"logout": "Tanca la sessió",
|
||||
"logoutConfirm": "Are you sure you want to logout?",
|
||||
"sessionExpired": "Your session has expired. Please log in again.",
|
||||
"unlockSuccess": "Vault unlocked successfully!",
|
||||
"unlockSuccessTitle": "Your vault is successfully unlocked",
|
||||
"unlockSuccessDescription": "You can now use autofill in login forms in your browser.",
|
||||
"closePopup": "Close this popup",
|
||||
"browseVault": "Browse vault contents",
|
||||
"connectingTo": "Connectant a",
|
||||
"switchAccounts": "Switch accounts?",
|
||||
"loggedIn": "Logged in",
|
||||
"errors": {
|
||||
"invalidCode": "Please enter a valid 6-digit authentication code.",
|
||||
"serverError": "Could not reach AliasVault server. Please try again later or contact support if the problem persists.",
|
||||
"noToken": "Login failed -- no token returned",
|
||||
"migrationError": "An error occurred while checking for pending migrations.",
|
||||
"wrongPassword": "Incorrect password. Please try again.",
|
||||
"accountLocked": "Account temporarily locked due to too many failed attempts.",
|
||||
"networkError": "Network error. Please check your connection and try again.",
|
||||
"loginDataMissing": "Login session expired. Please try again."
|
||||
}
|
||||
},
|
||||
"menu": {
|
||||
"credentials": "Credentials",
|
||||
"emails": "Emails",
|
||||
"settings": "Settings"
|
||||
},
|
||||
"common": {
|
||||
"appName": "AliasVault",
|
||||
"loading": "S'està carregant...",
|
||||
"error": "Error",
|
||||
"success": "Success",
|
||||
"cancel": "Cancel",
|
||||
"use": "Utilitza",
|
||||
"delete": "Suprimeix",
|
||||
"close": "Tanca",
|
||||
"copied": "Copied!",
|
||||
"openInNewWindow": "Open in new window",
|
||||
"language": "Language",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"showPassword": "Mostra la contrasenya",
|
||||
"hidePassword": "Amaga la contrasenya",
|
||||
"copyToClipboard": "Copy to clipboard",
|
||||
"loadingEmails": "Loading emails...",
|
||||
"loadingTotpCodes": "Loading TOTP codes...",
|
||||
"attachments": "Attachments",
|
||||
"loadingAttachments": "Loading attachments...",
|
||||
"settings": "Settings",
|
||||
"recentEmails": "Recent emails",
|
||||
"loginCredentials": "Login credentials",
|
||||
"twoFactorAuthentication": "Two-factor authentication",
|
||||
"alias": "Alias",
|
||||
"notes": "Notes",
|
||||
"fullName": "Full Name",
|
||||
"firstName": "First Name",
|
||||
"lastName": "Last Name",
|
||||
"birthDate": "Birth Date",
|
||||
"nickname": "Nickname",
|
||||
"email": "Email",
|
||||
"username": "Username",
|
||||
"password": "Password",
|
||||
"syncingVault": "Syncing vault",
|
||||
"savingChangesToVault": "Saving changes to vault",
|
||||
"uploadingVaultToServer": "Uploading vault to server",
|
||||
"checkingVaultUpdates": "Checking for vault updates",
|
||||
"syncingUpdatedVault": "Syncing updated vault",
|
||||
"executingOperation": "Executing operation...",
|
||||
"loadMore": "Load more",
|
||||
"errors": {
|
||||
"VaultOutdated": "Your vault is outdated. Please login on the AliasVault website and follow the steps.",
|
||||
"serverNotAvailable": "The AliasVault server is not available. Please try again later or contact support if the problem persists.",
|
||||
"clientVersionNotSupported": "This version of the AliasVault browser extension is not supported by the server anymore. Please update your browser extension to the latest version.",
|
||||
"serverVersionNotSupported": "The AliasVault server needs to be updated to a newer version in order to use this browser extension. Please contact support if you need help.",
|
||||
"unknownError": "An unknown error occurred",
|
||||
"failedToStoreVault": "Failed to store vault",
|
||||
"vaultNotAvailable": "Vault not available",
|
||||
"failedToRetrieveData": "Failed to retrieve data",
|
||||
"vaultIsLocked": "Vault is locked",
|
||||
"failedToUploadVault": "Failed to upload vault",
|
||||
"passwordChanged": "Your password has changed since the last time you logged in. Please login again for security reasons."
|
||||
},
|
||||
"apiErrors": {
|
||||
"UNKNOWN_ERROR": "An unknown error occurred. Please try again.",
|
||||
"ACCOUNT_LOCKED": "Account temporarily locked due to too many failed attempts. Please try again later.",
|
||||
"ACCOUNT_BLOCKED": "Your account has been disabled. If you believe this is a mistake, please contact support.",
|
||||
"USER_NOT_FOUND": "Invalid username or password. Please try again.",
|
||||
"INVALID_AUTHENTICATOR_CODE": "Invalid authenticator code. Please try again.",
|
||||
"INVALID_RECOVERY_CODE": "Invalid recovery code. Please try again.",
|
||||
"REFRESH_TOKEN_REQUIRED": "Refresh token is required.",
|
||||
"INVALID_REFRESH_TOKEN": "Invalid refresh token.",
|
||||
"REFRESH_TOKEN_REVOKED_SUCCESSFULLY": "Refresh token revoked successfully.",
|
||||
"PUBLIC_REGISTRATION_DISABLED": "New account registration is currently disabled on this server. Please contact the administrator.",
|
||||
"USERNAME_REQUIRED": "Username is required.",
|
||||
"USERNAME_ALREADY_IN_USE": "Username is already in use.",
|
||||
"USERNAME_AVAILABLE": "Username is available.",
|
||||
"USERNAME_MISMATCH": "Username does not match the current user.",
|
||||
"PASSWORD_MISMATCH": "The provided password does not match your current password.",
|
||||
"ACCOUNT_SUCCESSFULLY_DELETED": "Account successfully deleted.",
|
||||
"USERNAME_EMPTY_OR_WHITESPACE": "Username cannot be empty or whitespace.",
|
||||
"USERNAME_TOO_SHORT": "Username too short: must be at least 3 characters long.",
|
||||
"USERNAME_TOO_LONG": "Username too long: cannot be longer than 40 characters.",
|
||||
"USERNAME_INVALID_EMAIL": "Invalid email address.",
|
||||
"USERNAME_INVALID_CHARACTERS": "Username is invalid, can only contain letters or digits.",
|
||||
"VAULT_NOT_UP_TO_DATE": "Your vault is not up-to-date. Please synchronize your vault and try again.",
|
||||
"INTERNAL_SERVER_ERROR": "Internal server error.",
|
||||
"VAULT_ERROR": "The local vault is not up-to-date. Please synchronize your vault by refreshing the page and try again."
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"or": "or",
|
||||
"new": "New",
|
||||
"cancel": "Cancel",
|
||||
"search": "Search",
|
||||
"vaultLocked": "AliasVault is locked.",
|
||||
"creatingNewAlias": "Creating new alias...",
|
||||
"noMatchesFound": "No matches found",
|
||||
"searchVault": "Search vault...",
|
||||
"serviceName": "Service name",
|
||||
"email": "Email",
|
||||
"username": "Username",
|
||||
"password": "Password",
|
||||
"enterServiceName": "Enter service name",
|
||||
"enterEmailAddress": "Enter email address",
|
||||
"enterUsername": "Enter username",
|
||||
"hideFor1Hour": "Hide for 1 hour (current site)",
|
||||
"hidePermanently": "Hide permanently (current site)",
|
||||
"createRandomAlias": "Create random alias",
|
||||
"createUsernamePassword": "Create username/password",
|
||||
"randomAlias": "Random alias",
|
||||
"usernamePassword": "Username/password",
|
||||
"createAndSaveAlias": "Create and save alias",
|
||||
"createAndSaveCredential": "Create and save credential",
|
||||
"randomIdentityDescription": "Generate a random identity with a random email address accessible in AliasVault.",
|
||||
"randomIdentityDescriptionDropdown": "Random identity with random email",
|
||||
"manualCredentialDescription": "Specify your own email address and username.",
|
||||
"manualCredentialDescriptionDropdown": "Manual username and password",
|
||||
"failedToCreateIdentity": "Failed to create identity. Please try again.",
|
||||
"enterEmailAndOrUsername": "Enter email and/or username",
|
||||
"autofillWithAliasVault": "Autofill with AliasVault",
|
||||
"generateRandomPassword": "Generate random password (copy to clipboard)",
|
||||
"generateNewPassword": "Generate new password",
|
||||
"togglePasswordVisibility": "Toggle password visibility",
|
||||
"passwordCopiedToClipboard": "Password copied to clipboard",
|
||||
"enterEmailAndOrUsernameError": "Enter email and/or username",
|
||||
"openAliasVaultToUpgrade": "Open AliasVault to upgrade",
|
||||
"vaultUpgradeRequired": "Vault upgrade required.",
|
||||
"dismissPopup": "Dismiss popup"
|
||||
},
|
||||
"credentials": {
|
||||
"title": "Credentials",
|
||||
"addCredential": "Add Credential",
|
||||
"editCredential": "Edit Credential",
|
||||
"deleteCredential": "Delete Credential",
|
||||
"credentialDetails": "Credential Details",
|
||||
"serviceName": "Service Name",
|
||||
"serviceNamePlaceholder": "e.g., Gmail, Facebook, Bank",
|
||||
"website": "Website",
|
||||
"websitePlaceholder": "https://example.com",
|
||||
"username": "Username",
|
||||
"usernamePlaceholder": "Enter username",
|
||||
"password": "Password",
|
||||
"passwordPlaceholder": "Enter password",
|
||||
"generatePassword": "Generate Password",
|
||||
"copyPassword": "Copy Password",
|
||||
"showPassword": "Show Password",
|
||||
"hidePassword": "Hide Password",
|
||||
"notes": "Notes",
|
||||
"notesPlaceholder": "Additional notes...",
|
||||
"totp": "Two-Factor Authentication",
|
||||
"totpCode": "TOTP Code",
|
||||
"copyTotp": "Copy TOTP",
|
||||
"totpSecret": "TOTP Secret",
|
||||
"totpSecretPlaceholder": "Enter TOTP secret key",
|
||||
"noCredentials": "No credentials found",
|
||||
"noCredentialsDescription": "Add your first credential to get started",
|
||||
"searchPlaceholder": "Search credentials...",
|
||||
"welcomeTitle": "Welcome to AliasVault!",
|
||||
"welcomeDescription": "To use the AliasVault browser extension: navigate to a website and use the AliasVault autofill popup to create a new credential.",
|
||||
"createdAt": "Created",
|
||||
"updatedAt": "Last updated",
|
||||
"autofill": "Autofill",
|
||||
"fillForm": "Fill Form",
|
||||
"deleteConfirm": "Are you sure you want to delete this credential?",
|
||||
"saveSuccess": "Credential saved successfully",
|
||||
"tags": "Tags",
|
||||
"addTag": "Add Tag",
|
||||
"removeTag": "Remove Tag",
|
||||
"folder": "Folder",
|
||||
"selectFolder": "Select Folder",
|
||||
"createFolder": "Create Folder",
|
||||
"saveCredential": "Save credential",
|
||||
"deleteCredentialTitle": "Delete Credential",
|
||||
"deleteCredentialConfirm": "Are you sure you want to delete this credential? This action cannot be undone.",
|
||||
"randomAlias": "Random Alias",
|
||||
"manual": "Manual",
|
||||
"service": "Service",
|
||||
"serviceUrl": "Service URL",
|
||||
"loginCredentials": "Login Credentials",
|
||||
"generateRandomUsername": "Generate random username",
|
||||
"generateRandomPassword": "Generate random password",
|
||||
"changePasswordComplexity": "Change password complexity",
|
||||
"passwordLength": "Password length",
|
||||
"includeLowercase": "Include lowercase letters",
|
||||
"includeUppercase": "Include uppercase letters",
|
||||
"includeNumbers": "Include numbers",
|
||||
"includeSpecialChars": "Include special characters",
|
||||
"avoidAmbiguousChars": "Avoid ambiguous characters (o, 0, etc.)",
|
||||
"generateNewPreview": "Generate new preview",
|
||||
"generateRandomAlias": "Generate Random Alias",
|
||||
"alias": "Alias",
|
||||
"firstName": "First Name",
|
||||
"lastName": "Last Name",
|
||||
"nickName": "Nick Name",
|
||||
"gender": "Gender",
|
||||
"birthDate": "Birth Date",
|
||||
"birthDatePlaceholder": "YYYY-MM-DD",
|
||||
"metadata": "Metadata",
|
||||
"validation": {
|
||||
"required": "This field is required",
|
||||
"serviceNameRequired": "Service name is required",
|
||||
"invalidEmail": "Invalid email format",
|
||||
"invalidDateFormat": "Date must be in YYYY-MM-DD format"
|
||||
},
|
||||
"privateEmailTitle": "Private Email",
|
||||
"privateEmailAliasVaultServer": "AliasVault server",
|
||||
"privateEmailDescription": "E2E encrypted, fully private.",
|
||||
"publicEmailTitle": "Public Temp Email Providers",
|
||||
"publicEmailDescription": "Anonymous but limited privacy. Email content is readable by anyone that knows the address.",
|
||||
"useDomainChooser": "Use domain chooser",
|
||||
"enterCustomDomain": "Enter custom domain",
|
||||
"enterFullEmail": "Enter full email address",
|
||||
"enterEmailPrefix": "Enter email prefix"
|
||||
},
|
||||
"emails": {
|
||||
"title": "Emails",
|
||||
"deleteEmailTitle": "Delete Email",
|
||||
"deleteEmailConfirm": "Are you sure you want to permanently delete this email?",
|
||||
"from": "From",
|
||||
"to": "To",
|
||||
"date": "Date",
|
||||
"emailContent": "Email content",
|
||||
"attachments": "Attachments",
|
||||
"emailNotFound": "Email not found",
|
||||
"noEmails": "No emails found",
|
||||
"noEmailsDescription": "You have not received any emails at your private email addresses yet. When you receive a new email, it will appear here.",
|
||||
"dateFormat": {
|
||||
"justNow": "just now",
|
||||
"minutesAgo_single": "{{count}} min ago",
|
||||
"minutesAgo_plural": "{{count}} mins ago",
|
||||
"hoursAgo_single": "{{count}} hr ago",
|
||||
"hoursAgo_plural": "{{count}} hrs ago",
|
||||
"yesterday": "yesterday"
|
||||
},
|
||||
"errors": {
|
||||
"emailLoadError": "An error occurred while loading emails. Please try again later.",
|
||||
"emailUnexpectedError": "An unexpected error occurred while loading emails. Please try again later."
|
||||
},
|
||||
"apiErrors": {
|
||||
"CLAIM_DOES_NOT_MATCH_USER": "The current chosen email address is already in use. Please change the email address by editing this credential.",
|
||||
"CLAIM_DOES_NOT_EXIST": "An error occurred while trying to load the emails. Please try to edit and save the credential entry to synchronize the database, then try again."
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"title": "Settings",
|
||||
"serverUrl": "Server URL",
|
||||
"language": "Language",
|
||||
"autofillEnabled": "Enable Autofill",
|
||||
"version": "Version",
|
||||
"openInNewWindow": "Open in new window",
|
||||
"openWebApp": "Open web app",
|
||||
"loggedIn": "Logged in",
|
||||
"logout": "Logout",
|
||||
"globalSettings": "Global Settings",
|
||||
"autofillPopup": "Autofill popup",
|
||||
"activeOnAllSites": "Active on all sites (unless disabled below)",
|
||||
"disabledOnAllSites": "Disabled on all sites",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"rightClickContextMenu": "Right-click context menu",
|
||||
"autofillMatching": "Autofill Matching",
|
||||
"autofillMatchingMode": "Autofill matching mode",
|
||||
"autofillMatchingModeDescription": "Determines which credentials are considered a match and shown as suggestions in the autofill popup for a given website.",
|
||||
"autofillMatchingDefault": "URL + subdomain + name wildcard",
|
||||
"autofillMatchingUrlSubdomain": "URL + subdomain",
|
||||
"autofillMatchingUrlExact": "Exact URL domain only",
|
||||
"siteSpecificSettings": "Site-Specific Settings",
|
||||
"autofillPopupOn": "Autofill popup on: ",
|
||||
"enabledForThisSite": "Enabled for this site",
|
||||
"disabledForThisSite": "Disabled for this site",
|
||||
"temporarilyDisabledUntil": "Temporarily disabled until ",
|
||||
"resetAllSiteSettings": "Reset all site-specific settings",
|
||||
"appearance": "Appearance",
|
||||
"theme": "Theme",
|
||||
"useDefault": "Use default",
|
||||
"light": "Light",
|
||||
"dark": "Dark",
|
||||
"keyboardShortcuts": "Keyboard Shortcuts",
|
||||
"configureKeyboardShortcuts": "Configure keyboard shortcuts",
|
||||
"configure": "Configure",
|
||||
"security": "Security",
|
||||
"clipboardClearTimeout": "Clear clipboard after copying",
|
||||
"clipboardClearTimeoutDescription": "Automatically clear the clipboard after copying sensitive data",
|
||||
"clipboardClearDisabled": "Never clear",
|
||||
"clipboardClear5Seconds": "Clear after 5 seconds",
|
||||
"clipboardClear10Seconds": "Clear after 10 seconds",
|
||||
"clipboardClear15Seconds": "Clear after 15 seconds",
|
||||
"autoLockTimeout": "Auto-lock Timeout",
|
||||
"autoLockTimeoutDescription": "Automatically lock the vault after a period of inactivity",
|
||||
"autoLockTimeoutHelp": "The vault will only lock after the specified period of inactivity (no autofill usage or extension popup opened). The vault will always lock when the browser is closed, regardless of this setting.",
|
||||
"autoLockNever": "Never",
|
||||
"autoLock15Seconds": "15 seconds",
|
||||
"autoLock1Minute": "1 minute",
|
||||
"autoLock5Minutes": "5 minutes",
|
||||
"autoLock15Minutes": "15 minutes",
|
||||
"autoLock30Minutes": "30 minutes",
|
||||
"autoLock1Hour": "1 hour",
|
||||
"autoLock4Hours": "4 hours",
|
||||
"autoLock8Hours": "8 hours",
|
||||
"autoLock24Hours": "24 hours",
|
||||
"versionPrefix": "Version ",
|
||||
"preferences": "Preferences",
|
||||
"autofillSettings": "Autofill Settings",
|
||||
"clipboardSettings": "Clipboard Settings",
|
||||
"contextMenuSettings": "Context Menu Settings",
|
||||
"contextMenu": "Context Menu",
|
||||
"contextMenuEnabled": "Context menu is enabled",
|
||||
"contextMenuDisabled": "Context menu is disabled",
|
||||
"contextMenuDescription": "Right-click on input fields to access AliasVault options",
|
||||
"selectLanguage": "Select Language",
|
||||
"validation": {
|
||||
"apiUrlRequired": "API URL is required",
|
||||
"apiUrlInvalid": "Please enter a valid API URL",
|
||||
"clientUrlRequired": "Client URL is required",
|
||||
"clientUrlInvalid": "Please enter a valid client URL"
|
||||
}
|
||||
},
|
||||
"upgrade": {
|
||||
"title": "Upgrade Vault",
|
||||
"subtitle": "AliasVault has updated and your vault needs to be upgraded. This should only take a few seconds.",
|
||||
"versionInformation": "Version Information",
|
||||
"yourVault": "Your vault:",
|
||||
"newVersion": "New version:",
|
||||
"upgrade": "Upgrade Vault",
|
||||
"upgrading": "Upgrading...",
|
||||
"logout": "Logout",
|
||||
"whatsNew": "What's New",
|
||||
"whatsNewDescription": "An upgrade is required to support the following changes:",
|
||||
"noDescriptionAvailable": "No description available for this version.",
|
||||
"okay": "Ok",
|
||||
"status": {
|
||||
"preparingUpgrade": "Preparing upgrade...",
|
||||
"vaultAlreadyUpToDate": "Vault is already up to date",
|
||||
"startingDatabaseTransaction": "Starting database transaction...",
|
||||
"applyingDatabaseMigrations": "Applying database migrations...",
|
||||
"applyingMigration": "Applying migration {{current}} of {{total}}...",
|
||||
"committingChanges": "Committing changes..."
|
||||
},
|
||||
"alerts": {
|
||||
"error": "Error",
|
||||
"unableToGetVersionInfo": "Unable to get version information. Please try again.",
|
||||
"selfHostedServer": "Self-Hosted Server",
|
||||
"selfHostedWarning": "If you're using a self-hosted server, make sure to also update your self-hosted instance as otherwise logging in to the web client will stop working.",
|
||||
"cancel": "Cancel",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,375 +1,392 @@
|
||||
{
|
||||
"auth": {
|
||||
"loginTitle": "Log in to AliasVault",
|
||||
"username": "Username or email",
|
||||
"usernamePlaceholder": "name / name@company.com",
|
||||
"password": "Password",
|
||||
"passwordPlaceholder": "Enter your password",
|
||||
"rememberMe": "Remember me",
|
||||
"loginButton": "Login",
|
||||
"noAccount": "No account yet?",
|
||||
"createVault": "Create new vault",
|
||||
"twoFactorTitle": "Please enter the authentication code from your authenticator app.",
|
||||
"authCode": "Authentication Code",
|
||||
"authCodePlaceholder": "Enter 6-digit code",
|
||||
"verify": "Verify",
|
||||
"cancel": "Cancel",
|
||||
"twoFactorNote": "Note: if you don't have access to your authenticator device, you can reset your 2FA with a recovery code by logging in via the website.",
|
||||
"masterPassword": "Master Password",
|
||||
"unlockVault": "Unlock Vault",
|
||||
"unlockTitle": "Unlock Your Vault",
|
||||
"unlockDescription": "Enter your master password to unlock your vault.",
|
||||
"logout": "Logout",
|
||||
"logoutConfirm": "Are you sure you want to logout?",
|
||||
"sessionExpired": "Your session has expired. Please log in again.",
|
||||
"unlockSuccess": "Vault unlocked successfully!",
|
||||
"unlockSuccessTitle": "Your vault is successfully unlocked",
|
||||
"unlockSuccessDescription": "You can now use autofill in login forms in your browser.",
|
||||
"closePopup": "Close this popup",
|
||||
"browseVault": "Browse vault contents",
|
||||
"connectingTo": "Connecting to",
|
||||
"switchAccounts": "Switch accounts?",
|
||||
"loggedIn": "Logged in",
|
||||
"loginTitle": "Bei AliasVault anmelden",
|
||||
"username": "Benutzername oder E-Mail-Adresse",
|
||||
"usernamePlaceholder": "Name / name@unternehmen.com",
|
||||
"password": "Passwort",
|
||||
"passwordPlaceholder": "Gib Dein Passwort ein",
|
||||
"rememberMe": "Angemeldet bleiben",
|
||||
"loginButton": "Anmelden",
|
||||
"noAccount": "Noch kein Konto?",
|
||||
"createVault": "Neuen Tresor erstellen",
|
||||
"twoFactorTitle": "Bitte gib den Sicherheits-Code aus Deiner Authentifizierungs-App ein.",
|
||||
"authCode": "Sicherheits-Code",
|
||||
"authCodePlaceholder": "Gib den 6-stelligen Sicherheits-Code ein.",
|
||||
"verify": "Bestätige",
|
||||
"cancel": "Abbrechen",
|
||||
"twoFactorNote": "Hinweis: Wenn Du keinen Zugriff auf Dein Authentifizierungsgerät hast, kannst Du Deine Zwei-Faktor-Authentifizierung (2FA) mit einem Wiederherstellungscode zurücksetzen, indem Du Dich über die Website anmeldest.",
|
||||
"masterPassword": "Master-Passwort",
|
||||
"unlockVault": "Tresor entsperren",
|
||||
"unlockTitle": "Entsperre Deinen Tresor",
|
||||
"unlockDescription": "Bitte gib Dein Master-Passwort zum Entsperren des Tresors ein.",
|
||||
"logout": "Abmelden",
|
||||
"logoutConfirm": "Bist Du sicher, dass Du Dich abmelden möchtest?",
|
||||
"sessionExpired": "Deine Sitzung ist abgelaufen. Bitte melde Dich erneut an.",
|
||||
"unlockSuccess": "Tresor erfolgreich entsperrt!",
|
||||
"unlockSuccessTitle": "Ihr Tresor wurde erfolgreich entsperrt",
|
||||
"unlockSuccessDescription": "Du kannst jetzt die Autofill-Funktion in Anmeldeformularen in Deinem Browser nutzen.",
|
||||
"closePopup": "Popup schließen",
|
||||
"browseVault": "Tresor durchsuchen",
|
||||
"connectingTo": "Verbinde zu",
|
||||
"switchAccounts": "Konto wechseln?",
|
||||
"loggedIn": "Angemeldet",
|
||||
"errors": {
|
||||
"invalidCode": "Please enter a valid 6-digit authentication code.",
|
||||
"serverError": "Could not reach AliasVault server. Please try again later or contact support if the problem persists.",
|
||||
"noToken": "Login failed -- no token returned",
|
||||
"migrationError": "An error occurred while checking for pending migrations.",
|
||||
"wrongPassword": "Incorrect password. Please try again.",
|
||||
"accountLocked": "Account temporarily locked due to too many failed attempts.",
|
||||
"networkError": "Network error. Please check your connection and try again.",
|
||||
"loginDataMissing": "Login session expired. Please try again."
|
||||
"invalidCode": "Bitte gib einen gültigen 6-stelligen Sicherheits-Code ein.",
|
||||
"serverError": "Der AliasVault-Server konnte nicht erreicht werden. Bitte versuche es später noch einmal oder kontaktiere den Support, falls das Problem weiterhin besteht.",
|
||||
"noToken": "Anmeldung fehlgeschlagen -- es wurde kein Token zurückgegeben",
|
||||
"migrationError": "Beim Prüfen auf ausstehende Migrationen ist ein Fehler aufgetreten.",
|
||||
"wrongPassword": "Falsches Passwort. Bitte versuche es erneut.",
|
||||
"accountLocked": "Das Konto wurde wegen zu vieler fehlgeschlagener Anmeldeversuche vorübergehend gesperrt.",
|
||||
"networkError": "Netzwerkfehler. Bitte überprüfe Deine Verbindung und versuche es erneut.",
|
||||
"loginDataMissing": "Deine Anmelde-Sitzung ist abgelaufen. Bitte versuche es erneut."
|
||||
}
|
||||
},
|
||||
"menu": {
|
||||
"credentials": "Credentials",
|
||||
"emails": "Emails",
|
||||
"settings": "Settings"
|
||||
"credentials": "Zugangsdaten",
|
||||
"emails": "E-Mails",
|
||||
"settings": "Einstellungen"
|
||||
},
|
||||
"common": {
|
||||
"appName": "AliasVault",
|
||||
"loading": "Loading...",
|
||||
"error": "Error",
|
||||
"success": "Success",
|
||||
"cancel": "Cancel",
|
||||
"use": "Use",
|
||||
"delete": "Delete",
|
||||
"close": "Close",
|
||||
"copied": "Copied!",
|
||||
"openInNewWindow": "Open in new window",
|
||||
"language": "Language",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"showPassword": "Show password",
|
||||
"hidePassword": "Hide password",
|
||||
"copyToClipboard": "Copy to clipboard",
|
||||
"loadingEmails": "Loading emails...",
|
||||
"loadingTotpCodes": "Loading TOTP codes...",
|
||||
"attachments": "Attachments",
|
||||
"loadingAttachments": "Loading attachments...",
|
||||
"settings": "Settings",
|
||||
"recentEmails": "Recent emails",
|
||||
"loginCredentials": "Login credentials",
|
||||
"twoFactorAuthentication": "Two-factor authentication",
|
||||
"loading": "Laden...",
|
||||
"error": "Fehler",
|
||||
"success": "Aktion erfolgreich",
|
||||
"cancel": "Abbrechen",
|
||||
"use": "Benutzen",
|
||||
"delete": "Löschen",
|
||||
"close": "Schließen",
|
||||
"copied": "Kopiert!",
|
||||
"openInNewWindow": "In neuem Fenster öffnen",
|
||||
"language": "Sprache",
|
||||
"enabled": "Aktiviert",
|
||||
"disabled": "Deaktiviert",
|
||||
"showPassword": "Passwort anzeigen",
|
||||
"hidePassword": "Passwort verbergen",
|
||||
"copyToClipboard": "In die Zwischenablage kopieren",
|
||||
"loadingEmails": "E-Mails werden geladen...",
|
||||
"loadingTotpCodes": "TOTP-Codes werden geladen...",
|
||||
"attachments": "Anhänge",
|
||||
"loadingAttachments": "Anhänge werden geladen...",
|
||||
"settings": "Einstellungen",
|
||||
"recentEmails": "Neueste E-Mails",
|
||||
"loginCredentials": "Zugangsdaten",
|
||||
"twoFactorAuthentication": "Zwei-Faktor-Authentifizierung",
|
||||
"alias": "Alias",
|
||||
"notes": "Notes",
|
||||
"fullName": "Full Name",
|
||||
"firstName": "First Name",
|
||||
"lastName": "Last Name",
|
||||
"birthDate": "Birth Date",
|
||||
"nickname": "Nickname",
|
||||
"email": "Email",
|
||||
"username": "Username",
|
||||
"password": "Password",
|
||||
"syncingVault": "Syncing vault",
|
||||
"savingChangesToVault": "Saving changes to vault",
|
||||
"uploadingVaultToServer": "Uploading vault to server",
|
||||
"checkingVaultUpdates": "Checking for vault updates",
|
||||
"syncingUpdatedVault": "Syncing updated vault",
|
||||
"executingOperation": "Executing operation...",
|
||||
"loadMore": "Load more",
|
||||
"notes": "Notizen",
|
||||
"fullName": "Vor- und Nachname",
|
||||
"firstName": "Vorname",
|
||||
"lastName": "Nachname",
|
||||
"birthDate": "Geburtsdatum",
|
||||
"nickname": "Spitzname",
|
||||
"email": "E-Mail-Adresse",
|
||||
"username": "Benutzername",
|
||||
"password": "Passwort",
|
||||
"syncingVault": "Tresor wird synchronisiert",
|
||||
"savingChangesToVault": "Änderungen werden gespeichert",
|
||||
"uploadingVaultToServer": "Tresor wird auf den Server hochgeladen",
|
||||
"checkingVaultUpdates": "Prüfe auf Tresor-Updates",
|
||||
"syncingUpdatedVault": "Aktualisierter Tresor wird synchronisiert",
|
||||
"executingOperation": "Vorgang wird ausgeführt...",
|
||||
"loadMore": "Mehr laden",
|
||||
"errors": {
|
||||
"VaultMergeRequired": "Your vault needs to be updated. Please login on the AliasVault website and follow the steps.",
|
||||
"VaultOutdated": "Your vault is outdated. Please login on the AliasVault website and follow the steps.",
|
||||
"NoVaultFound": "Your account does not have a vault yet. Please complete the tutorial in the AliasVault web client before using the browser extension.",
|
||||
"serverNotAvailable": "The AliasVault server is not available. Please try again later or contact support if the problem persists.",
|
||||
"clientVersionNotSupported": "This version of the AliasVault browser extension is not supported by the server anymore. Please update your browser extension to the latest version.",
|
||||
"serverVersionNotSupported": "The AliasVault server needs to be updated to a newer version in order to use this browser extension. Please contact support if you need help.",
|
||||
"unknownError": "An unknown error occurred",
|
||||
"failedToStoreVault": "Failed to store vault",
|
||||
"vaultNotAvailable": "Vault not available",
|
||||
"failedToGetVault": "Failed to get vault",
|
||||
"vaultIsLocked": "Vault is locked",
|
||||
"failedToGetCredentials": "Failed to get credentials",
|
||||
"failedToCreateIdentity": "Failed to create identity",
|
||||
"failedToGetDefaultEmailDomain": "Failed to get default email domain",
|
||||
"failedToGetDefaultIdentitySettings": "Failed to get default identity settings",
|
||||
"failedToGetPasswordSettings": "Failed to get password settings",
|
||||
"failedToUploadVault": "Failed to upload vault",
|
||||
"noDerivedKeyAvailable": "No derived key available for encryption",
|
||||
"failedToUploadVaultToServer": "Failed to upload new vault to server",
|
||||
"noVaultOrDerivedKeyFound": "No vault or derived key found"
|
||||
"VaultOutdated": "Dein Tresor ist veraltet. Bitte melde Dich auf der AliasVault-Webseite an und folge den Anweisungen.",
|
||||
"serverNotAvailable": "Der AliasVault-Server konnte nicht erreicht werden. Bitte versuche es später noch einmal oder kontaktiere den Support, falls das Problem weiterhin besteht.",
|
||||
"clientVersionNotSupported": "Diese Version der AliasVault-Browser-Erweiterung wird vom Server nicht mehr unterstützt. Bitte aktualisiere Deine Browser-Erweiterung auf die neueste Version.",
|
||||
"serverVersionNotSupported": "Der AliasVault-Server muss auf eine neuere Version aktualisiert werden, um diese Browser-Erweiterung nutzen zu können. Bitte kontaktiere den Support, falls Du Hilfe benötigst.",
|
||||
"unknownError": "Ein unbekannter Fehler ist aufgetreten",
|
||||
"failedToStoreVault": "Fehler beim Speichern des Tresors",
|
||||
"vaultNotAvailable": "Tresor nicht verfügbar",
|
||||
"failedToRetrieveData": "Abruf der Daten fehlgeschlagen",
|
||||
"vaultIsLocked": "Der Tresor ist gesperrt.",
|
||||
"failedToUploadVault": "Das Hochladen des Tresors ist fehlgeschlagen",
|
||||
"passwordChanged": "Dein Passwort hat sich seit Deiner letzten Anmeldung geändert. Bitte melden Dich aus Sicherheitsgründen erneut an."
|
||||
},
|
||||
"apiErrors": {
|
||||
"UNKNOWN_ERROR": "An unknown error occurred. Please try again.",
|
||||
"ACCOUNT_LOCKED": "Account temporarily locked due to too many failed attempts. Please try again later.",
|
||||
"ACCOUNT_BLOCKED": "Your account has been disabled. If you believe this is a mistake, please contact support.",
|
||||
"USER_NOT_FOUND": "Invalid username or password. Please try again.",
|
||||
"INVALID_AUTHENTICATOR_CODE": "Invalid authenticator code. Please try again.",
|
||||
"INVALID_RECOVERY_CODE": "Invalid recovery code. Please try again.",
|
||||
"REFRESH_TOKEN_REQUIRED": "Refresh token is required.",
|
||||
"USER_NOT_FOUND_IN_TOKEN": "User not found in token.",
|
||||
"USER_NOT_FOUND_IN_DATABASE": "User not found in database.",
|
||||
"INVALID_REFRESH_TOKEN": "Invalid refresh token.",
|
||||
"REFRESH_TOKEN_REVOKED_SUCCESSFULLY": "Refresh token revoked successfully.",
|
||||
"PUBLIC_REGISTRATION_DISABLED": "New account registration is currently disabled on this server. Please contact the administrator.",
|
||||
"USERNAME_REQUIRED": "Username is required.",
|
||||
"USERNAME_ALREADY_IN_USE": "Username is already in use.",
|
||||
"USERNAME_AVAILABLE": "Username is available.",
|
||||
"USERNAME_MISMATCH": "Username does not match the current user.",
|
||||
"PASSWORD_MISMATCH": "The provided password does not match your current password.",
|
||||
"ACCOUNT_SUCCESSFULLY_DELETED": "Account successfully deleted.",
|
||||
"USERNAME_EMPTY_OR_WHITESPACE": "Username cannot be empty or whitespace.",
|
||||
"USERNAME_TOO_SHORT": "Username too short: must be at least 3 characters long.",
|
||||
"USERNAME_TOO_LONG": "Username too long: cannot be longer than 40 characters.",
|
||||
"USERNAME_INVALID_EMAIL": "Invalid email address.",
|
||||
"USERNAME_INVALID_CHARACTERS": "Username is invalid, can only contain letters or digits.",
|
||||
"VAULT_NOT_UP_TO_DATE": "Your vault is not up-to-date. Please synchronize your vault and try again.",
|
||||
"UNKNOWN_ERROR": "Ein unbekannter Fehler ist aufgetreten. Bitte versuche es erneut.",
|
||||
"ACCOUNT_LOCKED": "Das Konto wurde wegen zu vieler fehlgeschlagener Anmeldeversuche vorübergehend gesperrt. Bitte versuche es später erneut.",
|
||||
"ACCOUNT_BLOCKED": "Dein Konto wurde deaktiviert. Wenn Du glaubst, dass dies ein Fehler ist, kontaktiere bitte den Support.",
|
||||
"USER_NOT_FOUND": "Ungültiger Benutzername oder Passwort. Bitte versuche es erneut.",
|
||||
"INVALID_AUTHENTICATOR_CODE": "Ungültiger Sicherheits-Code. Bitte versuche es erneut.",
|
||||
"INVALID_RECOVERY_CODE": "Ungültiger Wiederherstellungscode. Bitte versuche es erneut.",
|
||||
"REFRESH_TOKEN_REQUIRED": "Aktualisierungstoken ist erforderlich.",
|
||||
"INVALID_REFRESH_TOKEN": "Ungültiger Aktualisierungstoken.",
|
||||
"REFRESH_TOKEN_REVOKED_SUCCESSFULLY": "Aktualisierungstoken wurde erfolgreich widerrufen.",
|
||||
"PUBLIC_REGISTRATION_DISABLED": "Die Registrierung eines neuen Kontos ist auf diesem Server derzeit deaktiviert. Bitte kontaktiere den Administrator.",
|
||||
"USERNAME_REQUIRED": "Der Benutzername ist erforderlich.",
|
||||
"USERNAME_ALREADY_IN_USE": "Benutzername ist bereits vergeben.",
|
||||
"USERNAME_AVAILABLE": "Der Benutzername ist verfügbar.",
|
||||
"USERNAME_MISMATCH": "Der Benutzername stimmt nicht mit dem aktuellen Benutzer überein.",
|
||||
"PASSWORD_MISMATCH": "Das angegebene Passwort stimmt nicht mit Deinem aktuellen Passwort überein.",
|
||||
"ACCOUNT_SUCCESSFULLY_DELETED": "Konto erfolgreich gelöscht.",
|
||||
"USERNAME_EMPTY_OR_WHITESPACE": "Der Benutzername darf nicht leer sein.",
|
||||
"USERNAME_TOO_SHORT": "Der Benutzername ist zu kurz. Er muss mindestens 3 Zeichen lang sein.",
|
||||
"USERNAME_TOO_LONG": "Der Benutzername ist zu lang. Er darf höchstens 40 Zeichen lang sein.",
|
||||
"USERNAME_INVALID_EMAIL": "Ungültige E-Mail-Adresse.",
|
||||
"USERNAME_INVALID_CHARACTERS": "Der Benutzername ist ungültig. Er darf nur aus Buchstaben oder Ziffern bestehen.",
|
||||
"VAULT_NOT_UP_TO_DATE": "Dein Tresor ist nicht aktuell. Bitte synchronisiere Deinen Tresor und versuche es erneut.",
|
||||
"INTERNAL_SERVER_ERROR": "Internal server error.",
|
||||
"VAULT_ERROR": "The local vault is not up-to-date. Please synchronize your vault by refreshing the page and try again."
|
||||
"VAULT_ERROR": "Der lokale Tresor ist nicht aktuell. Bitte synchronisiere Deinen Tresor, indem Du die Seite aktualisierst, und versuche es erneut."
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"or": "or",
|
||||
"new": "New",
|
||||
"cancel": "Cancel",
|
||||
"search": "Search",
|
||||
"vaultLocked": "AliasVault is locked.",
|
||||
"creatingNewAlias": "Creating new alias...",
|
||||
"noMatchesFound": "No matches found",
|
||||
"searchVault": "Search vault...",
|
||||
"serviceName": "Service name",
|
||||
"email": "Email",
|
||||
"username": "Username",
|
||||
"password": "Password",
|
||||
"enterServiceName": "Enter service name",
|
||||
"enterEmailAddress": "Enter email address",
|
||||
"enterUsername": "Enter username",
|
||||
"hideFor1Hour": "Hide for 1 hour (current site)",
|
||||
"hidePermanently": "Hide permanently (current site)",
|
||||
"createRandomAlias": "Create random alias",
|
||||
"createUsernamePassword": "Create username/password",
|
||||
"randomAlias": "Random alias",
|
||||
"usernamePassword": "Username/password",
|
||||
"createAndSaveAlias": "Create and save alias",
|
||||
"createAndSaveCredential": "Create and save credential",
|
||||
"randomIdentityDescription": "Generate a random identity with a random email address accessible in AliasVault.",
|
||||
"randomIdentityDescriptionDropdown": "Random identity with random email",
|
||||
"manualCredentialDescription": "Specify your own email address and username.",
|
||||
"manualCredentialDescriptionDropdown": "Manual username and password",
|
||||
"failedToCreateIdentity": "Failed to create identity. Please try again.",
|
||||
"enterEmailAndOrUsername": "Enter email and/or username",
|
||||
"autofillWithAliasVault": "Autofill with AliasVault",
|
||||
"generateRandomPassword": "Generate random password (copy to clipboard)",
|
||||
"generateNewPassword": "Generate new password",
|
||||
"togglePasswordVisibility": "Toggle password visibility",
|
||||
"passwordCopiedToClipboard": "Password copied to clipboard",
|
||||
"enterEmailAndOrUsernameError": "Enter email and/or username",
|
||||
"openAliasVaultToUpgrade": "Open AliasVault to upgrade",
|
||||
"vaultUpgradeRequired": "Vault upgrade required.",
|
||||
"dismissPopup": "Dismiss popup"
|
||||
"or": "oder",
|
||||
"new": "Neu",
|
||||
"cancel": "Abbrechen",
|
||||
"search": "Suche",
|
||||
"vaultLocked": "AliasVault ist gesperrt.",
|
||||
"creatingNewAlias": "Neuen Alias erstellen...",
|
||||
"noMatchesFound": "Keine Treffer gefunden",
|
||||
"searchVault": "Tresor durchsuchen...",
|
||||
"serviceName": "Name des Dienstes",
|
||||
"email": "E-Mail-Adresse",
|
||||
"username": "Benutzername",
|
||||
"password": "Passwort",
|
||||
"enterServiceName": "Name des Dienstes eingeben",
|
||||
"enterEmailAddress": "E-Mail-Adresse eingeben",
|
||||
"enterUsername": "Benutzername eingeben",
|
||||
"hideFor1Hour": "Für 1 Stunde ausblenden (aktuelle Seite)",
|
||||
"hidePermanently": "Dauerhaft ausblenden (aktuelle Seite)",
|
||||
"createRandomAlias": "Zufälligen Alias generieren",
|
||||
"createUsernamePassword": "Benutzername/Passwort erstellen",
|
||||
"randomAlias": "Zufälliger Alias",
|
||||
"usernamePassword": "Benutzername/Passwort",
|
||||
"createAndSaveAlias": "Alias erstellen und speichern",
|
||||
"createAndSaveCredential": "Zugang erstellen und speichern",
|
||||
"randomIdentityDescription": "Generiere eine zufällige Identität mit einer zufälligen E-Mail-Adresse von AliasVault.",
|
||||
"randomIdentityDescriptionDropdown": "Zufällige Identität mit zufälliger E-Mail-Adresse",
|
||||
"manualCredentialDescription": "Gebe Deine eigene E-Mail-Adresse und Benutzernamen an.",
|
||||
"manualCredentialDescriptionDropdown": "Manueller Benutzername und Passwort",
|
||||
"failedToCreateIdentity": "Das Erstellen der Identität ist fehlgeschlagen. Bitte versuche es erneut.",
|
||||
"enterEmailAndOrUsername": "E-Mail-Adresse und/oder Benutzername eingeben",
|
||||
"autofillWithAliasVault": "Autofill mit AliasVault",
|
||||
"generateRandomPassword": "Zufälliges Passwort erzeugen (wird in die Zwischenablage kopiert)",
|
||||
"generateNewPassword": "Neues Passwort erzeugen",
|
||||
"togglePasswordVisibility": "Passwort ein-/ausblenden",
|
||||
"passwordCopiedToClipboard": "Passwort in die Zwischenablage kopiert",
|
||||
"enterEmailAndOrUsernameError": "E-Mail-Adresse und/oder Benutzername eingeben",
|
||||
"openAliasVaultToUpgrade": "Zum Aktualisieren AliasVault öffnen ",
|
||||
"vaultUpgradeRequired": "Aktualisierung des Tresors erforderlich.",
|
||||
"dismissPopup": "Popup schliessen"
|
||||
},
|
||||
"credentials": {
|
||||
"title": "Credentials",
|
||||
"addCredential": "Add Credential",
|
||||
"editCredential": "Edit Credential",
|
||||
"deleteCredential": "Delete Credential",
|
||||
"credentialDetails": "Credential Details",
|
||||
"serviceName": "Service Name",
|
||||
"serviceNamePlaceholder": "e.g., Gmail, Facebook, Bank",
|
||||
"website": "Website",
|
||||
"title": "Zugangsdaten",
|
||||
"addCredential": "Zugang hinzufügen",
|
||||
"editCredential": "Zugang bearbeiten",
|
||||
"deleteCredential": "Zugang löschen",
|
||||
"credentialDetails": "Details zum Zugang",
|
||||
"serviceName": "Name des Dienstes",
|
||||
"serviceNamePlaceholder": "z. B. Gmail, Facebook, Bank",
|
||||
"website": "Webseite",
|
||||
"websitePlaceholder": "https://example.com",
|
||||
"username": "Username",
|
||||
"usernamePlaceholder": "Enter username",
|
||||
"password": "Password",
|
||||
"passwordPlaceholder": "Enter password",
|
||||
"generatePassword": "Generate Password",
|
||||
"copyPassword": "Copy Password",
|
||||
"showPassword": "Show Password",
|
||||
"hidePassword": "Hide Password",
|
||||
"notes": "Notes",
|
||||
"notesPlaceholder": "Additional notes...",
|
||||
"totp": "Two-Factor Authentication",
|
||||
"totpCode": "TOTP Code",
|
||||
"copyTotp": "Copy TOTP",
|
||||
"totpSecret": "TOTP Secret",
|
||||
"totpSecretPlaceholder": "Enter TOTP secret key",
|
||||
"noCredentials": "No credentials found",
|
||||
"noCredentialsDescription": "Add your first credential to get started",
|
||||
"searchCredentials": "Search credentials...",
|
||||
"searchPlaceholder": "Search credentials...",
|
||||
"welcomeTitle": "Welcome to AliasVault!",
|
||||
"welcomeDescription": "To use the AliasVault browser extension: navigate to a website and use the AliasVault autofill popup to create a new credential.",
|
||||
"lastUsed": "Last used",
|
||||
"createdAt": "Created",
|
||||
"updatedAt": "Last updated",
|
||||
"username": "Benutzername",
|
||||
"usernamePlaceholder": "Benutzername eingeben",
|
||||
"password": "Passwort",
|
||||
"passwordPlaceholder": "Passwort eingeben",
|
||||
"generatePassword": "Passwort generieren",
|
||||
"copyPassword": "Passwort kopieren",
|
||||
"showPassword": "Passwort anzeigen",
|
||||
"hidePassword": "Passwort verbergen",
|
||||
"notes": "Notizen",
|
||||
"notesPlaceholder": "Zusätzliche Notizen...",
|
||||
"totp": "Zwei-Faktor-Authentifizierung",
|
||||
"totpCode": "TOTP-Code",
|
||||
"copyTotp": "TOTP kopieren",
|
||||
"totpSecret": "TOTP-Geheimcode",
|
||||
"totpSecretPlaceholder": "TOTP-Geheimcode eingeben",
|
||||
"noCredentials": "Keine Zugangsdaten gefunden",
|
||||
"noCredentialsDescription": "Erstelle Deinen ersten Zugang, um loszulegen",
|
||||
"searchPlaceholder": "Zugangsdaten suchen...",
|
||||
"welcomeTitle": "Willkommen bei AliasVault!",
|
||||
"welcomeDescription": "Du möchtest die AliasVault-Browser-Erweiterung verwenden? Navigiere zu einer Website und verwende das AliasVault-Popup-Fenster um einen neuen Zugang zu erstellen.",
|
||||
"createdAt": "Erstellt",
|
||||
"updatedAt": "Zuletzt aktualisiert",
|
||||
"autofill": "Autofill",
|
||||
"fillForm": "Fill Form",
|
||||
"copyUsername": "Copy Username",
|
||||
"openWebsite": "Open Website",
|
||||
"favorite": "Favorite",
|
||||
"unfavorite": "Remove from Favorites",
|
||||
"deleteConfirm": "Are you sure you want to delete this credential?",
|
||||
"deleteSuccess": "Credential deleted successfully",
|
||||
"saveSuccess": "Credential saved successfully",
|
||||
"copySuccess": "Copied to clipboard",
|
||||
"tags": "Tags",
|
||||
"addTag": "Add Tag",
|
||||
"removeTag": "Remove Tag",
|
||||
"folder": "Folder",
|
||||
"selectFolder": "Select Folder",
|
||||
"createFolder": "Create Folder",
|
||||
"saveCredential": "Save credential",
|
||||
"deleteCredentialTitle": "Delete Credential",
|
||||
"deleteCredentialConfirm": "Are you sure you want to delete this credential? This action cannot be undone.",
|
||||
"randomAlias": "Random Alias",
|
||||
"manual": "Manual",
|
||||
"service": "Service",
|
||||
"serviceUrl": "Service URL",
|
||||
"loginCredentials": "Login Credentials",
|
||||
"generateRandomUsername": "Generate random username",
|
||||
"generateRandomPassword": "Generate random password",
|
||||
"changePasswordComplexity": "Change password complexity",
|
||||
"passwordLength": "Password length",
|
||||
"includeLowercase": "Include lowercase letters",
|
||||
"includeUppercase": "Include uppercase letters",
|
||||
"includeNumbers": "Include numbers",
|
||||
"includeSpecialChars": "Include special characters",
|
||||
"avoidAmbiguousChars": "Avoid ambiguous characters (o, 0, etc.)",
|
||||
"generateNewPreview": "Generate new preview",
|
||||
"generateRandomAlias": "Generate Random Alias",
|
||||
"fillForm": "Formular ausfüllen",
|
||||
"deleteConfirm": "Bist Du sicher, dass Du diesen Zugang löschen möchtest?",
|
||||
"saveSuccess": "Zugang erfolgreich gespeichert.",
|
||||
"tags": "Schlagwörter",
|
||||
"addTag": "Schlagwort hinzufügen",
|
||||
"removeTag": "Schlagwort entfernen",
|
||||
"folder": "Ordner",
|
||||
"selectFolder": "Ordner auswählen",
|
||||
"createFolder": "Ordner erstellen",
|
||||
"saveCredential": "Zugang speichern",
|
||||
"deleteCredentialTitle": "Zugang löschen",
|
||||
"deleteCredentialConfirm": "Bist Du sicher, dass Du diesen Zugang löschen möchtest? Diese Aktion kann nicht rückgängig gemacht werden.",
|
||||
"randomAlias": "Zufälliger Alias",
|
||||
"manual": "Manuell",
|
||||
"service": "Dienst",
|
||||
"serviceUrl": "URL des Dienstes",
|
||||
"loginCredentials": "Zugangsdaten",
|
||||
"generateRandomUsername": "Zufälligen Benutzernamen generieren",
|
||||
"generateRandomPassword": "Zufälliges Passwort generieren",
|
||||
"changePasswordComplexity": "Komplexität des Passworts ändern",
|
||||
"passwordLength": "Passwortlänge",
|
||||
"includeLowercase": "Kleinbuchstaben (a-z)",
|
||||
"includeUppercase": "Großbuchstaben (A-Z)",
|
||||
"includeNumbers": "Ziffern (0-9)",
|
||||
"includeSpecialChars": "Sonderzeichen (!@#$%^&*)",
|
||||
"avoidAmbiguousChars": "Mehrdeutige Zeichen (1, l, I, 0, O, etc.) vermeiden",
|
||||
"generateNewPreview": "Neue Vorschau erstellen",
|
||||
"generateRandomAlias": "Zufälligen Alias generieren",
|
||||
"alias": "Alias",
|
||||
"firstName": "First Name",
|
||||
"lastName": "Last Name",
|
||||
"nickName": "Nick Name",
|
||||
"gender": "Gender",
|
||||
"birthDate": "Birth Date",
|
||||
"birthDatePlaceholder": "YYYY-MM-DD",
|
||||
"metadata": "Metadata",
|
||||
"errors": {
|
||||
"invalidUrl": "Please enter a valid URL",
|
||||
"saveError": "Failed to save credential",
|
||||
"loadError": "Failed to load credentials",
|
||||
"deleteError": "Failed to delete credential",
|
||||
"copyError": "Failed to copy to clipboard"
|
||||
},
|
||||
"firstName": "Vorname",
|
||||
"lastName": "Nachname",
|
||||
"nickName": "Spitzname",
|
||||
"gender": "Geschlecht",
|
||||
"birthDate": "Geburtsdatum",
|
||||
"birthDatePlaceholder": "JJJJ-MM-TT",
|
||||
"metadata": "Metadaten",
|
||||
"validation": {
|
||||
"required": "This field is required",
|
||||
"serviceNameRequired": "Service name is required",
|
||||
"invalidUrl": "Invalid URL format",
|
||||
"invalidEmail": "Invalid email format",
|
||||
"invalidDateFormat": "Date must be in YYYY-MM-DD format"
|
||||
}
|
||||
"required": "Dieses Feld ist ein Pflichtfeld",
|
||||
"serviceNameRequired": "Name des Dienstes ist erforderlich",
|
||||
"invalidEmail": "Ungültiges E-Mail-Format",
|
||||
"invalidDateFormat": "Bitte gib das Datum im Format JJJJ-MM-TT ein."
|
||||
},
|
||||
"privateEmailTitle": "Private E-Mail-Adresse",
|
||||
"privateEmailAliasVaultServer": "AliasVault-Server",
|
||||
"privateEmailDescription": "Ende-zu-Ende verschlüsselt, vollständig privat.",
|
||||
"publicEmailTitle": "Öffentliche Temp-E-Mail-Anbieter",
|
||||
"publicEmailDescription": "Anonyme, aber beschränkte Privatsphäre. E-Mail-Inhalt ist für jeden lesbar, der die Adresse kennt.",
|
||||
"useDomainChooser": "Domain-Auswahl verwenden",
|
||||
"enterCustomDomain": "Eigene Domain eingeben",
|
||||
"enterFullEmail": "Vollständige E-Mail-Adresse eingeben",
|
||||
"enterEmailPrefix": "E-Mail-Präfix eingeben"
|
||||
},
|
||||
"emails": {
|
||||
"title": "Emails",
|
||||
"deleteEmailTitle": "Delete Email",
|
||||
"deleteEmailConfirm": "Are you sure you want to permanently delete this email?",
|
||||
"from": "From",
|
||||
"to": "To",
|
||||
"date": "Date",
|
||||
"emailContent": "Email content",
|
||||
"attachments": "Attachments",
|
||||
"emailNotFound": "Email not found",
|
||||
"noEmails": "No emails found",
|
||||
"noEmailsDescription": "You have not received any emails at your private email addresses yet. When you receive a new email, it will appear here.",
|
||||
"title": "E-Mails",
|
||||
"deleteEmailTitle": "E-Mail löschen",
|
||||
"deleteEmailConfirm": "Bist Du sicher, dass Du diese E-Mail unwiderruflich löschen möchtest?",
|
||||
"from": "Von",
|
||||
"to": "An",
|
||||
"date": "Datum",
|
||||
"emailContent": "Inhalt der E-Mail",
|
||||
"attachments": "Anhänge",
|
||||
"emailNotFound": "E-Mail nicht gefunden",
|
||||
"noEmails": "Keine E-Mails gefunden",
|
||||
"noEmailsDescription": "Du hast bisher keine E-Mails an Deine privaten E-Mail-Adressen erhalten. Neue E-Mails werden hier angezeigt, sobald sie eintreffen.",
|
||||
"dateFormat": {
|
||||
"justNow": "just now",
|
||||
"minutesAgo_single": "{{count}} min ago",
|
||||
"minutesAgo_plural": "{{count}} mins ago",
|
||||
"hoursAgo_single": "{{count}} hr ago",
|
||||
"hoursAgo_plural": "{{count}} hrs ago",
|
||||
"yesterday": "yesterday"
|
||||
"justNow": "gerade eben",
|
||||
"minutesAgo_single": "vor {{count}} Minute",
|
||||
"minutesAgo_plural": "vor {{count}} Minuten",
|
||||
"hoursAgo_single": "vor {{count}} Stunde",
|
||||
"hoursAgo_plural": "vor {{count}} Stunden",
|
||||
"yesterday": "gestern"
|
||||
},
|
||||
"errors": {
|
||||
"emailLoadError": "An error occurred while loading emails. Please try again later.",
|
||||
"emailUnexpectedError": "An unexpected error occurred while loading emails. Please try again later."
|
||||
"emailLoadError": "Beim Laden der E-Mails ist ein Fehler aufgetreten. Bitte versuche es später erneut.",
|
||||
"emailUnexpectedError": "Beim Laden der E-Mails ist ein unerwarteter Fehler aufgetreten. Bitte versuche es später erneut."
|
||||
},
|
||||
"apiErrors": {
|
||||
"CLAIM_DOES_NOT_MATCH_USER": "The current chosen email address is already in use. Please change the email address by editing this credential.",
|
||||
"CLAIM_DOES_NOT_EXIST": "An error occurred while trying to load the emails. Please try to edit and save the credential entry to synchronize the database, then try again."
|
||||
"CLAIM_DOES_NOT_MATCH_USER": "Die aktuell gewählte E-Mail-Adresse wird bereits verwendet. Bitte ändere die E-Mail-Adresse, indem Du diese Zugangsdaten bearbeitest.",
|
||||
"CLAIM_DOES_NOT_EXIST": "Beim Laden der E-Mails ist ein Fehler aufgetreten. Bitte bearbeite und speichere den Eintrag, um die Datenbank zu synchronisieren, und versuche es dann erneut."
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"title": "Settings",
|
||||
"serverUrl": "Server URL",
|
||||
"language": "Language",
|
||||
"autofillEnabled": "Enable Autofill",
|
||||
"title": "Einstellungen",
|
||||
"serverUrl": "URL des Servers",
|
||||
"language": "Sprache",
|
||||
"autofillEnabled": "Autofill aktivieren",
|
||||
"version": "Version",
|
||||
"openInNewWindow": "Open in new window",
|
||||
"openWebApp": "Open web app",
|
||||
"loggedIn": "Logged in",
|
||||
"logout": "Logout",
|
||||
"globalSettings": "Global Settings",
|
||||
"autofillPopup": "Autofill popup",
|
||||
"activeOnAllSites": "Active on all sites (unless disabled below)",
|
||||
"disabledOnAllSites": "Disabled on all sites",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"rightClickContextMenu": "Right-click context menu",
|
||||
"siteSpecificSettings": "Site-Specific Settings",
|
||||
"autofillPopupOn": "Autofill popup on: ",
|
||||
"enabledForThisSite": "Enabled for this site",
|
||||
"disabledForThisSite": "Disabled for this site",
|
||||
"temporarilyDisabledUntil": "Temporarily disabled until ",
|
||||
"resetAllSiteSettings": "Reset all site-specific settings",
|
||||
"appearance": "Appearance",
|
||||
"theme": "Theme",
|
||||
"useDefault": "Use default",
|
||||
"light": "Light",
|
||||
"dark": "Dark",
|
||||
"keyboardShortcuts": "Keyboard Shortcuts",
|
||||
"configureKeyboardShortcuts": "Configure keyboard shortcuts",
|
||||
"configure": "Configure",
|
||||
"openInNewWindow": "In neuem Fenster öffnen",
|
||||
"openWebApp": "Web-App öffnen",
|
||||
"loggedIn": "Angemeldet",
|
||||
"logout": "Abmelden",
|
||||
"globalSettings": "Allgemeine Einstellungen",
|
||||
"autofillPopup": "Autofill-Popup",
|
||||
"activeOnAllSites": "Auf allen Seiten aktiv (sofern nicht unten deaktiviert)",
|
||||
"disabledOnAllSites": "Auf allen Seiten deaktiviert",
|
||||
"enabled": "Aktiviert",
|
||||
"disabled": "Deaktiviert",
|
||||
"rightClickContextMenu": "Kontextmenü mit Rechtsklick",
|
||||
"autofillMatching": "Autofill-Übereinstimmung",
|
||||
"autofillMatchingMode": "Autofill-Übereinstimmungs-Modus",
|
||||
"autofillMatchingModeDescription": "Legt fest, welche Zugangsdaten als Übereinstimmung angesehen werden und wird als Vorschlag im Autofill-Popup für eine bestimmte Website angezeigt.",
|
||||
"autofillMatchingDefault": "URL + Subdomain + Wildcard-Name",
|
||||
"autofillMatchingUrlSubdomain": "URL + Subdomain",
|
||||
"autofillMatchingUrlExact": "Nur exakte URL-Domain",
|
||||
"siteSpecificSettings": "Seitenspezifische Einstellungen",
|
||||
"autofillPopupOn": "Autofill-Popup auf: ",
|
||||
"enabledForThisSite": "Für diese Seite aktiviert",
|
||||
"disabledForThisSite": "Für diese Seite deaktivieren",
|
||||
"temporarilyDisabledUntil": "Vorübergehend deaktiviert bis ",
|
||||
"resetAllSiteSettings": "Alle seitenspezifischen Einstellungen zurücksetzen",
|
||||
"appearance": "Erscheinungsbild",
|
||||
"theme": "Thema",
|
||||
"useDefault": "Standard verwenden",
|
||||
"light": "Hell",
|
||||
"dark": "Dunkel",
|
||||
"keyboardShortcuts": "Tastaturkürzel",
|
||||
"configureKeyboardShortcuts": "Tastaturkürzel konfigurieren",
|
||||
"configure": "Konfigurieren",
|
||||
"security": "Sicherheit",
|
||||
"clipboardClearTimeout": "Zwischenablage nach dem Kopieren automatisch löschen",
|
||||
"clipboardClearTimeoutDescription": "Zwischenablage nach dem Kopieren sensibler Daten automatisch löschen",
|
||||
"clipboardClearDisabled": "Niemals löschen",
|
||||
"clipboardClear5Seconds": "Nach 5 Sekunden löschen",
|
||||
"clipboardClear10Seconds": "Nach 10 Sekunden löschen",
|
||||
"clipboardClear15Seconds": "Nach 15 Sekunden löschen",
|
||||
"autoLockTimeout": "Sperr-Timeout",
|
||||
"autoLockTimeoutDescription": "Tresor bei Inaktivität automatisch sperren",
|
||||
"autoLockTimeoutHelp": "Der Tresor wird erst nach dem angegebenen Zeitraum der Inaktivität gesperrt (keine Nutzung von Autofill oder Öffnen des Erweiterungs-Popups). Der Tresor wird immer gesperrt, wenn der Browser geschlossen wird, unabhängig von dieser Einstellung.",
|
||||
"autoLockNever": "Niemals",
|
||||
"autoLock15Seconds": "15 Sekunden",
|
||||
"autoLock1Minute": "1 Minute",
|
||||
"autoLock5Minutes": "5 Minuten",
|
||||
"autoLock15Minutes": "15 Minuten",
|
||||
"autoLock30Minutes": "30 Minuten",
|
||||
"autoLock1Hour": "1 Stunde",
|
||||
"autoLock4Hours": "4 Stunden",
|
||||
"autoLock8Hours": "8 Stunden",
|
||||
"autoLock24Hours": "24 Stunden",
|
||||
"versionPrefix": "Version ",
|
||||
"preferences": "Einstellungen",
|
||||
"autofillSettings": "Autofill-Einstellungen",
|
||||
"clipboardSettings": "Zwischenablage-Einstellungen",
|
||||
"contextMenuSettings": "Kontextmenü-Einstellungen",
|
||||
"contextMenu": "Kontextmenü",
|
||||
"contextMenuEnabled": "Kontextmenü ist aktiviert",
|
||||
"contextMenuDisabled": "Kontextmenü ist deaktiviert",
|
||||
"contextMenuDescription": "Rechtsklicke auf Eingabefelder, um auf AliasVault-Optionen zuzugreifen",
|
||||
"selectLanguage": "Sprache auswählen",
|
||||
"validation": {
|
||||
"apiUrlRequired": "API URL is required",
|
||||
"apiUrlInvalid": "Please enter a valid API URL",
|
||||
"clientUrlRequired": "Client URL is required",
|
||||
"clientUrlInvalid": "Please enter a valid client URL"
|
||||
"apiUrlRequired": "API-URL ist erforderlich",
|
||||
"apiUrlInvalid": "Bitte gib eine gültige API-URL ein",
|
||||
"clientUrlRequired": "Client-URL ist erforderlich",
|
||||
"clientUrlInvalid": "Bitte gib eine gültige Client-URL ein"
|
||||
}
|
||||
},
|
||||
"upgrade": {
|
||||
"title": "Upgrade Vault",
|
||||
"subtitle": "AliasVault has updated and your vault needs to be upgraded. This should only take a few seconds.",
|
||||
"versionInformation": "Version Information",
|
||||
"yourVault": "Your vault:",
|
||||
"newVersion": "New version:",
|
||||
"upgrade": "Upgrade Vault",
|
||||
"upgrading": "Upgrading...",
|
||||
"logout": "Logout",
|
||||
"whatsNew": "What's New",
|
||||
"whatsNewDescription": "An upgrade is required to support the following changes:",
|
||||
"noDescriptionAvailable": "No description available for this version.",
|
||||
"okay": "Ok",
|
||||
"title": "Tresor aktualisieren",
|
||||
"subtitle": "AliasVault wurde aktualisiert. Dadurch muss auch Dein Tresor aktualisiert werden. Dies sollte nur wenige Sekunden dauern.",
|
||||
"versionInformation": "Versionsinformationen",
|
||||
"yourVault": "Dein Tresor:",
|
||||
"newVersion": "Neue Version:",
|
||||
"upgrade": "Tresor aktualisieren",
|
||||
"upgrading": "Aktualisieren...",
|
||||
"logout": "Abmelden",
|
||||
"whatsNew": "Neu in dieser Version",
|
||||
"whatsNewDescription": "Eine Aktualisierung ist erforderlich, um die folgenden Änderungen zu unterstützen:",
|
||||
"noDescriptionAvailable": "Für diese Version ist keine Beschreibung vorhanden.",
|
||||
"okay": "OK",
|
||||
"status": {
|
||||
"preparingUpgrade": "Preparing upgrade...",
|
||||
"vaultAlreadyUpToDate": "Vault is already up to date",
|
||||
"startingDatabaseTransaction": "Starting database transaction...",
|
||||
"applyingDatabaseMigrations": "Applying database migrations...",
|
||||
"applyingMigration": "Applying migration {{current}} of {{total}}...",
|
||||
"committingChanges": "Committing changes..."
|
||||
"preparingUpgrade": "Aktualisierung wird vorbereitet...",
|
||||
"vaultAlreadyUpToDate": "Tresor ist bereits aktualisiert",
|
||||
"startingDatabaseTransaction": "Datenbanktransaktion wird gestartet...",
|
||||
"applyingDatabaseMigrations": "Datenbankmigration wird durchgeführt...",
|
||||
"applyingMigration": "Führe Migration {{current}} von {{total}} durch...",
|
||||
"committingChanges": "Änderungen werden übernommen..."
|
||||
},
|
||||
"alerts": {
|
||||
"error": "Error",
|
||||
"unableToGetVersionInfo": "Unable to get version information. Please try again.",
|
||||
"selfHostedServer": "Self-Hosted Server",
|
||||
"selfHostedWarning": "If you're using a self-hosted server, make sure to also update your self-hosted instance as otherwise logging in to the web client will stop working.",
|
||||
"cancel": "Cancel",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
"error": "Fehler",
|
||||
"unableToGetVersionInfo": "Versionsinformationen konnten nicht abgerufen werden. Bitte versuche es erneut.",
|
||||
"selfHostedServer": "Selbstgehosteter Server",
|
||||
"selfHostedWarning": "Nutzt Du einen selbst gehosteten Server, musst Du Deine Instanz ebenfalls updaten. Andernfalls kannst Du Dich im Web-Client nicht mehr anmelden.",
|
||||
"cancel": "Abbrechen",
|
||||
"continueUpgrade": "Aktualisierung fortsetzen",
|
||||
"upgradeFailed": "Aktualisierung fehlgeschlagen",
|
||||
"failedToApplyMigration": "Migration fehlgeschlagen ({{current}} von {{total}})",
|
||||
"unknownErrorDuringUpgrade": "Bei der Aktualisierung ist ein unbekannter Fehler aufgetreten. Bitte versuche es erneut."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,26 +89,17 @@
|
||||
"executingOperation": "Executing operation...",
|
||||
"loadMore": "Load more",
|
||||
"errors": {
|
||||
"VaultMergeRequired": "Your vault needs to be updated. Please login on the AliasVault website and follow the steps.",
|
||||
"VaultOutdated": "Your vault is outdated. Please login on the AliasVault website and follow the steps.",
|
||||
"NoVaultFound": "Your account does not have a vault yet. Please complete the tutorial in the AliasVault web client before using the browser extension.",
|
||||
"serverNotAvailable": "The AliasVault server is not available. Please try again later or contact support if the problem persists.",
|
||||
"clientVersionNotSupported": "This version of the AliasVault browser extension is not supported by the server anymore. Please update your browser extension to the latest version.",
|
||||
"serverVersionNotSupported": "The AliasVault server needs to be updated to a newer version in order to use this browser extension. Please contact support if you need help.",
|
||||
"unknownError": "An unknown error occurred",
|
||||
"failedToStoreVault": "Failed to store vault",
|
||||
"vaultNotAvailable": "Vault not available",
|
||||
"failedToGetVault": "Failed to get vault",
|
||||
"failedToRetrieveData": "Failed to retrieve data",
|
||||
"vaultIsLocked": "Vault is locked",
|
||||
"failedToGetCredentials": "Failed to get credentials",
|
||||
"failedToCreateIdentity": "Failed to create identity",
|
||||
"failedToGetDefaultEmailDomain": "Failed to get default email domain",
|
||||
"failedToGetDefaultIdentitySettings": "Failed to get default identity settings",
|
||||
"failedToGetPasswordSettings": "Failed to get password settings",
|
||||
"failedToUploadVault": "Failed to upload vault",
|
||||
"noDerivedKeyAvailable": "No derived key available for encryption",
|
||||
"failedToUploadVaultToServer": "Failed to upload new vault to server",
|
||||
"noVaultOrDerivedKeyFound": "No vault or derived key found"
|
||||
"passwordChanged": "Your password has changed since the last time you logged in. Please login again for security reasons."
|
||||
},
|
||||
"apiErrors": {
|
||||
"UNKNOWN_ERROR": "An unknown error occurred. Please try again.",
|
||||
@@ -118,8 +109,6 @@
|
||||
"INVALID_AUTHENTICATOR_CODE": "Invalid authenticator code. Please try again.",
|
||||
"INVALID_RECOVERY_CODE": "Invalid recovery code. Please try again.",
|
||||
"REFRESH_TOKEN_REQUIRED": "Refresh token is required.",
|
||||
"USER_NOT_FOUND_IN_TOKEN": "User not found in token.",
|
||||
"USER_NOT_FOUND_IN_DATABASE": "User not found in database.",
|
||||
"INVALID_REFRESH_TOKEN": "Invalid refresh token.",
|
||||
"REFRESH_TOKEN_REVOKED_SUCCESSFULLY": "Refresh token revoked successfully.",
|
||||
"PUBLIC_REGISTRATION_DISABLED": "New account registration is currently disabled on this server. Please contact the administrator.",
|
||||
@@ -206,23 +195,15 @@
|
||||
"totpSecretPlaceholder": "Enter TOTP secret key",
|
||||
"noCredentials": "No credentials found",
|
||||
"noCredentialsDescription": "Add your first credential to get started",
|
||||
"searchCredentials": "Search credentials...",
|
||||
"searchPlaceholder": "Search credentials...",
|
||||
"welcomeTitle": "Welcome to AliasVault!",
|
||||
"welcomeDescription": "To use the AliasVault browser extension: navigate to a website and use the AliasVault autofill popup to create a new credential.",
|
||||
"lastUsed": "Last used",
|
||||
"createdAt": "Created",
|
||||
"updatedAt": "Last updated",
|
||||
"autofill": "Autofill",
|
||||
"fillForm": "Fill Form",
|
||||
"copyUsername": "Copy Username",
|
||||
"openWebsite": "Open Website",
|
||||
"favorite": "Favorite",
|
||||
"unfavorite": "Remove from Favorites",
|
||||
"deleteConfirm": "Are you sure you want to delete this credential?",
|
||||
"deleteSuccess": "Credential deleted successfully",
|
||||
"saveSuccess": "Credential saved successfully",
|
||||
"copySuccess": "Copied to clipboard",
|
||||
"tags": "Tags",
|
||||
"addTag": "Add Tag",
|
||||
"removeTag": "Remove Tag",
|
||||
@@ -256,20 +237,21 @@
|
||||
"birthDate": "Birth Date",
|
||||
"birthDatePlaceholder": "YYYY-MM-DD",
|
||||
"metadata": "Metadata",
|
||||
"errors": {
|
||||
"invalidUrl": "Please enter a valid URL",
|
||||
"saveError": "Failed to save credential",
|
||||
"loadError": "Failed to load credentials",
|
||||
"deleteError": "Failed to delete credential",
|
||||
"copyError": "Failed to copy to clipboard"
|
||||
},
|
||||
"validation": {
|
||||
"required": "This field is required",
|
||||
"serviceNameRequired": "Service name is required",
|
||||
"invalidUrl": "Invalid URL format",
|
||||
"invalidEmail": "Invalid email format",
|
||||
"invalidDateFormat": "Date must be in YYYY-MM-DD format"
|
||||
}
|
||||
},
|
||||
"privateEmailTitle": "Private Email",
|
||||
"privateEmailAliasVaultServer": "AliasVault server",
|
||||
"privateEmailDescription": "E2E encrypted, fully private.",
|
||||
"publicEmailTitle": "Public Temp Email Providers",
|
||||
"publicEmailDescription": "Anonymous but limited privacy. Email content is readable by anyone that knows the address.",
|
||||
"useDomainChooser": "Use domain chooser",
|
||||
"enterCustomDomain": "Enter custom domain",
|
||||
"enterFullEmail": "Enter full email address",
|
||||
"enterEmailPrefix": "Enter email prefix"
|
||||
},
|
||||
"emails": {
|
||||
"title": "Emails",
|
||||
@@ -317,6 +299,12 @@
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"rightClickContextMenu": "Right-click context menu",
|
||||
"autofillMatching": "Autofill Matching",
|
||||
"autofillMatchingMode": "Autofill matching mode",
|
||||
"autofillMatchingModeDescription": "Determines which credentials are considered a match and shown as suggestions in the autofill popup for a given website.",
|
||||
"autofillMatchingDefault": "URL + subdomain + name wildcard",
|
||||
"autofillMatchingUrlSubdomain": "URL + subdomain",
|
||||
"autofillMatchingUrlExact": "Exact URL domain only",
|
||||
"siteSpecificSettings": "Site-Specific Settings",
|
||||
"autofillPopupOn": "Autofill popup on: ",
|
||||
"enabledForThisSite": "Enabled for this site",
|
||||
@@ -331,7 +319,36 @@
|
||||
"keyboardShortcuts": "Keyboard Shortcuts",
|
||||
"configureKeyboardShortcuts": "Configure keyboard shortcuts",
|
||||
"configure": "Configure",
|
||||
"security": "Security",
|
||||
"clipboardClearTimeout": "Clear clipboard after copying",
|
||||
"clipboardClearTimeoutDescription": "Automatically clear the clipboard after copying sensitive data",
|
||||
"clipboardClearDisabled": "Never clear",
|
||||
"clipboardClear5Seconds": "Clear after 5 seconds",
|
||||
"clipboardClear10Seconds": "Clear after 10 seconds",
|
||||
"clipboardClear15Seconds": "Clear after 15 seconds",
|
||||
"autoLockTimeout": "Auto-lock Timeout",
|
||||
"autoLockTimeoutDescription": "Automatically lock the vault after a period of inactivity",
|
||||
"autoLockTimeoutHelp": "The vault will only lock after the specified period of inactivity (no autofill usage or extension popup opened). The vault will always lock when the browser is closed, regardless of this setting.",
|
||||
"autoLockNever": "Never",
|
||||
"autoLock15Seconds": "15 seconds",
|
||||
"autoLock1Minute": "1 minute",
|
||||
"autoLock5Minutes": "5 minutes",
|
||||
"autoLock15Minutes": "15 minutes",
|
||||
"autoLock30Minutes": "30 minutes",
|
||||
"autoLock1Hour": "1 hour",
|
||||
"autoLock4Hours": "4 hours",
|
||||
"autoLock8Hours": "8 hours",
|
||||
"autoLock24Hours": "24 hours",
|
||||
"versionPrefix": "Version ",
|
||||
"preferences": "Preferences",
|
||||
"autofillSettings": "Autofill Settings",
|
||||
"clipboardSettings": "Clipboard Settings",
|
||||
"contextMenuSettings": "Context Menu Settings",
|
||||
"contextMenu": "Context Menu",
|
||||
"contextMenuEnabled": "Context menu is enabled",
|
||||
"contextMenuDisabled": "Context menu is disabled",
|
||||
"contextMenuDescription": "Right-click on input fields to access AliasVault options",
|
||||
"selectLanguage": "Select Language",
|
||||
"validation": {
|
||||
"apiUrlRequired": "API URL is required",
|
||||
"apiUrlInvalid": "Please enter a valid API URL",
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
"loginTitle": "Log in to AliasVault",
|
||||
"username": "Username or email",
|
||||
"usernamePlaceholder": "name / name@company.com",
|
||||
"password": "Password",
|
||||
"password": "Contraseña",
|
||||
"passwordPlaceholder": "Enter your password",
|
||||
"rememberMe": "Remember me",
|
||||
"loginButton": "Login",
|
||||
"loginButton": "Iniciar sesión",
|
||||
"noAccount": "No account yet?",
|
||||
"createVault": "Create new vault",
|
||||
"twoFactorTitle": "Please enter the authentication code from your authenticator app.",
|
||||
@@ -15,7 +15,7 @@
|
||||
"verify": "Verify",
|
||||
"cancel": "Cancel",
|
||||
"twoFactorNote": "Note: if you don't have access to your authenticator device, you can reset your 2FA with a recovery code by logging in via the website.",
|
||||
"masterPassword": "Master Password",
|
||||
"masterPassword": "Contraseña maestra",
|
||||
"unlockVault": "Unlock Vault",
|
||||
"unlockTitle": "Unlock Your Vault",
|
||||
"unlockDescription": "Enter your master password to unlock your vault.",
|
||||
@@ -89,26 +89,17 @@
|
||||
"executingOperation": "Executing operation...",
|
||||
"loadMore": "Load more",
|
||||
"errors": {
|
||||
"VaultMergeRequired": "Your vault needs to be updated. Please login on the AliasVault website and follow the steps.",
|
||||
"VaultOutdated": "Your vault is outdated. Please login on the AliasVault website and follow the steps.",
|
||||
"NoVaultFound": "Your account does not have a vault yet. Please complete the tutorial in the AliasVault web client before using the browser extension.",
|
||||
"serverNotAvailable": "The AliasVault server is not available. Please try again later or contact support if the problem persists.",
|
||||
"clientVersionNotSupported": "This version of the AliasVault browser extension is not supported by the server anymore. Please update your browser extension to the latest version.",
|
||||
"serverVersionNotSupported": "The AliasVault server needs to be updated to a newer version in order to use this browser extension. Please contact support if you need help.",
|
||||
"unknownError": "An unknown error occurred",
|
||||
"failedToStoreVault": "Failed to store vault",
|
||||
"vaultNotAvailable": "Vault not available",
|
||||
"failedToGetVault": "Failed to get vault",
|
||||
"failedToRetrieveData": "Failed to retrieve data",
|
||||
"vaultIsLocked": "Vault is locked",
|
||||
"failedToGetCredentials": "Failed to get credentials",
|
||||
"failedToCreateIdentity": "Failed to create identity",
|
||||
"failedToGetDefaultEmailDomain": "Failed to get default email domain",
|
||||
"failedToGetDefaultIdentitySettings": "Failed to get default identity settings",
|
||||
"failedToGetPasswordSettings": "Failed to get password settings",
|
||||
"failedToUploadVault": "Failed to upload vault",
|
||||
"noDerivedKeyAvailable": "No derived key available for encryption",
|
||||
"failedToUploadVaultToServer": "Failed to upload new vault to server",
|
||||
"noVaultOrDerivedKeyFound": "No vault or derived key found"
|
||||
"passwordChanged": "Your password has changed since the last time you logged in. Please login again for security reasons."
|
||||
},
|
||||
"apiErrors": {
|
||||
"UNKNOWN_ERROR": "An unknown error occurred. Please try again.",
|
||||
@@ -118,8 +109,6 @@
|
||||
"INVALID_AUTHENTICATOR_CODE": "Invalid authenticator code. Please try again.",
|
||||
"INVALID_RECOVERY_CODE": "Invalid recovery code. Please try again.",
|
||||
"REFRESH_TOKEN_REQUIRED": "Refresh token is required.",
|
||||
"USER_NOT_FOUND_IN_TOKEN": "User not found in token.",
|
||||
"USER_NOT_FOUND_IN_DATABASE": "User not found in database.",
|
||||
"INVALID_REFRESH_TOKEN": "Invalid refresh token.",
|
||||
"REFRESH_TOKEN_REVOKED_SUCCESSFULLY": "Refresh token revoked successfully.",
|
||||
"PUBLIC_REGISTRATION_DISABLED": "New account registration is currently disabled on this server. Please contact the administrator.",
|
||||
@@ -206,23 +195,15 @@
|
||||
"totpSecretPlaceholder": "Enter TOTP secret key",
|
||||
"noCredentials": "No credentials found",
|
||||
"noCredentialsDescription": "Add your first credential to get started",
|
||||
"searchCredentials": "Search credentials...",
|
||||
"searchPlaceholder": "Search credentials...",
|
||||
"welcomeTitle": "Welcome to AliasVault!",
|
||||
"welcomeDescription": "To use the AliasVault browser extension: navigate to a website and use the AliasVault autofill popup to create a new credential.",
|
||||
"lastUsed": "Last used",
|
||||
"createdAt": "Created",
|
||||
"updatedAt": "Last updated",
|
||||
"autofill": "Autofill",
|
||||
"fillForm": "Fill Form",
|
||||
"copyUsername": "Copy Username",
|
||||
"openWebsite": "Open Website",
|
||||
"favorite": "Favorite",
|
||||
"unfavorite": "Remove from Favorites",
|
||||
"deleteConfirm": "Are you sure you want to delete this credential?",
|
||||
"deleteSuccess": "Credential deleted successfully",
|
||||
"saveSuccess": "Credential saved successfully",
|
||||
"copySuccess": "Copied to clipboard",
|
||||
"tags": "Tags",
|
||||
"addTag": "Add Tag",
|
||||
"removeTag": "Remove Tag",
|
||||
@@ -256,20 +237,21 @@
|
||||
"birthDate": "Birth Date",
|
||||
"birthDatePlaceholder": "YYYY-MM-DD",
|
||||
"metadata": "Metadata",
|
||||
"errors": {
|
||||
"invalidUrl": "Please enter a valid URL",
|
||||
"saveError": "Failed to save credential",
|
||||
"loadError": "Failed to load credentials",
|
||||
"deleteError": "Failed to delete credential",
|
||||
"copyError": "Failed to copy to clipboard"
|
||||
},
|
||||
"validation": {
|
||||
"required": "This field is required",
|
||||
"serviceNameRequired": "Service name is required",
|
||||
"invalidUrl": "Invalid URL format",
|
||||
"invalidEmail": "Invalid email format",
|
||||
"invalidDateFormat": "Date must be in YYYY-MM-DD format"
|
||||
}
|
||||
},
|
||||
"privateEmailTitle": "Private Email",
|
||||
"privateEmailAliasVaultServer": "AliasVault server",
|
||||
"privateEmailDescription": "E2E encrypted, fully private.",
|
||||
"publicEmailTitle": "Public Temp Email Providers",
|
||||
"publicEmailDescription": "Anonymous but limited privacy. Email content is readable by anyone that knows the address.",
|
||||
"useDomainChooser": "Use domain chooser",
|
||||
"enterCustomDomain": "Enter custom domain",
|
||||
"enterFullEmail": "Enter full email address",
|
||||
"enterEmailPrefix": "Enter email prefix"
|
||||
},
|
||||
"emails": {
|
||||
"title": "Emails",
|
||||
@@ -317,6 +299,12 @@
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"rightClickContextMenu": "Right-click context menu",
|
||||
"autofillMatching": "Autofill Matching",
|
||||
"autofillMatchingMode": "Autofill matching mode",
|
||||
"autofillMatchingModeDescription": "Determines which credentials are considered a match and shown as suggestions in the autofill popup for a given website.",
|
||||
"autofillMatchingDefault": "URL + subdomain + name wildcard",
|
||||
"autofillMatchingUrlSubdomain": "URL + subdomain",
|
||||
"autofillMatchingUrlExact": "Exact URL domain only",
|
||||
"siteSpecificSettings": "Site-Specific Settings",
|
||||
"autofillPopupOn": "Autofill popup on: ",
|
||||
"enabledForThisSite": "Enabled for this site",
|
||||
@@ -331,7 +319,36 @@
|
||||
"keyboardShortcuts": "Keyboard Shortcuts",
|
||||
"configureKeyboardShortcuts": "Configure keyboard shortcuts",
|
||||
"configure": "Configure",
|
||||
"security": "Security",
|
||||
"clipboardClearTimeout": "Clear clipboard after copying",
|
||||
"clipboardClearTimeoutDescription": "Automatically clear the clipboard after copying sensitive data",
|
||||
"clipboardClearDisabled": "Never clear",
|
||||
"clipboardClear5Seconds": "Clear after 5 seconds",
|
||||
"clipboardClear10Seconds": "Clear after 10 seconds",
|
||||
"clipboardClear15Seconds": "Clear after 15 seconds",
|
||||
"autoLockTimeout": "Auto-lock Timeout",
|
||||
"autoLockTimeoutDescription": "Automatically lock the vault after a period of inactivity",
|
||||
"autoLockTimeoutHelp": "The vault will only lock after the specified period of inactivity (no autofill usage or extension popup opened). The vault will always lock when the browser is closed, regardless of this setting.",
|
||||
"autoLockNever": "Never",
|
||||
"autoLock15Seconds": "15 seconds",
|
||||
"autoLock1Minute": "1 minute",
|
||||
"autoLock5Minutes": "5 minutes",
|
||||
"autoLock15Minutes": "15 minutes",
|
||||
"autoLock30Minutes": "30 minutes",
|
||||
"autoLock1Hour": "1 hour",
|
||||
"autoLock4Hours": "4 hours",
|
||||
"autoLock8Hours": "8 hours",
|
||||
"autoLock24Hours": "24 hours",
|
||||
"versionPrefix": "Version ",
|
||||
"preferences": "Preferences",
|
||||
"autofillSettings": "Autofill Settings",
|
||||
"clipboardSettings": "Clipboard Settings",
|
||||
"contextMenuSettings": "Context Menu Settings",
|
||||
"contextMenu": "Context Menu",
|
||||
"contextMenuEnabled": "Context menu is enabled",
|
||||
"contextMenuDisabled": "Context menu is disabled",
|
||||
"contextMenuDescription": "Right-click on input fields to access AliasVault options",
|
||||
"selectLanguage": "Select Language",
|
||||
"validation": {
|
||||
"apiUrlRequired": "API URL is required",
|
||||
"apiUrlInvalid": "Please enter a valid API URL",
|
||||
|
||||
392
apps/browser-extension/src/i18n/locales/fi.json
Normal file
392
apps/browser-extension/src/i18n/locales/fi.json
Normal file
@@ -0,0 +1,392 @@
|
||||
{
|
||||
"auth": {
|
||||
"loginTitle": "Kirjaudu sisään AliasVaultiin",
|
||||
"username": "Käyttäjänimi tai sähköposti",
|
||||
"usernamePlaceholder": "nimi / nimi@yritys.fi",
|
||||
"password": "Salasana",
|
||||
"passwordPlaceholder": "Syötä salasanasi",
|
||||
"rememberMe": "Muista minut",
|
||||
"loginButton": "Kirjaudu",
|
||||
"noAccount": "Eikö sinulla ole vielä tiliä?",
|
||||
"createVault": "Luo uusi holvi",
|
||||
"twoFactorTitle": "Ole hyvä ja syötä tunnistautumiskoodi tunnistautumissovelluksestasi.",
|
||||
"authCode": "Tunnistautumiskoodi",
|
||||
"authCodePlaceholder": "Syötä 6-numeroinen koodi",
|
||||
"verify": "Vahvista",
|
||||
"cancel": "Peruuta",
|
||||
"twoFactorNote": "Huomautus: jos sinulla ei ole pääsyä tunnistautumislaitteeseen, voit palauttaa 2FA:n palautuskoodilla kirjautumalla sisään sivuston kautta.",
|
||||
"masterPassword": "Pääsalasana",
|
||||
"unlockVault": "Avaa holvi",
|
||||
"unlockTitle": "Avaa Holvisi",
|
||||
"unlockDescription": "Syötä pääsalasanasi avataksesi holvisi lukituksen.",
|
||||
"logout": "Kirjaudu ulos",
|
||||
"logoutConfirm": "Oletko varma, että haluat kirjautua ulos?",
|
||||
"sessionExpired": "Istuntosi on vanhentunut. Ole hyvä ja kirjaudu uudelleen.",
|
||||
"unlockSuccess": "Holvi avattu onnistuneesti!",
|
||||
"unlockSuccessTitle": "Holvisi lukitus on onnistuneesti avattu",
|
||||
"unlockSuccessDescription": "Voit nyt käyttää selaimessasi olevia kirjautumislomakkeita automaattisesti.",
|
||||
"closePopup": "Sulje tämä ponnahdusikkuna",
|
||||
"browseVault": "Selaa holvin sisältöä",
|
||||
"connectingTo": "Yhdistetään palvelimeen",
|
||||
"switchAccounts": "Vaihdetaanko tiliä?",
|
||||
"loggedIn": "Kirjautuneena",
|
||||
"errors": {
|
||||
"invalidCode": "Anna kelvollinen 6-numeroinen tunnistautumiskoodi.",
|
||||
"serverError": "AliasVault-palvelimeen ei saatu yhteyttä. Yritä myöhemmin uudelleen tai ota yhteyttä tukeen, jos ongelma jatkuu.",
|
||||
"noToken": "Kirjautuminen epäonnistui -- tunnusta ei palautettu",
|
||||
"migrationError": "Tapahtui virhe tarkistettaessa odottavia siirtoja.",
|
||||
"wrongPassword": "Virheellinen salasana. Yritä uudelleen.",
|
||||
"accountLocked": "Tili on tilapäisesti lukittu liian monen epäonnistuneen yrityksen vuoksi. Yritä myöhemmin uudelleen.",
|
||||
"networkError": "Verkkovirhe: tarkista yhteytesi ja yritä uudelleen.",
|
||||
"loginDataMissing": "Kirjautumisistunto on vanhentunut. Yritä uudelleen."
|
||||
}
|
||||
},
|
||||
"menu": {
|
||||
"credentials": "Käyttäjätunnukset",
|
||||
"emails": "Sähköpostit",
|
||||
"settings": "Asetukset"
|
||||
},
|
||||
"common": {
|
||||
"appName": "AliasVault",
|
||||
"loading": "Ladataan...",
|
||||
"error": "Virhe",
|
||||
"success": "Onnistui",
|
||||
"cancel": "Peruuta",
|
||||
"use": "Käytä",
|
||||
"delete": "Poista",
|
||||
"close": "Sulje",
|
||||
"copied": "Kopioitu!",
|
||||
"openInNewWindow": "Avaa uudessa ikkunassa",
|
||||
"language": "Kieli",
|
||||
"enabled": "Käytössä",
|
||||
"disabled": "Pois käytöstä",
|
||||
"showPassword": "Näytä salasana",
|
||||
"hidePassword": "Piilota salasana",
|
||||
"copyToClipboard": "Kopioi leikepöydälle",
|
||||
"loadingEmails": "Ladataan sähköposteja...",
|
||||
"loadingTotpCodes": "Ladataan TOTP-koodeja...",
|
||||
"attachments": "Liitteet",
|
||||
"loadingAttachments": "Ladataan liitteitä...",
|
||||
"settings": "Asetukset",
|
||||
"recentEmails": "Viimeisimmät sähköpostit",
|
||||
"loginCredentials": "Sisäänkirjautumistiedot",
|
||||
"twoFactorAuthentication": "Kaksivaiheinen tunnistautuminen",
|
||||
"alias": "Alias",
|
||||
"notes": "Muistiinpanot",
|
||||
"fullName": "Koko nimi",
|
||||
"firstName": "Etunimi",
|
||||
"lastName": "Sukunimi",
|
||||
"birthDate": "Syntymäpäivä",
|
||||
"nickname": "Lempinimi",
|
||||
"email": "Sähköposti",
|
||||
"username": "Käyttäjänimi",
|
||||
"password": "Salasana",
|
||||
"syncingVault": "Synkronoidaan holvia",
|
||||
"savingChangesToVault": "Tallennetaan muutoksia holviin",
|
||||
"uploadingVaultToServer": "Lähetetään holvi palvelimelle",
|
||||
"checkingVaultUpdates": "Tarkistetaan holvin päivityksiä",
|
||||
"syncingUpdatedVault": "Synkronoidaan päivitettyä holvia",
|
||||
"executingOperation": "Suoritetaan toimintoa...",
|
||||
"loadMore": "Lataa lisää",
|
||||
"errors": {
|
||||
"VaultOutdated": "Holvisi on vanhentunut. Kirjaudu AliasVaultin kotisivulle ja noudata ohjeita.",
|
||||
"serverNotAvailable": "AliasVault-palvelin ei ole käytettävissä. Yritä myöhemmin uudelleen tai ota yhteyttä tukeen, jos ongelma jatkuu.",
|
||||
"clientVersionNotSupported": "Palvelin ei enää tue tätä AliasVault-selainlaajennuksen versiota. Ole hyvä ja päivitä selaimen laajennus uusimpaan versioon.",
|
||||
"serverVersionNotSupported": "AliasVault-palvelin on päivitettävä uudempaan versioon, jotta voit käyttää tätä selainlaajennusta. Ota yhteyttä tukeen, jos tarvitset apua.",
|
||||
"unknownError": "Tapahtui tuntematon virhe",
|
||||
"failedToStoreVault": "Holvin tallentaminen epäonnistui",
|
||||
"vaultNotAvailable": "Holvi ei ole käytettävissä",
|
||||
"failedToRetrieveData": "Tietojen nouto epäonnistui",
|
||||
"vaultIsLocked": "Holvi on lukittu",
|
||||
"failedToUploadVault": "Holvin lataaminen epäonnistui",
|
||||
"passwordChanged": "Salasanasi on muuttunut edellisen kirjautumisen jälkeen. Ole hyvä ja kirjaudu uudelleen turvallisuussyistä."
|
||||
},
|
||||
"apiErrors": {
|
||||
"UNKNOWN_ERROR": "Tapahtui tuntematon virhe. Yritä uudelleen.",
|
||||
"ACCOUNT_LOCKED": "Tili on tilapäisesti lukittu liian monen epäonnistuneen yrityksen vuoksi. Yritä myöhemmin uudelleen.",
|
||||
"ACCOUNT_BLOCKED": "Tilisi on poistettu käytöstä. Jos uskot, että tämä on virhe, ota yhteyttä tukeen.",
|
||||
"USER_NOT_FOUND": "Virheellinen käyttäjänimi tai salasana. Yritä uudelleen.",
|
||||
"INVALID_AUTHENTICATOR_CODE": "Virheellinen tunnistautumiskoodi. Yritä uudelleen.",
|
||||
"INVALID_RECOVERY_CODE": "Virheellinen palautuskoodi. Yritä uudelleen.",
|
||||
"REFRESH_TOKEN_REQUIRED": "Päivitysavain vaaditaan.",
|
||||
"INVALID_REFRESH_TOKEN": "Virheellinen päivitysavain.",
|
||||
"REFRESH_TOKEN_REVOKED_SUCCESSFULLY": "Päivitysavain peruutettu onnistuneesti.",
|
||||
"PUBLIC_REGISTRATION_DISABLED": "Uuden tilin rekisteröinti on poistettu käytöstä tällä palvelimella. Ota yhteyttä järjestelmänvalvojaan.",
|
||||
"USERNAME_REQUIRED": "Käyttäjänimi vaaditaan.",
|
||||
"USERNAME_ALREADY_IN_USE": "Käyttäjätunnus on jo käytössä",
|
||||
"USERNAME_AVAILABLE": "Käyttäjänimi on saatavilla.",
|
||||
"USERNAME_MISMATCH": "Käyttäjänimi ei vastaa nykyistä käyttäjää.",
|
||||
"PASSWORD_MISMATCH": "Annettu salasana ei vastaa nykyistä salasanaasi.",
|
||||
"ACCOUNT_SUCCESSFULLY_DELETED": "Käyttäjätili onnistuneesti poistettu,.",
|
||||
"USERNAME_EMPTY_OR_WHITESPACE": "Käyttäjätunnus ei voi olla tyhjä.",
|
||||
"USERNAME_TOO_SHORT": "Käyttäjätunnus on liian lyhyt: sen on oltava vähintään 3 merkkiä pitkä.",
|
||||
"USERNAME_TOO_LONG": "Käyttäjätunnus on liian pitkä: se voi olla enintään 40 merkkiä.",
|
||||
"USERNAME_INVALID_EMAIL": "Virheellinen sähköpostiosoite.",
|
||||
"USERNAME_INVALID_CHARACTERS": "Käyttäjätunnus on virheellinen, voi sisältää vain kirjaimia tai numeroita.",
|
||||
"VAULT_NOT_UP_TO_DATE": "Holvisi ei ole ajan tasalla. Synkronoi holvisi ja yritä uudelleen.",
|
||||
"INTERNAL_SERVER_ERROR": "Sisäinen palvelinvirhe.",
|
||||
"VAULT_ERROR": "Paikallinen holvi ei ole ajan tasalla. Synkronoi holvisi päivittämällä sivu ja yritä uudelleen."
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"or": "tai",
|
||||
"new": "Uusi",
|
||||
"cancel": "Peruuta",
|
||||
"search": "Etsi",
|
||||
"vaultLocked": "AliasVault on lukittu.",
|
||||
"creatingNewAlias": "Luodaan uutta aliasta...",
|
||||
"noMatchesFound": "Hakutuloksia ei löytynyt",
|
||||
"searchVault": "Etsi holvi...",
|
||||
"serviceName": "Palvelun nimi",
|
||||
"email": "Sähköposti",
|
||||
"username": "Käyttäjänimi",
|
||||
"password": "Salasana",
|
||||
"enterServiceName": "Syötä palvelun nimi",
|
||||
"enterEmailAddress": "Syötä sähköpostiosoite",
|
||||
"enterUsername": "Syötä käyttäjänimi",
|
||||
"hideFor1Hour": "Piilota 1 tunniksi (nykyinen sivusto)",
|
||||
"hidePermanently": "Piilota pysyvästi (nykyinen sivu)",
|
||||
"createRandomAlias": "Luo sattumanvarainen alias",
|
||||
"createUsernamePassword": "Luo käyttäjänimi/salasana",
|
||||
"randomAlias": "Sattumanvarainen alias",
|
||||
"usernamePassword": "Käyttäjänimi/Salasana",
|
||||
"createAndSaveAlias": "Luo ja tallenna alias",
|
||||
"createAndSaveCredential": "Luo ja tallenna käyttäjätunnus",
|
||||
"randomIdentityDescription": "Luo satunnainen identiteetti, jolla on satunnainen sähköpostiosoite, johon on pääsy AliasVaultissa.",
|
||||
"randomIdentityDescriptionDropdown": "Satunnainen identiteetti satunnaisella sähköpostiosoitteella",
|
||||
"manualCredentialDescription": "Määritä oma sähköpostiosoitteesi ja käyttäjänimesi.",
|
||||
"manualCredentialDescriptionDropdown": "Manuaalinen käyttäjänimi ja salasana",
|
||||
"failedToCreateIdentity": "Henkilöllisyyden luonti epäonnistui. Yritä uudelleen.",
|
||||
"enterEmailAndOrUsername": "Syötä sähköpostiosoite ja/tai käyttäjänimi",
|
||||
"autofillWithAliasVault": "Automaattinen täyttö AliasVaultilla",
|
||||
"generateRandomPassword": "Luo sattumanvarainen salasana (kopioi leikepöydälle)",
|
||||
"generateNewPassword": "Luo uusi salasana",
|
||||
"togglePasswordVisibility": "Vaihda salasanan näkyvyyttä",
|
||||
"passwordCopiedToClipboard": "Salasana kopioitu leikepöydälle",
|
||||
"enterEmailAndOrUsernameError": "Syötä sähköpostiosoite ja/tai käyttäjänimi",
|
||||
"openAliasVaultToUpgrade": "Avaa AliasVault päivittääksesi",
|
||||
"vaultUpgradeRequired": "Holvin päivitys vaaditaan.",
|
||||
"dismissPopup": "Hylkää ponnahdusikkuna"
|
||||
},
|
||||
"credentials": {
|
||||
"title": "Käyttäjätunnukset",
|
||||
"addCredential": "Lisää käyttäjätunnus",
|
||||
"editCredential": "Muokkaa käyttäjätunnusta",
|
||||
"deleteCredential": "Poista käyttäjätunnus",
|
||||
"credentialDetails": "Käyttäjätunnuksen tiedot",
|
||||
"serviceName": "Palvelun nimi",
|
||||
"serviceNamePlaceholder": "esim. Gmail, Facebook, Pankki",
|
||||
"website": "Verkkosivusto",
|
||||
"websitePlaceholder": "https://esimerkki.fi",
|
||||
"username": "Käyttäjänimi",
|
||||
"usernamePlaceholder": "Syötä käyttäjänimi",
|
||||
"password": "Salasana",
|
||||
"passwordPlaceholder": "Syötä salasana",
|
||||
"generatePassword": "Luo salasana",
|
||||
"copyPassword": "Kopioi salasana",
|
||||
"showPassword": "Näytä salasana",
|
||||
"hidePassword": "Piilota salasana",
|
||||
"notes": "Muistiinpanot",
|
||||
"notesPlaceholder": "Muut huomautukset...",
|
||||
"totp": "Kaksivaiheinen tunnistautuminen",
|
||||
"totpCode": "TOTP koodi",
|
||||
"copyTotp": "Kopioi TOTP-koodi",
|
||||
"totpSecret": "TOTP Salaus",
|
||||
"totpSecretPlaceholder": "Syötä TOTP salainen avain",
|
||||
"noCredentials": "Käyttäjätunnuksia ei löytynyt",
|
||||
"noCredentialsDescription": "Lisää ensimmäinen käyttäjätunnuksesi aloittaaksesi",
|
||||
"searchPlaceholder": "Etsi käyttäjätunnuksia...",
|
||||
"welcomeTitle": "Tervetuloa AliasVaultiin!",
|
||||
"welcomeDescription": "Käyttääksesi AliasVault-selainlaajennusta: Siirry sivustolle ja käytä AliasVaultin automaattisen täytön ponnahdusikkunaa luodaksesi uuden käyttäjätunnuksen.",
|
||||
"createdAt": "Luotu",
|
||||
"updatedAt": "Viimeksi päivitetty",
|
||||
"autofill": "Automaattinen täyttö",
|
||||
"fillForm": "Täytä lomake",
|
||||
"deleteConfirm": "Oletko varma, että haluat poistaa tämän käyttäjätunnuksen?",
|
||||
"saveSuccess": "Käyttäjätunnus tallennettu onnistuneesti.",
|
||||
"tags": "Tunnisteet",
|
||||
"addTag": "Lisää tunniste",
|
||||
"removeTag": "Poista tunniste",
|
||||
"folder": "Kansio",
|
||||
"selectFolder": "Valitse kansio",
|
||||
"createFolder": "Luo kansio",
|
||||
"saveCredential": "Tallenna käyttäjätunnus",
|
||||
"deleteCredentialTitle": "Poista käyttäjätunnus",
|
||||
"deleteCredentialConfirm": "Oletko varma, että haluat poistaa tämän tunnuksen? Tätä toimintoa ei voi perua.",
|
||||
"randomAlias": "Sattumanvarainen Alias",
|
||||
"manual": "Käyttöopas",
|
||||
"service": "Palvelu",
|
||||
"serviceUrl": "Palvelun URL-osoite",
|
||||
"loginCredentials": "Sisäänkirjautumistiedot",
|
||||
"generateRandomUsername": "Luo sattumanvarainen käyttäjätunnus",
|
||||
"generateRandomPassword": "Luo sattumanvarainen salasana",
|
||||
"changePasswordComplexity": "Muuta salasanan monimutkaisuutta",
|
||||
"passwordLength": "Salasanan pituus",
|
||||
"includeLowercase": "Sisällytä pienet kirjaimet",
|
||||
"includeUppercase": "Sisällytä isot kirjaimet",
|
||||
"includeNumbers": "Sisällytä numerot",
|
||||
"includeSpecialChars": "Sisällytä erikoismerkit",
|
||||
"avoidAmbiguousChars": "Vältä epäselviä merkkejä (o, 0 jne.)",
|
||||
"generateNewPreview": "Luo uusi esikatselu",
|
||||
"generateRandomAlias": "Luo sattumanvarainen alias",
|
||||
"alias": "Alias",
|
||||
"firstName": "Etunimi",
|
||||
"lastName": "Sukunimi",
|
||||
"nickName": "Lempinimi",
|
||||
"gender": "Sukupuoli",
|
||||
"birthDate": "Syntymäpäivä",
|
||||
"birthDatePlaceholder": "VVVV-KK-PP.",
|
||||
"metadata": "Metatiedot",
|
||||
"validation": {
|
||||
"required": "Tämä kenttä on pakollinen.",
|
||||
"serviceNameRequired": "Palvelun nimi on pakollinen",
|
||||
"invalidEmail": "Virheellinen sähköpostiosoitteen muoto",
|
||||
"invalidDateFormat": "Päivämäärän on oltava muodossa VVVV-KK-PP."
|
||||
},
|
||||
"privateEmailTitle": "Yksityinen sähköposti",
|
||||
"privateEmailAliasVaultServer": "AliasVault-palvelin",
|
||||
"privateEmailDescription": "E2E salattu, täysin yksityinen.",
|
||||
"publicEmailTitle": "Julkiset väliaikaisen sähköpostiosoitteen tarjoajat",
|
||||
"publicEmailDescription": "Anonyymi mutta rajoitettu yksityisyys. Käytettävissä kaikille, jotka tuntevat osoitteen.",
|
||||
"useDomainChooser": "Käytä verkkotunnuksen valintaa",
|
||||
"enterCustomDomain": "Anna oma verkkotunnus",
|
||||
"enterFullEmail": "Syötä täysi sähköpostiosoite",
|
||||
"enterEmailPrefix": "Syötä sähköpostin etuliite"
|
||||
},
|
||||
"emails": {
|
||||
"title": "Sähköpostit",
|
||||
"deleteEmailTitle": "Poista sähköposti",
|
||||
"deleteEmailConfirm": "Oletko varma, että haluat poistaa tämän kuvan pysyvästi?",
|
||||
"from": "Lähettäjä",
|
||||
"to": "Vastaanottaja",
|
||||
"date": "Päivämäärä",
|
||||
"emailContent": "Sähköpostin sisältö",
|
||||
"attachments": "Liitteet",
|
||||
"emailNotFound": "Sähköpostia ei löytynyt",
|
||||
"noEmails": "Sähköposteja ei löytynyt",
|
||||
"noEmailsDescription": "Et ole vielä vastaanottanut sähköposteja yksityisissä sähköpostiosoitteissasi. Kun saat uuden sähköpostiviestin, se näkyy täällä.",
|
||||
"dateFormat": {
|
||||
"justNow": "juuri nyt",
|
||||
"minutesAgo_single": "{{count}} min sitten",
|
||||
"minutesAgo_plural": "{{count}} minuuttia sitten",
|
||||
"hoursAgo_single": "{{count}} h sitten",
|
||||
"hoursAgo_plural": "{{count}} tuntia sitten",
|
||||
"yesterday": "eilen"
|
||||
},
|
||||
"errors": {
|
||||
"emailLoadError": "Sähköpostien lataamisessa tapahtui virhe. Yritä myöhemmin uudelleen.",
|
||||
"emailUnexpectedError": "Odottamaton virhe sähköpostien latauksen aikana. Yritä myöhemmin uudelleen."
|
||||
},
|
||||
"apiErrors": {
|
||||
"CLAIM_DOES_NOT_MATCH_USER": "Nykyinen valittu sähköpostiosoite on jo käytössä. Ole hyvä ja vaihda sähköpostiosoite muokkaamalla tätä tunnusta.",
|
||||
"CLAIM_DOES_NOT_EXIST": "Tapahtui virhe ladattaessa sähköposteja. Yritä muokata ja tallentaa tunnistetiedot synkronoidaksesi tietokannan, ja yritä sitten uudelleen."
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"title": "Asetukset",
|
||||
"serverUrl": "Palvelimen URL-osoite",
|
||||
"language": "Kieli",
|
||||
"autofillEnabled": "Ota automaattitäyttö käyttöön",
|
||||
"version": "Versio",
|
||||
"openInNewWindow": "Avaa uudessa ikkunassa",
|
||||
"openWebApp": "Avaa verkkosovellus",
|
||||
"loggedIn": "Kirjautuneena",
|
||||
"logout": "Kirjaudu ulos",
|
||||
"globalSettings": "Yleiset asetukset",
|
||||
"autofillPopup": "Automaattisen täytön ponnahdusikkuna",
|
||||
"activeOnAllSites": "Aktiivinen kaikilla sivustoilla (paitsi jos pois päältä alla)",
|
||||
"disabledOnAllSites": "Poistettu käytöstä kaikilla sivustoilla",
|
||||
"enabled": "Käytössä",
|
||||
"disabled": "Pois käytöstä",
|
||||
"rightClickContextMenu": "Oikea-klikkauksen kontekstivalikko",
|
||||
"autofillMatching": "Autofill osuma",
|
||||
"autofillMatchingMode": "Autofill osumat käytössä",
|
||||
"autofillMatchingModeDescription": "Määrittää mitkä käyttäjätunnukset katsotaan osumaksi ja näytetään automaattisen täytön ponnahdusikkunan ehdotuksina tietylle sivustolle.",
|
||||
"autofillMatchingDefault": "URL + alitoimialue + nimi jokerimerkki",
|
||||
"autofillMatchingUrlSubdomain": "URL + alitoimialue",
|
||||
"autofillMatchingUrlExact": "Tarkka URL-verkkotunnus vain",
|
||||
"siteSpecificSettings": "Sivukohtaiset asetukset",
|
||||
"autofillPopupOn": "Automaattisen täytön ponnahdusikkuna päällä: ",
|
||||
"enabledForThisSite": "Käytössä tällä sivustolla",
|
||||
"disabledForThisSite": "Ei käytössä tällä sivustolla",
|
||||
"temporarilyDisabledUntil": "Tilapäisesti pois päältä ",
|
||||
"resetAllSiteSettings": "Nollaa kaikki sivustokohtaiset asetukset",
|
||||
"appearance": "Ulkoasu",
|
||||
"theme": "Teema",
|
||||
"useDefault": "Käytä oletusta",
|
||||
"light": "Vaalea",
|
||||
"dark": "Tumma",
|
||||
"keyboardShortcuts": "Pikanäppäimet",
|
||||
"configureKeyboardShortcuts": "Määritä pikanäppäimet",
|
||||
"configure": "Määritä",
|
||||
"security": "Tietoturva",
|
||||
"clipboardClearTimeout": "Tyhjennä leikepöytä kopioinnin jälkeen",
|
||||
"clipboardClearTimeoutDescription": "Tyhjennä leikepöytä automaattisesti arkaluonteisten tietojen kopioinnin jälkeen",
|
||||
"clipboardClearDisabled": "Älä tyhjennä koskaan",
|
||||
"clipboardClear5Seconds": "Tyhjennä 5 sekunnin jälkeen",
|
||||
"clipboardClear10Seconds": "Tyhjennä 10 sekunnin jälkeen",
|
||||
"clipboardClear15Seconds": "Tyhjennä 15 sekunnin jälkeen",
|
||||
"autoLockTimeout": "Automaattisen lukituksen aikakatkaisu",
|
||||
"autoLockTimeoutDescription": "Lukitse holvi automaattisesti käyttämättä jäämisen jälkeen",
|
||||
"autoLockTimeoutHelp": "Holvi lukittuu vain määritellyn käyttöajan jälkeen (ei automaattisen täytön käyttöä tai laajennuksen ponnahdusikkunaa auki). Holvi lukittuu aina, kun selain on suljettu, tästä asetuksesta riippumatta.",
|
||||
"autoLockNever": "Ei koskaan",
|
||||
"autoLock15Seconds": "15 sekuntia",
|
||||
"autoLock1Minute": "1 minuutti",
|
||||
"autoLock5Minutes": "5 minuuttia",
|
||||
"autoLock15Minutes": "15 minuuttia",
|
||||
"autoLock30Minutes": "30 minuuttia",
|
||||
"autoLock1Hour": "1 tunti",
|
||||
"autoLock4Hours": "4 tuntia",
|
||||
"autoLock8Hours": "8 tuntia",
|
||||
"autoLock24Hours": "24 tuntia",
|
||||
"versionPrefix": "Versio",
|
||||
"preferences": "Määritykset",
|
||||
"autofillSettings": "Automaatisen täytön asetukset",
|
||||
"clipboardSettings": "Leikepöydän asetukset",
|
||||
"contextMenuSettings": "Sisältövalikon asetukset",
|
||||
"contextMenu": "Sisältövalikko",
|
||||
"contextMenuEnabled": "Sisältövalikko käytössä",
|
||||
"contextMenuDisabled": "Sisältövalikko pois käytöstä",
|
||||
"contextMenuDescription": "Napsauta syöttökenttiä hiiren kakkospainikkeella päästäksesi käsiksi AliasVaultin valintoihin",
|
||||
"selectLanguage": "Valitse kieli",
|
||||
"validation": {
|
||||
"apiUrlRequired": "API URL-osoite vaaditaan",
|
||||
"apiUrlInvalid": "Anna kelvollinen API URL-osoite",
|
||||
"clientUrlRequired": "Asiakkaan URL-osoite vaaditaan",
|
||||
"clientUrlInvalid": "Anna kelvollinen asiakkaan URL-osoite"
|
||||
}
|
||||
},
|
||||
"upgrade": {
|
||||
"title": "Päivitä holvi",
|
||||
"subtitle": "AliasVault on päivitetty ja holvisi on päivitettävä. Tämän pitäisi kestää vain muutama sekunti.",
|
||||
"versionInformation": "Versiotiedot",
|
||||
"yourVault": "Sinun holvisi:",
|
||||
"newVersion": "Uusi versio:",
|
||||
"upgrade": "Päivitä Holvi",
|
||||
"upgrading": "Päivitetään...",
|
||||
"logout": "Kirjaudu ulos",
|
||||
"whatsNew": "Mitä uutta?",
|
||||
"whatsNewDescription": "Päivitys on tarpeen, jotta voidaan tukea seuraavia muutoksia:",
|
||||
"noDescriptionAvailable": "Kuvausta ei ole saatavilla tälle versiolle.",
|
||||
"okay": "Ok",
|
||||
"status": {
|
||||
"preparingUpgrade": "Valmistellaan päivityksiä...",
|
||||
"vaultAlreadyUpToDate": "Holvi on jo ajan tasalla",
|
||||
"startingDatabaseTransaction": "Aloitetaan tietokannan siirtoa...",
|
||||
"applyingDatabaseMigrations": "Toteutetaan tietokannan siirtoja...",
|
||||
"applyingMigration": "Siirretään tietoja: {{current}} / {{total}}...",
|
||||
"committingChanges": "Suoritetaan muutoksia..."
|
||||
},
|
||||
"alerts": {
|
||||
"error": "Virhe",
|
||||
"unableToGetVersionInfo": "Versiotietoja ei löytynyt. Yritä uudelleen.",
|
||||
"selfHostedServer": "Itsehallinnoitu palvelin",
|
||||
"selfHostedWarning": "Jos käytät itsehallintoitua palvelina, varmista myös että päivität itsehallinnoidun palvelimesi, jos muutoin kirjautuminen web-asiakkaan kautta lakkaa toimimasta.",
|
||||
"cancel": "Peruuta",
|
||||
"continueUpgrade": "Jatka päivitystä",
|
||||
"upgradeFailed": "Päivitys epäonnistui",
|
||||
"failedToApplyMigration": "Tietojen siirto epäonnistui {{current}} / {{total}} ",
|
||||
"unknownErrorDuringUpgrade": "Päivityksen aikana tapahtui tuntematon virhe. Yritä uudelleen."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,26 +89,17 @@
|
||||
"executingOperation": "Executing operation...",
|
||||
"loadMore": "Voir plus",
|
||||
"errors": {
|
||||
"VaultMergeRequired": "Your vault needs to be updated. Please login on the AliasVault website and follow the steps.",
|
||||
"VaultOutdated": "Your vault is outdated. Please login on the AliasVault website and follow the steps.",
|
||||
"NoVaultFound": "Your account does not have a vault yet. Please complete the tutorial in the AliasVault web client before using the browser extension.",
|
||||
"serverNotAvailable": "The AliasVault server is not available. Please try again later or contact support if the problem persists.",
|
||||
"clientVersionNotSupported": "This version of the AliasVault browser extension is not supported by the server anymore. Please update your browser extension to the latest version.",
|
||||
"serverVersionNotSupported": "The AliasVault server needs to be updated to a newer version in order to use this browser extension. Please contact support if you need help.",
|
||||
"unknownError": "An unknown error occurred",
|
||||
"failedToStoreVault": "Failed to store vault",
|
||||
"vaultNotAvailable": "Vault not available",
|
||||
"failedToGetVault": "Failed to get vault",
|
||||
"failedToRetrieveData": "Failed to retrieve data",
|
||||
"vaultIsLocked": "Vault is locked",
|
||||
"failedToGetCredentials": "Failed to get credentials",
|
||||
"failedToCreateIdentity": "Failed to create identity",
|
||||
"failedToGetDefaultEmailDomain": "Failed to get default email domain",
|
||||
"failedToGetDefaultIdentitySettings": "Failed to get default identity settings",
|
||||
"failedToGetPasswordSettings": "Failed to get password settings",
|
||||
"failedToUploadVault": "Failed to upload vault",
|
||||
"noDerivedKeyAvailable": "No derived key available for encryption",
|
||||
"failedToUploadVaultToServer": "Failed to upload new vault to server",
|
||||
"noVaultOrDerivedKeyFound": "No vault or derived key found"
|
||||
"passwordChanged": "Your password has changed since the last time you logged in. Please login again for security reasons."
|
||||
},
|
||||
"apiErrors": {
|
||||
"UNKNOWN_ERROR": "An unknown error occurred. Please try again.",
|
||||
@@ -118,8 +109,6 @@
|
||||
"INVALID_AUTHENTICATOR_CODE": "Invalid authenticator code. Please try again.",
|
||||
"INVALID_RECOVERY_CODE": "Invalid recovery code. Please try again.",
|
||||
"REFRESH_TOKEN_REQUIRED": "Refresh token is required.",
|
||||
"USER_NOT_FOUND_IN_TOKEN": "User not found in token.",
|
||||
"USER_NOT_FOUND_IN_DATABASE": "User not found in database.",
|
||||
"INVALID_REFRESH_TOKEN": "Invalid refresh token.",
|
||||
"REFRESH_TOKEN_REVOKED_SUCCESSFULLY": "Refresh token revoked successfully.",
|
||||
"PUBLIC_REGISTRATION_DISABLED": "New account registration is currently disabled on this server. Please contact the administrator.",
|
||||
@@ -206,23 +195,15 @@
|
||||
"totpSecretPlaceholder": "Enter TOTP secret key",
|
||||
"noCredentials": "No credentials found",
|
||||
"noCredentialsDescription": "Add your first credential to get started",
|
||||
"searchCredentials": "Search credentials...",
|
||||
"searchPlaceholder": "Search credentials...",
|
||||
"welcomeTitle": "Welcome to AliasVault!",
|
||||
"welcomeDescription": "To use the AliasVault browser extension: navigate to a website and use the AliasVault autofill popup to create a new credential.",
|
||||
"lastUsed": "Last used",
|
||||
"createdAt": "Created",
|
||||
"updatedAt": "Last updated",
|
||||
"autofill": "Autofill",
|
||||
"fillForm": "Fill Form",
|
||||
"copyUsername": "Copy Username",
|
||||
"openWebsite": "Open Website",
|
||||
"favorite": "Favorite",
|
||||
"unfavorite": "Remove from Favorites",
|
||||
"deleteConfirm": "Are you sure you want to delete this credential?",
|
||||
"deleteSuccess": "Credential deleted successfully",
|
||||
"saveSuccess": "Credential saved successfully",
|
||||
"copySuccess": "Copied to clipboard",
|
||||
"tags": "Tags",
|
||||
"addTag": "Add Tag",
|
||||
"removeTag": "Remove Tag",
|
||||
@@ -256,20 +237,21 @@
|
||||
"birthDate": "Birth Date",
|
||||
"birthDatePlaceholder": "YYYY-MM-DD",
|
||||
"metadata": "Metadata",
|
||||
"errors": {
|
||||
"invalidUrl": "Please enter a valid URL",
|
||||
"saveError": "Failed to save credential",
|
||||
"loadError": "Failed to load credentials",
|
||||
"deleteError": "Failed to delete credential",
|
||||
"copyError": "Failed to copy to clipboard"
|
||||
},
|
||||
"validation": {
|
||||
"required": "This field is required",
|
||||
"serviceNameRequired": "Service name is required",
|
||||
"invalidUrl": "Invalid URL format",
|
||||
"invalidEmail": "Invalid email format",
|
||||
"invalidDateFormat": "Date must be in YYYY-MM-DD format"
|
||||
}
|
||||
},
|
||||
"privateEmailTitle": "Private Email",
|
||||
"privateEmailAliasVaultServer": "AliasVault server",
|
||||
"privateEmailDescription": "E2E encrypted, fully private.",
|
||||
"publicEmailTitle": "Public Temp Email Providers",
|
||||
"publicEmailDescription": "Anonymous but limited privacy. Email content is readable by anyone that knows the address.",
|
||||
"useDomainChooser": "Use domain chooser",
|
||||
"enterCustomDomain": "Enter custom domain",
|
||||
"enterFullEmail": "Enter full email address",
|
||||
"enterEmailPrefix": "Enter email prefix"
|
||||
},
|
||||
"emails": {
|
||||
"title": "Emails",
|
||||
@@ -317,6 +299,12 @@
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"rightClickContextMenu": "Right-click context menu",
|
||||
"autofillMatching": "Autofill Matching",
|
||||
"autofillMatchingMode": "Autofill matching mode",
|
||||
"autofillMatchingModeDescription": "Determines which credentials are considered a match and shown as suggestions in the autofill popup for a given website.",
|
||||
"autofillMatchingDefault": "URL + subdomain + name wildcard",
|
||||
"autofillMatchingUrlSubdomain": "URL + subdomain",
|
||||
"autofillMatchingUrlExact": "Exact URL domain only",
|
||||
"siteSpecificSettings": "Site-Specific Settings",
|
||||
"autofillPopupOn": "Autofill popup on: ",
|
||||
"enabledForThisSite": "Enabled for this site",
|
||||
@@ -331,7 +319,36 @@
|
||||
"keyboardShortcuts": "Keyboard Shortcuts",
|
||||
"configureKeyboardShortcuts": "Configure keyboard shortcuts",
|
||||
"configure": "Configure",
|
||||
"security": "Security",
|
||||
"clipboardClearTimeout": "Clear clipboard after copying",
|
||||
"clipboardClearTimeoutDescription": "Automatically clear the clipboard after copying sensitive data",
|
||||
"clipboardClearDisabled": "Never clear",
|
||||
"clipboardClear5Seconds": "Clear after 5 seconds",
|
||||
"clipboardClear10Seconds": "Clear after 10 seconds",
|
||||
"clipboardClear15Seconds": "Clear after 15 seconds",
|
||||
"autoLockTimeout": "Auto-lock Timeout",
|
||||
"autoLockTimeoutDescription": "Automatically lock the vault after a period of inactivity",
|
||||
"autoLockTimeoutHelp": "The vault will only lock after the specified period of inactivity (no autofill usage or extension popup opened). The vault will always lock when the browser is closed, regardless of this setting.",
|
||||
"autoLockNever": "Never",
|
||||
"autoLock15Seconds": "15 seconds",
|
||||
"autoLock1Minute": "1 minute",
|
||||
"autoLock5Minutes": "5 minutes",
|
||||
"autoLock15Minutes": "15 minutes",
|
||||
"autoLock30Minutes": "30 minutes",
|
||||
"autoLock1Hour": "1 hour",
|
||||
"autoLock4Hours": "4 hours",
|
||||
"autoLock8Hours": "8 hours",
|
||||
"autoLock24Hours": "24 hours",
|
||||
"versionPrefix": "Version ",
|
||||
"preferences": "Preferences",
|
||||
"autofillSettings": "Autofill Settings",
|
||||
"clipboardSettings": "Clipboard Settings",
|
||||
"contextMenuSettings": "Context Menu Settings",
|
||||
"contextMenu": "Context Menu",
|
||||
"contextMenuEnabled": "Context menu is enabled",
|
||||
"contextMenuDisabled": "Context menu is disabled",
|
||||
"contextMenuDescription": "Right-click on input fields to access AliasVault options",
|
||||
"selectLanguage": "Select Language",
|
||||
"validation": {
|
||||
"apiUrlRequired": "API URL is required",
|
||||
"apiUrlInvalid": "Please enter a valid API URL",
|
||||
|
||||
392
apps/browser-extension/src/i18n/locales/it.json
Normal file
392
apps/browser-extension/src/i18n/locales/it.json
Normal file
@@ -0,0 +1,392 @@
|
||||
{
|
||||
"auth": {
|
||||
"loginTitle": "Accedi ad AliasVaultriem",
|
||||
"username": "Nome utente o mail",
|
||||
"usernamePlaceholder": "nome / nome@azienda.com",
|
||||
"password": "Password",
|
||||
"passwordPlaceholder": "Inserisci la tua password",
|
||||
"rememberMe": "Ricordati di me",
|
||||
"loginButton": "Accedi",
|
||||
"noAccount": "Non hai ancora un account?",
|
||||
"createVault": "Crea una nuova cassaforte",
|
||||
"twoFactorTitle": "Inserisci il codice di autenticazione dalla tua app di autenticazione.",
|
||||
"authCode": "Codice di Autenticazione",
|
||||
"authCodePlaceholder": "Inserisci il codice a 6 cifre",
|
||||
"verify": "Verifica",
|
||||
"cancel": "Annulla",
|
||||
"twoFactorNote": "Nota: se non hai accesso al tuo dispositivo di autenticazione, puoi reimpostare il tuo 2FA con un codice di recupero accedendo tramite il sito web.",
|
||||
"masterPassword": "Password principale",
|
||||
"unlockVault": "Sblocca Cassaforte",
|
||||
"unlockTitle": "Sblocca la tua cassaforte",
|
||||
"unlockDescription": "Inserisci la tua password principale per sbloccare la tua cassaforte.",
|
||||
"logout": "Disconnetti",
|
||||
"logoutConfirm": "Sei sicuro di volerti disconnettere?",
|
||||
"sessionExpired": "La sessione è scaduta. Effettua di nuovo il login.",
|
||||
"unlockSuccess": "Cassaforte sbloccata con successo!",
|
||||
"unlockSuccessTitle": "La cassaforte è stata sbloccata con successo",
|
||||
"unlockSuccessDescription": "Ora puoi usare l'auto-riempimento nei moduli di accesso nel tuo browser.",
|
||||
"closePopup": "Chiudi questo popup",
|
||||
"browseVault": "Sfoglia i contenuti della cassaforte",
|
||||
"connectingTo": "Connessione a",
|
||||
"switchAccounts": "Cambia account",
|
||||
"loggedIn": "Accesso effettuato",
|
||||
"errors": {
|
||||
"invalidCode": "Inserisci un codice di autenticazione a 6 cifre valido.",
|
||||
"serverError": "Impossibile connettersi al server di AliasVault. Riprova più tardi o contatta il supporto se il problema persiste.",
|
||||
"noToken": "Accesso fallito — nessun token ricevuto",
|
||||
"migrationError": "Si è verificato un errore nel controllo delle migrazioni pendenti.",
|
||||
"wrongPassword": "Password non corretta. Riprova nuovamente.",
|
||||
"accountLocked": "Account temporaneamente bloccato a causa di troppi tentativi falliti.",
|
||||
"networkError": "Errore di rete: Controlla la tua connessione e riprova.",
|
||||
"loginDataMissing": "Sessione di accesso scaduta. Effettua nuovamente l'accesso."
|
||||
}
|
||||
},
|
||||
"menu": {
|
||||
"credentials": "Credenziali",
|
||||
"emails": "E-Mail",
|
||||
"settings": "Impostazioni"
|
||||
},
|
||||
"common": {
|
||||
"appName": "AliasVault",
|
||||
"loading": "Caricamento in corso...",
|
||||
"error": "Errore",
|
||||
"success": "Riuscito",
|
||||
"cancel": "Annulla",
|
||||
"use": "Usa",
|
||||
"delete": "Elimina",
|
||||
"close": "Chiudi",
|
||||
"copied": "Copiato!",
|
||||
"openInNewWindow": "Apri in una nuova finestra",
|
||||
"language": "Lingua",
|
||||
"enabled": "Abilitato",
|
||||
"disabled": "Disabilitato",
|
||||
"showPassword": "Mostra password",
|
||||
"hidePassword": "Nascondi password",
|
||||
"copyToClipboard": "Copia negli appunti",
|
||||
"loadingEmails": "Caricamento e-mail in corso...",
|
||||
"loadingTotpCodes": "Caricamento codici TOTP in corso...",
|
||||
"attachments": "Allegati",
|
||||
"loadingAttachments": "Caricamento allegati in corso...",
|
||||
"settings": "Impostazioni",
|
||||
"recentEmails": "E-mail recenti",
|
||||
"loginCredentials": "Credenziali di accesso",
|
||||
"twoFactorAuthentication": "Autenticazione a due fattori",
|
||||
"alias": "Alias",
|
||||
"notes": "Note",
|
||||
"fullName": "Nome completo",
|
||||
"firstName": "Nome",
|
||||
"lastName": "Cognome",
|
||||
"birthDate": "Data di nascita",
|
||||
"nickname": "Soprannome",
|
||||
"email": "E-mail",
|
||||
"username": "Nome utente",
|
||||
"password": "Password",
|
||||
"syncingVault": "Sincronizzazione cassaforte",
|
||||
"savingChangesToVault": "Salvataggio modifiche cassaforte",
|
||||
"uploadingVaultToServer": "Caricamento cassaforte sul server",
|
||||
"checkingVaultUpdates": "Controllo aggiornamenti cassaforte",
|
||||
"syncingUpdatedVault": "Sincronizzazione cassaforte aggiornata",
|
||||
"executingOperation": "Esecuzione operazione...",
|
||||
"loadMore": "Carica altro",
|
||||
"errors": {
|
||||
"VaultOutdated": "La tua cassaforte è obsoleta. Per favore accedi al sito di AliasVault e segui le istruzioni.",
|
||||
"serverNotAvailable": "Il server di AliasVault non è disponibile. Riprova più tardi o contatta il supporto se il problema persiste.",
|
||||
"clientVersionNotSupported": "Questa versione dell'estensione del browser AliasVault non è più supportata dal server. Aggiorna l'estensione alla versione più recente.",
|
||||
"serverVersionNotSupported": "Il server di AliasVault necessita un aggiornamento a una versione più recente per poter usare questa estensione. Contatta il supporto se hai bisogno di assistenza.",
|
||||
"unknownError": "Si è verificato un errore sconosciuto",
|
||||
"failedToStoreVault": "Salvataggio cassaforte non riuscito",
|
||||
"vaultNotAvailable": "Cassaforte non disponibile",
|
||||
"failedToRetrieveData": "Recupero dati non riuscito",
|
||||
"vaultIsLocked": "La cassaforte è bloccata",
|
||||
"failedToUploadVault": "Caricare della cassaforte non riuscito.",
|
||||
"passwordChanged": "La tua password è cambiata dall'ultima volta che hai effettuato l'accesso. Effettua nuovamente l'accesso per motivi di sicurezza."
|
||||
},
|
||||
"apiErrors": {
|
||||
"UNKNOWN_ERROR": "Si è verificato un errore sconosciuto. Riprova.",
|
||||
"ACCOUNT_LOCKED": "Account temporaneamente bloccato a causa di troppi tentativi falliti. Riprova più tardi.",
|
||||
"ACCOUNT_BLOCKED": "Il tuo account è stato disabilitato. Se ritieni che sia un errore, contatta il supporto.",
|
||||
"USER_NOT_FOUND": "Nome utente o password non validi. Riprova.",
|
||||
"INVALID_AUTHENTICATOR_CODE": "Codice di autenticazione non valido. Riprova.",
|
||||
"INVALID_RECOVERY_CODE": "Codice di recupero non valido. Riprova.",
|
||||
"REFRESH_TOKEN_REQUIRED": "È necessario aggiornare il token.",
|
||||
"INVALID_REFRESH_TOKEN": "Token di aggiornamento non valido",
|
||||
"REFRESH_TOKEN_REVOKED_SUCCESSFULLY": "Aggiornamento token revocato con successo.",
|
||||
"PUBLIC_REGISTRATION_DISABLED": "La registrazione di nuovi account è attualmente disabilitata su questo server. Contatta l'amministratore.",
|
||||
"USERNAME_REQUIRED": "È richiesto il nome utente.",
|
||||
"USERNAME_ALREADY_IN_USE": "Il nome utente è già in uso.",
|
||||
"USERNAME_AVAILABLE": "Il nome utente è disponibile.",
|
||||
"USERNAME_MISMATCH": "Il nome utente non corrisponde all'utente corrente.",
|
||||
"PASSWORD_MISMATCH": "La password fornita non corrisponde alla password attuale.",
|
||||
"ACCOUNT_SUCCESSFULLY_DELETED": "Account eliminato con successo.",
|
||||
"USERNAME_EMPTY_OR_WHITESPACE": "Il nome utente non può essere vuoto o contenere spazi.",
|
||||
"USERNAME_TOO_SHORT": "Nome utente troppo corto: deve contenere almeno 3 caratteri.",
|
||||
"USERNAME_TOO_LONG": "Nome utente troppo lungo: non può superare i 40 caratteri.",
|
||||
"USERNAME_INVALID_EMAIL": "Indirizzo email non valido.",
|
||||
"USERNAME_INVALID_CHARACTERS": "Il nome utente non è valido, può contenere solo lettere o cifre.",
|
||||
"VAULT_NOT_UP_TO_DATE": "La tua cassaforte non è aggiornata. Sincronizzala e riprova.",
|
||||
"INTERNAL_SERVER_ERROR": "Errore interno del server.",
|
||||
"VAULT_ERROR": "La cassaforte locale non è aggiornata. Sincronizzala ricaricando la pagina e riprova."
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"or": "o",
|
||||
"new": "Nuovo",
|
||||
"cancel": "Annulla",
|
||||
"search": "Cerca",
|
||||
"vaultLocked": "AliasVault è bloccato.",
|
||||
"creatingNewAlias": "Creazione nuovo alias...",
|
||||
"noMatchesFound": "Nessun risultato trovato",
|
||||
"searchVault": "Cerca nella cassaforte...",
|
||||
"serviceName": "Nome servizio",
|
||||
"email": "E-mail",
|
||||
"username": "Nome utente",
|
||||
"password": "Password",
|
||||
"enterServiceName": "Inserisci nome servizio",
|
||||
"enterEmailAddress": "Inserisci indirizzo email",
|
||||
"enterUsername": "Inserisci nome utente",
|
||||
"hideFor1Hour": "Nascondi per 1 ora (sito corrente)",
|
||||
"hidePermanently": "Nascondi permanentemente (sito corrente)",
|
||||
"createRandomAlias": "Crea alias casuale",
|
||||
"createUsernamePassword": "Crea nome utente/password",
|
||||
"randomAlias": "Alias casuale",
|
||||
"usernamePassword": "Nome utente/password",
|
||||
"createAndSaveAlias": "Crea e salva alias",
|
||||
"createAndSaveCredential": "Crea e salva credenziali",
|
||||
"randomIdentityDescription": "Genera un'identità casuale con un indirizzo email casuale accessibile in AliasVault.",
|
||||
"randomIdentityDescriptionDropdown": "Identità casuale con email casuale",
|
||||
"manualCredentialDescription": "Specifica il tuo indirizzo email e nome utente.",
|
||||
"manualCredentialDescriptionDropdown": "Nome utente e password manuali",
|
||||
"failedToCreateIdentity": "Impossibile creare identità. Riprova.",
|
||||
"enterEmailAndOrUsername": "Inserisci email e/o nome utente",
|
||||
"autofillWithAliasVault": "Compilazione automatica con AliasVault",
|
||||
"generateRandomPassword": "Genera password casuale (copia negli appunti)",
|
||||
"generateNewPassword": "Genera nuova password",
|
||||
"togglePasswordVisibility": "Mostra/Nascondi password",
|
||||
"passwordCopiedToClipboard": "Password copiata negli appunti",
|
||||
"enterEmailAndOrUsernameError": "Inserisci email e/o nome utente",
|
||||
"openAliasVaultToUpgrade": "Apri AliasVault per aggiornare",
|
||||
"vaultUpgradeRequired": "Aggiornamento della cassaforte richiesto.",
|
||||
"dismissPopup": "Chiudi finestra"
|
||||
},
|
||||
"credentials": {
|
||||
"title": "Credenziali",
|
||||
"addCredential": "Aggiungi credenziali",
|
||||
"editCredential": "Modifica credenziali",
|
||||
"deleteCredential": "Elimina credenziali",
|
||||
"credentialDetails": "Dettagli credenziali",
|
||||
"serviceName": "Nome servizio",
|
||||
"serviceNamePlaceholder": "es. Gmail, Facebook, Banca",
|
||||
"website": "Sito web",
|
||||
"websitePlaceholder": "https://esempio.com",
|
||||
"username": "Nome utente",
|
||||
"usernamePlaceholder": "Inserisci nome utente",
|
||||
"password": "Password",
|
||||
"passwordPlaceholder": "Inserisci password",
|
||||
"generatePassword": "Genera password",
|
||||
"copyPassword": "Copia password",
|
||||
"showPassword": "Mostra password",
|
||||
"hidePassword": "Nascondi password",
|
||||
"notes": "Note",
|
||||
"notesPlaceholder": "Note aggiuntive...",
|
||||
"totp": "Autenticazione a due fattori",
|
||||
"totpCode": "Codice TOTP",
|
||||
"copyTotp": "Copia TOTP",
|
||||
"totpSecret": "Segreto TOTP",
|
||||
"totpSecretPlaceholder": "Inserisci chiave segreta TOTP",
|
||||
"noCredentials": "Credenziali non trovate",
|
||||
"noCredentialsDescription": "Aggiungi le tue prime credenziali per iniziare",
|
||||
"searchPlaceholder": "Cerca credenziali...",
|
||||
"welcomeTitle": "Benvenuto in AliasVault!",
|
||||
"welcomeDescription": "Per usare l'estensione browser AliasVault: naviga su un sito e usa la finestra di compilazione automatica per creare una nuova credenziale.",
|
||||
"createdAt": "Creato",
|
||||
"updatedAt": "Ultimo aggiornamento",
|
||||
"autofill": "Compilazione automatica",
|
||||
"fillForm": "Compila modulo",
|
||||
"deleteConfirm": "Sei sicuro di voler eliminare questa credenziale?",
|
||||
"saveSuccess": "Credenziali salvate con successo",
|
||||
"tags": "Tag",
|
||||
"addTag": "Aggiungi tag",
|
||||
"removeTag": "Rimuovi tag",
|
||||
"folder": "Cartella",
|
||||
"selectFolder": "Seleziona cartella",
|
||||
"createFolder": "Crea cartella",
|
||||
"saveCredential": "Salva credenziale",
|
||||
"deleteCredentialTitle": "Elimina credenziale",
|
||||
"deleteCredentialConfirm": "Sei sicuro di voler eliminare queste credenziali? Questa azione non può essere annullata.",
|
||||
"randomAlias": "Alias casuale",
|
||||
"manual": "Manuale",
|
||||
"service": "Servizio",
|
||||
"serviceUrl": "URL del servizio",
|
||||
"loginCredentials": "Credenziali di accesso",
|
||||
"generateRandomUsername": "Genera nome utente casuale",
|
||||
"generateRandomPassword": "Genera password casuale",
|
||||
"changePasswordComplexity": "Modifica complessità password",
|
||||
"passwordLength": "Lunghezza password",
|
||||
"includeLowercase": "Includi lettere minuscole",
|
||||
"includeUppercase": "Includi lettere maiuscole",
|
||||
"includeNumbers": "Includi numeri",
|
||||
"includeSpecialChars": "Includi caratteri speciali",
|
||||
"avoidAmbiguousChars": "Evita caratteri ambigui (o, 0, ecc.)",
|
||||
"generateNewPreview": "Genera nuova anteprima",
|
||||
"generateRandomAlias": "Genera alias casuale",
|
||||
"alias": "Alias",
|
||||
"firstName": "Nome",
|
||||
"lastName": "Cognome",
|
||||
"nickName": "Soprannome",
|
||||
"gender": "Genere",
|
||||
"birthDate": "Data di nascita",
|
||||
"birthDatePlaceholder": "AAAA-MM-GG",
|
||||
"metadata": "Metadati",
|
||||
"validation": {
|
||||
"required": "Questo campo è obbligatorio",
|
||||
"serviceNameRequired": "Il nome del servizio è obbligatorio",
|
||||
"invalidEmail": "Formato email non valido",
|
||||
"invalidDateFormat": "La data deve essere nel formato AAAA-MM-GG"
|
||||
},
|
||||
"privateEmailTitle": "Email privata",
|
||||
"privateEmailAliasVaultServer": "Server AliasVault",
|
||||
"privateEmailDescription": "E2E crittografato, completamente privato.",
|
||||
"publicEmailTitle": "Fornitori Pubblici di Email Temporanee",
|
||||
"publicEmailDescription": "Anonimi ma con privacy ridotta. Accessibile a chiunque conosca l'indirizzo.",
|
||||
"useDomainChooser": "Usa selettore di dominio",
|
||||
"enterCustomDomain": "Inserisci un dominio personalizzato",
|
||||
"enterFullEmail": "Inserisci l'indirizzo email completo",
|
||||
"enterEmailPrefix": "Inserisci prefisso email"
|
||||
},
|
||||
"emails": {
|
||||
"title": "Email",
|
||||
"deleteEmailTitle": "Elimina Email",
|
||||
"deleteEmailConfirm": "Sei sicuro di voler eliminare definitivamente questa email?",
|
||||
"from": "Da",
|
||||
"to": "A",
|
||||
"date": "Data",
|
||||
"emailContent": "Contenuto email",
|
||||
"attachments": "Allegati",
|
||||
"emailNotFound": "Email non trovata",
|
||||
"noEmails": "Nessuna email trovata",
|
||||
"noEmailsDescription": "Non hai ancora ricevuto email ai tuoi indirizzi email privati. Quando ne riceverai una nuova, apparirà qui.",
|
||||
"dateFormat": {
|
||||
"justNow": "proprio ora",
|
||||
"minutesAgo_single": "{{count}} min fa",
|
||||
"minutesAgo_plural": "{{count}} min fa",
|
||||
"hoursAgo_single": "{{count}} ora fa",
|
||||
"hoursAgo_plural": "{{count}} ore fa",
|
||||
"yesterday": "ieri"
|
||||
},
|
||||
"errors": {
|
||||
"emailLoadError": "Si è verificato un errore durante il caricamento delle email. Riprova più tardi.",
|
||||
"emailUnexpectedError": "Si è verificato un errore imprevisto durante il caricamento delle email. Riprova più tardi."
|
||||
},
|
||||
"apiErrors": {
|
||||
"CLAIM_DOES_NOT_MATCH_USER": "L'indirizzo email attualmente scelto è già in uso. Cambia l'indirizzo modificando queste credenziali.",
|
||||
"CLAIM_DOES_NOT_EXIST": "Si è verificato un errore durante il caricamento delle email. Prova a modificare e salvare le credenziali per sincronizzare il database, poi riprova."
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"title": "Impostazioni",
|
||||
"serverUrl": "URL del server",
|
||||
"language": "Lingua",
|
||||
"autofillEnabled": "Abilita compilazione automatica",
|
||||
"version": "Versione",
|
||||
"openInNewWindow": "Apri in una nuova finestra",
|
||||
"openWebApp": "Apri app web",
|
||||
"loggedIn": "Accesso effettuato",
|
||||
"logout": "Disconnetti",
|
||||
"globalSettings": "Impostazioni globali",
|
||||
"autofillPopup": "Popup compilazione automatica",
|
||||
"activeOnAllSites": "Attivo su tutti i siti (a meno che non sia disabilitato sotto)",
|
||||
"disabledOnAllSites": "Disabilitato su tutti i siti",
|
||||
"enabled": "Abilitato",
|
||||
"disabled": "Disabilitato",
|
||||
"rightClickContextMenu": "Menu contestuale clic destro",
|
||||
"autofillMatching": "Riconoscimento campi automatica.",
|
||||
"autofillMatchingMode": "Modalità riconoscimento capi automatica",
|
||||
"autofillMatchingModeDescription": "Determina quali credenziali vengono considerate corrispondenti e mostrate come suggerimenti nel popup di compilazione automatica per un determinato sito web.",
|
||||
"autofillMatchingDefault": "URL + sottodominio + nome wildcard",
|
||||
"autofillMatchingUrlSubdomain": "URL + sottodominio",
|
||||
"autofillMatchingUrlExact": "Solo dominio URL esatto",
|
||||
"siteSpecificSettings": "Impostazioni specifiche per sito",
|
||||
"autofillPopupOn": "Finestra compilazione automatica su: ",
|
||||
"enabledForThisSite": "Abilitato per questo sito",
|
||||
"disabledForThisSite": "Disabilitato per questo sito",
|
||||
"temporarilyDisabledUntil": "Disabilitato temporaneamente fino a ",
|
||||
"resetAllSiteSettings": "Reimposta tutte le impostazioni specifiche per sito",
|
||||
"appearance": "Aspetto",
|
||||
"theme": "Tema",
|
||||
"useDefault": "Usa predefinito",
|
||||
"light": "Chiaro",
|
||||
"dark": "Scuro",
|
||||
"keyboardShortcuts": "Scorciatoie da tastiera",
|
||||
"configureKeyboardShortcuts": "Configura scorciatoie da tastiera",
|
||||
"configure": "Configura",
|
||||
"security": "Sicurezza",
|
||||
"clipboardClearTimeout": "Cancella appunti dopo la copia",
|
||||
"clipboardClearTimeoutDescription": "Cancella automaticamente gli appunti dopo aver copiato i dati sensibili",
|
||||
"clipboardClearDisabled": "Non pulire mai",
|
||||
"clipboardClear5Seconds": "Cancella dopo 5 secondi",
|
||||
"clipboardClear10Seconds": "Cancella dopo 10 secondi",
|
||||
"clipboardClear15Seconds": "Cancella dopo 15 secondi",
|
||||
"autoLockTimeout": "Timeout Blocco Automatico",
|
||||
"autoLockTimeoutDescription": "Blocca automaticamente la cassaforte dopo un periodo di inattività",
|
||||
"autoLockTimeoutHelp": "La cassaforte si bloccherà solo dopo il periodo specificato di inattività (nessun utilizzo di riempimento automatico o estensione popup aperto). La cassaforte si bloccherà sempre quando il browser è chiuso, indipendentemente da questa impostazione.",
|
||||
"autoLockNever": "Mai",
|
||||
"autoLock15Seconds": "15 secondi",
|
||||
"autoLock1Minute": "1 minuto",
|
||||
"autoLock5Minutes": "5 minuti",
|
||||
"autoLock15Minutes": "15 minuti",
|
||||
"autoLock30Minutes": "30 minuti",
|
||||
"autoLock1Hour": "1 ora",
|
||||
"autoLock4Hours": "4 ore",
|
||||
"autoLock8Hours": "8 ore",
|
||||
"autoLock24Hours": "24 ore",
|
||||
"versionPrefix": "Versione ",
|
||||
"preferences": "Preferenze",
|
||||
"autofillSettings": "Impostazioni di riempimento automatico",
|
||||
"clipboardSettings": "Impostazioni appunti",
|
||||
"contextMenuSettings": "Preferenze menu contestuale",
|
||||
"contextMenu": "Menu contestuale",
|
||||
"contextMenuEnabled": "Il menu contestuale è attivato",
|
||||
"contextMenuDisabled": "Il menu contestuale è disabilitato",
|
||||
"contextMenuDescription": "Click destro sui campi di input per accedere alle opzioni di AliasVault",
|
||||
"selectLanguage": "Seleziona la lingua",
|
||||
"validation": {
|
||||
"apiUrlRequired": "L'URL API è obbligatorio",
|
||||
"apiUrlInvalid": "Inserisci un URL API valido",
|
||||
"clientUrlRequired": "L'URL del client è obbligatorio",
|
||||
"clientUrlInvalid": "Inserisci un URL del client valido"
|
||||
}
|
||||
},
|
||||
"upgrade": {
|
||||
"title": "Aggiorna Cassaforte",
|
||||
"subtitle": "AliasVault è stato aggiornato e la tua cassaforte deve essere aggiornata. Dovrebbe richiedere solo pochi secondi.",
|
||||
"versionInformation": "Informazioni sulla versione",
|
||||
"yourVault": "La tua cassaforte:",
|
||||
"newVersion": "Nuova versione:",
|
||||
"upgrade": "Aggiorna cassaforte",
|
||||
"upgrading": "Aggiornamento in corso...",
|
||||
"logout": "Disconnetti",
|
||||
"whatsNew": "Novità",
|
||||
"whatsNewDescription": "È richiesto un aggiornamento per supportare le seguenti modifiche:",
|
||||
"noDescriptionAvailable": "Nessuna descrizione disponibile per questa versione.",
|
||||
"okay": "Ok",
|
||||
"status": {
|
||||
"preparingUpgrade": "Preparazione aggiornamento...",
|
||||
"vaultAlreadyUpToDate": "La cassaforte è già aggiornata",
|
||||
"startingDatabaseTransaction": "Avvio transazione database...",
|
||||
"applyingDatabaseMigrations": "Applicazione migrazioni database...",
|
||||
"applyingMigration": "Applicazione migrazione {{current}} di {{total}}...",
|
||||
"committingChanges": "Modifica in corso..."
|
||||
},
|
||||
"alerts": {
|
||||
"error": "Errore",
|
||||
"unableToGetVersionInfo": "Impossibile ottenere informazioni sulla versione. Riprova.",
|
||||
"selfHostedServer": "Server Autospitato",
|
||||
"selfHostedWarning": "Se usi un server autospitato, assicurati di aggiornare anche la tua istanza, altrimenti l'accesso al client web smetterà di funzionare.",
|
||||
"cancel": "Annulla",
|
||||
"continueUpgrade": "Continua aggiornamento",
|
||||
"upgradeFailed": "Aggiornamento non riuscito",
|
||||
"failedToApplyMigration": "Impossibile eseguire la migrazione ({{current}} di {{total}})",
|
||||
"unknownErrorDuringUpgrade": "Si è verificato un errore sconosciuto durante l'aggiornamento. Riprova."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,26 +89,17 @@
|
||||
"executingOperation": "Actie uitvoeren...",
|
||||
"loadMore": "Laad meer",
|
||||
"errors": {
|
||||
"VaultMergeRequired": "Je vault moet worden bijgewerkt. Log in op de AliasVault website en volg de stappen.",
|
||||
"VaultOutdated": "Je vault is verouderd. Log in op de AliasVault website en volg de stappen.",
|
||||
"NoVaultFound": "Je account heeft nog geen vault. Voltooi eerst de tutorial in de AliasVault webclient voordat je de browserextensie gebruikt.",
|
||||
"serverNotAvailable": "De AliasVault server is niet beschikbaar. Probeer het later opnieuw of neem contact op met de ondersteuning als het probleem aanhoudt.",
|
||||
"clientVersionNotSupported": "Deze versie van de AliasVault browserextensie wordt niet meer ondersteund door de server. Update je browserextensie naar de nieuwste versie.",
|
||||
"serverVersionNotSupported": "De AliasVault server moet worden bijgewerkt naar een nieuwere versie om deze browserextensie te kunnen gebruiken. Neem contact op met support als je hulp nodig hebt.",
|
||||
"unknownError": "Er is een onbekende fout opgetreden",
|
||||
"failedToStoreVault": "Vault opslaan mislukt",
|
||||
"vaultNotAvailable": "Vault niet beschikbaar",
|
||||
"failedToGetVault": "Vault ophalen mislukt",
|
||||
"failedToRetrieveData": "Gegevens ophalen mislukt",
|
||||
"vaultIsLocked": "Vault is vergrendeld",
|
||||
"failedToGetCredentials": "Credentials ophalen mislukt",
|
||||
"failedToCreateIdentity": "Identiteit aanmaken mislukt",
|
||||
"failedToGetDefaultEmailDomain": "Standaard e-maildomein ophalen mislukt",
|
||||
"failedToGetDefaultIdentitySettings": "Standaard identiteit instellingen ophalen mislukt",
|
||||
"failedToGetPasswordSettings": "Wachtwoordinstellingen ophalen mislukt",
|
||||
"failedToUploadVault": "Vault uploaden mislukt",
|
||||
"noDerivedKeyAvailable": "Geen afgeleide sleutel beschikbaar voor versleuteling",
|
||||
"failedToUploadVaultToServer": "Nieuwe vault uploaden naar server mislukt",
|
||||
"noVaultOrDerivedKeyFound": "Geen vault of afgeleide sleutel gevonden"
|
||||
"passwordChanged": "Je wachtwoord is veranderd sinds de laatste keer dat je bent ingelogd. Log opnieuw in."
|
||||
},
|
||||
"apiErrors": {
|
||||
"UNKNOWN_ERROR": "Er is een onbekende fout opgetreden. Probeer het opnieuw.",
|
||||
@@ -118,8 +109,6 @@
|
||||
"INVALID_AUTHENTICATOR_CODE": "Ongeldige authenticator code. Probeer het opnieuw.",
|
||||
"INVALID_RECOVERY_CODE": "Ongeldige herstelcode. Probeer het opnieuw.",
|
||||
"REFRESH_TOKEN_REQUIRED": "Refresh token is vereist.",
|
||||
"USER_NOT_FOUND_IN_TOKEN": "Gebruiker niet gevonden in token.",
|
||||
"USER_NOT_FOUND_IN_DATABASE": "Gebruiker niet gevonden in database.",
|
||||
"INVALID_REFRESH_TOKEN": "Ongeldig refresh token.",
|
||||
"REFRESH_TOKEN_REVOKED_SUCCESSFULLY": "Refresh token succesvol ingetrokken.",
|
||||
"PUBLIC_REGISTRATION_DISABLED": "Registratie van nieuwe accounts is momenteel uitgeschakeld op deze server. Neem contact op met de beheerder.",
|
||||
@@ -206,23 +195,15 @@
|
||||
"totpSecretPlaceholder": "Voer TOTP secret in",
|
||||
"noCredentials": "Geen credentials gevonden",
|
||||
"noCredentialsDescription": "Voeg je eerste credentials toe om te beginnen",
|
||||
"searchCredentials": "Zoek credentials...",
|
||||
"searchPlaceholder": "Credentials zoeken...",
|
||||
"welcomeTitle": "Welkom bij AliasVault!",
|
||||
"welcomeDescription": "Om de AliasVault browser extensie te gebruiken: navigeer naar een website en gebruik de AliasVault autofill popup om nieuwe credentials aan te maken.",
|
||||
"lastUsed": "Laatst gebruikt",
|
||||
"createdAt": "Aangemaakt",
|
||||
"updatedAt": "Laatst bijgewerkt",
|
||||
"autofill": "Autofill",
|
||||
"fillForm": "Formulier invullen",
|
||||
"copyUsername": "Gebruikersnaam kopiëren",
|
||||
"openWebsite": "Website openen",
|
||||
"favorite": "Favoriet",
|
||||
"unfavorite": "Uit favorieten verwijderen",
|
||||
"deleteConfirm": "Weet je zeker dat je deze credential wilt verwijderen?",
|
||||
"deleteSuccess": "Credential succesvol verwijderd",
|
||||
"saveSuccess": "Credential succesvol opgeslagen",
|
||||
"copySuccess": "Gekopieerd naar klembord",
|
||||
"tags": "Labels",
|
||||
"addTag": "Label toevoegen",
|
||||
"removeTag": "Label verwijderen",
|
||||
@@ -256,20 +237,21 @@
|
||||
"birthDate": "Geboortedatum",
|
||||
"birthDatePlaceholder": "YYYY-MM-DD",
|
||||
"metadata": "Metadata",
|
||||
"errors": {
|
||||
"invalidUrl": "Voer een geldige URL in",
|
||||
"saveError": "Credential opslaan mislukt",
|
||||
"loadError": "Credential laden mislukt",
|
||||
"deleteError": "Credential verwijderen mislukt",
|
||||
"copyError": "Kopiëren naar klembord mislukt"
|
||||
},
|
||||
"validation": {
|
||||
"required": "Dit veld is verplicht",
|
||||
"serviceNameRequired": "Servicenaam is verplicht",
|
||||
"invalidUrl": "Ongeldig URL-formaat",
|
||||
"invalidEmail": "Ongeldig e-mailformaat",
|
||||
"invalidDateFormat": "Datum moet in YYYY-MM-DD formaat zijn"
|
||||
}
|
||||
},
|
||||
"privateEmailTitle": "Privé e-mail",
|
||||
"privateEmailAliasVaultServer": "AliasVault server",
|
||||
"privateEmailDescription": "E2E versleuteld, volledig privé.",
|
||||
"publicEmailTitle": "Publieke tijdelijke e-mailproviders",
|
||||
"publicEmailDescription": "Anoniem maar beperkte privacy. E-mail inhoud is leesbaar door iedereen die het adres kent.",
|
||||
"useDomainChooser": "Domein kiezen",
|
||||
"enterCustomDomain": "Voer aangepast domein in",
|
||||
"enterFullEmail": "Voer volledig e-mailadres in",
|
||||
"enterEmailPrefix": "E-mailprefix invoeren"
|
||||
},
|
||||
"emails": {
|
||||
"title": "E-mails",
|
||||
@@ -317,6 +299,12 @@
|
||||
"enabled": "Ingeschakeld",
|
||||
"disabled": "Uitgeschakeld",
|
||||
"rightClickContextMenu": "Rechtermuisknop menu",
|
||||
"autofillMatching": "Autofill matching",
|
||||
"autofillMatchingMode": "Autofill matching modus",
|
||||
"autofillMatchingModeDescription": "Bepaalt op welke manier credentials worden beschouwd als matches en worden getoond als suggestie in de autofill popup voor een bepaalde website.",
|
||||
"autofillMatchingDefault": "URL + subdomein + naam wildcard",
|
||||
"autofillMatchingUrlSubdomain": "URL + subdomein",
|
||||
"autofillMatchingUrlExact": "Exacte URL-domein",
|
||||
"siteSpecificSettings": "Site-specifieke Instellingen",
|
||||
"autofillPopupOn": "Autofill popup op: ",
|
||||
"enabledForThisSite": "Ingeschakeld voor deze site",
|
||||
@@ -331,7 +319,36 @@
|
||||
"keyboardShortcuts": "Snelkoppelingen",
|
||||
"configureKeyboardShortcuts": "Snelkoppelingen configureren",
|
||||
"configure": "Configureren",
|
||||
"security": "Beveiliging",
|
||||
"clipboardClearTimeout": "Automatisch klembord wissen na kopiëren",
|
||||
"clipboardClearTimeoutDescription": "Automatisch het klembord wissen na kopiëren van gevoelige gegevens",
|
||||
"clipboardClearDisabled": "Nooit wissen",
|
||||
"clipboardClear5Seconds": "Wis na 5 seconden",
|
||||
"clipboardClear10Seconds": "Wis na 10 seconden",
|
||||
"clipboardClear15Seconds": "Wis na 15 seconden",
|
||||
"autoLockTimeout": "Automatisch vergrendelen",
|
||||
"autoLockTimeoutDescription": "Vergrendel de vault automatisch na inactiviteit",
|
||||
"autoLockTimeoutHelp": "De vault zal alleen vergrendelen na de opgegeven periode van inactiviteit (geen automatisch invullen of extensie geopend). De vault wordt altijd vergrendeld wanneer de browser wordt afgesloten, ongeacht deze instelling.",
|
||||
"autoLockNever": "Nooit",
|
||||
"autoLock15Seconds": "15 seconden",
|
||||
"autoLock1Minute": "1 minuut",
|
||||
"autoLock5Minutes": "5 minuten",
|
||||
"autoLock15Minutes": "15 minuten",
|
||||
"autoLock30Minutes": "30 minuten",
|
||||
"autoLock1Hour": "1 uur",
|
||||
"autoLock4Hours": "4 uur",
|
||||
"autoLock8Hours": "8 uur",
|
||||
"autoLock24Hours": "24 uur",
|
||||
"versionPrefix": "Versie ",
|
||||
"preferences": "Voorkeuren",
|
||||
"autofillSettings": "Autofill instellingen",
|
||||
"clipboardSettings": "Klembord instellingen",
|
||||
"contextMenuSettings": "Context menu instellingen",
|
||||
"contextMenu": "Context menu",
|
||||
"contextMenuEnabled": "Context menu is ingeschakeld",
|
||||
"contextMenuDisabled": "Context menu is uitgeschakeld",
|
||||
"contextMenuDescription": "Klik met de rechtermuisknop op invoervelden om AliasVault opties te zien",
|
||||
"selectLanguage": "Selecteer taal",
|
||||
"validation": {
|
||||
"apiUrlRequired": "API URL is vereist",
|
||||
"apiUrlInvalid": "Voer een geldige API URL in",
|
||||
|
||||
392
apps/browser-extension/src/i18n/locales/ru.json
Normal file
392
apps/browser-extension/src/i18n/locales/ru.json
Normal file
@@ -0,0 +1,392 @@
|
||||
{
|
||||
"auth": {
|
||||
"loginTitle": "Войдите в AliasVault",
|
||||
"username": "Имя пользователя или почта",
|
||||
"usernamePlaceholder": "имя / имя@company.com",
|
||||
"password": "Пароль",
|
||||
"passwordPlaceholder": "Введите ваш пароль",
|
||||
"rememberMe": "Запомнить меня",
|
||||
"loginButton": "Логин",
|
||||
"noAccount": "Нет аккаунта?",
|
||||
"createVault": "Создать новое хранилище",
|
||||
"twoFactorTitle": "Пожалуйста, введите код аутентификации из вашего приложения-аутентификатора.",
|
||||
"authCode": "Код аутентификации",
|
||||
"authCodePlaceholder": "Введите 6-значный код",
|
||||
"verify": "Проверить",
|
||||
"cancel": "Отменить",
|
||||
"twoFactorNote": "Примечание: если у вас нет доступа к устройству аутентификации, вы можете сбросить ваш 2FA с помощью кода восстановления, войдя в систему через сайт.",
|
||||
"masterPassword": "Мастер пароль",
|
||||
"unlockVault": "Разблокировать хранилище",
|
||||
"unlockTitle": "Разблокировать ваше хранилище",
|
||||
"unlockDescription": "Введите ваш мастер пароль для разблокировки вашего хранилища.",
|
||||
"logout": "Выйти",
|
||||
"logoutConfirm": "Вы уверены, что хотите выйти?",
|
||||
"sessionExpired": "Время сеанса истекло. Пожалуйста, войдите снова.",
|
||||
"unlockSuccess": "Хранилище успешно разблокировано!",
|
||||
"unlockSuccessTitle": "Ваше хранилище успешно разблокировано",
|
||||
"unlockSuccessDescription": "Теперь вы можете использовать автозаполнение форм входа в Вашем браузере.",
|
||||
"closePopup": "Закрыть окно",
|
||||
"browseVault": "Обзор содержимого хранилища",
|
||||
"connectingTo": "Подключение к",
|
||||
"switchAccounts": "Переключить аккаунт?",
|
||||
"loggedIn": "Вход выполнен",
|
||||
"errors": {
|
||||
"invalidCode": "Пожалуйста, введите правильный 6-значный код аутентификации.",
|
||||
"serverError": "Не удалось подключиться к серверу AliasVault. Пожалуйста, повторите попытку позже или обратитесь в службу поддержки, если проблема не устранится.",
|
||||
"noToken": "Вход не удался -- токен не возвращён",
|
||||
"migrationError": "Возникла ошибка при проверке ожидающих перемещений.",
|
||||
"wrongPassword": "Неверный пароль. Пожалуйста, повторите попытку.",
|
||||
"accountLocked": "Аккаунт временно заблокирован из-за слишком большого числа неудачных попыток.",
|
||||
"networkError": "Ошибка сети. Пожалуйста, проверьте соединение и повторите еще раз.",
|
||||
"loginDataMissing": "Время входа истекло. Пожалуйста, повторите попытку."
|
||||
}
|
||||
},
|
||||
"menu": {
|
||||
"credentials": "Учетные данные",
|
||||
"emails": "Почта",
|
||||
"settings": "Настройки"
|
||||
},
|
||||
"common": {
|
||||
"appName": "AliasVault",
|
||||
"loading": "Загрузка...",
|
||||
"error": "Ошибка",
|
||||
"success": "Успешно",
|
||||
"cancel": "Отмена",
|
||||
"use": "Использовать",
|
||||
"delete": "Удалить",
|
||||
"close": "Закрыть",
|
||||
"copied": "Скопировано!",
|
||||
"openInNewWindow": "Открыть в новом окне",
|
||||
"language": "Язык",
|
||||
"enabled": "Включено",
|
||||
"disabled": "Отключено",
|
||||
"showPassword": "Показать пароль",
|
||||
"hidePassword": "Скрыть пароль",
|
||||
"copyToClipboard": "Скопировать в буфер обмена",
|
||||
"loadingEmails": "Загрузка писем...",
|
||||
"loadingTotpCodes": "Загрузка TOTP кодов...",
|
||||
"attachments": "Вложения",
|
||||
"loadingAttachments": "Загрузка вложений...",
|
||||
"settings": "Настройки",
|
||||
"recentEmails": "Последние письма",
|
||||
"loginCredentials": "Данные для авторизации",
|
||||
"twoFactorAuthentication": "Двухфакторная аутентификация",
|
||||
"alias": "Псевдоним",
|
||||
"notes": "Заметки",
|
||||
"fullName": "Полное имя",
|
||||
"firstName": "Имя",
|
||||
"lastName": "Фамилия",
|
||||
"birthDate": "Дата рождения",
|
||||
"nickname": "Никнейм",
|
||||
"email": "Электронная почта",
|
||||
"username": "Имя пользователя",
|
||||
"password": "Пароль",
|
||||
"syncingVault": "Синхронизация хранилища",
|
||||
"savingChangesToVault": "Сохранение изменений в хранилище",
|
||||
"uploadingVaultToServer": "Загрузка хранилища на сервер",
|
||||
"checkingVaultUpdates": "Проверка наличия обновлений в хранилище",
|
||||
"syncingUpdatedVault": "Синхронизация обновленного хранилища",
|
||||
"executingOperation": "Выполнение операций...",
|
||||
"loadMore": "Загрузить ещё",
|
||||
"errors": {
|
||||
"VaultOutdated": "Ваше хранилище устарело. Пожалуйста, войдите на сайт AliasVault и следуйте инструкциям.",
|
||||
"serverNotAvailable": "Сервер AliasVault недоступен. Пожалуйста, повторите попытку позже или обратитесь в службу поддержки, если проблема не устранится.",
|
||||
"clientVersionNotSupported": "Эта версия браузерного расширения AliasVault больше не поддерживается сервером. Пожалуйста, обновите расширение вашего браузера до последней версии.",
|
||||
"serverVersionNotSupported": "Чтобы использовать это расширение для браузера, сервер AliasVault необходимо обновить до более новой версии. Пожалуйста, обратитесь в службу поддержки, если вам нужна помощь.",
|
||||
"unknownError": "Произошла неизвестная ошибка",
|
||||
"failedToStoreVault": "Не удалось сохранить хранилище",
|
||||
"vaultNotAvailable": "Хранилище недоступно",
|
||||
"failedToRetrieveData": "Failed to retrieve data",
|
||||
"vaultIsLocked": "Хранилище заблокировано",
|
||||
"failedToUploadVault": "Не удалось загрузить хранилище",
|
||||
"passwordChanged": "Your password has changed since the last time you logged in. Please login again for security reasons."
|
||||
},
|
||||
"apiErrors": {
|
||||
"UNKNOWN_ERROR": "Произошла неизвестная ошибка. Пожалуйста, попробуйте снова.",
|
||||
"ACCOUNT_LOCKED": "Учетная запись временно заблокирована из-за слишком большого количества неудачных попыток. Пожалуйста, повторите попытку позже.",
|
||||
"ACCOUNT_BLOCKED": "Ваша учетная запись была заблокирована. Если вы считаете, что это ошибка, пожалуйста, свяжитесь со службой поддержки.",
|
||||
"USER_NOT_FOUND": "Неверное имя пользователя или пароль. Пожалуйста, попробуйте снова.",
|
||||
"INVALID_AUTHENTICATOR_CODE": "Неверный код аутентификатора. Пожалуйста, попробуйте снова.",
|
||||
"INVALID_RECOVERY_CODE": "Неверный код восстановления. Пожалуйста, попробуйте снова.",
|
||||
"REFRESH_TOKEN_REQUIRED": "Требуется токен обновления.",
|
||||
"INVALID_REFRESH_TOKEN": "Недопустимый токен обновления.",
|
||||
"REFRESH_TOKEN_REVOKED_SUCCESSFULLY": "Токен обновления успешно отозван.",
|
||||
"PUBLIC_REGISTRATION_DISABLED": "В настоящее время регистрация новой учетной записи на этом сервере отключена. Пожалуйста, свяжитесь с администратором.",
|
||||
"USERNAME_REQUIRED": "Требуется ввести имя пользователя.",
|
||||
"USERNAME_ALREADY_IN_USE": "Имя пользователя уже используется.",
|
||||
"USERNAME_AVAILABLE": "Имя пользователя доступно.",
|
||||
"USERNAME_MISMATCH": "Имя пользователя не соответствует текущему пользователю.",
|
||||
"PASSWORD_MISMATCH": "Указанный пароль не совпадает с вашим текущим паролем.",
|
||||
"ACCOUNT_SUCCESSFULLY_DELETED": "Аккаунт успешно удалена.",
|
||||
"USERNAME_EMPTY_OR_WHITESPACE": "Имя пользователя не может быть пустым или через пробел.",
|
||||
"USERNAME_TOO_SHORT": "Слишком короткое имя пользователя: должно быть не менее 3-х символов.",
|
||||
"USERNAME_TOO_LONG": "Слишком длинное имя пользователя: оно не может быть длиннее 40 символов.",
|
||||
"USERNAME_INVALID_EMAIL": "Неверный адрес электронной почты.",
|
||||
"USERNAME_INVALID_CHARACTERS": "Имя пользователя неверно, может содержать только буквы или цифры.",
|
||||
"VAULT_NOT_UP_TO_DATE": "Ваше хранилище не обновлено. Пожалуйста, синхронизируйте ваше хранилище и повторите попытку.",
|
||||
"INTERNAL_SERVER_ERROR": "Внутренняя ошибка сервера.",
|
||||
"VAULT_ERROR": "Локальное хранилище не обновлено. Пожалуйста, синхронизируйте ваше хранилище, обновив страницу, и повторите попытку."
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"or": "или",
|
||||
"new": "Новый",
|
||||
"cancel": "отмена",
|
||||
"search": "Поиск",
|
||||
"vaultLocked": "AliasVault заблокирован.",
|
||||
"creatingNewAlias": "Создание нового псевдонима...",
|
||||
"noMatchesFound": "Совпадений не найдено",
|
||||
"searchVault": "Поиск хранилища...",
|
||||
"serviceName": "Имя сервиса",
|
||||
"email": "Электронная почта",
|
||||
"username": "Имя пользователя",
|
||||
"password": "Пароль",
|
||||
"enterServiceName": "Введите имя сервиса",
|
||||
"enterEmailAddress": "Введите адрес электронной почты",
|
||||
"enterUsername": "Введите имя пользователя",
|
||||
"hideFor1Hour": "Скрыть на 1 час (текущий сайт)",
|
||||
"hidePermanently": "Скрыть навсегда (текущий сайт)",
|
||||
"createRandomAlias": "Создать случайный псевдоним",
|
||||
"createUsernamePassword": "Создайте имя пользователя/пароль",
|
||||
"randomAlias": "Случайный псевдоним",
|
||||
"usernamePassword": "Имя пользователя/пароль",
|
||||
"createAndSaveAlias": "Создать и сохранить псевдоним",
|
||||
"createAndSaveCredential": "Создать и сохранить учетные данные",
|
||||
"randomIdentityDescription": "Сгенерировать случайную личность со случайным адресом электронной почты, доступным в AliasVault.",
|
||||
"randomIdentityDescriptionDropdown": "Случайная личность со случайным адресом электронной почты",
|
||||
"manualCredentialDescription": "Укажите свой собственный адрес электронной почты и имя пользователя.",
|
||||
"manualCredentialDescriptionDropdown": "Ручной ввод имени пользователя и пароля",
|
||||
"failedToCreateIdentity": "Не удалось создать личность. Пожалуйста, попробуйте снова.",
|
||||
"enterEmailAndOrUsername": "Введите адрес электронной почты и/или имя пользователя",
|
||||
"autofillWithAliasVault": "Автозаполнение с помощью AliasVault",
|
||||
"generateRandomPassword": "Сгенерировать случайный пароль (скопировать в буфер обмена)",
|
||||
"generateNewPassword": "Сгенерировать новый пароль",
|
||||
"togglePasswordVisibility": "Переключение видимости пароля",
|
||||
"passwordCopiedToClipboard": "Пароль скопирован в буфер обмена",
|
||||
"enterEmailAndOrUsernameError": "Введите адрес электронной почты и/или имя пользователя",
|
||||
"openAliasVaultToUpgrade": "Откройте AliasVault для обновления",
|
||||
"vaultUpgradeRequired": "Требуется обновление хранилища.",
|
||||
"dismissPopup": "Закрыть окно"
|
||||
},
|
||||
"credentials": {
|
||||
"title": "Учетные данные",
|
||||
"addCredential": "Добавить учетные данные",
|
||||
"editCredential": "Редактировать учетные данные",
|
||||
"deleteCredential": "Удалить учетные данные",
|
||||
"credentialDetails": "Подробности учетных данных",
|
||||
"serviceName": "Название сервиса",
|
||||
"serviceNamePlaceholder": "например, Gmail, Facebook, Банк",
|
||||
"website": "Сайт",
|
||||
"websitePlaceholder": "https://example.com",
|
||||
"username": "Имя пользователя",
|
||||
"usernamePlaceholder": "Введите имя пользователя",
|
||||
"password": "Пароль",
|
||||
"passwordPlaceholder": "Введите пароль",
|
||||
"generatePassword": "Сгенерировать пароль",
|
||||
"copyPassword": "Скопировать пароль",
|
||||
"showPassword": "Показать пароль",
|
||||
"hidePassword": "Скрыть пароль",
|
||||
"notes": "Заметки",
|
||||
"notesPlaceholder": "Дополнительные заметки...",
|
||||
"totp": "Двухфакторная аутентификация",
|
||||
"totpCode": "TOTP код",
|
||||
"copyTotp": "Скопировать TOTP",
|
||||
"totpSecret": "TOTP секрет",
|
||||
"totpSecretPlaceholder": "Введите секретный ключ TOTP",
|
||||
"noCredentials": "Учетные данные не найдены",
|
||||
"noCredentialsDescription": "Добавьте свои первые учетные данные, чтобы начать работу",
|
||||
"searchPlaceholder": "Поиск учетных данных...",
|
||||
"welcomeTitle": "Добро пожаловать в AliasVault!",
|
||||
"welcomeDescription": "Чтобы использовать браузерное расширение AliasVault: перейдите на сайт и используйте всплывающее окно автозаполнения AliasVault для создания новых учетных данных.",
|
||||
"createdAt": "Создан",
|
||||
"updatedAt": "Последнее обновление",
|
||||
"autofill": "Автозаполнение",
|
||||
"fillForm": "Заполнить форму",
|
||||
"deleteConfirm": "Вы уверены, что хотите удалить эти учетные данные?",
|
||||
"saveSuccess": "Учетные данные успешно сохранены",
|
||||
"tags": "Теги",
|
||||
"addTag": "Добавить тег",
|
||||
"removeTag": "Удалить тег",
|
||||
"folder": "Папка",
|
||||
"selectFolder": "Выбрать папку",
|
||||
"createFolder": "Создать папку",
|
||||
"saveCredential": "Сохранить учетные данные",
|
||||
"deleteCredentialTitle": "Удалить учетные данные",
|
||||
"deleteCredentialConfirm": "Вы уверены, что хотите удалить эти учетные данные? Это действие невозможно отменить.",
|
||||
"randomAlias": "Случайный псевдоним",
|
||||
"manual": "Инструкция",
|
||||
"service": "Сервис",
|
||||
"serviceUrl": "URL сервиса",
|
||||
"loginCredentials": "Учетные данные для авторизации",
|
||||
"generateRandomUsername": "Сгенерировать случайное имя пользователя",
|
||||
"generateRandomPassword": "Сгенерировать случайный пароль",
|
||||
"changePasswordComplexity": "Изменить сложность пароля",
|
||||
"passwordLength": "Длина пароля",
|
||||
"includeLowercase": "Включить строчные буквы",
|
||||
"includeUppercase": "Включить заглавные буквы",
|
||||
"includeNumbers": "Включить числа",
|
||||
"includeSpecialChars": "Включить специальные символы",
|
||||
"avoidAmbiguousChars": "Избегать двусмысленных символов (o, 0 и т.д.).",
|
||||
"generateNewPreview": "Создать новый предварительный просмотр",
|
||||
"generateRandomAlias": "Сгенерировать случайный псевдоним",
|
||||
"alias": "Псевдоним",
|
||||
"firstName": "Имя",
|
||||
"lastName": "Фамилия",
|
||||
"nickName": "Никнейм",
|
||||
"gender": "Пол",
|
||||
"birthDate": "Дата рождения",
|
||||
"birthDatePlaceholder": "ГГГГ-ММ-ДД",
|
||||
"metadata": "Метаданные",
|
||||
"validation": {
|
||||
"required": "Это поле является обязательным",
|
||||
"serviceNameRequired": "Требуется указать название сервиса",
|
||||
"invalidEmail": "Неверный формат электронной почты",
|
||||
"invalidDateFormat": "Дата должна быть указана в формате ГГГГ-ММ-ДД"
|
||||
},
|
||||
"privateEmailTitle": "Private Email",
|
||||
"privateEmailAliasVaultServer": "AliasVault server",
|
||||
"privateEmailDescription": "E2E encrypted, fully private.",
|
||||
"publicEmailTitle": "Public Temp Email Providers",
|
||||
"publicEmailDescription": "Anonymous but limited privacy. Email content is readable by anyone that knows the address.",
|
||||
"useDomainChooser": "Use domain chooser",
|
||||
"enterCustomDomain": "Enter custom domain",
|
||||
"enterFullEmail": "Enter full email address",
|
||||
"enterEmailPrefix": "Enter email prefix"
|
||||
},
|
||||
"emails": {
|
||||
"title": "Письма",
|
||||
"deleteEmailTitle": "Удалить письмо",
|
||||
"deleteEmailConfirm": "Вы уверены, что хотите навсегда удалить это письмо?",
|
||||
"from": "От",
|
||||
"to": "К",
|
||||
"date": "Дата",
|
||||
"emailContent": "Содержимое письма",
|
||||
"attachments": "Вложения",
|
||||
"emailNotFound": "Адрес электронной почты не найден",
|
||||
"noEmails": "Электронные письма не найдены",
|
||||
"noEmailsDescription": "Вы еще не получали никаких электронных писем на свои личные адреса электронной почты. Когда вы получите новое электронное письмо, оно появится здесь.",
|
||||
"dateFormat": {
|
||||
"justNow": "прямо сейчас",
|
||||
"minutesAgo_single": "{{count}} мин назад",
|
||||
"minutesAgo_plural": "{{count}} минут назад",
|
||||
"hoursAgo_single": "{{count}} часов назад",
|
||||
"hoursAgo_plural": "{{count}} часов назад",
|
||||
"yesterday": "вчера"
|
||||
},
|
||||
"errors": {
|
||||
"emailLoadError": "Произошла ошибка при загрузке писем. Пожалуйста, повторите попытку позже.",
|
||||
"emailUnexpectedError": "При загрузке писем произошла непредвиденная ошибка. Пожалуйста, повторите попытку позже."
|
||||
},
|
||||
"apiErrors": {
|
||||
"CLAIM_DOES_NOT_MATCH_USER": "Текущий выбранный адрес электронной почты уже используется. Пожалуйста, измените адрес электронной почты, отредактировав эти учетные данные.",
|
||||
"CLAIM_DOES_NOT_EXIST": "При попытке загрузить письма произошла ошибка. Пожалуйста, попробуйте отредактировать и сохранить данные для синхронизации базы данных, затем повторите попытку."
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"title": "Настройки",
|
||||
"serverUrl": "URL-адрес сервера",
|
||||
"language": "Язык",
|
||||
"autofillEnabled": "Включить автозаполнение",
|
||||
"version": "Версия",
|
||||
"openInNewWindow": "Открыть в новом окне",
|
||||
"openWebApp": "Открыть веб-приложение",
|
||||
"loggedIn": "Вход выполнен",
|
||||
"logout": "Выйти",
|
||||
"globalSettings": "Глобальные настройки",
|
||||
"autofillPopup": "Всплывающее окно автозаполнения",
|
||||
"activeOnAllSites": "Активен на всех сайтах (если не отключен ниже)",
|
||||
"disabledOnAllSites": "Отключено на всех сайтах",
|
||||
"enabled": "Включен",
|
||||
"disabled": "Выключен",
|
||||
"rightClickContextMenu": "Контекстное меню правым щелчком мыши",
|
||||
"autofillMatching": "Autofill Matching",
|
||||
"autofillMatchingMode": "Autofill matching mode",
|
||||
"autofillMatchingModeDescription": "Determines which credentials are considered a match and shown as suggestions in the autofill popup for a given website.",
|
||||
"autofillMatchingDefault": "URL + subdomain + name wildcard",
|
||||
"autofillMatchingUrlSubdomain": "URL + subdomain",
|
||||
"autofillMatchingUrlExact": "Exact URL domain only",
|
||||
"siteSpecificSettings": "Настройки для конкретного сайта",
|
||||
"autofillPopupOn": "Всплывающее окно автозаполнения: ",
|
||||
"enabledForThisSite": "Включено для этого сайта",
|
||||
"disabledForThisSite": "Отключено для этого сайта",
|
||||
"temporarilyDisabledUntil": "Временно отключен до тех пор, пока",
|
||||
"resetAllSiteSettings": "Сбросить все настройки для сайтов",
|
||||
"appearance": "Внешний вид",
|
||||
"theme": "Тема",
|
||||
"useDefault": "Использовать по умолчанию",
|
||||
"light": "Светлая",
|
||||
"dark": "Темная",
|
||||
"keyboardShortcuts": "Горячие клавиши",
|
||||
"configureKeyboardShortcuts": "Настройка горячих клавиш",
|
||||
"configure": "Настройка",
|
||||
"security": "Security",
|
||||
"clipboardClearTimeout": "Clear clipboard after copying",
|
||||
"clipboardClearTimeoutDescription": "Automatically clear the clipboard after copying sensitive data",
|
||||
"clipboardClearDisabled": "Never clear",
|
||||
"clipboardClear5Seconds": "Clear after 5 seconds",
|
||||
"clipboardClear10Seconds": "Clear after 10 seconds",
|
||||
"clipboardClear15Seconds": "Clear after 15 seconds",
|
||||
"autoLockTimeout": "Auto-lock Timeout",
|
||||
"autoLockTimeoutDescription": "Automatically lock the vault after a period of inactivity",
|
||||
"autoLockTimeoutHelp": "The vault will only lock after the specified period of inactivity (no autofill usage or extension popup opened). The vault will always lock when the browser is closed, regardless of this setting.",
|
||||
"autoLockNever": "Never",
|
||||
"autoLock15Seconds": "15 seconds",
|
||||
"autoLock1Minute": "1 minute",
|
||||
"autoLock5Minutes": "5 minutes",
|
||||
"autoLock15Minutes": "15 minutes",
|
||||
"autoLock30Minutes": "30 minutes",
|
||||
"autoLock1Hour": "1 hour",
|
||||
"autoLock4Hours": "4 hours",
|
||||
"autoLock8Hours": "8 hours",
|
||||
"autoLock24Hours": "24 hours",
|
||||
"versionPrefix": "Версия ",
|
||||
"preferences": "Preferences",
|
||||
"autofillSettings": "Autofill Settings",
|
||||
"clipboardSettings": "Clipboard Settings",
|
||||
"contextMenuSettings": "Context Menu Settings",
|
||||
"contextMenu": "Context Menu",
|
||||
"contextMenuEnabled": "Context menu is enabled",
|
||||
"contextMenuDisabled": "Context menu is disabled",
|
||||
"contextMenuDescription": "Right-click on input fields to access AliasVault options",
|
||||
"selectLanguage": "Select Language",
|
||||
"validation": {
|
||||
"apiUrlRequired": "Требуется URL-адрес API",
|
||||
"apiUrlInvalid": "Пожалуйста, введите корректный URL-адрес API",
|
||||
"clientUrlRequired": "Требуется URL-адрес клиента",
|
||||
"clientUrlInvalid": "Пожалуйста, введите корректный URL-адрес клиента"
|
||||
}
|
||||
},
|
||||
"upgrade": {
|
||||
"title": "Обновить хранилище",
|
||||
"subtitle": "AliasVault обновился, и ваше хранилище необходимо обновить. Это займет всего несколько секунд.",
|
||||
"versionInformation": "Информация о версии",
|
||||
"yourVault": "Ваше хранилище:",
|
||||
"newVersion": "Новая версия:",
|
||||
"upgrade": "Обновить хранилище",
|
||||
"upgrading": "Обновление...",
|
||||
"logout": "Выйти",
|
||||
"whatsNew": "Что нового",
|
||||
"whatsNewDescription": "Для поддержки следующих изменений требуется обновление:",
|
||||
"noDescriptionAvailable": "Описание для этой версии недоступно.",
|
||||
"okay": "ОК",
|
||||
"status": {
|
||||
"preparingUpgrade": "Подготовка обновления...",
|
||||
"vaultAlreadyUpToDate": "Хранилище уже обновлено",
|
||||
"startingDatabaseTransaction": "Запуск операции с базой данных...",
|
||||
"applyingDatabaseMigrations": "Применение перемещения базы данных...",
|
||||
"applyingMigration": "Применяя перемещение {{current}} из {{total}}...",
|
||||
"committingChanges": "Фиксация изменений..."
|
||||
},
|
||||
"alerts": {
|
||||
"error": "Ошибка",
|
||||
"unableToGetVersionInfo": "Не удалось получить информацию о версии. Пожалуйста, попробуйте снова.",
|
||||
"selfHostedServer": "Автономный сервер",
|
||||
"selfHostedWarning": "Если вы используете автономный сервер, обязательно обновите свой автономный экземпляр, так как в противном случае вход в веб-клиент перестанет работать.",
|
||||
"cancel": "Отменить",
|
||||
"continueUpgrade": "Продолжить обновление",
|
||||
"upgradeFailed": "Ошибка обновления",
|
||||
"failedToApplyMigration": "Не удалось применить перенос ({{current}} из {{total}})",
|
||||
"unknownErrorDuringUpgrade": "Во время обновления произошла неизвестная ошибка. Пожалуйста, попробуйте снова."
|
||||
}
|
||||
}
|
||||
}
|
||||
392
apps/browser-extension/src/i18n/locales/sv.json
Normal file
392
apps/browser-extension/src/i18n/locales/sv.json
Normal file
@@ -0,0 +1,392 @@
|
||||
{
|
||||
"auth": {
|
||||
"loginTitle": "Log in to AliasVault",
|
||||
"username": "Username or email",
|
||||
"usernamePlaceholder": "name / name@company.com",
|
||||
"password": "Password",
|
||||
"passwordPlaceholder": "Enter your password",
|
||||
"rememberMe": "Remember me",
|
||||
"loginButton": "Login",
|
||||
"noAccount": "No account yet?",
|
||||
"createVault": "Create new vault",
|
||||
"twoFactorTitle": "Please enter the authentication code from your authenticator app.",
|
||||
"authCode": "Authentication Code",
|
||||
"authCodePlaceholder": "Enter 6-digit code",
|
||||
"verify": "Verify",
|
||||
"cancel": "Cancel",
|
||||
"twoFactorNote": "Note: if you don't have access to your authenticator device, you can reset your 2FA with a recovery code by logging in via the website.",
|
||||
"masterPassword": "Master Password",
|
||||
"unlockVault": "Unlock Vault",
|
||||
"unlockTitle": "Unlock Your Vault",
|
||||
"unlockDescription": "Enter your master password to unlock your vault.",
|
||||
"logout": "Logout",
|
||||
"logoutConfirm": "Are you sure you want to logout?",
|
||||
"sessionExpired": "Your session has expired. Please log in again.",
|
||||
"unlockSuccess": "Vault unlocked successfully!",
|
||||
"unlockSuccessTitle": "Your vault is successfully unlocked",
|
||||
"unlockSuccessDescription": "You can now use autofill in login forms in your browser.",
|
||||
"closePopup": "Close this popup",
|
||||
"browseVault": "Browse vault contents",
|
||||
"connectingTo": "Connecting to",
|
||||
"switchAccounts": "Switch accounts?",
|
||||
"loggedIn": "Logged in",
|
||||
"errors": {
|
||||
"invalidCode": "Please enter a valid 6-digit authentication code.",
|
||||
"serverError": "Could not reach AliasVault server. Please try again later or contact support if the problem persists.",
|
||||
"noToken": "Login failed -- no token returned",
|
||||
"migrationError": "An error occurred while checking for pending migrations.",
|
||||
"wrongPassword": "Incorrect password. Please try again.",
|
||||
"accountLocked": "Account temporarily locked due to too many failed attempts.",
|
||||
"networkError": "Network error. Please check your connection and try again.",
|
||||
"loginDataMissing": "Login session expired. Please try again."
|
||||
}
|
||||
},
|
||||
"menu": {
|
||||
"credentials": "Credentials",
|
||||
"emails": "Emails",
|
||||
"settings": "Settings"
|
||||
},
|
||||
"common": {
|
||||
"appName": "AliasVault",
|
||||
"loading": "Loading...",
|
||||
"error": "Error",
|
||||
"success": "Success",
|
||||
"cancel": "Cancel",
|
||||
"use": "Use",
|
||||
"delete": "Delete",
|
||||
"close": "Close",
|
||||
"copied": "Copied!",
|
||||
"openInNewWindow": "Open in new window",
|
||||
"language": "Language",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"showPassword": "Show password",
|
||||
"hidePassword": "Hide password",
|
||||
"copyToClipboard": "Copy to clipboard",
|
||||
"loadingEmails": "Loading emails...",
|
||||
"loadingTotpCodes": "Loading TOTP codes...",
|
||||
"attachments": "Attachments",
|
||||
"loadingAttachments": "Loading attachments...",
|
||||
"settings": "Settings",
|
||||
"recentEmails": "Recent emails",
|
||||
"loginCredentials": "Login credentials",
|
||||
"twoFactorAuthentication": "Two-factor authentication",
|
||||
"alias": "Alias",
|
||||
"notes": "Notes",
|
||||
"fullName": "Full Name",
|
||||
"firstName": "First Name",
|
||||
"lastName": "Last Name",
|
||||
"birthDate": "Birth Date",
|
||||
"nickname": "Nickname",
|
||||
"email": "Email",
|
||||
"username": "Username",
|
||||
"password": "Password",
|
||||
"syncingVault": "Syncing vault",
|
||||
"savingChangesToVault": "Saving changes to vault",
|
||||
"uploadingVaultToServer": "Uploading vault to server",
|
||||
"checkingVaultUpdates": "Checking for vault updates",
|
||||
"syncingUpdatedVault": "Syncing updated vault",
|
||||
"executingOperation": "Executing operation...",
|
||||
"loadMore": "Load more",
|
||||
"errors": {
|
||||
"VaultOutdated": "Your vault is outdated. Please login on the AliasVault website and follow the steps.",
|
||||
"serverNotAvailable": "The AliasVault server is not available. Please try again later or contact support if the problem persists.",
|
||||
"clientVersionNotSupported": "This version of the AliasVault browser extension is not supported by the server anymore. Please update your browser extension to the latest version.",
|
||||
"serverVersionNotSupported": "The AliasVault server needs to be updated to a newer version in order to use this browser extension. Please contact support if you need help.",
|
||||
"unknownError": "An unknown error occurred",
|
||||
"failedToStoreVault": "Failed to store vault",
|
||||
"vaultNotAvailable": "Vault not available",
|
||||
"failedToRetrieveData": "Failed to retrieve data",
|
||||
"vaultIsLocked": "Vault is locked",
|
||||
"failedToUploadVault": "Failed to upload vault",
|
||||
"passwordChanged": "Your password has changed since the last time you logged in. Please login again for security reasons."
|
||||
},
|
||||
"apiErrors": {
|
||||
"UNKNOWN_ERROR": "An unknown error occurred. Please try again.",
|
||||
"ACCOUNT_LOCKED": "Account temporarily locked due to too many failed attempts. Please try again later.",
|
||||
"ACCOUNT_BLOCKED": "Your account has been disabled. If you believe this is a mistake, please contact support.",
|
||||
"USER_NOT_FOUND": "Invalid username or password. Please try again.",
|
||||
"INVALID_AUTHENTICATOR_CODE": "Invalid authenticator code. Please try again.",
|
||||
"INVALID_RECOVERY_CODE": "Invalid recovery code. Please try again.",
|
||||
"REFRESH_TOKEN_REQUIRED": "Refresh token is required.",
|
||||
"INVALID_REFRESH_TOKEN": "Invalid refresh token.",
|
||||
"REFRESH_TOKEN_REVOKED_SUCCESSFULLY": "Refresh token revoked successfully.",
|
||||
"PUBLIC_REGISTRATION_DISABLED": "New account registration is currently disabled on this server. Please contact the administrator.",
|
||||
"USERNAME_REQUIRED": "Username is required.",
|
||||
"USERNAME_ALREADY_IN_USE": "Username is already in use.",
|
||||
"USERNAME_AVAILABLE": "Username is available.",
|
||||
"USERNAME_MISMATCH": "Username does not match the current user.",
|
||||
"PASSWORD_MISMATCH": "The provided password does not match your current password.",
|
||||
"ACCOUNT_SUCCESSFULLY_DELETED": "Account successfully deleted.",
|
||||
"USERNAME_EMPTY_OR_WHITESPACE": "Username cannot be empty or whitespace.",
|
||||
"USERNAME_TOO_SHORT": "Username too short: must be at least 3 characters long.",
|
||||
"USERNAME_TOO_LONG": "Username too long: cannot be longer than 40 characters.",
|
||||
"USERNAME_INVALID_EMAIL": "Invalid email address.",
|
||||
"USERNAME_INVALID_CHARACTERS": "Username is invalid, can only contain letters or digits.",
|
||||
"VAULT_NOT_UP_TO_DATE": "Your vault is not up-to-date. Please synchronize your vault and try again.",
|
||||
"INTERNAL_SERVER_ERROR": "Internal server error.",
|
||||
"VAULT_ERROR": "The local vault is not up-to-date. Please synchronize your vault by refreshing the page and try again."
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"or": "or",
|
||||
"new": "New",
|
||||
"cancel": "Cancel",
|
||||
"search": "Search",
|
||||
"vaultLocked": "AliasVault is locked.",
|
||||
"creatingNewAlias": "Creating new alias...",
|
||||
"noMatchesFound": "No matches found",
|
||||
"searchVault": "Search vault...",
|
||||
"serviceName": "Service name",
|
||||
"email": "Email",
|
||||
"username": "Username",
|
||||
"password": "Password",
|
||||
"enterServiceName": "Enter service name",
|
||||
"enterEmailAddress": "Enter email address",
|
||||
"enterUsername": "Enter username",
|
||||
"hideFor1Hour": "Hide for 1 hour (current site)",
|
||||
"hidePermanently": "Hide permanently (current site)",
|
||||
"createRandomAlias": "Create random alias",
|
||||
"createUsernamePassword": "Create username/password",
|
||||
"randomAlias": "Random alias",
|
||||
"usernamePassword": "Username/password",
|
||||
"createAndSaveAlias": "Create and save alias",
|
||||
"createAndSaveCredential": "Create and save credential",
|
||||
"randomIdentityDescription": "Generate a random identity with a random email address accessible in AliasVault.",
|
||||
"randomIdentityDescriptionDropdown": "Random identity with random email",
|
||||
"manualCredentialDescription": "Specify your own email address and username.",
|
||||
"manualCredentialDescriptionDropdown": "Manual username and password",
|
||||
"failedToCreateIdentity": "Failed to create identity. Please try again.",
|
||||
"enterEmailAndOrUsername": "Enter email and/or username",
|
||||
"autofillWithAliasVault": "Autofill with AliasVault",
|
||||
"generateRandomPassword": "Generate random password (copy to clipboard)",
|
||||
"generateNewPassword": "Generate new password",
|
||||
"togglePasswordVisibility": "Toggle password visibility",
|
||||
"passwordCopiedToClipboard": "Password copied to clipboard",
|
||||
"enterEmailAndOrUsernameError": "Enter email and/or username",
|
||||
"openAliasVaultToUpgrade": "Open AliasVault to upgrade",
|
||||
"vaultUpgradeRequired": "Vault upgrade required.",
|
||||
"dismissPopup": "Dismiss popup"
|
||||
},
|
||||
"credentials": {
|
||||
"title": "Credentials",
|
||||
"addCredential": "Add Credential",
|
||||
"editCredential": "Edit Credential",
|
||||
"deleteCredential": "Delete Credential",
|
||||
"credentialDetails": "Credential Details",
|
||||
"serviceName": "Service Name",
|
||||
"serviceNamePlaceholder": "e.g., Gmail, Facebook, Bank",
|
||||
"website": "Website",
|
||||
"websitePlaceholder": "https://example.com",
|
||||
"username": "Username",
|
||||
"usernamePlaceholder": "Enter username",
|
||||
"password": "Password",
|
||||
"passwordPlaceholder": "Enter password",
|
||||
"generatePassword": "Generate Password",
|
||||
"copyPassword": "Copy Password",
|
||||
"showPassword": "Show Password",
|
||||
"hidePassword": "Hide Password",
|
||||
"notes": "Notes",
|
||||
"notesPlaceholder": "Additional notes...",
|
||||
"totp": "Two-Factor Authentication",
|
||||
"totpCode": "TOTP Code",
|
||||
"copyTotp": "Copy TOTP",
|
||||
"totpSecret": "TOTP Secret",
|
||||
"totpSecretPlaceholder": "Enter TOTP secret key",
|
||||
"noCredentials": "No credentials found",
|
||||
"noCredentialsDescription": "Add your first credential to get started",
|
||||
"searchPlaceholder": "Search credentials...",
|
||||
"welcomeTitle": "Welcome to AliasVault!",
|
||||
"welcomeDescription": "To use the AliasVault browser extension: navigate to a website and use the AliasVault autofill popup to create a new credential.",
|
||||
"createdAt": "Created",
|
||||
"updatedAt": "Last updated",
|
||||
"autofill": "Autofill",
|
||||
"fillForm": "Fill Form",
|
||||
"deleteConfirm": "Are you sure you want to delete this credential?",
|
||||
"saveSuccess": "Credential saved successfully",
|
||||
"tags": "Tags",
|
||||
"addTag": "Add Tag",
|
||||
"removeTag": "Remove Tag",
|
||||
"folder": "Folder",
|
||||
"selectFolder": "Select Folder",
|
||||
"createFolder": "Create Folder",
|
||||
"saveCredential": "Save credential",
|
||||
"deleteCredentialTitle": "Delete Credential",
|
||||
"deleteCredentialConfirm": "Are you sure you want to delete this credential? This action cannot be undone.",
|
||||
"randomAlias": "Random Alias",
|
||||
"manual": "Manual",
|
||||
"service": "Service",
|
||||
"serviceUrl": "Service URL",
|
||||
"loginCredentials": "Login Credentials",
|
||||
"generateRandomUsername": "Generate random username",
|
||||
"generateRandomPassword": "Generate random password",
|
||||
"changePasswordComplexity": "Change password complexity",
|
||||
"passwordLength": "Password length",
|
||||
"includeLowercase": "Include lowercase letters",
|
||||
"includeUppercase": "Include uppercase letters",
|
||||
"includeNumbers": "Include numbers",
|
||||
"includeSpecialChars": "Include special characters",
|
||||
"avoidAmbiguousChars": "Avoid ambiguous characters (o, 0, etc.)",
|
||||
"generateNewPreview": "Generate new preview",
|
||||
"generateRandomAlias": "Generate Random Alias",
|
||||
"alias": "Alias",
|
||||
"firstName": "First Name",
|
||||
"lastName": "Last Name",
|
||||
"nickName": "Nick Name",
|
||||
"gender": "Gender",
|
||||
"birthDate": "Birth Date",
|
||||
"birthDatePlaceholder": "YYYY-MM-DD",
|
||||
"metadata": "Metadata",
|
||||
"validation": {
|
||||
"required": "This field is required",
|
||||
"serviceNameRequired": "Service name is required",
|
||||
"invalidEmail": "Invalid email format",
|
||||
"invalidDateFormat": "Date must be in YYYY-MM-DD format"
|
||||
},
|
||||
"privateEmailTitle": "Private Email",
|
||||
"privateEmailAliasVaultServer": "AliasVault server",
|
||||
"privateEmailDescription": "E2E encrypted, fully private.",
|
||||
"publicEmailTitle": "Public Temp Email Providers",
|
||||
"publicEmailDescription": "Anonymous but limited privacy. Email content is readable by anyone that knows the address.",
|
||||
"useDomainChooser": "Use domain chooser",
|
||||
"enterCustomDomain": "Enter custom domain",
|
||||
"enterFullEmail": "Enter full email address",
|
||||
"enterEmailPrefix": "Enter email prefix"
|
||||
},
|
||||
"emails": {
|
||||
"title": "Emails",
|
||||
"deleteEmailTitle": "Delete Email",
|
||||
"deleteEmailConfirm": "Are you sure you want to permanently delete this email?",
|
||||
"from": "From",
|
||||
"to": "To",
|
||||
"date": "Date",
|
||||
"emailContent": "Email content",
|
||||
"attachments": "Attachments",
|
||||
"emailNotFound": "Email not found",
|
||||
"noEmails": "No emails found",
|
||||
"noEmailsDescription": "You have not received any emails at your private email addresses yet. When you receive a new email, it will appear here.",
|
||||
"dateFormat": {
|
||||
"justNow": "just now",
|
||||
"minutesAgo_single": "{{count}} min ago",
|
||||
"minutesAgo_plural": "{{count}} mins ago",
|
||||
"hoursAgo_single": "{{count}} hr ago",
|
||||
"hoursAgo_plural": "{{count}} hrs ago",
|
||||
"yesterday": "yesterday"
|
||||
},
|
||||
"errors": {
|
||||
"emailLoadError": "An error occurred while loading emails. Please try again later.",
|
||||
"emailUnexpectedError": "An unexpected error occurred while loading emails. Please try again later."
|
||||
},
|
||||
"apiErrors": {
|
||||
"CLAIM_DOES_NOT_MATCH_USER": "The current chosen email address is already in use. Please change the email address by editing this credential.",
|
||||
"CLAIM_DOES_NOT_EXIST": "An error occurred while trying to load the emails. Please try to edit and save the credential entry to synchronize the database, then try again."
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"title": "Settings",
|
||||
"serverUrl": "Server URL",
|
||||
"language": "Language",
|
||||
"autofillEnabled": "Enable Autofill",
|
||||
"version": "Version",
|
||||
"openInNewWindow": "Open in new window",
|
||||
"openWebApp": "Open web app",
|
||||
"loggedIn": "Logged in",
|
||||
"logout": "Logout",
|
||||
"globalSettings": "Global Settings",
|
||||
"autofillPopup": "Autofill popup",
|
||||
"activeOnAllSites": "Active on all sites (unless disabled below)",
|
||||
"disabledOnAllSites": "Disabled on all sites",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"rightClickContextMenu": "Right-click context menu",
|
||||
"autofillMatching": "Autofill Matching",
|
||||
"autofillMatchingMode": "Autofill matching mode",
|
||||
"autofillMatchingModeDescription": "Determines which credentials are considered a match and shown as suggestions in the autofill popup for a given website.",
|
||||
"autofillMatchingDefault": "URL + subdomain + name wildcard",
|
||||
"autofillMatchingUrlSubdomain": "URL + subdomain",
|
||||
"autofillMatchingUrlExact": "Exact URL domain only",
|
||||
"siteSpecificSettings": "Site-Specific Settings",
|
||||
"autofillPopupOn": "Autofill popup on: ",
|
||||
"enabledForThisSite": "Enabled for this site",
|
||||
"disabledForThisSite": "Disabled for this site",
|
||||
"temporarilyDisabledUntil": "Temporarily disabled until ",
|
||||
"resetAllSiteSettings": "Reset all site-specific settings",
|
||||
"appearance": "Appearance",
|
||||
"theme": "Theme",
|
||||
"useDefault": "Use default",
|
||||
"light": "Light",
|
||||
"dark": "Dark",
|
||||
"keyboardShortcuts": "Keyboard Shortcuts",
|
||||
"configureKeyboardShortcuts": "Configure keyboard shortcuts",
|
||||
"configure": "Configure",
|
||||
"security": "Security",
|
||||
"clipboardClearTimeout": "Clear clipboard after copying",
|
||||
"clipboardClearTimeoutDescription": "Automatically clear the clipboard after copying sensitive data",
|
||||
"clipboardClearDisabled": "Never clear",
|
||||
"clipboardClear5Seconds": "Clear after 5 seconds",
|
||||
"clipboardClear10Seconds": "Clear after 10 seconds",
|
||||
"clipboardClear15Seconds": "Clear after 15 seconds",
|
||||
"autoLockTimeout": "Auto-lock Timeout",
|
||||
"autoLockTimeoutDescription": "Automatically lock the vault after a period of inactivity",
|
||||
"autoLockTimeoutHelp": "The vault will only lock after the specified period of inactivity (no autofill usage or extension popup opened). The vault will always lock when the browser is closed, regardless of this setting.",
|
||||
"autoLockNever": "Never",
|
||||
"autoLock15Seconds": "15 seconds",
|
||||
"autoLock1Minute": "1 minute",
|
||||
"autoLock5Minutes": "5 minutes",
|
||||
"autoLock15Minutes": "15 minutes",
|
||||
"autoLock30Minutes": "30 minutes",
|
||||
"autoLock1Hour": "1 hour",
|
||||
"autoLock4Hours": "4 hours",
|
||||
"autoLock8Hours": "8 hours",
|
||||
"autoLock24Hours": "24 hours",
|
||||
"versionPrefix": "Version ",
|
||||
"preferences": "Preferences",
|
||||
"autofillSettings": "Autofill Settings",
|
||||
"clipboardSettings": "Clipboard Settings",
|
||||
"contextMenuSettings": "Context Menu Settings",
|
||||
"contextMenu": "Context Menu",
|
||||
"contextMenuEnabled": "Context menu is enabled",
|
||||
"contextMenuDisabled": "Context menu is disabled",
|
||||
"contextMenuDescription": "Right-click on input fields to access AliasVault options",
|
||||
"selectLanguage": "Select Language",
|
||||
"validation": {
|
||||
"apiUrlRequired": "API URL is required",
|
||||
"apiUrlInvalid": "Please enter a valid API URL",
|
||||
"clientUrlRequired": "Client URL is required",
|
||||
"clientUrlInvalid": "Please enter a valid client URL"
|
||||
}
|
||||
},
|
||||
"upgrade": {
|
||||
"title": "Upgrade Vault",
|
||||
"subtitle": "AliasVault has updated and your vault needs to be upgraded. This should only take a few seconds.",
|
||||
"versionInformation": "Version Information",
|
||||
"yourVault": "Your vault:",
|
||||
"newVersion": "New version:",
|
||||
"upgrade": "Upgrade Vault",
|
||||
"upgrading": "Upgrading...",
|
||||
"logout": "Logout",
|
||||
"whatsNew": "What's New",
|
||||
"whatsNewDescription": "An upgrade is required to support the following changes:",
|
||||
"noDescriptionAvailable": "No description available for this version.",
|
||||
"okay": "Ok",
|
||||
"status": {
|
||||
"preparingUpgrade": "Preparing upgrade...",
|
||||
"vaultAlreadyUpToDate": "Vault is already up to date",
|
||||
"startingDatabaseTransaction": "Starting database transaction...",
|
||||
"applyingDatabaseMigrations": "Applying database migrations...",
|
||||
"applyingMigration": "Applying migration {{current}} of {{total}}...",
|
||||
"committingChanges": "Committing changes..."
|
||||
},
|
||||
"alerts": {
|
||||
"error": "Error",
|
||||
"unableToGetVersionInfo": "Unable to get version information. Please try again.",
|
||||
"selfHostedServer": "Self-Hosted Server",
|
||||
"selfHostedWarning": "If you're using a self-hosted server, make sure to also update your self-hosted instance as otherwise logging in to the web client will stop working.",
|
||||
"cancel": "Cancel",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
}
|
||||
}
|
||||
}
|
||||
392
apps/browser-extension/src/i18n/locales/tr.json
Normal file
392
apps/browser-extension/src/i18n/locales/tr.json
Normal file
@@ -0,0 +1,392 @@
|
||||
{
|
||||
"auth": {
|
||||
"loginTitle": "Log in to AliasVault",
|
||||
"username": "Username or email",
|
||||
"usernamePlaceholder": "name / name@company.com",
|
||||
"password": "Password",
|
||||
"passwordPlaceholder": "Enter your password",
|
||||
"rememberMe": "Remember me",
|
||||
"loginButton": "Login",
|
||||
"noAccount": "No account yet?",
|
||||
"createVault": "Create new vault",
|
||||
"twoFactorTitle": "Please enter the authentication code from your authenticator app.",
|
||||
"authCode": "Authentication Code",
|
||||
"authCodePlaceholder": "Enter 6-digit code",
|
||||
"verify": "Verify",
|
||||
"cancel": "Cancel",
|
||||
"twoFactorNote": "Note: if you don't have access to your authenticator device, you can reset your 2FA with a recovery code by logging in via the website.",
|
||||
"masterPassword": "Master Password",
|
||||
"unlockVault": "Unlock Vault",
|
||||
"unlockTitle": "Unlock Your Vault",
|
||||
"unlockDescription": "Enter your master password to unlock your vault.",
|
||||
"logout": "Logout",
|
||||
"logoutConfirm": "Are you sure you want to logout?",
|
||||
"sessionExpired": "Your session has expired. Please log in again.",
|
||||
"unlockSuccess": "Vault unlocked successfully!",
|
||||
"unlockSuccessTitle": "Your vault is successfully unlocked",
|
||||
"unlockSuccessDescription": "You can now use autofill in login forms in your browser.",
|
||||
"closePopup": "Close this popup",
|
||||
"browseVault": "Browse vault contents",
|
||||
"connectingTo": "Connecting to",
|
||||
"switchAccounts": "Switch accounts?",
|
||||
"loggedIn": "Logged in",
|
||||
"errors": {
|
||||
"invalidCode": "Please enter a valid 6-digit authentication code.",
|
||||
"serverError": "Could not reach AliasVault server. Please try again later or contact support if the problem persists.",
|
||||
"noToken": "Login failed -- no token returned",
|
||||
"migrationError": "An error occurred while checking for pending migrations.",
|
||||
"wrongPassword": "Incorrect password. Please try again.",
|
||||
"accountLocked": "Account temporarily locked due to too many failed attempts.",
|
||||
"networkError": "Network error. Please check your connection and try again.",
|
||||
"loginDataMissing": "Login session expired. Please try again."
|
||||
}
|
||||
},
|
||||
"menu": {
|
||||
"credentials": "Credentials",
|
||||
"emails": "Emails",
|
||||
"settings": "Settings"
|
||||
},
|
||||
"common": {
|
||||
"appName": "AliasVault",
|
||||
"loading": "Loading...",
|
||||
"error": "Error",
|
||||
"success": "Success",
|
||||
"cancel": "Cancel",
|
||||
"use": "Use",
|
||||
"delete": "Delete",
|
||||
"close": "Close",
|
||||
"copied": "Copied!",
|
||||
"openInNewWindow": "Open in new window",
|
||||
"language": "Language",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"showPassword": "Show password",
|
||||
"hidePassword": "Hide password",
|
||||
"copyToClipboard": "Copy to clipboard",
|
||||
"loadingEmails": "Loading emails...",
|
||||
"loadingTotpCodes": "Loading TOTP codes...",
|
||||
"attachments": "Attachments",
|
||||
"loadingAttachments": "Loading attachments...",
|
||||
"settings": "Settings",
|
||||
"recentEmails": "Recent emails",
|
||||
"loginCredentials": "Login credentials",
|
||||
"twoFactorAuthentication": "Two-factor authentication",
|
||||
"alias": "Alias",
|
||||
"notes": "Notes",
|
||||
"fullName": "Full Name",
|
||||
"firstName": "First Name",
|
||||
"lastName": "Last Name",
|
||||
"birthDate": "Birth Date",
|
||||
"nickname": "Nickname",
|
||||
"email": "Email",
|
||||
"username": "Username",
|
||||
"password": "Password",
|
||||
"syncingVault": "Syncing vault",
|
||||
"savingChangesToVault": "Saving changes to vault",
|
||||
"uploadingVaultToServer": "Uploading vault to server",
|
||||
"checkingVaultUpdates": "Checking for vault updates",
|
||||
"syncingUpdatedVault": "Syncing updated vault",
|
||||
"executingOperation": "Executing operation...",
|
||||
"loadMore": "Load more",
|
||||
"errors": {
|
||||
"VaultOutdated": "Your vault is outdated. Please login on the AliasVault website and follow the steps.",
|
||||
"serverNotAvailable": "The AliasVault server is not available. Please try again later or contact support if the problem persists.",
|
||||
"clientVersionNotSupported": "This version of the AliasVault browser extension is not supported by the server anymore. Please update your browser extension to the latest version.",
|
||||
"serverVersionNotSupported": "The AliasVault server needs to be updated to a newer version in order to use this browser extension. Please contact support if you need help.",
|
||||
"unknownError": "An unknown error occurred",
|
||||
"failedToStoreVault": "Failed to store vault",
|
||||
"vaultNotAvailable": "Vault not available",
|
||||
"failedToRetrieveData": "Failed to retrieve data",
|
||||
"vaultIsLocked": "Vault is locked",
|
||||
"failedToUploadVault": "Failed to upload vault",
|
||||
"passwordChanged": "Your password has changed since the last time you logged in. Please login again for security reasons."
|
||||
},
|
||||
"apiErrors": {
|
||||
"UNKNOWN_ERROR": "An unknown error occurred. Please try again.",
|
||||
"ACCOUNT_LOCKED": "Account temporarily locked due to too many failed attempts. Please try again later.",
|
||||
"ACCOUNT_BLOCKED": "Your account has been disabled. If you believe this is a mistake, please contact support.",
|
||||
"USER_NOT_FOUND": "Invalid username or password. Please try again.",
|
||||
"INVALID_AUTHENTICATOR_CODE": "Invalid authenticator code. Please try again.",
|
||||
"INVALID_RECOVERY_CODE": "Invalid recovery code. Please try again.",
|
||||
"REFRESH_TOKEN_REQUIRED": "Refresh token is required.",
|
||||
"INVALID_REFRESH_TOKEN": "Invalid refresh token.",
|
||||
"REFRESH_TOKEN_REVOKED_SUCCESSFULLY": "Refresh token revoked successfully.",
|
||||
"PUBLIC_REGISTRATION_DISABLED": "New account registration is currently disabled on this server. Please contact the administrator.",
|
||||
"USERNAME_REQUIRED": "Username is required.",
|
||||
"USERNAME_ALREADY_IN_USE": "Username is already in use.",
|
||||
"USERNAME_AVAILABLE": "Username is available.",
|
||||
"USERNAME_MISMATCH": "Username does not match the current user.",
|
||||
"PASSWORD_MISMATCH": "The provided password does not match your current password.",
|
||||
"ACCOUNT_SUCCESSFULLY_DELETED": "Account successfully deleted.",
|
||||
"USERNAME_EMPTY_OR_WHITESPACE": "Username cannot be empty or whitespace.",
|
||||
"USERNAME_TOO_SHORT": "Username too short: must be at least 3 characters long.",
|
||||
"USERNAME_TOO_LONG": "Username too long: cannot be longer than 40 characters.",
|
||||
"USERNAME_INVALID_EMAIL": "Invalid email address.",
|
||||
"USERNAME_INVALID_CHARACTERS": "Username is invalid, can only contain letters or digits.",
|
||||
"VAULT_NOT_UP_TO_DATE": "Your vault is not up-to-date. Please synchronize your vault and try again.",
|
||||
"INTERNAL_SERVER_ERROR": "Internal server error.",
|
||||
"VAULT_ERROR": "The local vault is not up-to-date. Please synchronize your vault by refreshing the page and try again."
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"or": "or",
|
||||
"new": "New",
|
||||
"cancel": "Cancel",
|
||||
"search": "Search",
|
||||
"vaultLocked": "AliasVault is locked.",
|
||||
"creatingNewAlias": "Creating new alias...",
|
||||
"noMatchesFound": "No matches found",
|
||||
"searchVault": "Search vault...",
|
||||
"serviceName": "Service name",
|
||||
"email": "Email",
|
||||
"username": "Username",
|
||||
"password": "Password",
|
||||
"enterServiceName": "Enter service name",
|
||||
"enterEmailAddress": "Enter email address",
|
||||
"enterUsername": "Enter username",
|
||||
"hideFor1Hour": "Hide for 1 hour (current site)",
|
||||
"hidePermanently": "Hide permanently (current site)",
|
||||
"createRandomAlias": "Create random alias",
|
||||
"createUsernamePassword": "Create username/password",
|
||||
"randomAlias": "Random alias",
|
||||
"usernamePassword": "Username/password",
|
||||
"createAndSaveAlias": "Create and save alias",
|
||||
"createAndSaveCredential": "Create and save credential",
|
||||
"randomIdentityDescription": "Generate a random identity with a random email address accessible in AliasVault.",
|
||||
"randomIdentityDescriptionDropdown": "Random identity with random email",
|
||||
"manualCredentialDescription": "Specify your own email address and username.",
|
||||
"manualCredentialDescriptionDropdown": "Manual username and password",
|
||||
"failedToCreateIdentity": "Failed to create identity. Please try again.",
|
||||
"enterEmailAndOrUsername": "Enter email and/or username",
|
||||
"autofillWithAliasVault": "Autofill with AliasVault",
|
||||
"generateRandomPassword": "Generate random password (copy to clipboard)",
|
||||
"generateNewPassword": "Generate new password",
|
||||
"togglePasswordVisibility": "Toggle password visibility",
|
||||
"passwordCopiedToClipboard": "Password copied to clipboard",
|
||||
"enterEmailAndOrUsernameError": "Enter email and/or username",
|
||||
"openAliasVaultToUpgrade": "Open AliasVault to upgrade",
|
||||
"vaultUpgradeRequired": "Vault upgrade required.",
|
||||
"dismissPopup": "Dismiss popup"
|
||||
},
|
||||
"credentials": {
|
||||
"title": "Credentials",
|
||||
"addCredential": "Add Credential",
|
||||
"editCredential": "Edit Credential",
|
||||
"deleteCredential": "Delete Credential",
|
||||
"credentialDetails": "Credential Details",
|
||||
"serviceName": "Service Name",
|
||||
"serviceNamePlaceholder": "e.g., Gmail, Facebook, Bank",
|
||||
"website": "Website",
|
||||
"websitePlaceholder": "https://example.com",
|
||||
"username": "Username",
|
||||
"usernamePlaceholder": "Enter username",
|
||||
"password": "Password",
|
||||
"passwordPlaceholder": "Enter password",
|
||||
"generatePassword": "Generate Password",
|
||||
"copyPassword": "Copy Password",
|
||||
"showPassword": "Show Password",
|
||||
"hidePassword": "Hide Password",
|
||||
"notes": "Notes",
|
||||
"notesPlaceholder": "Additional notes...",
|
||||
"totp": "Two-Factor Authentication",
|
||||
"totpCode": "TOTP Code",
|
||||
"copyTotp": "Copy TOTP",
|
||||
"totpSecret": "TOTP Secret",
|
||||
"totpSecretPlaceholder": "Enter TOTP secret key",
|
||||
"noCredentials": "No credentials found",
|
||||
"noCredentialsDescription": "Add your first credential to get started",
|
||||
"searchPlaceholder": "Search credentials...",
|
||||
"welcomeTitle": "Welcome to AliasVault!",
|
||||
"welcomeDescription": "To use the AliasVault browser extension: navigate to a website and use the AliasVault autofill popup to create a new credential.",
|
||||
"createdAt": "Created",
|
||||
"updatedAt": "Last updated",
|
||||
"autofill": "Autofill",
|
||||
"fillForm": "Fill Form",
|
||||
"deleteConfirm": "Are you sure you want to delete this credential?",
|
||||
"saveSuccess": "Credential saved successfully",
|
||||
"tags": "Tags",
|
||||
"addTag": "Add Tag",
|
||||
"removeTag": "Remove Tag",
|
||||
"folder": "Folder",
|
||||
"selectFolder": "Select Folder",
|
||||
"createFolder": "Create Folder",
|
||||
"saveCredential": "Save credential",
|
||||
"deleteCredentialTitle": "Delete Credential",
|
||||
"deleteCredentialConfirm": "Are you sure you want to delete this credential? This action cannot be undone.",
|
||||
"randomAlias": "Random Alias",
|
||||
"manual": "Manual",
|
||||
"service": "Service",
|
||||
"serviceUrl": "Service URL",
|
||||
"loginCredentials": "Login Credentials",
|
||||
"generateRandomUsername": "Generate random username",
|
||||
"generateRandomPassword": "Generate random password",
|
||||
"changePasswordComplexity": "Change password complexity",
|
||||
"passwordLength": "Password length",
|
||||
"includeLowercase": "Include lowercase letters",
|
||||
"includeUppercase": "Include uppercase letters",
|
||||
"includeNumbers": "Include numbers",
|
||||
"includeSpecialChars": "Include special characters",
|
||||
"avoidAmbiguousChars": "Avoid ambiguous characters (o, 0, etc.)",
|
||||
"generateNewPreview": "Generate new preview",
|
||||
"generateRandomAlias": "Generate Random Alias",
|
||||
"alias": "Alias",
|
||||
"firstName": "First Name",
|
||||
"lastName": "Last Name",
|
||||
"nickName": "Nick Name",
|
||||
"gender": "Gender",
|
||||
"birthDate": "Birth Date",
|
||||
"birthDatePlaceholder": "YYYY-MM-DD",
|
||||
"metadata": "Metadata",
|
||||
"validation": {
|
||||
"required": "This field is required",
|
||||
"serviceNameRequired": "Service name is required",
|
||||
"invalidEmail": "Invalid email format",
|
||||
"invalidDateFormat": "Date must be in YYYY-MM-DD format"
|
||||
},
|
||||
"privateEmailTitle": "Private Email",
|
||||
"privateEmailAliasVaultServer": "AliasVault server",
|
||||
"privateEmailDescription": "E2E encrypted, fully private.",
|
||||
"publicEmailTitle": "Public Temp Email Providers",
|
||||
"publicEmailDescription": "Anonymous but limited privacy. Email content is readable by anyone that knows the address.",
|
||||
"useDomainChooser": "Use domain chooser",
|
||||
"enterCustomDomain": "Enter custom domain",
|
||||
"enterFullEmail": "Enter full email address",
|
||||
"enterEmailPrefix": "Enter email prefix"
|
||||
},
|
||||
"emails": {
|
||||
"title": "Emails",
|
||||
"deleteEmailTitle": "Delete Email",
|
||||
"deleteEmailConfirm": "Are you sure you want to permanently delete this email?",
|
||||
"from": "From",
|
||||
"to": "To",
|
||||
"date": "Date",
|
||||
"emailContent": "Email content",
|
||||
"attachments": "Attachments",
|
||||
"emailNotFound": "Email not found",
|
||||
"noEmails": "No emails found",
|
||||
"noEmailsDescription": "You have not received any emails at your private email addresses yet. When you receive a new email, it will appear here.",
|
||||
"dateFormat": {
|
||||
"justNow": "just now",
|
||||
"minutesAgo_single": "{{count}} min ago",
|
||||
"minutesAgo_plural": "{{count}} mins ago",
|
||||
"hoursAgo_single": "{{count}} hr ago",
|
||||
"hoursAgo_plural": "{{count}} hrs ago",
|
||||
"yesterday": "yesterday"
|
||||
},
|
||||
"errors": {
|
||||
"emailLoadError": "An error occurred while loading emails. Please try again later.",
|
||||
"emailUnexpectedError": "An unexpected error occurred while loading emails. Please try again later."
|
||||
},
|
||||
"apiErrors": {
|
||||
"CLAIM_DOES_NOT_MATCH_USER": "The current chosen email address is already in use. Please change the email address by editing this credential.",
|
||||
"CLAIM_DOES_NOT_EXIST": "An error occurred while trying to load the emails. Please try to edit and save the credential entry to synchronize the database, then try again."
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"title": "Settings",
|
||||
"serverUrl": "Server URL",
|
||||
"language": "Language",
|
||||
"autofillEnabled": "Enable Autofill",
|
||||
"version": "Version",
|
||||
"openInNewWindow": "Open in new window",
|
||||
"openWebApp": "Open web app",
|
||||
"loggedIn": "Logged in",
|
||||
"logout": "Logout",
|
||||
"globalSettings": "Global Settings",
|
||||
"autofillPopup": "Autofill popup",
|
||||
"activeOnAllSites": "Active on all sites (unless disabled below)",
|
||||
"disabledOnAllSites": "Disabled on all sites",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"rightClickContextMenu": "Right-click context menu",
|
||||
"autofillMatching": "Autofill Matching",
|
||||
"autofillMatchingMode": "Autofill matching mode",
|
||||
"autofillMatchingModeDescription": "Determines which credentials are considered a match and shown as suggestions in the autofill popup for a given website.",
|
||||
"autofillMatchingDefault": "URL + subdomain + name wildcard",
|
||||
"autofillMatchingUrlSubdomain": "URL + subdomain",
|
||||
"autofillMatchingUrlExact": "Exact URL domain only",
|
||||
"siteSpecificSettings": "Site-Specific Settings",
|
||||
"autofillPopupOn": "Autofill popup on: ",
|
||||
"enabledForThisSite": "Enabled for this site",
|
||||
"disabledForThisSite": "Disabled for this site",
|
||||
"temporarilyDisabledUntil": "Temporarily disabled until ",
|
||||
"resetAllSiteSettings": "Reset all site-specific settings",
|
||||
"appearance": "Appearance",
|
||||
"theme": "Theme",
|
||||
"useDefault": "Use default",
|
||||
"light": "Light",
|
||||
"dark": "Dark",
|
||||
"keyboardShortcuts": "Keyboard Shortcuts",
|
||||
"configureKeyboardShortcuts": "Configure keyboard shortcuts",
|
||||
"configure": "Configure",
|
||||
"security": "Security",
|
||||
"clipboardClearTimeout": "Clear clipboard after copying",
|
||||
"clipboardClearTimeoutDescription": "Automatically clear the clipboard after copying sensitive data",
|
||||
"clipboardClearDisabled": "Never clear",
|
||||
"clipboardClear5Seconds": "Clear after 5 seconds",
|
||||
"clipboardClear10Seconds": "Clear after 10 seconds",
|
||||
"clipboardClear15Seconds": "Clear after 15 seconds",
|
||||
"autoLockTimeout": "Auto-lock Timeout",
|
||||
"autoLockTimeoutDescription": "Automatically lock the vault after a period of inactivity",
|
||||
"autoLockTimeoutHelp": "Kasa, yalnızca belirtilen süre boyunca herhangi bir işlem yapılmadığında (otomatik doldurma kullanılmadığında veya uzantı açılmadığında) kilitlenecektir. Ancak, bu ayardan bağımsız olarak tarayıcı kapatıldığında her zaman kilitlenir.",
|
||||
"autoLockNever": "Never",
|
||||
"autoLock15Seconds": "15 seconds",
|
||||
"autoLock1Minute": "1 minute",
|
||||
"autoLock5Minutes": "5 minutes",
|
||||
"autoLock15Minutes": "15 minutes",
|
||||
"autoLock30Minutes": "30 minutes",
|
||||
"autoLock1Hour": "1 hour",
|
||||
"autoLock4Hours": "4 hours",
|
||||
"autoLock8Hours": "8 hours",
|
||||
"autoLock24Hours": "24 hours",
|
||||
"versionPrefix": "Version ",
|
||||
"preferences": "Preferences",
|
||||
"autofillSettings": "Autofill Settings",
|
||||
"clipboardSettings": "Clipboard Settings",
|
||||
"contextMenuSettings": "Context Menu Settings",
|
||||
"contextMenu": "Context Menu",
|
||||
"contextMenuEnabled": "Context menu is enabled",
|
||||
"contextMenuDisabled": "Context menu is disabled",
|
||||
"contextMenuDescription": "Right-click on input fields to access AliasVault options",
|
||||
"selectLanguage": "Select Language",
|
||||
"validation": {
|
||||
"apiUrlRequired": "API URL is required",
|
||||
"apiUrlInvalid": "Please enter a valid API URL",
|
||||
"clientUrlRequired": "Client URL is required",
|
||||
"clientUrlInvalid": "Please enter a valid client URL"
|
||||
}
|
||||
},
|
||||
"upgrade": {
|
||||
"title": "Upgrade Vault",
|
||||
"subtitle": "AliasVault has updated and your vault needs to be upgraded. This should only take a few seconds.",
|
||||
"versionInformation": "Version Information",
|
||||
"yourVault": "Your vault:",
|
||||
"newVersion": "New version:",
|
||||
"upgrade": "Upgrade Vault",
|
||||
"upgrading": "Upgrading...",
|
||||
"logout": "Logout",
|
||||
"whatsNew": "What's New",
|
||||
"whatsNewDescription": "An upgrade is required to support the following changes:",
|
||||
"noDescriptionAvailable": "No description available for this version.",
|
||||
"okay": "Ok",
|
||||
"status": {
|
||||
"preparingUpgrade": "Preparing upgrade...",
|
||||
"vaultAlreadyUpToDate": "Vault is already up to date",
|
||||
"startingDatabaseTransaction": "Starting database transaction...",
|
||||
"applyingDatabaseMigrations": "Applying database migrations...",
|
||||
"applyingMigration": "Applying migration {{current}} of {{total}}...",
|
||||
"committingChanges": "Committing changes..."
|
||||
},
|
||||
"alerts": {
|
||||
"error": "Error",
|
||||
"unableToGetVersionInfo": "Unable to get version information. Please try again.",
|
||||
"selfHostedServer": "Self-Hosted Server",
|
||||
"selfHostedWarning": "If you're using a self-hosted server, make sure to also update your self-hosted instance as otherwise logging in to the web client will stop working.",
|
||||
"cancel": "Cancel",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,375 +1,392 @@
|
||||
{
|
||||
"auth": {
|
||||
"loginTitle": "Log in to AliasVault",
|
||||
"username": "Username or email",
|
||||
"usernamePlaceholder": "name / name@company.com",
|
||||
"password": "Password",
|
||||
"passwordPlaceholder": "Enter your password",
|
||||
"rememberMe": "Remember me",
|
||||
"loginButton": "Login",
|
||||
"noAccount": "No account yet?",
|
||||
"createVault": "Create new vault",
|
||||
"twoFactorTitle": "Please enter the authentication code from your authenticator app.",
|
||||
"authCode": "Authentication Code",
|
||||
"authCodePlaceholder": "Enter 6-digit code",
|
||||
"verify": "Verify",
|
||||
"cancel": "Cancel",
|
||||
"twoFactorNote": "Note: if you don't have access to your authenticator device, you can reset your 2FA with a recovery code by logging in via the website.",
|
||||
"masterPassword": "Master Password",
|
||||
"unlockVault": "Unlock Vault",
|
||||
"unlockTitle": "Unlock Your Vault",
|
||||
"unlockDescription": "Enter your master password to unlock your vault.",
|
||||
"logout": "Logout",
|
||||
"logoutConfirm": "Are you sure you want to logout?",
|
||||
"sessionExpired": "Your session has expired. Please log in again.",
|
||||
"unlockSuccess": "Vault unlocked successfully!",
|
||||
"unlockSuccessTitle": "Your vault is successfully unlocked",
|
||||
"unlockSuccessDescription": "You can now use autofill in login forms in your browser.",
|
||||
"closePopup": "Close this popup",
|
||||
"browseVault": "Browse vault contents",
|
||||
"connectingTo": "Connecting to",
|
||||
"switchAccounts": "Switch accounts?",
|
||||
"loggedIn": "Logged in",
|
||||
"loginTitle": "Увійти до AliasVault",
|
||||
"username": "Ім'я користувача або електронна пошта",
|
||||
"usernamePlaceholder": "ім'я / name@company.com",
|
||||
"password": "Пароль",
|
||||
"passwordPlaceholder": "Введіть ваш пароль",
|
||||
"rememberMe": "Запам'ятати мене",
|
||||
"loginButton": "Увійти",
|
||||
"noAccount": "Ще не маєте облікового запису?",
|
||||
"createVault": "Створити нове сховище",
|
||||
"twoFactorTitle": "Будь ласка, введіть код автентифікації з вашого застосунку для автентифікації.",
|
||||
"authCode": "Код автентифікації",
|
||||
"authCodePlaceholder": "Введіть 6-значний код",
|
||||
"verify": "Перевірка",
|
||||
"cancel": "Скасувати",
|
||||
"twoFactorNote": "Примітка: якщо у вас немає доступу до вашого пристрою автентифікатора, ви можете скинути налаштування 2FA за допомогою коду відновлення, увійшовши через вебсайт.",
|
||||
"masterPassword": "Головний пароль",
|
||||
"unlockVault": "Розблокувати Vault",
|
||||
"unlockTitle": "Розблокувати своє сховище",
|
||||
"unlockDescription": "Введіть свій головний пароль, щоб розблокувати сховище.",
|
||||
"logout": "Вийти",
|
||||
"logoutConfirm": "Ви впевнені, що хочете вийти?",
|
||||
"sessionExpired": "Ваш сеанс закінчився. Будь ласка, увійдіть знову.",
|
||||
"unlockSuccess": "Сховище успішно розблоковано!",
|
||||
"unlockSuccessTitle": "Ваше сховище успішно розблоковано",
|
||||
"unlockSuccessDescription": "Тепер ви можете використовувати автозаповнення форм входу у вашому браузері.",
|
||||
"closePopup": "Закрити цю підказку",
|
||||
"browseVault": "Переглянути вміст сховища",
|
||||
"connectingTo": "Підключення до",
|
||||
"switchAccounts": "Змінити обліковий запис?",
|
||||
"loggedIn": "Вхід виконано",
|
||||
"errors": {
|
||||
"invalidCode": "Please enter a valid 6-digit authentication code.",
|
||||
"serverError": "Could not reach AliasVault server. Please try again later or contact support if the problem persists.",
|
||||
"noToken": "Login failed -- no token returned",
|
||||
"migrationError": "An error occurred while checking for pending migrations.",
|
||||
"wrongPassword": "Incorrect password. Please try again.",
|
||||
"accountLocked": "Account temporarily locked due to too many failed attempts.",
|
||||
"networkError": "Network error. Please check your connection and try again.",
|
||||
"loginDataMissing": "Login session expired. Please try again."
|
||||
"invalidCode": "Будь ласка, введіть дійсний 6-значний код автентифікації.",
|
||||
"serverError": "Не вдалося зв’язатися зі сервером AliasVault. Будь ласка, спробуйте пізніше або зверніться до служби підтримки, якщо проблема не зникне.",
|
||||
"noToken": "Не вдалося ввійти -- токен не знайдено",
|
||||
"migrationError": "Під час перевірки незавершених перенесень сталася помилка.",
|
||||
"wrongPassword": "Невірний пароль. Будь ласка, спробуйте ще раз.",
|
||||
"accountLocked": "Обліковий запис тимчасово заблоковано через занадто багато невдалих спроб.",
|
||||
"networkError": "Помилка мережі. Будь ласка, перевірте з’єднання та спробуйте ще раз.",
|
||||
"loginDataMissing": "Термін дії сеансу закінчився. Будь ласка, спробуйте ще раз."
|
||||
}
|
||||
},
|
||||
"menu": {
|
||||
"credentials": "Credentials",
|
||||
"emails": "Emails",
|
||||
"settings": "Settings"
|
||||
"credentials": "Облікові дані",
|
||||
"emails": "Електронні адреси",
|
||||
"settings": "Налаштування"
|
||||
},
|
||||
"common": {
|
||||
"appName": "AliasVault",
|
||||
"loading": "Loading...",
|
||||
"error": "Error",
|
||||
"success": "Success",
|
||||
"cancel": "Cancel",
|
||||
"use": "Use",
|
||||
"delete": "Delete",
|
||||
"close": "Close",
|
||||
"copied": "Copied!",
|
||||
"openInNewWindow": "Open in new window",
|
||||
"language": "Language",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"showPassword": "Show password",
|
||||
"hidePassword": "Hide password",
|
||||
"copyToClipboard": "Copy to clipboard",
|
||||
"loadingEmails": "Loading emails...",
|
||||
"loadingTotpCodes": "Loading TOTP codes...",
|
||||
"attachments": "Attachments",
|
||||
"loadingAttachments": "Loading attachments...",
|
||||
"settings": "Settings",
|
||||
"recentEmails": "Recent emails",
|
||||
"loginCredentials": "Login credentials",
|
||||
"twoFactorAuthentication": "Two-factor authentication",
|
||||
"alias": "Alias",
|
||||
"notes": "Notes",
|
||||
"fullName": "Full Name",
|
||||
"firstName": "First Name",
|
||||
"lastName": "Last Name",
|
||||
"birthDate": "Birth Date",
|
||||
"nickname": "Nickname",
|
||||
"email": "Email",
|
||||
"username": "Username",
|
||||
"password": "Password",
|
||||
"syncingVault": "Syncing vault",
|
||||
"savingChangesToVault": "Saving changes to vault",
|
||||
"uploadingVaultToServer": "Uploading vault to server",
|
||||
"checkingVaultUpdates": "Checking for vault updates",
|
||||
"syncingUpdatedVault": "Syncing updated vault",
|
||||
"executingOperation": "Executing operation...",
|
||||
"loadMore": "Load more",
|
||||
"loading": "Завантаження даних...",
|
||||
"error": "Помилка",
|
||||
"success": "Успішно",
|
||||
"cancel": "Скасувати",
|
||||
"use": "Використовувати",
|
||||
"delete": "Видалити",
|
||||
"close": "Закрити",
|
||||
"copied": "Скопійовано!",
|
||||
"openInNewWindow": "Відкрити у новому вікні",
|
||||
"language": "Мова",
|
||||
"enabled": "Увімкнено",
|
||||
"disabled": "Вимкнено",
|
||||
"showPassword": "Показати пароль",
|
||||
"hidePassword": "Приховати пароль",
|
||||
"copyToClipboard": "Копіювати до буфера обміну",
|
||||
"loadingEmails": "Завантаження електронних адрес...",
|
||||
"loadingTotpCodes": "Завантаження кодів TOTP...",
|
||||
"attachments": "Вкладення",
|
||||
"loadingAttachments": "Завантаження вкладень...",
|
||||
"settings": "Налаштування",
|
||||
"recentEmails": "Останні електронні листи",
|
||||
"loginCredentials": "Облікові дані для входу",
|
||||
"twoFactorAuthentication": "Двофакторна автентифікація",
|
||||
"alias": "Псевдонім",
|
||||
"notes": "Нотатки",
|
||||
"fullName": "Повне ім'я",
|
||||
"firstName": "Ім’я",
|
||||
"lastName": "Прізвище",
|
||||
"birthDate": "Дата народження",
|
||||
"nickname": "Нікнейм",
|
||||
"email": "Електронна пошта",
|
||||
"username": "Ім'я користувача",
|
||||
"password": "Пароль",
|
||||
"syncingVault": "Синхронізація сховища",
|
||||
"savingChangesToVault": "Збереження змін у сховищі",
|
||||
"uploadingVaultToServer": "Завантаження сховища на сервер",
|
||||
"checkingVaultUpdates": "Перевірка оновлень сховища",
|
||||
"syncingUpdatedVault": "Синхронізація оновленого сховища",
|
||||
"executingOperation": "Виконання операції...",
|
||||
"loadMore": "Завантажити ще",
|
||||
"errors": {
|
||||
"VaultMergeRequired": "Your vault needs to be updated. Please login on the AliasVault website and follow the steps.",
|
||||
"VaultOutdated": "Your vault is outdated. Please login on the AliasVault website and follow the steps.",
|
||||
"NoVaultFound": "Your account does not have a vault yet. Please complete the tutorial in the AliasVault web client before using the browser extension.",
|
||||
"serverNotAvailable": "The AliasVault server is not available. Please try again later or contact support if the problem persists.",
|
||||
"clientVersionNotSupported": "This version of the AliasVault browser extension is not supported by the server anymore. Please update your browser extension to the latest version.",
|
||||
"serverVersionNotSupported": "The AliasVault server needs to be updated to a newer version in order to use this browser extension. Please contact support if you need help.",
|
||||
"unknownError": "An unknown error occurred",
|
||||
"failedToStoreVault": "Failed to store vault",
|
||||
"vaultNotAvailable": "Vault not available",
|
||||
"failedToGetVault": "Failed to get vault",
|
||||
"vaultIsLocked": "Vault is locked",
|
||||
"failedToGetCredentials": "Failed to get credentials",
|
||||
"failedToCreateIdentity": "Failed to create identity",
|
||||
"failedToGetDefaultEmailDomain": "Failed to get default email domain",
|
||||
"failedToGetDefaultIdentitySettings": "Failed to get default identity settings",
|
||||
"failedToGetPasswordSettings": "Failed to get password settings",
|
||||
"failedToUploadVault": "Failed to upload vault",
|
||||
"noDerivedKeyAvailable": "No derived key available for encryption",
|
||||
"failedToUploadVaultToServer": "Failed to upload new vault to server",
|
||||
"noVaultOrDerivedKeyFound": "No vault or derived key found"
|
||||
"VaultOutdated": "Ваше сховище застаріло. Будь ласка, увійдіть на вебсайт AliasVault та виконайте наведені нижче дії.",
|
||||
"serverNotAvailable": "Не вдалося зв’язатися зі сервером AliasVault. Будь ласка, спробуйте пізніше або зверніться до служби підтримки, якщо проблема не зникне.",
|
||||
"clientVersionNotSupported": "Ця версія розширення браузера AliasVault більше не підтримується сервером. Будь ласка, оновіть розширення браузера до останньої версії.",
|
||||
"serverVersionNotSupported": "Щоб використовувати це розширення браузера, потрібно оновити сервер AliasVault до новішої версії. Зверніться до служби підтримки, якщо вам потрібна допомога.",
|
||||
"unknownError": "Сталася невідома помилка",
|
||||
"failedToStoreVault": "Не вдалося зберегти сховище",
|
||||
"vaultNotAvailable": "Сховище недоступне",
|
||||
"failedToRetrieveData": "Не вдалося отримати дані",
|
||||
"vaultIsLocked": "Сховище заблоковано",
|
||||
"failedToUploadVault": "Не вдалося завантажити сховище",
|
||||
"passwordChanged": "Ваш пароль змінився з моменту останнього входу. З міркувань безпеки, будь ласка, увійдіть ще раз."
|
||||
},
|
||||
"apiErrors": {
|
||||
"UNKNOWN_ERROR": "An unknown error occurred. Please try again.",
|
||||
"ACCOUNT_LOCKED": "Account temporarily locked due to too many failed attempts. Please try again later.",
|
||||
"ACCOUNT_BLOCKED": "Your account has been disabled. If you believe this is a mistake, please contact support.",
|
||||
"USER_NOT_FOUND": "Invalid username or password. Please try again.",
|
||||
"INVALID_AUTHENTICATOR_CODE": "Invalid authenticator code. Please try again.",
|
||||
"INVALID_RECOVERY_CODE": "Invalid recovery code. Please try again.",
|
||||
"REFRESH_TOKEN_REQUIRED": "Refresh token is required.",
|
||||
"USER_NOT_FOUND_IN_TOKEN": "User not found in token.",
|
||||
"USER_NOT_FOUND_IN_DATABASE": "User not found in database.",
|
||||
"INVALID_REFRESH_TOKEN": "Invalid refresh token.",
|
||||
"REFRESH_TOKEN_REVOKED_SUCCESSFULLY": "Refresh token revoked successfully.",
|
||||
"PUBLIC_REGISTRATION_DISABLED": "New account registration is currently disabled on this server. Please contact the administrator.",
|
||||
"USERNAME_REQUIRED": "Username is required.",
|
||||
"USERNAME_ALREADY_IN_USE": "Username is already in use.",
|
||||
"USERNAME_AVAILABLE": "Username is available.",
|
||||
"USERNAME_MISMATCH": "Username does not match the current user.",
|
||||
"PASSWORD_MISMATCH": "The provided password does not match your current password.",
|
||||
"ACCOUNT_SUCCESSFULLY_DELETED": "Account successfully deleted.",
|
||||
"USERNAME_EMPTY_OR_WHITESPACE": "Username cannot be empty or whitespace.",
|
||||
"USERNAME_TOO_SHORT": "Username too short: must be at least 3 characters long.",
|
||||
"USERNAME_TOO_LONG": "Username too long: cannot be longer than 40 characters.",
|
||||
"USERNAME_INVALID_EMAIL": "Invalid email address.",
|
||||
"USERNAME_INVALID_CHARACTERS": "Username is invalid, can only contain letters or digits.",
|
||||
"VAULT_NOT_UP_TO_DATE": "Your vault is not up-to-date. Please synchronize your vault and try again.",
|
||||
"INTERNAL_SERVER_ERROR": "Internal server error.",
|
||||
"VAULT_ERROR": "The local vault is not up-to-date. Please synchronize your vault by refreshing the page and try again."
|
||||
"UNKNOWN_ERROR": "Сталася невідома помилка. Будь ласка, спробуйте ще раз.",
|
||||
"ACCOUNT_LOCKED": "Обліковий запис тимчасово заблоковано через занадто багато невдалих спроб. Будь ласка, спробуйте пізніше.",
|
||||
"ACCOUNT_BLOCKED": "Ваш обліковий запис вимкнено. Якщо ви вважаєте, що це помилка, зверніться до служби підтримки.",
|
||||
"USER_NOT_FOUND": "Недійсне ім'я користувача або пароль. Спробуйте ще раз.",
|
||||
"INVALID_AUTHENTICATOR_CODE": "Недійсний код автентифікатора. Спробуйте ще раз.",
|
||||
"INVALID_RECOVERY_CODE": "Недійсний код відновлення. Будь ласка, спробуйте ще раз.",
|
||||
"REFRESH_TOKEN_REQUIRED": "Необхідне оновлення токена.",
|
||||
"INVALID_REFRESH_TOKEN": "Оновлення токена невдале.",
|
||||
"REFRESH_TOKEN_REVOKED_SUCCESSFULLY": "Оновлення токена відкликано успішно.",
|
||||
"PUBLIC_REGISTRATION_DISABLED": "Реєстрація нових облікових записів на цьому сервері наразі вимкнена. Зверніться до адміністратора.",
|
||||
"USERNAME_REQUIRED": "Ім'я користувача обов'язкове.",
|
||||
"USERNAME_ALREADY_IN_USE": "Ім'я користувача вже використовується.",
|
||||
"USERNAME_AVAILABLE": "Ім'я користувача доступне.",
|
||||
"USERNAME_MISMATCH": "Ім'я користувача не відповідає поточному користувачеві.",
|
||||
"PASSWORD_MISMATCH": "Введений пароль не відповідає вашому поточному паролю.",
|
||||
"ACCOUNT_SUCCESSFULLY_DELETED": "Обліковий запис успішно видалено.",
|
||||
"USERNAME_EMPTY_OR_WHITESPACE": "Ім’я користувача не може бути порожнім або містити пробіли.",
|
||||
"USERNAME_TOO_SHORT": "Ім’я користувача закоротке: має містити щонайменше 3 символи.",
|
||||
"USERNAME_TOO_LONG": "Ім'я користувача занадто довге: не може бути довшим за 40 символів.",
|
||||
"USERNAME_INVALID_EMAIL": "Недійсна адреса електронної пошти.",
|
||||
"USERNAME_INVALID_CHARACTERS": "Ім'я користувача недійсне, може містити лише літери або цифри.",
|
||||
"VAULT_NOT_UP_TO_DATE": "Ваше сховище застаріло. Синхронізуйте його та спробуйте ще раз.",
|
||||
"INTERNAL_SERVER_ERROR": "Внутрішня помилка сервера.",
|
||||
"VAULT_ERROR": "Локальне сховище не оновлене. Синхронізуйте своє сховище, оновивши сторінку, та повторіть спробу."
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"or": "or",
|
||||
"new": "New",
|
||||
"cancel": "Cancel",
|
||||
"search": "Search",
|
||||
"vaultLocked": "AliasVault is locked.",
|
||||
"creatingNewAlias": "Creating new alias...",
|
||||
"noMatchesFound": "No matches found",
|
||||
"searchVault": "Search vault...",
|
||||
"serviceName": "Service name",
|
||||
"email": "Email",
|
||||
"username": "Username",
|
||||
"password": "Password",
|
||||
"enterServiceName": "Enter service name",
|
||||
"enterEmailAddress": "Enter email address",
|
||||
"enterUsername": "Enter username",
|
||||
"hideFor1Hour": "Hide for 1 hour (current site)",
|
||||
"hidePermanently": "Hide permanently (current site)",
|
||||
"createRandomAlias": "Create random alias",
|
||||
"createUsernamePassword": "Create username/password",
|
||||
"randomAlias": "Random alias",
|
||||
"usernamePassword": "Username/password",
|
||||
"createAndSaveAlias": "Create and save alias",
|
||||
"createAndSaveCredential": "Create and save credential",
|
||||
"randomIdentityDescription": "Generate a random identity with a random email address accessible in AliasVault.",
|
||||
"randomIdentityDescriptionDropdown": "Random identity with random email",
|
||||
"manualCredentialDescription": "Specify your own email address and username.",
|
||||
"manualCredentialDescriptionDropdown": "Manual username and password",
|
||||
"failedToCreateIdentity": "Failed to create identity. Please try again.",
|
||||
"enterEmailAndOrUsername": "Enter email and/or username",
|
||||
"autofillWithAliasVault": "Autofill with AliasVault",
|
||||
"generateRandomPassword": "Generate random password (copy to clipboard)",
|
||||
"generateNewPassword": "Generate new password",
|
||||
"togglePasswordVisibility": "Toggle password visibility",
|
||||
"passwordCopiedToClipboard": "Password copied to clipboard",
|
||||
"enterEmailAndOrUsernameError": "Enter email and/or username",
|
||||
"openAliasVaultToUpgrade": "Open AliasVault to upgrade",
|
||||
"vaultUpgradeRequired": "Vault upgrade required.",
|
||||
"dismissPopup": "Dismiss popup"
|
||||
"or": "або",
|
||||
"new": "Новий",
|
||||
"cancel": "Скасувати",
|
||||
"search": "Пошук",
|
||||
"vaultLocked": "AliasVault заблоковано.",
|
||||
"creatingNewAlias": "Створення нового псевдоніму...",
|
||||
"noMatchesFound": "Збігів не знайдено",
|
||||
"searchVault": "Пошук сховища...",
|
||||
"serviceName": "Назва служби",
|
||||
"email": "Електронна пошта",
|
||||
"username": "Ім'я користувача",
|
||||
"password": "Пароль",
|
||||
"enterServiceName": "Введіть назву служби",
|
||||
"enterEmailAddress": "Введіть електронну адресу",
|
||||
"enterUsername": "Введіть ім'я користувача",
|
||||
"hideFor1Hour": "Сховати протягом 1 години (поточний сайт)",
|
||||
"hidePermanently": "Приховати назавжди (поточний сайт)",
|
||||
"createRandomAlias": "Створити випадковий псевдонім",
|
||||
"createUsernamePassword": "Створити ім'я користувача/пароль",
|
||||
"randomAlias": "Випадковий псевдонім",
|
||||
"usernamePassword": "Ім'я користувача/Пароль",
|
||||
"createAndSaveAlias": "Створити та зберегти псевдонім",
|
||||
"createAndSaveCredential": "Створити та зберегти облікові дані",
|
||||
"randomIdentityDescription": "Згенеруйте випадкову особу з випадковою адресою електронної пошти, доступною в AliasVault.",
|
||||
"randomIdentityDescriptionDropdown": "Випадкова ідентифікація з випадковою електронною поштою",
|
||||
"manualCredentialDescription": "Вкажіть власну адресу електронної пошти та ім'я користувача.",
|
||||
"manualCredentialDescriptionDropdown": "Ім'я користувача та пароль вручну",
|
||||
"failedToCreateIdentity": "Не вдалося створити ідентифікатор. Спробуйте ще раз.",
|
||||
"enterEmailAndOrUsername": "Введіть електронну пошту та/або ім'я користувача",
|
||||
"autofillWithAliasVault": "Автозаповнення за допомогою AliasVault",
|
||||
"generateRandomPassword": "Згенерувати випадковий пароль (скопіювати в буфер обміну)",
|
||||
"generateNewPassword": "Згенерувати новий пароль",
|
||||
"togglePasswordVisibility": "Перемикання видимості пароля",
|
||||
"passwordCopiedToClipboard": "Пароль скопійовано в буфер обміну",
|
||||
"enterEmailAndOrUsernameError": "Введіть електронну пошту та/або ім'я користувача",
|
||||
"openAliasVaultToUpgrade": "Відкрити AliasVault для покращення",
|
||||
"vaultUpgradeRequired": "Потрібне оновлення сховища.",
|
||||
"dismissPopup": "Закрити спливаюче вікно"
|
||||
},
|
||||
"credentials": {
|
||||
"title": "Credentials",
|
||||
"addCredential": "Add Credential",
|
||||
"editCredential": "Edit Credential",
|
||||
"deleteCredential": "Delete Credential",
|
||||
"credentialDetails": "Credential Details",
|
||||
"serviceName": "Service Name",
|
||||
"serviceNamePlaceholder": "e.g., Gmail, Facebook, Bank",
|
||||
"website": "Website",
|
||||
"title": "Облікові дані",
|
||||
"addCredential": "Додати облікові дані",
|
||||
"editCredential": "Редагувати облікові дані",
|
||||
"deleteCredential": "Видалити облікові дані",
|
||||
"credentialDetails": "Відомості про облікові дані",
|
||||
"serviceName": "Назва сервісу",
|
||||
"serviceNamePlaceholder": "наприклад, Gmail, Facebook, Bank",
|
||||
"website": "Вебсайт",
|
||||
"websitePlaceholder": "https://example.com",
|
||||
"username": "Username",
|
||||
"usernamePlaceholder": "Enter username",
|
||||
"password": "Password",
|
||||
"passwordPlaceholder": "Enter password",
|
||||
"generatePassword": "Generate Password",
|
||||
"copyPassword": "Copy Password",
|
||||
"showPassword": "Show Password",
|
||||
"hidePassword": "Hide Password",
|
||||
"notes": "Notes",
|
||||
"notesPlaceholder": "Additional notes...",
|
||||
"totp": "Two-Factor Authentication",
|
||||
"totpCode": "TOTP Code",
|
||||
"copyTotp": "Copy TOTP",
|
||||
"totpSecret": "TOTP Secret",
|
||||
"totpSecretPlaceholder": "Enter TOTP secret key",
|
||||
"noCredentials": "No credentials found",
|
||||
"noCredentialsDescription": "Add your first credential to get started",
|
||||
"searchCredentials": "Search credentials...",
|
||||
"searchPlaceholder": "Search credentials...",
|
||||
"welcomeTitle": "Welcome to AliasVault!",
|
||||
"welcomeDescription": "To use the AliasVault browser extension: navigate to a website and use the AliasVault autofill popup to create a new credential.",
|
||||
"lastUsed": "Last used",
|
||||
"createdAt": "Created",
|
||||
"updatedAt": "Last updated",
|
||||
"autofill": "Autofill",
|
||||
"fillForm": "Fill Form",
|
||||
"copyUsername": "Copy Username",
|
||||
"openWebsite": "Open Website",
|
||||
"favorite": "Favorite",
|
||||
"unfavorite": "Remove from Favorites",
|
||||
"deleteConfirm": "Are you sure you want to delete this credential?",
|
||||
"deleteSuccess": "Credential deleted successfully",
|
||||
"saveSuccess": "Credential saved successfully",
|
||||
"copySuccess": "Copied to clipboard",
|
||||
"tags": "Tags",
|
||||
"addTag": "Add Tag",
|
||||
"removeTag": "Remove Tag",
|
||||
"folder": "Folder",
|
||||
"selectFolder": "Select Folder",
|
||||
"createFolder": "Create Folder",
|
||||
"saveCredential": "Save credential",
|
||||
"deleteCredentialTitle": "Delete Credential",
|
||||
"deleteCredentialConfirm": "Are you sure you want to delete this credential? This action cannot be undone.",
|
||||
"randomAlias": "Random Alias",
|
||||
"manual": "Manual",
|
||||
"service": "Service",
|
||||
"serviceUrl": "Service URL",
|
||||
"loginCredentials": "Login Credentials",
|
||||
"generateRandomUsername": "Generate random username",
|
||||
"generateRandomPassword": "Generate random password",
|
||||
"changePasswordComplexity": "Change password complexity",
|
||||
"passwordLength": "Password length",
|
||||
"includeLowercase": "Include lowercase letters",
|
||||
"includeUppercase": "Include uppercase letters",
|
||||
"includeNumbers": "Include numbers",
|
||||
"includeSpecialChars": "Include special characters",
|
||||
"avoidAmbiguousChars": "Avoid ambiguous characters (o, 0, etc.)",
|
||||
"generateNewPreview": "Generate new preview",
|
||||
"generateRandomAlias": "Generate Random Alias",
|
||||
"alias": "Alias",
|
||||
"firstName": "First Name",
|
||||
"lastName": "Last Name",
|
||||
"nickName": "Nick Name",
|
||||
"gender": "Gender",
|
||||
"birthDate": "Birth Date",
|
||||
"birthDatePlaceholder": "YYYY-MM-DD",
|
||||
"metadata": "Metadata",
|
||||
"errors": {
|
||||
"invalidUrl": "Please enter a valid URL",
|
||||
"saveError": "Failed to save credential",
|
||||
"loadError": "Failed to load credentials",
|
||||
"deleteError": "Failed to delete credential",
|
||||
"copyError": "Failed to copy to clipboard"
|
||||
},
|
||||
"username": "Ім'я користувача",
|
||||
"usernamePlaceholder": "Введіть ім'я користувача",
|
||||
"password": "Пароль",
|
||||
"passwordPlaceholder": "Введіть пароль",
|
||||
"generatePassword": "Згенерувати пароль",
|
||||
"copyPassword": "Копіювати пароль",
|
||||
"showPassword": "Показати пароль",
|
||||
"hidePassword": "Приховати пароль",
|
||||
"notes": "Нотатки",
|
||||
"notesPlaceholder": "Додаткові нотатки...",
|
||||
"totp": "Двофакторна аутентифікація",
|
||||
"totpCode": "Код TOTP",
|
||||
"copyTotp": "Копіювати TOTP",
|
||||
"totpSecret": "Секрет TOTP",
|
||||
"totpSecretPlaceholder": "Введіть секретний ключ TOTP",
|
||||
"noCredentials": "Облікових даних не знайдено",
|
||||
"noCredentialsDescription": "Додайте свої перші облікові дані, щоб розпочати",
|
||||
"searchPlaceholder": "Пошук облікових даних...",
|
||||
"welcomeTitle": "Ласкаво просимо до AliasVult!",
|
||||
"welcomeDescription": "Щоб скористатися розширенням браузера AliasVault: перейдіть на вебсайт і скористайтеся спливаючим вікном автозаповнення AliasVault, щоб створити нові облікові дані.",
|
||||
"createdAt": "Створено",
|
||||
"updatedAt": "Останнє оновлення",
|
||||
"autofill": "Автозаповнення",
|
||||
"fillForm": "Заповнити форму",
|
||||
"deleteConfirm": "Ви впевнені, що хочете видалити ці облікові дані?",
|
||||
"saveSuccess": "Облікові дані успішно збережено",
|
||||
"tags": "Теги",
|
||||
"addTag": "Додати тег",
|
||||
"removeTag": "Видалити тег",
|
||||
"folder": "Тека",
|
||||
"selectFolder": "Вибрати теку",
|
||||
"createFolder": "Створити теку",
|
||||
"saveCredential": "Зберегти облікові дані",
|
||||
"deleteCredentialTitle": "Видалити облікові дані",
|
||||
"deleteCredentialConfirm": "Ви впевнені, що хочете видалити ці облікові дані? Цю дію неможливо скасувати.",
|
||||
"randomAlias": "Випадковий псевдонім",
|
||||
"manual": "Посібник",
|
||||
"service": "Служба",
|
||||
"serviceUrl": "URL-адреса сервісу",
|
||||
"loginCredentials": "Дані для входу",
|
||||
"generateRandomUsername": "Згенерувати випадкове ім'я користувача",
|
||||
"generateRandomPassword": "Згенерувати випадковий пароль",
|
||||
"changePasswordComplexity": "Зміна складності пароля",
|
||||
"passwordLength": "Довжина пароля",
|
||||
"includeLowercase": "Включити малі літери",
|
||||
"includeUppercase": "Включити великі літери",
|
||||
"includeNumbers": "Включити числа",
|
||||
"includeSpecialChars": "Включити спеціальні символи",
|
||||
"avoidAmbiguousChars": "Уникайте неоднозначних символів (o, 0 тощо)",
|
||||
"generateNewPreview": "Згенерувати новий попередній перегляд",
|
||||
"generateRandomAlias": "Генерувати випадковий псевдонім",
|
||||
"alias": "Псевдонім",
|
||||
"firstName": "Ім’я",
|
||||
"lastName": "Прізвище",
|
||||
"nickName": "Нікнейм",
|
||||
"gender": "Стать",
|
||||
"birthDate": "Дата народження",
|
||||
"birthDatePlaceholder": "РРРР-ММ-ДД",
|
||||
"metadata": "Метадані",
|
||||
"validation": {
|
||||
"required": "This field is required",
|
||||
"serviceNameRequired": "Service name is required",
|
||||
"invalidUrl": "Invalid URL format",
|
||||
"invalidEmail": "Invalid email format",
|
||||
"invalidDateFormat": "Date must be in YYYY-MM-DD format"
|
||||
}
|
||||
"required": "Це поле обов'язкове",
|
||||
"serviceNameRequired": "Назва служби обов'язкова",
|
||||
"invalidEmail": "Недійсний формат електронної пошти",
|
||||
"invalidDateFormat": "Дата має бути у форматі РРРР-ММ-ДД"
|
||||
},
|
||||
"privateEmailTitle": "Приватна електронна адреса",
|
||||
"privateEmailAliasVaultServer": "Сервер AliasVault",
|
||||
"privateEmailDescription": "Наскрізне шифрування, повністю конфіденційно.",
|
||||
"publicEmailTitle": "Публічні тимчасові постачальники електронної пошти",
|
||||
"publicEmailDescription": "Анонімність, але обмежена конфіденційність. Зміст електронного листа може прочитати будь-хто, хто знає адресу.",
|
||||
"useDomainChooser": "Використовувати засіб вибору домену",
|
||||
"enterCustomDomain": "Введіть користувацький домен",
|
||||
"enterFullEmail": "Введіть повну електронну адресу",
|
||||
"enterEmailPrefix": "Введіть префікс електронної адреси"
|
||||
},
|
||||
"emails": {
|
||||
"title": "Emails",
|
||||
"deleteEmailTitle": "Delete Email",
|
||||
"deleteEmailConfirm": "Are you sure you want to permanently delete this email?",
|
||||
"from": "From",
|
||||
"to": "To",
|
||||
"date": "Date",
|
||||
"emailContent": "Email content",
|
||||
"attachments": "Attachments",
|
||||
"emailNotFound": "Email not found",
|
||||
"noEmails": "No emails found",
|
||||
"noEmailsDescription": "You have not received any emails at your private email addresses yet. When you receive a new email, it will appear here.",
|
||||
"title": "Електронні листи",
|
||||
"deleteEmailTitle": "Видалити електронного листа",
|
||||
"deleteEmailConfirm": "Ви впевнені, що хочете остаточно видалити цей електронний лист?",
|
||||
"from": "Від",
|
||||
"to": "До",
|
||||
"date": "Дата",
|
||||
"emailContent": "Вміст електронного листа",
|
||||
"attachments": "Вкладення",
|
||||
"emailNotFound": "Електронний лист не знайдено",
|
||||
"noEmails": "Електронних листів не знайдено",
|
||||
"noEmailsDescription": "Ви ще не отримували жодних листів на свої приватні адреси електронної пошти. Коли ви отримаєте новий лист, він з’явиться тут.",
|
||||
"dateFormat": {
|
||||
"justNow": "just now",
|
||||
"minutesAgo_single": "{{count}} min ago",
|
||||
"minutesAgo_plural": "{{count}} mins ago",
|
||||
"hoursAgo_single": "{{count}} hr ago",
|
||||
"hoursAgo_plural": "{{count}} hrs ago",
|
||||
"yesterday": "yesterday"
|
||||
"justNow": "щойно",
|
||||
"minutesAgo_single": "{{count}} хвилина тому",
|
||||
"minutesAgo_plural": "{{count}} хвилин тому",
|
||||
"hoursAgo_single": "{{count}} година тому",
|
||||
"hoursAgo_plural": "{{count}} годин тому",
|
||||
"yesterday": "учора"
|
||||
},
|
||||
"errors": {
|
||||
"emailLoadError": "An error occurred while loading emails. Please try again later.",
|
||||
"emailUnexpectedError": "An unexpected error occurred while loading emails. Please try again later."
|
||||
"emailLoadError": "Під час завантаження електронних листів сталася помилка. Спробуйте ще раз пізніше.",
|
||||
"emailUnexpectedError": "Під час завантаження електронних листів сталася неочікувана помилка. Спробуйте ще раз пізніше."
|
||||
},
|
||||
"apiErrors": {
|
||||
"CLAIM_DOES_NOT_MATCH_USER": "The current chosen email address is already in use. Please change the email address by editing this credential.",
|
||||
"CLAIM_DOES_NOT_EXIST": "An error occurred while trying to load the emails. Please try to edit and save the credential entry to synchronize the database, then try again."
|
||||
"CLAIM_DOES_NOT_MATCH_USER": "Поточна вибрана електронна адреса вже використовується. Змініть електронну адресу, відредагувавши ці облікові дані.",
|
||||
"CLAIM_DOES_NOT_EXIST": "Під час спроби завантажити електронні листи сталася помилка. Спробуйте відредагувати та зберегти запис облікових даних, щоб синхронізувати базу даних, а потім повторіть спробу."
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"title": "Settings",
|
||||
"serverUrl": "Server URL",
|
||||
"language": "Language",
|
||||
"autofillEnabled": "Enable Autofill",
|
||||
"version": "Version",
|
||||
"openInNewWindow": "Open in new window",
|
||||
"openWebApp": "Open web app",
|
||||
"loggedIn": "Logged in",
|
||||
"logout": "Logout",
|
||||
"globalSettings": "Global Settings",
|
||||
"autofillPopup": "Autofill popup",
|
||||
"activeOnAllSites": "Active on all sites (unless disabled below)",
|
||||
"disabledOnAllSites": "Disabled on all sites",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"rightClickContextMenu": "Right-click context menu",
|
||||
"siteSpecificSettings": "Site-Specific Settings",
|
||||
"autofillPopupOn": "Autofill popup on: ",
|
||||
"enabledForThisSite": "Enabled for this site",
|
||||
"disabledForThisSite": "Disabled for this site",
|
||||
"temporarilyDisabledUntil": "Temporarily disabled until ",
|
||||
"resetAllSiteSettings": "Reset all site-specific settings",
|
||||
"appearance": "Appearance",
|
||||
"theme": "Theme",
|
||||
"useDefault": "Use default",
|
||||
"light": "Light",
|
||||
"dark": "Dark",
|
||||
"keyboardShortcuts": "Keyboard Shortcuts",
|
||||
"configureKeyboardShortcuts": "Configure keyboard shortcuts",
|
||||
"configure": "Configure",
|
||||
"versionPrefix": "Version ",
|
||||
"title": "Налаштування",
|
||||
"serverUrl": "URL-адреса сервера",
|
||||
"language": "Мова",
|
||||
"autofillEnabled": "Увімкнути автозаповнення",
|
||||
"version": "Версія",
|
||||
"openInNewWindow": "Відкрити у новому вікні",
|
||||
"openWebApp": "Відкрити веб додаток",
|
||||
"loggedIn": "Вхід виконано",
|
||||
"logout": "Вийти",
|
||||
"globalSettings": "Глобальні налаштування",
|
||||
"autofillPopup": "Спливаюче вікно автозаповнення",
|
||||
"activeOnAllSites": "Активно на всіх сайтах (якщо не вимкнено нижче)",
|
||||
"disabledOnAllSites": "Вимкнено на всіх сайтах",
|
||||
"enabled": "Увімкнено",
|
||||
"disabled": "Вимкнено",
|
||||
"rightClickContextMenu": "Контекстне меню правою кнопкою миші",
|
||||
"autofillMatching": "Autofill Matching",
|
||||
"autofillMatchingMode": "Autofill matching mode",
|
||||
"autofillMatchingModeDescription": "Determines which credentials are considered a match and shown as suggestions in the autofill popup for a given website.",
|
||||
"autofillMatchingDefault": "URL + subdomain + name wildcard",
|
||||
"autofillMatchingUrlSubdomain": "URL + subdomain",
|
||||
"autofillMatchingUrlExact": "Exact URL domain only",
|
||||
"siteSpecificSettings": "Налаштування, специфічні для сайту",
|
||||
"autofillPopupOn": "Спливаюче вікно автозаповнення на: ",
|
||||
"enabledForThisSite": "Увімкнено для цього сайту",
|
||||
"disabledForThisSite": "Вимкнено для цього сайту",
|
||||
"temporarilyDisabledUntil": "Тимчасово вимкнено до ",
|
||||
"resetAllSiteSettings": "Скинути всі налаштування, характерні для сайту",
|
||||
"appearance": "Зовнішній вигляд",
|
||||
"theme": "Тема",
|
||||
"useDefault": "Використовувати за замовчуванням",
|
||||
"light": "Світла",
|
||||
"dark": "Темна",
|
||||
"keyboardShortcuts": "Комбінації клавіш",
|
||||
"configureKeyboardShortcuts": "Налаштування комбінацій клавіш",
|
||||
"configure": "Налаштування",
|
||||
"security": "Безпека",
|
||||
"clipboardClearTimeout": "Очистити буфер обміну після копіювання",
|
||||
"clipboardClearTimeoutDescription": "Автоматично очищати буфер обміну після копіювання конфіденційних даних",
|
||||
"clipboardClearDisabled": "Ніколи не очищати",
|
||||
"clipboardClear5Seconds": "Очистити після 5 секунд",
|
||||
"clipboardClear10Seconds": "Очистити після 10 секунд",
|
||||
"clipboardClear15Seconds": "Очистити після 15 секунд",
|
||||
"autoLockTimeout": "Auto-lock Timeout",
|
||||
"autoLockTimeoutDescription": "Автоматично блокувати сховище після періоду бездіяльності",
|
||||
"autoLockTimeoutHelp": "Сховище буде заблоковано лише після зазначеного періоду бездіяльності (не використовується автозаповнення або не відкривається спливне вікно розширення). Сховище завжди блокуватиметься, коли браузер закривається, незалежно від цього налаштування.",
|
||||
"autoLockNever": "Ніколи",
|
||||
"autoLock15Seconds": "15 секунд",
|
||||
"autoLock1Minute": "1 хвилина",
|
||||
"autoLock5Minutes": "5 хвилин",
|
||||
"autoLock15Minutes": "15 хвилин",
|
||||
"autoLock30Minutes": "30 хвилин",
|
||||
"autoLock1Hour": "1 година",
|
||||
"autoLock4Hours": "4 години",
|
||||
"autoLock8Hours": "8 годин",
|
||||
"autoLock24Hours": "24 години",
|
||||
"versionPrefix": "Версія ",
|
||||
"preferences": "Preferences",
|
||||
"autofillSettings": "Autofill Settings",
|
||||
"clipboardSettings": "Clipboard Settings",
|
||||
"contextMenuSettings": "Context Menu Settings",
|
||||
"contextMenu": "Context Menu",
|
||||
"contextMenuEnabled": "Context menu is enabled",
|
||||
"contextMenuDisabled": "Context menu is disabled",
|
||||
"contextMenuDescription": "Right-click on input fields to access AliasVault options",
|
||||
"selectLanguage": "Select Language",
|
||||
"validation": {
|
||||
"apiUrlRequired": "API URL is required",
|
||||
"apiUrlInvalid": "Please enter a valid API URL",
|
||||
"clientUrlRequired": "Client URL is required",
|
||||
"clientUrlInvalid": "Please enter a valid client URL"
|
||||
"apiUrlRequired": "URL-адреса API обов'язкова",
|
||||
"apiUrlInvalid": "Будь ласка, введіть дійсну URL-адресу API",
|
||||
"clientUrlRequired": "URL-адреса клієнта обов'язкова",
|
||||
"clientUrlInvalid": "Будь ласка, введіть дійсну URL-адресу клієнта"
|
||||
}
|
||||
},
|
||||
"upgrade": {
|
||||
"title": "Upgrade Vault",
|
||||
"subtitle": "AliasVault has updated and your vault needs to be upgraded. This should only take a few seconds.",
|
||||
"versionInformation": "Version Information",
|
||||
"yourVault": "Your vault:",
|
||||
"newVersion": "New version:",
|
||||
"upgrade": "Upgrade Vault",
|
||||
"upgrading": "Upgrading...",
|
||||
"logout": "Logout",
|
||||
"whatsNew": "What's New",
|
||||
"whatsNewDescription": "An upgrade is required to support the following changes:",
|
||||
"noDescriptionAvailable": "No description available for this version.",
|
||||
"okay": "Ok",
|
||||
"title": "Оновлення сховища",
|
||||
"subtitle": "AliasVault оновлено, і ваше сховище потрібно оновити. Це займе лише кілька секунд.",
|
||||
"versionInformation": "Інформація про версію",
|
||||
"yourVault": "Ваше сховище:",
|
||||
"newVersion": "Нова версія:",
|
||||
"upgrade": "Оновлення сховища",
|
||||
"upgrading": "Оновлення...",
|
||||
"logout": "Вихід",
|
||||
"whatsNew": "Що нового",
|
||||
"whatsNewDescription": "Для підтримки таких змін потрібне оновлення:",
|
||||
"noDescriptionAvailable": "Для цієї версії немає опису.",
|
||||
"okay": "Ок",
|
||||
"status": {
|
||||
"preparingUpgrade": "Preparing upgrade...",
|
||||
"vaultAlreadyUpToDate": "Vault is already up to date",
|
||||
"startingDatabaseTransaction": "Starting database transaction...",
|
||||
"applyingDatabaseMigrations": "Applying database migrations...",
|
||||
"applyingMigration": "Applying migration {{current}} of {{total}}...",
|
||||
"committingChanges": "Committing changes..."
|
||||
"preparingUpgrade": "Підготовка оновлення...",
|
||||
"vaultAlreadyUpToDate": "Сховище вже оновлено",
|
||||
"startingDatabaseTransaction": "Початок транзакції бази даних...",
|
||||
"applyingDatabaseMigrations": "Застосування міграцій бази даних...",
|
||||
"applyingMigration": "Застосування міграції {{current}} з {{total}}...",
|
||||
"committingChanges": "Внесення змін..."
|
||||
},
|
||||
"alerts": {
|
||||
"error": "Error",
|
||||
"unableToGetVersionInfo": "Unable to get version information. Please try again.",
|
||||
"selfHostedServer": "Self-Hosted Server",
|
||||
"selfHostedWarning": "If you're using a self-hosted server, make sure to also update your self-hosted instance as otherwise logging in to the web client will stop working.",
|
||||
"cancel": "Cancel",
|
||||
"continueUpgrade": "Continue Upgrade",
|
||||
"upgradeFailed": "Upgrade Failed",
|
||||
"failedToApplyMigration": "Failed to apply migration ({{current}} of {{total}})",
|
||||
"unknownErrorDuringUpgrade": "An unknown error occurred during the upgrade. Please try again."
|
||||
"error": "Помилка",
|
||||
"unableToGetVersionInfo": "Не вдалося отримати інформацію про версію. Спробуйте ще раз.",
|
||||
"selfHostedServer": "Сервер із самостійним розміщенням",
|
||||
"selfHostedWarning": "Якщо ви використовуєте власний сервер, обов’язково оновіть і свій власний екземпляр, інакше вхід до вебклієнта перестане працювати.",
|
||||
"cancel": "Скасувати",
|
||||
"continueUpgrade": "Продовжити оновлення",
|
||||
"upgradeFailed": "Помилка оновлення",
|
||||
"failedToApplyMigration": "Не вдалося застосувати міграцію ({{current}} з {{total}})",
|
||||
"unknownErrorDuringUpgrade": "Під час оновлення сталася невідома помилка. Спробуйте ще раз."
|
||||
}
|
||||
}
|
||||
}
|
||||
392
apps/browser-extension/src/i18n/locales/zh.json
Normal file
392
apps/browser-extension/src/i18n/locales/zh.json
Normal file
@@ -0,0 +1,392 @@
|
||||
{
|
||||
"auth": {
|
||||
"loginTitle": "登录AliasVault",
|
||||
"username": "用户名或电子邮箱",
|
||||
"usernamePlaceholder": "name / name@company.com",
|
||||
"password": "密码",
|
||||
"passwordPlaceholder": "请输入密码",
|
||||
"rememberMe": "记住我",
|
||||
"loginButton": "登录",
|
||||
"noAccount": "还没有账户?",
|
||||
"createVault": "创建新保险库",
|
||||
"twoFactorTitle": "请输入认证器的动态验证码。",
|
||||
"authCode": "动态验证码",
|
||||
"authCodePlaceholder": "输入6位动态验证码",
|
||||
"verify": "验证",
|
||||
"cancel": "取消",
|
||||
"twoFactorNote": "注意:如果无法访问你的认证设备,你可以通过网站登录,使用恢复码重置双因素认证(2FA)。",
|
||||
"masterPassword": "主密码",
|
||||
"unlockVault": "解锁保险库",
|
||||
"unlockTitle": "解锁你的保险库",
|
||||
"unlockDescription": "输入你的主密码以解锁保险库。",
|
||||
"logout": "退出登录",
|
||||
"logoutConfirm": "确定要退出登录吗?",
|
||||
"sessionExpired": "你的会话已过期。请重新登录。",
|
||||
"unlockSuccess": "保险库解锁成功!",
|
||||
"unlockSuccessTitle": "你的保险库已成功解锁",
|
||||
"unlockSuccessDescription": "现在你可以在浏览器的登录表单中使用自动填充功能了。",
|
||||
"closePopup": "关闭此弹窗",
|
||||
"browseVault": "浏览保险库内容",
|
||||
"connectingTo": "正在连接到",
|
||||
"switchAccounts": "切换账户?",
|
||||
"loggedIn": "已登录",
|
||||
"errors": {
|
||||
"invalidCode": "请输入有效的6位动态验证码。",
|
||||
"serverError": "无法连接到AliasVault服务器。请稍后重试,若问题依旧,请联系支持人员。",
|
||||
"noToken": "登录失败——未返回令牌",
|
||||
"migrationError": "检查待处理迁移时发生错误。",
|
||||
"wrongPassword": "密码不正确。请重试。",
|
||||
"accountLocked": "由于多次尝试失败,账户已暂时锁定。",
|
||||
"networkError": "网络错误。请检查你的连接后重试。",
|
||||
"loginDataMissing": "登录会话已过期。请重试。"
|
||||
}
|
||||
},
|
||||
"menu": {
|
||||
"credentials": "凭证",
|
||||
"emails": "邮件",
|
||||
"settings": "设置"
|
||||
},
|
||||
"common": {
|
||||
"appName": "AliasVault",
|
||||
"loading": "加载中……",
|
||||
"error": "错误",
|
||||
"success": "成功",
|
||||
"cancel": "取消",
|
||||
"use": "使用",
|
||||
"delete": "删除",
|
||||
"close": "关闭",
|
||||
"copied": "已复制!",
|
||||
"openInNewWindow": "在新窗口中打开",
|
||||
"language": "语言",
|
||||
"enabled": "已启用",
|
||||
"disabled": "已禁用",
|
||||
"showPassword": "显示密码",
|
||||
"hidePassword": "隐藏密码",
|
||||
"copyToClipboard": "复制到剪贴板",
|
||||
"loadingEmails": "加载邮件中……",
|
||||
"loadingTotpCodes": "加载TOTP验证码中……",
|
||||
"attachments": "附件",
|
||||
"loadingAttachments": "加载附件中……",
|
||||
"settings": "设置",
|
||||
"recentEmails": "最近邮件",
|
||||
"loginCredentials": "登录凭证",
|
||||
"twoFactorAuthentication": "双因素认证(2FA)",
|
||||
"alias": "别名",
|
||||
"notes": "备注",
|
||||
"fullName": "全名",
|
||||
"firstName": "名",
|
||||
"lastName": "姓",
|
||||
"birthDate": "出生日期",
|
||||
"nickname": "昵称",
|
||||
"email": "电子邮箱",
|
||||
"username": "用户名",
|
||||
"password": "密码",
|
||||
"syncingVault": "同步保险库中",
|
||||
"savingChangesToVault": "正在保存对保险库的更改",
|
||||
"uploadingVaultToServer": "正在将保险库上传到服务器",
|
||||
"checkingVaultUpdates": "检查保险库更新中",
|
||||
"syncingUpdatedVault": "同步更新后的保险库",
|
||||
"executingOperation": "执行操作中……",
|
||||
"loadMore": "加载更多",
|
||||
"errors": {
|
||||
"VaultOutdated": "你的保险库版本多低。请登录AliasVault网站并按照步骤操作。",
|
||||
"serverNotAvailable": "AliasVault服务器不可用。请稍后重试,若问题持续请联系支持人员。",
|
||||
"clientVersionNotSupported": "此版本的AliasVault浏览器扩展已不被服务器支持。请将浏览器扩展更新到最新版本。",
|
||||
"serverVersionNotSupported": "AliasVault服务器需要更新到新版本才能使用此浏览器扩展。如需帮助,请联系支持人员。",
|
||||
"unknownError": "发生未知错误",
|
||||
"failedToStoreVault": "存储保险库失败",
|
||||
"vaultNotAvailable": "保险库不可用",
|
||||
"failedToRetrieveData": "无法检索数据",
|
||||
"vaultIsLocked": "保险库已锁定",
|
||||
"failedToUploadVault": "上传保险库失败",
|
||||
"passwordChanged": "登录密码已更新,请重新登录以确保账户安全。"
|
||||
},
|
||||
"apiErrors": {
|
||||
"UNKNOWN_ERROR": "发生未知错误。请重试。",
|
||||
"ACCOUNT_LOCKED": "由于多次尝试失败,账户已暂时锁定。请稍后重试。",
|
||||
"ACCOUNT_BLOCKED": "你的账户已被禁用。如果你认为这是误操作,请联系支持人员。",
|
||||
"USER_NOT_FOUND": "用户名或密码无效。请重试。",
|
||||
"INVALID_AUTHENTICATOR_CODE": "认证器验证码无效。请重试。",
|
||||
"INVALID_RECOVERY_CODE": "恢复码无效。请重试。",
|
||||
"REFRESH_TOKEN_REQUIRED": "需要刷新令牌。",
|
||||
"INVALID_REFRESH_TOKEN": "无效的刷新令牌。",
|
||||
"REFRESH_TOKEN_REVOKED_SUCCESSFULLY": "刷新令牌已成功注销。",
|
||||
"PUBLIC_REGISTRATION_DISABLED": "当前服务器已禁用新账户注册。请联系管理员。",
|
||||
"USERNAME_REQUIRED": "用户名是必填项。",
|
||||
"USERNAME_ALREADY_IN_USE": "用户名已被使用。",
|
||||
"USERNAME_AVAILABLE": "用户名可用。",
|
||||
"USERNAME_MISMATCH": "用户名与当前用户不匹配。",
|
||||
"PASSWORD_MISMATCH": "提供的密码与你的当前密码不匹配。",
|
||||
"ACCOUNT_SUCCESSFULLY_DELETED": "账户已成功删除。",
|
||||
"USERNAME_EMPTY_OR_WHITESPACE": "用户名不能为空或仅含空格。",
|
||||
"USERNAME_TOO_SHORT": "用户名过短:至少需要3个字符。",
|
||||
"USERNAME_TOO_LONG": "用户名过长:不能超过40个字符。",
|
||||
"USERNAME_INVALID_EMAIL": "无效的邮箱地址。",
|
||||
"USERNAME_INVALID_CHARACTERS": "用户名无效,只能包含字母或数字。",
|
||||
"VAULT_NOT_UP_TO_DATE": "你的保险库不是最新的。请同步你的保险库后重试。",
|
||||
"INTERNAL_SERVER_ERROR": "服务器内部错误。",
|
||||
"VAULT_ERROR": "本地保险库不是最新的。请刷新页面同步保险库后重试。"
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"or": "或者",
|
||||
"new": "新建",
|
||||
"cancel": "取消",
|
||||
"search": "搜索",
|
||||
"vaultLocked": "AliasVault已锁定。",
|
||||
"creatingNewAlias": "正在创建新别名……",
|
||||
"noMatchesFound": "未找到匹配项",
|
||||
"searchVault": "搜索保险库……",
|
||||
"serviceName": "服务名称",
|
||||
"email": "电子邮箱",
|
||||
"username": "用户名",
|
||||
"password": "密码",
|
||||
"enterServiceName": "输入服务名称",
|
||||
"enterEmailAddress": "输入邮箱地址",
|
||||
"enterUsername": "输入用户名",
|
||||
"hideFor1Hour": "隐藏1小时(当前网站)",
|
||||
"hidePermanently": "永久隐藏(当前网站)",
|
||||
"createRandomAlias": "创建随机别名",
|
||||
"createUsernamePassword": "创建用户名/密码",
|
||||
"randomAlias": "随机别名",
|
||||
"usernamePassword": "用户名/密码",
|
||||
"createAndSaveAlias": "创建并保存别名",
|
||||
"createAndSaveCredential": "创建并保存凭证",
|
||||
"randomIdentityDescription": "生成一个包含随机邮箱地址的随机身份,可在AliasVault中查看。",
|
||||
"randomIdentityDescriptionDropdown": "带随机邮箱的随机身份",
|
||||
"manualCredentialDescription": "指定你自己的邮箱地址和用户名。",
|
||||
"manualCredentialDescriptionDropdown": "手动输入用户名和密码",
|
||||
"failedToCreateIdentity": "创建身份失败。请重试。",
|
||||
"enterEmailAndOrUsername": "输入邮箱和/或用户名",
|
||||
"autofillWithAliasVault": "使用AliasVault自动填充",
|
||||
"generateRandomPassword": "生成随机密码(复制到剪贴板)",
|
||||
"generateNewPassword": "生成新密码",
|
||||
"togglePasswordVisibility": "切换密码可见性",
|
||||
"passwordCopiedToClipboard": "密码已复制到剪贴板",
|
||||
"enterEmailAndOrUsernameError": "请输入邮箱和/或用户名",
|
||||
"openAliasVaultToUpgrade": "打开AliasVault进行升级",
|
||||
"vaultUpgradeRequired": "需要升级保险库。",
|
||||
"dismissPopup": "关闭弹窗"
|
||||
},
|
||||
"credentials": {
|
||||
"title": "凭证",
|
||||
"addCredential": "添加凭证",
|
||||
"editCredential": "编辑凭证",
|
||||
"deleteCredential": "删除凭证",
|
||||
"credentialDetails": "凭证详情",
|
||||
"serviceName": "服务名称",
|
||||
"serviceNamePlaceholder": "例如:Gmail、Facebook、银行",
|
||||
"website": "网站",
|
||||
"websitePlaceholder": "https://example.com",
|
||||
"username": "用户名",
|
||||
"usernamePlaceholder": "输入用户名",
|
||||
"password": "密码",
|
||||
"passwordPlaceholder": "输入密码",
|
||||
"generatePassword": "生成密码",
|
||||
"copyPassword": "复制密码",
|
||||
"showPassword": "显示密码",
|
||||
"hidePassword": "隐藏密码",
|
||||
"notes": "备注",
|
||||
"notesPlaceholder": "添加备注……",
|
||||
"totp": "双因素认证(2FA)",
|
||||
"totpCode": "TOTP验证码",
|
||||
"copyTotp": "复制 TOTP",
|
||||
"totpSecret": "TOTP密钥",
|
||||
"totpSecretPlaceholder": "输入TOTP密钥",
|
||||
"noCredentials": "未找到凭证",
|
||||
"noCredentialsDescription": "添加你的第一个凭证开始使用",
|
||||
"searchPlaceholder": "搜索凭证……",
|
||||
"welcomeTitle": "欢迎使用AliasVault!",
|
||||
"welcomeDescription": "要使用AliasVault浏览器扩展:导航到某个网站,使用AliasVault自动填充弹窗创建新凭证。",
|
||||
"createdAt": "创建时间",
|
||||
"updatedAt": "最后更新",
|
||||
"autofill": "自动填充",
|
||||
"fillForm": "填充表单",
|
||||
"deleteConfirm": "确定要删除此凭证吗?",
|
||||
"saveSuccess": "凭证保存成功",
|
||||
"tags": "标签",
|
||||
"addTag": "添加标签",
|
||||
"removeTag": "移除标签",
|
||||
"folder": "文件夹",
|
||||
"selectFolder": "选择文件夹",
|
||||
"createFolder": "创建文件夹",
|
||||
"saveCredential": "保存凭证",
|
||||
"deleteCredentialTitle": "删除凭证",
|
||||
"deleteCredentialConfirm": "确定要删除此凭证吗?此操作无法撤销。",
|
||||
"randomAlias": "随机别名",
|
||||
"manual": "手动",
|
||||
"service": "服务",
|
||||
"serviceUrl": "服务 URL",
|
||||
"loginCredentials": "登录凭证",
|
||||
"generateRandomUsername": "生成随机用户名",
|
||||
"generateRandomPassword": "生成随机密码",
|
||||
"changePasswordComplexity": "修改密码复杂度",
|
||||
"passwordLength": "密码长度",
|
||||
"includeLowercase": "包含小写字母",
|
||||
"includeUppercase": "包含大写字母",
|
||||
"includeNumbers": "包含数字",
|
||||
"includeSpecialChars": "包含特殊字符",
|
||||
"avoidAmbiguousChars": "避免易混淆字符(o、0 等)",
|
||||
"generateNewPreview": "生成新预览",
|
||||
"generateRandomAlias": "生成随机别名",
|
||||
"alias": "别名",
|
||||
"firstName": "名",
|
||||
"lastName": "姓",
|
||||
"nickName": "昵称",
|
||||
"gender": "性别",
|
||||
"birthDate": "出生日期",
|
||||
"birthDatePlaceholder": "YYYY-MM-DD",
|
||||
"metadata": "备注",
|
||||
"validation": {
|
||||
"required": "此字段为必填项",
|
||||
"serviceNameRequired": "服务名称为必填项",
|
||||
"invalidEmail": "无效的邮箱格式",
|
||||
"invalidDateFormat": "日期必须为 YYYY-MM-DD 格式"
|
||||
},
|
||||
"privateEmailTitle": "私人邮箱",
|
||||
"privateEmailAliasVaultServer": "AliasVault服务器",
|
||||
"privateEmailDescription": "端对端加密,完全私密。",
|
||||
"publicEmailTitle": "公开临时邮箱供应商",
|
||||
"publicEmailDescription": "匿名但隐私有限。任何知晓该邮箱地址的人均可查看邮件内容。",
|
||||
"useDomainChooser": "使用域名选择器",
|
||||
"enterCustomDomain": "输入自定义域名",
|
||||
"enterFullEmail": "输入验证邮箱地址",
|
||||
"enterEmailPrefix": "输入邮箱前缀"
|
||||
},
|
||||
"emails": {
|
||||
"title": "邮件",
|
||||
"deleteEmailTitle": "删除邮件",
|
||||
"deleteEmailConfirm": "确定要永久删除此邮件吗?",
|
||||
"from": "发件人",
|
||||
"to": "收件人",
|
||||
"date": "日期",
|
||||
"emailContent": "邮件内容",
|
||||
"attachments": "附件",
|
||||
"emailNotFound": "未找到邮件",
|
||||
"noEmails": "未找到邮件",
|
||||
"noEmailsDescription": "你的私人邮箱地址尚未收到任何邮件。当你收到新邮件时,会显示在这里。",
|
||||
"dateFormat": {
|
||||
"justNow": "刚刚",
|
||||
"minutesAgo_single": "{{count}}分钟前",
|
||||
"minutesAgo_plural": "{{count}}分钟前",
|
||||
"hoursAgo_single": "{{count}}小时前",
|
||||
"hoursAgo_plural": "{{count}}小时前",
|
||||
"yesterday": "昨天"
|
||||
},
|
||||
"errors": {
|
||||
"emailLoadError": "加载邮件时发生错误。请稍后重试。",
|
||||
"emailUnexpectedError": "加载邮件时发生意外错误。请稍后重试。"
|
||||
},
|
||||
"apiErrors": {
|
||||
"CLAIM_DOES_NOT_MATCH_USER": "当前选择的邮箱地址已被使用。请通过编辑此凭证修改邮箱地址。",
|
||||
"CLAIM_DOES_NOT_EXIST": "加载邮件时发生错误。请尝试编辑并保存凭证条目以同步数据库,然后重试。"
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"title": "设置",
|
||||
"serverUrl": "服务器 URL",
|
||||
"language": "语言",
|
||||
"autofillEnabled": "启用自动填充",
|
||||
"version": "版本",
|
||||
"openInNewWindow": "在新窗口中打开",
|
||||
"openWebApp": "打开网页应用",
|
||||
"loggedIn": "已登录",
|
||||
"logout": "退出登录",
|
||||
"globalSettings": "全局设置",
|
||||
"autofillPopup": "自动填充弹窗",
|
||||
"activeOnAllSites": "在所有网站上激活(除非在下方禁用)",
|
||||
"disabledOnAllSites": "在所有网站上禁用",
|
||||
"enabled": "启用",
|
||||
"disabled": "禁用",
|
||||
"rightClickContextMenu": "右键上下文菜单",
|
||||
"autofillMatching": "自动填充匹配",
|
||||
"autofillMatchingMode": "自动填充匹配模式",
|
||||
"autofillMatchingModeDescription": "用于判定哪些凭证会被视为匹配项,并在指定网站的自动填充弹窗中显示为建议选项。",
|
||||
"autofillMatchingDefault": "URL + 子域名 + 名称通配符",
|
||||
"autofillMatchingUrlSubdomain": "URL + 子域名",
|
||||
"autofillMatchingUrlExact": "精确匹配URL域名",
|
||||
"siteSpecificSettings": "网站特定设置",
|
||||
"autofillPopupOn": "自动填充弹窗在以下位置: ",
|
||||
"enabledForThisSite": "对此网站启用",
|
||||
"disabledForThisSite": "对此网站禁用",
|
||||
"temporarilyDisabledUntil": "暂时禁用至 ",
|
||||
"resetAllSiteSettings": "重置所有网站特定设置",
|
||||
"appearance": "外观",
|
||||
"theme": "主题",
|
||||
"useDefault": "使用默认",
|
||||
"light": "浅色",
|
||||
"dark": "深色",
|
||||
"keyboardShortcuts": "键盘快捷键",
|
||||
"configureKeyboardShortcuts": "配置键盘快捷键",
|
||||
"configure": "配置",
|
||||
"security": "安全",
|
||||
"clipboardClearTimeout": "复制后清楚剪切板",
|
||||
"clipboardClearTimeoutDescription": "复制敏感数据后自动清除剪贴板",
|
||||
"clipboardClearDisabled": "从不清除",
|
||||
"clipboardClear5Seconds": "5秒后清除",
|
||||
"clipboardClear10Seconds": "10 秒后清除",
|
||||
"clipboardClear15Seconds": "15分钟后清除",
|
||||
"autoLockTimeout": "自动锁定超时时间",
|
||||
"autoLockTimeoutDescription": "无操作一段时间后自动锁定保险库",
|
||||
"autoLockTimeoutHelp": "保险库仅在达到指定的无操作时长后才会锁定(未使用自动填充功能或未打开扩展程序弹窗)。无论此设置如何,关闭浏览器时保险库始终会锁定。",
|
||||
"autoLockNever": "从不",
|
||||
"autoLock15Seconds": "15秒",
|
||||
"autoLock1Minute": "1分钟",
|
||||
"autoLock5Minutes": "5分钟",
|
||||
"autoLock15Minutes": "15分钟",
|
||||
"autoLock30Minutes": "30分钟",
|
||||
"autoLock1Hour": "1小时",
|
||||
"autoLock4Hours": "4小时",
|
||||
"autoLock8Hours": "8小时",
|
||||
"autoLock24Hours": "24小时",
|
||||
"versionPrefix": "版本 ",
|
||||
"preferences": "首选项",
|
||||
"autofillSettings": "自动填充设置",
|
||||
"clipboardSettings": "剪切板设置",
|
||||
"contextMenuSettings": "上下文菜单设置",
|
||||
"contextMenu": "上下文菜单",
|
||||
"contextMenuEnabled": "上下文菜单已启用",
|
||||
"contextMenuDisabled": "上下文菜单已停用",
|
||||
"contextMenuDescription": "右键点击输入字段即可访问 AliasVault 选项",
|
||||
"selectLanguage": "选择语言",
|
||||
"validation": {
|
||||
"apiUrlRequired": "API URL 为必填项",
|
||||
"apiUrlInvalid": "请输入有效的 API URL",
|
||||
"clientUrlRequired": "客户端 URL 为必填项",
|
||||
"clientUrlInvalid": "请输入有效的客户端 URL"
|
||||
}
|
||||
},
|
||||
"upgrade": {
|
||||
"title": "升级保险库",
|
||||
"subtitle": "AliasVault已更新,你的保险库需要升级,仅需数秒。",
|
||||
"versionInformation": "版本信息",
|
||||
"yourVault": "你的保险库:",
|
||||
"newVersion": "新版本:",
|
||||
"upgrade": "升级保险库",
|
||||
"upgrading": "升级中……",
|
||||
"logout": "退出登录",
|
||||
"whatsNew": "新功能",
|
||||
"whatsNewDescription": "需要升级以支持以下变更:",
|
||||
"noDescriptionAvailable": "此版本无可用说明。",
|
||||
"okay": "确定",
|
||||
"status": {
|
||||
"preparingUpgrade": "准备升级中……",
|
||||
"vaultAlreadyUpToDate": "当前保险库数据已是最新",
|
||||
"startingDatabaseTransaction": "开始数据库事务……",
|
||||
"applyingDatabaseMigrations": "应用数据库迁移……",
|
||||
"applyingMigration": "应用迁移 {{current}} / {{total}}……",
|
||||
"committingChanges": "提交更改中……"
|
||||
},
|
||||
"alerts": {
|
||||
"error": "错误",
|
||||
"unableToGetVersionInfo": "无法获取版本信息。请重试。",
|
||||
"selfHostedServer": "自托管服务器",
|
||||
"selfHostedWarning": "如果你使用的是自托管服务器,请确保同时更新你的自托管实例,否则将无法登录网页客户端。",
|
||||
"cancel": "取消",
|
||||
"continueUpgrade": "继续升级",
|
||||
"upgradeFailed": "升级失败",
|
||||
"failedToApplyMigration": "应用迁移失败({{current}} / {{total}})",
|
||||
"unknownErrorDuringUpgrade": "升级过程中发生未知错误。请重试。"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ export class AppInfo {
|
||||
/**
|
||||
* The current extension version. This should be updated with each release of the extension.
|
||||
*/
|
||||
public static readonly VERSION = '0.21.2';
|
||||
public static readonly VERSION = '0.22.0';
|
||||
|
||||
/**
|
||||
* The minimum supported AliasVault server (API) version. If the server version is below this, the
|
||||
|
||||
@@ -4,6 +4,9 @@ export const GLOBAL_AUTOFILL_POPUP_ENABLED_KEY = 'local:aliasvault_global_autofi
|
||||
export const GLOBAL_CONTEXT_MENU_ENABLED_KEY = 'local:aliasvault_global_context_menu_enabled';
|
||||
export const VAULT_LOCKED_DISMISS_UNTIL_KEY = 'local:aliasvault_vault_locked_dismiss_until';
|
||||
export const TEMPORARY_DISABLED_SITES_KEY = 'local:aliasvault_temporary_disabled_sites';
|
||||
export const CLIPBOARD_CLEAR_TIMEOUT_KEY = 'local:aliasvault_clipboard_clear_timeout';
|
||||
export const AUTO_LOCK_TIMEOUT_KEY = 'local:aliasvault_auto_lock_timeout';
|
||||
export const AUTOFILL_MATCHING_MODE_KEY = 'local:aliasvault_autofill_matching_mode';
|
||||
|
||||
// TODO: store these settings in the actual vault when updating the datamodel for roadmap v1.0.
|
||||
export const LAST_CUSTOM_EMAIL_KEY = 'local:aliasvault_last_custom_email';
|
||||
|
||||
@@ -357,6 +357,7 @@ export class SqliteClient {
|
||||
const isValidDomain = (domain: string): boolean => {
|
||||
return Boolean(domain &&
|
||||
domain !== 'DISABLED.TLD' &&
|
||||
domain !== '' &&
|
||||
(privateEmailDomains.includes(domain) || publicEmailDomains.includes(domain)));
|
||||
};
|
||||
|
||||
|
||||
@@ -262,7 +262,8 @@ export class WebApiService {
|
||||
return {
|
||||
clientVersionSupported: true,
|
||||
serverVersion: '0.0.0',
|
||||
vaultRevision: 0
|
||||
vaultRevision: 0,
|
||||
srpSalt: ''
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -272,15 +273,15 @@ export class WebApiService {
|
||||
*/
|
||||
public validateStatusResponse(statusResponse: StatusResponse): string | null {
|
||||
if (statusResponse.serverVersion === '0.0.0') {
|
||||
return 'errors.serverNotAvailable';
|
||||
return 'serverNotAvailable';
|
||||
}
|
||||
|
||||
if (!statusResponse.clientVersionSupported) {
|
||||
return 'errors.clientVersionNotSupported';
|
||||
return 'clientVersionNotSupported';
|
||||
}
|
||||
|
||||
if (!AppInfo.isServerVersionSupported(statusResponse.serverVersion)) {
|
||||
return 'errors.serverVersionNotSupported';
|
||||
return 'serverVersionNotSupported';
|
||||
}
|
||||
|
||||
return null;
|
||||
@@ -296,17 +297,13 @@ export class WebApiService {
|
||||
*/
|
||||
if (vaultResponseJson.status === 1) {
|
||||
// Note: vault merge is no longer allowed by the API as of 0.20.0, updates with the same revision number are rejected. So this check can be removed later.
|
||||
return t('errors.VaultMergeRequired');
|
||||
return t('errors.VaultOutdated');
|
||||
}
|
||||
|
||||
if (vaultResponseJson.status === 2) {
|
||||
return t('errors.VaultOutdated');
|
||||
}
|
||||
|
||||
if (!vaultResponseJson.vault?.blob) {
|
||||
return t('errors.NoVaultFound');
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -65,6 +65,7 @@ type StatusResponse = {
|
||||
clientVersionSupported: boolean;
|
||||
serverVersion: string;
|
||||
vaultRevision: number;
|
||||
srpSalt: string;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -169,6 +169,37 @@ export class FormDetector {
|
||||
return this.clickedElement?.closest('form, [role="dialog"]') as HTMLElement | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the actual input element from a potentially custom element.
|
||||
* This handles any element with shadow DOM containing input elements.
|
||||
* @param element The element to check (could be a custom element or regular input)
|
||||
* @returns The actual input element, or the original element if no nested input is found
|
||||
*/
|
||||
private getActualInputElement(element: HTMLElement): HTMLElement {
|
||||
// If it's already an input, return it
|
||||
if (element.tagName.toLowerCase() === 'input') {
|
||||
return element;
|
||||
}
|
||||
|
||||
// Check for shadow DOM input (generic approach)
|
||||
const elementWithShadow = element as HTMLElement & { shadowRoot?: ShadowRoot };
|
||||
if (elementWithShadow.shadowRoot) {
|
||||
const shadowInput = elementWithShadow.shadowRoot.querySelector('input, textarea') as HTMLElement;
|
||||
if (shadowInput) {
|
||||
return shadowInput;
|
||||
}
|
||||
}
|
||||
|
||||
// Check for regular child input (non-shadow DOM)
|
||||
const childInput = element.querySelector('input, textarea') as HTMLElement;
|
||||
if (childInput) {
|
||||
return childInput;
|
||||
}
|
||||
|
||||
// Return the original element if no nested input found
|
||||
return element;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if an element and all its parents are visible.
|
||||
* This checks for display:none, visibility:hidden, and opacity:0
|
||||
@@ -257,10 +288,32 @@ export class FormDetector {
|
||||
types: string[],
|
||||
excludeElements: HTMLInputElement[] = []
|
||||
): HTMLInputElement[] {
|
||||
// Query for both standard input elements and any element with a type attribute
|
||||
const candidates = form
|
||||
? form.querySelectorAll<HTMLElement>('input, select, [type]')
|
||||
: this.document.querySelectorAll<HTMLElement>('input, select, [type]');
|
||||
// Query for standard input elements, select elements, and elements with type attributes
|
||||
const standardCandidates = form
|
||||
? Array.from(form.querySelectorAll<HTMLElement>('input, select, [type]'))
|
||||
: Array.from(this.document.querySelectorAll<HTMLElement>('input, select, [type]'));
|
||||
|
||||
/**
|
||||
* Also find any custom elements that might contain shadow DOM inputs
|
||||
* Look for elements with shadow roots that contain input elements
|
||||
*/
|
||||
const allElements = form
|
||||
? Array.from(form.querySelectorAll<HTMLElement>('*'))
|
||||
: Array.from(this.document.querySelectorAll<HTMLElement>('*'));
|
||||
|
||||
const shadowDOMCandidates = allElements.filter(el => {
|
||||
// Check if element has shadow DOM with input elements
|
||||
const elementWithShadow = el as HTMLElement & { shadowRoot?: ShadowRoot };
|
||||
if (elementWithShadow.shadowRoot) {
|
||||
const shadowInput = elementWithShadow.shadowRoot.querySelector('input, textarea');
|
||||
return shadowInput !== null;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
// Combine and deduplicate candidates
|
||||
const allCandidates = [...standardCandidates, ...shadowDOMCandidates];
|
||||
const candidates = allCandidates.filter((el, index, arr) => arr.indexOf(el) === index);
|
||||
|
||||
const matches: { input: HTMLInputElement; score: number }[] = [];
|
||||
|
||||
@@ -274,12 +327,32 @@ export class FormDetector {
|
||||
}
|
||||
|
||||
// Get type from either the element's type property or its type attribute
|
||||
const type = input.tagName.toLowerCase() === 'select'
|
||||
const tagName = input.tagName.toLowerCase();
|
||||
let type = tagName === 'select'
|
||||
? 'select'
|
||||
: (input as HTMLInputElement).type?.toLowerCase() || input.getAttribute('type')?.toLowerCase() || '';
|
||||
|
||||
// Check if element has shadow DOM with input elements (generic detection)
|
||||
const elementWithShadow = input as HTMLElement & { shadowRoot?: ShadowRoot };
|
||||
const hasShadowDOMInput = elementWithShadow.shadowRoot &&
|
||||
elementWithShadow.shadowRoot.querySelector('input, textarea');
|
||||
|
||||
// For elements with shadow DOM, get the type from the actual input inside
|
||||
if (hasShadowDOMInput && !type) {
|
||||
const shadowInput = elementWithShadow.shadowRoot!.querySelector('input, textarea') as HTMLInputElement;
|
||||
if (shadowInput) {
|
||||
type = shadowInput.type?.toLowerCase() || 'text';
|
||||
}
|
||||
}
|
||||
|
||||
// Check if this element should be considered based on type matching
|
||||
if (!types.includes(type)) {
|
||||
continue;
|
||||
// For shadow DOM elements, allow if we're looking for text and it contains an input
|
||||
if (hasShadowDOMInput && types.includes('text') && !type) {
|
||||
// This is a shadow DOM element without explicit type, treat as text input
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (types.includes('email') && type === 'email') {
|
||||
@@ -303,6 +376,34 @@ export class FormDetector {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check for slot-based labels (e.g., <span slot="label">Email or username</span>)
|
||||
* Look for slot elements within the input's parent hierarchy
|
||||
*/
|
||||
let slotParent: HTMLElement | null = input;
|
||||
for (let depth = 0; depth < 3 && slotParent; depth++) {
|
||||
const slotElements = slotParent.querySelectorAll('[slot="label"], [slot="helper-text"]');
|
||||
for (const slotEl of Array.from(slotElements)) {
|
||||
const slotText = slotEl.textContent?.toLowerCase() ?? '';
|
||||
if (slotText) {
|
||||
attributesToCheck.push(slotText);
|
||||
}
|
||||
}
|
||||
/** Also check if the parent itself is a custom element with slots */
|
||||
if (slotParent.shadowRoot) {
|
||||
const shadowSlots = slotParent.shadowRoot.querySelectorAll('slot[name="label"], slot[name="helper-text"]');
|
||||
for (const slot of Array.from(shadowSlots)) {
|
||||
const assignedNodes = (slot as HTMLSlotElement).assignedNodes();
|
||||
for (const node of assignedNodes) {
|
||||
if (node.textContent) {
|
||||
attributesToCheck.push(node.textContent.toLowerCase());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
slotParent = slotParent.parentElement;
|
||||
}
|
||||
|
||||
// Check for sibling elements with class containing "label"
|
||||
const parent = input.parentElement;
|
||||
if (parent) {
|
||||
@@ -631,21 +732,34 @@ export class FormDetector {
|
||||
// Check if it's a username, email or password field by reusing the existing detection logic
|
||||
const formWrapper = this.getFormWrapper();
|
||||
|
||||
// Check if the clicked element is a username field.
|
||||
if (!this.clickedElement) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Get the actual input element (handles shadow DOM)
|
||||
const actualElement = this.getActualInputElement(this.clickedElement);
|
||||
|
||||
// Check both the clicked element and the actual input element
|
||||
const elementsToCheck = [this.clickedElement, actualElement].filter((el, index, arr) =>
|
||||
el && arr.indexOf(el) === index // Remove duplicates
|
||||
);
|
||||
|
||||
// Check if any of the elements is a username field
|
||||
const usernameFields = this.findAllInputFields(formWrapper as HTMLFormElement | null, CombinedFieldPatterns.username, ['text']);
|
||||
if (usernameFields.some(input => input === this.clickedElement)) {
|
||||
if (usernameFields.some(input => elementsToCheck.includes(input))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Check if the clicked element is a password field.
|
||||
// Check if any of the elements is a password field
|
||||
const passwordField = this.findPasswordField(formWrapper as HTMLFormElement | null);
|
||||
if (passwordField.primary === this.clickedElement || passwordField.confirm === this.clickedElement) {
|
||||
if ((passwordField.primary && elementsToCheck.includes(passwordField.primary)) ||
|
||||
(passwordField.confirm && elementsToCheck.includes(passwordField.confirm))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Check if the clicked element is an email field.
|
||||
// Check if any of the elements is an email field
|
||||
const emailFields = this.findAllInputFields(formWrapper as HTMLFormElement | null, CombinedFieldPatterns.email, ['text', 'email']);
|
||||
if (emailFields.some(input => input === this.clickedElement)) {
|
||||
if (emailFields.some(input => elementsToCheck.includes(input))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,10 +2,13 @@ import { Gender, IdentityHelperUtils } from "@/utils/dist/shared/identity-genera
|
||||
import type { Credential } from "@/utils/dist/shared/models/vault";
|
||||
import { CombinedDateOptionPatterns, CombinedGenderOptionPatterns } from "@/utils/formDetector/FieldPatterns";
|
||||
import { FormFields } from "@/utils/formDetector/types/FormFields";
|
||||
import { ClickValidator } from "@/utils/security/ClickValidator";
|
||||
/**
|
||||
* Class to fill the fields of a form with the given credential.
|
||||
*/
|
||||
export class FormFiller {
|
||||
private readonly clickValidator = ClickValidator.getInstance();
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
@@ -23,19 +26,257 @@ export class FormFiller {
|
||||
* Fill the fields of the form with the given credential.
|
||||
* @param credential The credential to fill the form with.
|
||||
*/
|
||||
public fillFields(credential: Credential): void {
|
||||
public async fillFields(credential: Credential): Promise<void> {
|
||||
// Perform security validation before filling any fields
|
||||
if (!await this.validateFormSecurity()) {
|
||||
console.warn('[AliasVault Security] Autofill blocked due to security validation failure');
|
||||
return;
|
||||
}
|
||||
|
||||
this.fillBasicFields(credential);
|
||||
this.fillBirthdateFields(credential);
|
||||
this.fillGenderFields(credential);
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate form security to prevent autofill in potential clickjacking scenarios.
|
||||
* This method checks for various attack vectors including:
|
||||
* - Page-wide opacity manipulation
|
||||
* - Form field obstruction via overlays
|
||||
* - Suspicious element positioning
|
||||
* - Multiple forms with identical fields (potential decoy attacks)
|
||||
*/
|
||||
private async validateFormSecurity(): Promise<boolean> {
|
||||
try {
|
||||
// Skip security validation in test environments where browser APIs may not be available
|
||||
if (typeof window === 'undefined' || typeof MouseEvent === 'undefined') {
|
||||
return true;
|
||||
}
|
||||
|
||||
// 1. Check page-wide security using ClickValidator (detects body/HTML opacity tricks)
|
||||
const dummyEvent = new MouseEvent('click', {
|
||||
bubbles: true,
|
||||
cancelable: true,
|
||||
clientX: window.innerWidth / 2,
|
||||
clientY: window.innerHeight / 2
|
||||
});
|
||||
// Note: isTrusted is read-only and set by the browser
|
||||
|
||||
if (!await this.clickValidator.validateClick(dummyEvent)) {
|
||||
console.warn('[AliasVault Security] Form autofill blocked: Page-wide attack detected');
|
||||
return false;
|
||||
}
|
||||
|
||||
// 2. Check form field obstruction and positioning
|
||||
const formFields = this.getAllFormFields();
|
||||
for (const field of formFields) {
|
||||
if (!this.validateFieldSecurity(field)) {
|
||||
console.warn('[AliasVault Security] Form autofill blocked: Field obstruction detected', field);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// 3. Check for suspicious form duplication (decoy attack)
|
||||
if (this.detectDecoyForms()) {
|
||||
console.warn('[AliasVault Security] Form autofill blocked: Multiple suspicious forms detected');
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
} catch (error) {
|
||||
console.error('[AliasVault Security] Form security validation error:', error);
|
||||
return false; // Fail safely - block autofill if validation fails
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all form fields that will be filled.
|
||||
*/
|
||||
private getAllFormFields(): HTMLElement[] {
|
||||
const fields: HTMLElement[] = [];
|
||||
|
||||
if (this.form.usernameField) {
|
||||
fields.push(this.form.usernameField);
|
||||
}
|
||||
if (this.form.passwordField) {
|
||||
fields.push(this.form.passwordField);
|
||||
}
|
||||
if (this.form.passwordConfirmField) {
|
||||
fields.push(this.form.passwordConfirmField);
|
||||
}
|
||||
if (this.form.emailField) {
|
||||
fields.push(this.form.emailField);
|
||||
}
|
||||
if (this.form.emailConfirmField) {
|
||||
fields.push(this.form.emailConfirmField);
|
||||
}
|
||||
|
||||
return fields;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate individual field security to detect obstruction attacks.
|
||||
*/
|
||||
private validateFieldSecurity(field: HTMLElement): boolean {
|
||||
if (!field) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Skip field validation in test environments where browser APIs may not be available
|
||||
if (typeof window === 'undefined' || typeof document === 'undefined' || !document.elementsFromPoint) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const rect = field.getBoundingClientRect();
|
||||
const centerX = rect.left + rect.width / 2;
|
||||
const centerY = rect.top + rect.height / 2;
|
||||
|
||||
// Check if field is within viewport
|
||||
if (rect.width === 0 || rect.height === 0 ||
|
||||
centerX < 0 || centerY < 0 ||
|
||||
centerX > window.innerWidth || centerY > window.innerHeight) {
|
||||
console.warn('[AliasVault Security] Field outside viewport or zero-sized:', rect);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Use elementsFromPoint to check what's actually at the field center
|
||||
try {
|
||||
const elementsAtPoint = document.elementsFromPoint(centerX, centerY);
|
||||
|
||||
if (elementsAtPoint.length === 0) {
|
||||
console.warn('[AliasVault Security] No elements found at field center');
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check if our field is in the element stack (or its parents/children)
|
||||
const fieldFound = elementsAtPoint.some(element =>
|
||||
element === field ||
|
||||
field.contains(element) ||
|
||||
element.contains(field)
|
||||
);
|
||||
|
||||
if (!fieldFound) {
|
||||
console.warn('[AliasVault Security] Field is obstructed by other elements');
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check for suspicious covering elements
|
||||
const suspiciousCovering = elementsAtPoint.slice(0, 3).some(element => {
|
||||
if (element === field || field.contains(element) || element.contains(field)) {
|
||||
return false; // This is our field or related element
|
||||
}
|
||||
|
||||
const style = getComputedStyle(element);
|
||||
|
||||
// Check for nearly transparent overlays
|
||||
const opacity = parseFloat(style.opacity);
|
||||
if (opacity > 0 && opacity < 0.1) {
|
||||
console.warn('[AliasVault Security] Nearly transparent overlay detected:', element);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Check for high z-index elements (potential overlays)
|
||||
const zIndex = parseInt(style.zIndex) || 0;
|
||||
if (zIndex > 1000000) {
|
||||
console.warn('[AliasVault Security] Suspicious high z-index element:', element, zIndex);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Check for elements covering large areas (potential clickjacking overlays)
|
||||
const elementRect = element.getBoundingClientRect();
|
||||
if (elementRect.width >= window.innerWidth * 0.8 &&
|
||||
elementRect.height >= window.innerHeight * 0.8) {
|
||||
console.warn('[AliasVault Security] Large covering element detected:', element);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
return !suspiciousCovering;
|
||||
} catch (error) {
|
||||
console.warn('[AliasVault Security] Field validation error:', error);
|
||||
return false; // Fail safely
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Detect potential decoy forms (multiple forms with similar fields).
|
||||
*/
|
||||
private detectDecoyForms(): boolean {
|
||||
try {
|
||||
// Find all forms on the page
|
||||
const allForms = Array.from(document.querySelectorAll('form'));
|
||||
|
||||
if (allForms.length <= 1) {
|
||||
return false; // Only one form, no decoy risk
|
||||
}
|
||||
|
||||
let suspiciousFormCount = 0;
|
||||
|
||||
for (const form of allForms) {
|
||||
const hasPasswordField = form.querySelector('input[type="password"]');
|
||||
const hasEmailField = form.querySelector('input[type="email"], input[name*="email" i], input[placeholder*="email" i]');
|
||||
const hasUsernameField = form.querySelector('input[type="text"], input[name*="user" i], input[placeholder*="user" i]');
|
||||
|
||||
// Count forms with login-like patterns
|
||||
if (hasPasswordField && (hasEmailField || hasUsernameField)) {
|
||||
const formRect = form.getBoundingClientRect();
|
||||
const isVisible = formRect.width > 0 && formRect.height > 0;
|
||||
|
||||
if (isVisible) {
|
||||
suspiciousFormCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// If more than 2 visible login forms, it's suspicious
|
||||
if (suspiciousFormCount > 2) {
|
||||
console.warn('[AliasVault Security] Multiple login forms detected:', suspiciousFormCount);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
} catch (error) {
|
||||
console.warn('[AliasVault Security] Decoy form detection error:', error);
|
||||
return false; // Don't block on detection errors
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set value on an input element, handling both regular inputs and custom elements with shadow DOM.
|
||||
* @param element The element to set the value on
|
||||
* @param value The value to set
|
||||
*/
|
||||
private setElementValue(element: HTMLInputElement | HTMLSelectElement, value: string): void {
|
||||
// Try to set value directly on the element
|
||||
element.value = value;
|
||||
|
||||
// If it's a custom element with shadow DOM, try to find and fill the actual input
|
||||
if (element.shadowRoot) {
|
||||
const shadowInput = element.shadowRoot.querySelector('input, textarea') as HTMLInputElement;
|
||||
if (shadowInput) {
|
||||
shadowInput.value = value;
|
||||
// Trigger events on the shadow input as well
|
||||
this.triggerInputEvents(shadowInput, false);
|
||||
}
|
||||
}
|
||||
|
||||
// Also check if the element contains a regular child input (non-shadow DOM)
|
||||
const childInput = element.querySelector('input, textarea') as HTMLInputElement;
|
||||
if (childInput && childInput !== element) {
|
||||
childInput.value = value;
|
||||
this.triggerInputEvents(childInput, false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Fill the basic fields of the form.
|
||||
* @param credential The credential to fill the form with.
|
||||
*/
|
||||
private fillBasicFields(credential: Credential): void {
|
||||
if (this.form.usernameField && credential.Username) {
|
||||
this.form.usernameField.value = credential.Username;
|
||||
this.setElementValue(this.form.usernameField, credential.Username);
|
||||
this.triggerInputEvents(this.form.usernameField);
|
||||
}
|
||||
|
||||
@@ -49,7 +290,7 @@ export class FormFiller {
|
||||
|
||||
if (this.form.emailField && (credential.Alias?.Email !== undefined || credential.Username !== undefined)) {
|
||||
if (credential.Alias?.Email) {
|
||||
this.form.emailField.value = credential.Alias.Email;
|
||||
this.setElementValue(this.form.emailField, credential.Alias.Email);
|
||||
this.triggerInputEvents(this.form.emailField);
|
||||
} else if (credential.Username && !this.form.usernameField) {
|
||||
/*
|
||||
@@ -62,28 +303,28 @@ export class FormFiller {
|
||||
* from a previous password manager that only had username/password fields
|
||||
* or where the user manually created a credential with only a username/password.
|
||||
*/
|
||||
this.form.emailField.value = credential.Username;
|
||||
this.setElementValue(this.form.emailField, credential.Username);
|
||||
this.triggerInputEvents(this.form.emailField);
|
||||
}
|
||||
}
|
||||
|
||||
if (this.form.emailConfirmField && credential.Alias?.Email) {
|
||||
this.form.emailConfirmField.value = credential.Alias.Email;
|
||||
this.setElementValue(this.form.emailConfirmField, credential.Alias.Email);
|
||||
this.triggerInputEvents(this.form.emailConfirmField);
|
||||
}
|
||||
|
||||
if (this.form.fullNameField && credential.Alias?.FirstName && credential.Alias?.LastName) {
|
||||
this.form.fullNameField.value = `${credential.Alias.FirstName} ${credential.Alias.LastName}`;
|
||||
this.setElementValue(this.form.fullNameField, `${credential.Alias.FirstName} ${credential.Alias.LastName}`);
|
||||
this.triggerInputEvents(this.form.fullNameField);
|
||||
}
|
||||
|
||||
if (this.form.firstNameField && credential.Alias?.FirstName) {
|
||||
this.form.firstNameField.value = credential.Alias.FirstName;
|
||||
this.setElementValue(this.form.firstNameField, credential.Alias.FirstName);
|
||||
this.triggerInputEvents(this.form.firstNameField);
|
||||
}
|
||||
|
||||
if (this.form.lastNameField && credential.Alias?.LastName) {
|
||||
this.form.lastNameField.value = credential.Alias.LastName;
|
||||
this.setElementValue(this.form.lastNameField, credential.Alias.LastName);
|
||||
this.triggerInputEvents(this.form.lastNameField);
|
||||
}
|
||||
}
|
||||
@@ -91,25 +332,56 @@ export class FormFiller {
|
||||
/**
|
||||
* Fill the password field with the given password. This uses a small delay between each character to simulate human typing.
|
||||
* Simulates actual keystroke behavior by appending characters one by one.
|
||||
* Supports both regular inputs and custom elements with shadow DOM.
|
||||
*
|
||||
* @param field The password field to fill.
|
||||
* @param password The password to fill the field with.
|
||||
*/
|
||||
private async fillPasswordField(field: HTMLInputElement, password: string): Promise<void> {
|
||||
// Find the actual input element (could be in shadow DOM)
|
||||
let actualInput = field;
|
||||
let isCustomElement = false;
|
||||
|
||||
// Check for shadow DOM input
|
||||
if (field.shadowRoot) {
|
||||
const shadowInput = field.shadowRoot.querySelector('input[type="password"], input') as HTMLInputElement;
|
||||
if (shadowInput) {
|
||||
actualInput = shadowInput;
|
||||
isCustomElement = true;
|
||||
}
|
||||
} else if (field.tagName.toLowerCase() !== 'input') {
|
||||
// Check for child input (non-shadow DOM) only if field is not already an input
|
||||
const childInput = field.querySelector('input[type="password"], input') as HTMLInputElement;
|
||||
if (childInput) {
|
||||
actualInput = childInput;
|
||||
isCustomElement = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Clear the field first
|
||||
field.value = '';
|
||||
this.triggerInputEvents(field, true);
|
||||
actualInput.value = '';
|
||||
if (isCustomElement) {
|
||||
field.value = '';
|
||||
}
|
||||
this.triggerInputEvents(actualInput, true);
|
||||
|
||||
// Type each character with a small delay
|
||||
for (const char of password) {
|
||||
// Append the character to the current value instead of using substring
|
||||
field.value += char;
|
||||
// Append the character to the actual input
|
||||
actualInput.value += char;
|
||||
if (isCustomElement) {
|
||||
// Also update the custom element's value property for compatibility
|
||||
field.value += char;
|
||||
}
|
||||
// Small random delay between 5-15ms to simulate human typing
|
||||
this.triggerInputEvents(field, false);
|
||||
this.triggerInputEvents(actualInput, false);
|
||||
await new Promise(resolve => setTimeout(resolve, Math.random() * 10 + 5));
|
||||
}
|
||||
|
||||
this.triggerInputEvents(field, false);
|
||||
this.triggerInputEvents(actualInput, false);
|
||||
if (isCustomElement) {
|
||||
this.triggerInputEvents(field, false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -266,13 +538,13 @@ export class FormFiller {
|
||||
private fillGenderFields(credential: Credential): void {
|
||||
switch (this.form.genderField.type) {
|
||||
case 'select':
|
||||
this.fillGenderSelect(credential.Alias.Gender);
|
||||
this.fillGenderSelect(credential.Alias.Gender as Gender | undefined);
|
||||
break;
|
||||
case 'radio':
|
||||
this.fillGenderRadio(credential.Alias.Gender);
|
||||
this.fillGenderRadio(credential.Alias.Gender as Gender | undefined);
|
||||
break;
|
||||
case 'text':
|
||||
this.fillGenderText(credential.Alias.Gender);
|
||||
this.fillGenderText(credential.Alias.Gender as Gender | undefined);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,273 @@
|
||||
import { JSDOM } from 'jsdom';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
import { FormDetector } from '../FormDetector';
|
||||
|
||||
describe('FormDetector Shadow DOM tests', () => {
|
||||
it('should detect faceplate-text-input with actual shadow DOM as autofill triggerable field', () => {
|
||||
const html = `
|
||||
<form>
|
||||
<fieldset>
|
||||
<faceplate-text-input id="login-username" name="username" autocomplete="username" required="">
|
||||
<span slot="label">Email or username</span>
|
||||
</faceplate-text-input>
|
||||
</fieldset>
|
||||
</form>
|
||||
`;
|
||||
|
||||
const dom = new JSDOM(html, {
|
||||
url: 'http://localhost',
|
||||
runScripts: 'dangerously',
|
||||
resources: 'usable'
|
||||
});
|
||||
const document = dom.window.document;
|
||||
|
||||
// Get the custom element
|
||||
const faceplateElement = document.getElementById('login-username');
|
||||
expect(faceplateElement).toBeTruthy();
|
||||
expect(faceplateElement?.tagName.toLowerCase()).toBe('faceplate-text-input');
|
||||
|
||||
// Create shadow DOM like Reddit's actual implementation
|
||||
const shadowRoot = faceplateElement!.attachShadow({ mode: 'open' });
|
||||
|
||||
// Create the internal input element that would exist in the shadow DOM
|
||||
const shadowHTML = `
|
||||
<div class="faceplate-input-wrapper">
|
||||
<input type="text" name="username" autocomplete="username" class="faceplate-input" />
|
||||
<slot name="label"></slot>
|
||||
</div>
|
||||
`;
|
||||
shadowRoot.innerHTML = shadowHTML;
|
||||
|
||||
// Verify shadow DOM was created correctly
|
||||
const shadowInput = shadowRoot.querySelector('input');
|
||||
expect(shadowInput).toBeTruthy();
|
||||
expect(shadowInput?.type).toBe('text');
|
||||
|
||||
// Create a FormDetector with the custom element
|
||||
const detector = new FormDetector(document, faceplateElement as HTMLElement);
|
||||
|
||||
// Should detect it as an autofill triggerable field
|
||||
expect(detector.isAutofillTriggerableField()).toBe(true);
|
||||
});
|
||||
|
||||
it('should detect faceplate-text-input with type attribute fallback as autofill triggerable field', () => {
|
||||
const html = `
|
||||
<form>
|
||||
<fieldset>
|
||||
<faceplate-text-input id="login-username" type="text" name="username" autocomplete="username" required="">
|
||||
<span slot="label">Email or username</span>
|
||||
</faceplate-text-input>
|
||||
</fieldset>
|
||||
</form>
|
||||
`;
|
||||
|
||||
const dom = new JSDOM(html, {
|
||||
url: 'http://localhost',
|
||||
runScripts: 'dangerously',
|
||||
resources: 'usable'
|
||||
});
|
||||
const document = dom.window.document;
|
||||
|
||||
// Get the custom element
|
||||
const faceplateElement = document.getElementById('login-username');
|
||||
expect(faceplateElement).toBeTruthy();
|
||||
expect(faceplateElement?.tagName.toLowerCase()).toBe('faceplate-text-input');
|
||||
|
||||
// Create a FormDetector with the custom element (without shadow DOM for this test)
|
||||
const detector = new FormDetector(document, faceplateElement as HTMLElement);
|
||||
|
||||
// Should detect it as an autofill triggerable field using type attribute
|
||||
expect(detector.isAutofillTriggerableField()).toBe(true);
|
||||
});
|
||||
|
||||
it('should detect faceplate-text-input with password shadow DOM as triggerable field', () => {
|
||||
const html = `
|
||||
<form>
|
||||
<fieldset>
|
||||
<faceplate-text-input id="login-password" name="password" autocomplete="current-password">
|
||||
<span slot="label">Password</span>
|
||||
</faceplate-text-input>
|
||||
</fieldset>
|
||||
</form>
|
||||
`;
|
||||
|
||||
const dom = new JSDOM(html, {
|
||||
url: 'http://localhost',
|
||||
runScripts: 'dangerously',
|
||||
resources: 'usable'
|
||||
});
|
||||
const document = dom.window.document;
|
||||
|
||||
const faceplateElement = document.getElementById('login-password');
|
||||
|
||||
// Create shadow DOM with password input (like Reddit's actual implementation)
|
||||
const shadowRoot = faceplateElement!.attachShadow({ mode: 'open' });
|
||||
const shadowHTML = `
|
||||
<div class="faceplate-input-wrapper">
|
||||
<input type="password" name="password" autocomplete="current-password" class="faceplate-input" />
|
||||
<slot name="label"></slot>
|
||||
</div>
|
||||
`;
|
||||
shadowRoot.innerHTML = shadowHTML;
|
||||
|
||||
// Verify shadow DOM password input
|
||||
const shadowInput = shadowRoot.querySelector('input');
|
||||
expect(shadowInput?.type).toBe('password');
|
||||
|
||||
const detector = new FormDetector(document, faceplateElement as HTMLElement);
|
||||
|
||||
expect(detector.isAutofillTriggerableField()).toBe(true);
|
||||
});
|
||||
|
||||
it('should detect custom element with email type as triggerable field', () => {
|
||||
const html = `
|
||||
<form>
|
||||
<custom-input id="email-field" type="email" name="email">
|
||||
<span slot="label">Email Address</span>
|
||||
</custom-input>
|
||||
</form>
|
||||
`;
|
||||
|
||||
const dom = new JSDOM(html, {
|
||||
url: 'http://localhost',
|
||||
runScripts: 'dangerously',
|
||||
resources: 'usable'
|
||||
});
|
||||
const document = dom.window.document;
|
||||
|
||||
const customElement = document.getElementById('email-field');
|
||||
const detector = new FormDetector(document, customElement as HTMLElement);
|
||||
|
||||
expect(detector.isAutofillTriggerableField()).toBe(true);
|
||||
});
|
||||
|
||||
it('should not detect non-input custom elements as triggerable fields', () => {
|
||||
const html = `
|
||||
<form>
|
||||
<custom-button id="submit-btn" type="button">
|
||||
<span>Submit</span>
|
||||
</custom-button>
|
||||
</form>
|
||||
`;
|
||||
|
||||
const dom = new JSDOM(html, {
|
||||
url: 'http://localhost',
|
||||
runScripts: 'dangerously',
|
||||
resources: 'usable'
|
||||
});
|
||||
const document = dom.window.document;
|
||||
|
||||
const customButton = document.getElementById('submit-btn');
|
||||
const detector = new FormDetector(document, customButton as HTMLElement);
|
||||
|
||||
expect(detector.isAutofillTriggerableField()).toBe(false);
|
||||
});
|
||||
|
||||
it('should handle real Reddit-like login form with shadow DOM', () => {
|
||||
const html = `
|
||||
<form>
|
||||
<fieldset class="relative mt-0 mb-0 ml-0 mr-0 p-0 border-0 flex flex-col flex-grow bg-transparent">
|
||||
<faceplate-text-input id="login-username" name="username" autocomplete="username" required=""
|
||||
helper-text-placeholder=" " aria-disabled="false" helper-text-aria-live="polite"
|
||||
appearance="secondary" faceplate-validity="invalid">
|
||||
<span slot="label">Email or username</span>
|
||||
</faceplate-text-input>
|
||||
</fieldset>
|
||||
<fieldset class="relative mt-0 mb-0 ml-0 mr-0 p-0 border-0 flex flex-col flex-grow bg-transparent">
|
||||
<faceplate-text-input id="login-password" name="password" autocomplete="current-password" required=""
|
||||
helper-text-placeholder=" " aria-disabled="false" helper-text-aria-live="polite"
|
||||
appearance="secondary">
|
||||
<span slot="label">Password</span>
|
||||
</faceplate-text-input>
|
||||
</fieldset>
|
||||
</form>
|
||||
`;
|
||||
|
||||
const dom = new JSDOM(html, {
|
||||
url: 'http://localhost',
|
||||
runScripts: 'dangerously',
|
||||
resources: 'usable'
|
||||
});
|
||||
const document = dom.window.document;
|
||||
|
||||
// Set up shadow DOM for username field (no type attribute, just like Reddit)
|
||||
const usernameElement = document.getElementById('login-username');
|
||||
const usernameShadowRoot = usernameElement!.attachShadow({ mode: 'open' });
|
||||
usernameShadowRoot.innerHTML = `
|
||||
<div class="faceplate-input-wrapper">
|
||||
<input type="text" name="username" autocomplete="username" class="faceplate-input" />
|
||||
<slot name="label"></slot>
|
||||
<div class="faceplate-input-decorations"></div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
// Set up shadow DOM for password field (no type attribute, just like Reddit)
|
||||
const passwordElement = document.getElementById('login-password');
|
||||
const passwordShadowRoot = passwordElement!.attachShadow({ mode: 'open' });
|
||||
passwordShadowRoot.innerHTML = `
|
||||
<div class="faceplate-input-wrapper">
|
||||
<input type="password" name="password" autocomplete="current-password" class="faceplate-input" />
|
||||
<slot name="label"></slot>
|
||||
<div class="faceplate-input-decorations"></div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
// Test username field detection
|
||||
const usernameDetector = new FormDetector(document, usernameElement as HTMLElement);
|
||||
expect(usernameDetector.containsLoginForm()).toBe(true);
|
||||
expect(usernameDetector.isAutofillTriggerableField()).toBe(true);
|
||||
|
||||
// Test password field detection
|
||||
const passwordDetector = new FormDetector(document, passwordElement as HTMLElement);
|
||||
expect(passwordDetector.containsLoginForm()).toBe(true);
|
||||
expect(passwordDetector.isAutofillTriggerableField()).toBe(true);
|
||||
|
||||
// Test form extraction
|
||||
const form = usernameDetector.getForm();
|
||||
expect(form).toBeTruthy();
|
||||
|
||||
/**
|
||||
* The form should be able to detect both username and password fields
|
||||
* Note: Since the custom elements are now recognized, they should be included in the form detection
|
||||
*/
|
||||
expect(form?.form).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should handle custom elements in form detection with type attributes', () => {
|
||||
const html = `
|
||||
<form>
|
||||
<fieldset>
|
||||
<faceplate-text-input id="username-field" type="text" name="username">
|
||||
<span slot="label">Username</span>
|
||||
</faceplate-text-input>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<faceplate-text-input id="password-field" type="password" name="password">
|
||||
<span slot="label">Password</span>
|
||||
</faceplate-text-input>
|
||||
</fieldset>
|
||||
</form>
|
||||
`;
|
||||
|
||||
const dom = new JSDOM(html, {
|
||||
url: 'http://localhost',
|
||||
runScripts: 'dangerously',
|
||||
resources: 'usable'
|
||||
});
|
||||
const document = dom.window.document;
|
||||
|
||||
const usernameElement = document.getElementById('username-field');
|
||||
const detector = new FormDetector(document, usernameElement as HTMLElement);
|
||||
|
||||
// Should contain login form
|
||||
expect(detector.containsLoginForm()).toBe(true);
|
||||
|
||||
// Should detect the field as triggerable
|
||||
expect(detector.isAutofillTriggerableField()).toBe(true);
|
||||
|
||||
// Should be able to get form
|
||||
const form = detector.getForm();
|
||||
expect(form).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,160 @@
|
||||
import { JSDOM } from 'jsdom';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
import { FormDetector } from '../FormDetector';
|
||||
|
||||
import { FormField, testField } from './TestUtils';
|
||||
|
||||
describe('FormDetector Slot-based Form tests', () => {
|
||||
it('contains tests for slot-based form field detection', () => {
|
||||
/**
|
||||
* This test suite verifies that FormDetector can properly detect
|
||||
* form fields that use slot-based labels (Web Components pattern).
|
||||
* This is common in modern web applications using custom elements.
|
||||
*/
|
||||
expect(true).toBe(true);
|
||||
});
|
||||
|
||||
describe('Slot-based login form detection', () => {
|
||||
const htmlFile = 'slot-based-form.html';
|
||||
|
||||
testField(FormField.Username, 'login-username', htmlFile);
|
||||
testField(FormField.Password, 'login-password', htmlFile);
|
||||
testField(FormField.Email, 'email-field', htmlFile);
|
||||
testField(FormField.FirstName, 'firstname-field', htmlFile);
|
||||
testField(FormField.LastName, 'lastname-field', htmlFile);
|
||||
});
|
||||
|
||||
describe('Direct slot label detection', () => {
|
||||
it('should detect input field with slot label for username', () => {
|
||||
const html = `
|
||||
<form>
|
||||
<div>
|
||||
<input id="test-username" name="user" type="text" />
|
||||
<span slot="label">username</span>
|
||||
</div>
|
||||
</form>
|
||||
`;
|
||||
|
||||
const dom = new JSDOM(html, {
|
||||
url: 'http://localhost',
|
||||
runScripts: 'dangerously',
|
||||
resources: 'usable'
|
||||
});
|
||||
const document = dom.window.document;
|
||||
const inputElement = document.getElementById('test-username');
|
||||
|
||||
const detector = new FormDetector(document, inputElement as HTMLElement);
|
||||
const form = detector.getForm();
|
||||
|
||||
// Since the slot contains "username", it should be detected as a username field
|
||||
expect(form?.usernameField).toBe(inputElement);
|
||||
});
|
||||
|
||||
it('should detect email field with slot helper-text', () => {
|
||||
const html = `
|
||||
<form>
|
||||
<web-component id="test-email" type="email">
|
||||
<span slot="helper-text">Enter your email address</span>
|
||||
</web-component>
|
||||
</form>
|
||||
`;
|
||||
|
||||
const dom = new JSDOM(html, {
|
||||
url: 'http://localhost',
|
||||
runScripts: 'dangerously',
|
||||
resources: 'usable'
|
||||
});
|
||||
const document = dom.window.document;
|
||||
const inputElement = document.getElementById('test-email');
|
||||
|
||||
const detector = new FormDetector(document, inputElement as HTMLElement);
|
||||
const form = detector.getForm();
|
||||
|
||||
expect(form?.emailField).toBe(inputElement);
|
||||
});
|
||||
|
||||
it('should detect password field with nested slot label', () => {
|
||||
const html = `
|
||||
<form>
|
||||
<fieldset>
|
||||
<custom-password-input id="test-password" type="password">
|
||||
<div slot="label">
|
||||
<span>Your Password</span>
|
||||
</div>
|
||||
</custom-password-input>
|
||||
</fieldset>
|
||||
</form>
|
||||
`;
|
||||
|
||||
const dom = new JSDOM(html, {
|
||||
url: 'http://localhost',
|
||||
runScripts: 'dangerously',
|
||||
resources: 'usable'
|
||||
});
|
||||
const document = dom.window.document;
|
||||
const inputElement = document.getElementById('test-password');
|
||||
|
||||
const detector = new FormDetector(document, inputElement as HTMLElement);
|
||||
const form = detector.getForm();
|
||||
|
||||
expect(form?.passwordField).toBe(inputElement);
|
||||
});
|
||||
});
|
||||
|
||||
describe('Slot-based form with regular inputs', () => {
|
||||
it('should correctly identify input fields with slot labels', () => {
|
||||
const html = `
|
||||
<form>
|
||||
<div>
|
||||
<input id="email-input" type="email" name="email">
|
||||
<span slot="label">Email Address</span>
|
||||
</div>
|
||||
<div>
|
||||
<input id="pass-input" type="password" name="password">
|
||||
<span slot="label">Password</span>
|
||||
</div>
|
||||
<div>
|
||||
<input id="fname-input" type="text" name="fname">
|
||||
<span slot="label">First Name</span>
|
||||
</div>
|
||||
<div>
|
||||
<input id="lname-input" type="text" name="lname">
|
||||
<span slot="label">Last Name</span>
|
||||
</div>
|
||||
</form>
|
||||
`;
|
||||
|
||||
const dom = new JSDOM(html, {
|
||||
url: 'http://localhost',
|
||||
runScripts: 'dangerously',
|
||||
resources: 'usable'
|
||||
});
|
||||
const document = dom.window.document;
|
||||
|
||||
// Test email field detection
|
||||
const emailElement = document.getElementById('email-input');
|
||||
const emailDetector = new FormDetector(document, emailElement as HTMLElement);
|
||||
const emailForm = emailDetector.getForm();
|
||||
expect(emailForm?.emailField).toBe(emailElement);
|
||||
|
||||
// Test password field detection
|
||||
const passElement = document.getElementById('pass-input');
|
||||
const passDetector = new FormDetector(document, passElement as HTMLElement);
|
||||
const passForm = passDetector.getForm();
|
||||
expect(passForm?.passwordField).toBe(passElement);
|
||||
|
||||
// Test first name field detection
|
||||
const fnameElement = document.getElementById('fname-input');
|
||||
const fnameDetector = new FormDetector(document, fnameElement as HTMLElement);
|
||||
const fnameForm = fnameDetector.getForm();
|
||||
expect(fnameForm?.firstNameField).toBe(fnameElement);
|
||||
|
||||
// Test last name field detection
|
||||
const lnameElement = document.getElementById('lname-input');
|
||||
const lnameDetector = new FormDetector(document, lnameElement as HTMLElement);
|
||||
const lnameForm = lnameDetector.getForm();
|
||||
expect(lnameForm?.lastNameField).toBe(lnameElement);
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -29,7 +29,7 @@ describe('FormFiller English', () => {
|
||||
});
|
||||
|
||||
describe('fillBirthdateFields with English month names', () => {
|
||||
it('should fill separate fields with English month names', () => {
|
||||
it('should fill separate fields with English month names', async () => {
|
||||
const { daySelect, monthSelect, yearSelect } = createDateSelects(document);
|
||||
|
||||
// Add month options with English month names
|
||||
@@ -52,7 +52,7 @@ describe('FormFiller English', () => {
|
||||
year: yearSelect as unknown as HTMLInputElement
|
||||
};
|
||||
|
||||
formFiller.fillFields(mockCredential);
|
||||
await formFiller.fillFields(mockCredential);
|
||||
|
||||
expect(daySelect.value).toBe('03');
|
||||
expect(monthSelect.value).toBe('February');
|
||||
|
||||
@@ -29,17 +29,17 @@ describe('FormFiller', () => {
|
||||
});
|
||||
|
||||
describe('fillBasicFields', () => {
|
||||
it('should fill username', () => {
|
||||
formFiller.fillFields(mockCredential);
|
||||
it('should fill username', async () => {
|
||||
await formFiller.fillFields(mockCredential);
|
||||
|
||||
expect(formFields.usernameField?.value).toBe('testuser');
|
||||
expect(wasTriggerCalledFor(mockTriggerInputEvents, formFields.usernameField)).toBe(true);
|
||||
});
|
||||
|
||||
it('should fill email and confirmation fields', () => {
|
||||
it('should fill email and confirmation fields', async () => {
|
||||
formFields.emailConfirmField = document.createElement('input');
|
||||
|
||||
formFiller.fillFields(mockCredential);
|
||||
await formFiller.fillFields(mockCredential);
|
||||
|
||||
expect(formFields.emailField?.value).toBe('test@example.com');
|
||||
expect(formFields.emailConfirmField?.value).toBe('test@example.com');
|
||||
@@ -47,12 +47,12 @@ describe('FormFiller', () => {
|
||||
expect(wasTriggerCalledFor(mockTriggerInputEvents, formFields.emailConfirmField)).toBe(true);
|
||||
});
|
||||
|
||||
it('should use username as email when no email is provided and no username field exists', () => {
|
||||
it('should use username as email when no email is provided and no username field exists', async () => {
|
||||
// Create a credential with an empty email string
|
||||
const credentialWithoutEmail = { ...mockCredential, Alias: { ...mockCredential.Alias, Email: '' } };
|
||||
formFields.usernameField = null;
|
||||
|
||||
formFiller.fillFields(credentialWithoutEmail);
|
||||
await formFiller.fillFields(credentialWithoutEmail);
|
||||
|
||||
expect(formFields.emailField?.value).toBe('testuser');
|
||||
expect(wasTriggerCalledFor(mockTriggerInputEvents, formFields.emailField)).toBe(true);
|
||||
@@ -61,7 +61,7 @@ describe('FormFiller', () => {
|
||||
it('should fill password and confirmation fields', async () => {
|
||||
formFields.passwordConfirmField = document.createElement('input');
|
||||
|
||||
formFiller.fillFields(mockCredential);
|
||||
await formFiller.fillFields(mockCredential);
|
||||
|
||||
// Delay for 150ms to ensure the password field is filled as it uses a small delay between each character.
|
||||
await new Promise(resolve => setTimeout(resolve, 150));
|
||||
@@ -72,8 +72,8 @@ describe('FormFiller', () => {
|
||||
expect(wasTriggerCalledFor(mockTriggerInputEvents, formFields.passwordConfirmField)).toBe(true);
|
||||
});
|
||||
|
||||
it('should fill name fields correctly', () => {
|
||||
formFiller.fillFields(mockCredential);
|
||||
it('should fill name fields correctly', async () => {
|
||||
await formFiller.fillFields(mockCredential);
|
||||
|
||||
expect(formFields.fullNameField?.value).toBe('John Doe');
|
||||
expect(formFields.firstNameField?.value).toBe('John');
|
||||
@@ -85,38 +85,38 @@ describe('FormFiller', () => {
|
||||
});
|
||||
|
||||
describe('fillBirthdateFields', () => {
|
||||
it('should fill single birthdate field with correct format', () => {
|
||||
formFiller.fillFields(mockCredential);
|
||||
it('should fill single birthdate field with correct format', async () => {
|
||||
await formFiller.fillFields(mockCredential);
|
||||
|
||||
expect(formFields.birthdateField.single?.value).toBe('1991-02-03');
|
||||
expect(wasTriggerCalledFor(mockTriggerInputEvents, formFields.birthdateField.single)).toBe(true);
|
||||
});
|
||||
|
||||
it('should handle different date formats (mm/dd/yyyy)', () => {
|
||||
it('should handle different date formats (mm/dd/yyyy)', async () => {
|
||||
formFields.birthdateField.format = 'mm/dd/yyyy';
|
||||
formFiller.fillFields(mockCredential);
|
||||
await formFiller.fillFields(mockCredential);
|
||||
expect(formFields.birthdateField.single?.value).toBe('02/03/1991');
|
||||
});
|
||||
|
||||
it('should handle different date formats (dd/mm/yyyy)', () => {
|
||||
it('should handle different date formats (dd/mm/yyyy)', async () => {
|
||||
formFields.birthdateField.format = 'dd/mm/yyyy';
|
||||
formFiller.fillFields(mockCredential);
|
||||
await formFiller.fillFields(mockCredential);
|
||||
expect(formFields.birthdateField.single?.value).toBe('03/02/1991');
|
||||
});
|
||||
|
||||
it('should handle different date formats (dd-mm-yyyy)', () => {
|
||||
it('should handle different date formats (dd-mm-yyyy)', async () => {
|
||||
formFields.birthdateField.format = 'dd-mm-yyyy';
|
||||
formFiller.fillFields(mockCredential);
|
||||
await formFiller.fillFields(mockCredential);
|
||||
expect(formFields.birthdateField.single?.value).toBe('03-02-1991');
|
||||
});
|
||||
|
||||
it('should handle different date formats (mm-dd-yyyy)', () => {
|
||||
it('should handle different date formats (mm-dd-yyyy)', async () => {
|
||||
formFields.birthdateField.format = 'mm-dd-yyyy';
|
||||
formFiller.fillFields(mockCredential);
|
||||
await formFiller.fillFields(mockCredential);
|
||||
expect(formFields.birthdateField.single?.value).toBe('02-03-1991');
|
||||
});
|
||||
|
||||
it('should fill separate day/month/year select fields', () => {
|
||||
it('should fill separate day/month/year select fields', async () => {
|
||||
const { daySelect, monthSelect, yearSelect } = createDateSelects(document);
|
||||
|
||||
// Add month options (1-12)
|
||||
@@ -136,7 +136,7 @@ describe('FormFiller', () => {
|
||||
year: yearSelect as unknown as HTMLInputElement
|
||||
};
|
||||
|
||||
formFiller.fillFields(mockCredential);
|
||||
await formFiller.fillFields(mockCredential);
|
||||
|
||||
expect(daySelect.value).toBe('03');
|
||||
expect(monthSelect.value).toBe('02');
|
||||
@@ -148,7 +148,7 @@ describe('FormFiller', () => {
|
||||
});
|
||||
|
||||
describe('fillGenderFields', () => {
|
||||
it('should fill gender select field', () => {
|
||||
it('should fill gender select field', async () => {
|
||||
const selectElement = document.createElement('select');
|
||||
|
||||
// Add options using createElement
|
||||
@@ -167,13 +167,13 @@ describe('FormFiller', () => {
|
||||
field: selectElement
|
||||
};
|
||||
|
||||
formFiller.fillFields(mockCredential);
|
||||
await formFiller.fillFields(mockCredential);
|
||||
|
||||
expect(selectElement.value).toBe('m');
|
||||
expect(wasTriggerCalledFor(mockTriggerInputEvents, selectElement)).toBe(true);
|
||||
});
|
||||
|
||||
it('should handle radio button gender fields', () => {
|
||||
it('should handle radio button gender fields', async () => {
|
||||
const maleRadio = document.createElement('input');
|
||||
maleRadio.type = 'radio';
|
||||
const femaleRadio = document.createElement('input');
|
||||
@@ -189,7 +189,7 @@ describe('FormFiller', () => {
|
||||
}
|
||||
};
|
||||
|
||||
formFiller.fillFields(mockCredential);
|
||||
await formFiller.fillFields(mockCredential);
|
||||
|
||||
expect(maleRadio.checked).toBe(true);
|
||||
expect(femaleRadio.checked).toBe(false);
|
||||
|
||||
@@ -29,7 +29,7 @@ describe('FormFiller Dutch', () => {
|
||||
});
|
||||
|
||||
describe('fillBirthdateFields with Dutch month names', () => {
|
||||
it('should fill separate fields with Dutch month names', () => {
|
||||
it('should fill separate fields with Dutch month names', async () => {
|
||||
const { daySelect, monthSelect, yearSelect } = createDateSelects(document);
|
||||
|
||||
// Add month options with Dutch month names
|
||||
@@ -52,7 +52,7 @@ describe('FormFiller Dutch', () => {
|
||||
year: yearSelect as unknown as HTMLInputElement
|
||||
};
|
||||
|
||||
formFiller.fillFields(mockCredential);
|
||||
await formFiller.fillFields(mockCredential);
|
||||
|
||||
expect(daySelect.value).toBe('03');
|
||||
expect(monthSelect.value).toBe('Februari');
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Slot-based Login Form Test</title>
|
||||
</head>
|
||||
<body>
|
||||
<form>
|
||||
<fieldset class="relative mt-0 mb-0 ml-0 mr-0 p-0 border-0 flex flex-col flex-grow bg-transparent">
|
||||
<faceplate-text-input id="login-username" type="text" name="username" autocomplete="username" required="" helper-text-placeholder=" " aria-disabled="false" helper-text-aria-live="polite" appearance="secondary" faceplate-validity="invalid">
|
||||
<span slot="label">Email or username</span>
|
||||
</faceplate-text-input>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="relative mt-0 mb-0 ml-0 mr-0 p-0 border-0 flex flex-col flex-grow bg-transparent">
|
||||
<faceplate-text-input id="login-password" type="password" name="password" autocomplete="current-password" required="" helper-text-placeholder=" " aria-disabled="false" helper-text-aria-live="polite" appearance="secondary">
|
||||
<span slot="label">Password</span>
|
||||
</faceplate-text-input>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="relative mt-0 mb-0 ml-0 mr-0 p-0 border-0 flex flex-col flex-grow bg-transparent">
|
||||
<custom-input-element id="email-field" type="email" name="email" required="">
|
||||
<span slot="label">Email address</span>
|
||||
<span slot="helper-text">We'll never share your email</span>
|
||||
</custom-input-element>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="relative mt-0 mb-0 ml-0 mr-0 p-0 border-0 flex flex-col flex-grow bg-transparent">
|
||||
<web-component-input id="firstname-field" type="text" name="first_name">
|
||||
<span slot="label">First name</span>
|
||||
</web-component-input>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="relative mt-0 mb-0 ml-0 mr-0 p-0 border-0 flex flex-col flex-grow bg-transparent">
|
||||
<web-component-input id="lastname-field" type="text" name="last_name">
|
||||
<span slot="label">Last name</span>
|
||||
</web-component-input>
|
||||
</fieldset>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
133
apps/browser-extension/src/utils/security/ClickValidator.ts
Normal file
133
apps/browser-extension/src/utils/security/ClickValidator.ts
Normal file
@@ -0,0 +1,133 @@
|
||||
/**
|
||||
* ClickValidator - Simplified click validation system for content script security
|
||||
*
|
||||
* Validates user clicks with focus on content script shadow DOM scenarios:
|
||||
* - Detection of page-wide opacity tricks on BODY/HTML
|
||||
* - Basic gesture authenticity validation
|
||||
*/
|
||||
export class ClickValidator {
|
||||
private static instance: ClickValidator | null = null;
|
||||
|
||||
/**
|
||||
* Get or create singleton instance
|
||||
*/
|
||||
public static getInstance(): ClickValidator {
|
||||
if (!ClickValidator.instance) {
|
||||
ClickValidator.instance = new ClickValidator();
|
||||
}
|
||||
return ClickValidator.instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate a click event (simplified for content scripts)
|
||||
*/
|
||||
public async validateClick(event: MouseEvent): Promise<boolean> {
|
||||
|
||||
try {
|
||||
// 1. Check for page-wide opacity tricks on BODY/HTML
|
||||
const opacityTrickResult = this.detectPageOpacityTricks();
|
||||
|
||||
if (opacityTrickResult.detected) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// 2. Basic gesture validation
|
||||
const gestureResult = this.validateGesture(event);
|
||||
|
||||
if (!gestureResult.valid) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
} catch (error) {
|
||||
console.error('[AliasVault Security] Click validation error:', error);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Detect page-wide opacity tricks on BODY/HTML elements
|
||||
*/
|
||||
private detectPageOpacityTricks(): { detected: boolean; reason?: string } {
|
||||
try {
|
||||
const html = document.documentElement;
|
||||
const body = document.body;
|
||||
|
||||
// Check HTML element opacity
|
||||
if (html) {
|
||||
const htmlStyle = getComputedStyle(html);
|
||||
const htmlOpacity = parseFloat(htmlStyle.opacity);
|
||||
|
||||
if (htmlOpacity < 0.9) {
|
||||
return {
|
||||
detected: true,
|
||||
reason: `HTML element opacity reduced to ${htmlOpacity} - potential clickjacking attempt`
|
||||
};
|
||||
}
|
||||
|
||||
// Check for CSS filters that could obscure content
|
||||
if (htmlStyle.filter && htmlStyle.filter !== 'none') {
|
||||
return {
|
||||
detected: true,
|
||||
reason: `HTML element has CSS filter applied: ${htmlStyle.filter} - potential visual manipulation`
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Check BODY element opacity
|
||||
if (body) {
|
||||
const bodyStyle = getComputedStyle(body);
|
||||
const bodyOpacity = parseFloat(bodyStyle.opacity);
|
||||
|
||||
if (bodyOpacity < 0.9) {
|
||||
return {
|
||||
detected: true,
|
||||
reason: `BODY element opacity reduced to ${bodyOpacity} - potential clickjacking attempt`
|
||||
};
|
||||
}
|
||||
|
||||
// Check for CSS filters on body
|
||||
if (bodyStyle.filter && bodyStyle.filter !== 'none') {
|
||||
return {
|
||||
detected: true,
|
||||
reason: `BODY element has CSS filter applied: ${bodyStyle.filter} - potential visual manipulation`
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
return { detected: false };
|
||||
} catch (error) {
|
||||
return {
|
||||
detected: true,
|
||||
reason: `Error checking page opacity: ${error}`
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate gesture characteristics for human-like behavior
|
||||
*/
|
||||
private validateGesture(event: MouseEvent): { valid: boolean; reason?: string } {
|
||||
// Check for basic gesture properties
|
||||
|
||||
// Mouse events should have reasonable coordinates
|
||||
if (event.clientX < 0 || event.clientY < 0 ||
|
||||
event.clientX > window.innerWidth || event.clientY > window.innerHeight) {
|
||||
return {
|
||||
valid: false,
|
||||
reason: 'Click coordinates outside viewport'
|
||||
};
|
||||
}
|
||||
|
||||
// Check for reasonable button values
|
||||
if (event.button !== 0) { // Only left-click should trigger credentials
|
||||
return {
|
||||
valid: false,
|
||||
reason: `Non-left-click detected: button ${event.button}`
|
||||
};
|
||||
}
|
||||
|
||||
return { valid: true };
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,286 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>ClickValidator Security Test - Clickjacking Attack Vectors</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 20px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.test-section {
|
||||
border: 2px solid #333;
|
||||
margin: 20px 0;
|
||||
padding: 20px;
|
||||
background: #f9f9f9;
|
||||
}
|
||||
.test-description {
|
||||
background: #fff3cd;
|
||||
border: 1px solid #ffeaa7;
|
||||
padding: 10px;
|
||||
margin-bottom: 15px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.attack-button {
|
||||
background: #dc3545;
|
||||
color: white;
|
||||
padding: 10px 20px;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
margin: 5px;
|
||||
}
|
||||
.legit-button {
|
||||
background: #28a745;
|
||||
color: white;
|
||||
padding: 10px 20px;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
margin: 5px;
|
||||
}
|
||||
.control-panel {
|
||||
position: fixed;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
background: rgba(0,0,0,0.8);
|
||||
color: white;
|
||||
padding: 15px;
|
||||
border-radius: 8px;
|
||||
z-index: 10000;
|
||||
}
|
||||
.control-panel button {
|
||||
display: block;
|
||||
margin: 5px 0;
|
||||
padding: 8px 12px;
|
||||
background: #007bff;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.input-field {
|
||||
width: 200px;
|
||||
padding: 8px;
|
||||
margin: 5px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* Attack Vector Styles */
|
||||
.body-opacity-attack {
|
||||
/* This will be applied dynamically */
|
||||
}
|
||||
|
||||
.overlay-attack {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(255, 255, 255, 0.01);
|
||||
z-index: 9999;
|
||||
pointer-events: auto;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.invisible-overlay {
|
||||
position: absolute;
|
||||
background: transparent;
|
||||
z-index: 1000;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.filter-attack {
|
||||
/* This will be applied dynamically */
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="control-panel">
|
||||
<h3>Attack Controls</h3>
|
||||
<button onclick="toggleBodyOpacity()">Toggle Body Opacity Attack</button>
|
||||
<button onclick="toggleHtmlOpacity()">Toggle HTML Opacity Attack</button>
|
||||
<button onclick="toggleCssFilter()">Toggle CSS Filter Attack</button>
|
||||
<button onclick="toggleInvisibleOverlay()">Toggle Invisible Overlay</button>
|
||||
<button onclick="simulateRapidClicks()">Simulate Rapid Clicks</button>
|
||||
<button onclick="simulatePreciseClicks()">Simulate Precise Clicks</button>
|
||||
<button onclick="triggerUntrustedEvent()">Trigger Untrusted Event</button>
|
||||
<button onclick="resetAllAttacks()">Reset All Attacks</button>
|
||||
</div>
|
||||
|
||||
<!-- Invisible overlay for clickjacking -->
|
||||
<div class="overlay-attack" id="invisibleOverlay"></div>
|
||||
|
||||
<h1>ClickValidator Security Test Suite</h1>
|
||||
<p>This page contains various clickjacking attack vectors to test the AliasVault ClickValidator security measures.</p>
|
||||
|
||||
<!-- Test Section 1: Body Opacity Attack -->
|
||||
<div class="test-section">
|
||||
<div class="test-description">
|
||||
<strong>Attack Vector 1: Body Opacity Reduction</strong><br>
|
||||
This attack reduces the body element's opacity to make the entire page semi-transparent, potentially hiding malicious overlays.
|
||||
</div>
|
||||
<input type="text" class="input-field" placeholder="Enter username..." />
|
||||
<input type="password" class="input-field" placeholder="Enter password..." />
|
||||
<button class="attack-button">Fill Credentials (Should be blocked when opacity < 0.9)</button>
|
||||
<button class="legit-button" onclick="logAction('Legitimate action')">Legitimate Action</button>
|
||||
</div>
|
||||
|
||||
<!-- Test Section 2: HTML Element Opacity Attack -->
|
||||
<div class="test-section">
|
||||
<div class="test-description">
|
||||
<strong>Attack Vector 2: HTML Element Opacity Reduction</strong><br>
|
||||
This attack reduces the HTML root element's opacity to make the entire document semi-transparent.
|
||||
</div>
|
||||
<input type="text" class="input-field" placeholder="Enter email..." />
|
||||
<button class="attack-button">Fill Email (Should be blocked when HTML opacity < 0.9)</button>
|
||||
<button class="legit-button" onclick="logAction('Legitimate HTML test')">Legitimate Action</button>
|
||||
</div>
|
||||
|
||||
<!-- Test Section 3: CSS Filter Attack -->
|
||||
<div class="test-section">
|
||||
<div class="test-description">
|
||||
<strong>Attack Vector 3: CSS Filter Manipulation</strong><br>
|
||||
This attack applies CSS filters (blur, brightness, etc.) to obscure content and hide malicious elements.
|
||||
</div>
|
||||
<input type="text" class="input-field" placeholder="Enter data..." />
|
||||
<button class="attack-button">Submit Data (Should be blocked when filters applied)</button>
|
||||
<button class="legit-button" onclick="logAction('Legitimate filter test')">Legitimate Action</button>
|
||||
</div>
|
||||
|
||||
<!-- Test Section 4: Invisible Overlay Attack -->
|
||||
<div class="test-section">
|
||||
<div class="test-description">
|
||||
<strong>Attack Vector 4: Invisible Overlay</strong><br>
|
||||
This attack places an nearly invisible overlay over the entire page to intercept clicks.
|
||||
</div>
|
||||
<input type="text" class="input-field" placeholder="Enter credit card..." />
|
||||
<button class="attack-button">Process Payment (Should be blocked when overlay active)</button>
|
||||
<button class="legit-button" onclick="logAction('Legitimate overlay test')">Legitimate Action</button>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Log Display -->
|
||||
<div class="test-section">
|
||||
<h3>Action Log</h3>
|
||||
<div id="actionLog" style="background: #f8f9fa; padding: 10px; border: 1px solid #dee2e6; height: 200px; overflow-y: scroll;"></div>
|
||||
<button onclick="clearLog()" class="legit-button">Clear Log</button>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
let attackStates = {
|
||||
bodyOpacity: false,
|
||||
htmlOpacity: false,
|
||||
cssFilter: false,
|
||||
invisibleOverlay: false
|
||||
};
|
||||
|
||||
function logAction(action) {
|
||||
const timestamp = new Date().toLocaleTimeString();
|
||||
const logEntry = `[${timestamp}] ${action}`;
|
||||
const logDiv = document.getElementById('actionLog');
|
||||
logDiv.innerHTML += logEntry + '<br>';
|
||||
logDiv.scrollTop = logDiv.scrollHeight;
|
||||
console.log(logEntry);
|
||||
}
|
||||
|
||||
function clearLog() {
|
||||
document.getElementById('actionLog').innerHTML = '';
|
||||
}
|
||||
|
||||
function toggleBodyOpacity() {
|
||||
const body = document.body;
|
||||
if (!attackStates.bodyOpacity) {
|
||||
body.style.opacity = '0.5';
|
||||
attackStates.bodyOpacity = true;
|
||||
logAction('✅ ATTACK: Body opacity reduced to 0.5 (should be detected)');
|
||||
} else {
|
||||
body.style.opacity = '1';
|
||||
attackStates.bodyOpacity = false;
|
||||
logAction('❌ Body opacity restored to 1.0');
|
||||
}
|
||||
}
|
||||
|
||||
function toggleHtmlOpacity() {
|
||||
const html = document.documentElement;
|
||||
if (!attackStates.htmlOpacity) {
|
||||
html.style.opacity = '0.7';
|
||||
attackStates.htmlOpacity = true;
|
||||
logAction('✅ ATTACK: HTML opacity reduced to 0.7 (should be detected)');
|
||||
} else {
|
||||
html.style.opacity = '1';
|
||||
attackStates.htmlOpacity = false;
|
||||
logAction('❌ HTML opacity restored to 1.0');
|
||||
}
|
||||
}
|
||||
|
||||
function toggleCssFilter() {
|
||||
const body = document.body;
|
||||
if (!attackStates.cssFilter) {
|
||||
body.style.filter = 'blur(1px) brightness(0.8)';
|
||||
attackStates.cssFilter = true;
|
||||
logAction('✅ ATTACK: CSS filter applied (should be detected)');
|
||||
} else {
|
||||
body.style.filter = 'none';
|
||||
attackStates.cssFilter = false;
|
||||
logAction('❌ CSS filter removed');
|
||||
}
|
||||
}
|
||||
|
||||
function toggleInvisibleOverlay() {
|
||||
const overlay = document.getElementById('invisibleOverlay');
|
||||
if (!attackStates.invisibleOverlay) {
|
||||
overlay.style.display = 'block';
|
||||
attackStates.invisibleOverlay = true;
|
||||
logAction('✅ ATTACK: Invisible overlay activated (clicks should be intercepted)');
|
||||
} else {
|
||||
overlay.style.display = 'none';
|
||||
attackStates.invisibleOverlay = false;
|
||||
logAction('❌ Invisible overlay deactivated');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function resetAllAttacks() {
|
||||
// Reset all visual attacks
|
||||
document.body.style.opacity = '1';
|
||||
document.body.style.filter = 'none';
|
||||
document.documentElement.style.opacity = '1';
|
||||
document.getElementById('invisibleOverlay').style.display = 'none';
|
||||
|
||||
// Reset attack states
|
||||
attackStates = {
|
||||
bodyOpacity: false,
|
||||
htmlOpacity: false,
|
||||
cssFilter: false,
|
||||
invisibleOverlay: false
|
||||
};
|
||||
|
||||
logAction('🔄 All attacks reset to normal state');
|
||||
}
|
||||
|
||||
// Add click logging to all attack buttons
|
||||
document.querySelectorAll('.attack-button').forEach(button => {
|
||||
button.addEventListener('click', function(e) {
|
||||
logAction(`🔴 Attack button clicked: "${this.textContent}"`);
|
||||
});
|
||||
});
|
||||
|
||||
document.querySelectorAll('.legit-button').forEach(button => {
|
||||
button.addEventListener('click', function(e) {
|
||||
logAction(`🟢 Legitimate button clicked: "${this.textContent}"`);
|
||||
});
|
||||
});
|
||||
|
||||
// Log initial state
|
||||
logAction('📋 Clickjacking test page loaded - Ready for security testing');
|
||||
logAction('💡 Install AliasVault browser extension and test autofill security');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,6 +1,5 @@
|
||||
export type StoreVaultRequest = {
|
||||
vaultBlob: string;
|
||||
derivedKey?: string;
|
||||
publicEmailDomainList?: string[];
|
||||
privateEmailDomainList?: string[];
|
||||
vaultRevisionNumber?: number;
|
||||
|
||||
@@ -3,30 +3,40 @@ import { viteStaticCopy } from 'vite-plugin-static-copy';
|
||||
|
||||
// See https://wxt.dev/api/config.html
|
||||
export default defineConfig({
|
||||
manifest: {
|
||||
name: "AliasVault",
|
||||
description: "AliasVault Browser AutoFill Extension. Keeping your personal information private.",
|
||||
version: "0.21.2",
|
||||
content_security_policy: {
|
||||
extension_pages: "script-src 'self' 'wasm-unsafe-eval'; object-src 'self';"
|
||||
},
|
||||
action: {
|
||||
default_title: "AliasVault"
|
||||
},
|
||||
permissions: [
|
||||
manifest: ({ browser, manifestVersion, mode, command }) => {
|
||||
const permissions = [
|
||||
"storage",
|
||||
"activeTab",
|
||||
"contextMenus",
|
||||
"scripting"
|
||||
],
|
||||
host_permissions: [
|
||||
"<all_urls>"
|
||||
],
|
||||
commands: {
|
||||
"show-autofill-popup": {
|
||||
description: "Show the autofill popup (while focusing an input field)"
|
||||
}
|
||||
"scripting",
|
||||
"clipboardWrite"
|
||||
];
|
||||
|
||||
// Only add offscreen permission for Chrome and Edge
|
||||
if (browser === 'chrome' || browser === 'edge') {
|
||||
permissions.push("offscreen");
|
||||
}
|
||||
|
||||
return {
|
||||
name: "AliasVault",
|
||||
description: "AliasVault Browser AutoFill Extension. Keeping your personal information private.",
|
||||
version: "0.22.0",
|
||||
content_security_policy: {
|
||||
extension_pages: "script-src 'self' 'wasm-unsafe-eval'; object-src 'self';"
|
||||
},
|
||||
action: {
|
||||
default_title: "AliasVault"
|
||||
},
|
||||
permissions,
|
||||
host_permissions: [
|
||||
"<all_urls>"
|
||||
],
|
||||
commands: {
|
||||
"show-autofill-popup": {
|
||||
description: "Show the autofill popup (while focusing an input field)"
|
||||
}
|
||||
}
|
||||
};
|
||||
},
|
||||
modules: ['@wxt-dev/module-react'],
|
||||
srcDir: 'src',
|
||||
|
||||
@@ -93,8 +93,8 @@ android {
|
||||
applicationId 'net.aliasvault.app'
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 12
|
||||
versionName "0.21.2"
|
||||
versionCode 220000
|
||||
versionName "0.22.0"
|
||||
}
|
||||
signingConfigs {
|
||||
debug {
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
||||
<uses-permission android:name="android.permission.USE_BIOMETRIC"/>
|
||||
<uses-permission android:name="android.permission.VIBRATE"/>
|
||||
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/>
|
||||
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
|
||||
<queries>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.VIEW"/>
|
||||
@@ -35,5 +37,6 @@
|
||||
<data android:scheme="net.aliasvault.app"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<receiver android:name=".nativevaultmanager.ClipboardClearReceiver" android:exported="false" />
|
||||
</application>
|
||||
</manifest>
|
||||
|
||||
@@ -4,123 +4,181 @@ import net.aliasvault.app.vaultstore.models.Credential
|
||||
|
||||
/**
|
||||
* Helper class to match credentials against app/website information for autofill.
|
||||
* This class handles the logic of determining which credentials are relevant
|
||||
* for a given app or website context.
|
||||
* This implementation matches the iOS filtering logic exactly for cross-platform consistency.
|
||||
*/
|
||||
object CredentialMatcher {
|
||||
|
||||
/**
|
||||
* Filters a list of credentials based on app/package name or URL.
|
||||
* Matching strategies in order of specificity:
|
||||
* 1. Exact URL match
|
||||
* 2. Base URL match (excluding path/query)
|
||||
* 3. Root domain match
|
||||
* 4. Domain key match (package middle segment or domain without TLD)
|
||||
* 5. General text matching on service name, username, and URL
|
||||
* Extract domain from URL, handling both full URLs and partial domains.
|
||||
* @param urlString URL or domain string
|
||||
* @return Normalized domain without protocol or www, or empty string if not a valid URL/domain
|
||||
*/
|
||||
private fun extractDomain(urlString: String): String {
|
||||
if (urlString.isBlank()) {
|
||||
return ""
|
||||
}
|
||||
|
||||
var domain = urlString.lowercase().trim()
|
||||
|
||||
// Check if it starts with a protocol
|
||||
val hasProtocol = domain.startsWith("http://") || domain.startsWith("https://")
|
||||
|
||||
// Remove protocol if present
|
||||
if (hasProtocol) {
|
||||
domain = domain.replace("https://", "").replace("http://", "")
|
||||
}
|
||||
|
||||
// Remove www. prefix
|
||||
domain = domain.replace("www.", "")
|
||||
|
||||
// Remove path, query, and fragment
|
||||
domain = domain.substringBefore("/").substringBefore("?").substringBefore("#")
|
||||
|
||||
// Basic domain validation - must contain at least one dot and valid characters
|
||||
// Only validate after removing path/query/fragment
|
||||
if (!domain.contains(".") || !domain.matches(Regex("^[a-z0-9.-]+$"))) {
|
||||
return ""
|
||||
}
|
||||
|
||||
// Final validation - ensure we have a valid domain structure
|
||||
if (domain.isEmpty() || domain.startsWith(".") || domain.endsWith(".") || domain.contains("..")) {
|
||||
return ""
|
||||
}
|
||||
|
||||
return domain
|
||||
}
|
||||
|
||||
/**
|
||||
* Extract root domain from a domain string.
|
||||
* E.g., "sub.example.com" -> "example.com"
|
||||
*/
|
||||
private fun extractRootDomain(domain: String): String {
|
||||
val parts = domain.split(".")
|
||||
return if (parts.size >= 2) parts.takeLast(2).joinToString(".") else domain
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if two domains match, supporting partial matches.
|
||||
* @param domain1 First domain
|
||||
* @param domain2 Second domain
|
||||
* @return True if domains match (including partial matches)
|
||||
*/
|
||||
private fun domainsMatch(domain1: String, domain2: String): Boolean {
|
||||
val d1 = extractDomain(domain1)
|
||||
val d2 = extractDomain(domain2)
|
||||
|
||||
// Exact match
|
||||
if (d1 == d2) return true
|
||||
|
||||
// Check if one domain contains the other (for subdomain matching)
|
||||
if (d1.contains(d2) || d2.contains(d1)) return true
|
||||
|
||||
// Check root domain match
|
||||
val d1Root = extractRootDomain(d1)
|
||||
val d2Root = extractRootDomain(d2)
|
||||
|
||||
return d1Root == d2Root
|
||||
}
|
||||
|
||||
/**
|
||||
* Extract meaningful words from text, removing punctuation and filtering stop words.
|
||||
* @param text Text to extract words from
|
||||
* @return List of filtered words
|
||||
*/
|
||||
private fun extractWords(text: String): List<String> {
|
||||
if (text.isBlank()) {
|
||||
return emptyList()
|
||||
}
|
||||
|
||||
return text.lowercase()
|
||||
// Replace common separators and punctuation with spaces
|
||||
.replace(Regex("[|,;:\\-–—/\\\\()\\[\\]{}'\" ~!@#$%^&*+=<>?]"), " ")
|
||||
.split(Regex("\\s+"))
|
||||
.filter { word ->
|
||||
word.length > 3 // Filter out short words
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter credentials based on search text with anti-phishing protection.
|
||||
* @param credentials List of credentials to filter
|
||||
* @param searchText Search term (app info, URL, etc.)
|
||||
* @return Filtered list of credentials
|
||||
*
|
||||
* **Security Note**: When searching with a URL, text search fallback only applies to
|
||||
* credentials with no service URL defined. This prevents phishing attacks where a
|
||||
* malicious site might match credentials intended for the legitimate site.
|
||||
*/
|
||||
fun filterCredentialsByAppInfo(
|
||||
credentials: List<Credential>,
|
||||
appInfo: String,
|
||||
searchText: String,
|
||||
): List<Credential> {
|
||||
if (appInfo.isBlank()) {
|
||||
if (searchText.isEmpty()) {
|
||||
return credentials
|
||||
}
|
||||
|
||||
val input = appInfo.trim().lowercase()
|
||||
val isUrlLike = input.contains('.') && !input.contains(' ')
|
||||
val host: String?
|
||||
val rootDomain: String?
|
||||
val domainKey: String
|
||||
// Try to parse as URL first
|
||||
val searchDomain = extractDomain(searchText)
|
||||
|
||||
if (isUrlLike && listOf("http://", "https://", "www.").any { input.startsWith(it) }) {
|
||||
// Treat as full or partial URL
|
||||
val cleaned = input
|
||||
.removePrefix("https://")
|
||||
.removePrefix("http://")
|
||||
.removePrefix("www.")
|
||||
host = cleaned.substringBefore("/").substringBefore("?")
|
||||
rootDomain = extractRootDomain(host)
|
||||
domainKey = extractDomainWithoutExtension(rootDomain)
|
||||
} else if (isUrlLike && !input.contains('/')) {
|
||||
// Treat as package name (e.g., com.coolblue.app)
|
||||
val parts = input.split('.')
|
||||
host = null
|
||||
rootDomain = null
|
||||
domainKey = if (parts.size >= 3) parts[1] else parts.first()
|
||||
if (searchDomain.isNotEmpty()) {
|
||||
val matches = mutableSetOf<Credential>()
|
||||
|
||||
// Check for domain matches with priority
|
||||
credentials.forEach { credential ->
|
||||
val serviceUrl = credential.service.url
|
||||
if (!serviceUrl.isNullOrEmpty()) {
|
||||
if (domainsMatch(searchText, serviceUrl)) {
|
||||
matches.add(credential)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// SECURITY: If no domain matches found, only search text in credentials with NO service URL
|
||||
// This prevents phishing attacks by ensuring URL-based credentials only match their domains
|
||||
if (matches.isEmpty()) {
|
||||
val domainParts = searchDomain.split(".")
|
||||
val domainWithoutExtension = domainParts.firstOrNull()?.lowercase() ?: searchDomain.lowercase()
|
||||
|
||||
val nameMatches = credentials.filter { credential ->
|
||||
if (!credential.service.url.isNullOrEmpty()) {
|
||||
return@filter false
|
||||
}
|
||||
|
||||
val serviceNameMatch = credential.service.name?.lowercase()?.contains(domainWithoutExtension) ?: false
|
||||
val notesMatch = credential.notes?.lowercase()?.contains(domainWithoutExtension) ?: false
|
||||
serviceNameMatch || notesMatch
|
||||
}
|
||||
matches.addAll(nameMatches)
|
||||
}
|
||||
|
||||
return matches.toList()
|
||||
} else {
|
||||
// Plain text search
|
||||
host = null
|
||||
rootDomain = null
|
||||
domainKey = input
|
||||
}
|
||||
// Non-URL fallback: Extract words from search text for better matching
|
||||
val searchWords = extractWords(searchText)
|
||||
|
||||
val matches = mutableListOf<Credential>()
|
||||
|
||||
if (host != null) {
|
||||
// 1. Exact URL match (with or without scheme)
|
||||
matches += credentials.filter { cred ->
|
||||
cred.service.url?.trim()?.lowercase() in listOf(
|
||||
input,
|
||||
"https://$host",
|
||||
"http://$host",
|
||||
)
|
||||
if (searchWords.isEmpty()) {
|
||||
// If no meaningful words after extraction, fall back to simple contains
|
||||
val lowercasedSearch = searchText.lowercase()
|
||||
return credentials.filter { credential ->
|
||||
(credential.service.name?.lowercase()?.contains(lowercasedSearch) ?: false) ||
|
||||
(credential.username?.lowercase()?.contains(lowercasedSearch) ?: false) ||
|
||||
(credential.notes?.lowercase()?.contains(lowercasedSearch) ?: false)
|
||||
}
|
||||
}
|
||||
// 2. Base URL match
|
||||
matches += credentials.filter { cred ->
|
||||
cred.service.url?.trim()?.lowercase()?.let { url ->
|
||||
url.startsWith("https://$host") || url.startsWith("http://$host")
|
||||
} == true
|
||||
|
||||
// Match using extracted words
|
||||
return credentials.filter { credential ->
|
||||
val serviceNameWords = credential.service.name?.let { extractWords(it) } ?: emptyList()
|
||||
val usernameWords = credential.username?.let { extractWords(it) } ?: emptyList()
|
||||
val notesWords = credential.notes?.let { extractWords(it) } ?: emptyList()
|
||||
|
||||
// Check if any search word matches any credential word exactly
|
||||
searchWords.any { searchWord ->
|
||||
serviceNameWords.contains(searchWord) ||
|
||||
usernameWords.contains(searchWord) ||
|
||||
notesWords.contains(searchWord)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 3. Root domain fuzzy match on both URL and service name
|
||||
if (rootDomain != null) {
|
||||
val rootDomainNoTld = rootDomain.substringBefore('.') // e.g., "coolblue" from "coolblue.nl"
|
||||
|
||||
matches += credentials.filter { cred ->
|
||||
val urlMatches = cred.service.url?.trim()?.lowercase()?.takeIf { it.isNotEmpty() }?.let { url ->
|
||||
val u = url.removePrefix("https://")
|
||||
.removePrefix("http://")
|
||||
.removePrefix("www.")
|
||||
.substringBefore("/")
|
||||
val base = extractRootDomain(u)
|
||||
base.contains(rootDomainNoTld) || rootDomainNoTld.contains(base)
|
||||
} == true
|
||||
|
||||
val nameMatches = cred.service.name?.trim()?.lowercase()?.let { name ->
|
||||
name.contains(rootDomainNoTld) || rootDomainNoTld.contains(name)
|
||||
} == true
|
||||
|
||||
urlMatches || nameMatches
|
||||
}
|
||||
}
|
||||
|
||||
// 4. Domain key match against service name, URL, and notes
|
||||
matches += credentials.filter { cred ->
|
||||
val nameMatches = cred.service.name?.trim()?.lowercase()?.contains(domainKey) == true
|
||||
val urlMatches = cred.service.url?.trim()?.lowercase()?.contains(domainKey) == true
|
||||
val notesMatches = cred.notes?.lowercase()?.contains(domainKey) == true
|
||||
|
||||
nameMatches || urlMatches || notesMatches
|
||||
}
|
||||
|
||||
// Deduplicate matches based on credential ID to avoid duplicates from different matching strategies
|
||||
return matches.distinctBy { it.id }
|
||||
}
|
||||
|
||||
/**
|
||||
* Extracts the root domain from a host string.
|
||||
* E.g., "sub.example.com" -> "example.com"
|
||||
*/
|
||||
private fun extractRootDomain(host: String): String {
|
||||
val parts = host.split('.')
|
||||
return if (parts.size >= 2) parts.takeLast(2).joinToString(".") else host
|
||||
}
|
||||
|
||||
/**
|
||||
* Extracts the domain key (name without extension/TLD).
|
||||
* E.g., "example.com" -> "example"
|
||||
*/
|
||||
private fun extractDomainWithoutExtension(domain: String): String {
|
||||
return domain.substringBefore('.')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
package net.aliasvault.app.nativevaultmanager
|
||||
|
||||
import android.content.BroadcastReceiver
|
||||
import android.content.ClipboardManager
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.util.Log
|
||||
|
||||
/**
|
||||
* BroadcastReceiver to clear the clipboard when triggered by AlarmManager.
|
||||
* This ensures clipboard clearing works even when the app is in the background.
|
||||
*/
|
||||
class ClipboardClearReceiver : BroadcastReceiver() {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "ClipboardClearReceiver"
|
||||
}
|
||||
|
||||
override fun onReceive(context: Context, intent: Intent) {
|
||||
try {
|
||||
Log.d(TAG, "Received broadcast to clear clipboard")
|
||||
val clipboardManager = context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
|
||||
clipboardManager.clearPrimaryClip()
|
||||
|
||||
Log.d(TAG, "Clipboard cleared successfully from broadcast receiver")
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Error clearing clipboard from broadcast receiver", e)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,12 @@
|
||||
package net.aliasvault.app.nativevaultmanager
|
||||
|
||||
import android.content.Intent
|
||||
import android.net.Uri
|
||||
import android.os.PowerManager
|
||||
import android.provider.Settings
|
||||
import android.util.Log
|
||||
import androidx.core.net.toUri
|
||||
import androidx.fragment.app.FragmentActivity
|
||||
import com.aliasvault.nativevaultmanager.NativeVaultManagerSpec
|
||||
import com.facebook.react.bridge.Arguments
|
||||
import com.facebook.react.bridge.LifecycleEventListener
|
||||
import com.facebook.react.bridge.Promise
|
||||
@@ -18,6 +19,7 @@ import com.facebook.react.turbomodule.core.interfaces.TurboModule
|
||||
import net.aliasvault.app.vaultstore.VaultStore
|
||||
import net.aliasvault.app.vaultstore.keystoreprovider.AndroidKeystoreProvider
|
||||
import net.aliasvault.app.vaultstore.storageprovider.AndroidStorageProvider
|
||||
import net.aliasvault.nativevaultmanager.NativeVaultManagerSpec
|
||||
import org.json.JSONArray
|
||||
|
||||
/**
|
||||
@@ -483,6 +485,277 @@ class NativeVaultManager(reactContext: ReactApplicationContext) :
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear clipboard after a delay.
|
||||
* @param delayInSeconds The delay in seconds after which to clear the clipboard
|
||||
* @param promise The promise to resolve
|
||||
*/
|
||||
@ReactMethod
|
||||
override fun clearClipboardAfterDelay(delayInSeconds: Double, promise: Promise?) {
|
||||
Log.d(TAG, "Scheduling clipboard clear after $delayInSeconds seconds")
|
||||
|
||||
if (delayInSeconds <= 0) {
|
||||
Log.d(TAG, "Delay is 0 or negative, not scheduling clipboard clear")
|
||||
promise?.resolve(null)
|
||||
return
|
||||
}
|
||||
|
||||
// Use AlarmManager to ensure execution even if app is backgrounded
|
||||
try {
|
||||
val alarmManager = reactApplicationContext.getSystemService(android.content.Context.ALARM_SERVICE) as android.app.AlarmManager
|
||||
|
||||
// Check if we can schedule exact alarms (Android 12+/API 31+)
|
||||
val canScheduleExactAlarms = if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.S) {
|
||||
alarmManager.canScheduleExactAlarms()
|
||||
} else {
|
||||
true // Pre-Android 12 doesn't require permission
|
||||
}
|
||||
|
||||
if (!canScheduleExactAlarms) {
|
||||
Log.w(TAG, "Cannot schedule exact alarms - permission denied. Falling back to Handler.")
|
||||
throw SecurityException("Exact alarm permission not granted")
|
||||
}
|
||||
|
||||
val intent = Intent(reactApplicationContext, ClipboardClearReceiver::class.java)
|
||||
val pendingIntent = android.app.PendingIntent.getBroadcast(
|
||||
reactApplicationContext,
|
||||
0,
|
||||
intent,
|
||||
android.app.PendingIntent.FLAG_UPDATE_CURRENT or android.app.PendingIntent.FLAG_IMMUTABLE,
|
||||
)
|
||||
|
||||
// Cancel any existing alarm
|
||||
alarmManager.cancel(pendingIntent)
|
||||
|
||||
// Set new alarm
|
||||
val triggerTime = System.currentTimeMillis() + (delayInSeconds * 1000).toLong()
|
||||
|
||||
try {
|
||||
alarmManager.setExactAndAllowWhileIdle(
|
||||
android.app.AlarmManager.RTC_WAKEUP,
|
||||
triggerTime,
|
||||
pendingIntent,
|
||||
)
|
||||
Log.d(TAG, "Scheduled clipboard clear using AlarmManager for $delayInSeconds seconds")
|
||||
} catch (securityException: SecurityException) {
|
||||
Log.w(TAG, "SecurityException when scheduling exact alarm: ${securityException.message}")
|
||||
throw securityException
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
when (e) {
|
||||
is SecurityException -> {
|
||||
Log.w(TAG, "Exact alarm permission denied. Using inexact alarm fallback.")
|
||||
// Try inexact alarm as fallback
|
||||
try {
|
||||
val alarmManager = reactApplicationContext.getSystemService(android.content.Context.ALARM_SERVICE) as android.app.AlarmManager
|
||||
val intent = Intent(reactApplicationContext, ClipboardClearReceiver::class.java)
|
||||
val pendingIntent = android.app.PendingIntent.getBroadcast(
|
||||
reactApplicationContext,
|
||||
0,
|
||||
intent,
|
||||
android.app.PendingIntent.FLAG_UPDATE_CURRENT or android.app.PendingIntent.FLAG_IMMUTABLE,
|
||||
)
|
||||
|
||||
val triggerTime = System.currentTimeMillis() + (delayInSeconds * 1000).toLong()
|
||||
alarmManager.set(android.app.AlarmManager.RTC_WAKEUP, triggerTime, pendingIntent)
|
||||
Log.d(TAG, "Scheduled inexact clipboard clear using AlarmManager for ~$delayInSeconds seconds")
|
||||
} catch (fallbackException: Exception) {
|
||||
Log.e(TAG, "Fallback inexact alarm also failed, using Handler: ${fallbackException.message}")
|
||||
useHandlerFallback(delayInSeconds)
|
||||
}
|
||||
}
|
||||
else -> {
|
||||
Log.e(TAG, "Error scheduling clipboard clear with AlarmManager, using Handler: ${e.message}")
|
||||
useHandlerFallback(delayInSeconds)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
promise?.resolve(null)
|
||||
}
|
||||
|
||||
/**
|
||||
* Fallback method to clear clipboard using Handler when AlarmManager fails.
|
||||
*/
|
||||
private fun useHandlerFallback(delayInSeconds: Double) {
|
||||
val handler = android.os.Handler(android.os.Looper.getMainLooper())
|
||||
val delayMs = (delayInSeconds * 1000).toLong()
|
||||
handler.postDelayed({
|
||||
try {
|
||||
val clipboardManager = reactApplicationContext.getSystemService(
|
||||
android.content.Context.CLIPBOARD_SERVICE,
|
||||
) as android.content.ClipboardManager
|
||||
clipboardManager.clearPrimaryClip()
|
||||
Log.d(TAG, "Clipboard cleared using Handler fallback after $delayInSeconds seconds")
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Error clearing clipboard with Handler fallback", e)
|
||||
}
|
||||
}, delayMs)
|
||||
}
|
||||
|
||||
/**
|
||||
* Copy text to clipboard with automatic expiration.
|
||||
* @param text The text to copy to clipboard
|
||||
* @param expirationSeconds The number of seconds after which to clear the clipboard
|
||||
* @param promise The promise to resolve
|
||||
*/
|
||||
@ReactMethod
|
||||
override fun copyToClipboardWithExpiration(text: String, expirationSeconds: Double, promise: Promise?) {
|
||||
try {
|
||||
Log.d(TAG, "Copying to clipboard with expiration of $expirationSeconds seconds")
|
||||
|
||||
val clipboardManager = reactApplicationContext.getSystemService(
|
||||
android.content.Context.CLIPBOARD_SERVICE,
|
||||
) as android.content.ClipboardManager
|
||||
val clip = android.content.ClipData.newPlainText("AliasVault", text)
|
||||
|
||||
// Android 13+ handling
|
||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.TIRAMISU && expirationSeconds > 0) {
|
||||
// Mark as sensitive to prevent preview display
|
||||
val persistableBundle = android.os.PersistableBundle()
|
||||
persistableBundle.putBoolean(android.content.ClipDescription.EXTRA_IS_SENSITIVE, true)
|
||||
clip.description.extras = persistableBundle
|
||||
|
||||
// Android 13+ automatically clears clipboard after 1 hour (3600 seconds)
|
||||
val androidAutoClearSeconds = 3600.0
|
||||
|
||||
if (expirationSeconds <= androidAutoClearSeconds) {
|
||||
// For shorter delays, we still need manual clearing for precision
|
||||
Log.d(TAG, "Using manual clearing for $expirationSeconds seconds (Android 13+ with sensitive flag)")
|
||||
clipboardManager.setPrimaryClip(clip)
|
||||
clearClipboardAfterDelay(expirationSeconds, null)
|
||||
} else {
|
||||
// For longer delays, rely on Android's automatic clearing
|
||||
Log.d(TAG, "Relying on Android 13+ automatic clipboard clearing (${androidAutoClearSeconds}s)")
|
||||
clipboardManager.setPrimaryClip(clip)
|
||||
// No manual clearing needed - Android will handle it
|
||||
}
|
||||
} else {
|
||||
// Pre-Android 13 or no expiration
|
||||
clipboardManager.setPrimaryClip(clip)
|
||||
|
||||
if (expirationSeconds > 0) {
|
||||
Log.d(TAG, "Using manual clearing for $expirationSeconds seconds (pre-Android 13)")
|
||||
clearClipboardAfterDelay(expirationSeconds, null)
|
||||
}
|
||||
}
|
||||
|
||||
Log.d(TAG, "Text copied to clipboard successfully")
|
||||
promise?.resolve(null)
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Error copying to clipboard", e)
|
||||
promise?.reject("ERR_CLIPBOARD", "Failed to copy to clipboard: ${e.message}", e)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the app can schedule exact alarms.
|
||||
* @param promise The promise to resolve with boolean result
|
||||
*/
|
||||
@ReactMethod
|
||||
override fun canScheduleExactAlarms(promise: Promise?) {
|
||||
try {
|
||||
val canSchedule = if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.S) {
|
||||
val alarmManager = reactApplicationContext.getSystemService(android.content.Context.ALARM_SERVICE) as android.app.AlarmManager
|
||||
alarmManager.canScheduleExactAlarms()
|
||||
} else {
|
||||
true // Pre-Android 12 doesn't require permission
|
||||
}
|
||||
Log.d(TAG, "Can schedule exact alarms: $canSchedule")
|
||||
promise?.resolve(canSchedule)
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Error checking exact alarm permission", e)
|
||||
promise?.reject("ERR_EXACT_ALARM_CHECK", "Failed to check exact alarm permission: ${e.message}", e)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Request exact alarm permission by opening system settings.
|
||||
* @param promise The promise to resolve
|
||||
*/
|
||||
@ReactMethod
|
||||
override fun requestExactAlarmPermission(promise: Promise?) {
|
||||
try {
|
||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.S) {
|
||||
val alarmManager = reactApplicationContext.getSystemService(android.content.Context.ALARM_SERVICE) as android.app.AlarmManager
|
||||
|
||||
if (!alarmManager.canScheduleExactAlarms()) {
|
||||
Log.d(TAG, "Requesting exact alarm permission via system settings")
|
||||
val intent = Intent().apply {
|
||||
action = Settings.ACTION_REQUEST_SCHEDULE_EXACT_ALARM
|
||||
data = Uri.parse("package:${reactApplicationContext.packageName}")
|
||||
flags = Intent.FLAG_ACTIVITY_NEW_TASK
|
||||
}
|
||||
reactApplicationContext.startActivity(intent)
|
||||
promise?.resolve("Permission request sent - user will be taken to settings")
|
||||
} else {
|
||||
Log.d(TAG, "Exact alarm permission already granted")
|
||||
promise?.resolve("Permission already granted")
|
||||
}
|
||||
} else {
|
||||
Log.d(TAG, "Exact alarm permission not required on this Android version")
|
||||
promise?.resolve("Permission not required on this Android version")
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Error requesting exact alarm permission", e)
|
||||
promise?.reject("ERR_EXACT_ALARM_REQUEST", "Failed to request exact alarm permission: ${e.message}", e)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the app is ignoring battery optimizations.
|
||||
* @param promise The promise to resolve with boolean result
|
||||
*/
|
||||
@ReactMethod
|
||||
override fun isIgnoringBatteryOptimizations(promise: Promise?) {
|
||||
try {
|
||||
val isIgnoring = if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {
|
||||
val powerManager = reactApplicationContext.getSystemService(android.content.Context.POWER_SERVICE) as PowerManager
|
||||
powerManager.isIgnoringBatteryOptimizations(reactApplicationContext.packageName)
|
||||
} else {
|
||||
true // Pre-Android 6.0 doesn't have battery optimization
|
||||
}
|
||||
Log.d(TAG, "Is ignoring battery optimizations: $isIgnoring")
|
||||
promise?.resolve(isIgnoring)
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Error checking battery optimization status", e)
|
||||
promise?.reject("ERR_BATTERY_OPTIMIZATION_CHECK", "Failed to check battery optimization status: ${e.message}", e)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Request battery optimization exemption by opening system settings.
|
||||
* @param promise The promise to resolve
|
||||
*/
|
||||
@ReactMethod
|
||||
override fun requestIgnoreBatteryOptimizations(promise: Promise?) {
|
||||
try {
|
||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {
|
||||
val powerManager = reactApplicationContext.getSystemService(android.content.Context.POWER_SERVICE) as PowerManager
|
||||
|
||||
if (!powerManager.isIgnoringBatteryOptimizations(reactApplicationContext.packageName)) {
|
||||
Log.d(TAG, "Requesting battery optimization exemption via system settings")
|
||||
val intent = Intent().apply {
|
||||
action = Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
|
||||
data = Uri.parse("package:${reactApplicationContext.packageName}")
|
||||
flags = Intent.FLAG_ACTIVITY_NEW_TASK
|
||||
}
|
||||
reactApplicationContext.startActivity(intent)
|
||||
promise?.resolve("Battery optimization exemption request sent - user will be taken to settings")
|
||||
} else {
|
||||
Log.d(TAG, "App is already ignoring battery optimizations")
|
||||
promise?.resolve("App is already ignoring battery optimizations")
|
||||
}
|
||||
} else {
|
||||
Log.d(TAG, "Battery optimization not applicable on this Android version")
|
||||
promise?.resolve("Battery optimization not applicable on this Android version")
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Error requesting battery optimization exemption", e)
|
||||
promise?.reject("ERR_BATTERY_OPTIMIZATION_REQUEST", "Failed to request battery optimization exemption: ${e.message}", e)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the auth methods.
|
||||
* @param promise The promise to resolve
|
||||
|
||||
@@ -11,6 +11,7 @@ import android.util.Log
|
||||
import androidx.biometric.BiometricManager
|
||||
import androidx.biometric.BiometricPrompt
|
||||
import androidx.fragment.app.FragmentActivity
|
||||
import net.aliasvault.app.R
|
||||
import java.io.File
|
||||
import java.nio.ByteBuffer
|
||||
import java.security.KeyStore
|
||||
@@ -117,10 +118,8 @@ class AndroidKeystoreProvider(
|
||||
|
||||
// Create BiometricPrompt
|
||||
val promptInfo = BiometricPrompt.PromptInfo.Builder()
|
||||
.setTitle("Store Encryption Key")
|
||||
.setSubtitle(
|
||||
"Authenticate to securely store your encryption key in the Android Keystore. This enables secure access to your vault.",
|
||||
)
|
||||
.setTitle(context.getString(R.string.biometric_store_key_title))
|
||||
.setSubtitle(context.getString(R.string.biometric_store_key_subtitle))
|
||||
.setAllowedAuthenticators(
|
||||
BiometricManager.Authenticators.BIOMETRIC_STRONG or
|
||||
BiometricManager.Authenticators.DEVICE_CREDENTIAL,
|
||||
@@ -233,8 +232,8 @@ class AndroidKeystoreProvider(
|
||||
|
||||
// Create BiometricPrompt
|
||||
val promptInfo = BiometricPrompt.PromptInfo.Builder()
|
||||
.setTitle("Unlock Vault")
|
||||
.setSubtitle("Authenticate to access your vault")
|
||||
.setTitle(context.getString(R.string.biometric_unlock_vault_title))
|
||||
.setSubtitle(context.getString(R.string.biometric_unlock_vault_subtitle))
|
||||
.setAllowedAuthenticators(
|
||||
BiometricManager.Authenticators.BIOMETRIC_STRONG or
|
||||
BiometricManager.Authenticators.DEVICE_CREDENTIAL,
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">AliasVault</string>
|
||||
<string name="autofill_service_description" translatable="true">AliasVault AutoFill</string>
|
||||
<string name="aliasvault_icon">AliasVault icon</string>
|
||||
<!-- AutofillService strings -->
|
||||
<string name="autofill_failed_to_retrieve">Failed to retrieve, open app</string>
|
||||
<string name="autofill_no_match_found">No match found, create new?</string>
|
||||
<string name="autofill_open_app">Open app</string>
|
||||
<string name="autofill_vault_locked">Vault locked</string>
|
||||
<!-- Biometric prompts -->
|
||||
<string name="biometric_store_key_title">Store Encryption Key</string>
|
||||
<string name="biometric_store_key_subtitle">Authenticate to securely store your encryption key in the Android Keystore. This enables secure access to your vault.</string>
|
||||
<string name="biometric_unlock_vault_title">Unlock Vault</string>
|
||||
<string name="biometric_unlock_vault_subtitle">Authenticate to access your vault</string>
|
||||
</resources>
|
||||
@@ -2,10 +2,15 @@
|
||||
<resources>
|
||||
<string name="app_name">AliasVault</string>
|
||||
<string name="autofill_service_description" translatable="true">AliasVault AutoFill</string>
|
||||
<string name="aliasvault_icon">AliasVault icon</string>
|
||||
<string name="aliasvault_icon">AliasVault-Icon</string>
|
||||
<!-- AutofillService strings -->
|
||||
<string name="autofill_failed_to_retrieve">Failed to retrieve, open app</string>
|
||||
<string name="autofill_no_match_found">No match found, create new?</string>
|
||||
<string name="autofill_open_app">Open app</string>
|
||||
<string name="autofill_vault_locked">Vault locked</string>
|
||||
<string name="autofill_failed_to_retrieve">Abruf der Daten fehlgeschlagen. Öffne die App</string>
|
||||
<string name="autofill_no_match_found">Keine Übereinstimmung gefunden, neun Eintrag erstellen?</string>
|
||||
<string name="autofill_open_app">App öffnen</string>
|
||||
<string name="autofill_vault_locked">Der Tresor ist gesperrt.</string>
|
||||
<!-- Biometric prompts -->
|
||||
<string name="biometric_store_key_title">Schlüssel speichern</string>
|
||||
<string name="biometric_store_key_subtitle">Authentifiziere Dich, um Deinen Schlüssel sicher im Android Keystore zu speichern. Dies ermöglicht einen sicheren Zugriff auf Deinen Tresor.</string>
|
||||
<string name="biometric_unlock_vault_title">Tresor entsperren</string>
|
||||
<string name="biometric_unlock_vault_subtitle">Authentifiziere Dich, um auf Deinen Tresor zuzugreifen</string>
|
||||
</resources>
|
||||
|
||||
@@ -8,4 +8,9 @@
|
||||
<string name="autofill_no_match_found">No match found, create new?</string>
|
||||
<string name="autofill_open_app">Open app</string>
|
||||
<string name="autofill_vault_locked">Vault locked</string>
|
||||
<!-- Biometric prompts -->
|
||||
<string name="biometric_store_key_title">Store Encryption Key</string>
|
||||
<string name="biometric_store_key_subtitle">Authenticate to securely store your encryption key in the Android Keystore. This enables secure access to your vault.</string>
|
||||
<string name="biometric_unlock_vault_title">Unlock Vault</string>
|
||||
<string name="biometric_unlock_vault_subtitle">Authenticate to access your vault</string>
|
||||
</resources>
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">AliasVault</string>
|
||||
<string name="autofill_service_description" translatable="true">AliasVault AutoFill</string>
|
||||
<string name="aliasvault_icon">AliasVault-kuvake</string>
|
||||
<!-- AutofillService strings -->
|
||||
<string name="autofill_failed_to_retrieve">Haku epäonnistui. Avaa sovellus.</string>
|
||||
<string name="autofill_no_match_found">Ei osumia löytynyt, luodaanko uusi?</string>
|
||||
<string name="autofill_open_app">Avaa sovellus</string>
|
||||
<string name="autofill_vault_locked">Holvi lukittu</string>
|
||||
<!-- Biometric prompts -->
|
||||
<string name="biometric_store_key_title">Tallenna salausavain</string>
|
||||
<string name="biometric_store_key_subtitle">Varmenna tallentaaksesi salausavaimesi turvallisesti Android-avaimessa. Tämä mahdollistaa turvallisen pääsyn holviisi.</string>
|
||||
<string name="biometric_unlock_vault_title">Avaa holvi</string>
|
||||
<string name="biometric_unlock_vault_subtitle">Varmenna pääsysi holviisi</string>
|
||||
</resources>
|
||||
@@ -8,4 +8,9 @@
|
||||
<string name="autofill_no_match_found">Aucune correspondance trouvée, créer un nouveau ?</string>
|
||||
<string name="autofill_open_app">Ouvrir l’application</string>
|
||||
<string name="autofill_vault_locked">Coffre-fort verrouillé</string>
|
||||
<!-- Biometric prompts -->
|
||||
<string name="biometric_store_key_title">Store Encryption Key</string>
|
||||
<string name="biometric_store_key_subtitle">Authenticate to securely store your encryption key in the Android Keystore. This enables secure access to your vault.</string>
|
||||
<string name="biometric_unlock_vault_title">Unlock Vault</string>
|
||||
<string name="biometric_unlock_vault_subtitle">Authenticate to access your vault</string>
|
||||
</resources>
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">AliasVault</string>
|
||||
<string name="autofill_service_description" translatable="true">Riempimento Automatico AliasVault</string>
|
||||
<string name="aliasvault_icon">AliasVault icona</string>
|
||||
<!-- AutofillService strings -->
|
||||
<string name="autofill_failed_to_retrieve">Impossibile recuperare, aprire l\'app</string>
|
||||
<string name="autofill_no_match_found">Nessuna corrispondenza trovata, crearne una nuova?</string>
|
||||
<string name="autofill_open_app">Apri app</string>
|
||||
<string name="autofill_vault_locked">Cassaforte bloccata</string>
|
||||
<!-- Biometric prompts -->
|
||||
<string name="biometric_store_key_title">Memorizza Chiave Di Cifratura</string>
|
||||
<string name="biometric_store_key_subtitle">Autenticati per memorizzare in modo sicuro la tua chiave di crittografia nel Keystore Android. Questo consente l\'accesso sicuro alla tua cassaforte.</string>
|
||||
<string name="biometric_unlock_vault_title">Sblocca Cassaforte</string>
|
||||
<string name="biometric_unlock_vault_subtitle">Autenticati per accedere alla tua cassaforte</string>
|
||||
</resources>
|
||||
@@ -8,4 +8,9 @@
|
||||
<string name="autofill_no_match_found">Geen match gevonden, nieuwe maken?</string>
|
||||
<string name="autofill_open_app">Open de app</string>
|
||||
<string name="autofill_vault_locked">Vault vergrendeld</string>
|
||||
<!-- Biometric prompts -->
|
||||
<string name="biometric_store_key_title">Encryption key opslaan</string>
|
||||
<string name="biometric_store_key_subtitle">Authenticeer om je encryptiesleutel veilig op te slaan in de Android Keystore. Hiermee kun je vervolgens veilig inloggen op je kluis.</string>
|
||||
<string name="biometric_unlock_vault_title">Vault ontgrendelen</string>
|
||||
<string name="biometric_unlock_vault_subtitle">Verifieer om toegang te krijgen tot je vault</string>
|
||||
</resources>
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">AliasVault</string>
|
||||
<string name="autofill_service_description" translatable="true">Автозаполнение AliasVault</string>
|
||||
<string name="aliasvault_icon">Значок AliasVault</string>
|
||||
<!-- AutofillService strings -->
|
||||
<string name="autofill_failed_to_retrieve">Не удалось извлечь, открыть приложение</string>
|
||||
<string name="autofill_no_match_found">Совпадений не найдено, создать новое?</string>
|
||||
<string name="autofill_open_app">Открыть приложение</string>
|
||||
<string name="autofill_vault_locked">Хранилище заблокировано</string>
|
||||
<!-- Biometric prompts -->
|
||||
<string name="biometric_store_key_title">Store Encryption Key</string>
|
||||
<string name="biometric_store_key_subtitle">Authenticate to securely store your encryption key in the Android Keystore. This enables secure access to your vault.</string>
|
||||
<string name="biometric_unlock_vault_title">Unlock Vault</string>
|
||||
<string name="biometric_unlock_vault_subtitle">Authenticate to access your vault</string>
|
||||
</resources>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">AliasVault</string>
|
||||
<string name="autofill_service_description" translatable="true">AliasVault AutoFill</string>
|
||||
<string name="aliasvault_icon">AliasVault icon</string>
|
||||
<!-- AutofillService strings -->
|
||||
<string name="autofill_failed_to_retrieve">Failed to retrieve, open app</string>
|
||||
<string name="autofill_no_match_found">No match found, create new?</string>
|
||||
<string name="autofill_open_app">Open app</string>
|
||||
<string name="autofill_vault_locked">Vault locked</string>
|
||||
<!-- Biometric prompts -->
|
||||
<string name="biometric_store_key_title">Store Encryption Key</string>
|
||||
<string name="biometric_store_key_subtitle">Authenticate to securely store your encryption key in the Android Keystore. This enables secure access to your vault.</string>
|
||||
<string name="biometric_unlock_vault_title">Unlock Vault</string>
|
||||
<string name="biometric_unlock_vault_subtitle">Authenticate to access your vault</string>
|
||||
</resources>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">AliasVault</string>
|
||||
<string name="autofill_service_description" translatable="true">AliasVault AutoFill</string>
|
||||
<string name="aliasvault_icon">AliasVault icon</string>
|
||||
<!-- AutofillService strings -->
|
||||
<string name="autofill_failed_to_retrieve">Failed to retrieve, open app</string>
|
||||
<string name="autofill_no_match_found">No match found, create new?</string>
|
||||
<string name="autofill_open_app">Open app</string>
|
||||
<string name="autofill_vault_locked">Vault locked</string>
|
||||
<!-- Biometric prompts -->
|
||||
<string name="biometric_store_key_title">Store Encryption Key</string>
|
||||
<string name="biometric_store_key_subtitle">Authenticate to securely store your encryption key in the Android Keystore. This enables secure access to your vault.</string>
|
||||
<string name="biometric_unlock_vault_title">Unlock Vault</string>
|
||||
<string name="biometric_unlock_vault_subtitle">Authenticate to access your vault</string>
|
||||
</resources>
|
||||
@@ -1,11 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">AliasVault</string>
|
||||
<string name="autofill_service_description" translatable="true">AliasVault AutoFill</string>
|
||||
<string name="aliasvault_icon">AliasVault icon</string>
|
||||
<string name="autofill_service_description" translatable="true">Автозаповнення AliasVault</string>
|
||||
<string name="aliasvault_icon">Піктограма AliasVault</string>
|
||||
<!-- AutofillService strings -->
|
||||
<string name="autofill_failed_to_retrieve">Failed to retrieve, open app</string>
|
||||
<string name="autofill_no_match_found">No match found, create new?</string>
|
||||
<string name="autofill_open_app">Open app</string>
|
||||
<string name="autofill_vault_locked">Vault locked</string>
|
||||
<string name="autofill_failed_to_retrieve">Не вдалося отримати, відкрийте додаток</string>
|
||||
<string name="autofill_no_match_found">Збігів не знайдено. Створити новий?</string>
|
||||
<string name="autofill_open_app">Відкрити додаток</string>
|
||||
<string name="autofill_vault_locked">Vault заблоковано</string>
|
||||
<!-- Biometric prompts -->
|
||||
<string name="biometric_store_key_title">Зберегти ключ шифрування</string>
|
||||
<string name="biometric_store_key_subtitle">Автентифікуйтеся, щоб надійно зберігати ключ шифрування в сховищі ключів Android. Це забезпечує безпечний доступ до сховища.</string>
|
||||
<string name="biometric_unlock_vault_title">Vault розблоковано</string>
|
||||
<string name="biometric_unlock_vault_subtitle">Автентифікуйтеся, щоб отримати доступ до сховища</string>
|
||||
</resources>
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">AliasVault</string>
|
||||
<string name="autofill_service_description" translatable="true">AliasVault 自动填充</string>
|
||||
<string name="aliasvault_icon">AliasVault 图标</string>
|
||||
<!-- AutofillService strings -->
|
||||
<string name="autofill_failed_to_retrieve">获取失败,请打开应用</string>
|
||||
<string name="autofill_no_match_found">未找到匹配项,是否新建?</string>
|
||||
<string name="autofill_open_app">打开应用</string>
|
||||
<string name="autofill_vault_locked">保险库已锁定</string>
|
||||
<!-- Biometric prompts -->
|
||||
<string name="biometric_store_key_title">存储加密密钥</string>
|
||||
<string name="biometric_store_key_subtitle">请进行身份验证,以便将你的加密密钥安全存储至 Android 密钥库中,这将确保你能安全访问保险库。</string>
|
||||
<string name="biometric_unlock_vault_title">解锁保险库</string>
|
||||
<string name="biometric_unlock_vault_subtitle">验证身份以访问你的保险库</string>
|
||||
</resources>
|
||||
@@ -5,10 +5,16 @@
|
||||
<string name="expo_splash_screen_status_bar_translucent" translatable="false">false</string>
|
||||
<string name="autofill_service_description" translatable="true">AliasVault AutoFill</string>
|
||||
<string name="aliasvault_icon">AliasVault icon</string>
|
||||
|
||||
|
||||
<!-- AutofillService strings -->
|
||||
<string name="autofill_failed_to_retrieve">Failed to retrieve, open app</string>
|
||||
<string name="autofill_no_match_found">No match found, create new?</string>
|
||||
<string name="autofill_open_app">Open app</string>
|
||||
<string name="autofill_vault_locked">Vault locked</string>
|
||||
|
||||
<!-- Biometric prompts -->
|
||||
<string name="biometric_store_key_title">Store Encryption Key</string>
|
||||
<string name="biometric_store_key_subtitle">Authenticate to securely store your encryption key in the Android Keystore. This enables secure access to your vault.</string>
|
||||
<string name="biometric_unlock_vault_title">Unlock Vault</string>
|
||||
<string name="biometric_unlock_vault_subtitle">Authenticate to access your vault</string>
|
||||
</resources>
|
||||
@@ -1,5 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<locale android:name="de" />
|
||||
<locale android:name="en" />
|
||||
<locale android:name="fi" />
|
||||
<locale android:name="it" />
|
||||
<locale android:name="nl" />
|
||||
<locale android:name="zh" />
|
||||
</locale-config>
|
||||
|
||||
@@ -21,36 +21,11 @@ class AutofillTest {
|
||||
|
||||
@Before
|
||||
fun setup() {
|
||||
// Create test credentials
|
||||
testCredentials = listOf(
|
||||
createTestCredential(
|
||||
"Gmail",
|
||||
"https://gmail.com",
|
||||
"user@gmail.com",
|
||||
),
|
||||
createTestCredential(
|
||||
"Google",
|
||||
"https://google.com",
|
||||
"user@gmail.com",
|
||||
),
|
||||
createTestCredential(
|
||||
"Coolblue",
|
||||
"https://www.coolblue.nl",
|
||||
"user@coolblue.nl",
|
||||
),
|
||||
createTestCredential(
|
||||
"Amazon",
|
||||
"https://amazon.com",
|
||||
"user@amazon.com",
|
||||
),
|
||||
createTestCredential(
|
||||
"Coolblue App",
|
||||
"com.coolblue.app",
|
||||
"user@coolblue.nl",
|
||||
),
|
||||
)
|
||||
// Create test credentials using shared test data structure
|
||||
testCredentials = createSharedTestCredentials()
|
||||
}
|
||||
|
||||
// [#1] - Exact URL match
|
||||
@Test
|
||||
fun testExactUrlMatch() {
|
||||
val matches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
@@ -58,11 +33,11 @@ class AutofillTest {
|
||||
"www.coolblue.nl",
|
||||
)
|
||||
|
||||
assertEquals(2, matches.size)
|
||||
assertEquals(1, matches.size)
|
||||
assertEquals("Coolblue", matches[0].service.name)
|
||||
assertEquals("Coolblue App", matches[1].service.name)
|
||||
}
|
||||
|
||||
// [#2] - Base URL with path match
|
||||
@Test
|
||||
fun testBaseUrlMatch() {
|
||||
val matches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
@@ -74,6 +49,7 @@ class AutofillTest {
|
||||
assertEquals("Gmail", matches[0].service.name)
|
||||
}
|
||||
|
||||
// [#3] - Root domain with subdomain match
|
||||
@Test
|
||||
fun testRootDomainMatch() {
|
||||
val matches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
@@ -85,30 +61,7 @@ class AutofillTest {
|
||||
assertEquals("Google", matches[0].service.name)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testDomainNamePartMatch() {
|
||||
val matches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"https://coolblue.be",
|
||||
)
|
||||
|
||||
assertEquals(2, matches.size)
|
||||
assertTrue(matches.any { it.service.name == "Coolblue" })
|
||||
assertTrue(matches.any { it.service.name == "Coolblue App" })
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testPackageNameMatch() {
|
||||
val matches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"com.coolblue.app",
|
||||
)
|
||||
|
||||
assertEquals(2, matches.size)
|
||||
assertTrue(matches.any { it.service.name == "Coolblue" })
|
||||
assertTrue(matches.any { it.service.name == "Coolblue App" })
|
||||
}
|
||||
|
||||
// [#4] - No matches for non-existent domain
|
||||
@Test
|
||||
fun testNoMatches() {
|
||||
val matches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
@@ -119,6 +72,184 @@ class AutofillTest {
|
||||
assertTrue(matches.isEmpty())
|
||||
}
|
||||
|
||||
// [#5] - Partial URL stored matches full URL search
|
||||
@Test
|
||||
fun testPartialUrlMatchWithFullUrl() {
|
||||
val matches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"https://www.dumpert.nl",
|
||||
)
|
||||
|
||||
assertEquals(1, matches.size)
|
||||
assertEquals("Dumpert", matches[0].service.name)
|
||||
}
|
||||
|
||||
// [#6] - Full URL stored matches partial URL search
|
||||
@Test
|
||||
fun testFullUrlMatchWithPartialUrl() {
|
||||
val matches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"coolblue.nl",
|
||||
)
|
||||
|
||||
assertEquals(1, matches.size)
|
||||
assertEquals("Coolblue", matches[0].service.name)
|
||||
}
|
||||
|
||||
// [#7] - Protocol variations (http/https/none) match
|
||||
@Test
|
||||
fun testProtocolVariations() {
|
||||
// Test that http and https variations match
|
||||
val httpsMatches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"https://github.com",
|
||||
)
|
||||
val httpMatches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"http://github.com",
|
||||
)
|
||||
val noProtocolMatches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"github.com",
|
||||
)
|
||||
|
||||
assertEquals(1, httpsMatches.size)
|
||||
assertEquals(1, httpMatches.size)
|
||||
assertEquals(1, noProtocolMatches.size)
|
||||
assertEquals("GitHub", httpsMatches[0].service.name)
|
||||
assertEquals("GitHub", httpMatches[0].service.name)
|
||||
assertEquals("GitHub", noProtocolMatches[0].service.name)
|
||||
}
|
||||
|
||||
// [#8] - WWW prefix variations match
|
||||
@Test
|
||||
fun testWwwVariations() {
|
||||
// Test that www variations match
|
||||
val withWww = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"www.dumpert.nl",
|
||||
)
|
||||
val withoutWww = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"dumpert.nl",
|
||||
)
|
||||
|
||||
assertEquals(1, withWww.size)
|
||||
assertEquals(1, withoutWww.size)
|
||||
assertEquals("Dumpert", withWww[0].service.name)
|
||||
assertEquals("Dumpert", withoutWww[0].service.name)
|
||||
}
|
||||
|
||||
// [#9] - Subdomain matching
|
||||
@Test
|
||||
fun testSubdomainMatching() {
|
||||
// Test subdomain matching
|
||||
val appSubdomain = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"https://app.example.com",
|
||||
)
|
||||
val wwwSubdomain = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"https://www.example.com",
|
||||
)
|
||||
val noSubdomain = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"https://example.com",
|
||||
)
|
||||
|
||||
assertEquals(1, appSubdomain.size)
|
||||
assertEquals("Subdomain Example", appSubdomain[0].service.name)
|
||||
assertEquals(1, wwwSubdomain.size)
|
||||
assertEquals("Subdomain Example", wwwSubdomain[0].service.name)
|
||||
assertEquals(1, noSubdomain.size)
|
||||
assertEquals("Subdomain Example", noSubdomain[0].service.name)
|
||||
}
|
||||
|
||||
// [#10] - Paths and query strings ignored
|
||||
@Test
|
||||
fun testPathAndQueryIgnored() {
|
||||
// Test that paths and query strings are ignored
|
||||
val withPath = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"https://github.com/user/repo",
|
||||
)
|
||||
val withQuery = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"https://stackoverflow.com/questions?tab=newest",
|
||||
)
|
||||
val withFragment = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"https://gmail.com#inbox",
|
||||
)
|
||||
|
||||
assertEquals(1, withPath.size)
|
||||
assertEquals("GitHub", withPath[0].service.name)
|
||||
assertEquals(1, withQuery.size)
|
||||
assertEquals("Stack Overflow", withQuery[0].service.name)
|
||||
assertEquals(1, withFragment.size)
|
||||
assertEquals("Gmail", withFragment[0].service.name)
|
||||
}
|
||||
|
||||
// [#11] - Complex URL variations
|
||||
@Test
|
||||
fun testComplexUrlVariations() {
|
||||
// Test complex URL matching scenario
|
||||
val complexUrl = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"https://www.coolblue.nl/product/12345?ref=google",
|
||||
)
|
||||
|
||||
assertEquals(1, complexUrl.size)
|
||||
assertEquals("Coolblue", complexUrl[0].service.name)
|
||||
}
|
||||
|
||||
// [#12] - Priority ordering
|
||||
@Test
|
||||
fun testPriorityOrdering() {
|
||||
val matches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"coolblue.nl",
|
||||
)
|
||||
|
||||
assertEquals(1, matches.size)
|
||||
assertEquals("Coolblue", matches[0].service.name)
|
||||
}
|
||||
|
||||
// [#13] - Title-only matching
|
||||
@Test
|
||||
fun testTitleOnlyMatching() {
|
||||
val matches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"newyorktimes",
|
||||
)
|
||||
|
||||
assertEquals(1, matches.size)
|
||||
assertEquals("Title Only newyorktimes", matches[0].service.name)
|
||||
}
|
||||
|
||||
// [#14] - Domain name part matching
|
||||
@Test
|
||||
fun testDomainNamePartMatch() {
|
||||
val matches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"https://coolblue.be",
|
||||
)
|
||||
|
||||
assertTrue(matches.isEmpty())
|
||||
}
|
||||
|
||||
// [#15] - Package name matching
|
||||
@Test
|
||||
fun testPackageNameMatch() {
|
||||
val matches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"com.coolblue.app",
|
||||
)
|
||||
assertEquals(1, matches.size)
|
||||
assertTrue(matches.any { it.service.name == "Coolblue App" })
|
||||
}
|
||||
|
||||
// [#16] - Invalid URL handling
|
||||
@Test
|
||||
fun testInvalidUrl() {
|
||||
val matches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
@@ -129,6 +260,70 @@ class AutofillTest {
|
||||
assertTrue(matches.isEmpty())
|
||||
}
|
||||
|
||||
// [#17] - Anti-phishing protection
|
||||
@Test
|
||||
fun testAntiPhishingProtection() {
|
||||
val matches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"https://secure-bankk.com",
|
||||
)
|
||||
assertTrue(matches.isEmpty())
|
||||
}
|
||||
|
||||
// [#18] - Ensure only full words are matched
|
||||
@Test
|
||||
fun testOnlyFullWordsMatch() {
|
||||
val matches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"Express Yourself App | Description",
|
||||
)
|
||||
|
||||
// The string above should not match "AliExpress" service name
|
||||
assertTrue(matches.isEmpty())
|
||||
}
|
||||
|
||||
// [#19] - Ensure separators and punctuation are stripped for matching
|
||||
@Test
|
||||
fun testSeparatorsAndPunctuationStripped() {
|
||||
val matches = CredentialMatcher.filterCredentialsByAppInfo(
|
||||
testCredentials,
|
||||
"Reddit, social media platform",
|
||||
)
|
||||
|
||||
// Should match "Reddit" even though it's followed by a comma and description
|
||||
assertEquals(1, matches.size)
|
||||
assertEquals("Reddit", matches[0].service.name)
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the shared test credential dataset used across all platforms.
|
||||
* This ensures consistent testing across Browser Extension, iOS, and Android.
|
||||
*/
|
||||
private fun createSharedTestCredentials(): List<Credential> {
|
||||
return listOf(
|
||||
createTestCredential("Gmail", "https://gmail.com", "user@gmail.com"),
|
||||
createTestCredential("Google", "https://google.com", "user@google.com"),
|
||||
createTestCredential("Coolblue", "https://www.coolblue.nl", "user@coolblue.nl"),
|
||||
createTestCredential("Amazon", "https://amazon.com", "user@amazon.com"),
|
||||
createTestCredential("Coolblue App", "com.coolblue.app", "user@coolblue.nl"),
|
||||
createTestCredential("Dumpert", "dumpert.nl", "user@dumpert.nl"),
|
||||
createTestCredential("GitHub", "github.com", "user@github.com"),
|
||||
createTestCredential("Stack Overflow", "https://stackoverflow.com", "user@stackoverflow.com"),
|
||||
createTestCredential("Subdomain Example", "https://app.example.com", "user@example.com"),
|
||||
createTestCredential("Title Only newyorktimes", "", ""),
|
||||
createTestCredential("Bank Account", "https://secure-bank.com", "user@bank.com"),
|
||||
createTestCredential("AliExpress", "https://aliexpress.com", "user@aliexpress.com"),
|
||||
createTestCredential("Reddit", "", "user@reddit.com"),
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function to create test credentials with standardized structure.
|
||||
* @param serviceName The name of the service
|
||||
* @param serviceUrl The URL of the service
|
||||
* @param username The username for the service
|
||||
* @return A test credential matching the Android Credential type
|
||||
*/
|
||||
private fun createTestCredential(
|
||||
serviceName: String,
|
||||
serviceUrl: String,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"expo": {
|
||||
"name": "AliasVault",
|
||||
"slug": "AliasVault",
|
||||
"version": "0.21.2",
|
||||
"version": "0.22.0",
|
||||
"orientation": "portrait",
|
||||
"icon": "./assets/images/icon.png",
|
||||
"scheme": "net.aliasvault.app",
|
||||
|
||||
@@ -136,11 +136,17 @@ export default function CredentialDetailsScreen() : React.ReactNode {
|
||||
{credential.ServiceName}
|
||||
</ThemedText>
|
||||
{credential.ServiceUrl && (
|
||||
<TouchableOpacity onPress={() => Linking.openURL(credential.ServiceUrl!)}>
|
||||
<Text style={[styles.serviceUrl, { color: colors.primary }]}>
|
||||
/^https?:\/\//i.test(credential.ServiceUrl) ? (
|
||||
<TouchableOpacity onPress={() => Linking.openURL(credential.ServiceUrl!)}>
|
||||
<Text style={[styles.serviceUrl, { color: colors.primary }]}>
|
||||
{credential.ServiceUrl}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
) : (
|
||||
<Text style={styles.serviceUrl}>
|
||||
{credential.ServiceUrl}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
)
|
||||
)}
|
||||
</View>
|
||||
</ThemedView>
|
||||
|
||||
@@ -22,6 +22,7 @@ import { useVaultMutate } from '@/hooks/useVaultMutate';
|
||||
|
||||
import { AttachmentUploader } from '@/components/credentials/details/AttachmentUploader';
|
||||
import { AdvancedPasswordField } from '@/components/form/AdvancedPasswordField';
|
||||
import { EmailDomainField } from '@/components/form/EmailDomainField';
|
||||
import { ValidatedFormField, ValidatedFormFieldRef } from '@/components/form/ValidatedFormField';
|
||||
import LoadingOverlay from '@/components/LoadingOverlay';
|
||||
import { ThemedContainer } from '@/components/themed/ThemedContainer';
|
||||
@@ -62,7 +63,7 @@ export default function AddEditCredentialScreen() : React.ReactNode {
|
||||
Username: "",
|
||||
Password: "",
|
||||
ServiceName: "",
|
||||
ServiceUrl: "",
|
||||
ServiceUrl: "https://",
|
||||
Notes: "",
|
||||
Alias: {
|
||||
FirstName: "",
|
||||
@@ -255,7 +256,7 @@ export default function AddEditCredentialScreen() : React.ReactNode {
|
||||
Username: data.Username,
|
||||
Password: data.Password,
|
||||
ServiceName: data.ServiceName,
|
||||
ServiceUrl: data.ServiceUrl,
|
||||
ServiceUrl: (data.ServiceUrl === 'http://' || data.ServiceUrl === 'https://') ? '' : data.ServiceUrl,
|
||||
Notes: data.Notes,
|
||||
Alias: {
|
||||
FirstName: data.Alias.FirstName,
|
||||
@@ -274,7 +275,8 @@ export default function AddEditCredentialScreen() : React.ReactNode {
|
||||
credentialToSave.Username = watch('Username');
|
||||
credentialToSave.Password = watch('Password');
|
||||
credentialToSave.ServiceName = watch('ServiceName');
|
||||
credentialToSave.ServiceUrl = watch('ServiceUrl');
|
||||
const serviceUrl = watch('ServiceUrl');
|
||||
credentialToSave.ServiceUrl = (serviceUrl === 'http://' || serviceUrl === 'https://') ? '' : serviceUrl;
|
||||
credentialToSave.Notes = watch('Notes');
|
||||
credentialToSave.Alias.FirstName = watch('Alias.FirstName');
|
||||
credentialToSave.Alias.LastName = watch('Alias.LastName');
|
||||
@@ -649,9 +651,9 @@ export default function AddEditCredentialScreen() : React.ReactNode {
|
||||
<View style={styles.section}>
|
||||
<ThemedText style={styles.sectionTitle}>{t('credentials.loginCredentials')}</ThemedText>
|
||||
|
||||
<ValidatedFormField
|
||||
control={control}
|
||||
name="Alias.Email"
|
||||
<EmailDomainField
|
||||
value={watch('Alias.Email') ?? ''}
|
||||
onChange={(newValue) => setValue('Alias.Email', newValue)}
|
||||
label={t('credentials.email')}
|
||||
/>
|
||||
<ValidatedFormField
|
||||
|
||||
@@ -172,7 +172,7 @@ export default function CredentialsScreen() : React.ReactNode {
|
||||
setIsLoadingCredentials(false);
|
||||
|
||||
// Show modal with error message
|
||||
Alert.alert('Error', error);
|
||||
Alert.alert(t('credentials.errors.generic'), error);
|
||||
|
||||
// Logout user
|
||||
await webApi.logout(error);
|
||||
@@ -399,6 +399,8 @@ export default function CredentialsScreen() : React.ReactNode {
|
||||
value={searchQuery}
|
||||
autoCorrect={false}
|
||||
autoCapitalize="none"
|
||||
multiline={false}
|
||||
numberOfLines={1}
|
||||
onChangeText={setSearchQuery}
|
||||
clearButtonMode={Platform.OS === 'ios' ? 'while-editing' : 'never'}
|
||||
/>
|
||||
|
||||
@@ -22,7 +22,7 @@ export default function EmailsLayout(): React.ReactNode {
|
||||
* On iOS, we don't show the header as a custom collapsible header is used.
|
||||
* @returns {React.ReactNode} The header component
|
||||
*/
|
||||
headerTitle: (): React.ReactNode => Platform.OS === 'android' ? <AndroidHeader title="Emails" /> : <Text>Emails</Text>,
|
||||
headerTitle: (): React.ReactNode => Platform.OS === 'android' ? <AndroidHeader title={t('emails.title')} /> : <Text>{t('emails.title')}</Text>,
|
||||
...defaultHeaderOptions,
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -59,6 +59,14 @@ export default function SettingsLayout(): React.ReactNode {
|
||||
...defaultHeaderOptions,
|
||||
}}
|
||||
/>
|
||||
<Stack.Screen
|
||||
name="clipboard-clear"
|
||||
options={{
|
||||
title: t('settings.clipboardClear'),
|
||||
headerBackTitle: t('settings.title'),
|
||||
...defaultHeaderOptions,
|
||||
}}
|
||||
/>
|
||||
<Stack.Screen
|
||||
name="identity-generator"
|
||||
options={{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { router } from 'expo-router';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { StyleSheet, View, TouchableOpacity, Linking } from 'react-native';
|
||||
|
||||
import { useColors } from '@/hooks/useColorScheme';
|
||||
@@ -14,6 +15,7 @@ import NativeVaultManager from '@/specs/NativeVaultManager';
|
||||
*/
|
||||
export default function AndroidAutofillScreen() : React.ReactNode {
|
||||
const colors = useColors();
|
||||
const { t } = useTranslation();
|
||||
const { markAutofillConfigured, shouldShowAutofillReminder } = useAuth();
|
||||
|
||||
/**
|
||||
@@ -123,25 +125,25 @@ export default function AndroidAutofillScreen() : React.ReactNode {
|
||||
<ThemedContainer>
|
||||
<ThemedScrollView>
|
||||
<View style={styles.warningContainer}>
|
||||
<ThemedText style={styles.warningTitle}>⚠️ Experimental Feature</ThemedText>
|
||||
<ThemedText style={styles.warningTitle}>{t('settings.androidAutofillSettings.warningTitle')}</ThemedText>
|
||||
<ThemedText style={styles.warningDescription}>
|
||||
Autofill support for Android is currently in an experimental state.{' '}
|
||||
{t('settings.androidAutofillSettings.warningDescription')}{' '}
|
||||
<ThemedText style={styles.warningLink} onPress={handleOpenDocs}>
|
||||
Read more about it here
|
||||
{t('settings.androidAutofillSettings.warningLink')}
|
||||
</ThemedText>
|
||||
</ThemedText>
|
||||
</View>
|
||||
|
||||
<View>
|
||||
<ThemedText style={styles.headerText}>
|
||||
You can configure AliasVault to provide native password autofill functionality in Android. Follow the instructions below to enable it.
|
||||
{t('settings.androidAutofillSettings.headerText')}
|
||||
</ThemedText>
|
||||
</View>
|
||||
|
||||
<View style={styles.instructionContainer}>
|
||||
<ThemedText style={styles.instructionTitle}>How to enable:</ThemedText>
|
||||
<ThemedText style={styles.instructionTitle}>{t('settings.androidAutofillSettings.howToEnable')}</ThemedText>
|
||||
<ThemedText style={styles.instructionStep}>
|
||||
1. Open Android Settings via the button below, and change the "autofill preferred service" to "AliasVault"
|
||||
{t('settings.androidAutofillSettings.step1')}
|
||||
</ThemedText>
|
||||
<View style={styles.buttonContainer}>
|
||||
<TouchableOpacity
|
||||
@@ -149,15 +151,15 @@ export default function AndroidAutofillScreen() : React.ReactNode {
|
||||
onPress={handleConfigurePress}
|
||||
>
|
||||
<ThemedText style={styles.configureButtonText}>
|
||||
Open Autofill Settings
|
||||
{t('settings.androidAutofillSettings.openAutofillSettings')}
|
||||
</ThemedText>
|
||||
</TouchableOpacity>
|
||||
<ThemedText style={styles.tipStep}>
|
||||
If the button above doesn't work it might be blocked because of security settings. You can manually go to Android Settings → General Management → Passwords and autofill.
|
||||
{t('settings.androidAutofillSettings.buttonTip')}
|
||||
</ThemedText>
|
||||
</View>
|
||||
<ThemedText style={styles.instructionStep}>
|
||||
2. Some apps, e.g. Google Chrome, may require manual configuration in their settings to allow third-party autofill apps. However, most apps should work with autofill by default.
|
||||
{t('settings.androidAutofillSettings.step2')}
|
||||
</ThemedText>
|
||||
<View style={styles.buttonContainer}>
|
||||
{shouldShowAutofillReminder && (
|
||||
@@ -166,7 +168,7 @@ export default function AndroidAutofillScreen() : React.ReactNode {
|
||||
onPress={handleAlreadyConfigured}
|
||||
>
|
||||
<ThemedText style={styles.secondaryButtonText}>
|
||||
I already configured it
|
||||
{t('settings.androidAutofillSettings.alreadyConfigured')}
|
||||
</ThemedText>
|
||||
</TouchableOpacity>
|
||||
)}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user