Skip to content

Commit e5d49ee

Browse files
committed
chore: organize imports
1 parent 92727a2 commit e5d49ee

File tree

8 files changed

+22
-28
lines changed

8 files changed

+22
-28
lines changed

packages/qwik-router/src/middleware/request-handler/request-event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import { createCacheControl } from './cache-control';
1414
import { Cookie } from './cookie';
1515
import { ServerError } from './error-handler';
1616
import { AbortMessage, RedirectMessage } from './redirect-handler';
17-
import { RewriteMessage } from './rewrite-handler';
1817
import { encoder } from './resolve-request-handlers';
18+
import { RewriteMessage } from './rewrite-handler';
1919
import type {
2020
CacheControl,
2121
CacheControlTarget,

packages/qwik-router/src/middleware/request-handler/request-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Render } from '@qwik.dev/core/server';
22
import { loadRoute } from '../../runtime/src/routing';
3-
import type { RebuildRouteInfoInternal, QwikRouterConfig } from '../../runtime/src/types';
3+
import type { QwikRouterConfig, RebuildRouteInfoInternal } from '../../runtime/src/types';
44
import { renderQwikMiddleware, resolveRequestHandlers } from './resolve-request-handlers';
55
import type { QwikSerializer, ServerRenderOptions, ServerRequestEvent } from './types';
66
import { getRouteMatchPathname, runQwikRouter, type QwikRouterRun } from './user-response';

packages/qwik-router/src/middleware/request-handler/resolve-request-handlers.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,32 @@ import { type QRL } from '@qwik.dev/core';
22
import type { Render, RenderToStringResult } from '@qwik.dev/core/server';
33
import { QACTION_KEY, QFN_KEY, QLOADER_KEY } from '../../runtime/src/constants';
44
import {
5+
LoadedRouteProp,
56
type ActionInternal,
67
type ClientPageData,
78
type DataValidator,
89
type JSONObject,
910
type LoadedRoute,
10-
LoadedRouteProp,
1111
type LoaderInternal,
1212
type PageModule,
1313
type RouteModule,
1414
type ValidatorReturn,
1515
} from '../../runtime/src/types';
16+
import { ServerError } from './error-handler';
1617
import { HttpStatus } from './http-status-codes';
1718
import { RedirectMessage } from './redirect-handler';
1819
import {
19-
RequestEvQwikSerializer,
2020
RequestEvIsRewrite,
21+
RequestEvQwikSerializer,
22+
RequestEvShareQData,
23+
RequestEvShareServerTiming,
2124
RequestEvSharedActionId,
2225
RequestRouteName,
2326
getRequestLoaders,
27+
getRequestLoadersSerializationStrategy,
2428
getRequestMode,
2529
getRequestTrailingSlash,
2630
type RequestEventInternal,
27-
RequestEvShareServerTiming,
28-
RequestEvShareQData,
29-
getRequestLoadersSerializationStrategy,
3031
} from './request-event';
3132
import { getQwikRouterServerData } from './response-page';
3233
import type {
@@ -37,7 +38,6 @@ import type {
3738
RequestHandler,
3839
} from './types';
3940
import { IsQData, QDATA_JSON } from './user-response';
40-
import { ServerError } from './error-handler';
4141

4242
export const resolveRequestHandlers = (
4343
serverPlugins: RouteModule[] | undefined,

packages/qwik-router/src/middleware/request-handler/response-page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Q_ROUTE } from '../../runtime/src/constants';
12
import type { QwikRouterEnvData } from '../../runtime/src/types';
23
import {
34
getRequestLoaders,
@@ -9,7 +10,6 @@ import {
910
RequestRouteName,
1011
} from './request-event';
1112
import type { RequestEvent } from './types';
12-
import { Q_ROUTE } from '../../runtime/src/constants';
1313

1414
export function getQwikRouterServerData(requestEv: RequestEvent) {
1515
const { params, request, status, locale, originalUrl } = requestEv;

packages/qwik-router/src/runtime/src/link-component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
untrack,
88
useSignal,
99
useVisibleTask$,
10-
type QwikIntrinsicElements,
1110
type EventHandler,
11+
type QwikIntrinsicElements,
1212
type QwikVisibleEvent,
1313
} from '@qwik.dev/core';
1414
import { prefetchSymbols } from './client-navigate';

packages/qwik-router/src/runtime/src/qwik-router-component.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,13 @@ import {
1717
type QRL,
1818
} from '@qwik.dev/core';
1919
import {
20-
_getContextElement,
2120
_getContextContainer,
21+
_getContextElement,
2222
_getQContainerElement,
2323
_UNINITIALIZED,
2424
_waitUntilRendered,
25-
type _ElementVNode,
26-
_useInvokeContext,
27-
_getDomContainer,
28-
type _DomContainer,
2925
SerializerSymbol,
26+
type _ElementVNode,
3027
type AsyncComputedReadonlySignal,
3128
} from '@qwik.dev/core/internal';
3229
import { clientNavigate } from './client-navigate';

packages/qwik-router/src/runtime/src/server-functions.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
import {
22
$,
33
implicit$FirstArg,
4+
isBrowser,
5+
isDev,
6+
isServer,
47
noSerialize,
8+
untrack,
59
useStore,
610
type QRL,
711
type ValueOrPromise,
8-
untrack,
9-
isBrowser,
10-
isDev,
11-
isServer,
1212
} from '@qwik.dev/core';
1313
import {
1414
_deserialize,
1515
_getContextElement,
1616
_getContextEvent,
1717
_serialize,
18-
_useInvokeContext,
1918
_UNINITIALIZED,
19+
_useInvokeContext,
2020
type SerializationStrategy,
2121
} from '@qwik.dev/core/internal';
2222

@@ -29,14 +29,15 @@ import type {
2929
ActionConstructor,
3030
ActionConstructorQRL,
3131
ActionInternal,
32-
ActionStore,
3332
ActionOptions,
33+
ActionStore,
3434
DataValidator,
3535
Editable,
3636
JSONObject,
3737
LoaderConstructor,
3838
LoaderConstructorQRL,
3939
LoaderInternal,
40+
LoaderOptions,
4041
RequestEvent,
4142
RequestEventAction,
4243
RequestEventBase,
@@ -54,13 +55,12 @@ import type {
5455
ZodConstructor,
5556
ZodConstructorQRL,
5657
ZodDataValidator,
57-
LoaderOptions,
5858
} from './types';
5959
import { useAction, useLocation, useQwikRouterEnv } from './use-functions';
6060

6161
import type { FormSubmitCompletedDetail } from './form-component';
62-
import { deepFreeze } from './utils';
6362
import { loadClientData } from './use-endpoint';
63+
import { deepFreeze } from './utils';
6464

6565
/** @internal */
6666
export const routeActionQrl = ((

packages/qwik-router/src/runtime/src/utils.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import type { SimpleURL } from './types';
22

3-
import { QACTION_KEY, QLOADER_KEY } from './constants';
3+
import { createAsyncComputed$, isBrowser } from '@qwik.dev/core';
44
import {
55
_UNINITIALIZED,
6-
_getContextElement,
7-
_getDomContainer,
8-
_useInvokeContext,
96
type ClientContainer,
107
type SerializationStrategy,
118
} from '@qwik.dev/core/internal';
12-
import { createAsyncComputed$, isBrowser } from '@qwik.dev/core';
9+
import { QACTION_KEY, QLOADER_KEY } from './constants';
1310
import { loadClientData } from './use-endpoint';
1411

1512
/** Gets an absolute url path string (url.pathname + url.search + url.hash) */

0 commit comments

Comments
 (0)