authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-09-11 23:56:34 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-09-11 23:56:34 -07:00
log8f8fd1fd053c5258b3397cb251caad107f741be5
tree8962d8f70db020383c682ad815be75bba5430d06
parent6f89a0af8d67c0a2cab180caa02b5bd7b7516d47

make dynamic providers const


1 files changed, 4 insertions(+), 4 deletions(-)

src/lib.zig+4-4
...@@ -113,7 +113,7 @@ pub const providers = struct {...@@ -113,7 +113,7 @@ pub const providers = struct {
113};113};
114114
115pub const dynamic_providers = struct {115pub const dynamic_providers = struct {
116 pub var _gitea = Provider{116 pub const _gitea = Provider{
117 .id = "_gitea",117 .id = "_gitea",
118 .authorize_url = "https://{domain}/login/oauth/authorize",118 .authorize_url = "https://{domain}/login/oauth/authorize",
119 .token_url = "https://{domain}/login/oauth/access_token",119 .token_url = "https://{domain}/login/oauth/access_token",
...@@ -123,7 +123,7 @@ pub const dynamic_providers = struct {...@@ -123,7 +123,7 @@ pub const dynamic_providers = struct {
123 .logo = icon_url("gitea"),123 .logo = icon_url("gitea"),
124 .color = "#609926",124 .color = "#609926",
125 };125 };
126 pub var _gitlab = Provider{126 pub const _gitlab = Provider{
127 .id = "_gitlab",127 .id = "_gitlab",
128 .authorize_url = "https://{domain}/oauth/authorize",128 .authorize_url = "https://{domain}/oauth/authorize",
129 .token_url = "https://{domain}/oauth/token",129 .token_url = "https://{domain}/oauth/token",
...@@ -134,7 +134,7 @@ pub const dynamic_providers = struct {...@@ -134,7 +134,7 @@ pub const dynamic_providers = struct {
134 .logo = icon_url("gitlab"),134 .logo = icon_url("gitlab"),
135 .color = "#FCA121",135 .color = "#FCA121",
136 };136 };
137 pub var _mastodon = Provider{137 pub const _mastodon = Provider{
138 .id = "_mastodon",138 .id = "_mastodon",
139 .authorize_url = "https://{domain}/oauth/authorize",139 .authorize_url = "https://{domain}/oauth/authorize",
140 .token_url = "https://{domain}/oauth/token",140 .token_url = "https://{domain}/oauth/token",
...@@ -145,7 +145,7 @@ pub const dynamic_providers = struct {...@@ -145,7 +145,7 @@ pub const dynamic_providers = struct {
145 .logo = icon_url("mastodon"),145 .logo = icon_url("mastodon"),
146 .color = "#3088D4",146 .color = "#3088D4",
147 };147 };
148 pub var _pleroma = Provider{148 pub const _pleroma = Provider{
149 .id = "_pleroma",149 .id = "_pleroma",
150 .authorize_url = "https://{domain}/oauth/authorize",150 .authorize_url = "https://{domain}/oauth/authorize",
151 .token_url = "https://{domain}/oauth/token",151 .token_url = "https://{domain}/oauth/token",