feat(storage): add Evernote destination (#862)
* feat(storage): add Evernote destination * style: apply ruff auto-fix - Auto-formatted code with ruff format - Applied ruff linting fixes with --fix Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Christian Krakau-Louis <christian@Christians-Mac-mini-7.local> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8e744c076d
commit
4b46c4baf8
@@ -174,6 +174,21 @@ def get_provider_status() -> dict[str, dict[str, object]]:
|
||||
},
|
||||
}
|
||||
|
||||
providers["Evernote"] = {
|
||||
"name": "Evernote",
|
||||
"icon": "fa-brands fa-evernote",
|
||||
"configured": bool(getattr(settings, "evernote_auth_token", None)),
|
||||
"enabled": getattr(settings, "evernote_enabled", True),
|
||||
"description": "Create Evernote notes with document metadata and PDF attachments",
|
||||
"details": {
|
||||
"auth_token": mask_sensitive_value(getattr(settings, "evernote_auth_token", None)),
|
||||
"sandbox": getattr(settings, "evernote_sandbox", False),
|
||||
"notebook_guid": getattr(settings, "evernote_notebook_guid", "Not set"),
|
||||
"default_tags": getattr(settings, "evernote_default_tags", "Not set"),
|
||||
"include_metadata": getattr(settings, "evernote_include_metadata", True),
|
||||
},
|
||||
}
|
||||
|
||||
# Add FTP configuration to providers
|
||||
providers["FTP Storage"] = {
|
||||
"name": "FTP Storage",
|
||||
|
||||
@@ -145,6 +145,12 @@ def validate_storage_configs() -> dict[str, list[str]]:
|
||||
email_issues.append("DEST_EMAIL_DEFAULT_RECIPIENT is not configured")
|
||||
issues["email"] = email_issues
|
||||
|
||||
# Validate Evernote
|
||||
evernote_issues = []
|
||||
if not getattr(settings, "evernote_auth_token", None):
|
||||
evernote_issues.append("EVERNOTE_AUTH_TOKEN is not configured")
|
||||
issues["evernote"] = evernote_issues
|
||||
|
||||
# Validate S3
|
||||
s3_issues = []
|
||||
if not getattr(settings, "s3_bucket_name", None):
|
||||
|
||||
Reference in New Issue
Block a user