Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added branding #104

Merged
merged 6 commits into from
Oct 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions api/models/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,22 @@ 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.
"""

name: str
about: str
branding: BrandingFields
contact: ContactFields
socials: list[SocialFields]
donations: DonationFields
Expand Down
3 changes: 3 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@
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": "[email protected]"},
"socials": social_links,
"donations": {"wallets": wallets, "links": links},
Expand Down
Loading