mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui-next: format index.ts
This commit is contained in:
1 file changed
+3
-3
@@ -1,11 +1,11 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { serializer } from '@hydrooj/framework';
|
||||
import { Context } from 'hydrooj';
|
||||
import importMetaUrlPlugin from '@chialab/esbuild-plugin-meta-url';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import c2k from 'koa2-connect/ts';
|
||||
import { createServer, type Plugin } from 'vite';
|
||||
import { serializer } from '@hydrooj/framework';
|
||||
import { Context } from 'hydrooj';
|
||||
import type { PageData } from './src/context/pageData';
|
||||
|
||||
const INJECT_MARKER = '<!-- __HYDRO_INJECTION__DO_NOT_REMOVE_THIS__ -->';
|
||||
@@ -88,7 +88,7 @@ export async function apply(ctx: Context) {
|
||||
HYDRO_INJECTED: true,
|
||||
name,
|
||||
args,
|
||||
url: context.handler.context.req.url,
|
||||
url: context.handler.context.req.url!,
|
||||
routeMap: ctx.server.routeMap,
|
||||
};
|
||||
const serialized = JSON.stringify(data, serializer(false, context.handler));
|
||||
|
||||
Reference in new issue
Block a user