diff --git a/.gitea/workflows/demo.yml b/.gitea/workflows/demo.yml index 5c06128..2747990 100644 --- a/.gitea/workflows/demo.yml +++ b/.gitea/workflows/demo.yml @@ -7,13 +7,4 @@ jobs: runs-on: linux steps: - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." + - run: Test "🎉 job completed! 🚀" diff --git a/package.json b/package.json index 0951d98..82568ef 100644 --- a/package.json +++ b/package.json @@ -67,6 +67,7 @@ "superjson": "^2.2.1", "tailwind-merge": "^3.0.2", "tailwindcss-animate": "^1.0.7", + "tiptap-extension-resize-image": "^1.2.1", "use-debounce": "^10.0.4", "winston": "^3.17.0", "zod": "^3.24.2" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 09bad78..f6077e4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -149,6 +149,9 @@ importers: tailwindcss-animate: specifier: ^1.0.7 version: 1.0.7(tailwindcss@3.4.17(ts-node@10.9.2(@types/node@20.17.23)(typescript@5.8.2))) + tiptap-extension-resize-image: + specifier: ^1.2.1 + version: 1.2.1(@tiptap/core@2.11.5(@tiptap/pm@2.11.5))(@tiptap/extension-image@2.11.5(@tiptap/core@2.11.5(@tiptap/pm@2.11.5)))(@tiptap/pm@2.11.5) use-debounce: specifier: ^10.0.4 version: 10.0.4(react@18.3.1) @@ -4095,6 +4098,13 @@ packages: tiptap-extension-global-drag-handle@0.1.18: resolution: {integrity: sha512-jwFuy1K8DP3a4bFy76Hpc63w1Sil0B7uZ3mvhQomVvUFCU787Lg2FowNhn7NFzeyok761qY2VG+PZ/FDthWUdg==} + tiptap-extension-resize-image@1.2.1: + resolution: {integrity: sha512-SLMAujDa+0LN/6Iv2HtU4Uk0BL6LMh4b/r85frpdnjFDW2i6pIOfTVG8jzJQ8T1EgYHNn2YG1U2HoVAGuwLc3Q==} + peerDependencies: + '@tiptap/core': ^2.0.0 + '@tiptap/extension-image': ^2.0.0 + '@tiptap/pm': ^2.0.0 + to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} @@ -8492,6 +8502,12 @@ snapshots: tiptap-extension-global-drag-handle@0.1.18: {} + tiptap-extension-resize-image@1.2.1(@tiptap/core@2.11.5(@tiptap/pm@2.11.5))(@tiptap/extension-image@2.11.5(@tiptap/core@2.11.5(@tiptap/pm@2.11.5)))(@tiptap/pm@2.11.5): + dependencies: + '@tiptap/core': 2.11.5(@tiptap/pm@2.11.5) + '@tiptap/extension-image': 2.11.5(@tiptap/core@2.11.5(@tiptap/pm@2.11.5)) + '@tiptap/pm': 2.11.5 + to-regex-range@5.0.1: dependencies: is-number: 7.0.0 diff --git a/public/uploads/upload-1742077219929-person-3.jpg.png b/public/uploads/upload-1742077219929-person-3.jpg.png new file mode 100644 index 0000000..4129a0f Binary files /dev/null and b/public/uploads/upload-1742077219929-person-3.jpg.png differ diff --git a/public/uploads/upload-1742077526129-pexels-italo-melo-881954-2379005.jpg.png b/public/uploads/upload-1742077526129-pexels-italo-melo-881954-2379005.jpg.png new file mode 100644 index 0000000..029a58d Binary files /dev/null and b/public/uploads/upload-1742077526129-pexels-italo-melo-881954-2379005.jpg.png differ diff --git a/src/app/(PAGES)/artikel/[slug]/page.tsx b/src/app/(PAGES)/artikel/[slug]/page.tsx index ec240cb..1761a6f 100644 --- a/src/app/(PAGES)/artikel/[slug]/page.tsx +++ b/src/app/(PAGES)/artikel/[slug]/page.tsx @@ -1,5 +1,6 @@ -import RenderArticle from "@/components/article/render-article"; import BreadNavigator from "@/components/bread-navigator"; +import RenderContent from "@/components/editor/render-content"; +import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { appRoutes } from "@/config"; import { hasPermission, Role } from "@/lib/validation/permissions"; @@ -21,8 +22,9 @@ async function Page({ params }: { params: Promise<{ slug: string }> }) { return (
- {createdAt.toLocaleDateString("de-DE", { - dateStyle: "long", - })} -
++ {createdAt.toLocaleDateString("de-DE", { + dateStyle: "long", + })} +
+