Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit e88d4e6

Browse files
author
Je
committed
chore: rename router.ts to routing.ts
1 parent f77fde6 commit e88d4e6

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

aleph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { ComponentType, useCallback, useEffect, useRef, useState } from '
22
import { DataContext, RouterContext } from './context.ts'
33
import { E400MissingDefaultExportAsComponent, E404Page, ErrorBoundary } from './error.ts'
44
import events from './events.ts'
5-
import { createPageProps, Module, Routing } from './router.ts'
5+
import { createPageProps, Module, Routing } from './routing.ts'
66
import type { RouterURL } from './types.ts'
77
import util, { hashShort, reModuleExt } from './util.ts'
88

bootstrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { ComponentType } from 'https://esm.sh/react'
22
import { hydrate, render } from 'https://esm.sh/react-dom'
33
import { ALEPH, getModuleImportUrl } from './aleph.ts'
4-
import { Module, Route, Routing } from './router.ts'
4+
import { Module, Route, Routing } from './routing.ts'
55
import { reModuleExt } from './util.ts'
66

77
export default async function bootstrap({

project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { AlephAPIRequest, AlephAPIResponse } from './api.ts'
55
import { EventEmitter } from './events.ts'
66
import { createHtml } from './html.ts'
77
import log from './log.ts'
8-
import { Routing } from './router.ts'
8+
import { Routing } from './routing.ts'
99
import { colors, ensureDir, path, ServerRequest, Sha1, walk } from './std.ts'
1010
import { compile } from './tsc/compile.ts'
1111
import type { AlephRuntime, APIHandle, Config, RouterURL } from './types.ts'

renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { ComponentType, ReactElement } from 'https://esm.sh/react'
22
import { renderToString } from 'https://esm.sh/react-dom/server'
33
import { DataContext, RouterContext } from './context.ts'
44
import { E400MissingDefaultExportAsComponent, E404Page, ErrorBoundary } from './error.ts'
5-
import { createPageProps } from './router.ts'
5+
import { createPageProps } from './routing.ts'
66
import type { RouterURL } from './types.ts'
77
import util from './util.ts'
88

router.ts renamed to routing.ts

File renamed without changes.

router_test.ts renamed to routing_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { assertEquals } from 'https://deno.land/std/testing/asserts.ts'
2-
import { Routing } from './router.ts'
2+
import { Routing } from './routing.ts'
33

44
const routing = new Routing([], '/', 'en', ['en', 'zh-CN'])
55

0 commit comments

Comments
 (0)