mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
dev: bump version
This commit is contained in:
1 parent
5eaec48002
commit
0cd91d7475
22 files changed
+23
-60
No files matched your search
@@ -3,6 +3,7 @@
|
||||
"./public",
|
||||
],
|
||||
"compilerOptions": {
|
||||
"jsx": "react",
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"target": "ES6",
|
||||
"baseUrl": ".",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
})();
|
||||
Reference in new issue
Block a user