ui-next: move to a seperate tsconfig

This commit is contained in:
undefined committed 2025-03-18 01:07:34 +08:00
1 parent 80d2137cbb
commit 74a3ee90c7
13 files changed
+93 -34

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@
"@aws-sdk/lib-storage": "3.726.1",
"@aws-sdk/s3-presigned-post": "3.726.1",
"@aws-sdk/s3-request-presigner": "3.726.1",
"@cordisjs/core": "4.0.0-alpha.5",
"@cordisjs/core": "4.0.0-alpha.6",
"@cordisjs/logger": "1.0.0-alpha.3",
"@cordisjs/plugin-timer": "1.0.0-alpha.0",
"@graphql-tools/schema": "^10.0.23",
+1 -2
View File
@@ -13,7 +13,7 @@ const descriptions: Record<string, Record<string, string>> = Object.create(null)
const handlers: Record<string, Record<string, any>> = {
Query: Object.create(null),
};
let root: Record<string, any> = Object.create(null);
const root: Record<string, any> = handlers.Query;
interface ApiContext extends ApiHandler {
[key: string]: any;
@@ -31,7 +31,6 @@ function setDescription(desc: string) {
let schema: GraphQLSchema;
let schemaStr = '';
root = handlers.Query;
const applyAuthDirective = (s) => mapSchema(s, {
// eslint-disable-next-line consistent-return
@@ -90,7 +90,7 @@ declare module '../../api' {
export async function downloadProblemSet(pids, name = 'Export') {
Notification.info(i18n('Downloading...'));
const targets = [];
const targets: { filename: string; url?: string; content?: string }[] = [];
try {
await ctx.serial('problemset/download', pids, name, targets);
for (const pid of pids) {
+4 -4
View File
@@ -15,7 +15,7 @@
},
"devDependencies": {
"@blueprintjs/core": "^5.17.6",
"@cordisjs/core": "4.0.0-alpha.5",
"@cordisjs/core": "4.0.0-alpha.6",
"@fontsource/dm-mono": "^5.2.5",
"@fontsource/fira-code": "^5.2.5",
"@fontsource/inconsolata": "^5.2.5",
@@ -25,7 +25,7 @@
"@fontsource/source-code-pro": "^5.2.5",
"@fontsource/ubuntu-mono": "^5.2.5",
"@hydrooj/utils": "workspace:^",
"@sentry/browser": "^9.5.0",
"@sentry/browser": "^9.6.0",
"@sentry/webpack-plugin": "^3.2.2",
"@simplewebauthn/browser": "13.1.0",
"@svgr/webpack": "^8.1.0",
@@ -52,7 +52,7 @@
"classnames": "^2.5.1",
"clean-webpack-plugin": "^4.0.0",
"clipboard": "^2.0.11",
"copy-webpack-plugin": "^12.0.2",
"copy-webpack-plugin": "^13.0.0",
"core-js": "^3.41.0",
"core-js-compat": "^3.41.0",
"css-loader": "^6.11.0",
@@ -70,7 +70,7 @@
"jquery.easing": "^1.4.1",
"jquery.transit": "^0.9.12",
"matchmedia-polyfill": "^0.3.2",
"md-editor-rt": "^5.4.1",
"md-editor-rt": "^5.4.2",
"mini-css-extract-plugin": "^2.9.2",
"moment": "^2.30.1",
"monaco-editor": "0.52.2",
+15
View File
@@ -3,3 +3,18 @@ declare module '*.svg?react' {
const content: ComponentType;
export default content;
}
declare module '*.vue' {
export default {} as any;
}
declare module '*.css' {
const content: string;
export default content;
}
declare module '*.styl' {
const content: string;
export default content;
}
declare module '*.scss' {
const content: string;
export default content;
}
-3
View File
@@ -1,3 +0,0 @@
declare module '*.vue' {
export default {} as any;
}
-6
View File
@@ -5,7 +5,6 @@
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"
},
"dependencies": {
@@ -18,12 +17,7 @@
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react-swc": "^3.8.0",
"eslint": "^9.22.0",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.19",
"globals": "^16.0.0",
"typescript": "~5.8.2",
"typescript-eslint": "^8.26.1",
"vite": "^6.2.2"
}
}
+1 -1
View File
@@ -3,5 +3,5 @@ import { createRoot } from 'react-dom/client';
import App from './App';
createRoot(document.getElementById('root')!).render(<StrictMode>
<App />
<App />
</StrictMode>);