feat: added branding (#104)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
Benjamin 2023-10-14 11:38:41 -07:00 committed by GitHub
parent bace37dfd0
commit edcad620f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -11,6 +11,14 @@ class ContactFields(BaseModel):
email: str
class BrandingFields(BaseModel):
"""
Implements the fields for the API owner branding info.
"""
logo: str
class InfoFields(BaseModel):
"""
Implements the fields for the API owner info.
@ -18,6 +26,7 @@ class InfoFields(BaseModel):
name: str
about: str
branding: BrandingFields
contact: ContactFields
socials: list[SocialFields]
donations: DonationFields

View File

@ -120,6 +120,9 @@ links: list[dict[str, str | bool]] = [
default_info: dict[str, str | list[str | bool] | bool] = {
"name": "ReVanced",
"about": "ReVanced was born out of Vanced's discontinuation and it is our goal to continue the legacy of what Vanced left behind. Thanks to ReVanced Patcher, it's possible to create long-lasting patches for nearly any Android app. ReVanced's patching system is designed to allow patches to work on new versions of the apps automatically with bare minimum maintenance.",
"branding": {
"logo": "https://raw.githubusercontent.com/ReVanced/revanced-branding/main/assets/revanced-logo/revanced-logo.svg"
},
"contact": {"email": "contact@revanced.app"},
"socials": social_links,
"donations": {"wallets": wallets, "links": links},