diff --git a/apps/server/AliasVault.Client/Main/Pages/Settings/ImportExport/Components/ImportService1Password.razor b/apps/server/AliasVault.Client/Main/Pages/Settings/ImportExport/Components/ImportService1Password.razor index d02390800..a03aeaa3f 100644 --- a/apps/server/AliasVault.Client/Main/Pages/Settings/ImportExport/Components/ImportService1Password.razor +++ b/apps/server/AliasVault.Client/Main/Pages/Settings/ImportExport/Components/ImportService1Password.razor @@ -11,7 +11,7 @@ ServiceName="1Password" Description="@Localizer["OnePasswordDescription"]" LogoUrl="img/importers/1password.svg" - AcceptedFileTypes=".csv,.1pux" + AcceptedFileExtensions="AcceptedExtensions" ProcessFileCallback="ProcessFile">
@Localizer["OnePasswordInstructionsPart1"]
@Localizer["OnePasswordInstructionsPart2"]
@@ -19,6 +19,7 @@ @code { private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Settings.ImportExport.ImportServices", "AliasVault.Client"); + private static readonly string[] AcceptedExtensions = new[] { ".1pux", ".csv" }; private static async Task@Localizer["AliasVaultInstructionsPart1"]
-- @Localizer["AliasVaultSupportedFormatsInfo"] -
@code { private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Settings.ImportExport.ImportServices", "AliasVault.Client"); + private static readonly string[] AcceptedExtensions = new[] { ".avex", ".avux", ".csv" }; private ImportServiceCard? importServiceCard; ///@Localizer["BitwardenInstructionsPart1"]
@Localizer["BitwardenInstructionsPart2"]
@@ -19,6 +19,7 @@ @code { private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Settings.ImportExport.ImportServices", "AliasVault.Client"); + private static readonly string[] AcceptedExtensions = new[] { ".csv", ".zip" }; private static async Task@Localizer["supportedFormats"]: - @AcceptedFileTypes + @string.Join(", ", AcceptedFileExtensions)
@string.Format(Localizer["UploadExportFileText"], ServiceName)
@@ -305,17 +305,17 @@ public Func@Localizer["ChromeInstructionsPart1"]
@Localizer["ChromeInstructionsPart2"]
@@ -19,6 +19,7 @@ @code { private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Settings.ImportExport.ImportServices", "AliasVault.Client"); + private static readonly string[] AcceptedExtensions = new[] { ".csv" }; private static async Task@Localizer["DashlaneInstructionsPart1"]
@Localizer["DashlaneInstructionsPart2"]
@@ -19,6 +19,7 @@ @code { private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Settings.ImportExport.ImportServices", "AliasVault.Client"); + private static readonly string[] AcceptedExtensions = new[] { ".csv" }; private static async Task@Localizer["DropboxInstructionsPart1"]
@Localizer["UploadFileInstructionCommon"]
@@ -19,6 +19,7 @@ @code { private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Settings.ImportExport.ImportServices", "AliasVault.Client"); + private static readonly string[] AcceptedExtensions = new[] { ".csv" }; private static async Task@Localizer["EdgeInstructionsPart1"]
@Localizer["EdgeInstructionsPart2"]
@@ -19,6 +19,7 @@ @code { private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Settings.ImportExport.ImportServices", "AliasVault.Client"); + private static readonly string[] AcceptedExtensions = new[] { ".csv" }; private static async Task@Localizer["EnpassInstructionsPart1"]
@Localizer["EnpassInstructionsPart2"]
@@ -19,6 +19,7 @@ @code { private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Settings.ImportExport.ImportServices", "AliasVault.Client"); + private static readonly string[] AcceptedExtensions = new[] { ".csv" }; private static async Task@Localizer["FirefoxInstructionsPart1"]
@Localizer["FirefoxInstructionsPart2"]
@@ -19,6 +19,7 @@ @code { private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Settings.ImportExport.ImportServices", "AliasVault.Client"); + private static readonly string[] AcceptedExtensions = new[] { ".csv" }; private static async Task@Localizer["GenericCsvInstructionsPart1"]
@Localizer["KeePassInstructionsPart1"]
@Localizer["KeePassInstructionsPart2"]
@@ -18,6 +18,7 @@ @code { private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Settings.ImportExport.ImportServices", "AliasVault.Client"); + private static readonly string[] AcceptedExtensions = new[] { ".csv" }; private static async Task@Localizer["KeePassXCInstructionsPart1"]
@Localizer["KeePassXCInstructionsPart2"]
@@ -18,6 +18,7 @@ @code { private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Settings.ImportExport.ImportServices", "AliasVault.Client"); + private static readonly string[] AcceptedExtensions = new[] { ".csv" }; private static async Task@Localizer["LastPassInstructionsPart1"]
@Localizer["LastPassInstructionsPart2"]
@@ -18,6 +18,7 @@ @code { private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Settings.ImportExport.ImportServices", "AliasVault.Client"); + private static readonly string[] AcceptedExtensions = new[] { ".csv" }; private static async Task@Localizer["NordPassInstructionsPart1"]
@Localizer["NordPassInstructionsPart2"]
@@ -18,6 +18,7 @@ @code { private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Settings.ImportExport.ImportServices", "AliasVault.Client"); + private static readonly string[] AcceptedExtensions = new[] { ".csv" }; private static async Task@Localizer["ProtonPassInstructionsPart1"]
@Localizer["ProtonPassInstructionsPart2"]
@@ -18,6 +18,7 @@ @code { private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Settings.ImportExport.ImportServices", "AliasVault.Client"); + private static readonly string[] AcceptedExtensions = new[] { ".csv" }; private static async Task@Localizer["RoboformInstructionsPart1"]
@Localizer["RoboformInstructionsPart2"]
@@ -18,6 +18,7 @@ @code { private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Settings.ImportExport.ImportServices", "AliasVault.Client"); + private static readonly string[] AcceptedExtensions = new[] { ".csv" }; private static async Task@Localizer["StrongboxInstructionsPart1"]
@Localizer["StrongboxInstructionsPart2"]
@@ -18,6 +18,7 @@ @code { private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Settings.ImportExport.ImportServices", "AliasVault.Client"); + private static readonly string[] AcceptedExtensions = new[] { ".csv" }; private static async Task