1
0
Fork 0
forked from forgejo/forgejo

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:
silverwind 2023-11-06 22:14:32 +01:00 committed by GitHub
parent c823af26db
commit abd79ddebf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 733 additions and 618 deletions

View file

@ -210,7 +210,6 @@ const sfc = {
this.searchRepos();
},
changePage(page) {
this.page = page;
if (this.page > this.finalPage) {

View file

@ -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')) {

View file

@ -90,7 +90,6 @@ class CodeMirrorEditor {
}
}
const uploadClipboardImage = async (editor, dropzone, e) => {
const $dropzone = $(dropzone);
const uploadUrl = $dropzone.attr('data-upload-url');

View file

@ -17,4 +17,3 @@ export function setFileFolding(fileContentBox, foldArrow, newFold) {
export function invertFileFolding(fileContentBox, foldArrow) {
setFileFolding(fileContentBox, foldArrow, fileContentBox.getAttribute('data-folded') !== 'true');
}

View file

@ -15,7 +15,6 @@ export function initOrgTeamSettings() {
});
}
export function initOrgTeamSearchRepoBox() {
const $searchRepoBox = $('#search-repo-box');
$searchRepoBox.search({

View file

@ -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() {
}
});
}

View file

@ -60,7 +60,6 @@ function initEditorForm() {
initEditDiffTab($('.repository .edit.form'));
}
function getCursorPosition($e) {
const el = $e.get(0);
let pos = 0;

View file

@ -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.

View file

@ -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');

View file

@ -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();

View file

@ -66,7 +66,6 @@ export function initRepoSettingSearchTeamBox() {
});
}
export function initRepoSettingGitHook() {
if ($('.edit.githook').length === 0) return;
const filename = document.querySelector('.hook-filename').textContent;