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 {...@@ -27,6 +27,7 @@ pub const providers = struct {
27 return "https://unpkg.com/simple-icons@" ++ "5.13.0" ++ "/icons/" ++ name ++ ".svg";27 return "https://unpkg.com/simple-icons@" ++ "5.13.0" ++ "/icons/" ++ name ++ ".svg";
28 }28 }
2929
30pub const providers = struct {
30 pub var amazon = Provider{31 pub var amazon = Provider{
31 .id = "amazon",32 .id = "amazon",
32 .authorize_url = "https://www.amazon.com/ap/oa",33 .authorize_url = "https://www.amazon.com/ap/oa",
...@@ -110,7 +111,9 @@ pub const providers = struct {...@@ -110,7 +111,9 @@ pub const providers = struct {
110 .logo = icon_url("reddit"),111 .logo = icon_url("reddit"),
111 .color = "#FF4500",112 .color = "#FF4500",
112 };113 };
114};
113115
116pub const dynamic_providers = struct {
114 pub var _gitea = Provider{117 pub var _gitea = Provider{
115 .id = "_gitea",118 .id = "_gitea",
116 .authorize_url = "https://{domain}/login/oauth/authorize",119 .authorize_url = "https://{domain}/login/oauth/authorize",