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

Merge dcrepublic-dev into Main #8

Merged
merged 5 commits into from
Oct 28, 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
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Node.js CI

on:
push:
branches: [ "main" ]
branches: [ "main", "dcrepublic-dev", "v6ctor-dev"]
pull_request:
branches: [ "main" ]

Expand All @@ -27,5 +27,5 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npx prisma generate
- run: npm run build --if-present
- run: npm test
8 changes: 7 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ export default function RootLayout({
fontSans.variable
)}
>
<Providers themeProps={{ attribute: "class", defaultTheme: "dark" }}>
<Providers
themeProps={{
children: children,
attribute: "class",
defaultTheme: "dark",
}}
>
<div className="relative flex flex-col h-screen">
<Navbar />
<main className="container mx-auto max-w-7xl pt-16 px-6 flex-grow">
Expand Down
17 changes: 9 additions & 8 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import { Skeleton } from "@nextui-org/skeleton";
import Search from "@/components/Search";
import { FullCourseList } from "@/components/FullCourseList";

export default async function Page({
searchParams,
}: {
searchParams?: {
query?: string;
page?: string;
};
}) {
export default async function Page(
props: {
searchParams?: Promise<{
query?: string;
page?: string;
}>;
}
) {
const searchParams = await props.searchParams;
const query = searchParams?.query || "";
var homePageProps: any = {};

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
- 9229:9229
networks:
- internal
command: sh -c "npm install --silent && npx prisma generate && npm run dev "
command: sh -c "npm install --silent && npx prisma migrate dev && npm run dev "

postgres:
image: postgres:16.4-bullseye
Expand Down
122 changes: 61 additions & 61 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
{
"name": "next-app-template",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "next dev --turbo",
"build": "next build",
"start": "next start",
"lint": "eslint . --ext .ts,.tsx -c .eslintrc.json --fix"
},
"dependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@mui/icons-material": "^6.1.5",
"@nextui-org/button": "2.0.38",
"@nextui-org/code": "2.0.33",
"@nextui-org/input": "2.2.5",
"@nextui-org/kbd": "2.0.34",
"@nextui-org/link": "2.0.35",
"@nextui-org/listbox": "2.1.27",
"@nextui-org/navbar": "2.0.37",
"@nextui-org/react": "^2.4.8",
"@nextui-org/snippet": "2.0.43",
"@nextui-org/switch": "2.0.34",
"@nextui-org/system": "2.2.6",
"@nextui-org/tabs": "^2.0.37",
"@nextui-org/theme": "2.2.11",
"@prisma/client": "^5.21.1",
"@react-aria/ssr": "3.9.6",
"@react-aria/visually-hidden": "3.8.17",
"axios": "^1.7.7",
"clsx": "2.1.1",
"framer-motion": "~11.11.10",
"intl-messageformat": "^10.7.3",
"next": "^15.0.1",
"next-themes": "^0.3.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"swr": "^2.2.5",
"use-debounce": "^10.0.4"
},
"devDependencies": {
"@types/node": "22.8.1",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"autoprefixer": "10.4.20",
"eslint": "^9.13.0",
"eslint-config-next": "15.0.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-unused-imports": "^4.1.4",
"postcss": "8.4.47",
"tailwind-variants": "0.2.1",
"tailwindcss": "3.4.14",
"typescript": "5.6.3"
}
}
"name": "next-app-template",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "next dev --turbo",
"build": "next build",
"start": "next start",
"lint": "eslint . -c .ts,.tsx -c .eslintrc.json --fix"
},
"dependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@mui/icons-material": "^6.1.5",
"@nextui-org/button": "2.0.38",
"@nextui-org/code": "2.0.33",
"@nextui-org/input": "2.2.5",
"@nextui-org/kbd": "2.0.34",
"@nextui-org/link": "2.0.35",
"@nextui-org/listbox": "2.1.27",
"@nextui-org/navbar": "2.0.37",
"@nextui-org/react": "^2.4.8",
"@nextui-org/snippet": "2.0.43",
"@nextui-org/switch": "2.0.34",
"@nextui-org/system": "2.2.6",
"@nextui-org/tabs": "^2.0.37",
"@nextui-org/theme": "2.2.11",
"@prisma/client": "^5.21.1",
"@react-aria/ssr": "3.9.6",
"@react-aria/visually-hidden": "3.8.17",
"axios": "^1.7.7",
"clsx": "2.1.1",
"framer-motion": "~11.11.10",
"intl-messageformat": "^10.7.3",
"next": "^15.0.1",
"next-themes": "^0.3.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"swr": "^2.2.5",
"use-debounce": "^10.0.4"
},
"devDependencies": {
"@types/node": "22.8.1",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"autoprefixer": "10.4.20",
"eslint": "^9.13.0",
"eslint-config-next": "15.0.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-unused-imports": "^4.1.4",
"postcss": "8.4.47",
"tailwind-variants": "0.2.1",
"tailwindcss": "3.4.14",
"typescript": "5.6.3"
}
}
Empty file removed test.md
Empty file.