summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-05-09 04:35:49 +0200
committerGitHub <noreply@github.com>2023-05-09 02:35:49 +0000
commitd5b2bf9044caad9fb473312c4816f6c6caad4698 (patch)
treef6f9d829e86a122bd49ae7268204e680d9088c7e /docs
parent1dd83dbb917d55bd253001646d6743f247a4d98b (diff)
downloadgitea-d5b2bf9044caad9fb473312c4816f6c6caad4698.tar.gz
gitea-d5b2bf9044caad9fb473312c4816f6c6caad4698.zip
Update JS dependencies, add new eslint rules (#24597)
- Update all JS dependencies - Enable new eslint rules, fix issue (some via autofix) - Fix some missed eslint rule renames from [unicorn v25](https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v25.0.0) - Tested Monaco, Katex, Swagger UI --------- Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'docs')
-rw-r--r--docs/assets/js/search.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/assets/js/search.js b/docs/assets/js/search.js
index f731e0b224..4b95b63847 100644
--- a/docs/assets/js/search.js
+++ b/docs/assets/js/search.js
@@ -53,7 +53,7 @@ function doSearch() {
} else {
const para = document.createElement('P');
para.textContent = 'Please enter a word or phrase above';
- document.getElementById('search-results').appendChild(para);
+ document.getElementById('search-results').append(para);
}
}
@@ -85,7 +85,7 @@ function executeSearch(searchQuery) {
} else {
const para = document.createElement('P');
para.textContent = 'No matches found';
- document.getElementById('search-results').appendChild(para);
+ document.getElementById('search-results').append(para);
}
});
}
@@ -128,7 +128,7 @@ function populateResults(result) {
categories: value.item.categories,
snippet
});
- document.getElementById('search-results').appendChild(htmlToElement(output));
+ document.getElementById('search-results').append(htmlToElement(output));
for (const snipvalue of snippetHighlights) {
new Mark(document.getElementById(`summary-${key}`)).mark(snipvalue);