perf: Lazy-load public-api dependencies to reduce baseline memory usage (#5049)

* refactor: Load swagger and openapi dependencies conditionally

* disable public api in tests to reduce heal usage

* update the link and text in SettingsApiView when swagger ui is disabled
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-01-02 12:14:58 +01:00
committed by GitHub
parent b828cb31d6
commit a455cce7e6
9 changed files with 79 additions and 34 deletions

View File

@@ -1127,6 +1127,8 @@
"settings.api.view.info.webhook": "webhook node",
"settings.api.view.myKey": "My API Key",
"settings.api.view.tryapi": "Try it out using the",
"settings.api.view.more-details": "You can find more details in",
"settings.api.view.external-docs": "the API documentation",
"settings.api.view.error": "Could not check if an api key already exists.",
"settings.version": "Version",
"settings.usageAndPlan.title": "Usage and plan",