mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui-next: fix indent for server-side files
This commit is contained in:
3 files changed
+4
-13
No files matched your search
+1
-1
@@ -68,7 +68,7 @@ const config = react({
|
||||
'**/{public,frontend}/**/*.{ts,tsx,page.js}',
|
||||
'**/plugins/**/*.page.{ts,js,tsx,jsx}',
|
||||
'packages/ui-default/**/*.{ts,tsx,js,jsx}',
|
||||
'packages/ui-next/**/*.{ts,tsx,js,jsx}',
|
||||
'packages/ui-next/src/**/*.{ts,tsx,js,jsx}',
|
||||
],
|
||||
|
||||
languageOptions: {
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
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 type { Context } from 'hydrooj';
|
||||
import type { PageData } from './src/context/page-data';
|
||||
|
||||
const INJECT_MARKER = '<!-- __HYDRO_INJECTION__DO_NOT_REMOVE_THIS__ -->';
|
||||
@@ -60,14 +59,6 @@ export async function apply(ctx: Context) {
|
||||
root: __dirname,
|
||||
base: '/',
|
||||
plugins: [react(), hydroPlugins()],
|
||||
optimizeDeps: {
|
||||
esbuildOptions: {
|
||||
plugins: [
|
||||
// @ts-ignore
|
||||
importMetaUrlPlugin(),
|
||||
],
|
||||
},
|
||||
},
|
||||
worker: {
|
||||
format: 'es',
|
||||
},
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"koa2-connect": "^1.0.2",
|
||||
"path-to-regexp": "^8.4.2",
|
||||
"react": "^19.2.5",
|
||||
"react-dom": "^19.2.5"
|
||||
@@ -19,6 +18,7 @@
|
||||
"@types/react": "^19.2.14",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@vitejs/plugin-react": "^6.0.1",
|
||||
"koa2-connect": "^1.0.2",
|
||||
"vite": "^8.0.10"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user