Skip to content

Commit 78ef252

Browse files
committed
format all the things
1 parent 4b2e70d commit 78ef252

File tree

10 files changed

+55
-46
lines changed

10 files changed

+55
-46
lines changed

app/utils/honeypot.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Honeypot, SpamError } from 'remix-utils/honeypot/server'
22

33
export const honeypot = new Honeypot({
4-
validFromFieldName: process.env.NODE_ENV === "test" ? null : undefined,
4+
validFromFieldName: process.env.NODE_ENV === 'test' ? null : undefined,
55
encryptionSeed: process.env.HONEYPOT_SECRET,
66
})
77

docs/authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ app could have been registered with an Organisation or another person's GitHub
8989
account.
9090

9191
Also make sure to register separate additional OAuth apps for each of your
92-
deployed environments (e.g. `staging` and `production`) and specify corresponding
93-
homepage and redirect urls in there.
92+
deployed environments (e.g. `staging` and `production`) and specify
93+
corresponding homepage and redirect urls in there.
9494

9595
## TOTP and Two-Factor Authentication
9696

docs/caching.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ indexes before caching the results.
2323
## Using the cache
2424

2525
You won't typically interact directly with the caches. Instead, you will use
26-
[`cachified`](https://www.npmjs.com/package/@epic-web/cachified) which is a nice abstraction for cache
27-
management. We have a small abstraction on top of it which allows you to pass
28-
`timings` to work seamlessly with
26+
[`cachified`](https://www.npmjs.com/package/@epic-web/cachified) which is a nice
27+
abstraction for cache management. We have a small abstraction on top of it which
28+
allows you to pass `timings` to work seamlessly with
2929
[the server timing utility](./server-timing.md).
3030

3131
Let's say we're making a request to tito to get a list of events. Tito's API is

docs/decisions/036-vite.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,17 @@ vite plugin will fail the build if it finds any issues so if it builds, it
2323
works. Additionally, this will help us make a cleaner separation between server
2424
and server/client code which is a good thing.
2525

26-
The simple rule is this: if it's a Remix export (like `loader`, or `action`) then
27-
it can be in the route. If it's our own utility export (like
28-
`requireRecentVerification` we had in the `/verify` route) then it needs to go in
29-
a `.server` file. To be clear, if you don't export it, then it's fine. Server-only
30-
utility functions are fine in routes. It just becomes a problem for remix when
31-
they are exported.
32-
33-
An interesting exception to this is sever-only code in the `handle` export like the
34-
[`getSitemapEntries` function](https://github.com/nasa-gcn/remix-seo). For this,
35-
you need to use [`vite-env-only`](https://github.com/pcattori/vite-env-only).
26+
The simple rule is this: if it's a Remix export (like `loader`, or `action`)
27+
then it can be in the route. If it's our own utility export (like
28+
`requireRecentVerification` we had in the `/verify` route) then it needs to go
29+
in a `.server` file. To be clear, if you don't export it, then it's fine.
30+
Server-only utility functions are fine in routes. It just becomes a problem for
31+
remix when they are exported.
32+
33+
An interesting exception to this is sever-only code in the `handle` export like
34+
the [`getSitemapEntries` function](https://github.com/nasa-gcn/remix-seo). For
35+
this, you need to use
36+
[`vite-env-only`](https://github.com/pcattori/vite-env-only).
3637

3738
## Decision
3839

@@ -41,5 +42,5 @@ Adopt vite.
4142
## Consequences
4243

4344
Almost everything is better. We have slightly more complicated rules around the
44-
server/client code separation, but for the most part that's better and there are fewer
45-
surprises.
45+
server/client code separation, but for the most part that's better and there are
46+
fewer surprises.

docs/examples.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,19 @@ This page links to examples of how to implement some things with the Epic Stack.
9191
- [Epic Stack Border animation](https://github.com/hakimLyon/epic-stack-with-css-border-animation)
9292
by [@hakimLyon](https://github.com/hakimLyon): An example of Epic Stack with a
9393
CSS border animation.
94-
- [Epic Stack with Keystatic](https://github.com/simonswiss/epic-stack-with-keystatic) by [@simonswiss](https://github.com/simonswiss): An example adding a MDX blog, editable from an elegant Admin UI with Keystatic.
95-
- [Epic Stack + Ariakit](https://github.com/gnapse/epic-stack) by [@gnapse](https://github.com/gnapse): A fork of the Epic Stack that uses [Ariakit](https://ariakit.org/) instead of Radix UI.
96-
- [Epic Stack + Stripe Payments](https://github.com/saurabhp75/epic-stripe) by [@saurabhp75](https://github.com/saurabhp75): An example of Epic Stack with [Stripe](https://ariakit.org/) payments.
97-
- [Epic Stack + Remix PWA](https://github.com/ShafSpecs/offline-epic-stack) by [@ShafSpecs](https://github.com/ShafSpecs): An example of using Epic Stack offline with [Remix PWA](https://remix-pwa.run). The guide can be found [here](https://remix-pwa.run/docs/main/offline)
94+
- [Epic Stack with Keystatic](https://github.com/simonswiss/epic-stack-with-keystatic)
95+
by [@simonswiss](https://github.com/simonswiss): An example adding a MDX blog,
96+
editable from an elegant Admin UI with Keystatic.
97+
- [Epic Stack + Ariakit](https://github.com/gnapse/epic-stack) by
98+
[@gnapse](https://github.com/gnapse): A fork of the Epic Stack that uses
99+
[Ariakit](https://ariakit.org/) instead of Radix UI.
100+
- [Epic Stack + Stripe Payments](https://github.com/saurabhp75/epic-stripe) by
101+
[@saurabhp75](https://github.com/saurabhp75): An example of Epic Stack with
102+
[Stripe](https://ariakit.org/) payments.
103+
- [Epic Stack + Remix PWA](https://github.com/ShafSpecs/offline-epic-stack) by
104+
[@ShafSpecs](https://github.com/ShafSpecs): An example of using Epic Stack
105+
offline with [Remix PWA](https://remix-pwa.run). The guide can be found
106+
[here](https://remix-pwa.run/docs/main/offline)
98107

99108
## How to contribute
100109

docs/features.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Here are a few things you get today:
2222
- Database ORM with [Prisma](https://prisma.io/)
2323
- Role-based User Permissions.
2424
- Custom built image hosting
25-
- Caching via [cachified](https://npm.im/@epic-web/cachified): Both in-memory and
26-
SQLite-based (with
25+
- Caching via [cachified](https://npm.im/@epic-web/cachified): Both in-memory
26+
and SQLite-based (with
2727
[better-sqlite3](https://github.com/WiseLibs/better-sqlite3))
2828
- Styling with [Tailwind](https://tailwindcss.com/)
2929
- An excellent, customizable component library with

docs/fonts.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ don't) you can generate one using a tool like
1414
[Transfonter](https://transfonter.org/). Transfonter now has a fonts directory
1515
setting. Set that to `fonts` to have the `url` preset.
1616

17-
Verify the `url` in the `css` is relative to the `public`
18-
folder. So it should look something like
19-
`url('/fonts/yourfont/yourfont-200.woff2')`.
17+
Verify the `url` in the `css` is relative to the `public` folder. So it should
18+
look something like `url('/fonts/yourfont/yourfont-200.woff2')`.
2019

2120
Now you've added your font, there's a few places you need to update to use it.
2221

docs/monitoring.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ To generate the auth token, click
3939
[this](https://sentry.io/orgredirect/settings/:orgslug/developer-settings/new-internal/)
4040
to create an internal integration (which grants the selected capabilities to the
4141
recipient, similar to how RBAC works). Give it a name and add the scope for
42-
`Releases:Admin` and `Organization:Read`. Press Save, find the auth token at the bottom of the page
43-
under "Tokens", and copy that to secure location (this becomes
44-
`SENTRY_AUTH_TOKEN`). Then visit the organization settings page and copy that
45-
organization slug (`SENTRY_ORG`), and the slug name for your project too
42+
`Releases:Admin` and `Organization:Read`. Press Save, find the auth token at the
43+
bottom of the page under "Tokens", and copy that to secure location (this
44+
becomes `SENTRY_AUTH_TOKEN`). Then visit the organization settings page and copy
45+
that organization slug (`SENTRY_ORG`), and the slug name for your project too
4646
(`SENTRY_PROJECT`).
4747

4848
In the 'build' section of the [Dockerfile](../other/Dockerfile), there is an

tests/mocks/index.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ import { handlers as resendHandlers } from './resend.ts'
66
export const server = setupServer(...resendHandlers, ...githubHandlers)
77

88
server.listen({
9-
onUnhandledRequest(request, print) {
10-
// Do not print warnings on unhandled requests to https://<:userId>.ingest.us.sentry.io/api/
11-
// Note: a request handler with passthrough is not suited with this type of url
12-
// until there is a more permissible url catching system
13-
// like requested at https://github.com/mswjs/msw/issues/1804
14-
if (request.url.includes('.sentry.io')) {
15-
return
16-
}
9+
onUnhandledRequest(request, print) {
10+
// Do not print warnings on unhandled requests to https://<:userId>.ingest.us.sentry.io/api/
11+
// Note: a request handler with passthrough is not suited with this type of url
12+
// until there is a more permissible url catching system
13+
// like requested at https://github.com/mswjs/msw/issues/1804
14+
if (request.url.includes('.sentry.io')) {
15+
return
16+
}
1717

18-
// Print the regular MSW unhandled request warning otherwise.
19-
print.warning()
20-
}
18+
// Print the regular MSW unhandled request warning otherwise.
19+
print.warning()
20+
},
2121
})
2222

2323
if (process.env.NODE_ENV !== 'test') {

tsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
"#*": ["./*"],
1818
"@/icon-name": [
1919
"./app/components/ui/icons/name.d.ts",
20-
"./types/icon-name.d.ts",
21-
],
20+
"./types/icon-name.d.ts"
21+
]
2222
},
2323
"skipLibCheck": true,
2424
"allowImportingTsExtensions": true,
25-
"noEmit": true,
26-
},
25+
"noEmit": true
26+
}
2727
}

0 commit comments

Comments
 (0)