core: api: get contest

This commit is contained in:
undefined committed 2021-10-28 17:51:08 +08:00
1 parent 89424ec9cd
commit 5272a35b09
6 files changed
+33 -6

No files matched your search

+2 -2
View File
@@ -23,8 +23,8 @@ console.log(
document.addEventListener('DOMContentLoaded', () => {
window.UiContext = JSON.parse(window.UiContext);
// eslint-disable-next-line
try { __webpack_public_path__ = UiContext.cdn_prefix } catch (e) { }
// eslint-disable-next-line camelcase
try { __webpack_public_path__ = UiContext.cdn_prefix; } catch (e) { }
// Locale & langs
const { version, payload } = JSON.parse(localStorage.getItem('hydro-constant') || '{}');
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.26.8",
"version": "4.26.9",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",
+1 -1
View File
@@ -26,7 +26,7 @@ const page = new NamedPage('api', async () => {
defaultQuery={defaultQuery}
fetcher={async (graphQLParams) => {
const data = await fetch(
'/api',
'',
{
method: 'POST',
headers: {