From 8381d6e9c5c38e302d153e0a6119fba24a036130 Mon Sep 17 00:00:00 2001 From: rjt Date: Sun, 31 Dec 2023 22:14:06 +0530 Subject: [PATCH 1/2] block more crawlers and update webmanifest --- lib/banchan_web/components/layouts/root.sface | 7 +++++- priv/static/robots.txt | 12 ++++++++++ priv/static/site.webmanifest | 24 +++++++++---------- 3 files changed, 30 insertions(+), 13 deletions(-) diff --git a/lib/banchan_web/components/layouts/root.sface b/lib/banchan_web/components/layouts/root.sface index f1aa05ef9..9d70c1840 100644 --- a/lib/banchan_web/components/layouts/root.sface +++ b/lib/banchan_web/components/layouts/root.sface @@ -11,7 +11,6 @@ /> {/if} - <.live_title prefix={"Banchan Art |" <> " "}> {assigns[:page_title] || "The Co-operative Commissions Platform"} @@ -39,6 +38,12 @@ {/if} + {!-- The Common Crawl dataset. Used by GPT-3 (and GPT-3.5) and available for others. --} + + + {!-- Used by DeviantArt, ArtStation, etc. based on opt-in or opt-out --} + + {!-- Icons and favicons --} diff --git a/priv/static/robots.txt b/priv/static/robots.txt index 490b0ad3b..4d45cfc10 100644 --- a/priv/static/robots.txt +++ b/priv/static/robots.txt @@ -7,3 +7,15 @@ # Fuck AI User-agent: GPTBot Disallow: / + +# The Common Crawl dataset. Original source for GPT and others. +User-agent: CCBot +Disallow: / + +# The example for img2dataset, although the default is *None* +User-agent: img2dataset +Disallow: / + +# Google's Bard and Vertex AI generative APIs +User-agent: Google-Extended +Disallow: / diff --git a/priv/static/site.webmanifest b/priv/static/site.webmanifest index c42d1a545..a190f8d3d 100644 --- a/priv/static/site.webmanifest +++ b/priv/static/site.webmanifest @@ -1,14 +1,14 @@ { - "name": "", - "short_name": "", - "icons": [ - { - "src": "/android-chrome-96x96.png", - "sizes": "96x96", - "type": "image/png" - } - ], - "theme_color": "#ffffff", - "background_color": "#ffffff", - "display": "standalone" + "name": "Banchan Art", + "short_name": "Banchan Art", + "icons": [ + { + "src": "/android-chrome-96x96.png", + "sizes": "96x96", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" } From a8d5bbaba32246f89642b3ab906e3bb76e7355ca Mon Sep 17 00:00:00 2001 From: rjt Date: Sun, 31 Dec 2023 23:12:21 +0530 Subject: [PATCH 2/2] formatting --- lib/banchan/payments/payments.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/banchan/payments/payments.ex b/lib/banchan/payments/payments.ex index ddff20b91..9b7bff812 100644 --- a/lib/banchan/payments/payments.ex +++ b/lib/banchan/payments/payments.ex @@ -1626,6 +1626,7 @@ defmodule Banchan.Payments do end) |> Map.new(fn {currency, rate} -> currency = String.slice(currency, 3..5) + {String.to_existing_atom(currency), Repo.insert!( Forex.changeset(%Forex{from: base_currency}, %{to: currency, rate: rate}),