Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Remove AliasVault.Client references (#2439)
Leendert de Borstffd252053e2b
diff --git a/apps/server/Shared/AliasVault.RazorComponents/README.md b/apps/server/Shared/AliasVault.RazorComponents/README.mdindex e4cdfa95b..2ff29ee65 100644--- a/apps/server/Shared/AliasVault.RazorComponents/README.md+++ b/apps/server/Shared/AliasVault.RazorComponents/README.md@@ -4,7 +4,7 @@ This project contains shared Razor components and UI-related functionality used## Purpose-This library provides shared Blazor components used by both the client and admin applications:+This library provides shared Blazor components used by the admin application:- Reusable Razor components- UI-specific services- Component-related modelsdiff --git a/core/README.md b/core/README.mdindex 722aa6ffa..ac9510c79 100644--- a/core/README.md+++ b/core/README.md@@ -33,5 +33,5 @@ TypeScript models that are auto-generated to platform-specific code:Vault database schema and SQL utilities for:- Browser extension- Mobile apps (React Native)-- Web client (Blazor)+- Web appdiff --git a/core/assets/sync.sh b/core/assets/sync.shindex a48e59b04..ba0cfc9f3 100755--- a/core/assets/sync.sh+++ b/core/assets/sync.sh@@ -24,7 +24,6 @@ TARGETS_FILE="$ASSETS_DIR/targets.txt"# Folders that also hold content images (fastlane screenshots, docs) are mapped in targets.txt but not listed here.MANAGED_ROOTS=("apps/web/public"- "apps/server/AliasVault.Client/wwwroot""apps/server/AliasVault.Admin/wwwroot""apps/browser-extension/public""apps/browser-extension/src/assets"diff --git a/core/assets/targets.txt b/core/assets/targets.txtindex dfc528676..6e9d7bc31 100644--- a/core/assets/targets.txt+++ b/core/assets/targets.txt@@ -31,36 +31,6 @@ importers/protonpass.svg apps/web/public/img/importers/protonpass.svgimporters/roboform.svg apps/web/public/img/importers/roboform.svgimporters/strongbox.svg apps/web/public/img/importers/strongbox.svg-# Blazor client-brand/web/favicon.png apps/server/AliasVault.Client/wwwroot/favicon.png-brand/logo.svg apps/server/AliasVault.Client/wwwroot/img/logo.svg-brand/logo-cropped.png apps/server/AliasVault.Client/wwwroot/img/logo-cropped.png-brand/web/icon-192.png apps/server/AliasVault.Client/wwwroot/img/icon-192.png-brand/web/icon-500.png apps/server/AliasVault.Client/wwwroot/img/icon-500.png-browsers/brave.svg apps/server/AliasVault.Client/wwwroot/img/browser-icons/brave.svg-browsers/chrome.svg apps/server/AliasVault.Client/wwwroot/img/browser-icons/chrome.svg-browsers/edge.svg apps/server/AliasVault.Client/wwwroot/img/browser-icons/edge.svg-browsers/firefox.svg apps/server/AliasVault.Client/wwwroot/img/browser-icons/firefox.svg-browsers/safari.svg apps/server/AliasVault.Client/wwwroot/img/browser-icons/safari.svg-platforms/android.svg apps/server/AliasVault.Client/wwwroot/img/mobile-icons/android.svg-platforms/ios.svg apps/server/AliasVault.Client/wwwroot/img/mobile-icons/ios.svg-importers/1password.svg apps/server/AliasVault.Client/wwwroot/img/importers/1password.svg-importers/bitwarden.svg apps/server/AliasVault.Client/wwwroot/img/importers/bitwarden.svg-browsers/chrome.svg apps/server/AliasVault.Client/wwwroot/img/importers/chrome.svg-importers/dashlane.svg apps/server/AliasVault.Client/wwwroot/img/importers/dashlane.svg-importers/dropbox.svg apps/server/AliasVault.Client/wwwroot/img/importers/dropbox.svg-browsers/edge.svg apps/server/AliasVault.Client/wwwroot/img/importers/edge.svg-importers/enpass.svg apps/server/AliasVault.Client/wwwroot/img/importers/enpass.svg-browsers/firefox.svg apps/server/AliasVault.Client/wwwroot/img/importers/firefox.svg-importers/generic-csv.svg apps/server/AliasVault.Client/wwwroot/img/importers/generic-csv.svg-importers/keepass.svg apps/server/AliasVault.Client/wwwroot/img/importers/keepass.svg-importers/keepassxc.svg apps/server/AliasVault.Client/wwwroot/img/importers/keepassxc.svg-importers/lastpass.svg apps/server/AliasVault.Client/wwwroot/img/importers/lastpass.svg-importers/nordpass.svg apps/server/AliasVault.Client/wwwroot/img/importers/nordpass.svg-importers/protonpass.svg apps/server/AliasVault.Client/wwwroot/img/importers/protonpass.svg-importers/roboform.svg apps/server/AliasVault.Client/wwwroot/img/importers/roboform.svg-importers/strongbox.svg apps/server/AliasVault.Client/wwwroot/img/importers/strongbox.svg-# Adminbrand/web/favicon.png apps/server/AliasVault.Admin/wwwroot/favicon.pngbrand/logo.svg apps/server/AliasVault.Admin/wwwroot/img/logo.svgdiff --git a/core/build-and-distribute.sh b/core/build-and-distribute.shindex 4b8167663..5c41b1e25 100755--- a/core/build-and-distribute.sh+++ b/core/build-and-distribute.sh@@ -43,7 +43,7 @@ while [[ $# -gt 0 ]]; doecho "Usage: $0 [options]"echo ""echo "Target options:"- echo " --web Build WASM for the web app and Blazor client (size-optimized)"+ echo " --web Build WASM for the web app (size-optimized)"echo " --browser-extension Build WASM for the browser extension (speed-optimized)"echo " --ios Build for iOS with Swift bindings"echo " --android Build for Android with Kotlin bindings"diff --git a/core/client/src/rust/RustCore.ts b/core/client/src/rust/RustCore.tsindex f703bcb34..8070287a0 100644--- a/core/client/src/rust/RustCore.ts+++ b/core/client/src/rust/RustCore.ts@@ -1,5 +1,5 @@/**- * Typed wrapper around the AliasVault Rust core (shared with iOS, Android, and the Blazor client).+ * Typed wrapper around the AliasVault Rust core (shared with iOS and Android).** Algorithms (URL matching, credential filtering, domain extraction, the vault codec) live in `core/rust`.*/diff --git a/core/models/src/icons/ItemTypeIcons.ts b/core/models/src/icons/ItemTypeIcons.tsindex 7392bbfbe..695068d6b 100644--- a/core/models/src/icons/ItemTypeIcons.ts+++ b/core/models/src/icons/ItemTypeIcons.ts@@ -3,7 +3,7 @@* This is the single source of truth for all item type icons across platforms.** Generated platform-specific files:- * - C# (Blazor): apps/server/Databases/AliasClientDb/Models/ItemTypeIcons.cs+ * - C#: apps/server/Databases/AliasClientDb/Models/ItemTypeIcons.cs* - Swift (iOS): apps/mobile-app/ios/VaultModels/ItemTypeIcons.swift* - Kotlin (Android): apps/mobile-app/android/.../vaultstore/models/ItemTypeIcons.kt* - TypeScript: distributed via build.sh to browser-extension and mobile-appdiff --git a/core/rust/README.md b/core/rust/README.mdindex 502524834..231468c4d 100644--- a/core/rust/README.md+++ b/core/rust/README.md@@ -3,7 +3,7 @@Cross-platform core library providing shared business logic for all AliasVault clients:- **Browser Extensions** (Chrome, Firefox, Edge, Safari via WASM)-- **Web App and Blazor Client** (via the same WASM build)+- **Web App** (via the same WASM build)- **Mobile Apps** (iOS via Swift bindings, Android via Kotlin bindings)## Core Modules@@ -62,7 +62,7 @@ The host entry points: `wasm` (wasm-bindgen, browser) and `uniffi_api` (UniFFI,## Building```bash-./build.sh --web # WASM for the web app and Blazor client+./build.sh --web # WASM for the web app./build.sh --browser-extension # WASM for the browser extension./build.sh --ios # iOS device + simulator with Swift bindings./build.sh --android # Android ABIs with Kotlin bindingsdiff --git a/core/rust/build.sh b/core/rust/build.shindex ba162f251..6d60164b3 100755--- a/core/rust/build.sh+++ b/core/rust/build.sh@@ -22,7 +22,6 @@ ANDROID_DIR="$DIST_DIR/android"# Target directories in consumer appsBROWSER_EXT_DIST="$SCRIPT_DIR/../client/wasm"-BLAZOR_CLIENT_DIST="$SCRIPT_DIR/../../apps/server/AliasVault.Client/wwwroot/wasm"IOS_APP_DIST="$SCRIPT_DIR/../../apps/mobile-app/ios/RustCoreFramework/RustCore"ANDROID_APP_DIST="$SCRIPT_DIR/../../apps/mobile-app/android/app/src/main/jniLibs"@@ -124,7 +123,7 @@ while [[ $# -gt 0 ]]; doecho "Usage: $0 [options]"echo ""echo "Target options:"- echo " --web Build WASM for the web app and Blazor client (size-optimized)"+ echo " --web Build WASM for the web app (size-optimized)"echo " --browser-extension Build WASM for the browser extension (speed-optimized)"echo " --ios Build for iOS (device + simulator arm64) with Swift bindings"echo " --android Build for Android (arm64-v8a, armeabi-v7a, x86_64) with Kotlin bindings"@@ -244,17 +243,6 @@ README_EOFecho -e "${GREEN}Distributed to: $BROWSER_EXT_DIST${NC}"ls -lh "$BROWSER_EXT_DIST/"-- # Also distribute to Blazor client- echo ""- echo -e "${BLUE}Distributing to Blazor client...${NC}"- rm -rf "$BLAZOR_CLIENT_DIST"- mkdir -p "$BLAZOR_CLIENT_DIST"- cp "$WASM_DIR"/aliasvault_core_bg.wasm "$BLAZOR_CLIENT_DIST/"- cp "$WASM_DIR"/aliasvault_core.js "$BLAZOR_CLIENT_DIST/"-- echo -e "${GREEN}Distributed to: $BLAZOR_CLIENT_DIST${NC}"- ls -lh "$BLAZOR_CLIENT_DIST/"fi}diff --git a/core/vault/build.sh b/core/vault/build.shindex ca327d55e..7abe4e07b 100755--- a/core/vault/build.sh+++ b/core/vault/build.sh@@ -3,16 +3,8 @@set -e # Stop on errorset -u # Treat unset variables as errors-# Define output targets for vault-# TODO: remove this copy logic once the web app is migrated to the new core (the extension and the mobile app-# link this package as source through @aliasvault/vault)-TARGETS=(- "../../apps/server/AliasVault.Client/wwwroot/js/dist/core/vault"-)--# Build and distribute vault+# Build vaultpackage_name="vault"-package_path="."echo "π¦ Building $package_name..."npm install && npm run lint && npm run test && npm run build@@ -21,32 +13,4 @@ echo ""echo "π Generating platform-specific vault SQL (Swift, Kotlin)..."node scripts/generate-vault-sql.cjs-dist_path="dist"--for target in "${TARGETS[@]}"; do- echo "π Copying $package_name β $target"-- # Remove any existing files in the target directory- rm -rf "$target"-- # (Re)create the target directory- mkdir -p "$target"-- # Copy all build outputs (excluding .map files)- find "$dist_path" -type f ! -name "*.map" -exec sh -c 'mkdir -p "$1/$(dirname ${2#'"$dist_path"'/})" && cp "$2" "$1/${2#'"$dist_path"'/}"' sh "$target" {} \;-- # Write README- cat > "$target/README.md" <<EOF-# β οΈ Auto-Generated Files--This folder contains the output of the core \`$package_name\` module from the \`/core\` directory in the AliasVault project.--**Do not edit any of these files manually.**--To make changes:-1. Update the source files in the \`/core/vault/src\` directory-2. Run the \`build.sh\` script in the module directory to regenerate the outputs and copy them here.-EOF-done--echo "β Vault build and copy completed."+echo "β Vault build completed."diff --git a/scripts/dev.sh b/scripts/dev.shindex 526f6623a..65075c76c 100755--- a/scripts/dev.sh+++ b/scripts/dev.sh@@ -8,7 +8,7 @@## Usage:# ./scripts/dev.sh # interactive menu (pick an app)-# ./scripts/dev.sh <app> # start one app: api | client | web | admin | smtp | taskrunner | ext | mobile+# ./scripts/dev.sh <app> # start one app: api | web | admin | smtp | taskrunner | ext | mobile# ./scripts/dev.sh db-start # start (only) the dev database# ./scripts/dev.sh db-stop # stop & remove this instance's dev database# ./scripts/dev.sh ports # print the resolved port map and exit@@ -56,12 +56,6 @@ AV_INSTANCE=$1AV_BASE_PORT=$DEFAULT_BASE_PORTAV_PORT_STRIDE=$DEFAULT_PORT_STRIDE--# UseDebugEncryptionKey for the Blazor client. 'true' uses a fixed debug-# encryption key so local logins skip the slow key derivation, speeds up dev.-# Note: this can conflict with some things like password verification steps.-# Switch to 'false' to use the actual user unlock flow compatible with production.-AV_USE_DEBUG_ENCRYPTION_KEY=trueENV}@@ -81,10 +75,7 @@ set +aAV_INSTANCE="${AV_INSTANCE:-0}"AV_BASE_PORT="${AV_BASE_PORT:-$DEFAULT_BASE_PORT}"AV_PORT_STRIDE="${AV_PORT_STRIDE:-$DEFAULT_PORT_STRIDE}"-# Default true for pre-existing dev.env files that predate this setting.-AV_USE_DEBUG_ENCRYPTION_KEY="${AV_USE_DEBUG_ENCRYPTION_KEY:-true}"case "$AV_INSTANCE" in (*[!0-9]*|"") die "AV_INSTANCE must be a non-negative integer (got '$AV_INSTANCE').";; esac-case "$AV_USE_DEBUG_ENCRYPTION_KEY" in true|false) ;; (*) die "AV_USE_DEBUG_ENCRYPTION_KEY must be 'true' or 'false' (got '$AV_USE_DEBUG_ENCRYPTION_KEY').";; esac# --- Resolve effective ports ---------------------------------------------------SERVICE_COUNT=10 # block width (offsets 0..9); DB sits last so it ends in 9@@ -95,13 +86,12 @@ case "$AV_BASE_PORT" in (*[!0-9]*|"") die "AV_BASE_PORT must be a positive integBLOCK_BASE=$(( AV_BASE_PORT + AV_INSTANCE * AV_PORT_STRIDE ))# Dev only serves HTTP, so each web app reserves a single port.API_HTTP=$(( BLOCK_BASE + 0 ))-CLIENT_HTTP=$(( BLOCK_BASE + 1 ))ADMIN_HTTP=$(( BLOCK_BASE + 2 ))EXT_PORT=$(( BLOCK_BASE + 3 ))EXPO_PORT=$(( BLOCK_BASE + 4 ))WEB_PORT=$(( BLOCK_BASE + 5 ))# DB sits at the last offset so its port always ends in 9 (e.g. 5109) β easy to-# remember. Offsets 6..8 are left free as spare slots inside the block.+# remember. Offsets 1 and 6..8 are left free as spare slots inside the block.DB_PORT=$(( BLOCK_BASE + 9 ))# One dev DB container per instance, with the published port in the project@@ -119,7 +109,6 @@ print_ports() {printf "%sAliasVault dev β instance %s%s (base %s, stride %s β block %s..%s)\n" \"$BOLD" "$AV_INSTANCE" "$NC" "$AV_BASE_PORT" "$AV_PORT_STRIDE" "$BLOCK_BASE" "$((BLOCK_BASE + SERVICE_COUNT - 1))"printf " %-14s http://localhost:%s\n" "API" "$API_HTTP"- printf " %-14s http://localhost:%s\n" "Client" "$CLIENT_HTTP"printf " %-14s http://localhost:%s\n" "Web" "$WEB_PORT"printf " %-14s http://localhost:%s\n" "Admin" "$ADMIN_HTTP"printf " %-14s localhost:%s\n" "Postgres DB" "$DB_PORT"@@ -142,25 +131,6 @@ banner() {require() { command -v "$1" >/dev/null 2>&1 || die "'$1' is required but not installed."; }-# Generate the Blazor client's dev config.-write_client_dev_settings() {- local target="$ROOT_DIR/apps/server/AliasVault.Client/wwwroot/appsettings.Development.json"- cat > "$target" <<JSON-{- "ApiUrl": "http://localhost:$API_HTTP",- "PrivateEmailDomains": ["example.tld", "example2.tld", "aliasvault.net", "disabled.tld"],- "HiddenPrivateEmailDomains": ["disabled.tld"],- "SupportEmail": "[email protected]",- "PublicRegistrationEnabled": "true",- "DeploymentMode": "dev",- "UseDebugEncryptionKey": "$AV_USE_DEBUG_ENCRYPTION_KEY",- "CryptographyOverrideType": "Argon2Id",- "CryptographyOverrideSettings": "{\"DegreeOfParallelism\":1,\"MemorySize\":1024,\"Iterations\":1}"-}-JSON- info "Wrote client dev config β ApiUrl http://localhost:$API_HTTP (UseDebugEncryptionKey=$AV_USE_DEBUG_ENCRYPTION_KEY)"-}-# Generate the React web app's dev config. Vite serves everything in public/, and the app prefers# this file over the checked-in appsettings.json while running in dev mode.write_web_dev_settings() {@@ -249,10 +219,6 @@ start_admin() {IP_LOGGING_ENABLED="true" \run_dotnet "AliasVault.Admin" "$ADMIN_HTTP"}-start_client() {- write_client_dev_settings- run_dotnet "AliasVault.Client" "$CLIENT_HTTP"-}# Background workers (no HTTP port).run_worker() {@@ -307,7 +273,6 @@ menu() {filocal options=("api:API"- "client:Client (Blazor)""web:Web (React)""admin:Admin""ext:Browser extension"@@ -330,7 +295,6 @@ menu() {dispatch() {case "${1:-}" inapi) start_api ;;- client) start_client ;;web) start_web ;;admin) start_admin ;;smtp) start_smtp ;;@@ -345,7 +309,7 @@ dispatch() {"") menu ;;-h|--help|help) sed -n '2,25p' "$0" | sed 's/^# \{0,1\}//' ;;*) die "Unknown command '$1'.- start: api/client/web/admin/smtp/taskrunner/ext/mobile+ start: api/web/admin/smtp/taskrunner/ext/mobiledb: db (toggle) / db-start / db-stop" ;;esac}