Skip to content
Closed
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
1 change: 1 addition & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ const nextConfig = {
reloadOnOnline: false,
runtimeCaching,
},
eslint: {
ignoreDuringBuilds: true
},
webpack: function (config, { isServer, webpack }) {
if (!isServer) {
config.plugins.push(
Expand Down
63 changes: 32 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,42 @@
"version": "0.2.0",
"private": true,
"dependencies": {
"@chakra-ui/icons": "^1.0.10",
"@chakra-ui/react": "^1.0.0",
"@emotion/react": "^11.0.0",
"@emotion/styled": "^11.0.0",
"@next/bundle-analyzer": "^12.2.2",
"@reduxjs/toolkit": "^1.8.3",
"@testing-library/jest-dom": "^5.9.0",
"@testing-library/react": "^10.2.1",
"@testing-library/user-event": "^12.0.2",
"@chakra-ui/icons": "^2.1.1",
"@chakra-ui/react": "^2.8.2",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@next/bundle-analyzer": "^14.2.3",
"@reduxjs/toolkit": "^2.2.5",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"cheerio": "^1.0.0-rc.12",
"dotenv": "^8.2.0",
"framer-motion": "^4.0.0",
"jsonschema": "^1.4.0",
"mongoose": "^5.12.7",
"nanoid": "^3.1.22",
"next": "^12.2.2",
"dotenv": "^16.4.5",
"framer-motion": "^11.2.10",
"jsonschema": "^1.4.1",
"mongoose": "^8.4.1",
"nanoid": "^5.0.7",
"next": "^14.2.3",
"next-compose-plugins": "^2.2.1",
"next-pwa": "^5.5.4",
"react": "^17.0.2",
"react-beautiful-dnd": "^13.1.0",
"react-dom": "^17.0.2",
"react-icons": "^3.0.0",
"react-redux": "^8.0.2",
"next-pwa": "^5.6.0",
"react": "^18.3.1",
"react-beautiful-dnd": "^13.1.1",
"react-dom": "^18.3.1",
"react-icons": "^5.2.1",
"react-redux": "^9.1.2",
"redux-logger": "^3.0.6",
"redux-persist": "^6.0.0",
"reselect": "^4.1.6",
"web-vitals": "^0.2.2"
"reselect": "^5.1.1",
"web-vitals": "^4.0.1",
"yarn": "^1.22.22"
},
"scripts": {
"start": "next start",
"build": "next build",
"dev": "next dev",
"lint": "eslint",
"analyze": "ANALYZE=true next build"
},
"eslintConfig": {
Expand All @@ -53,13 +57,10 @@
]
},
"devDependencies": {
"@types/cheerio": "^0.22.31",
"@types/react-beautiful-dnd": "^13.1.2",
"@types/redux-logger": "^3.0.9",
"typescript": "^4.7.4"
},
"resolutions": {
"@types/react": "17.0.15",
"@types/react-dom": "17.0.15"
"@types/cheerio": "^0.22.35",
"@types/react-beautiful-dnd": "^13.1.8",
"@types/redux-logger": "^3.0.13",
"eslint": "^9.4.0",
"typescript": "^5.4.5"
}
}
2 changes: 1 addition & 1 deletion src/common/Logo.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Box, useColorModeValue } from '@chakra-ui/react';
import Image from 'next/image';
import Image from "next/legacy/image";
import React from 'react';

const WhiteLogo = ({ display = "inherit", ...props }: { display?: string }) => {
Expand Down
4 changes: 2 additions & 2 deletions src/features/importLectures/ImportLectures.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, Menu, MenuButton, MenuItem, MenuList, useDisclosure } from "@chakra-ui/react"
import { Button, Menu, MenuButton, MenuItem, MenuList, Text, useDisclosure } from "@chakra-ui/react"
import React from "react"
import { FaCloudDownloadAlt } from "react-icons/fa"
import ModalFromUnipa, { UnipaLabel } from "./components/UniPa/ModalWrapper"
Expand All @@ -16,7 +16,7 @@ const ImportLecture: React.FC = () => {
Importa Materie
</MenuButton>
<MenuList>
<MenuItem onClick={onOpenUnipa}>
<MenuItem onClick={onOpenUnipa} isDisabled={true}>
<UnipaLabel />
</MenuItem>
</MenuList>
Expand Down
4 changes: 2 additions & 2 deletions src/features/importLectures/components/UniPa/ModalWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
ExpandedIndex, Icon, Modal, ModalBody, ModalCloseButton, ModalContent, ModalHeader,
ModalOverlay, Text, useToast
} from "@chakra-ui/react";
import Image from "next/image";
import Image from "next/legacy/image";
import React, { useEffect, useState } from "react";
import { FaCaretDown, FaPollH } from "react-icons/fa";
import { API_FETCH_UNIPA_URL, FetchFromUnipaResponse } from "../../../../pages/api/unipa/fetch";
Expand All @@ -21,7 +21,7 @@ export const UnipaLabel = () => <>
width={25}
height={25}
/>
<Text ml={"1em"}> UniPa</Text>
<Text ml={"1em"}> UniPa ⚒️</Text>
</>


Expand Down
4 changes: 2 additions & 2 deletions src/features/preferences/components/FinalBonusComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function FinalBonusComponent({
</Flex> : <Center>
<Slider
colorScheme="teal"
aria-label='slider-ex-1' defaultValue={0} min={0} max={15} step={1} my={"2em"} maxWidth={"80%"} value={temporarySliderValue} onChange={setTemporarySliderValue} onChangeEnd={endOfSliding} >
aria-label='slider-ex-1' defaultValue={0} min={0} max={10} step={0.1} my={"2em"} maxWidth={"80%"} value={temporarySliderValue} onChange={setTemporarySliderValue} onChangeEnd={endOfSliding} >
<SliderTrack>
<SliderFilledTrack />
</SliderTrack>
Expand All @@ -224,4 +224,4 @@ function FinalBonusComponent({
);
}

export default FinalBonusComponent;
export default FinalBonusComponent;
1 change: 1 addition & 0 deletions src/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module "redux-persist/es/persistReducer" { interface PersistPartial { _persist?: PersistState; } }
6 changes: 3 additions & 3 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export default function MyApp({ Component, pageProps }: AppProps) {
<title>{SchemaORG['name']}</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="description" content={SchemaORG['description']} />
<script async src={'https://www.googletagmanager.com/gtag/js?id=G-NDMGLF3H9S'} />
<script dangerouslySetInnerHTML={{ __html: gtagCode }} />
<Script async src={'https://www.googletagmanager.com/gtag/js?id=G-NDMGLF3H9S'} />
<Script dangerouslySetInnerHTML={{ __html: gtagCode }} />
<meta name="google-site-verification" content="Oq3f3LWCCl4gvndQDsIgq0SX8eUFeQZ-18xHphr2OmI" />
{/* Facebook meta tags*/}
<meta property="og:title" content="TPTP" key="og:title" />
Expand All @@ -61,7 +61,7 @@ export default function MyApp({ Component, pageProps }: AppProps) {
<meta property="twitter:card" content="summary" />
<meta property="twitter:url" content="https://tptp.vercel.app/" />
<meta property="twitter:image" content="/images/TPTP-b-bgless.png" />
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(SchemaORG) }} />
<Script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(SchemaORG) }} />

{/* Images */}

Expand Down
10 changes: 8 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true
"incremental": true,
"plugins": [
{
"name": "next"
}
]
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down
Loading