ui: training description display

This commit is contained in:
undefined committed 2021-08-12 19:17:30 +08:00
1 parent 10bad169cf
commit 0c7745d435
5 files changed
+9 -7

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ function transform(filename) {
return result.outputFiles[0].text;
}
require.extensions['.js'] = function loader(module, filename) {
if (!filename.includes('node_modules')) {
if (!filename.includes('node_modules') && !filename.includes('postcss.config.js')) {
return module._compile(transform(filename), filename);
}
const content = fs.readFileSync(filename, 'utf-8');
+6
View File
@@ -18,4 +18,10 @@ console.log(
/____/
`,
);
window.UiContext = JSON.parse(window.UiContext);
// eslint-disable-next-line
try { __webpack_public_path__ = UiContext.cdn_prefix } catch (e) { }
import('./hydro');
-4
View File
@@ -6,12 +6,8 @@ import PageLoader from 'vj/misc/PageLoader';
import delay from 'vj/utils/delay';
const start = new Date();
window.UiContext = JSON.parse(window.UiContext);
window.UserContext = JSON.parse(window.UserContext);
// eslint-disable-next-line
try { __webpack_public_path__ = UiContext.cdn_prefix } catch (e) { }
function buildSequence(pages, type) {
if (process.env.NODE_ENV !== 'production') {
if (['before', 'after'].indexOf(type) === -1) {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.17.1",
"version": "4.17.2",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",
@@ -9,7 +9,7 @@
{{ tdoc['content'] }}
</div>
<div class="section__body typo">
{{ tdoc['desc']|default('')|markdown|safe }}
{{ tdoc.description|default('')|markdown|safe }}
</div>
</div>
<div class="section">