Skip to content

Commit 9354e2b

Browse files
Merge pull request #543 from maiieul/fix-free-invalid-size
fix(dev server): fix err: "free(): invalid size"
2 parents bfcebd2 + 777c0d7 commit 9354e2b

File tree

7 files changed

+17
-14
lines changed

7 files changed

+17
-14
lines changed

apps/website/src/routes/docs/fluffy/(getting-started)/introduction/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: 'Qwik UI | Fluffy (styled) Kit - Introduction'
33
---
44

5-
import ImgQwikUiFluffyCreatureScreen from '/public/images/qwik-ui-fluffy-creature-screen.webp?jsx';
5+
import FluffyCreatureScreen from '/images/qwik-ui-fluffy-creature-screen.webp';
66

77
# Fluffy (styled) Kit
88

@@ -18,4 +18,4 @@ The Fluffy Kit offers a powerful solution for developers looking to create visua
1818

1919
The Headless Kit is designed to work hand-in-hand with the Qwik framework. This means that, as a developer, you can enjoy the performance benefits and SEO advantages of Qwik while having a beautiful, consistent design out of the box. It's the perfect combination: the cutting-edge technology of Qwik, paired with the modern design aesthetics of Tailwind CSS.
2020

21-
<ImgQwikUiFluffyCreatureScreen />;
21+
<image src={FluffyCreatureScreen} />;

apps/website/src/routes/docs/headless/install/index.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ title: 'Qwik UI - Installation'
44

55
import QwikLogo from '~/components/icons/QwikLogo.tsx';
66
import AstroLogo from '~/components/icons/AstroLogo.tsx';
7-
import QwikCityCLI from '~/media/qwik-city-cli.webp?jsx';
8-
import AstroCLI from '~/media/astro-cli.webp?jsx';
9-
import QwikdevAstroCLI from '~/media/qwikdev-astro-cli.webp?jsx';
7+
import qwikCityCLI from '/images/qwik-city-cli.webp';
8+
import astroCLI from '/images/astro-cli.webp';
9+
import qwikdevAstroCLI from '/images/qwikdev-astro-cli.webp';
1010
import { ConfettiButton } from './confetti-button';
1111

1212
export const packages = {
@@ -78,7 +78,7 @@ Install Qwik UI with your choice of package manager below:
7878
Let's select the `empty app` option in the CLI to keep it simple. And remember, choosing the dad joke is not optional - it's mandatory! We have a highly sophisticated Dad Joke Detection System (DJDS) in place, so we'll know if you didn't!
7979

8080
<div class="-mx-6 lg:-mx-8">
81-
<QwikCityCLI class="block max-w-full rounded-md mb-6 border" />
81+
<image src={qwikCityCLI} class="block max-w-full rounded-md mb-6 border" />
8282
</div>
8383

8484
Below is the Qwik City project structure. Inside of the `src` directory, let's create a new folder called `accordion`. Then, a file named **`accordion.tsx`** inside of `src/components`.
@@ -138,7 +138,7 @@ Install Qwik UI with your choice of package manager below:
138138
Add a relative path for your project, and select the `empty` option in the CLI.
139139

140140
<div class="-mx-6 lg:-mx-8">
141-
<AstroCLI class="block max-w-full rounded-md mb-6 border" />
141+
<image src={astroCLI} class="block max-w-full rounded-md mb-6 border" />
142142
</div>
143143

144144
Next, let's add the [@qwikdev/astro](https://www.npmjs.com/package/@qwikdev/astro) integration. This integration allows us to leverage resumability and Qwik components inside of Astro.
@@ -148,7 +148,7 @@ Install Qwik UI with your choice of package manager below:
148148
<InstallSnippet packages={qwikAstroCliPackages} />
149149

150150
<div class="-mx-6 lg:-mx-8">
151-
<QwikdevAstroCLI class="block max-w-full rounded-md mb-6 border" />
151+
<image src={qwikdevAstroCLI} class="block max-w-full rounded-md mb-6 border" />
152152
</div>
153153

154154
Then, let's make sure we use Qwik as our main **jsxImportSource** in `tsconfig.json`. Otherwise, it will not get the proper Qwik types.

apps/website/src/routes/docs/headless/introduction/index.mdx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Qwik UI | Introduction
33
---
44

5-
import HeadlessArt from '/public/images/qwik-ui-headless-hero.webp?jsx';
5+
import headlessHero from '/images/qwik-ui-headless-hero.webp';
66
import { Note } from '~/components/note/note';
77
import {
88
AccordionRoot,
@@ -53,11 +53,14 @@ This means that Qwik UI can operate with any meta-framework that supports Qwik,
5353

5454
Qwik values HTML as the source of truth, and this principle extends to Qwik UI components. We appreciate and adopt the excellent work done by the [Open UI Group](https://open-ui.org/) when appropriate.
5555

56-
<div class="mx-[-24px] mx-[-32px]">
57-
<HeadlessArt class="dark:shadow-dark-high shadow-dark-low rounded-lg border-2 border-white" />
56+
<div class="mx-[-24px] lg:mx-[-32px]">
57+
<image
58+
src={headlessHero}
59+
class="dark:shadow-dark-high shadow-dark-low rounded-lg border-2 border-white"
60+
/>
5861
</div>
5962

60-
<br />{' '}
63+
<br />
6164

6265
This approach also encompasses future native APIs. Users of Qwik UI might find themselves using components that can be gradually adopted into the native specification. This implies that, eventually, these custom patterns might not need any JavaScript.
6366

apps/website/src/routes/docs/headless/modal/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Qwik UI | Modal
33
---
44

5-
import ImgTestImage from '/public/images/test-image.png?jsx';
5+
import testImage from '/images/test-image.png';
66

77
import { statusByComponent } from '~/_state/component-statuses';
88

@@ -99,7 +99,7 @@ Custom signal binds are like a remote control for components, controlling states
9999

100100
## The Top Layer
101101

102-
<ImgTestImage class="mb-6 rounded-xl" />
102+
<image src={testImage} class="mb-6 rounded-xl" />
103103

104104
In Chrome and Edge, a `top layer` UI button is shown in the dev tools. This means the element content is placed above any other content on the page, preventing any overflow or style issues.
105105

0 commit comments

Comments
 (0)