mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: training description display
This commit is contained in:
1 parent
10bad169cf
commit
0c7745d435
5 files changed
+9
-7
No files matched your search
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
@@ -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,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">
|
||||
|
||||
Reference in new issue
Block a user