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 {
113113};
114114
115115pub const dynamic_providers = struct {
116 pub var _gitea = Provider{
116 pub const _gitea = Provider{
117117 .id = "_gitea",
118118 .authorize_url = "https://{domain}/login/oauth/authorize",
119119 .token_url = "https://{domain}/login/oauth/access_token",
......@@ -123,7 +123,7 @@ pub const dynamic_providers = struct {
123123 .logo = icon_url("gitea"),
124124 .color = "#609926",
125125 };
126 pub var _gitlab = Provider{
126 pub const _gitlab = Provider{
127127 .id = "_gitlab",
128128 .authorize_url = "https://{domain}/oauth/authorize",
129129 .token_url = "https://{domain}/oauth/token",
......@@ -134,7 +134,7 @@ pub const dynamic_providers = struct {
134134 .logo = icon_url("gitlab"),
135135 .color = "#FCA121",
136136 };
137 pub var _mastodon = Provider{
137 pub const _mastodon = Provider{
138138 .id = "_mastodon",
139139 .authorize_url = "https://{domain}/oauth/authorize",
140140 .token_url = "https://{domain}/oauth/token",
......@@ -145,7 +145,7 @@ pub const dynamic_providers = struct {
145145 .logo = icon_url("mastodon"),
146146 .color = "#3088D4",
147147 };
148 pub var _pleroma = Provider{
148 pub const _pleroma = Provider{
149149 .id = "_pleroma",
150150 .authorize_url = "https://{domain}/oauth/authorize",
151151 .token_url = "https://{domain}/oauth/token",