Skip to content

Commit

Permalink
chore: upgrade packages to latest version and migrate yarn to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
hengstchon committed Sep 10, 2024
1 parent 0df6a8f commit c2fcbfc
Show file tree
Hide file tree
Showing 5 changed files with 1,253 additions and 4,381 deletions.
15 changes: 7 additions & 8 deletions components/Nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ const NavItem = ({ navName, cat, toggleOpen }) => {
const router = useRouter()
const currentCat = router.query.cat
return (
<Link href={`/${cat}`}>
<a
className={`flex items-center px-6 py-3 hover:bg-red-400 hover:text-white ${
cat === currentCat ? 'text-red-400 font-medium' : 'text-gray-200'
}`}
onClick={toggleOpen}
>
<Link
href={`/${cat}`}
className={`flex items-center px-6 py-3 hover:bg-red-400 hover:text-white ${
cat === currentCat ? 'text-red-400 font-medium' : 'text-gray-200'
}`}
onClick={toggleOpen}
>
<svg
className="w-4 h-4"
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -91,7 +91,6 @@ const NavItem = ({ navName, cat, toggleOpen }) => {
/>
</svg>
<span className="mx-3">{navName}</span>
</a>
</Link>
)
}
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"export": "next build && next export"
},
"dependencies": {
"dayjs": "^1.10.4",
"next": "10.0.5",
"react": "17.0.1",
"react-dom": "17.0.1",
"rss-parser": "^3.10.0",
"swr": "^0.5.3"
"dayjs": "^1.11.13",
"next": "14.2.9",
"react": "18.3.1",
"react-dom": "18.3.1",
"rss-parser": "^3.13.0",
"swr": "^2.2.5"
},
"devDependencies": {
"autoprefixer": "^10.2.5",
"postcss": "^8.2.8",
"tailwindcss": "^2.0.3"
"autoprefixer": "^10.4.20",
"postcss": "^8.4.45",
"tailwindcss": "^3.4.10"
}
}
2 changes: 1 addition & 1 deletion pages/api/[cat].js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Parser from 'rss-parser'
import { feeds } from '../../config/feeds'

const CORS_PROXY = 'https://heroku-cors.herokuapp.com/'
const CORS_PROXY = "https://cors.deu.workers.dev/";
const ITEMS_PER_PAGE = 10

const clean = (data, page) => {
Expand Down
Loading

0 comments on commit c2fcbfc

Please sign in to comment.