mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	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>
This commit is contained in:
		@@ -32,17 +32,14 @@ function initTagNameEditor() {
 | 
			
		||||
 | 
			
		||||
  document.getElementById('tag-name').addEventListener('keyup', (e) => {
 | 
			
		||||
    const value = e.target.value;
 | 
			
		||||
    const tagHelper = document.getElementById('tag-helper');
 | 
			
		||||
    if (existingTags.includes(value)) {
 | 
			
		||||
      // If the tag already exists, hide the target branch selector.
 | 
			
		||||
      hideElem('#tag-target-selector');
 | 
			
		||||
      document.getElementById('tag-helper').innerText = existingTagHelperText;
 | 
			
		||||
      tagHelper.textContent = existingTagHelperText;
 | 
			
		||||
    } else {
 | 
			
		||||
      showElem('#tag-target-selector');
 | 
			
		||||
      if (value) {
 | 
			
		||||
        document.getElementById('tag-helper').innerText = newTagHelperText;
 | 
			
		||||
      } else {
 | 
			
		||||
        document.getElementById('tag-helper').innerText = defaultTagHelperText;
 | 
			
		||||
      }
 | 
			
		||||
      tagHelper.textContent = value ? newTagHelperText : defaultTagHelperText;
 | 
			
		||||
    }
 | 
			
		||||
  });
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user