mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
workspace: update eslint rule (#1027)
This commit is contained in:
1 parent
05c3b8f2bd
commit
cee3c00ddb
150 files changed
+1069
-1043
No files matched your search
@@ -22,7 +22,7 @@ class WikiAboutHandler extends Handler {
|
||||
async get() {
|
||||
let raw = SystemModel.get('ui-default.about') || '';
|
||||
// TODO template engine
|
||||
raw = raw.replace(/{{ name }}/g, this.domain.ui?.name || SystemModel.get('server.name')).trim();
|
||||
raw = raw.replace(/\{\{ name \}\}/g, this.domain.ui?.name || SystemModel.get('server.name')).trim();
|
||||
const lines = raw.split('\n');
|
||||
const sections: { id: string, title: string, content: string }[] = [];
|
||||
for (const line of lines) {
|
||||
@@ -131,6 +131,7 @@ class RichMediaHandler extends Handler {
|
||||
}
|
||||
}
|
||||
|
||||
/* eslint-disable style/quote-props */
|
||||
const fontRange = {
|
||||
'Open Sans': 'Open Sans',
|
||||
'Seravek': 'Seravek',
|
||||
|
||||
Reference in new issue
Block a user