Skip to content

Commit 9af497d

Browse files
authored
Merge pull request #297 from shairez/pr-fix-cloudflare
2 parents e8c0ac9 + b5b592d commit 9af497d

File tree

40 files changed

+4176
-2119
lines changed

40 files changed

+4176
-2119
lines changed

.eslintrc.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"root": true,
33
"ignorePatterns": ["**/*"],
4-
"plugins": ["@nrwl/nx"],
4+
"plugins": ["@nx"],
55
"overrides": [
66
{
77
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
88
"rules": {
9-
"@nrwl/nx/enforce-module-boundaries": [
9+
"@nx/enforce-module-boundaries": [
1010
"error",
1111
{
1212
"enforceBuildableLibDependency": true,
@@ -23,12 +23,12 @@
2323
},
2424
{
2525
"files": ["*.ts", "*.tsx"],
26-
"extends": ["plugin:@nrwl/nx/typescript"],
26+
"extends": ["plugin:@nx/typescript"],
2727
"rules": {}
2828
},
2929
{
3030
"files": ["*.js", "*.jsx"],
31-
"extends": ["plugin:@nrwl/nx/javascript"],
31+
"extends": ["plugin:@nx/javascript"],
3232
"rules": {}
3333
},
3434
{

apps/website-e2e/cypress.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineConfig } from 'cypress';
2-
import { nxE2EPreset } from '@nrwl/cypress/plugins/cypress-preset';
2+
import { nxE2EPreset } from '@nx/cypress/plugins/cypress-preset';
33

44
export default defineConfig({
55
e2e: nxE2EPreset(__dirname, {

apps/website-e2e/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"projectType": "application",
66
"targets": {
77
"e2e": {
8-
"executor": "@nrwl/cypress:cypress",
8+
"executor": "@nx/cypress:cypress",
99
"options": {
1010
"cypressConfig": "apps/website-e2e/cypress.config.ts",
1111
"devServerTarget": "website:serve",
@@ -18,7 +18,7 @@
1818
}
1919
},
2020
"lint": {
21-
"executor": "@nrwl/linter:eslint",
21+
"executor": "@nx/linter:eslint",
2222
"outputs": ["{options.outputFile}"],
2323
"options": {
2424
"lintFilePatterns": ["apps/website-e2e/**/*.{js,ts}"]

apps/website/adapters/cloudflare-pages/vite.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ export default extendConfig(baseConfig, () => {
1313
],
1414
},
1515
},
16-
plugins: [cloudflarePagesAdapter({})],
16+
plugins: [
17+
cloudflarePagesAdapter({
18+
// ssg: {
19+
// include: ['/*'],
20+
// }
21+
}),
22+
],
1723
};
1824
});

apps/website/functions/[[path]].ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

apps/website/project.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,35 +16,35 @@
1616
}
1717
},
1818
"preview": {
19-
"executor": "@nrwl/vite:preview-server",
19+
"executor": "@nx/vite:preview-server",
2020
"options": {
2121
"buildTarget": "website:build"
2222
}
2323
},
2424
"test": {
25-
"executor": "@nrwl/vite:test",
25+
"executor": "@nx/vite:test",
2626
"outputs": ["../../coverage/apps/website"],
2727
"options": {
2828
"passWithNoTests": true,
2929
"reportsDirectory": "../../coverage/apps/website"
3030
}
3131
},
3232
"serve": {
33-
"executor": "@nrwl/vite:dev-server",
33+
"executor": "@nx/vite:dev-server",
3434
"options": {
3535
"buildTarget": "website:build.client",
3636
"mode": "ssr"
3737
}
3838
},
3939
"build.client": {
40-
"executor": "@nrwl/vite:build",
40+
"executor": "@nx/vite:build",
4141
"options": {
4242
"outputPath": "dist/apps/website",
4343
"configFile": "apps/website/vite.config.ts"
4444
}
4545
},
4646
"build.ssr": {
47-
"executor": "@nrwl/vite:build",
47+
"executor": "@nx/vite:build",
4848
"defaultConfiguration": "preview",
4949
"options": {
5050
"outputPath": "dist/apps/website"

apps/website/src/components/api-table/api-table.tsx

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { component$, $, QRL } from '@builder.io/qwik';
1+
import { component$ } from '@builder.io/qwik';
22

33
type APITableProps = {
44
propDescriptors: {
@@ -44,22 +44,3 @@ export const APITable = component$(({ propDescriptors }: APITableProps) => {
4444
</table>
4545
);
4646
});
47-
48-
export const TableRow = component$(({ keyboard, deck }: TableRowProps) => {
49-
const Description: any = deck;
50-
51-
return (
52-
<tr class="border-b-2 border-gray-700">
53-
<td class="py-4">
54-
<kbd class="border w-max shadow-lg rounded-md px-2 capitalize text-sm inline-block">
55-
{keyboard}
56-
</kbd>
57-
</td>
58-
<td>
59-
<article class="ml-6">
60-
<Description />
61-
</article>
62-
</td>
63-
</tr>
64-
);
65-
});

apps/website/src/components/header/header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import {
66
useSignal,
77
} from '@builder.io/qwik';
88
import { Link, useLocation } from '@builder.io/qwik-city';
9-
// eslint-disable-next-line @nrwl/nx/enforce-module-boundaries
9+
// eslint-disable-next-line @nx/enforce-module-boundaries
1010
import { version as headlessVersion } from '../../../../../packages/kit-headless/package.json';
11-
// eslint-disable-next-line @nrwl/nx/enforce-module-boundaries
11+
// eslint-disable-next-line @nx/enforce-module-boundaries
1212
import { version as tailwindVersion } from '../../../../../packages/kit-tailwind/package.json';
1313
import { CloseIcon } from '../icons/CloseIcon';
1414
import { GitHubIcon } from '../icons/GitHubIcon';

apps/website/src/components/keyboard-interaction-table/keyboard-interaction-table.tsx

Lines changed: 1 addition & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,10 @@
1-
import { component$, $ } from '@builder.io/qwik';
1+
import { component$ } from '@builder.io/qwik';
22

33
type KBInteractionTableRowProps = {
44
keyTitle: string;
55
description: string;
66
};
77

8-
const SAMPLE_DATA = {
9-
title: { key: 'Key', deck: 'Description' },
10-
keys: [
11-
{
12-
id: crypto.randomUUID(),
13-
title: 'Space',
14-
description: $(() => <>Close a dialog or cancel an action.</>),
15-
},
16-
{
17-
id: crypto.randomUUID(),
18-
title: 'Enter',
19-
description: $(() => (
20-
<>
21-
Moves focus to the next{' '}
22-
<b class="text-[var(--qwik-light-purple)]">AccordionItem</b> when
23-
orientation is vertical.
24-
</>
25-
)),
26-
},
27-
{
28-
id: crypto.randomUUID(),
29-
title: 'Tab',
30-
description: $(() => <>Moves focus to the next focusable element.</>),
31-
},
32-
{
33-
id: crypto.randomUUID(),
34-
title: 'Shift + Tab',
35-
description: $(() => (
36-
<>
37-
Moves focus to the next{' '}
38-
<b class="text-[var(--qwik-light-purple)]">AccordionItem</b> when
39-
orientation is vertical.
40-
</>
41-
)),
42-
},
43-
{
44-
id: crypto.randomUUID(),
45-
title: 'Home',
46-
description: $(() => (
47-
<>
48-
When focus is on an{' '}
49-
<b class="text-[var(--qwik-light-purple)]">AccordionItem</b>, moves
50-
focus to the first{' '}
51-
<b class="text-[var(--qwik-light-purple)]">AccordionItem</b>.
52-
</>
53-
)),
54-
},
55-
{
56-
id: crypto.randomUUID(),
57-
title: 'End',
58-
description: $(() => (
59-
<>
60-
When focus is on an{' '}
61-
<b class="text-[var(--qwik-light-purple)]">AccordionItem</b>, moves
62-
focus to the last{' '}
63-
<b class="text-[var(--qwik-light-purple)]">AccordionItem</b>.
64-
</>
65-
)),
66-
},
67-
],
68-
};
69-
708
export interface KeyboardInteractionTableProps {
719
keyDescriptors: KBInteractionTableRowProps[];
7210
}

apps/website/src/components/router-head/router-head.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const RouterHead = component$(() => {
1313
<>
1414
<title>{head.title}</title>
1515

16-
<link rel="canonical" href={loc.href} />
16+
<link rel="canonical" href={loc.url.href} />
1717
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1818
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
1919

0 commit comments

Comments
 (0)