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

fix: Update social links #173

Closed
2 changes: 2 additions & 0 deletions api/models/socials.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ class SocialFields(BaseModel):

name: str
url: str
icon_light: str
icon_dark: str
preferred: bool


Expand Down
54 changes: 47 additions & 7 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,58 @@

# Social Links

social_links: list[dict[str, str | bool]] = [
{"name": "Website", "url": "https://revanced.app", "preferred": True},
{"name": "GitHub", "url": "https://github.com/revanced", "preferred": False},
{"name": "Twitter", "url": "https://twitter.com/revancedapp", "preferred": False},
{"name": "Discord", "url": "https://revanced.app/discord", "preferred": True},
social_links: list[dict[str, str, str, str | bool]] = [
{
"name": "Website",
"url": "https://revanced.app",
"icon_light": "https://revanced.app/favicon.ico",
"icon_dark": "https://revanced.app/favicon.ico",
"preferred": True,
},
{
"name": "Discord",
"url": "https://discord.gg/revanced",
LisoUseInAIKyrios marked this conversation as resolved.
Show resolved Hide resolved
# Icon is also at https://discord.com/assets/images/favicon.ico
# but that url fails to load from an Android embedded web view (unknown why).
oSumAtrIX marked this conversation as resolved.
Show resolved Hide resolved
"icon_light": "https://assets-global.website-files.com/6257adef93867e50d84d30e2/6266bc493fb42d4e27bb8393_847541504914fd33810e70a0ea73177e.ico",
"icon_dark": "https://assets-global.website-files.com/6257adef93867e50d84d30e2/6266bc493fb42d4e27bb8393_847541504914fd33810e70a0ea73177e.ico",
"preferred": True,
},
{
"name": "Reddit",
"url": "https://www.reddit.com/r/revancedapp",
"icon_light": "https://www.redditstatic.com/shreddit/assets/favicon/192x192.png",
"icon_dark": "https://www.redditstatic.com/shreddit/assets/favicon/192x192.png",
"preferred": False,
},
{
"name": "Telegram",
"url": "https://t.me/app_revanced",
"icon_light": "https://web.telegram.org/k/assets/img/android-chrome-192x192.png",
"icon_dark": "https://web.telegram.org/k/assets/img/android-chrome-192x192.png",
"preferred": False,
},
{
"name": "Twitter",
"url": "https://twitter.com/revancedapp",
"icon_light": "https://abs.twimg.com/responsive-web/client-web/icon-default-large.9ab12c3a.png",
"icon_dark": "https://abs.twimg.com/responsive-web/client-web/icon-default-large.9ab12c3a.png",
"preferred": False,
},
{
"name": "GitHub",
"url": "https://github.com/ReVanced",
"icon_light": "https://github.githubassets.com/favicons/favicon.svg",
"icon_dark": "https://github.githubassets.com/favicons/favicon-dark.svg",
"preferred": False,
},
{
"name": "YouTube",
"url": "https://youtube.com/@ReVanced",
"icon_light": "https://www.gstatic.com/youtube/img/branding/favicon/favicon_192x192.png",
"icon_dark": "https://www.gstatic.com/youtube/img/branding/favicon/favicon_192x192.png",
"preferred": False,
},
{"name": "Telegram", "url": "https://t.me/app_revanced", "preferred": False},
{"name": "YouTube", "url": "https://www.youtube.com/@ReVanced", "preferred": False},
]

# Donation info
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ aiodns==3.1.1 ; (sys_platform == "linux" or sys_platform == "darwin") and python
aiofiles==23.2.1 ; python_version >= "3.11" and python_version < "3.13"
aiohttp[speedups]==3.9.1 ; python_version >= "3.11" and python_version < "3.13"
aiosignal==1.3.1 ; python_version >= "3.11" and python_version < "3.13"
argon2-cffi-bindings==21.2.0 ; python_version >= "3.11" and python_version < "3.13"
argon2-cffi==23.1.0 ; python_version >= "3.11" and python_version < "3.13"
argon2-cffi-bindings==21.2.0 ; python_version >= "3.11" and python_version < "3.13"
asyncstdlib==3.12.0 ; python_version >= "3.11" and python_version < "3.13"
attrs==23.2.0 ; python_version >= "3.11" and python_version < "3.13"
beautifulsoup4==4.12.2 ; python_version >= "3.11" and python_version < "3.13"
Expand Down Expand Up @@ -40,11 +40,11 @@ pyjwt==2.8.0 ; python_version >= "3.11" and python_version < "3.13"
pyseto==1.7.7 ; python_version >= "3.11" and python_version < "3.13"
python-dateutil==2.8.2 ; python_version >= "3.11" and python_version < "3.13"
pyyaml==6.0.1 ; python_version >= "3.11" and python_version < "3.13"
sanic==23.12.1 ; python_version >= "3.11" and python_version < "3.13"
sanic-beskar==2.3.2 ; python_version >= "3.11" and python_version < "3.13"
sanic-ext==23.12.0 ; python_version >= "3.11" and python_version < "3.13"
sanic-limiter @ git+https://github.com/Omegastick/sanic-limiter@843e13144aa21d843ce212a7c1db31b72ce8a103 ; python_version >= "3.11" and python_version < "3.13"
sanic-routing==23.12.0 ; python_version >= "3.11" and python_version < "3.13"
sanic==23.12.1 ; python_version >= "3.11" and python_version < "3.13"
sanic[ext]==23.12.1 ; python_version >= "3.11" and python_version < "3.13"
sentry-sdk[sanic]==1.39.2 ; python_version >= "3.11" and python_version < "3.13"
six==1.16.0 ; python_version >= "3.11" and python_version < "3.13"
Expand Down