Skip to content

Commit

Permalink
chore(deps): update all packages and fix some issue
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Ruck <[email protected]>
  • Loading branch information
Manuel Ruck authored and ManAnRuck committed May 27, 2024
1 parent 54951d1 commit de054dd
Show file tree
Hide file tree
Showing 4 changed files with 2,829 additions and 2,025 deletions.
94 changes: 47 additions & 47 deletions democracy/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,66 +13,66 @@
"build-types": "tsc --noEmit --pretty"
},
"dependencies": {
"@apollo/client": "3.8.6",
"@badrap/bar-of-progress": "0.1.2",
"@headlessui/react": "1.7.17",
"@apollo/client": "3.10.4",
"@badrap/bar-of-progress": "0.2.2",
"@headlessui/react": "2.0.4",
"@heroicons/react": "1.0.6",
"@tailwindcss/forms": "0.5.6",
"@tailwindcss/line-clamp": "0.3.1",
"@tailwindcss/typography": "0.5.10",
"@types/d3": "5.16.6",
"@tailwindcss/forms": "0.5.7",
"@tailwindcss/line-clamp": "0.4.4",
"@tailwindcss/typography": "0.5.13",
"@types/d3": "7.4.3",
"@yarnpkg/lockfile": "1.1.0",
"accounting": "0.4.1",
"apollo-link-debounce": "3.0.0",
"axios": "1.6.0",
"chart.js": "3.9.1",
"d3": "5.16.0",
"dayjs": "1.11.10",
"axios": "1.7.2",
"chart.js": "4.4.3",
"d3": "7.9.0",
"dayjs": "1.11.11",
"graphql": "16.8.1",
"lodash-es": "4.17.21",
"next": "12.3.4",
"next-seo": "5.15.0",
"react": "17.0.2",
"react-chartjs-2": "4.3.1",
"react-cool-dimensions": "2.0.7",
"react-dom": "17.0.2",
"next": "14.2.3",
"next-seo": "6.5.0",
"react": "18.3.1",
"react-chartjs-2": "5.2.0",
"react-cool-dimensions": "3.0.1",
"react-dom": "18.3.1",
"react-infinite-scroll-hook": "4.1.1",
"react-use": "17.4.0",
"react-use": "17.5.0",
"recoil": "0.7.7",
"sharp": "0.32.6",
"slug": "5.3.0"
"sharp": "0.33.4",
"slug": "9.1.0"
},
"devDependencies": {
"@next/bundle-analyzer": "12.3.4",
"@types/lodash-es": "4.17.10",
"@types/node": "17.0.45",
"@types/react": "17.0.69",
"@types/slug": "5.0.6",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"autoprefixer": "10.4.16",
"@next/bundle-analyzer": "14.2.3",
"@types/lodash-es": "4.17.12",
"@types/node": "20.12.12",
"@types/react": "18.3.3",
"@types/slug": "5.0.8",
"@typescript-eslint/eslint-plugin": "7.10.0",
"@typescript-eslint/parser": "7.10.0",
"autoprefixer": "10.4.19",
"cross-env": "7.0.3",
"cssnano": "5.1.15",
"eslint": "8.52.0",
"cssnano": "7.0.1",
"eslint": "9.3.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-airbnb-typescript": "17.1.0",
"eslint-config-next": "12.3.4",
"eslint-config-prettier": "8.10.0",
"eslint-plugin-import": "2.29.0",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-tailwindcss": "3.13.0",
"eslint-plugin-unused-imports": "2.0.0",
"husky": "7.0.4",
"lint-staged": "12.5.0",
"eslint-config-airbnb-typescript": "18.0.0",
"eslint-config-next": "14.2.3",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-react": "7.34.1",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-tailwindcss": "3.17.0",
"eslint-plugin-unused-imports": "4.0.0",
"husky": "9.0.11",
"lint-staged": "15.2.5",
"npm-run-all": "4.1.5",
"postcss": "8.4.31",
"prettier": "2.8.8",
"rimraf": "3.0.2",
"tailwindcss": "3.3.5",
"typescript": "4.9.5"
"postcss": "8.4.38",
"prettier": "3.2.5",
"rimraf": "5.0.7",
"tailwindcss": "3.4.3",
"typescript": "5.4.5"
},
"license": "ISC"
}
12 changes: 4 additions & 8 deletions democracy/desktop/src/components/molecules/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ const Card = ({ item }: any) => {
className="flex flex-col overflow-hidden rounded-lg border shadow-lg"
ref={intersectionRef}
>
<Link href={makeLink(item)}>
<a
<Link href={makeLink(item)}
className="relative shrink-0 cursor-pointer bg-white pb-10 "
ref={observe}
>
ref={observe}>
<div className="relative flex aspect-teaser flex-col justify-center overflow-hidden">
<Image
className="object-cover"
Expand All @@ -51,7 +49,6 @@ const Card = ({ item }: any) => {
large={false}
/>
))}
</a>
</Link>
<div className="flex flex-1 flex-col justify-between bg-white p-6">
<div className="flex-1">
Expand All @@ -66,8 +63,7 @@ const Card = ({ item }: any) => {
{item.type}
</div>
</div>
<Link href={makeLink(item)}>
<a className="mt-2 block">
<Link href={makeLink(item)} className="mt-2 block">
<p className="line-clamp-3 hyphens-auto text-xl font-semibold leading-6 text-gray-900">
{item.title}
</p>
Expand All @@ -77,7 +73,7 @@ const Card = ({ item }: any) => {
{/* <p className="mt-3 text-base text-gray-500">
{description}
</p> */}
</a>

</Link>
</div>
{item.voteDate && (
Expand Down
61 changes: 28 additions & 33 deletions democracy/desktop/src/components/molecules/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,38 +46,36 @@ const Navigation = () => {
<div className="mx-auto max-w-7xl">
<div className="flex h-16 justify-between">
<div className="flex">
<Link href="/">
<a className="flex shrink-0 items-center rounded">
<img
className="hidden h-[38px] w-auto lg:inline-flex"
height="161"
width="1024"
src="/assets/images/logo-text.svg"
alt="Democracy App"
/>
<img
className="inline-flex h-[38px] w-auto lg:hidden"
height="160"
width="161"
src="/assets/images/logo.svg"
alt="Democracy App"
/>
</a>
<Link href="/" className="flex shrink-0 items-center rounded">
<img
className="hidden h-[38px] w-auto lg:inline-flex"
height="161"
width="1024"
src="/assets/images/logo-text.svg"
alt="Democracy App"
/>
<img
className="inline-flex h-[38px] w-auto lg:hidden"
height="160"
width="161"
src="/assets/images/logo.svg"
alt="Democracy App"
/>
</Link>
<div className="hidden md:mx-10 md:flex md:space-x-6">
{/* Current: "border-indigo-500 text-gray-900", Default: "" */}
{navigation.map((item) => (
<Link href={item.href} key={item.href}>
<a
className={classNames(
router.pathname === item.href
? 'border-ci-blue text-gray-900'
: 'border-transparent text-gray-500 hover:text-gray-700',
'inline-flex focus:rounded items-center border-b-2 px-1 pt-1 text-sm font-medium text-gray-900'
)}
>
{item.name}
</a>
<Link
href={item.href}
key={item.href}
className={classNames(
router.pathname === item.href
? 'border-ci-blue text-gray-900'
: 'border-transparent text-gray-500 hover:text-gray-700',
'inline-flex focus:rounded items-center border-b-2 px-1 pt-1 text-sm font-medium text-gray-900',
)}
>
{item.name}
</Link>
))}
</div>
Expand All @@ -89,10 +87,7 @@ const Navigation = () => {
</label>
<div className="relative">
<div className="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
<SearchIcon
className="h-5 w-5 text-gray-400"
aria-hidden="true"
/>
<SearchIcon className="h-5 w-5 text-gray-400" aria-hidden="true" />
</div>
<input
id="search"
Expand Down Expand Up @@ -147,7 +142,7 @@ const Navigation = () => {
router.pathname === item.href
? 'bg-indigo-50 border-ci-darker text-ci-darker font-bold'
: 'border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800',
'block border-l-4 py-2 pl-3 pr-4 text-base font-medium rounded-md'
'block border-l-4 py-2 pl-3 pr-4 text-base font-medium rounded-md',
// 'inline-flex items-center border-b-2 px-1 pt-1 text-sm font-medium text-gray-900'
)}
>
Expand Down
Loading

0 comments on commit de054dd

Please sign in to comment.