Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: adjust maximum logo size check to 10kb #3943

Merged
merged 8 commits into from
Jan 10, 2025
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
11 changes: 4 additions & 7 deletions plugins/validate-showcase.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const logger = require("@docusaurus/logger");
const fs = require("fs");
const path = require("path");

const maximumLogoSize = 200 * 1024;
const maximumLogoSize = 10 * 1024;
const maximumVideoSize = 10 * 1024 * 1024;
const maximumScreenshotSize = 200 * 1024;

Expand Down Expand Up @@ -200,8 +200,7 @@ module.exports = function validateShowcasePlugin() {
[fileExists, "project logo file does not exist"],
[
(value) => fileMaxSize(value, maximumLogoSize),
`project logo file too big, should be <= ${
maximumLogoSize / 1024
`project logo file too big, should be <= ${maximumLogoSize / 1024
} kb`,
],
]);
Expand Down Expand Up @@ -235,8 +234,7 @@ module.exports = function validateShowcasePlugin() {
value.every((value) =>
fileMaxSize(value, maximumScreenshotSize)
),
`project screenshot file too big, should be <= ${
maximumScreenshotSize / 1024
`project screenshot file too big, should be <= ${maximumScreenshotSize / 1024
} kb`,
],
[
Expand All @@ -256,8 +254,7 @@ module.exports = function validateShowcasePlugin() {
[fileExists, "project video file does not exist"],
[
(value) => fileMaxSize(value, maximumVideoSize),
`project video file too big, should be <= ${
maximumVideoSize / 1024 / 1024
`project video file too big, should be <= ${maximumVideoSize / 1024 / 1024
} mb`,
],
[
Expand Down
16 changes: 8 additions & 8 deletions showcase.json
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@
"website": "https://www.scinet.one/",
"twitter": "https://twitter.com/scinet_inc",
"discord": "https://discord.com/invite/5uH6vpJjeB",
"logo": "/img/showcase/scinet_logo.png",
"logo": "/img/showcase/scinet_logo.webp",
"submittableId": "33285268"
},
{
Expand Down Expand Up @@ -3536,7 +3536,7 @@
"twitter": "https://twitter.com/codegovorg",
"github": "https://github.com/CodeGov-org/codegov-website",
"display": "Normal",
"logo": "/img/showcase/codegov_logo.jpg"
"logo": "/img/showcase/codegov_logo.svg"
},
{
"id": "deaichat",
Expand Down Expand Up @@ -4539,7 +4539,7 @@
"oneLiner": "The IC-PayPortal Motoko by Expeera is a library that provides developers with a set of functions for managing fiat payments on ICP.",
"description": "The IC-PayPortal Motoko is a library that provides developers with a set of functions for managing fiat payments on ICP.",
"website": "https://3356i-cqaaa-aaaao-axdqa-cai.icp0.io/",
"logo": "/img/showcase/expeera_logo.jpeg",
"logo": "/img/showcase/expeera_logo.jpg",
"display": "Normal",
"tags": [
"Tools / Infrastructure"
Expand Down Expand Up @@ -4614,7 +4614,7 @@
"name": "ASPPIBRA-DAO",
"description": "ASPPIBRA - Association of Property Owners and Possessors in Brazil is a non-profit civil association, founded on April 9, 2016, in the State of Rio de Janeiro-RJ. It is composed of professionals and citizens committed to the technological and socioeconomic development of modern society.",
"website": "https://www.asppibra.com.br/",
"logo": "/img/showcase/BR-DAO_logo.svg",
"logo": "/img/showcase/BR-DAO_logo.png",
"screenshots": [
"/img/showcase/BR-DAO_screenshot.webp"
],
Expand Down Expand Up @@ -4854,7 +4854,7 @@
"description": "An automated, dollar-cost-averaging solution for purchasing ICP.",
"usesInternetIdentity": true,
"display": "Normal",
"logo": "/img/showcase/icspore_logo.svg"
"logo": "/img/showcase/icspore_logo.png"
},
{
"id": "stable-fs",
Expand Down Expand Up @@ -4915,7 +4915,7 @@
"description": "A simple roguelite adventure where players collectively build and govern the game through a DAO.",
"usesInternetIdentity": true,
"display": "Normal",
"logo": "/img/showcase/daoventure_logo.svg"
"logo": "/img/showcase/daoventure_logo.png"
},
{
"id": "IC4J Agent Lite",
Expand All @@ -4939,7 +4939,7 @@
"description": "A fun, play-to-earn game based on cute kittens.",
"usesInternetIdentity": false,
"display": "Normal",
"logo": "/img/showcase/pawsarena_logo.svg"
"logo": "/img/showcase/pawsarena_logo.png"
},
{
"id": "solutio",
Expand Down Expand Up @@ -5003,7 +5003,7 @@
"description": "A marketplace to discover new and exciting web3 dapps and games.",
"usesInternetIdentity": true,
"display": "Normal",
"logo": "/img/showcase/cload_logo.svg"
"logo": "/img/showcase/cload_logo.png"
},
{
"id": "claimlink",
Expand Down
Binary file added static/img/showcase/BR-DAO_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading