mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
upgrade to typescript@5.6 and cordis@3.18
This commit is contained in:
22 files changed
+52
-46
No files matched your search
@@ -62,8 +62,7 @@ declare module '../../context' {
|
||||
|
||||
export default function ScratchpadContainer() {
|
||||
const store = useStore();
|
||||
ctx.provide('scratchpad');
|
||||
ctx.scratchpad ||= new ScratchpadService(store);
|
||||
ctx.set('scratchpad', new ScratchpadService(store));
|
||||
const [, updateState] = React.useState<any>();
|
||||
const forceUpdate = React.useCallback(() => updateState({}), []);
|
||||
React.useEffect(() => {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blueprintjs/core": "^5.13.0",
|
||||
"@cordisjs/core": "3.17.3",
|
||||
"@cordisjs/core": "3.18.1",
|
||||
"@fontsource/dm-mono": "^5.1.0",
|
||||
"@fontsource/fira-code": "^5.1.0",
|
||||
"@fontsource/inconsolata": "^5.1.0",
|
||||
@@ -37,7 +37,7 @@
|
||||
"@types/nunjucks": "^3.2.6",
|
||||
"@types/pickadate": "^3.5.35",
|
||||
"@types/qrcode": "^1.5.5",
|
||||
"@types/react": "^18.3.9",
|
||||
"@types/react": "^18.3.10",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"@types/redux-logger": "^3.0.13",
|
||||
"@types/uuid": "^10.0.0",
|
||||
@@ -46,7 +46,7 @@
|
||||
"ajv": "^8.17.1",
|
||||
"allotment": "^1.20.2",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"browser-update": "^3.3.53",
|
||||
"browser-update": "^3.3.54",
|
||||
"chalk": "^5.3.0",
|
||||
"classnames": "^2.5.1",
|
||||
"clean-webpack-plugin": "^4.0.0",
|
||||
@@ -124,7 +124,7 @@
|
||||
"dependencies": {
|
||||
"ansi_up": "^6.0.2",
|
||||
"cssfilter": "^0.0.11",
|
||||
"esbuild": "0.23.0",
|
||||
"esbuild": "0.24.0",
|
||||
"fs-extra": "^11.2.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
"jsesc": "^3.0.2",
|
||||
|
||||
@@ -43,8 +43,7 @@ const page = new NamedPage('home_messages', () => {
|
||||
|
||||
reduxStore = store;
|
||||
(window as any).store = reduxStore;
|
||||
ctx.provide('messagepad');
|
||||
ctx.messagepad = new MessagePadService(store, WebSocket);
|
||||
ctx.set('messagepad', new MessagePadService(store, WebSocket));
|
||||
|
||||
const sock = new WebSocket(`${UiContext.ws_prefix}home/messages-conn`);
|
||||
sock.onmessage = (message) => {
|
||||
|
||||
@@ -115,8 +115,8 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
|
||||
}
|
||||
|
||||
async function scratchpadFadeIn() {
|
||||
// @ts-ignore
|
||||
await $('#scratchpad')
|
||||
// @ts-ignore
|
||||
.transition(
|
||||
{ opacity: 1 },
|
||||
{ duration: 200, easing: 'easeOutCubic' },
|
||||
@@ -125,8 +125,8 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
|
||||
}
|
||||
|
||||
async function scratchpadFadeOut() {
|
||||
// @ts-ignore
|
||||
await $('#scratchpad')
|
||||
// @ts-ignore
|
||||
.transition(
|
||||
{ opacity: 0 },
|
||||
{ duration: 200, easing: 'easeOutCubic' },
|
||||
|
||||
Reference in new issue
Block a user