Skip to content

Commit 4508cfb

Browse files
committed
fixup
1 parent fbf332d commit 4508cfb

File tree

12 files changed

+49
-48
lines changed

12 files changed

+49
-48
lines changed

packages/qwik-router/src/buildtime/build-layout.unit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { assert, testAppSuite } from '../utils/test-suite';
33
const test = testAppSuite('Build Layout');
44

55
test('total layouts', ({ ctx: { layouts } }) => {
6+
// $ find starters/apps/qwikrouter-test/src/routes -name layout*tsx | wc -l
67
assert.equal(layouts.length, 12, JSON.stringify(layouts, null, 2));
78
});
89

starters/apps/qwikcity-test/src/routes/issue7732/b/index.tsx

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

starters/apps/qwikcity-test/src/routes/issue7732/layout.tsx

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

starters/apps/qwikrouter-test.prod/src/entry.ssr.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Root from "./root";
66

77
export default function (opts: RenderToStreamOptions) {
88
return renderToStream(<Root />, {
9-
base: "/qwikcity-test.prod/build/",
9+
base: "/qwikrouter-test.prod/build/",
1010
...opts,
1111
});
1212
}

starters/apps/qwikrouter-test.prod/src/routes/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default component$(() => {
55
<div>
66
<h1>Welcome to Qwik City!</h1>
77
<p>
8-
<a href="/qwikcity-test.prod/server-function">Server Function</a>
8+
<a href="/qwikrouter-test.prod/server-function">Server Function</a>
99
</p>
1010
</div>
1111
);
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { useLocation } from "@builder.io/qwik-city";
2-
import { component$ } from "@builder.io/qwik";
1+
import { useLocation } from "@qwik.dev/router";
2+
import { component$ } from "@qwik.dev/core";
33

44
export default component$(() => {
55
const location = useLocation();
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { routeAction$, Form } from "@builder.io/qwik-city";
2-
import { component$ } from "@builder.io/qwik";
1+
import { routeAction$, Form } from "@qwik.dev/router";
2+
import { component$ } from "@qwik.dev/core";
33

44
export const useAction = routeAction$((_, event) => {
55
throw event.redirect(
66
302,
7-
"/qwikcity-test/action-redirect-without-search-params-target/",
7+
"/qwikrouter-test/action-redirect-without-search-params-target/",
88
);
99
});
1010

starters/apps/qwikcity-test/src/routes/issue7732/a/index.tsx renamed to starters/apps/qwikrouter-test/src/routes/issue7732/a/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { component$ } from "@builder.io/qwik";
1+
import { component$ } from "@qwik.dev/core";
22

33
export default component$(() => {
44
return <div>empty default route A</div>;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { component$ } from "@qwik.dev/core";
2+
import type { RequestHandler } from "@qwik.dev/router";
3+
4+
export const onGet: RequestHandler<void> = ({ redirect }) => {
5+
throw redirect(302, `/qwikrouter-test/issue7732/c/?redirected=true`);
6+
};
7+
8+
export default component$(() => {
9+
return <div>B route with redirect</div>;
10+
});

starters/apps/qwikcity-test/src/routes/issue7732/c/index.tsx renamed to starters/apps/qwikrouter-test/src/routes/issue7732/c/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { component$ } from "@builder.io/qwik";
1+
import { component$ } from "@qwik.dev/core";
22

33
export default component$(() => {
44
return <div>route C should have redirected=true params</div>;

0 commit comments

Comments
 (0)