Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: v1.0.1 #9

Merged
merged 2 commits into from
May 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches: ["main", "dev"]
pull_request:
types: [opened, synchronize]

jobs:
build:
name: Build
timeout-minutes: 15
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2

- uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install dependencies
run: bun install

- name: Build
run: bun run build
Binary file modified bun.lockb
Binary file not shown.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,24 @@
"next": "14.2.3",
"next-themes": "^0.3.0",
"nextjs-toploader": "^1.6.12",
"posthog-js": "^1.131.4",
"react": "^18",
"react-dom": "^18",
"react-hook-form": "^7.51.4",
"sharp": "^0.33.3",
"sonner": "^1.4.41",
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7",
"vaul": "^0.9.0",
"zod": "^3.23.6"
},
"devDependencies": {
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.0",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"eslint": "^8",
"eslint-config-next": "14.2.0"
"typescript": "^5"
}
}
19 changes: 11 additions & 8 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Toaster } from "@/components/ui/sonner";
import NextTopLoader from "nextjs-toploader";
import Navbar from "@/components/navbar";
import "./globals.css";
import { CSPostHogProvider } from "./provider";

export const metadata: Metadata = {
metadataBase: new URL("https://www.github-stats.omsimos.com"),
Expand Down Expand Up @@ -34,14 +35,16 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body className={`${GeistSans.className} ${GeistMono.variable}`}>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<Navbar />
<Toaster />
<NextTopLoader />
{children}
</ThemeProvider>
</body>
<CSPostHogProvider>
<body className={`${GeistSans.className} ${GeistMono.variable}`}>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<Navbar />
<Toaster />
<NextTopLoader />
{children}
</ThemeProvider>
</body>
</CSPostHogProvider>
</html>
);
}
14 changes: 14 additions & 0 deletions src/app/provider.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"use client";

import posthog from "posthog-js";
import { PostHogProvider } from "posthog-js/react";

if (typeof window !== "undefined") {
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST,
});
}

export function CSPostHogProvider({ children }: { children: React.ReactNode }) {
return <PostHogProvider client={posthog}>{children}</PostHogProvider>;
}
Loading