Skip to content

Commit 3391fa0

Browse files
committed
update apps to qwik-v2
1 parent 2f2836c commit 3391fa0

File tree

477 files changed

+516
-514
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

477 files changed

+516
-514
lines changed

apps/component-tests/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"name": "componentTests"
2+
"name": "componentTests",
3+
"devDependencies": {}
34
}

apps/component-tests/src/components/router-head/router-head.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { component$ } from '@builder.io/qwik';
2-
import { useDocumentHead, useLocation } from '@builder.io/qwik-city';
1+
import { component$ } from '@qwik.dev/core';
2+
import { useDocumentHead, useLocation } from '@qwik.dev/router';
33

44
/**
55
* The RouterHead component is placed inside of the document `<head>` element.

apps/component-tests/src/components/showcase-test/showcase-test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Component, component$, useSignal, useTask$ } from '@builder.io/qwik';
2-
import { useLocation } from '@builder.io/qwik-city';
1+
import { Component, component$, useSignal, useTask$ } from '@qwik.dev/core';
2+
import { useLocation } from '@qwik.dev/router';
33
import { metaGlobComponents } from './component-imports';
44

55
export const ShowcaseTest = component$(() => {

apps/component-tests/src/entry.dev.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* - More code is transferred to the browser than in SSR mode.
1010
* - Optimizer/Serialization/Deserialization code is not exercised!
1111
*/
12-
import { render, RenderOptions } from '@builder.io/qwik';
12+
import { render, RenderOptions } from '@qwik.dev/core';
1313
import Root from './root';
1414

1515
export default function (opts: RenderOptions) {

apps/component-tests/src/entry.preview.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
* - https://vitejs.dev/config/preview-options.html#preview-options
1111
*
1212
*/
13-
import { createQwikCity } from '@builder.io/qwik-city/middleware/node';
13+
import { createQwikRouter } from '@qwik.dev/router/middleware/node';
1414
// The `render` import must stay after `qwikCityPlan` import: https://github.com/BuilderIO/qwik/issues/3634
15-
import qwikCityPlan from '@qwik-city-plan';
15+
import qwikRouterConfig from '@qwik-router-config';
1616
import render from './entry.ssr';
1717

1818
/**
1919
* The default export is the QwikCity adaptor used by Vite preview.
2020
*/
21-
export default createQwikCity({ render, qwikCityPlan });
21+
export default createQwikRouter({ render, qwikRouterConfig });

apps/component-tests/src/entry.ssr.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* - npm run build
1111
*
1212
*/
13-
import { renderToStream, RenderToStreamOptions } from '@builder.io/qwik/server';
13+
import { renderToStream, RenderToStreamOptions } from '@qwik.dev/core/server';
1414
import { manifest } from '@qwik-client-manifest';
1515
import Root from './root';
1616

apps/component-tests/src/root.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { component$, useStyles$ } from '@builder.io/qwik';
2-
import { QwikCityProvider, RouterOutlet } from '@builder.io/qwik-city';
1+
import { component$, useStyles$ } from '@qwik.dev/core';
2+
import { QwikRouterProvider, RouterOutlet } from '@qwik.dev/router';
33

44
import { RouterHead } from './components/router-head/router-head';
55
import globalStyles from './global.css?inline';
@@ -25,7 +25,7 @@ export default component$(() => {
2525
useStyles$(globalStyles);
2626

2727
return (
28-
<QwikCityProvider>
28+
<QwikRouterProvider>
2929
<head>
3030
<meta charset="utf-8" />
3131
<link rel="manifest" href="/manifest.json" />
@@ -47,6 +47,6 @@ export default component$(() => {
4747
<RouterOutlet />
4848
</ThemeProvider>
4949
</body>
50-
</QwikCityProvider>
50+
</QwikRouterProvider>
5151
);
5252
});

apps/component-tests/src/routes/[kit]/[component]/[example]/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
import { ShowcaseTest } from '../../../../components/showcase-test/showcase-test';
33

44
export default component$(() => {

apps/component-tests/src/routes/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { component$ } from '@builder.io/qwik';
2-
import type { DocumentHead } from '@builder.io/qwik-city';
1+
import { component$ } from '@qwik.dev/core';
2+
import type { DocumentHead } from '@qwik.dev/router';
33

44
export default component$(() => {
55
return <div>kit/component/example</div>;

apps/component-tests/src/routes/service-worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Qwik uses a service worker to speed up your site and reduce latency, ie, not used in the traditional way of offline.
88
* You can also use this file to add more functionality that runs in the service worker.
99
*/
10-
import { setupServiceWorker } from '@builder.io/qwik-city/service-worker';
10+
import { setupServiceWorker } from '@qwik.dev/router/service-worker';
1111

1212
setupServiceWorker();
1313

0 commit comments

Comments
 (0)