Skip to content

Commit 7923be9

Browse files
committed
adopt @epic-web/config
1 parent b26b673 commit 7923be9

File tree

18 files changed

+904
-1337
lines changed

18 files changed

+904
-1337
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 85 deletions
This file was deleted.

.prettierrc.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"recommendations": [
3-
"bradlc.vscode-tailwindcss",
4-
"dbaeumer.vscode-eslint",
5-
"esbenp.prettier-vscode",
6-
"prisma.prisma",
7-
"qwtel.sqlite-viewer",
8-
"yoavbls.pretty-ts-errors",
9-
"github.vscode-github-actions"
10-
]
2+
"recommendations": [
3+
"bradlc.vscode-tailwindcss",
4+
"dbaeumer.vscode-eslint",
5+
"esbenp.prettier-vscode",
6+
"prisma.prisma",
7+
"qwtel.sqlite-viewer",
8+
"yoavbls.pretty-ts-errors",
9+
"github.vscode-github-actions"
10+
]
1111
}

.vscode/settings.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"typescript.preferences.autoImportFileExcludePatterns": [
3-
"@remix-run/server-runtime",
4-
"@remix-run/router",
5-
"express",
6-
"@radix-ui/**",
7-
"@react-email/**",
8-
"react-router-dom",
9-
"react-router",
10-
"stream/consumers",
11-
"node:stream/consumers",
12-
"node:test",
13-
"console",
14-
"node:console"
15-
],
16-
"workbench.editorAssociations": {
17-
"*.db": "sqlite-viewer.view"
18-
}
2+
"typescript.preferences.autoImportFileExcludePatterns": [
3+
"@remix-run/server-runtime",
4+
"@remix-run/router",
5+
"express",
6+
"@radix-ui/**",
7+
"@react-email/**",
8+
"react-router-dom",
9+
"react-router",
10+
"stream/consumers",
11+
"node:stream/consumers",
12+
"node:test",
13+
"console",
14+
"node:console"
15+
],
16+
"workbench.editorAssociations": {
17+
"*.db": "sqlite-viewer.view"
18+
}
1919
}

app/components/ui/icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { type SVGProps } from 'react'
22
import { cn } from '#app/utils/misc.tsx'
3-
import { type IconName } from '@/icon-name'
43
import href from './icons/sprite.svg'
4+
import { type IconName } from '@/icon-name'
55

66
export { href }
77
export { IconName }

app/routes/_marketing+/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ export default function Index() {
5050
</a>
5151
<h1
5252
data-heading
53-
className="mt-8 animate-slide-top text-4xl font-medium text-foreground [animation-fill-mode:backwards] [animation-delay:0.3s] md:text-5xl xl:mt-4 xl:animate-slide-left xl:text-6xl xl:[animation-fill-mode:backwards] xl:[animation-delay:0.8s]"
53+
className="mt-8 animate-slide-top text-4xl font-medium text-foreground [animation-delay:0.3s] [animation-fill-mode:backwards] md:text-5xl xl:mt-4 xl:animate-slide-left xl:text-6xl xl:[animation-delay:0.8s] xl:[animation-fill-mode:backwards]"
5454
>
5555
<a href="https://www.epicweb.dev/stack">The Epic Stack</a>
5656
</h1>
5757
<p
5858
data-paragraph
59-
className="mt-6 animate-slide-top text-xl/7 text-muted-foreground [animation-fill-mode:backwards] [animation-delay:0.8s] xl:mt-8 xl:animate-slide-left xl:text-xl/6 xl:leading-10 xl:[animation-fill-mode:backwards] xl:[animation-delay:1s]"
59+
className="mt-6 animate-slide-top text-xl/7 text-muted-foreground [animation-delay:0.8s] [animation-fill-mode:backwards] xl:mt-8 xl:animate-slide-left xl:text-xl/6 xl:leading-10 xl:[animation-delay:1s] xl:[animation-fill-mode:backwards]"
6060
>
6161
Check the{' '}
6262
<a

app/routes/resources+/theme-switch.tsx

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
import { useForm, getFormProps } from '@conform-to/react'
22
import { parseWithZod } from '@conform-to/zod'
33
import { invariantResponse } from '@epic-web/invariant'
4-
import {
5-
json,
6-
type ActionFunctionArgs,
7-
} from '@remix-run/node'
8-
import {
9-
useFetcher,
10-
useFetchers,
11-
} from '@remix-run/react'
4+
import { json, type ActionFunctionArgs } from '@remix-run/node'
5+
import { useFetcher, useFetchers } from '@remix-run/react'
126
import { z } from 'zod'
137
import { Icon } from '#app/components/ui/icon.tsx'
148
import { useHints } from '#app/utils/client-hints.tsx'
@@ -35,7 +29,11 @@ export async function action({ request }: ActionFunctionArgs) {
3529
return json({ result: submission.reply() }, responseInit)
3630
}
3731

38-
export function ThemeSwitch({ userPreference }: { userPreference?: Theme | null }) {
32+
export function ThemeSwitch({
33+
userPreference,
34+
}: {
35+
userPreference?: Theme | null
36+
}) {
3937
const fetcher = useFetcher<typeof action>()
4038

4139
const [form] = useForm({
@@ -66,7 +64,11 @@ export function ThemeSwitch({ userPreference }: { userPreference?: Theme | null
6664
}
6765

6866
return (
69-
<fetcher.Form method="POST" {...getFormProps(form)} action="/resources/theme-switch">
67+
<fetcher.Form
68+
method="POST"
69+
{...getFormProps(form)}
70+
action="/resources/theme-switch"
71+
>
7072
<input type="hidden" name="theme" value={nextMode} />
7173
<div className="flex gap-2">
7274
<button
@@ -86,7 +88,9 @@ export function ThemeSwitch({ userPreference }: { userPreference?: Theme | null
8688
*/
8789
export function useOptimisticThemeMode() {
8890
const fetchers = useFetchers()
89-
const themeFetcher = fetchers.find(f => f.formAction === '/resources/theme-switch')
91+
const themeFetcher = fetchers.find(
92+
f => f.formAction === '/resources/theme-switch',
93+
)
9094

9195
if (themeFetcher && themeFetcher.formData) {
9296
const submission = parseWithZod(themeFetcher.formData, {
@@ -111,4 +115,4 @@ export function useTheme() {
111115
return optimisticMode === 'system' ? hints.theme : optimisticMode
112116
}
113117
return requestInfo.userPrefs.theme ?? hints.theme
114-
}
118+
}

components.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"$schema": "https://ui.shadcn.com/schema.json",
3-
"style": "default",
4-
"rsc": false,
5-
"tailwind": {
6-
"config": "tailwind.config.ts",
7-
"css": "app/styles/tailwind.css",
8-
"baseColor": "slate",
9-
"cssVariables": true
10-
},
11-
"aliases": {
12-
"components": "#app/components",
13-
"utils": "#app/utils/misc.tsx"
14-
}
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": false,
5+
"tailwind": {
6+
"config": "tailwind.config.ts",
7+
"css": "app/styles/tailwind.css",
8+
"baseColor": "slate",
9+
"cssVariables": true
10+
},
11+
"aliases": {
12+
"components": "#app/components",
13+
"utils": "#app/utils/misc.tsx"
14+
}
1515
}

docs/database.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,8 @@ You've got a few options:
341341

342342
2. Commit this change and deploy the app to fly.
343343
- This will make sure that after building the dockerfile and deploying it
344-
to the fly machine, `npx prisma migrate deploy` and `npm start` commands won't be executed.
344+
to the fly machine, `npx prisma migrate deploy` and `npm start` commands
345+
won't be executed.
345346
3. Now that the main machine is up and running, you can SSH into it by
346347
running `fly ssh console --app [YOUR_APP_NAME]` in the terminal.
347348
4. Create a backup of the DB and download it by following the steps mentioned

docs/decisions/011-sitemaps.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ Date: 2023-06-05
44

55
Status: deprecated
66

7-
> Update: The contribution in [#456](https://github.com/epicweb-dev/epic-stack/pull/456)
8-
> made it quite easy to handle a sitemap so this decision has been reversed.
7+
> Update: The contribution in
8+
> [#456](https://github.com/epicweb-dev/epic-stack/pull/456) made it quite easy
9+
> to handle a sitemap so this decision has been reversed.
910
1011
## Context
1112

0 commit comments

Comments
 (0)