]> source.dussan.org Git - gitea.git/commit
Remove jQuery import from some files (#32512)
authorwxiaoguang <wxiaoguang@gmail.com>
Thu, 14 Nov 2024 18:48:41 +0000 (02:48 +0800)
committerGitHub <noreply@github.com>
Thu, 14 Nov 2024 18:48:41 +0000 (02:48 +0800)
commit249e67672aea8a5a0ed73bedc655f9dcd37437ea
tree4721d0d41d03bdbc54c88790efc26145bcf72cbd
parent98d9a71ffe510da0e10d042d8f87a348022aca87
Remove jQuery import from some files (#32512)

Many files do not directly depend on jQuery now.

To clarify the usage: use `fomanticQuery` to operate Fomantic
components.

Then developers could focus on removing the remaining jQuery usages by
searching `import $` globally.

21 files now:

```
./components/RepoBranchTagSelector.vue:3:import $ from 'jquery';
./features/admin/common.ts:1:import $ from 'jquery';
./features/admin/emails.ts:1:import $ from 'jquery';
./features/common-button.ts:1:import $ from 'jquery';
./features/comp/ComboMarkdownEditor.ts:3:import $ from 'jquery'; (I am working on it, there will be a new PR)
./features/comp/LabelEdit.ts:1:import $ from 'jquery';
./features/notification.ts:1:import $ from 'jquery';
./features/org-team.ts:1:import $ from 'jquery';
./features/repo-code.ts:1:import $ from 'jquery';
./features/repo-common.ts:1:import $ from 'jquery';
./features/repo-diff.ts:1:import $ from 'jquery';
./features/repo-editor.ts:1:import $ from 'jquery';
./features/repo-issue-content.ts:1:import $ from 'jquery';
./features/repo-issue-list.ts:1:import $ from 'jquery';
./features/repo-issue-sidebar.ts:1:import $ from 'jquery';
./features/repo-issue.ts:1:import $ from 'jquery';
./features/repo-legacy.ts:1:import $ from 'jquery';
./features/repo-new.ts:1:import $ from 'jquery';
./features/repo-projects.ts:1:import $ from 'jquery';
./features/repo-settings.ts:1:import $ from 'jquery';
./features/repo-template.ts:1:import $ from 'jquery';
```
web_src/js/components/DashboardRepoList.vue
web_src/js/components/RepoContributors.vue
web_src/js/features/citation.ts
web_src/js/features/common-form.ts
web_src/js/features/comp/ConfirmModal.ts
web_src/js/features/comp/ReactionSelector.ts
web_src/js/features/comp/SearchUserBox.ts
web_src/js/features/repo-branch.ts
web_src/js/features/repo-graph.ts
web_src/js/features/repo-home.ts
web_src/js/vendor/jquery.are-you-sure.ts