Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
inetol committed Nov 23, 2024
1 parent e0375db commit de1ff2d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 17 deletions.
Binary file modified bun.lockb
Binary file not shown.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,25 @@
"@codemirror/lang-yaml": "~6.1.1",
"@codemirror/language": "~6.10.3",
"@codemirror/state": "~6.4.1",
"@codemirror/view": "~6.34.3",
"@codemirror/view": "~6.35.0",
"@solid-primitives/media": "~2.2.9",
"@solid-primitives/scheduled": "~1.4.4",
"@solid-primitives/storage": "~4.2.1",
"@tabler/icons-solidjs": "~3.22.0",
"@tailwindcss/vite": "4.0.0-beta.2",
"@uiw/codemirror-extensions-hyper-link": "~4.23.6",
"@uiw/codemirror-themes": "~4.23.6",
"daisyui": "5.0.0-alpha.38",
"daisyui": "5.0.0-alpha.39",
"env-var": "~7.5.0",
"hono": "~4.6.11",
"solid-js": "~1.9.3",
"tailwindcss": "4.0.0-beta.2",
"vike": "~0.4.204",
"vike-solid": "~0.7.6",
"vite": "~5.4.11"
},
"devDependencies": {
"@biomejs/biome": "~1.9.4",
"@tailwindcss/vite": "4.0.0-alpha.35",
"@types/bun": "^1.1.13",
"browserslist": "^4.24.2",
"lefthook": "~1.8.4",
Expand Down
7 changes: 5 additions & 2 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ export default function Header(props: HeaderProps) {
<HeaderLabel label={`Lang ${language()}`} />
<span class='grow' />
<div class='flex max-sm:hidden'>
{/* TODO: Expose Backend API route location */}
<HeaderLabel label='API' icon={<IconCrane size={12} />} onClick={() => window.open('/api/docs')} />
<HeaderLabel
label='API'
icon={<IconCrane size={12} />}
onClick={() => window.open('https://github.com/jspaste/backend/tree/stable?tab=readme-ov-file#api')}
/>
<HeaderLabel
label='Source'
icon={<IconCode size={12} />}
Expand Down
11 changes: 0 additions & 11 deletions src/pages/(editor)/+Head.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
import { siteManifest } from '@x-page/manifest';
import { onMount } from 'solid-js';
import './editor.css';

export default function () {
onMount(() => {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.getRegistrations().then((registrations) => {
for (const registration of registrations) {
registration.unregister();
}
});
}
});

return (
<>
<meta name='theme-color' content='#FFE285' />
Expand Down
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ server.all('*', async (ctx) => {
});
});

// TODO: 103 Early Hints -> https://github.com/oven-sh/bun/issues/8690
// TODO: https://github.com/oven-sh/bun/issues/8690
const frontend = serve({
fetch: server.fetch,
port: env.port
Expand Down

0 comments on commit de1ff2d

Please sign in to comment.