diff options
author | silverwind <me@silverwind.io> | 2023-11-06 22:14:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-06 21:14:32 +0000 |
commit | abd79ddebfa72e817d2eb3159e79b0d18b07263f (patch) | |
tree | 35c3c9e1a128bd34264f4ded7aca059ef27b3921 /web_src/js | |
parent | c823af26dbdd631b17bcd8c3f249e44d8adc4708 (diff) | |
download | gitea-abd79ddebfa72e817d2eb3159e79b0d18b07263f.tar.gz gitea-abd79ddebfa72e817d2eb3159e79b0d18b07263f.zip |
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
Diffstat (limited to 'web_src/js')
-rw-r--r-- | web_src/js/components/DashboardRepoList.vue | 1 | ||||
-rw-r--r-- | web_src/js/features/common-global.js | 1 | ||||
-rw-r--r-- | web_src/js/features/comp/ImagePaste.js | 1 | ||||
-rw-r--r-- | web_src/js/features/file-fold.js | 1 | ||||
-rw-r--r-- | web_src/js/features/org-team.js | 1 | ||||
-rw-r--r-- | web_src/js/features/pull-view-file.js | 3 | ||||
-rw-r--r-- | web_src/js/features/repo-editor.js | 1 | ||||
-rw-r--r-- | web_src/js/features/repo-findfile.js | 1 | ||||
-rw-r--r-- | web_src/js/features/repo-issue.js | 2 | ||||
-rw-r--r-- | web_src/js/features/repo-legacy.js | 2 | ||||
-rw-r--r-- | web_src/js/features/repo-settings.js | 1 |
11 files changed, 0 insertions, 15 deletions
diff --git a/web_src/js/components/DashboardRepoList.vue b/web_src/js/components/DashboardRepoList.vue index f7cea32fb6..6f742bbea0 100644 --- a/web_src/js/components/DashboardRepoList.vue +++ b/web_src/js/components/DashboardRepoList.vue @@ -210,7 +210,6 @@ const sfc = { this.searchRepos(); }, - changePage(page) { this.page = page; if (this.page > this.finalPage) { diff --git a/web_src/js/features/common-global.js b/web_src/js/features/common-global.js index 2d8289d4e3..c00c06c0cc 100644 --- a/web_src/js/features/common-global.js +++ b/web_src/js/features/common-global.js @@ -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')) { diff --git a/web_src/js/features/comp/ImagePaste.js b/web_src/js/features/comp/ImagePaste.js index cae42f3d5f..27abcfe56f 100644 --- a/web_src/js/features/comp/ImagePaste.js +++ b/web_src/js/features/comp/ImagePaste.js @@ -90,7 +90,6 @@ class CodeMirrorEditor { } } - const uploadClipboardImage = async (editor, dropzone, e) => { const $dropzone = $(dropzone); const uploadUrl = $dropzone.attr('data-upload-url'); diff --git a/web_src/js/features/file-fold.js b/web_src/js/features/file-fold.js index 8321b9b19e..3efefaf339 100644 --- a/web_src/js/features/file-fold.js +++ b/web_src/js/features/file-fold.js @@ -17,4 +17,3 @@ export function setFileFolding(fileContentBox, foldArrow, newFold) { export function invertFileFolding(fileContentBox, foldArrow) { setFileFolding(fileContentBox, foldArrow, fileContentBox.getAttribute('data-folded') !== 'true'); } - diff --git a/web_src/js/features/org-team.js b/web_src/js/features/org-team.js index 957dce02d8..6ae3a90f4d 100644 --- a/web_src/js/features/org-team.js +++ b/web_src/js/features/org-team.js @@ -15,7 +15,6 @@ export function initOrgTeamSettings() { }); } - export function initOrgTeamSearchRepoBox() { const $searchRepoBox = $('#search-repo-box'); $searchRepoBox.search({ diff --git a/web_src/js/features/pull-view-file.js b/web_src/js/features/pull-view-file.js index 86b65f68cf..90881ee989 100644 --- a/web_src/js/features/pull-view-file.js +++ b/web_src/js/features/pull-view-file.js @@ -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() { } }); } - - diff --git a/web_src/js/features/repo-editor.js b/web_src/js/features/repo-editor.js index c48c3fdfde..f00f817223 100644 --- a/web_src/js/features/repo-editor.js +++ b/web_src/js/features/repo-editor.js @@ -60,7 +60,6 @@ function initEditorForm() { initEditDiffTab($('.repository .edit.form')); } - function getCursorPosition($e) { const el = $e.get(0); let pos = 0; diff --git a/web_src/js/features/repo-findfile.js b/web_src/js/features/repo-findfile.js index 078c822aa2..158732acc2 100644 --- a/web_src/js/features/repo-findfile.js +++ b/web_src/js/features/repo-findfile.js @@ -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. diff --git a/web_src/js/features/repo-issue.js b/web_src/js/features/repo-issue.js index 2cc0730af6..d995b56a55 100644 --- a/web_src/js/features/repo-issue.js +++ b/web_src/js/features/repo-issue.js @@ -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'); diff --git a/web_src/js/features/repo-legacy.js b/web_src/js/features/repo-legacy.js index 8b3b7b5c12..08fe21190a 100644 --- a/web_src/js/features/repo-legacy.js +++ b/web_src/js/features/repo-legacy.js @@ -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(); diff --git a/web_src/js/features/repo-settings.js b/web_src/js/features/repo-settings.js index dc2240c7c5..74cc308354 100644 --- a/web_src/js/features/repo-settings.js +++ b/web_src/js/features/repo-settings.js @@ -66,7 +66,6 @@ export function initRepoSettingSearchTeamBox() { }); } - export function initRepoSettingGitHook() { if ($('.edit.githook').length === 0) return; const filename = document.querySelector('.hook-filename').textContent; |