dev: bump version

This commit is contained in:
undefined committed 2021-07-29 13:02:57 +08:00
1 parent 5eaec48002
commit 0cd91d7475
22 files changed
+23 -60

No files matched your search

+1
View File
@@ -3,6 +3,7 @@
"./public",
],
"compilerOptions": {
"jsx": "react",
"allowSyntheticDefaultImports": true,
"target": "ES6",
"baseUrl": ".",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.13.13",
"version": "4.14.0",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",
-22
View File
@@ -1,22 +0,0 @@
(() => {
const { NamedPage } = window.Hydro;
const { $ } = window.node_modules;
const { request, i18n, tpl } = window.Hydro.utils;
const { ConfirmDialog } = window.Hydro.components;
const page = new NamedPage('course_detail', async () => {
$(document).on('click', '[name="course_buy"]', async (ev) => {
const message = '购买课程';
const action = await new ConfirmDialog({
$body: tpl`
<div class="typo">
<h3>${i18n(message)}</h3>
</div>`,
}).open();
if (action !== 'yes') return;
window.open(`/course/buy/${UiContext.cdoc._id}`, '_blank');
});
});
window.Hydro.extraPages.push(page);
})();