diff --git a/admin/scripts/image-resize.mjs b/admin/scripts/image-resize.mjs index be9606f26b..330269de1c 100644 --- a/admin/scripts/image-resize.mjs +++ b/admin/scripts/image-resize.mjs @@ -10,10 +10,13 @@ import sharp from 'sharp'; import fs from 'fs/promises'; import path from 'path'; -const images = ( +const allImages = ( await fs.readdir(new URL('../../website/src/data/showcase', import.meta.url)) ).filter((file) => ['.png', 'jpg', '.jpeg'].includes(path.extname(file))); +const [,,...selectedImages] = process.argv; +const images = selectedImages.length > 0 ? selectedImages : allImages; + await Promise.all( images.map(async (img) => { const imgPath = new URL( diff --git a/website/src/data/showcase/kwatch.png b/website/src/data/showcase/kwatch.png new file mode 100644 index 0000000000..568683d276 Binary files /dev/null and b/website/src/data/showcase/kwatch.png differ diff --git a/website/src/data/users.tsx b/website/src/data/users.tsx index bbda29b6e3..c6b9be1bd6 100644 --- a/website/src/data/users.tsx +++ b/website/src/data/users.tsx @@ -791,6 +791,14 @@ const Users: User[] = [ source: 'https://github.com/kotest/kotest', tags: ['opensource'], }, + { + title: 'kwatch', + description: 'monitor & detect crashes in your Kubernetes(K8s) cluster instantly', + preview: require('./showcase/kwatch.png'), + website: 'https://kwatch.dev', + source: 'https://github.com/abahmed/kwatch.dev', + tags: ['opensource', 'product'], + }, { title: 'LabVIEW 编程经验', description: 'A book for LabVIEW Programming',