ui: add confirm dialog (#226)

This commit is contained in:
undefined committed 2021-10-06 13:36:42 +08:00
1 parent 8b9a3c6410
commit c696f51789
15 files changed
+46 -32

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@
},
"devDependencies": {
"@types/jsdom": "^16.2.13",
"@types/lodash": "^4.14.174",
"@types/lodash": "^4.14.175",
"@types/superagent": "^4.1.13",
"@types/superagent-proxy": "^2.0.1"
}
+1 -2
View File
@@ -11,7 +11,7 @@ import * as setting from 'hydrooj/src/model/setting';
import { IBasicProvider, RemoteAccount } from '../interface';
proxy(superagent);
const logger = new Logger('codeforces');
const logger = new Logger('remote/codeforces');
const VERDICT = {
RUNTIME_ERROR: STATUS.STATUS_RUNTIME_ERROR,
@@ -100,7 +100,6 @@ export default class CodeforcesProvider implements IBasicProvider {
password: this.account.password,
remember: 'on',
});
console.log(res.header);
const cookie = res.header['set-cookie'];
if (cookie) {
await this.save({ cookie });