From 5f62a7b8707361e1496090f0258b8ca2f679b00d Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Sun, 9 Jul 2023 19:38:29 -0700 Subject: [PATCH 1/7] proxy for url_shortener --- remix.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/remix.config.js b/remix.config.js index a4e4fff..b2896ef 100644 --- a/remix.config.js +++ b/remix.config.js @@ -18,6 +18,7 @@ const proxyUrls = [ "/favicon.ico", "/sitemap.xml/", "/__/*", + "/l/*", ]; /** @type {import('@remix-run/dev').AppConfig} */ From 3f7efd318ef5a92400b79d63d974ee3c589cc554 Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Sun, 9 Jul 2023 19:38:31 -0700 Subject: [PATCH 2/7] package lock --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index e8250b3..eb874df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "gooey-remix", + "name": "gooey-ui", "lockfileVersion": 3, "requires": true, "packages": { From 6c06a8d4eed196c9471a06e62fed8124cafc73ec Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Mon, 10 Jul 2023 01:40:18 -0700 Subject: [PATCH 3/7] added robots.txt and renamed proxy endpoint --- app/robots.tsx | 14 ++++++++++++++ remix.config.js | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 app/robots.tsx diff --git a/app/robots.tsx b/app/robots.tsx new file mode 100644 index 0000000..e5ec8d7 --- /dev/null +++ b/app/robots.tsx @@ -0,0 +1,14 @@ +export const loader = () => { + const robotText = ` + User-agent: * + User-agent: AdsBot-Google + Disallow: /q/ + ` + // return the text content, a status 200 success response, and set the content type to text/plain + return new Response(robotText,{ + status: 200, + headers: { + "Content-Type": "text/plain", + } + }); +}; \ No newline at end of file diff --git a/remix.config.js b/remix.config.js index b2896ef..3d1ed96 100644 --- a/remix.config.js +++ b/remix.config.js @@ -18,7 +18,7 @@ const proxyUrls = [ "/favicon.ico", "/sitemap.xml/", "/__/*", - "/l/*", + "/q/*", ]; /** @type {import('@remix-run/dev').AppConfig} */ @@ -54,6 +54,7 @@ module.exports = { route(path, "proxy.tsx", { id: path }); } route("/__/realtime/*", "realtime.tsx"); + route("/robots.txt", "robots.tsx"); route("*", "app.tsx"); }); }, From 0aa15a61b695e67f2d3154bad629d3afb3960cab Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Tue, 11 Jul 2023 17:31:20 -0700 Subject: [PATCH 4/7] use /s instead of /q --- remix.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remix.config.js b/remix.config.js index 3d1ed96..a141665 100644 --- a/remix.config.js +++ b/remix.config.js @@ -18,7 +18,7 @@ const proxyUrls = [ "/favicon.ico", "/sitemap.xml/", "/__/*", - "/q/*", + "/s/*", ]; /** @type {import('@remix-run/dev').AppConfig} */ From 4ed23502d2513aab0e52f58d4fca8d6d3a68742a Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Tue, 11 Jul 2023 23:40:12 -0700 Subject: [PATCH 5/7] renamed endpoint again --- remix.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remix.config.js b/remix.config.js index a141665..7df5996 100644 --- a/remix.config.js +++ b/remix.config.js @@ -18,7 +18,7 @@ const proxyUrls = [ "/favicon.ico", "/sitemap.xml/", "/__/*", - "/s/*", + "/2/*", ]; /** @type {import('@remix-run/dev').AppConfig} */ From 64e1bb64d1a2c18f7dfe1f3418c9040537862e4c Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Sun, 30 Jul 2023 15:18:50 -0700 Subject: [PATCH 6/7] allow overwriting multi enum select state --- app/base.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/base.tsx b/app/base.tsx index 2fe1ddc..b64bbfb 100644 --- a/app/base.tsx +++ b/app/base.tsx @@ -399,7 +399,7 @@ function GuiSelect({ }; let selectValue = args.options.filter((opt: any) => - args.isMulti ? value.includes(opt.value) : opt.value === value + args.isMulti ? defaultValue.includes(opt.value) : opt.value === value ); // if selectedValue is not in options, then set it to the first option useEffect(() => { From 988f7d93c2d4432aad6e37477242bc60ab491592 Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Sun, 30 Jul 2023 15:24:03 -0700 Subject: [PATCH 7/7] removed unintended changes --- app/robots.tsx | 14 -------------- remix.config.js | 1 - 2 files changed, 15 deletions(-) delete mode 100644 app/robots.tsx diff --git a/app/robots.tsx b/app/robots.tsx deleted file mode 100644 index e5ec8d7..0000000 --- a/app/robots.tsx +++ /dev/null @@ -1,14 +0,0 @@ -export const loader = () => { - const robotText = ` - User-agent: * - User-agent: AdsBot-Google - Disallow: /q/ - ` - // return the text content, a status 200 success response, and set the content type to text/plain - return new Response(robotText,{ - status: 200, - headers: { - "Content-Type": "text/plain", - } - }); -}; \ No newline at end of file diff --git a/remix.config.js b/remix.config.js index 7df5996..4ad9720 100644 --- a/remix.config.js +++ b/remix.config.js @@ -54,7 +54,6 @@ module.exports = { route(path, "proxy.tsx", { id: path }); } route("/__/realtime/*", "realtime.tsx"); - route("/robots.txt", "robots.tsx"); route("*", "app.tsx"); }); },