Skip to content

Commit

Permalink
chore: format code, switch to @scalar/galaxy package
Browse files Browse the repository at this point in the history
  • Loading branch information
hanspagel committed May 3, 2024
1 parent f504c3e commit 46d81e3
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 822 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"types:check": "tsc --noEmit --skipLibCheck"
},
"dependencies": {
"@scalar/galaxy": "^0.1.0",
"@scalar/mock-server": "^0.1.49",
"follow-redirects": "^1.15.6",
"form-data": "^4.0.0",
Expand All @@ -23,10 +24,10 @@
"@hono/vite-cloudflare-pages": "^0.2.4",
"@hono/vite-dev-server": "^0.12.0",
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
"prettier": "^3.0.3",
"vite": "^5.0.12",
"vitest": "^1.5.3",
"wrangler": "^3.47.0",
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
"prettier": "^3.0.3"
"wrangler": "^3.47.0"
}
}
4 changes: 3 additions & 1 deletion public/static/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
h1 { font-family: Arial, Helvetica, sans-serif; }
h1 {
font-family: Arial, Helvetica, sans-serif;
}
2 changes: 1 addition & 1 deletion src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {} from 'hono'
import 'hono'

declare module 'hono' {
interface ContextRenderer {
Expand Down
6 changes: 3 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { renderer } from './renderer'

import { createMockServer } from '@scalar/mock-server'
import galaxy from './scalar-galaxy-3.1.json'

import { renderer } from './renderer'
import galaxy from '@scalar/galaxy/latest.yaml?raw'

// Create the mocked routes
const app = await createMockServer({
Expand Down
5 changes: 4 additions & 1 deletion src/renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ export const renderer = jsxRenderer(({ children, title }) => {
return (
<html>
<head>
<link href="/static/style.css" rel="stylesheet" />
<link
href="/static/style.css"
rel="stylesheet"
/>
<title>{title}</title>
</head>
<body>{children}</body>
Expand Down
Loading

0 comments on commit 46d81e3

Please sign in to comment.