diff --git a/examples/data-fetching/src/app/word-list/page.tsx b/examples/data-fetching/src/app/word-list/page.tsx deleted file mode 100644 index d90d4d4..0000000 --- a/examples/data-fetching/src/app/word-list/page.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import { getRandomWordList } from "@/words/word-list/utils"; - -const getServerSideProps = async () => { - const wordList = await getRandomWordList(); - console.log("Data is being fetch...", wordList) - return { props: { wordList:wordList } } -} - -export default async function WordList(){ - const wordList = await getServerSideProps(); - return ( -
- WordList server props: {JSON.stringify(wordList)} -
- ) -} diff --git a/examples/data-fetching/src/modules/words/word-list/index.ts b/examples/data-fetching/src/modules/words/word-list/index.ts deleted file mode 100644 index 231d5ac..0000000 --- a/examples/data-fetching/src/modules/words/word-list/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './word-list.view' diff --git a/examples/data-fetching/src/modules/words/word-list/utils.ts b/examples/data-fetching/src/modules/words/word-list/utils.ts deleted file mode 100644 index fb6089e..0000000 --- a/examples/data-fetching/src/modules/words/word-list/utils.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { WordListRepsonse } from './word-list.types' - -const dataURL = 'http://localhost:3000/words/es?complexity=easy&howMany=10' - -export async function getStaticProps() { - const randomWordList = await getRandomWordList(); - return { - props: { randomWordList }, // will be passed to the page component as props - } -} - -export async function getRandomWordList() { - const wordList: WordListRepsonse = await fetch(dataURL).then((response) => response.json()); - return wordList; -} diff --git a/examples/data-fetching/src/modules/words/word-list/word-list.module.css b/examples/data-fetching/src/modules/words/word-list/word-list.module.css deleted file mode 100644 index 595bbbf..0000000 --- a/examples/data-fetching/src/modules/words/word-list/word-list.module.css +++ /dev/null @@ -1,3 +0,0 @@ -.container { - -} \ No newline at end of file diff --git a/examples/data-fetching/src/modules/words/word-list/word-list.stories.tsx b/examples/data-fetching/src/modules/words/word-list/word-list.stories.tsx deleted file mode 100644 index 52fc59b..0000000 --- a/examples/data-fetching/src/modules/words/word-list/word-list.stories.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import type { Meta, StoryObj } from '@storybook/react' -import { expect } from '@storybook/jest' -import { within } from '@storybook/testing-library' -import { WordListView } from './word-list.view' - -const meta: Meta = { - title: 'WordListView', - component: WordListView, - argTypes: {}, -} - -export default meta -type Story = StoryObj - -export const Default: Story = { - args: {}, - async play({ canvasElement }) { - const canvas = within(canvasElement) - const container = canvas.getByTestId('word-list-view') - - expect(container).toBeTruthy() - }, -} diff --git a/examples/data-fetching/src/modules/words/word-list/word-list.types.ts b/examples/data-fetching/src/modules/words/word-list/word-list.types.ts deleted file mode 100644 index c9422fb..0000000 --- a/examples/data-fetching/src/modules/words/word-list/word-list.types.ts +++ /dev/null @@ -1,8 +0,0 @@ -export type WordElement = { - word: string - correct?: boolean -} - -export type WordListRepsonse = { - wordList: WordElement[] -} diff --git a/examples/data-fetching/src/modules/words/word-list/word-list.view.tsx b/examples/data-fetching/src/modules/words/word-list/word-list.view.tsx deleted file mode 100644 index 700e0bb..0000000 --- a/examples/data-fetching/src/modules/words/word-list/word-list.view.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import React from 'react' -import styles from './word-list.module.css' -import { InferGetServerSidePropsType, InferGetStaticPropsType } from 'next' -import { getRandomWordList, getStaticProps } from './utils' - -export function WordListView( - props: InferGetStaticPropsType -) { - return ( -
- WordList: {JSON.stringify(props?.randomWordList)} -
- ) -} - diff --git a/examples/data-fetching/src/styles/main.css b/examples/data-fetching/src/styles/main.css deleted file mode 100644 index 3e5cdbd..0000000 --- a/examples/data-fetching/src/styles/main.css +++ /dev/null @@ -1,5 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; - -@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100;200;300;400;500;600;700;800;900&display=swap'); diff --git a/examples/front-arch-ssr-react b/examples/front-arch-ssr-react deleted file mode 160000 index febdeb7..0000000 --- a/examples/front-arch-ssr-react +++ /dev/null @@ -1 +0,0 @@ -Subproject commit febdeb78282571e3781f33a85d2662d6ab8d1da8 diff --git a/motion-canvas-animations/presentation-animations/.gitignore b/motion-canvas-animations/presentation-animations/.gitignore deleted file mode 100644 index 829b1c7..0000000 --- a/motion-canvas-animations/presentation-animations/.gitignore +++ /dev/null @@ -1,15 +0,0 @@ -# Generated files -node_modules -output -dist - -# Editor directories and files -.vscode/* -!.vscode/extensions.json -.idea -.DS_Store -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/motion-canvas-animations/presentation-animations/package-lock.json b/motion-canvas-animations/presentation-animations/package-lock.json deleted file mode 100644 index ca56fd3..0000000 --- a/motion-canvas-animations/presentation-animations/package-lock.json +++ /dev/null @@ -1,1041 +0,0 @@ -{ - "name": "presentation-animations", - "version": "0.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "presentation-animations", - "version": "0.0.0", - "dependencies": { - "@motion-canvas/2d": "^3.11.0", - "@motion-canvas/core": "^3.11.0", - "@motion-canvas/ffmpeg": "^1.1.0" - }, - "devDependencies": { - "@motion-canvas/ui": "^3.11.0", - "@motion-canvas/vite-plugin": "^3.11.0", - "typescript": "^4.9.5", - "vite": "^4.1.4" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", - "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", - "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz", - "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", - "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", - "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", - "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", - "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", - "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", - "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", - "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", - "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", - "cpu": [ - "loong64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", - "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", - "cpu": [ - "mips64el" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", - "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", - "cpu": [ - "ppc64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", - "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", - "cpu": [ - "riscv64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", - "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", - "cpu": [ - "s390x" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", - "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", - "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", - "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", - "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", - "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", - "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", - "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@ffmpeg-installer/darwin-arm64": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@ffmpeg-installer/darwin-arm64/-/darwin-arm64-4.1.5.tgz", - "integrity": "sha512-hYqTiP63mXz7wSQfuqfFwfLOfwwFChUedeCVKkBtl/cliaTM7/ePI9bVzfZ2c+dWu3TqCwLDRWNSJ5pqZl8otA==", - "cpu": [ - "arm64" - ], - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@ffmpeg-installer/darwin-x64": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@ffmpeg-installer/darwin-x64/-/darwin-x64-4.1.0.tgz", - "integrity": "sha512-Z4EyG3cIFjdhlY8wI9aLUXuH8nVt7E9SlMVZtWvSPnm2sm37/yC2CwjUzyCQbJbySnef1tQwGG2Sx+uWhd9IAw==", - "cpu": [ - "x64" - ], - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@ffmpeg-installer/ffmpeg": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@ffmpeg-installer/ffmpeg/-/ffmpeg-1.1.0.tgz", - "integrity": "sha512-Uq4rmwkdGxIa9A6Bd/VqqYbT7zqh1GrT5/rFwCwKM70b42W5gIjWeVETq6SdcL0zXqDtY081Ws/iJWhr1+xvQg==", - "optionalDependencies": { - "@ffmpeg-installer/darwin-arm64": "4.1.5", - "@ffmpeg-installer/darwin-x64": "4.1.0", - "@ffmpeg-installer/linux-arm": "4.1.3", - "@ffmpeg-installer/linux-arm64": "4.1.4", - "@ffmpeg-installer/linux-ia32": "4.1.0", - "@ffmpeg-installer/linux-x64": "4.1.0", - "@ffmpeg-installer/win32-ia32": "4.1.0", - "@ffmpeg-installer/win32-x64": "4.1.0" - } - }, - "node_modules/@ffmpeg-installer/linux-arm": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/@ffmpeg-installer/linux-arm/-/linux-arm-4.1.3.tgz", - "integrity": "sha512-NDf5V6l8AfzZ8WzUGZ5mV8O/xMzRag2ETR6+TlGIsMHp81agx51cqpPItXPib/nAZYmo55Bl2L6/WOMI3A5YRg==", - "cpu": [ - "arm" - ], - "hasInstallScript": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@ffmpeg-installer/linux-arm64": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@ffmpeg-installer/linux-arm64/-/linux-arm64-4.1.4.tgz", - "integrity": "sha512-dljEqAOD0oIM6O6DxBW9US/FkvqvQwgJ2lGHOwHDDwu/pX8+V0YsDL1xqHbj1DMX/+nP9rxw7G7gcUvGspSoKg==", - "cpu": [ - "arm64" - ], - "hasInstallScript": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@ffmpeg-installer/linux-ia32": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@ffmpeg-installer/linux-ia32/-/linux-ia32-4.1.0.tgz", - "integrity": "sha512-0LWyFQnPf+Ij9GQGD034hS6A90URNu9HCtQ5cTqo5MxOEc7Rd8gLXrJvn++UmxhU0J5RyRE9KRYstdCVUjkNOQ==", - "cpu": [ - "ia32" - ], - "hasInstallScript": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@ffmpeg-installer/linux-x64": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@ffmpeg-installer/linux-x64/-/linux-x64-4.1.0.tgz", - "integrity": "sha512-Y5BWhGLU/WpQjOArNIgXD3z5mxxdV8c41C+U15nsE5yF8tVcdCGet5zPs5Zy3Ta6bU7haGpIzryutqCGQA/W8A==", - "cpu": [ - "x64" - ], - "hasInstallScript": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@ffmpeg-installer/win32-ia32": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@ffmpeg-installer/win32-ia32/-/win32-ia32-4.1.0.tgz", - "integrity": "sha512-FV2D7RlaZv/lrtdhaQ4oETwoFUsUjlUiasiZLDxhEUPdNDWcH1OU9K1xTvqz+OXLdsmYelUDuBS/zkMOTtlUAw==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@ffmpeg-installer/win32-x64": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@ffmpeg-installer/win32-x64/-/win32-x64-4.1.0.tgz", - "integrity": "sha512-Drt5u2vzDnIONf4ZEkKtFlbvwj6rI3kxw1Ck9fpudmtgaZIHD4ucsWB2lCZBXRxJgXR+2IMSti+4rtM4C4rXgg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@ffprobe-installer/darwin-arm64": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@ffprobe-installer/darwin-arm64/-/darwin-arm64-5.0.1.tgz", - "integrity": "sha512-vwNCNjokH8hfkbl6m95zICHwkSzhEvDC3GVBcUp5HX8+4wsX10SP3B+bGur7XUzTIZ4cQpgJmEIAx6TUwRepMg==", - "cpu": [ - "arm64" - ], - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@ffprobe-installer/darwin-x64": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@ffprobe-installer/darwin-x64/-/darwin-x64-5.1.0.tgz", - "integrity": "sha512-J+YGscZMpQclFg31O4cfVRGmDpkVsQ2fZujoUdMAAYcP0NtqpC49Hs3SWJpBdsGB4VeqOt5TTm1vSZQzs1NkhA==", - "cpu": [ - "x64" - ], - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@ffprobe-installer/ffprobe": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@ffprobe-installer/ffprobe/-/ffprobe-2.1.2.tgz", - "integrity": "sha512-ZNvwk4f2magF42Zji2Ese16SMj9BS7Fui4kRjg6gTYTxY3gWZNpg85n4MIfQyI9nimHg4x/gT6FVkp/bBDuBwg==", - "engines": { - "node": ">=14.21.2" - }, - "optionalDependencies": { - "@ffprobe-installer/darwin-arm64": "5.0.1", - "@ffprobe-installer/darwin-x64": "5.1.0", - "@ffprobe-installer/linux-arm": "5.2.0", - "@ffprobe-installer/linux-arm64": "5.2.0", - "@ffprobe-installer/linux-ia32": "5.2.0", - "@ffprobe-installer/linux-x64": "5.2.0", - "@ffprobe-installer/win32-ia32": "5.1.0", - "@ffprobe-installer/win32-x64": "5.1.0" - } - }, - "node_modules/@ffprobe-installer/linux-arm": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@ffprobe-installer/linux-arm/-/linux-arm-5.2.0.tgz", - "integrity": "sha512-PF5HqEhCY7WTWHtLDYbA/+rLS+rhslWvyBlAG1Fk8VzVlnRdl93o6hy7DE2kJgxWQbFaR3ZktPQGEzfkrmQHvQ==", - "cpu": [ - "arm" - ], - "hasInstallScript": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@ffprobe-installer/linux-arm64": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@ffprobe-installer/linux-arm64/-/linux-arm64-5.2.0.tgz", - "integrity": "sha512-X1VvWtlLs6ScP73biVLuHD5ohKJKsMTa0vafCESOen4mOoNeLAYbxOVxDWAdFz9cpZgRiloFj5QD6nDj8E28yQ==", - "cpu": [ - "arm64" - ], - "hasInstallScript": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@ffprobe-installer/linux-ia32": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@ffprobe-installer/linux-ia32/-/linux-ia32-5.2.0.tgz", - "integrity": "sha512-TFVK5sasXyXhbIG7LtPRDmtkrkOsInwKcL43iEvEw+D9vCS2rc//mn9/0Q+BR0UoJEiMK4+ApYr/3LLVUBPOCQ==", - "cpu": [ - "ia32" - ], - "hasInstallScript": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@ffprobe-installer/linux-x64": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@ffprobe-installer/linux-x64/-/linux-x64-5.2.0.tgz", - "integrity": "sha512-D3UeqTLYPNs7pBWPLUYGehPdRVqU8eACox4OZy3pZUZatxye2YKlvBwEfaLdL1v2Z4FOAlLUhms0kY8m8kqSRA==", - "cpu": [ - "x64" - ], - "hasInstallScript": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@ffprobe-installer/win32-ia32": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@ffprobe-installer/win32-ia32/-/win32-ia32-5.1.0.tgz", - "integrity": "sha512-5O3vOoNRxmut0/Nu9vSazTdSHasrr+zPT2B3Hm7kjmO3QVFcIfVImS6ReQnZeSy8JPJOqXts5kX5x/3KOX54XQ==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@ffprobe-installer/win32-x64": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@ffprobe-installer/win32-x64/-/win32-x64-5.1.0.tgz", - "integrity": "sha512-jMGYeAgkrdn4e2vvYt/qakgHRE3CPju4bn5TmdPfoAm1BlX1mY9cyMd8gf5vSzI8gH8Zq5WQAyAkmekX/8TSTg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@motion-canvas/2d": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@motion-canvas/2d/-/2d-3.11.0.tgz", - "integrity": "sha512-T/RPXGRxddO/xxbC2RcOXfrtBTp8lfcmnuW1fa6++0qy0chK5NFxm3bHJczCbX0ynKB2VAoqLNobTF9eD6ZP3w==", - "dependencies": { - "@motion-canvas/core": "^3.11.0", - "code-fns": "^0.8.2", - "mathjax-full": "^3.2.2", - "parse-svg-path": "^0.1.2" - } - }, - "node_modules/@motion-canvas/core": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@motion-canvas/core/-/core-3.11.0.tgz", - "integrity": "sha512-/WjdoSTqTPwCgrB2pP8YXq2T3KviYHrywVxXJ5fEjQ1gajkPKYD7aVlRcY1+kaTbwqXhCARMCh+pSjT2nfhTsw==", - "dependencies": { - "@types/chroma-js": "^2.1.4", - "chroma-js": "^2.4.2" - }, - "peerDependencies": { - "vite": "^4.1.4" - } - }, - "node_modules/@motion-canvas/ffmpeg": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@motion-canvas/ffmpeg/-/ffmpeg-1.1.1.tgz", - "integrity": "sha512-w2d7oFfR3hYHXeYtFGoHp6goY+vVL0LoZ2h1b/veTH5KvE7jrLp2Kl/XPHsYJ5ZDRHUT0Nhl05DBLdXYqdSqgg==", - "dependencies": { - "@ffmpeg-installer/ffmpeg": "^1.1.0", - "@ffprobe-installer/ffprobe": "^2.0.0", - "fluent-ffmpeg": "^2.1.2" - }, - "peerDependencies": { - "@motion-canvas/core": "^3.7.0", - "@motion-canvas/vite-plugin": "^3.7.0", - "vite": "4.x" - } - }, - "node_modules/@motion-canvas/ui": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@motion-canvas/ui/-/ui-3.11.0.tgz", - "integrity": "sha512-sd0GxvCkejL2lzExsvgLsC1GgHzLP/0LlMw1QE2/3pMQo3rMOVA7L1Oq6br8HqdJhzMEgW3DWC0NjDJsUfkL2A==", - "dev": true, - "dependencies": { - "@motion-canvas/core": "^3.11.0" - } - }, - "node_modules/@motion-canvas/vite-plugin": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@motion-canvas/vite-plugin/-/vite-plugin-3.11.0.tgz", - "integrity": "sha512-26ixfy5NhvFePj1DBdh7MFsgevpRrzzEKjzSyCK3FOvPcnUWFjab4wWErpsIEnu6a0p7yj4w9VKpa8USx6N95A==", - "dependencies": { - "follow-redirects": "^1.15.2", - "mime-types": "^2.1.35" - }, - "peerDependencies": { - "vite": "4.x" - } - }, - "node_modules/@types/chroma-js": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/@types/chroma-js/-/chroma-js-2.4.3.tgz", - "integrity": "sha512-1ly5ly/7S/YF8aD7MxUQnFOZxdegimuOunJl0xDsLlguu5JrwuSTVGVH3UpIUlh6YauI0RMNT4cqjBonhgbdIQ==" - }, - "node_modules/@types/hast": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.8.tgz", - "integrity": "sha512-aMIqAlFd2wTIDZuvLbhUT+TGvMxrNC8ECUIVtH6xxy0sQLs3iu6NO8Kp/VT5je7i5ufnebXzdV1dNDMnvaH6IQ==", - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/@types/unist": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.10.tgz", - "integrity": "sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA==" - }, - "node_modules/@wooorm/starry-night": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@wooorm/starry-night/-/starry-night-1.7.0.tgz", - "integrity": "sha512-ktO0nkddrovIoNW2jAUT+Cdd9n1bWjy1Ir4CdcmgTaT6E94HLlQfu7Yv62falclBEwvsuVp3bSBw23wtta1fNw==", - "dependencies": { - "@types/hast": "^2.0.0", - "import-meta-resolve": "^2.0.0", - "vscode-oniguruma": "^1.0.0", - "vscode-textmate": "^9.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/async": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", - "integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==" - }, - "node_modules/chroma-js": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chroma-js/-/chroma-js-2.4.2.tgz", - "integrity": "sha512-U9eDw6+wt7V8z5NncY2jJfZa+hUH8XEj8FQHgFJTrUFnJfXYf4Ml4adI2vXZOjqRDpFWtYVWypDfZwnJ+HIR4A==" - }, - "node_modules/code-fns": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/code-fns/-/code-fns-0.8.2.tgz", - "integrity": "sha512-3VVeq3cnWxWiWKFLsVo+XWsOXBSW2gAx2uv0ViETLNmNuygEPHlCeDAv/Zy7xXqPgXtgLZyvIJZmx+ojTgOIGA==", - "dependencies": { - "@wooorm/starry-night": "^1.2.0" - } - }, - "node_modules/commander": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-9.2.0.tgz", - "integrity": "sha512-e2i4wANQiSXgnrBlIatyHtP1odfUp0BbV5Y5nEGbxtIrStkEOAAzCUirvLBNXHLr7kwLvJl6V+4V3XV9x7Wd9w==", - "engines": { - "node": "^12.20.0 || >=14" - } - }, - "node_modules/esbuild": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz", - "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", - "hasInstallScript": true, - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/android-arm": "0.18.20", - "@esbuild/android-arm64": "0.18.20", - "@esbuild/android-x64": "0.18.20", - "@esbuild/darwin-arm64": "0.18.20", - "@esbuild/darwin-x64": "0.18.20", - "@esbuild/freebsd-arm64": "0.18.20", - "@esbuild/freebsd-x64": "0.18.20", - "@esbuild/linux-arm": "0.18.20", - "@esbuild/linux-arm64": "0.18.20", - "@esbuild/linux-ia32": "0.18.20", - "@esbuild/linux-loong64": "0.18.20", - "@esbuild/linux-mips64el": "0.18.20", - "@esbuild/linux-ppc64": "0.18.20", - "@esbuild/linux-riscv64": "0.18.20", - "@esbuild/linux-s390x": "0.18.20", - "@esbuild/linux-x64": "0.18.20", - "@esbuild/netbsd-x64": "0.18.20", - "@esbuild/openbsd-x64": "0.18.20", - "@esbuild/sunos-x64": "0.18.20", - "@esbuild/win32-arm64": "0.18.20", - "@esbuild/win32-ia32": "0.18.20", - "@esbuild/win32-x64": "0.18.20" - } - }, - "node_modules/esm": { - "version": "3.2.25", - "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz", - "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/fluent-ffmpeg": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/fluent-ffmpeg/-/fluent-ffmpeg-2.1.2.tgz", - "integrity": "sha512-IZTB4kq5GK0DPp7sGQ0q/BWurGHffRtQQwVkiqDgeO6wYJLLV5ZhgNOQ65loZxxuPMKZKZcICCUnaGtlxBiR0Q==", - "dependencies": { - "async": ">=0.2.9", - "which": "^1.1.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/follow-redirects": { - "version": "1.15.3", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", - "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/import-meta-resolve": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-2.2.2.tgz", - "integrity": "sha512-f8KcQ1D80V7RnqVm+/lirO9zkOxjGxhaTC1IPrBGd3MEfNgmNG67tSUO9gTi2F3Blr2Az6g1vocaxzkVnWl9MA==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" - }, - "node_modules/mathjax-full": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/mathjax-full/-/mathjax-full-3.2.2.tgz", - "integrity": "sha512-+LfG9Fik+OuI8SLwsiR02IVdjcnRCy5MufYLi0C3TdMT56L/pjB0alMVGgoWJF8pN9Rc7FESycZB9BMNWIid5w==", - "dependencies": { - "esm": "^3.2.25", - "mhchemparser": "^4.1.0", - "mj-context-menu": "^0.6.1", - "speech-rule-engine": "^4.0.6" - } - }, - "node_modules/mhchemparser": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/mhchemparser/-/mhchemparser-4.2.1.tgz", - "integrity": "sha512-kYmyrCirqJf3zZ9t/0wGgRZ4/ZJw//VwaRVGA75C4nhE60vtnIzhl9J9ndkX/h6hxSN7pjg/cE0VxbnNM+bnDQ==" - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mj-context-menu": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/mj-context-menu/-/mj-context-menu-0.6.1.tgz", - "integrity": "sha512-7NO5s6n10TIV96d4g2uDpG7ZDpIhMh0QNfGdJw/W47JswFcosz457wqz/b5sAKvl12sxINGFCn80NZHKwxQEXA==" - }, - "node_modules/nanoid": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", - "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/parse-svg-path": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/parse-svg-path/-/parse-svg-path-0.1.2.tgz", - "integrity": "sha512-JyPSBnkTJ0AI8GGJLfMXvKq42cj5c006fnLz6fXy6zfoVjJizi8BNTpu8on8ziI1cKy9d9DGNuY17Ce7wuejpQ==" - }, - "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" - }, - "node_modules/postcss": { - "version": "8.4.32", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.32.tgz", - "integrity": "sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "nanoid": "^3.3.7", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/rollup": { - "version": "3.29.4", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.4.tgz", - "integrity": "sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==", - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=14.18.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/speech-rule-engine": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/speech-rule-engine/-/speech-rule-engine-4.0.7.tgz", - "integrity": "sha512-sJrL3/wHzNwJRLBdf6CjJWIlxC04iYKkyXvYSVsWVOiC2DSkHmxsqOhEeMsBA9XK+CHuNcsdkbFDnoUfAsmp9g==", - "dependencies": { - "commander": "9.2.0", - "wicked-good-xpath": "1.3.0", - "xmldom-sre": "0.1.31" - }, - "bin": { - "sre": "bin/sre" - } - }, - "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/vite": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.1.tgz", - "integrity": "sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==", - "dependencies": { - "esbuild": "^0.18.10", - "postcss": "^8.4.27", - "rollup": "^3.27.1" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - }, - "peerDependencies": { - "@types/node": ">= 14", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "stylus": "*", - "sugarss": "*", - "terser": "^5.4.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - } - } - }, - "node_modules/vscode-oniguruma": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/vscode-oniguruma/-/vscode-oniguruma-1.7.0.tgz", - "integrity": "sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==" - }, - "node_modules/vscode-textmate": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-9.0.0.tgz", - "integrity": "sha512-Cl65diFGxz7gpwbav10HqiY/eVYTO1sjQpmRmV991Bj7wAoOAjGQ97PpQcXorDE2Uc4hnGWLY17xme+5t6MlSg==" - }, - "node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, - "node_modules/wicked-good-xpath": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/wicked-good-xpath/-/wicked-good-xpath-1.3.0.tgz", - "integrity": "sha512-Gd9+TUn5nXdwj/hFsPVx5cuHHiF5Bwuc30jZ4+ronF1qHK5O7HD0sgmXWSEgwKquT3ClLoKPVbO6qGwVwLzvAw==" - }, - "node_modules/xmldom-sre": { - "version": "0.1.31", - "resolved": "https://registry.npmjs.org/xmldom-sre/-/xmldom-sre-0.1.31.tgz", - "integrity": "sha512-f9s+fUkX04BxQf+7mMWAp5zk61pciie+fFLC9hX9UVvCeJQfNHRHXpeo5MPcR0EUf57PYLdt+ZO4f3Ipk2oZUw==", - "engines": { - "node": ">=0.1" - } - } - } -} diff --git a/motion-canvas-animations/presentation-animations/package.json b/motion-canvas-animations/presentation-animations/package.json deleted file mode 100644 index a78e319..0000000 --- a/motion-canvas-animations/presentation-animations/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "presentation-animations", - "private": true, - "version": "0.0.0", - "scripts": { - "serve": "vite", - "build": "tsc && vite build" - }, - "dependencies": { - "@motion-canvas/core": "^3.11.0", - "@motion-canvas/2d": "^3.11.0", - "@motion-canvas/ffmpeg": "^1.1.0" - }, - "devDependencies": { - "@motion-canvas/ui": "^3.11.0", - "@motion-canvas/vite-plugin": "^3.11.0", - "typescript": "^4.9.5", - "vite": "^4.1.4" - } -} \ No newline at end of file diff --git a/motion-canvas-animations/presentation-animations/src/motion-canvas.d.ts b/motion-canvas-animations/presentation-animations/src/motion-canvas.d.ts deleted file mode 100644 index 067c6a4..0000000 --- a/motion-canvas-animations/presentation-animations/src/motion-canvas.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/motion-canvas-animations/presentation-animations/src/project.meta b/motion-canvas-animations/presentation-animations/src/project.meta deleted file mode 100644 index 499e306..0000000 --- a/motion-canvas-animations/presentation-animations/src/project.meta +++ /dev/null @@ -1,32 +0,0 @@ -{ - "version": 0, - "shared": { - "background": null, - "range": [ - 0, - null - ], - "size": { - "x": 1920, - "y": 1080 - }, - "audioOffset": 0 - }, - "preview": { - "fps": 30, - "resolutionScale": 1 - }, - "rendering": { - "fps": 60, - "resolutionScale": 1, - "colorSpace": "srgb", - "exporter": { - "name": "@motion-canvas/core/image-sequence", - "options": { - "fileType": "image/png", - "quality": 100, - "groupByScene": false - } - } - } -} \ No newline at end of file diff --git a/motion-canvas-animations/presentation-animations/src/project.ts b/motion-canvas-animations/presentation-animations/src/project.ts deleted file mode 100644 index ecfbbeb..0000000 --- a/motion-canvas-animations/presentation-animations/src/project.ts +++ /dev/null @@ -1,7 +0,0 @@ -import {makeProject} from '@motion-canvas/core'; - -import example from './scenes/example?scene'; - -export default makeProject({ - scenes: [example], -}); diff --git a/motion-canvas-animations/presentation-animations/src/scenes/example.meta b/motion-canvas-animations/presentation-animations/src/scenes/example.meta deleted file mode 100644 index e172c07..0000000 --- a/motion-canvas-animations/presentation-animations/src/scenes/example.meta +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 0, - "timeEvents": [], - "seed": 1375832605 -} \ No newline at end of file diff --git a/motion-canvas-animations/presentation-animations/src/scenes/example.tsx b/motion-canvas-animations/presentation-animations/src/scenes/example.tsx deleted file mode 100644 index 9d8499d..0000000 --- a/motion-canvas-animations/presentation-animations/src/scenes/example.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import {makeScene2D, Circle} from '@motion-canvas/2d'; -import {all, createRef} from '@motion-canvas/core'; - -export default makeScene2D(function* (view) { - const myCircle = createRef(); - - view.add( - , - ); - - yield* all( - myCircle().position.x(300, 1).to(-300, 1), - myCircle().fill('#e6a700', 1).to('#e13238', 1), - ); -}); diff --git a/motion-canvas-animations/presentation-animations/tsconfig.json b/motion-canvas-animations/presentation-animations/tsconfig.json deleted file mode 100644 index e7d5347..0000000 --- a/motion-canvas-animations/presentation-animations/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "@motion-canvas/2d/tsconfig.project.json", - "include": ["src"] -} diff --git a/motion-canvas-animations/presentation-animations/vite.config.ts b/motion-canvas-animations/presentation-animations/vite.config.ts deleted file mode 100644 index 42d9d68..0000000 --- a/motion-canvas-animations/presentation-animations/vite.config.ts +++ /dev/null @@ -1,10 +0,0 @@ -import {defineConfig} from 'vite'; -import motionCanvas from '@motion-canvas/vite-plugin'; -import ffmpeg from '@motion-canvas/ffmpeg'; - -export default defineConfig({ - plugins: [ - motionCanvas(), - ffmpeg(), - ], -}); diff --git a/examples/data-fetching/.blueprints/api/__kebabCase_name__/__kebabCase_name__.api.ts b/presentation/.blueprints/api/__kebabCase_name__/__kebabCase_name__.api.ts similarity index 100% rename from examples/data-fetching/.blueprints/api/__kebabCase_name__/__kebabCase_name__.api.ts rename to presentation/.blueprints/api/__kebabCase_name__/__kebabCase_name__.api.ts diff --git a/examples/data-fetching/.blueprints/api/__kebabCase_name__/__kebabCase_name__.hooks.ts b/presentation/.blueprints/api/__kebabCase_name__/__kebabCase_name__.hooks.ts similarity index 100% rename from examples/data-fetching/.blueprints/api/__kebabCase_name__/__kebabCase_name__.hooks.ts rename to presentation/.blueprints/api/__kebabCase_name__/__kebabCase_name__.hooks.ts diff --git a/examples/data-fetching/.blueprints/api/__kebabCase_name__/__kebabCase_name__.types.ts b/presentation/.blueprints/api/__kebabCase_name__/__kebabCase_name__.types.ts similarity index 100% rename from examples/data-fetching/.blueprints/api/__kebabCase_name__/__kebabCase_name__.types.ts rename to presentation/.blueprints/api/__kebabCase_name__/__kebabCase_name__.types.ts diff --git a/examples/data-fetching/.blueprints/api/__kebabCase_name__/index.ts b/presentation/.blueprints/api/__kebabCase_name__/index.ts similarity index 100% rename from examples/data-fetching/.blueprints/api/__kebabCase_name__/index.ts rename to presentation/.blueprints/api/__kebabCase_name__/index.ts diff --git a/examples/data-fetching/.blueprints/component/__kebabCase_name__/__kebabCase_name__.component.tsx b/presentation/.blueprints/component/__kebabCase_name__/__kebabCase_name__.component.tsx similarity index 100% rename from examples/data-fetching/.blueprints/component/__kebabCase_name__/__kebabCase_name__.component.tsx rename to presentation/.blueprints/component/__kebabCase_name__/__kebabCase_name__.component.tsx diff --git a/examples/data-fetching/.blueprints/component/__kebabCase_name__/__kebabCase_name__.module.css b/presentation/.blueprints/component/__kebabCase_name__/__kebabCase_name__.module.css similarity index 100% rename from examples/data-fetching/.blueprints/component/__kebabCase_name__/__kebabCase_name__.module.css rename to presentation/.blueprints/component/__kebabCase_name__/__kebabCase_name__.module.css diff --git a/examples/data-fetching/.blueprints/component/__kebabCase_name__/__kebabCase_name__.stories.tsx b/presentation/.blueprints/component/__kebabCase_name__/__kebabCase_name__.stories.tsx similarity index 100% rename from examples/data-fetching/.blueprints/component/__kebabCase_name__/__kebabCase_name__.stories.tsx rename to presentation/.blueprints/component/__kebabCase_name__/__kebabCase_name__.stories.tsx diff --git a/examples/data-fetching/.blueprints/component/__kebabCase_name__/index.ts b/presentation/.blueprints/component/__kebabCase_name__/index.ts similarity index 100% rename from examples/data-fetching/.blueprints/component/__kebabCase_name__/index.ts rename to presentation/.blueprints/component/__kebabCase_name__/index.ts diff --git a/examples/data-fetching/.blueprints/layout/__kebabCase_name__/__kebabCase_name__.layout.tsx b/presentation/.blueprints/layout/__kebabCase_name__/__kebabCase_name__.layout.tsx similarity index 100% rename from examples/data-fetching/.blueprints/layout/__kebabCase_name__/__kebabCase_name__.layout.tsx rename to presentation/.blueprints/layout/__kebabCase_name__/__kebabCase_name__.layout.tsx diff --git a/examples/data-fetching/.blueprints/layout/__kebabCase_name__/__kebabCase_name__.module.css b/presentation/.blueprints/layout/__kebabCase_name__/__kebabCase_name__.module.css similarity index 100% rename from examples/data-fetching/.blueprints/layout/__kebabCase_name__/__kebabCase_name__.module.css rename to presentation/.blueprints/layout/__kebabCase_name__/__kebabCase_name__.module.css diff --git a/examples/data-fetching/.blueprints/layout/__kebabCase_name__/__kebabCase_name__.stories.tsx b/presentation/.blueprints/layout/__kebabCase_name__/__kebabCase_name__.stories.tsx similarity index 100% rename from examples/data-fetching/.blueprints/layout/__kebabCase_name__/__kebabCase_name__.stories.tsx rename to presentation/.blueprints/layout/__kebabCase_name__/__kebabCase_name__.stories.tsx diff --git a/examples/data-fetching/.blueprints/layout/__kebabCase_name__/index.ts b/presentation/.blueprints/layout/__kebabCase_name__/index.ts similarity index 100% rename from examples/data-fetching/.blueprints/layout/__kebabCase_name__/index.ts rename to presentation/.blueprints/layout/__kebabCase_name__/index.ts diff --git a/examples/data-fetching/.blueprints/view/__kebabCase_name__/__kebabCase_name__.module.css b/presentation/.blueprints/view/__kebabCase_name__/__kebabCase_name__.module.css similarity index 100% rename from examples/data-fetching/.blueprints/view/__kebabCase_name__/__kebabCase_name__.module.css rename to presentation/.blueprints/view/__kebabCase_name__/__kebabCase_name__.module.css diff --git a/examples/data-fetching/.blueprints/view/__kebabCase_name__/__kebabCase_name__.stories.tsx b/presentation/.blueprints/view/__kebabCase_name__/__kebabCase_name__.stories.tsx similarity index 100% rename from examples/data-fetching/.blueprints/view/__kebabCase_name__/__kebabCase_name__.stories.tsx rename to presentation/.blueprints/view/__kebabCase_name__/__kebabCase_name__.stories.tsx diff --git a/examples/data-fetching/.blueprints/view/__kebabCase_name__/__kebabCase_name__.view.tsx b/presentation/.blueprints/view/__kebabCase_name__/__kebabCase_name__.view.tsx similarity index 100% rename from examples/data-fetching/.blueprints/view/__kebabCase_name__/__kebabCase_name__.view.tsx rename to presentation/.blueprints/view/__kebabCase_name__/__kebabCase_name__.view.tsx diff --git a/examples/data-fetching/.blueprints/view/__kebabCase_name__/index.ts b/presentation/.blueprints/view/__kebabCase_name__/index.ts similarity index 100% rename from examples/data-fetching/.blueprints/view/__kebabCase_name__/index.ts rename to presentation/.blueprints/view/__kebabCase_name__/index.ts diff --git a/examples/data-fetching/.blueprints/widget/__kebabCase_name__/__kebabCase_name__.module.css b/presentation/.blueprints/widget/__kebabCase_name__/__kebabCase_name__.module.css similarity index 100% rename from examples/data-fetching/.blueprints/widget/__kebabCase_name__/__kebabCase_name__.module.css rename to presentation/.blueprints/widget/__kebabCase_name__/__kebabCase_name__.module.css diff --git a/examples/data-fetching/.blueprints/widget/__kebabCase_name__/__kebabCase_name__.stories.tsx b/presentation/.blueprints/widget/__kebabCase_name__/__kebabCase_name__.stories.tsx similarity index 100% rename from examples/data-fetching/.blueprints/widget/__kebabCase_name__/__kebabCase_name__.stories.tsx rename to presentation/.blueprints/widget/__kebabCase_name__/__kebabCase_name__.stories.tsx diff --git a/examples/data-fetching/.blueprints/widget/__kebabCase_name__/__kebabCase_name__.widget.tsx b/presentation/.blueprints/widget/__kebabCase_name__/__kebabCase_name__.widget.tsx similarity index 100% rename from examples/data-fetching/.blueprints/widget/__kebabCase_name__/__kebabCase_name__.widget.tsx rename to presentation/.blueprints/widget/__kebabCase_name__/__kebabCase_name__.widget.tsx diff --git a/examples/data-fetching/.blueprints/widget/__kebabCase_name__/index.ts b/presentation/.blueprints/widget/__kebabCase_name__/index.ts similarity index 100% rename from examples/data-fetching/.blueprints/widget/__kebabCase_name__/index.ts rename to presentation/.blueprints/widget/__kebabCase_name__/index.ts diff --git a/examples/data-fetching/.commitlintrc.json b/presentation/.commitlintrc.json similarity index 100% rename from examples/data-fetching/.commitlintrc.json rename to presentation/.commitlintrc.json diff --git a/examples/data-fetching/.editorconfig b/presentation/.editorconfig similarity index 100% rename from examples/data-fetching/.editorconfig rename to presentation/.editorconfig diff --git a/examples/data-fetching/.eslintignore b/presentation/.eslintignore similarity index 100% rename from examples/data-fetching/.eslintignore rename to presentation/.eslintignore diff --git a/examples/data-fetching/.eslintrc.json b/presentation/.eslintrc.json similarity index 100% rename from examples/data-fetching/.eslintrc.json rename to presentation/.eslintrc.json diff --git a/examples/data-fetching/.gitignore b/presentation/.gitignore similarity index 100% rename from examples/data-fetching/.gitignore rename to presentation/.gitignore diff --git a/examples/data-fetching/.husky/commit-msg b/presentation/.husky/commit-msg similarity index 100% rename from examples/data-fetching/.husky/commit-msg rename to presentation/.husky/commit-msg diff --git a/examples/data-fetching/.husky/pre-commit b/presentation/.husky/pre-commit similarity index 100% rename from examples/data-fetching/.husky/pre-commit rename to presentation/.husky/pre-commit diff --git a/examples/data-fetching/.prettierrc.json b/presentation/.prettierrc.json similarity index 100% rename from examples/data-fetching/.prettierrc.json rename to presentation/.prettierrc.json diff --git a/examples/data-fetching/.storybook/main.ts b/presentation/.storybook/main.ts similarity index 100% rename from examples/data-fetching/.storybook/main.ts rename to presentation/.storybook/main.ts diff --git a/examples/data-fetching/.storybook/preview.ts b/presentation/.storybook/preview.ts similarity index 100% rename from examples/data-fetching/.storybook/preview.ts rename to presentation/.storybook/preview.ts diff --git a/examples/data-fetching/.vscode/extensions.json b/presentation/.vscode/extensions.json similarity index 100% rename from examples/data-fetching/.vscode/extensions.json rename to presentation/.vscode/extensions.json diff --git a/examples/data-fetching/.vscode/launch.json b/presentation/.vscode/launch.json similarity index 100% rename from examples/data-fetching/.vscode/launch.json rename to presentation/.vscode/launch.json diff --git a/examples/data-fetching/.vscode/settings.json b/presentation/.vscode/settings.json similarity index 100% rename from examples/data-fetching/.vscode/settings.json rename to presentation/.vscode/settings.json diff --git a/examples/data-fetching/LICENSE b/presentation/LICENSE similarity index 100% rename from examples/data-fetching/LICENSE rename to presentation/LICENSE diff --git a/examples/data-fetching/README.md b/presentation/README.md similarity index 100% rename from examples/data-fetching/README.md rename to presentation/README.md diff --git a/examples/data-fetching/global.d.ts b/presentation/global.d.ts similarity index 100% rename from examples/data-fetching/global.d.ts rename to presentation/global.d.ts diff --git a/examples/data-fetching/jest.config.ts b/presentation/jest.config.ts similarity index 100% rename from examples/data-fetching/jest.config.ts rename to presentation/jest.config.ts diff --git a/examples/data-fetching/next.config.js b/presentation/next.config.js similarity index 85% rename from examples/data-fetching/next.config.js rename to presentation/next.config.js index bef805c..00fdd60 100644 --- a/examples/data-fetching/next.config.js +++ b/presentation/next.config.js @@ -1,6 +1,9 @@ /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, + experimental: { + serverActions: true, + }, // Avoiding CORS issues // async rewrites() { // return [ diff --git a/examples/data-fetching/package-lock.json b/presentation/package-lock.json similarity index 100% rename from examples/data-fetching/package-lock.json rename to presentation/package-lock.json diff --git a/examples/data-fetching/package.json b/presentation/package.json similarity index 100% rename from examples/data-fetching/package.json rename to presentation/package.json diff --git a/examples/data-fetching/postcss.config.js b/presentation/postcss.config.js similarity index 100% rename from examples/data-fetching/postcss.config.js rename to presentation/postcss.config.js diff --git a/examples/data-fetching/public/favicon.ico b/presentation/public/favicon.ico similarity index 100% rename from examples/data-fetching/public/favicon.ico rename to presentation/public/favicon.ico diff --git a/examples/data-fetching/public/next.svg b/presentation/public/next.svg similarity index 100% rename from examples/data-fetching/public/next.svg rename to presentation/public/next.svg diff --git a/presentation/public/server-side-rendering-diagram.avif b/presentation/public/server-side-rendering-diagram.avif new file mode 100644 index 0000000..800d977 Binary files /dev/null and b/presentation/public/server-side-rendering-diagram.avif differ diff --git a/examples/data-fetching/public/thirteen.svg b/presentation/public/thirteen.svg similarity index 100% rename from examples/data-fetching/public/thirteen.svg rename to presentation/public/thirteen.svg diff --git a/examples/data-fetching/public/vercel.svg b/presentation/public/vercel.svg similarity index 100% rename from examples/data-fetching/public/vercel.svg rename to presentation/public/vercel.svg diff --git a/examples/data-fetching/src/app/auth/sign-in/page.tsx b/presentation/src/app/auth/sign-in/page.tsx similarity index 100% rename from examples/data-fetching/src/app/auth/sign-in/page.tsx rename to presentation/src/app/auth/sign-in/page.tsx diff --git a/examples/data-fetching/src/app/layout.tsx b/presentation/src/app/layout.tsx similarity index 100% rename from examples/data-fetching/src/app/layout.tsx rename to presentation/src/app/layout.tsx diff --git a/examples/data-fetching/src/app/page.tsx b/presentation/src/app/page.tsx similarity index 100% rename from examples/data-fetching/src/app/page.tsx rename to presentation/src/app/page.tsx diff --git a/presentation/src/app/presentation/page.tsx b/presentation/src/app/presentation/page.tsx new file mode 100644 index 0000000..6c362e2 --- /dev/null +++ b/presentation/src/app/presentation/page.tsx @@ -0,0 +1,140 @@ +'use client' + +import { useRouter } from 'next/navigation' +import { useState } from 'react' + +export default function Presentation() { + const [current, setCurrent] = useState(0) + + const stages = [ + , + , + , + , + , + ] + + return ( +
+ {stages[current]} + +
+ ) +} + +// 1. Introduction +// 2. Rendering strategies. +// 3. Benefits. +// 4. Actual process and why its important to know it. +// 5. Serverside data fetching + +function Introduction() { + return ( +
+

Next

+
+

Nos da la posibilidad de renderizar desde el servidor

+
+
+ ) +} + +function Rendering() { + return ( +
+

Rendering

+
+ The rendering works is split into chunks: - By individual route + segments - By React [Suspense + boundaries](https://react.dev/reference/react/Suspense) (react + way of having a fallback while a components has finished + loading) Each chunk is rendered in the server, then, on the + client: 1. The HTML is used to immediately show fast preview. 2. + The server components rendered are inserted to update the DOM + (components rendered in server with placeholders for client + components and props). 3. `JS` instructions are used to + [hydrate?](https://react.dev/reference/react-dom/client/hydrateRoot) + Client Components and make the application interactive. +
+
+ ) +} + +function Strategies() { + return ( +
+

Strategies

+
+
    +
  • + - Static rendering (default): Good for static pages: + Rendered in build time or in the background after data + revalidation +
  • +
  • + - Security: sensitive data is kept int the server (API + keys and tokens) +
  • +
  • + - Dynamic rendering: rendered per user request, Next + uses this type of rendering automatically when discovers + a dynamic function (`cookies()`, `headers()`, + `userSearchParams()`). +
  • +
  • + - Streaming: work is split into chunks and streamed as + they become ready so the load is progressive. +
  • +
+
+
+ ) +} + +function Benefits() { + return ( +
+

Beneficios

+
+
    +
  • + - Fetch data directly on the server, performance and + load benefits. +
  • +
  • + - Security: sensitive data is kept int the server (API + keys and tokens) +
  • +
  • + - Caching: results can be cached to improve performance + between users. +
  • +
  • + - Bundle size: will be reduced as part of the + application will reside in the server. +
  • +
  • + - SEO: because the pages will be rendered the search + engine bots will make good use of it. +
  • +
  • + - Streaming: to split the rendering into chunks and + stream them as they become ready. +
  • +
+
+
+ ) +} + +function DataFetching() { + const router = useRouter() + router.push('/word-list') + return <>Redirecting... +} diff --git a/examples/data-fetching/src/app/users/page.tsx b/presentation/src/app/users/page.tsx similarity index 100% rename from examples/data-fetching/src/app/users/page.tsx rename to presentation/src/app/users/page.tsx diff --git a/presentation/src/app/word-list/actions.ts b/presentation/src/app/word-list/actions.ts new file mode 100644 index 0000000..b8860be --- /dev/null +++ b/presentation/src/app/word-list/actions.ts @@ -0,0 +1,6 @@ +'use server' +import { revalidateTag } from 'next/cache' + +export async function revalidateFetchByTag(tag: string) { + revalidateTag(tag) +} diff --git a/presentation/src/app/word-list/components/clientside-word-list.tsx b/presentation/src/app/word-list/components/clientside-word-list.tsx new file mode 100644 index 0000000..20c7cb6 --- /dev/null +++ b/presentation/src/app/word-list/components/clientside-word-list.tsx @@ -0,0 +1,31 @@ +'use client' + +import { useEffect, useState } from 'react' +import { WordListRepsonse, fetchWordlist } from '../utils' + +export default function ClientWordList() { + const [data, setData] = useState() + + const fetchData = () => + fetchWordlist().then((response) => setData(response)) + + useEffect(() => { + fetchData() + }, []) + + return ( +
+

+ Wordlist fetched in the client +

+
+ {data?.wordList.map((word) => ( + {word.word} + ))} +
+
+ +
+
+ ) +} diff --git a/presentation/src/app/word-list/components/go-back-button.tsx b/presentation/src/app/word-list/components/go-back-button.tsx new file mode 100644 index 0000000..f76458b --- /dev/null +++ b/presentation/src/app/word-list/components/go-back-button.tsx @@ -0,0 +1,15 @@ +'use client' + +import { useRouter } from 'next/navigation' + +export default function GoBackButton() { + const router = useRouter() + return ( + + ) +} diff --git a/presentation/src/app/word-list/components/revalidate-button.tsx b/presentation/src/app/word-list/components/revalidate-button.tsx new file mode 100644 index 0000000..657b18f --- /dev/null +++ b/presentation/src/app/word-list/components/revalidate-button.tsx @@ -0,0 +1,11 @@ +'use client' + +import { revalidateFetchByTag } from '../actions' + +export default function RevalidateButton() { + return ( + + ) +} diff --git a/presentation/src/app/word-list/components/serverside-word-list.tsx b/presentation/src/app/word-list/components/serverside-word-list.tsx new file mode 100644 index 0000000..aef9091 --- /dev/null +++ b/presentation/src/app/word-list/components/serverside-word-list.tsx @@ -0,0 +1,22 @@ +import RevalidateButton from './revalidate-button' +import { fetchWordlist } from '../utils' + +export default async function ServerWordList() { + const response = await fetchWordlist() + + return ( +
+

+ Wordlist fetched in the server +

+
+ {response?.wordList.map((word) => ( + {word.word} + ))} +
+
+ +
+
+ ) +} diff --git a/presentation/src/app/word-list/page.tsx b/presentation/src/app/word-list/page.tsx new file mode 100644 index 0000000..b281ebc --- /dev/null +++ b/presentation/src/app/word-list/page.tsx @@ -0,0 +1,12 @@ +import ClientWordList from './components/clientside-word-list' +import GoBackButton from './components/go-back-button' +import ServerWordList from './components/serverside-word-list' + +export default function WordList() { + return ( +
+ + +
+ ) +} diff --git a/presentation/src/app/word-list/utils.ts b/presentation/src/app/word-list/utils.ts new file mode 100644 index 0000000..7564ff6 --- /dev/null +++ b/presentation/src/app/word-list/utils.ts @@ -0,0 +1,22 @@ +const WORDLIST_API_URL = + 'http://localhost:3000/words/es?complexity=medium&howMany=30' + +export type WordElement = { + word: string + correct?: boolean +} + +export type WordListRepsonse = { + wordList: WordElement[] +} + +// fetch("https://...", { cache: "no-store" }); +export const fetchWordlist = async () => { + const wordList: WordListRepsonse = await fetch(WORDLIST_API_URL, { + next: { tags: ['wordlist'] }, + }).then((response) => response.json()) + + console.log('Data fetch is done', wordList) + + return wordList +} diff --git a/examples/data-fetching/src/modules/auth/components/auth-form/auth-form.component.tsx b/presentation/src/modules/auth/components/auth-form/auth-form.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/auth/components/auth-form/auth-form.component.tsx rename to presentation/src/modules/auth/components/auth-form/auth-form.component.tsx diff --git a/examples/data-fetching/src/modules/auth/components/auth-form/auth-form.module.css b/presentation/src/modules/auth/components/auth-form/auth-form.module.css similarity index 100% rename from examples/data-fetching/src/modules/auth/components/auth-form/auth-form.module.css rename to presentation/src/modules/auth/components/auth-form/auth-form.module.css diff --git a/examples/data-fetching/src/modules/auth/components/auth-form/auth-form.stories.tsx b/presentation/src/modules/auth/components/auth-form/auth-form.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/auth/components/auth-form/auth-form.stories.tsx rename to presentation/src/modules/auth/components/auth-form/auth-form.stories.tsx diff --git a/examples/data-fetching/src/modules/auth/components/auth-form/index.ts b/presentation/src/modules/auth/components/auth-form/index.ts similarity index 100% rename from examples/data-fetching/src/modules/auth/components/auth-form/index.ts rename to presentation/src/modules/auth/components/auth-form/index.ts diff --git a/examples/data-fetching/src/modules/auth/providers/auth-to-apicontext-connection/auth-to-apicontext-connection.provider.tsx b/presentation/src/modules/auth/providers/auth-to-apicontext-connection/auth-to-apicontext-connection.provider.tsx similarity index 100% rename from examples/data-fetching/src/modules/auth/providers/auth-to-apicontext-connection/auth-to-apicontext-connection.provider.tsx rename to presentation/src/modules/auth/providers/auth-to-apicontext-connection/auth-to-apicontext-connection.provider.tsx diff --git a/examples/data-fetching/src/modules/auth/providers/auth-to-apicontext-connection/index.ts b/presentation/src/modules/auth/providers/auth-to-apicontext-connection/index.ts similarity index 100% rename from examples/data-fetching/src/modules/auth/providers/auth-to-apicontext-connection/index.ts rename to presentation/src/modules/auth/providers/auth-to-apicontext-connection/index.ts diff --git a/examples/data-fetching/src/modules/auth/providers/auth/auth.options.ts b/presentation/src/modules/auth/providers/auth/auth.options.ts similarity index 100% rename from examples/data-fetching/src/modules/auth/providers/auth/auth.options.ts rename to presentation/src/modules/auth/providers/auth/auth.options.ts diff --git a/examples/data-fetching/src/modules/auth/providers/auth/auth.provider.tsx b/presentation/src/modules/auth/providers/auth/auth.provider.tsx similarity index 100% rename from examples/data-fetching/src/modules/auth/providers/auth/auth.provider.tsx rename to presentation/src/modules/auth/providers/auth/auth.provider.tsx diff --git a/examples/data-fetching/src/modules/auth/providers/auth/index.ts b/presentation/src/modules/auth/providers/auth/index.ts similarity index 100% rename from examples/data-fetching/src/modules/auth/providers/auth/index.ts rename to presentation/src/modules/auth/providers/auth/index.ts diff --git a/examples/data-fetching/src/modules/auth/providers/auth/nextauth.d.ts b/presentation/src/modules/auth/providers/auth/nextauth.d.ts similarity index 100% rename from examples/data-fetching/src/modules/auth/providers/auth/nextauth.d.ts rename to presentation/src/modules/auth/providers/auth/nextauth.d.ts diff --git a/examples/data-fetching/src/modules/auth/views/sign-in/index.ts b/presentation/src/modules/auth/views/sign-in/index.ts similarity index 100% rename from examples/data-fetching/src/modules/auth/views/sign-in/index.ts rename to presentation/src/modules/auth/views/sign-in/index.ts diff --git a/examples/data-fetching/src/modules/auth/views/sign-in/sign-in.module.css b/presentation/src/modules/auth/views/sign-in/sign-in.module.css similarity index 100% rename from examples/data-fetching/src/modules/auth/views/sign-in/sign-in.module.css rename to presentation/src/modules/auth/views/sign-in/sign-in.module.css diff --git a/examples/data-fetching/src/modules/auth/views/sign-in/sign-in.stories.tsx b/presentation/src/modules/auth/views/sign-in/sign-in.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/auth/views/sign-in/sign-in.stories.tsx rename to presentation/src/modules/auth/views/sign-in/sign-in.stories.tsx diff --git a/examples/data-fetching/src/modules/auth/views/sign-in/sign-in.view.tsx b/presentation/src/modules/auth/views/sign-in/sign-in.view.tsx similarity index 100% rename from examples/data-fetching/src/modules/auth/views/sign-in/sign-in.view.tsx rename to presentation/src/modules/auth/views/sign-in/sign-in.view.tsx diff --git a/examples/data-fetching/src/modules/auth/widgets/account/account.module.css b/presentation/src/modules/auth/widgets/account/account.module.css similarity index 100% rename from examples/data-fetching/src/modules/auth/widgets/account/account.module.css rename to presentation/src/modules/auth/widgets/account/account.module.css diff --git a/examples/data-fetching/src/modules/auth/widgets/account/account.stories.tsx b/presentation/src/modules/auth/widgets/account/account.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/auth/widgets/account/account.stories.tsx rename to presentation/src/modules/auth/widgets/account/account.stories.tsx diff --git a/examples/data-fetching/src/modules/auth/widgets/account/account.widget.tsx b/presentation/src/modules/auth/widgets/account/account.widget.tsx similarity index 100% rename from examples/data-fetching/src/modules/auth/widgets/account/account.widget.tsx rename to presentation/src/modules/auth/widgets/account/account.widget.tsx diff --git a/examples/data-fetching/src/modules/auth/widgets/account/index.ts b/presentation/src/modules/auth/widgets/account/index.ts similarity index 100% rename from examples/data-fetching/src/modules/auth/widgets/account/index.ts rename to presentation/src/modules/auth/widgets/account/index.ts diff --git a/examples/data-fetching/src/modules/auth/widgets/login/index.ts b/presentation/src/modules/auth/widgets/login/index.ts similarity index 100% rename from examples/data-fetching/src/modules/auth/widgets/login/index.ts rename to presentation/src/modules/auth/widgets/login/index.ts diff --git a/examples/data-fetching/src/modules/auth/widgets/login/login.module.css b/presentation/src/modules/auth/widgets/login/login.module.css similarity index 100% rename from examples/data-fetching/src/modules/auth/widgets/login/login.module.css rename to presentation/src/modules/auth/widgets/login/login.module.css diff --git a/examples/data-fetching/src/modules/auth/widgets/login/login.stories.tsx b/presentation/src/modules/auth/widgets/login/login.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/auth/widgets/login/login.stories.tsx rename to presentation/src/modules/auth/widgets/login/login.stories.tsx diff --git a/examples/data-fetching/src/modules/auth/widgets/login/login.widget.tsx b/presentation/src/modules/auth/widgets/login/login.widget.tsx similarity index 100% rename from examples/data-fetching/src/modules/auth/widgets/login/login.widget.tsx rename to presentation/src/modules/auth/widgets/login/login.widget.tsx diff --git a/examples/data-fetching/src/modules/common/components/icons/icons.component.tsx b/presentation/src/modules/common/components/icons/icons.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/icons/icons.component.tsx rename to presentation/src/modules/common/components/icons/icons.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/icons/icons.module.css b/presentation/src/modules/common/components/icons/icons.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/icons/icons.module.css rename to presentation/src/modules/common/components/icons/icons.module.css diff --git a/examples/data-fetching/src/modules/common/components/icons/icons.stories.tsx b/presentation/src/modules/common/components/icons/icons.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/icons/icons.stories.tsx rename to presentation/src/modules/common/components/icons/icons.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/icons/index.ts b/presentation/src/modules/common/components/icons/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/icons/index.ts rename to presentation/src/modules/common/components/icons/index.ts diff --git a/examples/data-fetching/src/modules/common/components/loading-button/index.ts b/presentation/src/modules/common/components/loading-button/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/loading-button/index.ts rename to presentation/src/modules/common/components/loading-button/index.ts diff --git a/examples/data-fetching/src/modules/common/components/loading-button/loading-button.component.tsx b/presentation/src/modules/common/components/loading-button/loading-button.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/loading-button/loading-button.component.tsx rename to presentation/src/modules/common/components/loading-button/loading-button.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/loading-button/loading-button.module.css b/presentation/src/modules/common/components/loading-button/loading-button.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/loading-button/loading-button.module.css rename to presentation/src/modules/common/components/loading-button/loading-button.module.css diff --git a/examples/data-fetching/src/modules/common/components/loading-button/loading-button.stories.tsx b/presentation/src/modules/common/components/loading-button/loading-button.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/loading-button/loading-button.stories.tsx rename to presentation/src/modules/common/components/loading-button/loading-button.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/accordion/accordion.component.tsx b/presentation/src/modules/common/components/ui/accordion/accordion.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/accordion/accordion.component.tsx rename to presentation/src/modules/common/components/ui/accordion/accordion.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/accordion/accordion.module.css b/presentation/src/modules/common/components/ui/accordion/accordion.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/accordion/accordion.module.css rename to presentation/src/modules/common/components/ui/accordion/accordion.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/accordion/accordion.stories.tsx b/presentation/src/modules/common/components/ui/accordion/accordion.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/accordion/accordion.stories.tsx rename to presentation/src/modules/common/components/ui/accordion/accordion.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/accordion/index.ts b/presentation/src/modules/common/components/ui/accordion/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/accordion/index.ts rename to presentation/src/modules/common/components/ui/accordion/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/alert-dialog/alert-dialog.component.tsx b/presentation/src/modules/common/components/ui/alert-dialog/alert-dialog.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/alert-dialog/alert-dialog.component.tsx rename to presentation/src/modules/common/components/ui/alert-dialog/alert-dialog.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/alert-dialog/alert-dialog.module.css b/presentation/src/modules/common/components/ui/alert-dialog/alert-dialog.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/alert-dialog/alert-dialog.module.css rename to presentation/src/modules/common/components/ui/alert-dialog/alert-dialog.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/alert-dialog/alert-dialog.stories.tsx b/presentation/src/modules/common/components/ui/alert-dialog/alert-dialog.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/alert-dialog/alert-dialog.stories.tsx rename to presentation/src/modules/common/components/ui/alert-dialog/alert-dialog.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/alert-dialog/index.ts b/presentation/src/modules/common/components/ui/alert-dialog/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/alert-dialog/index.ts rename to presentation/src/modules/common/components/ui/alert-dialog/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/alert/alert.component.tsx b/presentation/src/modules/common/components/ui/alert/alert.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/alert/alert.component.tsx rename to presentation/src/modules/common/components/ui/alert/alert.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/alert/alert.module.css b/presentation/src/modules/common/components/ui/alert/alert.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/alert/alert.module.css rename to presentation/src/modules/common/components/ui/alert/alert.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/alert/alert.stories.tsx b/presentation/src/modules/common/components/ui/alert/alert.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/alert/alert.stories.tsx rename to presentation/src/modules/common/components/ui/alert/alert.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/alert/index.ts b/presentation/src/modules/common/components/ui/alert/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/alert/index.ts rename to presentation/src/modules/common/components/ui/alert/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/aspect-ratio/aspect-ratio.component.tsx b/presentation/src/modules/common/components/ui/aspect-ratio/aspect-ratio.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/aspect-ratio/aspect-ratio.component.tsx rename to presentation/src/modules/common/components/ui/aspect-ratio/aspect-ratio.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/aspect-ratio/aspect-ratio.stories.tsx b/presentation/src/modules/common/components/ui/aspect-ratio/aspect-ratio.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/aspect-ratio/aspect-ratio.stories.tsx rename to presentation/src/modules/common/components/ui/aspect-ratio/aspect-ratio.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/aspect-ratio/index.ts b/presentation/src/modules/common/components/ui/aspect-ratio/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/aspect-ratio/index.ts rename to presentation/src/modules/common/components/ui/aspect-ratio/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/avatar/avatar.component.tsx b/presentation/src/modules/common/components/ui/avatar/avatar.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/avatar/avatar.component.tsx rename to presentation/src/modules/common/components/ui/avatar/avatar.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/avatar/avatar.module.css b/presentation/src/modules/common/components/ui/avatar/avatar.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/avatar/avatar.module.css rename to presentation/src/modules/common/components/ui/avatar/avatar.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/avatar/avatar.stories.tsx b/presentation/src/modules/common/components/ui/avatar/avatar.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/avatar/avatar.stories.tsx rename to presentation/src/modules/common/components/ui/avatar/avatar.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/avatar/index.ts b/presentation/src/modules/common/components/ui/avatar/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/avatar/index.ts rename to presentation/src/modules/common/components/ui/avatar/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/badge/badge.component.tsx b/presentation/src/modules/common/components/ui/badge/badge.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/badge/badge.component.tsx rename to presentation/src/modules/common/components/ui/badge/badge.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/badge/badge.module.css b/presentation/src/modules/common/components/ui/badge/badge.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/badge/badge.module.css rename to presentation/src/modules/common/components/ui/badge/badge.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/badge/badge.stories.tsx b/presentation/src/modules/common/components/ui/badge/badge.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/badge/badge.stories.tsx rename to presentation/src/modules/common/components/ui/badge/badge.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/badge/index.ts b/presentation/src/modules/common/components/ui/badge/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/badge/index.ts rename to presentation/src/modules/common/components/ui/badge/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/button/button.component.tsx b/presentation/src/modules/common/components/ui/button/button.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/button/button.component.tsx rename to presentation/src/modules/common/components/ui/button/button.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/button/button.module.css b/presentation/src/modules/common/components/ui/button/button.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/button/button.module.css rename to presentation/src/modules/common/components/ui/button/button.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/button/button.stories.tsx b/presentation/src/modules/common/components/ui/button/button.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/button/button.stories.tsx rename to presentation/src/modules/common/components/ui/button/button.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/button/index.ts b/presentation/src/modules/common/components/ui/button/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/button/index.ts rename to presentation/src/modules/common/components/ui/button/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/calendar/calendar.component.tsx b/presentation/src/modules/common/components/ui/calendar/calendar.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/calendar/calendar.component.tsx rename to presentation/src/modules/common/components/ui/calendar/calendar.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/calendar/calendar.module.css b/presentation/src/modules/common/components/ui/calendar/calendar.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/calendar/calendar.module.css rename to presentation/src/modules/common/components/ui/calendar/calendar.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/calendar/calendar.stories.tsx b/presentation/src/modules/common/components/ui/calendar/calendar.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/calendar/calendar.stories.tsx rename to presentation/src/modules/common/components/ui/calendar/calendar.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/calendar/index.ts b/presentation/src/modules/common/components/ui/calendar/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/calendar/index.ts rename to presentation/src/modules/common/components/ui/calendar/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/card/card.component.tsx b/presentation/src/modules/common/components/ui/card/card.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/card/card.component.tsx rename to presentation/src/modules/common/components/ui/card/card.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/card/card.module.css b/presentation/src/modules/common/components/ui/card/card.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/card/card.module.css rename to presentation/src/modules/common/components/ui/card/card.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/card/card.stories.tsx b/presentation/src/modules/common/components/ui/card/card.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/card/card.stories.tsx rename to presentation/src/modules/common/components/ui/card/card.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/card/index.ts b/presentation/src/modules/common/components/ui/card/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/card/index.ts rename to presentation/src/modules/common/components/ui/card/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/checkbox/checkbox.component.tsx b/presentation/src/modules/common/components/ui/checkbox/checkbox.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/checkbox/checkbox.component.tsx rename to presentation/src/modules/common/components/ui/checkbox/checkbox.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/checkbox/checkbox.module.css b/presentation/src/modules/common/components/ui/checkbox/checkbox.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/checkbox/checkbox.module.css rename to presentation/src/modules/common/components/ui/checkbox/checkbox.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/checkbox/checkbox.stories.tsx b/presentation/src/modules/common/components/ui/checkbox/checkbox.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/checkbox/checkbox.stories.tsx rename to presentation/src/modules/common/components/ui/checkbox/checkbox.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/checkbox/index.ts b/presentation/src/modules/common/components/ui/checkbox/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/checkbox/index.ts rename to presentation/src/modules/common/components/ui/checkbox/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/collapsible/collapsible.component.tsx b/presentation/src/modules/common/components/ui/collapsible/collapsible.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/collapsible/collapsible.component.tsx rename to presentation/src/modules/common/components/ui/collapsible/collapsible.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/collapsible/collapsible.module.css b/presentation/src/modules/common/components/ui/collapsible/collapsible.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/collapsible/collapsible.module.css rename to presentation/src/modules/common/components/ui/collapsible/collapsible.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/collapsible/collapsible.stories.tsx b/presentation/src/modules/common/components/ui/collapsible/collapsible.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/collapsible/collapsible.stories.tsx rename to presentation/src/modules/common/components/ui/collapsible/collapsible.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/collapsible/index.ts b/presentation/src/modules/common/components/ui/collapsible/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/collapsible/index.ts rename to presentation/src/modules/common/components/ui/collapsible/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/command/command.component.tsx b/presentation/src/modules/common/components/ui/command/command.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/command/command.component.tsx rename to presentation/src/modules/common/components/ui/command/command.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/command/command.module.css b/presentation/src/modules/common/components/ui/command/command.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/command/command.module.css rename to presentation/src/modules/common/components/ui/command/command.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/command/command.stories.tsx b/presentation/src/modules/common/components/ui/command/command.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/command/command.stories.tsx rename to presentation/src/modules/common/components/ui/command/command.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/command/index.ts b/presentation/src/modules/common/components/ui/command/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/command/index.ts rename to presentation/src/modules/common/components/ui/command/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/context-menu/context-menu.component.tsx b/presentation/src/modules/common/components/ui/context-menu/context-menu.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/context-menu/context-menu.component.tsx rename to presentation/src/modules/common/components/ui/context-menu/context-menu.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/context-menu/context-menu.module.css b/presentation/src/modules/common/components/ui/context-menu/context-menu.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/context-menu/context-menu.module.css rename to presentation/src/modules/common/components/ui/context-menu/context-menu.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/context-menu/context-menu.stories.tsx b/presentation/src/modules/common/components/ui/context-menu/context-menu.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/context-menu/context-menu.stories.tsx rename to presentation/src/modules/common/components/ui/context-menu/context-menu.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/context-menu/index.ts b/presentation/src/modules/common/components/ui/context-menu/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/context-menu/index.ts rename to presentation/src/modules/common/components/ui/context-menu/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/dialog/dialog.component.tsx b/presentation/src/modules/common/components/ui/dialog/dialog.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/dialog/dialog.component.tsx rename to presentation/src/modules/common/components/ui/dialog/dialog.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/dialog/dialog.module.css b/presentation/src/modules/common/components/ui/dialog/dialog.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/dialog/dialog.module.css rename to presentation/src/modules/common/components/ui/dialog/dialog.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/dialog/dialog.stories.tsx b/presentation/src/modules/common/components/ui/dialog/dialog.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/dialog/dialog.stories.tsx rename to presentation/src/modules/common/components/ui/dialog/dialog.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/dialog/index.ts b/presentation/src/modules/common/components/ui/dialog/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/dialog/index.ts rename to presentation/src/modules/common/components/ui/dialog/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/dropdown-menu/dropdown-menu.component.tsx b/presentation/src/modules/common/components/ui/dropdown-menu/dropdown-menu.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/dropdown-menu/dropdown-menu.component.tsx rename to presentation/src/modules/common/components/ui/dropdown-menu/dropdown-menu.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/dropdown-menu/dropdown-menu.module.css b/presentation/src/modules/common/components/ui/dropdown-menu/dropdown-menu.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/dropdown-menu/dropdown-menu.module.css rename to presentation/src/modules/common/components/ui/dropdown-menu/dropdown-menu.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/dropdown-menu/dropdown-menu.stories.tsx b/presentation/src/modules/common/components/ui/dropdown-menu/dropdown-menu.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/dropdown-menu/dropdown-menu.stories.tsx rename to presentation/src/modules/common/components/ui/dropdown-menu/dropdown-menu.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/dropdown-menu/index.ts b/presentation/src/modules/common/components/ui/dropdown-menu/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/dropdown-menu/index.ts rename to presentation/src/modules/common/components/ui/dropdown-menu/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/form/form.component.tsx b/presentation/src/modules/common/components/ui/form/form.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/form/form.component.tsx rename to presentation/src/modules/common/components/ui/form/form.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/form/form.module.css b/presentation/src/modules/common/components/ui/form/form.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/form/form.module.css rename to presentation/src/modules/common/components/ui/form/form.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/form/form.stories.tsx b/presentation/src/modules/common/components/ui/form/form.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/form/form.stories.tsx rename to presentation/src/modules/common/components/ui/form/form.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/form/index.ts b/presentation/src/modules/common/components/ui/form/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/form/index.ts rename to presentation/src/modules/common/components/ui/form/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/hover-card/hover-card.component.tsx b/presentation/src/modules/common/components/ui/hover-card/hover-card.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/hover-card/hover-card.component.tsx rename to presentation/src/modules/common/components/ui/hover-card/hover-card.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/hover-card/hover-card.module.css b/presentation/src/modules/common/components/ui/hover-card/hover-card.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/hover-card/hover-card.module.css rename to presentation/src/modules/common/components/ui/hover-card/hover-card.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/hover-card/hover-card.stories.tsx b/presentation/src/modules/common/components/ui/hover-card/hover-card.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/hover-card/hover-card.stories.tsx rename to presentation/src/modules/common/components/ui/hover-card/hover-card.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/hover-card/index.ts b/presentation/src/modules/common/components/ui/hover-card/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/hover-card/index.ts rename to presentation/src/modules/common/components/ui/hover-card/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/input/index.ts b/presentation/src/modules/common/components/ui/input/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/input/index.ts rename to presentation/src/modules/common/components/ui/input/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/input/input.component.tsx b/presentation/src/modules/common/components/ui/input/input.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/input/input.component.tsx rename to presentation/src/modules/common/components/ui/input/input.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/input/input.module.css b/presentation/src/modules/common/components/ui/input/input.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/input/input.module.css rename to presentation/src/modules/common/components/ui/input/input.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/input/input.stories.tsx b/presentation/src/modules/common/components/ui/input/input.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/input/input.stories.tsx rename to presentation/src/modules/common/components/ui/input/input.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/label/index.ts b/presentation/src/modules/common/components/ui/label/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/label/index.ts rename to presentation/src/modules/common/components/ui/label/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/label/label.component.tsx b/presentation/src/modules/common/components/ui/label/label.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/label/label.component.tsx rename to presentation/src/modules/common/components/ui/label/label.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/label/label.module.css b/presentation/src/modules/common/components/ui/label/label.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/label/label.module.css rename to presentation/src/modules/common/components/ui/label/label.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/label/label.stories.tsx b/presentation/src/modules/common/components/ui/label/label.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/label/label.stories.tsx rename to presentation/src/modules/common/components/ui/label/label.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/map/index.ts b/presentation/src/modules/common/components/ui/map/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/map/index.ts rename to presentation/src/modules/common/components/ui/map/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/map/map.component.tsx b/presentation/src/modules/common/components/ui/map/map.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/map/map.component.tsx rename to presentation/src/modules/common/components/ui/map/map.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/map/map.module.css b/presentation/src/modules/common/components/ui/map/map.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/map/map.module.css rename to presentation/src/modules/common/components/ui/map/map.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/map/map.stories.tsx b/presentation/src/modules/common/components/ui/map/map.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/map/map.stories.tsx rename to presentation/src/modules/common/components/ui/map/map.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/menubar/index.ts b/presentation/src/modules/common/components/ui/menubar/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/menubar/index.ts rename to presentation/src/modules/common/components/ui/menubar/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/menubar/menubar.component.tsx b/presentation/src/modules/common/components/ui/menubar/menubar.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/menubar/menubar.component.tsx rename to presentation/src/modules/common/components/ui/menubar/menubar.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/menubar/menubar.module.css b/presentation/src/modules/common/components/ui/menubar/menubar.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/menubar/menubar.module.css rename to presentation/src/modules/common/components/ui/menubar/menubar.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/menubar/menubar.stories.tsx b/presentation/src/modules/common/components/ui/menubar/menubar.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/menubar/menubar.stories.tsx rename to presentation/src/modules/common/components/ui/menubar/menubar.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/navigation-menu/index.ts b/presentation/src/modules/common/components/ui/navigation-menu/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/navigation-menu/index.ts rename to presentation/src/modules/common/components/ui/navigation-menu/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/navigation-menu/navigation-menu.component.tsx b/presentation/src/modules/common/components/ui/navigation-menu/navigation-menu.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/navigation-menu/navigation-menu.component.tsx rename to presentation/src/modules/common/components/ui/navigation-menu/navigation-menu.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/navigation-menu/navigation-menu.module.css b/presentation/src/modules/common/components/ui/navigation-menu/navigation-menu.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/navigation-menu/navigation-menu.module.css rename to presentation/src/modules/common/components/ui/navigation-menu/navigation-menu.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/navigation-menu/navigation-menu.stories.tsx b/presentation/src/modules/common/components/ui/navigation-menu/navigation-menu.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/navigation-menu/navigation-menu.stories.tsx rename to presentation/src/modules/common/components/ui/navigation-menu/navigation-menu.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/popover/index.ts b/presentation/src/modules/common/components/ui/popover/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/popover/index.ts rename to presentation/src/modules/common/components/ui/popover/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/popover/popover.component.tsx b/presentation/src/modules/common/components/ui/popover/popover.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/popover/popover.component.tsx rename to presentation/src/modules/common/components/ui/popover/popover.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/popover/popover.module.css b/presentation/src/modules/common/components/ui/popover/popover.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/popover/popover.module.css rename to presentation/src/modules/common/components/ui/popover/popover.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/popover/popover.stories.tsx b/presentation/src/modules/common/components/ui/popover/popover.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/popover/popover.stories.tsx rename to presentation/src/modules/common/components/ui/popover/popover.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/progress/index.ts b/presentation/src/modules/common/components/ui/progress/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/progress/index.ts rename to presentation/src/modules/common/components/ui/progress/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/progress/progress.component.tsx b/presentation/src/modules/common/components/ui/progress/progress.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/progress/progress.component.tsx rename to presentation/src/modules/common/components/ui/progress/progress.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/progress/progress.module.css b/presentation/src/modules/common/components/ui/progress/progress.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/progress/progress.module.css rename to presentation/src/modules/common/components/ui/progress/progress.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/progress/progress.stories.tsx b/presentation/src/modules/common/components/ui/progress/progress.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/progress/progress.stories.tsx rename to presentation/src/modules/common/components/ui/progress/progress.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/radio-group/index.ts b/presentation/src/modules/common/components/ui/radio-group/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/radio-group/index.ts rename to presentation/src/modules/common/components/ui/radio-group/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/radio-group/radio-group.component.tsx b/presentation/src/modules/common/components/ui/radio-group/radio-group.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/radio-group/radio-group.component.tsx rename to presentation/src/modules/common/components/ui/radio-group/radio-group.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/radio-group/radio-group.module.css b/presentation/src/modules/common/components/ui/radio-group/radio-group.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/radio-group/radio-group.module.css rename to presentation/src/modules/common/components/ui/radio-group/radio-group.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/radio-group/radio-group.stories.tsx b/presentation/src/modules/common/components/ui/radio-group/radio-group.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/radio-group/radio-group.stories.tsx rename to presentation/src/modules/common/components/ui/radio-group/radio-group.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/scroll-area/index.ts b/presentation/src/modules/common/components/ui/scroll-area/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/scroll-area/index.ts rename to presentation/src/modules/common/components/ui/scroll-area/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/scroll-area/scroll-area.component.tsx b/presentation/src/modules/common/components/ui/scroll-area/scroll-area.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/scroll-area/scroll-area.component.tsx rename to presentation/src/modules/common/components/ui/scroll-area/scroll-area.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/scroll-area/scroll-area.module.css b/presentation/src/modules/common/components/ui/scroll-area/scroll-area.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/scroll-area/scroll-area.module.css rename to presentation/src/modules/common/components/ui/scroll-area/scroll-area.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/scroll-area/scroll-area.stories.tsx b/presentation/src/modules/common/components/ui/scroll-area/scroll-area.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/scroll-area/scroll-area.stories.tsx rename to presentation/src/modules/common/components/ui/scroll-area/scroll-area.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/select/index.ts b/presentation/src/modules/common/components/ui/select/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/select/index.ts rename to presentation/src/modules/common/components/ui/select/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/select/select.component.tsx b/presentation/src/modules/common/components/ui/select/select.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/select/select.component.tsx rename to presentation/src/modules/common/components/ui/select/select.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/select/select.module.css b/presentation/src/modules/common/components/ui/select/select.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/select/select.module.css rename to presentation/src/modules/common/components/ui/select/select.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/select/select.stories.tsx b/presentation/src/modules/common/components/ui/select/select.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/select/select.stories.tsx rename to presentation/src/modules/common/components/ui/select/select.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/separator/index.ts b/presentation/src/modules/common/components/ui/separator/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/separator/index.ts rename to presentation/src/modules/common/components/ui/separator/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/separator/separator.component.tsx b/presentation/src/modules/common/components/ui/separator/separator.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/separator/separator.component.tsx rename to presentation/src/modules/common/components/ui/separator/separator.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/separator/separator.module.css b/presentation/src/modules/common/components/ui/separator/separator.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/separator/separator.module.css rename to presentation/src/modules/common/components/ui/separator/separator.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/separator/separator.stories.tsx b/presentation/src/modules/common/components/ui/separator/separator.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/separator/separator.stories.tsx rename to presentation/src/modules/common/components/ui/separator/separator.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/sheet/index.ts b/presentation/src/modules/common/components/ui/sheet/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/sheet/index.ts rename to presentation/src/modules/common/components/ui/sheet/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/sheet/sheet.component.tsx b/presentation/src/modules/common/components/ui/sheet/sheet.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/sheet/sheet.component.tsx rename to presentation/src/modules/common/components/ui/sheet/sheet.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/sheet/sheet.module.css b/presentation/src/modules/common/components/ui/sheet/sheet.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/sheet/sheet.module.css rename to presentation/src/modules/common/components/ui/sheet/sheet.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/sheet/sheet.stories.tsx b/presentation/src/modules/common/components/ui/sheet/sheet.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/sheet/sheet.stories.tsx rename to presentation/src/modules/common/components/ui/sheet/sheet.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/skeleton/index.ts b/presentation/src/modules/common/components/ui/skeleton/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/skeleton/index.ts rename to presentation/src/modules/common/components/ui/skeleton/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/skeleton/skeleton.component.tsx b/presentation/src/modules/common/components/ui/skeleton/skeleton.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/skeleton/skeleton.component.tsx rename to presentation/src/modules/common/components/ui/skeleton/skeleton.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/skeleton/skeleton.module.css b/presentation/src/modules/common/components/ui/skeleton/skeleton.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/skeleton/skeleton.module.css rename to presentation/src/modules/common/components/ui/skeleton/skeleton.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/skeleton/skeleton.stories.tsx b/presentation/src/modules/common/components/ui/skeleton/skeleton.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/skeleton/skeleton.stories.tsx rename to presentation/src/modules/common/components/ui/skeleton/skeleton.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/slider/index.ts b/presentation/src/modules/common/components/ui/slider/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/slider/index.ts rename to presentation/src/modules/common/components/ui/slider/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/slider/slider.component.tsx b/presentation/src/modules/common/components/ui/slider/slider.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/slider/slider.component.tsx rename to presentation/src/modules/common/components/ui/slider/slider.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/slider/slider.module.css b/presentation/src/modules/common/components/ui/slider/slider.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/slider/slider.module.css rename to presentation/src/modules/common/components/ui/slider/slider.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/slider/slider.stories.tsx b/presentation/src/modules/common/components/ui/slider/slider.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/slider/slider.stories.tsx rename to presentation/src/modules/common/components/ui/slider/slider.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/switch/index.ts b/presentation/src/modules/common/components/ui/switch/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/switch/index.ts rename to presentation/src/modules/common/components/ui/switch/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/switch/switch.component.tsx b/presentation/src/modules/common/components/ui/switch/switch.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/switch/switch.component.tsx rename to presentation/src/modules/common/components/ui/switch/switch.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/switch/switch.module.css b/presentation/src/modules/common/components/ui/switch/switch.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/switch/switch.module.css rename to presentation/src/modules/common/components/ui/switch/switch.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/switch/switch.stories.tsx b/presentation/src/modules/common/components/ui/switch/switch.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/switch/switch.stories.tsx rename to presentation/src/modules/common/components/ui/switch/switch.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/table/index.ts b/presentation/src/modules/common/components/ui/table/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/table/index.ts rename to presentation/src/modules/common/components/ui/table/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/table/table.component.tsx b/presentation/src/modules/common/components/ui/table/table.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/table/table.component.tsx rename to presentation/src/modules/common/components/ui/table/table.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/table/table.module.css b/presentation/src/modules/common/components/ui/table/table.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/table/table.module.css rename to presentation/src/modules/common/components/ui/table/table.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/table/table.stories.tsx b/presentation/src/modules/common/components/ui/table/table.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/table/table.stories.tsx rename to presentation/src/modules/common/components/ui/table/table.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/tabs/index.ts b/presentation/src/modules/common/components/ui/tabs/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/tabs/index.ts rename to presentation/src/modules/common/components/ui/tabs/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/tabs/tabs.component.tsx b/presentation/src/modules/common/components/ui/tabs/tabs.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/tabs/tabs.component.tsx rename to presentation/src/modules/common/components/ui/tabs/tabs.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/tabs/tabs.module.css b/presentation/src/modules/common/components/ui/tabs/tabs.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/tabs/tabs.module.css rename to presentation/src/modules/common/components/ui/tabs/tabs.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/tabs/tabs.stories.tsx b/presentation/src/modules/common/components/ui/tabs/tabs.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/tabs/tabs.stories.tsx rename to presentation/src/modules/common/components/ui/tabs/tabs.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/textarea/index.ts b/presentation/src/modules/common/components/ui/textarea/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/textarea/index.ts rename to presentation/src/modules/common/components/ui/textarea/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/textarea/textarea.component.tsx b/presentation/src/modules/common/components/ui/textarea/textarea.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/textarea/textarea.component.tsx rename to presentation/src/modules/common/components/ui/textarea/textarea.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/textarea/textarea.module.css b/presentation/src/modules/common/components/ui/textarea/textarea.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/textarea/textarea.module.css rename to presentation/src/modules/common/components/ui/textarea/textarea.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/textarea/textarea.stories.tsx b/presentation/src/modules/common/components/ui/textarea/textarea.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/textarea/textarea.stories.tsx rename to presentation/src/modules/common/components/ui/textarea/textarea.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/toast/index.ts b/presentation/src/modules/common/components/ui/toast/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/toast/index.ts rename to presentation/src/modules/common/components/ui/toast/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/toast/toast.component.tsx b/presentation/src/modules/common/components/ui/toast/toast.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/toast/toast.component.tsx rename to presentation/src/modules/common/components/ui/toast/toast.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/toast/toast.module.css b/presentation/src/modules/common/components/ui/toast/toast.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/toast/toast.module.css rename to presentation/src/modules/common/components/ui/toast/toast.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/toast/toast.stories.tsx b/presentation/src/modules/common/components/ui/toast/toast.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/toast/toast.stories.tsx rename to presentation/src/modules/common/components/ui/toast/toast.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/toggle/index.ts b/presentation/src/modules/common/components/ui/toggle/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/toggle/index.ts rename to presentation/src/modules/common/components/ui/toggle/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/toggle/toggle.component.tsx b/presentation/src/modules/common/components/ui/toggle/toggle.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/toggle/toggle.component.tsx rename to presentation/src/modules/common/components/ui/toggle/toggle.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/toggle/toggle.module.css b/presentation/src/modules/common/components/ui/toggle/toggle.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/toggle/toggle.module.css rename to presentation/src/modules/common/components/ui/toggle/toggle.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/toggle/toggle.stories.tsx b/presentation/src/modules/common/components/ui/toggle/toggle.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/toggle/toggle.stories.tsx rename to presentation/src/modules/common/components/ui/toggle/toggle.stories.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/tooltip/index.ts b/presentation/src/modules/common/components/ui/tooltip/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/tooltip/index.ts rename to presentation/src/modules/common/components/ui/tooltip/index.ts diff --git a/examples/data-fetching/src/modules/common/components/ui/tooltip/tooltip.component.tsx b/presentation/src/modules/common/components/ui/tooltip/tooltip.component.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/tooltip/tooltip.component.tsx rename to presentation/src/modules/common/components/ui/tooltip/tooltip.component.tsx diff --git a/examples/data-fetching/src/modules/common/components/ui/tooltip/tooltip.module.css b/presentation/src/modules/common/components/ui/tooltip/tooltip.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/tooltip/tooltip.module.css rename to presentation/src/modules/common/components/ui/tooltip/tooltip.module.css diff --git a/examples/data-fetching/src/modules/common/components/ui/tooltip/tooltip.stories.tsx b/presentation/src/modules/common/components/ui/tooltip/tooltip.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/components/ui/tooltip/tooltip.stories.tsx rename to presentation/src/modules/common/components/ui/tooltip/tooltip.stories.tsx diff --git a/examples/data-fetching/src/modules/common/layouts/application/application.layout.tsx b/presentation/src/modules/common/layouts/application/application.layout.tsx similarity index 76% rename from examples/data-fetching/src/modules/common/layouts/application/application.layout.tsx rename to presentation/src/modules/common/layouts/application/application.layout.tsx index 45e6520..526f3ac 100644 --- a/examples/data-fetching/src/modules/common/layouts/application/application.layout.tsx +++ b/presentation/src/modules/common/layouts/application/application.layout.tsx @@ -9,11 +9,7 @@ export type ApplicationLayoutProps = PropsWithChildren<{}> export function ApplicationLayout(props: ApplicationLayoutProps) { return (
- - - {props.children} - - + {props.children}
) } diff --git a/examples/data-fetching/src/modules/common/layouts/application/application.module.css b/presentation/src/modules/common/layouts/application/application.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/layouts/application/application.module.css rename to presentation/src/modules/common/layouts/application/application.module.css diff --git a/examples/data-fetching/src/modules/common/layouts/application/application.stories.tsx b/presentation/src/modules/common/layouts/application/application.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/layouts/application/application.stories.tsx rename to presentation/src/modules/common/layouts/application/application.stories.tsx diff --git a/examples/data-fetching/src/modules/common/layouts/application/index.ts b/presentation/src/modules/common/layouts/application/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/layouts/application/index.ts rename to presentation/src/modules/common/layouts/application/index.ts diff --git a/examples/data-fetching/src/modules/common/layouts/root/index.ts b/presentation/src/modules/common/layouts/root/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/layouts/root/index.ts rename to presentation/src/modules/common/layouts/root/index.ts diff --git a/examples/data-fetching/src/modules/common/layouts/root/root.layout.tsx b/presentation/src/modules/common/layouts/root/root.layout.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/layouts/root/root.layout.tsx rename to presentation/src/modules/common/layouts/root/root.layout.tsx diff --git a/examples/data-fetching/src/modules/common/layouts/root/root.module.css b/presentation/src/modules/common/layouts/root/root.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/layouts/root/root.module.css rename to presentation/src/modules/common/layouts/root/root.module.css diff --git a/examples/data-fetching/src/modules/common/layouts/root/root.stories.tsx b/presentation/src/modules/common/layouts/root/root.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/layouts/root/root.stories.tsx rename to presentation/src/modules/common/layouts/root/root.stories.tsx diff --git a/examples/data-fetching/src/modules/common/providers/api-context/api-context.default.tsx b/presentation/src/modules/common/providers/api-context/api-context.default.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/providers/api-context/api-context.default.tsx rename to presentation/src/modules/common/providers/api-context/api-context.default.tsx diff --git a/examples/data-fetching/src/modules/common/providers/api-context/api-context.provider.tsx b/presentation/src/modules/common/providers/api-context/api-context.provider.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/providers/api-context/api-context.provider.tsx rename to presentation/src/modules/common/providers/api-context/api-context.provider.tsx diff --git a/examples/data-fetching/src/modules/common/providers/api-context/axios.instance.ts b/presentation/src/modules/common/providers/api-context/axios.instance.ts similarity index 100% rename from examples/data-fetching/src/modules/common/providers/api-context/axios.instance.ts rename to presentation/src/modules/common/providers/api-context/axios.instance.ts diff --git a/examples/data-fetching/src/modules/common/providers/api-context/index.ts b/presentation/src/modules/common/providers/api-context/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/providers/api-context/index.ts rename to presentation/src/modules/common/providers/api-context/index.ts diff --git a/examples/data-fetching/src/modules/common/providers/app/app.provider.tsx b/presentation/src/modules/common/providers/app/app.provider.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/providers/app/app.provider.tsx rename to presentation/src/modules/common/providers/app/app.provider.tsx diff --git a/examples/data-fetching/src/modules/common/providers/app/index.ts b/presentation/src/modules/common/providers/app/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/providers/app/index.ts rename to presentation/src/modules/common/providers/app/index.ts diff --git a/examples/data-fetching/src/modules/common/providers/query/index.ts b/presentation/src/modules/common/providers/query/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/providers/query/index.ts rename to presentation/src/modules/common/providers/query/index.ts diff --git a/examples/data-fetching/src/modules/common/providers/query/query.provider.tsx b/presentation/src/modules/common/providers/query/query.provider.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/providers/query/query.provider.tsx rename to presentation/src/modules/common/providers/query/query.provider.tsx diff --git a/examples/data-fetching/src/modules/common/views/main/app-main.module.css b/presentation/src/modules/common/views/main/app-main.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/views/main/app-main.module.css rename to presentation/src/modules/common/views/main/app-main.module.css diff --git a/examples/data-fetching/src/modules/common/views/main/app-main.stories.tsx b/presentation/src/modules/common/views/main/app-main.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/views/main/app-main.stories.tsx rename to presentation/src/modules/common/views/main/app-main.stories.tsx diff --git a/examples/data-fetching/src/modules/common/views/main/app-main.view.tsx b/presentation/src/modules/common/views/main/app-main.view.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/views/main/app-main.view.tsx rename to presentation/src/modules/common/views/main/app-main.view.tsx diff --git a/examples/data-fetching/src/modules/common/views/main/index.ts b/presentation/src/modules/common/views/main/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/views/main/index.ts rename to presentation/src/modules/common/views/main/index.ts diff --git a/examples/data-fetching/src/modules/common/widgets/footer/footer.module.css b/presentation/src/modules/common/widgets/footer/footer.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/widgets/footer/footer.module.css rename to presentation/src/modules/common/widgets/footer/footer.module.css diff --git a/examples/data-fetching/src/modules/common/widgets/footer/footer.stories.tsx b/presentation/src/modules/common/widgets/footer/footer.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/widgets/footer/footer.stories.tsx rename to presentation/src/modules/common/widgets/footer/footer.stories.tsx diff --git a/examples/data-fetching/src/modules/common/widgets/footer/footer.widget.tsx b/presentation/src/modules/common/widgets/footer/footer.widget.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/widgets/footer/footer.widget.tsx rename to presentation/src/modules/common/widgets/footer/footer.widget.tsx diff --git a/examples/data-fetching/src/modules/common/widgets/footer/index.ts b/presentation/src/modules/common/widgets/footer/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/widgets/footer/index.ts rename to presentation/src/modules/common/widgets/footer/index.ts diff --git a/examples/data-fetching/src/modules/common/widgets/header/header.module.css b/presentation/src/modules/common/widgets/header/header.module.css similarity index 100% rename from examples/data-fetching/src/modules/common/widgets/header/header.module.css rename to presentation/src/modules/common/widgets/header/header.module.css diff --git a/examples/data-fetching/src/modules/common/widgets/header/header.stories.tsx b/presentation/src/modules/common/widgets/header/header.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/widgets/header/header.stories.tsx rename to presentation/src/modules/common/widgets/header/header.stories.tsx diff --git a/examples/data-fetching/src/modules/common/widgets/header/header.widget.tsx b/presentation/src/modules/common/widgets/header/header.widget.tsx similarity index 100% rename from examples/data-fetching/src/modules/common/widgets/header/header.widget.tsx rename to presentation/src/modules/common/widgets/header/header.widget.tsx diff --git a/examples/data-fetching/src/modules/common/widgets/header/index.ts b/presentation/src/modules/common/widgets/header/index.ts similarity index 100% rename from examples/data-fetching/src/modules/common/widgets/header/index.ts rename to presentation/src/modules/common/widgets/header/index.ts diff --git a/examples/data-fetching/src/modules/hookey/index.ts b/presentation/src/modules/hookey/index.ts similarity index 100% rename from examples/data-fetching/src/modules/hookey/index.ts rename to presentation/src/modules/hookey/index.ts diff --git a/examples/data-fetching/src/modules/users/views/main/index.ts b/presentation/src/modules/users/views/main/index.ts similarity index 100% rename from examples/data-fetching/src/modules/users/views/main/index.ts rename to presentation/src/modules/users/views/main/index.ts diff --git a/examples/data-fetching/src/modules/users/views/main/users-main.module.css b/presentation/src/modules/users/views/main/users-main.module.css similarity index 100% rename from examples/data-fetching/src/modules/users/views/main/users-main.module.css rename to presentation/src/modules/users/views/main/users-main.module.css diff --git a/examples/data-fetching/src/modules/users/views/main/users-main.stories.tsx b/presentation/src/modules/users/views/main/users-main.stories.tsx similarity index 100% rename from examples/data-fetching/src/modules/users/views/main/users-main.stories.tsx rename to presentation/src/modules/users/views/main/users-main.stories.tsx diff --git a/examples/data-fetching/src/modules/users/views/main/users-main.view.tsx b/presentation/src/modules/users/views/main/users-main.view.tsx similarity index 100% rename from examples/data-fetching/src/modules/users/views/main/users-main.view.tsx rename to presentation/src/modules/users/views/main/users-main.view.tsx diff --git a/presentation/src/styles/main.css b/presentation/src/styles/main.css new file mode 100644 index 0000000..4c32264 --- /dev/null +++ b/presentation/src/styles/main.css @@ -0,0 +1,94 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100;200;300;400;500;600;700;800;900&display=swap'); + +.data-fetching { + display: grid; + padding: 20rem; + gap: 8rem; + background-color: #fafafa; + grid-template-columns: 1fr 1fr; + + > * { + background-color: #e9ecef; + border-radius: 1.5rem; + padding: 2rem; + min-height: 15rem; + + display: flex; + flex-direction: column; + justify-content: space-between; + + > h3 { + text-align: center; + font-size: 2rem; + font-weight: 200; + } + + > div { + > span { + font-weight: 200; + &:not(:last-child)::after { + content: ', '; + } + } + &:nth-of-type(2) { + text-align: center; + } + > button { + background-color: #8e9aaf; + color: white; + border-radius: 0.5rem; + padding: 0.5rem; + + transition: all 0.1s; + + &:hover { + transform: translateY(-4px) scale(1.02); + box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px; + } + } + } + } +} + +.main-presentation { + > button { + position: absolute; + bottom: 2rem; + left: 50%; + transform: translateX(-50%); + + background-color: #8e9aaf; + color: white; + border-radius: 0.5rem; + padding: 0.5rem 1rem; + font-weight: 200; + font-size: 1.5rem; + + transition: all 0.1s; + + &:hover { + transform: translateX(-50%) translateY(-4px) scale(1.02); + box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px; + } + } + > div { + display: flex; + gap: 3rem; + flex-direction: column; + justify-content: space-between; + + padding: 10rem 30rem; + + > h3 { + text-align: center; + font-size: 2.8rem; + font-weight: 100; + } + } + &-comparation { + } +} diff --git a/examples/data-fetching/tailwind.config.js b/presentation/tailwind.config.js similarity index 100% rename from examples/data-fetching/tailwind.config.js rename to presentation/tailwind.config.js diff --git a/examples/data-fetching/tsconfig.json b/presentation/tsconfig.json similarity index 100% rename from examples/data-fetching/tsconfig.json rename to presentation/tsconfig.json diff --git a/presentation_brainstorm.md b/presentation_brainstorm.md index 202e641..cd0a8e6 100644 --- a/presentation_brainstorm.md +++ b/presentation_brainstorm.md @@ -1,6 +1,8 @@ ## Server components [Nextjs docs](https://nextjs.org/docs/app/building-your-application/rendering/server-components) ## Presentation flow + +0. Comparation between NextJS and React 1. Introduction without strategies. 2. Benefits. 3. Actual process and why its important to know it. @@ -50,24 +52,32 @@ The rendering works is split into chunks: - Streaming: work is split into chunks and streamed as they become ready so the load is progressive. ### [Fetching data from the server](https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#revalidating-data) -To fetch data from the server you only need an `async` component. The data is automatically cached by Next to avoid constant calls to the data source. This means you can omit the cache configuration in your fetch call: + +To fetch data from the server you only need an `async` component. The data is automatically cached by Next to avoid constant calls to the data source. This means you can omit the cache configuration in your fetch call: + ```js -// not needed -fetch('https:...', { cache: 'force-cache' }) +// not needed +fetch("https:...", { cache: "force-cache" }); ``` + But you can also revalidate on every request: + ```js -fetch('https://...', { cache: 'no-store' }) +fetch("https://...", { cache: "no-store" }); ``` #### Revalidation Revalidation is not directly managed but you can force it with: + - A timer: + ```js -fetch('https://...', { next: { revalidate: 3600 } }) +fetch("https://...", { next: { revalidate: 3600 } }); ``` + - Manually: + ```js // page.tsx file export default async function Page() { @@ -79,7 +89,7 @@ export default async function Page() { // action.ts file 'use server' // cause of the .ts import { revalidateTag } from 'next/cache' - + export default async function action() { revalidateTag('collection') } @@ -89,3 +99,8 @@ export default async function action() { ## Serverside fetching [Different types](https://wallis.dev/blog/nextjs-serverside-data-fetching) + +### GerServerSideProps (async function) + +- Automatic cache +- Revalidated either by timeout or forced with tags