chore: deprecate standalone SecureStoreManager utility
Move SecureStoreManager project and tests to Deprecated folder and remove from solution. SecureStore functionality is now integrated into ConfigManager.
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
namespace JdeScoping.SecureStoreManager.Constants;
|
||||
|
||||
/// <summary>
|
||||
/// Centralized string constants for dialog titles, messages, and validation errors.
|
||||
/// </summary>
|
||||
public static class DialogStrings
|
||||
{
|
||||
// Dialog Titles
|
||||
public const string UnsavedChangesTitle = "Unsaved Changes";
|
||||
public const string ConfirmDeleteTitle = "Confirm Delete";
|
||||
public const string ValidationErrorTitle = "Validation Error";
|
||||
public const string ErrorTitle = "Error";
|
||||
public const string KeyGeneratedTitle = "Key Generated";
|
||||
public const string KeyExportedTitle = "Key Exported";
|
||||
|
||||
// Messages
|
||||
public const string UnsavedChangesMessage = "You have unsaved changes. Do you want to save before continuing?";
|
||||
public const string ConfirmDeleteFormat = "Are you sure you want to delete the secret '{0}'?\n\nThis action cannot be undone.";
|
||||
public const string DefaultValidationError = "Please fill in all required fields.";
|
||||
|
||||
// Validation Messages
|
||||
public const string StorePathRequired = "Store path is required.";
|
||||
public const string KeyFilePathRequired = "Key file path is required.";
|
||||
public const string PasswordRequired = "Password is required.";
|
||||
public const string PasswordsDoNotMatch = "Passwords do not match.";
|
||||
public const string KeyRequired = "Key is required.";
|
||||
public const string StoreFileNotFound = "Store file does not exist.";
|
||||
public const string KeyFileNotFound = "Key file does not exist.";
|
||||
|
||||
// File Dialog Titles
|
||||
public const string ChooseStoreLocation = "Choose Store Location";
|
||||
public const string ChooseKeyFileLocation = "Choose Key File Location";
|
||||
public const string SelectStoreFile = "Select Store File";
|
||||
public const string SelectKeyFile = "Select Key File";
|
||||
public const string GenerateKeyFileTitle = "Generate Key File";
|
||||
public const string ExportKeyTitle = "Export Key";
|
||||
|
||||
// Success Message Formats
|
||||
public const string KeyFileGeneratedFormat = "Key file generated successfully:\n\n{0}";
|
||||
public const string KeyExportedFormat = "Key exported successfully:\n\n{0}";
|
||||
|
||||
// Error Message Formats
|
||||
public const string FailedToCreateStoreFormat = "Failed to create store:\n\n{0}";
|
||||
public const string FailedToOpenStoreFormat = "Failed to open store:\n\n{0}";
|
||||
public const string FailedToSaveStoreFormat = "Failed to save store:\n\n{0}";
|
||||
public const string FailedToSaveSecretFormat = "Failed to save secret:\n\n{0}";
|
||||
public const string FailedToDeleteSecretFormat = "Failed to delete secret:\n\n{0}";
|
||||
public const string FailedToGenerateKeyFormat = "Failed to generate key file:\n\n{0}";
|
||||
public const string FailedToExportKeyFormat = "Failed to export key:\n\n{0}";
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
namespace JdeScoping.SecureStoreManager.Constants;
|
||||
|
||||
/// <summary>
|
||||
/// Centralized constants for file extensions and patterns used in file dialogs.
|
||||
/// </summary>
|
||||
public static class FileExtensions
|
||||
{
|
||||
// SecureStore files
|
||||
public const string StorePattern = "*.json";
|
||||
public const string StoreExtension = ".json";
|
||||
public const string StoreTypeName = "SecureStore Files";
|
||||
|
||||
// Key files
|
||||
public const string KeyPattern = "*.key";
|
||||
public const string KeyExtension = ".key";
|
||||
public const string KeyTypeName = "Key Files";
|
||||
|
||||
// All files
|
||||
public const string AllFilesPattern = "*.*";
|
||||
public const string AllFilesTypeName = "All Files";
|
||||
}
|
||||
Reference in New Issue
Block a user