authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-09-11 23:55:20 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-09-11 23:55:20 -07:00
log24ba6e57129328316af716075ecc3f0dbaaa1865
treea5e79e682afbc68b99bd3b6c892adcd548a565bc
parentbbd0b5ef4042e5f77c00145d40b4592642e64478

move dynamic providers into their own struct


1 files changed, 3 insertions(+), 0 deletions(-)

src/lib.zig+3
......@@ -27,6 +27,7 @@ pub const providers = struct {
2727 return "https://unpkg.com/simple-icons@" ++ "5.13.0" ++ "/icons/" ++ name ++ ".svg";
2828 }
2929
30pub const providers = struct {
3031 pub var amazon = Provider{
3132 .id = "amazon",
3233 .authorize_url = "https://www.amazon.com/ap/oa",
......@@ -110,7 +111,9 @@ pub const providers = struct {
110111 .logo = icon_url("reddit"),
111112 .color = "#FF4500",
112113 };
114};
113115
116pub const dynamic_providers = struct {
114117 pub var _gitea = Provider{
115118 .id = "_gitea",
116119 .authorize_url = "https://{domain}/login/oauth/authorize",