feat(projects): remove thumbnail and preview field to get images by content id
@@ -79,10 +79,12 @@ export const useProjectsStore = defineStore("projects", {
|
|||||||
this.projects = [];
|
this.projects = [];
|
||||||
|
|
||||||
for (const project of projects.value) {
|
for (const project of projects.value) {
|
||||||
|
const parts = project.id.replace(".md", "").split("/");
|
||||||
|
const id = parts[parts.length - 1]!;
|
||||||
this.projects.push({
|
this.projects.push({
|
||||||
description: project.description,
|
description: project.description,
|
||||||
thumbnail: project.thumbnail,
|
thumbnail: `/images/projects/thumbnails/${id}.webp`,
|
||||||
preview: createImage(project.preview),
|
preview: createImage(`/images/projects/previews/${id}.webp`),
|
||||||
url: project.url,
|
url: project.url,
|
||||||
body: simplifyMarkdownAST(project.body),
|
body: simplifyMarkdownAST(project.body),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -9,8 +9,6 @@ export default defineContentConfig({
|
|||||||
schema: z.object({
|
schema: z.object({
|
||||||
description: z.string(),
|
description: z.string(),
|
||||||
url: z.url().nullable(),
|
url: z.url().nullable(),
|
||||||
thumbnail: z.string(),
|
|
||||||
preview: z.string(),
|
|
||||||
order: z.number(),
|
order: z.number(),
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
description: Biobleud - Automated Excel imports\nfor an ERP system
|
description: Biobleud - Automated Excel imports\nfor an ERP system
|
||||||
url: null
|
url: null
|
||||||
thumbnail: /images/projects/biobleud.webp
|
|
||||||
preview: /images/biobleud-game.png
|
|
||||||
order: 100
|
order: 100
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
description: LBF Bot - Custom Discord bot for\na gaming group
|
description: LBF Bot - Custom Discord bot for\na gaming group
|
||||||
url: https://github.com/pihkaal/lbf-bot
|
url: https://github.com/pihkaal/lbf-bot
|
||||||
thumbnail: /images/projects/lbf-bot.webp
|
|
||||||
preview: /images/lbf-bot-game.webp
|
|
||||||
order: 50
|
order: 50
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
description: lilou.cat - My cat's website
|
description: lilou.cat - My cat's website
|
||||||
url: https://lilou.cat
|
url: https://lilou.cat
|
||||||
thumbnail: /images/projects/lilou-cat.webp
|
|
||||||
preview: /images/lilou-cat-game.webp
|
|
||||||
order: 40
|
order: 40
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
---
|
---
|
||||||
description: pihkaal.me - my personal website
|
description: pihkaal.me - my personal website
|
||||||
url: https://pihkaal.me
|
url: https://pihkaal.me
|
||||||
thumbnail: /images/projects/pihkaal-me.webp
|
|
||||||
preview: /images/pihkaal-me-game.webp
|
|
||||||
order: 10
|
order: 10
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
---
|
---
|
||||||
description: Raylib Speedruns - Collection of simple\nRaylib setups in multiple languages
|
description: Raylib Speedruns - Collection of simple\nRaylib setups in multiple languages
|
||||||
url: https://github.com/pihkaal/raylib-speedruns
|
url: https://github.com/pihkaal/raylib-speedruns
|
||||||
thumbnail: /images/projects/raylib-speedruns.webp
|
|
||||||
preview: /images/raylib-speedruns-game.webp
|
|
||||||
order: 60
|
order: 60
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
description: S3PWeb - Intership and\napprenticeship
|
description: S3PWeb - Intership and\napprenticeship
|
||||||
url: null
|
url: null
|
||||||
thumbnail: /images/projects/s3pweb.webp
|
|
||||||
preview: /images/s3pweb-game.webp
|
|
||||||
order: 80
|
order: 80
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
description: Simple QR - Simple QR code generator\nwith straightforward API
|
description: Simple QR - Simple QR code generator\nwith straightforward API
|
||||||
url: https://simple-qr.com
|
url: https://simple-qr.com
|
||||||
thumbnail: /images/projects/simple-qr.webp
|
|
||||||
preview: /images/simple-qr-game.webp
|
|
||||||
order: 30
|
order: 30
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
description: tlock - fully customizable and cross-\nplatform terminal based clock
|
description: tlock - fully customizable and cross-\nplatform terminal based clock
|
||||||
url: https://github.com/pihkaal/tlock
|
url: https://github.com/pihkaal/tlock
|
||||||
thumbnail: /images/projects/tlock.webp
|
|
||||||
preview: /images/tlock-game.webp
|
|
||||||
order: 20
|
order: 20
|
||||||
---
|
---
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 74 KiB |
BIN
public/images/projects/previews/biobleud.webp
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 672 B After Width: | Height: | Size: 672 B |
|
Before Width: | Height: | Size: 502 B After Width: | Height: | Size: 502 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 762 B After Width: | Height: | Size: 762 B |
|
Before Width: | Height: | Size: 164 B After Width: | Height: | Size: 164 B |
|
Before Width: | Height: | Size: 260 B After Width: | Height: | Size: 260 B |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 92 B After Width: | Height: | Size: 92 B |
|
Before Width: | Height: | Size: 162 B After Width: | Height: | Size: 162 B |
|
Before Width: | Height: | Size: 84 B After Width: | Height: | Size: 84 B |
|
Before Width: | Height: | Size: 118 B After Width: | Height: | Size: 118 B |
|
Before Width: | Height: | Size: 130 B After Width: | Height: | Size: 130 B |