Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 811ca10

Browse files
author
Je
committed
refactor: cleanup
1 parent 7e31636 commit 811ca10

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

error.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'https://esm.sh/react'
2-
import { Head } from './head.ts'
2+
import Head from './head.ts'
33

44
export class ErrorBoundary extends React.Component {
55
state: { stack: string | null }
@@ -39,7 +39,7 @@ export function E404Page() {
3939
StatusError,
4040
{
4141
status: 404,
42-
message: 'Page not found'
42+
message: 'Page Not Found'
4343
}
4444
)
4545
}
@@ -66,7 +66,7 @@ export function StatusError({ status, message, showRefreshButton }: { status: nu
6666
React.createElement(
6767
'title',
6868
null,
69-
`Error ${status} - ${message} | Aleph.js`
69+
`${status} - ${message} | Aleph.js`
7070
),
7171
),
7272
React.createElement(
@@ -75,7 +75,6 @@ export function StatusError({ status, message, showRefreshButton }: { status: nu
7575
React.createElement(
7676
'strong',
7777
null,
78-
'Error ',
7978
React.createElement(
8079
'code',
8180
null,

mime.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// mime types for web
22
const mimeTypes: Record<string, string[]> = {
3+
// application
34
'application/javascript': ['js', 'mjs'],
45
'application/wasm': ['wasm'],
56
'application/json': ['json', 'map'],

0 commit comments

Comments
 (0)