Merges extensions into one page (#1656)
* Merged extensions into one page * Bundle files updated * Fixed install bug * feat: client side version compatibility check * fix: hide `Activated/Deactivated` toggle for non-admins * feat: translate labels to `EN` * feat: add other language translations * chore: update bundle for i18n * feat: check extension version server-side * feat: show warning message * refactor: nicer mapping Co-authored-by: dni ⚡ <office@dnilabs.com> * chore: code format * chore: extra log * feat: check_latest_version of ext * feat: show tooltip for new version * chore: `make bundle` * chore: `mypy` * chore: code clean-up * feat: show version in badge (spacing is fine) * chore: make bundle * feat: check `min_lnbits_version` and `warning` in `config.json` * chore: code formatting * chore: downgrade log level * fix: extract `ExtensionsInstallSettings` as readonly * fix: do not show installed and deactivated extensions * chore: format * fix: `Enable` button tooltip * fix: set installed release after installation * fix: hide deactivated extensions from regular users * bundle fundle * bundle fundle --------- Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com> Co-authored-by: dni ⚡ <office@dnilabs.com>
This commit is contained in:
@@ -50,6 +50,9 @@ class ExtensionsSettings(LNbitsSettings):
|
||||
"https://raw.githubusercontent.com/lnbits/lnbits-extensions/main/extensions.json"
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
class ExtensionsInstallSettings(LNbitsSettings):
|
||||
lnbits_extensions_default_install: List[str] = Field(default=[])
|
||||
# required due to GitHUb rate-limit
|
||||
lnbits_ext_github_token: str = Field(default="")
|
||||
@@ -279,6 +282,7 @@ class TransientSettings(InstalledExtensionsSettings):
|
||||
|
||||
class ReadOnlySettings(
|
||||
EnvSettings,
|
||||
ExtensionsInstallSettings,
|
||||
SaaSSettings,
|
||||
PersistenceSettings,
|
||||
SuperUserSettings,
|
||||
|
||||
Reference in New Issue
Block a user