mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 20:36:07 +01:00 
			
		
		
		
	Update JS dependencies (#27922)
- Update all JS dependencies minus @mcaptcha/vanilla-glue (unsolved error, see https://github.com/mCaptcha/glue/issues/65) - Migrate deprecated eslint rules to `@stylistic/eslint-plugin-js` - Enable and autofix `@stylistic/js/no-multiple-empty-lines` - Regenerate poetry.lock with latest poetry - Tested Mermaid, Swagger, Citation, Vue
This commit is contained in:
		@@ -210,7 +210,6 @@ const sfc = {
 | 
			
		||||
      this.searchRepos();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    changePage(page) {
 | 
			
		||||
      this.page = page;
 | 
			
		||||
      if (this.page > this.finalPage) {
 | 
			
		||||
 
 | 
			
		||||
@@ -46,7 +46,6 @@ export function initFootLanguageMenu() {
 | 
			
		||||
  $('.language-menu a[lang]').on('click', linkLanguageAction);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
export function initGlobalEnterQuickSubmit() {
 | 
			
		||||
  $(document).on('keydown', '.js-quick-submit', (e) => {
 | 
			
		||||
    if (((e.ctrlKey && !e.altKey) || e.metaKey) && (e.key === 'Enter')) {
 | 
			
		||||
 
 | 
			
		||||
@@ -90,7 +90,6 @@ class CodeMirrorEditor {
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const uploadClipboardImage = async (editor, dropzone, e) => {
 | 
			
		||||
  const $dropzone = $(dropzone);
 | 
			
		||||
  const uploadUrl = $dropzone.attr('data-upload-url');
 | 
			
		||||
 
 | 
			
		||||
@@ -17,4 +17,3 @@ export function setFileFolding(fileContentBox, foldArrow, newFold) {
 | 
			
		||||
export function invertFileFolding(fileContentBox, foldArrow) {
 | 
			
		||||
  setFileFolding(fileContentBox, foldArrow, fileContentBox.getAttribute('data-folded') !== 'true');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,6 @@ export function initOrgTeamSettings() {
 | 
			
		||||
  });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
export function initOrgTeamSearchRepoBox() {
 | 
			
		||||
  const $searchRepoBox = $('#search-repo-box');
 | 
			
		||||
  $searchRepoBox.search({
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,6 @@ const viewedCheckboxSelector = '.viewed-file-form'; // Selector under which all
 | 
			
		||||
const expandFilesBtnSelector = '#expand-files-btn';
 | 
			
		||||
const collapseFilesBtnSelector = '#collapse-files-btn';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
// Refreshes the summary of viewed files if present
 | 
			
		||||
// The data used will be window.config.pageData.prReview.numberOf{Viewed}Files
 | 
			
		||||
function refreshViewedFilesSummary() {
 | 
			
		||||
@@ -93,5 +92,3 @@ export function initExpandAndCollapseFilesButton() {
 | 
			
		||||
    }
 | 
			
		||||
  });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -60,7 +60,6 @@ function initEditorForm() {
 | 
			
		||||
  initEditDiffTab($('.repository .edit.form'));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
function getCursorPosition($e) {
 | 
			
		||||
  const el = $e.get(0);
 | 
			
		||||
  let pos = 0;
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,6 @@ const threshold = 50;
 | 
			
		||||
let files = [];
 | 
			
		||||
let $repoFindFileInput, $repoFindFileTableBody, $repoFindFileNoResult;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
// return the case-insensitive sub-match result as an array:  [unmatched, matched, unmatched, matched, ...]
 | 
			
		||||
// res[even] is unmatched, res[odd] is matched, see unit tests for examples
 | 
			
		||||
// argument subLower must be a lower-cased string.
 | 
			
		||||
 
 | 
			
		||||
@@ -308,7 +308,6 @@ export function initRepoIssueReferenceRepositorySearch() {
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
export function initRepoIssueWipTitle() {
 | 
			
		||||
  $('.title_wip_desc > a').on('click', (e) => {
 | 
			
		||||
    e.preventDefault();
 | 
			
		||||
@@ -552,7 +551,6 @@ export function initRepoIssueWipToggle() {
 | 
			
		||||
  });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
export function initRepoIssueTitleEdit() {
 | 
			
		||||
  // Edit issue title
 | 
			
		||||
  const $issueTitle = $('#issue-title');
 | 
			
		||||
 
 | 
			
		||||
@@ -301,7 +301,6 @@ export function initRepoCommentForm() {
 | 
			
		||||
  selectItem('.select-assignee', '#assignee_id');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
async function onEditContent(event) {
 | 
			
		||||
  event.preventDefault();
 | 
			
		||||
 | 
			
		||||
@@ -539,7 +538,6 @@ export function initRepository() {
 | 
			
		||||
    initRepoDiffConversationNav();
 | 
			
		||||
    initRepoIssueReferenceIssue();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    initRepoIssueCommentDelete();
 | 
			
		||||
    initRepoIssueDependencyDelete();
 | 
			
		||||
    initRepoIssueCodeCommentCancel();
 | 
			
		||||
 
 | 
			
		||||
@@ -66,7 +66,6 @@ export function initRepoSettingSearchTeamBox() {
 | 
			
		||||
  });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
export function initRepoSettingGitHook() {
 | 
			
		||||
  if ($('.edit.githook').length === 0) return;
 | 
			
		||||
  const filename = document.querySelector('.hook-filename').textContent;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user