serlo / frontend

Next.js app that serves serlo.org
https://serlo.org
Apache License 2.0
39 stars 10 forks source link

feat: Make image plugin available to integrations without upload (HACK) #3847

Closed LarsTheGlidingSquirrel closed 3 months ago

LarsTheGlidingSquirrel commented 3 months ago

Integrations can now enable the image plugin like this:

// using editor package
<SerloEditor _enableImagePlugin={true} ...>
  ...
</SerloEditor>

// using editor-web-component package
// -> enabled per default for now

Not to be used in production environments!

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
frontend ✅ Ready (Inspect) Visit Preview May 29, 2024 2:27pm
github-actions[bot] commented 3 months ago

📦 Next.js Bundle Analysis for @serlo/frontend

This analysis was generated by the Next.js Bundle Analysis action. 🤖

Seven Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/___editor_preview 483.09 KB (🟡 +23 B) 586.93 KB
/entity/create/[type]/[taxonomyId] 484.44 KB (🟡 +19 B) 588.27 KB
/entity/repository/add-revision/[...id] 483.71 KB (🟡 +18 B) 587.54 KB
/page/create 483.72 KB (🟡 +18 B) 587.55 KB
/taxonomy/term/create/[parent_id]/[id] 483.5 KB (🟡 +18 B) 587.33 KB
/taxonomy/term/update/[id] 483.43 KB (🟡 +17 B) 587.27 KB
/user/settings 482.4 KB (🟡 +18 B) 586.23 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.