From 9b8d187887952a5a412c569c33364ffe4fcad115 Mon Sep 17 00:00:00 2001 From: Wanjohi <71614375+wanjohiryan@users.noreply.github.com> Date: Tue, 21 Jan 2025 03:38:22 +0300 Subject: [PATCH] =?UTF-8?q?=E2=AD=90feat(www):=20Add=20api=20docs=20(#161)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/www/package.json | 2 ++ .../src/components/partytown/partytown.tsx | 19 +++++++++++++++++ apps/www/src/root.tsx | 6 ++++-- apps/www/src/routes/docs/index.tsx | 20 ++++++++++++++++++ apps/www/vite.config.ts | 15 +++---------- bun.lockb | Bin 755616 -> 757560 bytes 6 files changed, 48 insertions(+), 14 deletions(-) create mode 100644 apps/www/src/components/partytown/partytown.tsx create mode 100644 apps/www/src/routes/docs/index.tsx diff --git a/apps/www/package.json b/apps/www/package.json index 69008070..ba7c0b99 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -31,6 +31,7 @@ "qwik": "qwik" }, "devDependencies": { + "@builder.io/partytown": "^0.8.1", "@builder.io/qwik": "^1.8.0", "@builder.io/qwik-city": "^1.8.0", "@builder.io/qwik-react": "0.5.0", @@ -50,6 +51,7 @@ "@types/react-dom": "^18.2.13", "@typescript-eslint/eslint-plugin": "7.16.1", "@typescript-eslint/parser": "7.16.1", + "ajv": "^8.17.1", "eslint": "8.57.0", "eslint-plugin-qwik": "^1.8.0", "howler": "^2.2.4", diff --git a/apps/www/src/components/partytown/partytown.tsx b/apps/www/src/components/partytown/partytown.tsx new file mode 100644 index 00000000..79952e61 --- /dev/null +++ b/apps/www/src/components/partytown/partytown.tsx @@ -0,0 +1,19 @@ +import type { PartytownConfig } from "@builder.io/partytown/integration"; +import { partytownSnippet } from "@builder.io/partytown/integration"; + +/** + * Props for ``, which extends the Partytown Config. + * + * https://github.com/BuilderIO/partytown#config + * + * @public + */ +export interface PartytownProps extends PartytownConfig {} + +/** + * @public + * You can pass setting with props + */ +export const QwikPartytown = (props: PartytownProps): any => { + return +