Skip to content

Commit

Permalink
fix(deps): update dependency uuid to v11 (#189)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency uuid to v11

* Update ESLint stylelint

* Add type imports

* Add type

* Add type

* Add type

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lukas Prochazka <prochazka.lu@gmail.com>
  • Loading branch information
renovate[bot] and ProchaLu authored Nov 8, 2024
1 parent 6c74d40 commit 31fb139
Show file tree
Hide file tree
Showing 22 changed files with 687 additions and 393 deletions.
6 changes: 3 additions & 3 deletions app/[contentType]/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Metadata } from 'next';
import type { Metadata } from 'next';
import Image from 'next/image';
import { notFound } from 'next/navigation';
import { Chips, Container } from '../../../components';
Expand All @@ -8,8 +8,8 @@ import {
getContentData,
getContentList,
getContentTypes,
IContentData,
IContentType,
type IContentData,
type IContentType,
} from '../../../utils/content';
import { contentTypesMap } from '../../../utils/content-types';
import Content from './content';
Expand Down
4 changes: 2 additions & 2 deletions app/[contentType]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Metadata } from 'next';
import type { Metadata } from 'next';
import { notFound } from 'next/navigation';
import { Container, ContentList } from '../../components';
import info from '../../config/index.json' assert { type: 'json' };
import {
getContentList,
getContentTypes,
IContentType,
type IContentType,
} from '../../utils/content';
import { contentTypesMap } from '../../utils/content-types';
import { generateRSS } from '../../utils/rss';
Expand Down
5 changes: 4 additions & 1 deletion app/[contentType]/tags/[tag]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { notFound } from 'next/navigation';
import { Container, ContentList } from '../../../../components';
import { getContentWithTag, IContentType } from '../../../../utils/content';
import {
getContentWithTag,
type IContentType,
} from '../../../../utils/content';
import { contentTypesMap } from '../../../../utils/content-types';

// TODO: I need to rethink the tags page. I don't think I want to have a page for each tag.
Expand Down
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Metadata } from 'next';
import type { Metadata } from 'next';
import { Container, Header, Testimonials, WorkItem } from '../components';
import info from '../config/index.json' assert { type: 'json' };
import testimonials from '../config/testimonials.json' assert { type: 'json' };
Expand Down
1 change: 0 additions & 1 deletion components/back-button.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use client';

import { useRouter } from 'next/navigation';
import React from 'react';
import { ChevronLeft } from 'react-feather';

export default function BackButton() {
Expand Down
2 changes: 1 addition & 1 deletion components/cards.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from 'clsx';
import Image from 'next/image';
import Link from 'next/link';
import { IContent } from '../utils/content';
import type { IContent } from '../utils/content';

export interface ICard {
basePath: string;
Expand Down
2 changes: 1 addition & 1 deletion components/container.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FC, HTMLAttributes } from 'react';
import type { FC, HTMLAttributes } from 'react';
import { cn } from '../utils/cn';

export type IWidth = 'default' | 'bleed' | 'narrow';
Expand Down
4 changes: 2 additions & 2 deletions components/content-list.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HTMLAttributes } from 'react';
import { IContent, IContentType } from '../utils/content';
import type { HTMLAttributes } from 'react';
import type { IContent, IContentType } from '../utils/content';
import { Cards, WorkItem } from './';

interface ContentListProps extends HTMLAttributes<HTMLElement> {
Expand Down
2 changes: 1 addition & 1 deletion components/hamburger.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HTMLAttributes, useContext } from 'react';
import { type HTMLAttributes, useContext } from 'react';
import { cn } from '../utils/cn';
import { menuContext } from './MenuContext';

Expand Down
2 changes: 1 addition & 1 deletion components/link.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AllHTMLAttributes } from 'react';
import type { AllHTMLAttributes } from 'react';
import { cn } from '../utils/cn';

export function NativeLink({
Expand Down
2 changes: 0 additions & 2 deletions components/logo.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

export function Logo() {
return <img src="/images/logo.svg" alt="logo" className="h-4 w-4 mr-1" />;
}
2 changes: 1 addition & 1 deletion components/nav/nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { useTheme } from 'next-themes';
import Link from 'next/link';
import { ReactNode, useEffect, useState } from 'react';
import { type ReactNode, useEffect, useState } from 'react';
import { Loader, Moon, Rss, Sun } from 'react-feather';
import { Logo } from '../';
import SiteConfig from '../../config/index.json' assert { type: 'json' };
Expand Down
3 changes: 1 addition & 2 deletions components/notes/note.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Link from 'next/link';
import React from 'react';
import { Calendar } from 'react-feather';
import { IContent } from '../../utils/content';
import type { IContent } from '../../utils/content';

export function Note({ date, title, slug, basePath }: IContent) {
return (
Expand Down
3 changes: 1 addition & 2 deletions components/notes/notes.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import { IContent } from '../../utils/content';
import type { IContent } from '../../utils/content';
import { Note } from './note';

interface INotes {
Expand Down
2 changes: 1 addition & 1 deletion components/works/work.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Link from 'next/link';
import { ArrowRight } from 'react-feather';
import placeholderImg from '../../public/images/placeholder.jpg';
import { cn } from '../../utils/cn';
import { IContent } from '../../utils/content';
import type { IContent } from '../../utils/content';

// TODO: use some type of hash function to generate the colors
const colorsLookup = {
Expand Down
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"sharp": "0.33.5",
"swiper": "^11.0.5",
"unified": "^11.0.4",
"uuid": "^10.0.0"
"uuid": "^11.0.0"
},
"devDependencies": {
"@playwright/test": "1.47.1",
Expand All @@ -42,11 +42,11 @@
"autoprefixer": "^10.4.14",
"clsx": "^2.0.0",
"eslint": "^9.0.0",
"eslint-config-upleveled": "8.7.0",
"eslint-config-upleveled": "8.11.3",
"postcss": "^8.4.27",
"prettier": "^3.2.5",
"stylelint": "^16.0.2",
"stylelint-config-upleveled": "1.1.3",
"stylelint-config-upleveled": "1.1.5",
"tailwind-merge": "^2.0.0",
"tailwindcss": "^3.3.3",
"typescript": "^5.1.6"
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PlaywrightTestConfig } from '@playwright/test';
import type { PlaywrightTestConfig } from '@playwright/test';

// Config file docs: https://playwright.dev/docs/test-configuration
const config: PlaywrightTestConfig = {
Expand Down
Loading

0 comments on commit 31fb139

Please sign in to comment.