Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Refactor (#2413)

Leendert de Borst90b79713d5a3
diff --git a/apps/web/src/components/items/ItemListEntry.ts b/apps/web/src/components/items/ItemListEntry.ts
index 0e69106aa..e417785f0 100644
--- a/apps/web/src/components/items/ItemListEntry.ts
+++ b/apps/web/src/components/items/ItemListEntry.ts
@@ -1,5 +1,5 @@
/**
- * Item list entry model for the item lists (the Blazor ItemListEntry), built from the vault's items.
+ * Item list entry model for the item lists, built from the vault's items.
*/
import SqliteClient from '@aliasvault/client/database/SqliteClient';
diff --git a/apps/web/src/components/shared/Button.tsx b/apps/web/src/components/shared/Button.tsx
index e5b9467e8..6a99fb337 100644
--- a/apps/web/src/components/shared/Button.tsx
+++ b/apps/web/src/components/shared/Button.tsx
@@ -35,7 +35,7 @@ export const getButtonColorClasses = (color: ButtonColor): string => {
};
/**
- * Generic button (the shared Razor Button component).
+ * Generic button.
*/
const Button: React.FC<ButtonProps> = ({ children, onClick, isDisabled = false, type = 'button', color = 'primary', additionalClasses = '', display = 'inline', id }) => {
const classes = `${display} ${BASE_CLASSES} ${getButtonColorClasses(color)} ${isDisabled ? DISABLED_CLASSES : ''} ${additionalClasses}`.trim();
diff --git a/apps/web/src/config/AppConfig.ts b/apps/web/src/config/AppConfig.ts
index bf74b79ee..71f4407b3 100644
--- a/apps/web/src/config/AppConfig.ts
+++ b/apps/web/src/config/AppConfig.ts
@@ -1,7 +1,6 @@
/**
- * Runtime configuration, read from /appsettings.json at startup which was migrated from the Blazor WASM app
- * structure as the Docker entrypoint rewrites the appsettings.json in the root. So we keep this inline with the Blazor WASM app
- * for compatibility reasons for now.
+ * Runtime configuration, read from /appsettings.json at startup. The Docker entrypoint rewrites that file in the web
+ * root, so its name and structure are kept for compatibility.
*/
import { StorageKeys } from '@aliasvault/client/constants/StorageKeys';
diff --git a/apps/web/src/context/LoadingContext.tsx b/apps/web/src/context/LoadingContext.tsx
index d41057636..960070d00 100644
--- a/apps/web/src/context/LoadingContext.tsx
+++ b/apps/web/src/context/LoadingContext.tsx
@@ -12,7 +12,7 @@ type LoadingContextType = {
const LoadingContext = createContext<LoadingContextType | undefined>(undefined);
/**
- * Global loading spinner (the Blazor GlobalLoadingService), rendered as a full screen overlay.
+ * Global loading spinner, rendered as a full screen overlay.
*/
export const LoadingProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {
const [isLoading, setIsLoading] = useState(false);
diff --git a/apps/web/src/hooks/useKeyboardShortcut.ts b/apps/web/src/hooks/useKeyboardShortcut.ts
index 9d9bd96f6..66bc9e7ca 100644
--- a/apps/web/src/hooks/useKeyboardShortcut.ts
+++ b/apps/web/src/hooks/useKeyboardShortcut.ts
@@ -16,7 +16,7 @@ const isTypingTarget = (): boolean => {
};
/**
- * Register a two-key chord such as "gc" (the Blazor KeyboardShortcutService).
+ * Register a two-key chord such as "gc".
* @param chord - the two keys, e.g. 'gc'
* @param handler - what to run when the chord is pressed
*/
diff --git a/apps/web/src/i18n/config.ts b/apps/web/src/i18n/config.ts
index 52d51ed12..c0c55706f 100644
--- a/apps/web/src/i18n/config.ts
+++ b/apps/web/src/i18n/config.ts
@@ -9,7 +9,7 @@ import enTranslations from './locales/en.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.
- * TODO: add all languages here once the Crowdin integration is (re)enabled for this new web app and replacing the existing Blazor WASM web client translations.
+ * TODO: add all languages here once the Crowdin integration is (re)enabled for this web app.
*/
export const LANGUAGE_RESOURCES = {
en: {
diff --git a/apps/web/src/style.css b/apps/web/src/style.css
index 523761c40..b7260d8e5 100644
--- a/apps/web/src/style.css
+++ b/apps/web/src/style.css
@@ -2,8 +2,7 @@
@tailwind components;
@tailwind utilities;
-/*
-Ported from the Blazor WASM app.css.
+/*
TODO: migrate all styles to native Tailwind CSS and components where possible.
*/
.validation-message {
@@ -35,7 +34,7 @@ TODO: migrate all styles to native Tailwind CSS and components where possible.
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
-/* Shared spinner styles, ported from the Blazor loading indicator components. */
+/* Shared spinner styles. */
.aliasvault-spinner {
display: flex;
justify-content: center;
@@ -126,7 +125,7 @@ TODO: migrate all styles to native Tailwind CSS and components where possible.
word-wrap: break-word;
}
-/* Skeleton loaders, ported from SkeletonBase.razor. */
+/* Skeleton loaders. */
.skeleton-base {
background-color: rgb(229 231 235);
border-radius: 0.5rem;
@@ -157,7 +156,7 @@ TODO: migrate all styles to native Tailwind CSS and components where possible.
100% { transform: translateX(100%); }
}
-/* Inline notification containers, ported from GlobalNotificationDisplay.razor. */
+/* Inline notification containers. */
.messages-container > :first-child {
margin-top: 0 !important;
}