Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,289 changes: 154 additions & 2,135 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"preview": "vite preview"
},
"dependencies": {
"@mdx-js/loader": "^3.1.0",
"@mdx-js/react": "^3.1.0",
"@mdx-js/rollup": "^3.1.0",
"@phosphor-icons/react": "^2.1.7",
"@tailwindcss/typography": "^0.5.15",
"axios": "^1.8.2",
Expand All @@ -23,8 +20,7 @@
"react-router": "^7.0.2",
"react-router-dom": "^7.4.1",
"react-syntax-highlighter": "^15.5.0",
"rehype-highlight": "^6.0.0",
"vite-plugin-mdx": "^3.6.1"
"rehype-highlight": "^6.0.0"
},
"devDependencies": {
"@types/react": "^18.2.15",
Expand Down
22 changes: 14 additions & 8 deletions src/components/cardknowledger/mockKnowledgers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ export const mockKnowledgers = [
imageProfile: MoniqueProfileImage,
flag: "alagoas",
social: [
{ icon: GithubLogo, url: "" },
{ icon: InstagramLogo, url: "" },
{ icon: LinkedinLogo, url: "" },
{ icon: GithubLogo, url: "https://github.com/CyberNicky" },
{ icon: InstagramLogo, url: "https://www.instagram.com/nicky__dev/" },
{
icon: LinkedinLogo,
url: "https://www.linkedin.com/in/monique-campos-albuquerque/",
},
],
},

Expand Down Expand Up @@ -59,9 +62,12 @@ export const mockKnowledgers = [
imageProfile: JoaoProfileImage,
flag: "alagoas",
social: [
{ icon: GithubLogo, url: "" },
{ icon: InstagramLogo, url: "" },
{ icon: LinkedinLogo, url: "" },
{ icon: GithubLogo, url: "https://github.com/mrgreentm" },
{ icon: InstagramLogo, url: "https://www.instagram.com/joaojacintoo/" },
{
icon: LinkedinLogo,
url: "https://www.linkedin.com/in/joaojacintoneto/",
},
],
},

Expand All @@ -72,8 +78,8 @@ export const mockKnowledgers = [
imageProfile: DanielProfileImage,
flag: "alagoas",
social: [
{ icon: InstagramLogo, url: "" },
{ icon: LinkedinLogo, url: "" },
{ icon: InstagramLogo, url: "https://www.instagram.com/odaniel2d/" },
{ icon: LinkedinLogo, url: "https://www.linkedin.com/in/daniel2d/" },
],
},
];
20 changes: 0 additions & 20 deletions src/components/posts/post/MdxProvider.tsx

This file was deleted.

38 changes: 0 additions & 38 deletions src/components/posts/post/post1.mdx

This file was deleted.

25 changes: 0 additions & 25 deletions src/components/posts/post/post2.mdx

This file was deleted.

29 changes: 0 additions & 29 deletions src/components/posts/post/post3.mdx

This file was deleted.

15 changes: 0 additions & 15 deletions src/components/posts/post/post4.mdx

This file was deleted.

25 changes: 14 additions & 11 deletions src/pages/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,19 @@ export function Profile() {
<h3 className="text-xl font-bold mb-4">Artigos Publicados</h3>

<div className="flex flex-col gap-2">
{user?.posts.map((post) => (
<Link to={`/posts/${post.slug}`}>
<a
href=""
className="text-blue-400 font-semibold hover:underline"
>
{post.title}
</a>
</Link>
))}
{user?.posts && user.posts.length > 0 ? (
user?.posts.map((post) => (
<Link key={post.slug} to={`/posts/${post.slug}`}>
<span className="text-blue-400 font-semibold hover:underline">
{post.title}
</span>
</Link>
))
) : (
<p className="text-blue-400 font-semibold">
Não há artigos publicados no momento.
</p>
)}
</div>
</div>
</div>
Expand All @@ -86,7 +89,7 @@ export function Profile() {
target="_blank"
className="hover:text-blue-400"
>
<Icon key={index} size={32} />
<Icon size={32} />
</a>
)
)}
Expand Down
9 changes: 4 additions & 5 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import mdx from "@mdx-js/rollup";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), mdx()],
plugins: [react()],
server: {
host: '0.0.0.0',
port: 5173
}
host: "0.0.0.0",
port: 5173,
},
});
Loading