diff options
author | silverwind <me@silverwind.io> | 2023-05-09 04:35:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 02:35:49 +0000 |
commit | d5b2bf9044caad9fb473312c4816f6c6caad4698 (patch) | |
tree | f6f9d829e86a122bd49ae7268204e680d9088c7e /web_src/js/components/RepoActionView.vue | |
parent | 1dd83dbb917d55bd253001646d6743f247a4d98b (diff) | |
download | gitea-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 'web_src/js/components/RepoActionView.vue')
-rw-r--r-- | web_src/js/components/RepoActionView.vue | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/web_src/js/components/RepoActionView.vue b/web_src/js/components/RepoActionView.vue index 3d44f3ef47..2c51fbe5d1 100644 --- a/web_src/js/components/RepoActionView.vue +++ b/web_src/js/components/RepoActionView.vue @@ -175,8 +175,8 @@ const sfc = { const elJobLogList = document.createElement('div'); elJobLogList.classList.add('job-log-list'); - elJobLogGroup.appendChild(elJobLogGroupSummary); - elJobLogGroup.appendChild(elJobLogList); + elJobLogGroup.append(elJobLogGroupSummary); + elJobLogGroup.append(elJobLogList); el._stepLogsActiveContainer = elJobLogList; }, // end a log group @@ -219,15 +219,15 @@ const sfc = { const lineNumber = document.createElement('div'); lineNumber.className = 'line-num'; - lineNumber.innerText = line.index; - div.appendChild(lineNumber); + lineNumber.textContent = line.index; + div.append(lineNumber); // TODO: Support displaying time optionally const logMessage = document.createElement('div'); logMessage.className = 'log-msg'; logMessage.innerHTML = ansiLogToHTML(line.message); - div.appendChild(logMessage); + div.append(logMessage); return div; }, |