diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index af6ab76..0000000 --- a/.eslintignore +++ /dev/null @@ -1,20 +0,0 @@ -.now/* -*.css -.changeset -dist -esm/* -public/* -tests/* -scripts/* -*.config.js -.DS_Store -node_modules -coverage -.next -build -!.commitlintrc.cjs -!.lintstagedrc.cjs -!jest.config.js -!plopfile.js -!react-shim.js -!tsup.config.ts \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json index 0b48bc4..15b1ed9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,99 +1,3 @@ { - "$schema": "https://json.schemastore.org/eslintrc.json", - "env": { - "browser": false, - "es2021": true, - "node": true - }, - "extends": [ - "plugin:react/recommended", - "plugin:prettier/recommended", - "plugin:react-hooks/recommended", - "plugin:jsx-a11y/recommended" - ], - "plugins": [ - "react", - "unused-imports", - "import", - "@typescript-eslint", - "jsx-a11y", - "prettier" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaFeatures": { - "jsx": true - }, - "ecmaVersion": 12, - "sourceType": "module" - }, - "settings": { - "react": { - "version": "detect" - } - }, - "rules": { - "no-console": "warn", - "react/prop-types": "off", - "react/jsx-uses-react": "off", - "react/react-in-jsx-scope": "off", - "react-hooks/exhaustive-deps": "off", - "jsx-a11y/click-events-have-key-events": "warn", - "jsx-a11y/interactive-supports-focus": "warn", - "prettier/prettier": "warn", - "no-unused-vars": "off", - "unused-imports/no-unused-vars": "off", - "unused-imports/no-unused-imports": "warn", - "@typescript-eslint/no-unused-vars": [ - "warn", - { - "args": "after-used", - "ignoreRestSiblings": false, - "argsIgnorePattern": "^_.*?$" - } - ], - "import/order": [ - "warn", - { - "groups": [ - "type", - "builtin", - "object", - "external", - "internal", - "parent", - "sibling", - "index" - ], - "pathGroups": [ - { - "pattern": "~/**", - "group": "external", - "position": "after" - } - ], - "newlines-between": "always" - } - ], - "react/self-closing-comp": "warn", - "react/jsx-sort-props": [ - "warn", - { - "callbacksLast": true, - "shorthandFirst": true, - "noSortAlphabetically": false, - "reservedFirst": true - } - ], - "padding-line-between-statements": [ - "warn", - { "blankLine": "always", "prev": "*", "next": "return" }, - { "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" }, - { - "blankLine": "any", - "prev": ["const", "let", "var"], - "next": ["const", "let", "var"] - } - ] - } + "extends": "next" } diff --git a/.gitignore b/.gitignore index 7d263c1..efabe4d 100644 --- a/.gitignore +++ b/.gitignore @@ -36,4 +36,8 @@ next-env.d.ts .env* -/postgres \ No newline at end of file +/postgres + +# Serwist +public/sw* +public/swe-worker* diff --git a/app/actions/getCourses.ts b/app/actions/getCourses.ts index 929d838..9be0a29 100644 --- a/app/actions/getCourses.ts +++ b/app/actions/getCourses.ts @@ -59,7 +59,6 @@ export async function getTerms() { } export async function setPlanCookie(plan: string) { - //@ts-ignore (await cookies()).set("plan", plan); } diff --git a/app/apple-icon.png b/app/apple-icon.png new file mode 100644 index 0000000..6e89e0d Binary files /dev/null and b/app/apple-icon.png differ diff --git a/app/favicon.ico b/app/favicon.ico new file mode 100644 index 0000000..bde44c6 Binary files /dev/null and b/app/favicon.ico differ diff --git a/app/icon.png b/app/icon.png new file mode 100644 index 0000000..e8712ed Binary files /dev/null and b/app/icon.png differ diff --git a/app/layout.tsx b/app/layout.tsx index 72cafba..07ad141 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -5,7 +5,7 @@ import clsx from "clsx"; import { CookiesProvider } from "next-client-cookies/server"; import { NextAuthProvider } from "../components/providers/NextAuthProvider"; -import { siteConfig } from "../config/site"; +import { sccsLD, siteConfig } from "../config/site"; import { fontSans } from "../config/fonts"; import { Navbar } from "../components/navbar"; import FooterInfo from "../components/FooterInfo"; @@ -18,15 +18,12 @@ export const metadata: Metadata = { template: `%s - ${siteConfig.name}`, }, description: siteConfig.description, - icons: { - icon: "/favicon.ico", - }, }; export const viewport: Viewport = { themeColor: [ - { media: "(prefers-color-scheme: light)", color: "white" }, - { media: "(prefers-color-scheme: dark)", color: "black" }, + { media: "(prefers-color-scheme: light)", color: "#31425D" }, + { media: "(prefers-color-scheme: dark)", color: "#141C2A" }, ], }; @@ -39,7 +36,12 @@ export default function RootLayout({ - + +