generated from kir-dev/next-nest-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* summarized posts, second banner card, 24 recap * design updates * updated footer * 2024 recap update * Migrate Next to version 15 and eslint to version 9 (#138) * Add Yarn configuration, update Next.js and React versions, and refactor cookie handling * Update package dependencies and ESLint configuration, refactor hooks and components for improved functionality * Update every non-breaking package * Modify imported shadcn-ui compoponents * Update react-day-picker to version 9.3.0 and enhance badge and calendar components with new variants * Update ESLint configuration, add launch options for next and add types to pdf download * Separate utility functions, so the pdf generation can run on the client * Remove eslint config from root project and fix errors in frontend * Add new eslint config file to backend as well * Enable corepack and yarn v4 in github analysis action * Fix import and conditional useCallback * Update React from rc to stable version * Update react icons * Fix react icon import * Generate prisma client in build github actions * Update JSX import * Update Next minor version * Update Buffer to Uint8Array in images, and prisma to v6 * Refactor image handling to return Buffer instead of Uint8Array and update controller methods to specify return types * Remove prisma dependency from frontend - I don't know why it was there - Please don't check git blame, it was not me, I promise * Add new docker compose files - one container for running only the db - and another for running the entire backend locally * Fix image loading - If a user or an application period had no pfp/background set, it would call the backend in an endless loop - Now it fetches the images using useFetch with the cacheBuster, so the images still automatically reload upon uploading - Also set a padding on the badges to make the look nicer * Fix minor errors - Footer was not at the end of page - Fix eslint not used variable errors - Center the footer * Fix eslint errors * return prof-pic-status on /user/me --------- Co-authored-by: EasySouls <[email protected]>
- Loading branch information
1 parent
c124350
commit 1232f53
Showing
79 changed files
with
12,228 additions
and
8,165 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,12 @@ jobs: | |
with: | ||
node-version: 20 | ||
|
||
- name: Enable Corepack | ||
run: corepack enable | ||
|
||
- name: Use Yarn v4 | ||
run: corepack prepare [email protected] --activate | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
|
@@ -41,6 +47,12 @@ jobs: | |
with: | ||
node-version: 20 | ||
|
||
- name: Enable Corepack | ||
run: corepack enable | ||
|
||
- name: Use Yarn v4 | ||
run: corepack prepare [email protected] --activate | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
|
@@ -62,8 +74,18 @@ jobs: | |
with: | ||
node-version: 20 | ||
|
||
- name: Enable Corepack | ||
run: corepack enable | ||
|
||
- name: Use Yarn v4 | ||
run: corepack prepare [email protected] --activate | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Generate Prisma Client | ||
working-directory: apps/backend | ||
run: yarn prisma generate | ||
|
||
- name: Build | ||
run: yarn build:backend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: schbody-dev-db | ||
|
||
services: | ||
postgres: | ||
image: postgres:13.10 | ||
restart: always | ||
environment: | ||
POSTGRES_USER: ${POSTGRES_USER} | ||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} | ||
POSTGRES_DB: ${POSTGRES_DB} | ||
ports: | ||
- '5432:5432' | ||
volumes: | ||
- postgres_data:/var/lib/postgresql/data | ||
|
||
volumes: | ||
postgres_data: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: schbody | ||
|
||
services: | ||
app: | ||
build: | ||
context: . | ||
ports: | ||
- '${BACKEND_PORT}:${BACKEND_PORT}' | ||
env_file: | ||
- .env | ||
restart: always | ||
depends_on: | ||
- db | ||
|
||
db: | ||
image: postgres:13.10 | ||
env_file: | ||
- .env | ||
restart: always | ||
ports: | ||
- '${POSTGRES_PORT}:${POSTGRES_PORT}' | ||
volumes: | ||
- schbody_db_folder:/var/lib/postgresql/data | ||
|
||
volumes: | ||
schbody_db_folder: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { FlatCompat } from '@eslint/eslintrc'; | ||
import js from '@eslint/js'; | ||
import typescriptEslintEslintPlugin from '@typescript-eslint/eslint-plugin'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
import path from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all, | ||
}); | ||
const config = [ | ||
{ | ||
ignores: ['**/.prettierrc.js'], | ||
}, | ||
...compat.extends('plugin:@typescript-eslint/recommended', 'nestjs', 'plugin:@next/next/recommended'), | ||
{ | ||
plugins: { | ||
'@typescript-eslint': typescriptEslintEslintPlugin, | ||
}, | ||
|
||
languageOptions: { | ||
parser: tsParser, | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
|
||
parserOptions: { | ||
project: 'tsconfig.json', | ||
tsconfigRootDir: __dirname, | ||
}, | ||
}, | ||
|
||
rules: { | ||
'@typescript-eslint/interface-name-prefix': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'@typescript-eslint/no-extra-semi': 'off', | ||
'@typescript-eslint/no-unused-vars': 'error', | ||
}, | ||
}, | ||
]; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.