mirror of
https://github.com/mroxso/zelo-news.git
synced 2026-06-04 09:31:14 +02:00
Enable JSON module resolution in TypeScript configuration and update BlogLayout to display version from package.json
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { ReactNode } from 'react';
|
||||
import { BlogHeader } from './BlogHeader';
|
||||
import packageJson from '../../package.json';
|
||||
|
||||
interface BlogLayoutProps {
|
||||
children: ReactNode;
|
||||
@@ -16,17 +17,7 @@ export function BlogLayout({ children }: BlogLayoutProps) {
|
||||
<div className="container px-4 sm:px-6 lg:px-8">
|
||||
<div className="flex flex-col md:flex-row justify-between items-center gap-4 text-sm text-muted-foreground">
|
||||
<p>Powered by Nostr</p>
|
||||
{/* <p>
|
||||
Vibed with{' '}
|
||||
<a
|
||||
href="https://soapbox.pub/mkstack"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="underline hover:text-foreground transition-colors"
|
||||
>
|
||||
MKStack
|
||||
</a>
|
||||
</p> */}
|
||||
<p>Version {packageJson.version}</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"moduleDetection": "force",
|
||||
"noEmit": true,
|
||||
|
||||
Reference in New Issue
Block a user