mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: frontend api (#470) [skip-cache]
This commit is contained in:
1 parent
6d69e88739
commit
96fa6cc7b9
116 files changed
+599
-629
No files matched your search
@@ -1,7 +1,6 @@
|
||||
import $ from 'jquery';
|
||||
import { NamedPage } from 'vj/misc/Page';
|
||||
import i18n from 'vj/utils/i18n';
|
||||
import { parse as parseMongoId } from 'vj/utils/mongoId';
|
||||
import { i18n, mongoId } from 'vj/utils';
|
||||
|
||||
const page = new NamedPage('homework_main', async () => {
|
||||
// Homework Calendar
|
||||
@@ -13,7 +12,7 @@ const page = new NamedPage('homework_main', async () => {
|
||||
title: doc.title,
|
||||
maskFrom: doc.penaltySince ? doc.penaltySince : null,
|
||||
maskTitle: i18n('Time Extension'),
|
||||
colorIndex: parseMongoId(doc._id).timestamp % 12,
|
||||
colorIndex: mongoId(doc._id).timestamp % 12,
|
||||
link: doc.url,
|
||||
}));
|
||||
const calendar = new Calendar(events);
|
||||
|
||||
Reference in new issue
Block a user