Skip to content

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

Remove unused translations (#881)

Leendert de Borst71633b166eca
diff --git a/apps/server/AliasVault.Client/Main/Components/Forms/CopyPasteFormRow.razor b/apps/server/AliasVault.Client/Main/Components/Forms/CopyPasteFormRow.razor
index 54267964d..595dd597b 100644
--- a/apps/server/AliasVault.Client/Main/Components/Forms/CopyPasteFormRow.razor
+++ b/apps/server/AliasVault.Client/Main/Components/Forms/CopyPasteFormRow.razor
@@ -24,8 +24,6 @@
</div>
@code {
- private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Forms.CopyPasteFormRow", "AliasVault.Client");
-
/// <summary>
/// Id for the input field. Defaults to a random GUID if not provided.
/// </summary>
diff --git a/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.de.resx b/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.de.resx
deleted file mode 100644
index 262879905..000000000
--- a/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.de.resx
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0"/>
- <xsd:element name="comment" type="xsd:string" minOccurs="0"/>
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string"/>
- <xsd:attribute name="type" type="xsd:string"/>
- <xsd:attribute name="mimetype" type="xsd:string"/>
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <data name="CopiedMessage">
- <value>Copied!</value>
- <comment>Confirmation message shown when text is copied to clipboard</comment>
- </data>
-</root>
\ No newline at end of file
diff --git a/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.en.resx b/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.en.resx
deleted file mode 100644
index ca7a7300a..000000000
--- a/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.en.resx
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" />
- <xsd:element name="comment" type="xsd:string" minOccurs="0" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" />
- <xsd:attribute name="type" type="xsd:string" />
- <xsd:attribute name="mimetype" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
-
- <data name="CopiedMessage">
- <value>Copied!</value>
- <comment>Confirmation message shown when text is copied to clipboard</comment>
- </data>
-</root>
\ No newline at end of file
diff --git a/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.es.resx b/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.es.resx
deleted file mode 100644
index 262879905..000000000
--- a/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.es.resx
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0"/>
- <xsd:element name="comment" type="xsd:string" minOccurs="0"/>
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string"/>
- <xsd:attribute name="type" type="xsd:string"/>
- <xsd:attribute name="mimetype" type="xsd:string"/>
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <data name="CopiedMessage">
- <value>Copied!</value>
- <comment>Confirmation message shown when text is copied to clipboard</comment>
- </data>
-</root>
\ No newline at end of file
diff --git a/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.fr.resx b/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.fr.resx
deleted file mode 100644
index 262879905..000000000
--- a/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.fr.resx
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0"/>
- <xsd:element name="comment" type="xsd:string" minOccurs="0"/>
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string"/>
- <xsd:attribute name="type" type="xsd:string"/>
- <xsd:attribute name="mimetype" type="xsd:string"/>
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <data name="CopiedMessage">
- <value>Copied!</value>
- <comment>Confirmation message shown when text is copied to clipboard</comment>
- </data>
-</root>
\ No newline at end of file
diff --git a/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.nl.resx b/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.nl.resx
deleted file mode 100644
index 1a4bedae9..000000000
--- a/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.nl.resx
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0"/>
- <xsd:element name="comment" type="xsd:string" minOccurs="0"/>
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string"/>
- <xsd:attribute name="type" type="xsd:string"/>
- <xsd:attribute name="mimetype" type="xsd:string"/>
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <data name="CopiedMessage">
- <value>Gekopieerd!</value>
- <comment>Confirmation message shown when text is copied to clipboard</comment>
- </data>
-</root>
\ No newline at end of file
diff --git a/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.uk.resx b/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.uk.resx
deleted file mode 100644
index 262879905..000000000
--- a/apps/server/AliasVault.Client/Resources/Components/Main/Forms/CopyPasteFormRow.uk.resx
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0"/>
- <xsd:element name="comment" type="xsd:string" minOccurs="0"/>
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string"/>
- <xsd:attribute name="type" type="xsd:string"/>
- <xsd:attribute name="mimetype" type="xsd:string"/>
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <data name="CopiedMessage">
- <value>Copied!</value>
- <comment>Confirmation message shown when text is copied to clipboard</comment>
- </data>
-</root>
\ No newline at end of file
diff --git a/apps/server/AliasVault.Client/wwwroot/js/utilities.js b/apps/server/AliasVault.Client/wwwroot/js/utilities.js
index af357d224..f1874a5a8 100644
--- a/apps/server/AliasVault.Client/wwwroot/js/utilities.js
+++ b/apps/server/AliasVault.Client/wwwroot/js/utilities.js
@@ -72,10 +72,7 @@ window.clipboardManager = {
// Notify Blazor of status change
notifyStatusChange: function(status) {
if (this.statusCallback) {
- try {
- this.statusCallback.invokeMethodAsync('OnClipboardStatusChange', status);
- } catch (error) {
- }
+ this.statusCallback.invokeMethodAsync('OnClipboardStatusChange', status);
}
},
@@ -116,10 +113,8 @@ window.clipboardManager = {
// Don't clear the clearByTime, we'll retry when we get focus
this.clearPending = true;
this.notifyStatusChange('pending');
- return false;
}
console.warn(`[Clipboard] ❌ ERROR - Failed to clear clipboard from: ${source}`, error);
- return false;
});
},
@@ -133,8 +128,6 @@ window.clipboardManager = {
setTimeout(() => {
this.attemptClipboardClear(source);
}, 100);
- } else if (this.clearByTime) {
- const remaining = Math.ceil((this.clearByTime - Date.now()) / 1000);
}
}
};