From 27320c57d8ad169de3fd9b0a4ef3c7810c63572a Mon Sep 17 00:00:00 2001 From: Reed von Redwitz Date: Wed, 13 Dec 2023 19:33:56 +0100 Subject: [PATCH] chore: upgrade to Fresh 1.6.1 and std 0.208.0 (#646) closes https://github.com/denoland/saaskit/issues/644 I see the guidelines have changed since I last contributed (thanks github!) and that caused me to look for an issue. Fortunately there was the above, but I see you want tailwind as well. I'll open this as a draft for now. --------- Co-authored-by: Asher Gomez --- README.md | 2 +- components/Footer.tsx | 23 +++---- components/Header.tsx | 33 ++++------ components/TabsBar.tsx | 12 ++-- deno.json | 14 ++--- e2e_test.ts | 74 +++++++++++----------- fresh.config.ts | 5 +- fresh.gen.ts | 115 +++++++++++++++++----------------- islands/ItemsList.tsx | 7 +-- islands/UsersTable.tsx | 5 +- plugins/error_handling.ts | 11 ++-- plugins/session.ts | 6 +- routes/_404.tsx | 5 +- routes/_500.tsx | 9 ++- routes/_app.tsx | 29 ++++++--- routes/account/index.tsx | 7 +-- routes/api/stripe-webhooks.ts | 7 ++- routes/api/vote.ts | 5 +- routes/blog/index.tsx | 3 +- routes/dashboard/stats.tsx | 3 +- routes/dashboard/users.tsx | 3 +- routes/pricing.tsx | 13 ++-- routes/submit.tsx | 9 ++- routes/users/[login].tsx | 3 +- routes/welcome.tsx | 2 +- static/styles.css | 42 +++++++++++++ tailwind.config.ts | 20 ++++++ twind.config.ts | 33 ---------- utils/constants.ts | 21 ------- utils/github_test.ts | 4 +- utils/http.ts | 4 +- utils/http_test.ts | 4 +- 32 files changed, 259 insertions(+), 274 deletions(-) create mode 100644 static/styles.css create mode 100644 tailwind.config.ts delete mode 100644 twind.config.ts diff --git a/README.md b/README.md index c781fe2ce..337eb3ea6 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,7 @@ See other examples of blog post files in [/posts](/posts). You can customize theme options such as spacing, color, etc. By default, Deno SaaSKit comes with `primary` and `secondary` colors predefined within -`twind.config.ts`. Change these values to match your desired color scheme. +`tailwind.config.ts`. Change these values to match your desired color scheme. ### Cover Image diff --git a/components/Footer.tsx b/components/Footer.tsx index e8d38b2a3..05039f3e7 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -1,12 +1,5 @@ // Copyright 2023 the Deno authors. All rights reserved. MIT license. -import { - ACTIVE_LINK_STYLES, - LINK_STYLES, - NAV_STYLES, - SITE_BAR_STYLES, - SITE_NAME, -} from "@/utils/constants.ts"; -import { cx } from "@twind/core"; +import { SITE_NAME } from "@/utils/constants.ts"; import IconBrandDiscord from "tabler_icons_tsx/brand-discord.tsx"; import IconBrandGithub from "tabler_icons_tsx/brand-github.tsx"; import IconRss from "tabler_icons_tsx/rss.tsx"; @@ -66,25 +59,23 @@ export interface FooterProps { export default function Footer(props: FooterProps) { return ( -