]> source.dussan.org Git - gitea.git/commit
Migrate vue components to setup (#32329)
authorAnbraten <6918444+anbraten@users.noreply.github.com>
Mon, 28 Oct 2024 20:15:05 +0000 (21:15 +0100)
committerGitHub <noreply@github.com>
Mon, 28 Oct 2024 20:15:05 +0000 (20:15 +0000)
commit348d1d0f322ca57c459acd902f54821d687ca804
tree442043faa7de26108abd321a34d646afacf66d0d
parenta920fcfd91b1d77cee8bf1143334cba1582b8c5c
Migrate vue components to setup (#32329)

Migrated a handful Vue components to the `setup` syntax using
composition api as it has better Typescript support and is becoming the
new default in the Vue ecosystem.

- [x] ActionRunStatus.vue
- [x] ActivityHeatmap.vue
- [x] ContextPopup.vue
- [x] DiffFileList.vue
- [x] DiffFileTree.vue
- [x] DiffFileTreeItem.vue
- [x] PullRequestMergeForm.vue
- [x] RepoActivityTopAuthors.vue
- [x] RepoCodeFrequency.vue
- [x] RepoRecentCommits.vue
- [x] ScopedAccessTokenSelector.vue

Left some larger components untouched for now to not go to crazy in this
single PR:
- [ ] DiffCommitSelector.vue
- [ ] RepoActionView.vue
- [ ] RepoContributors.vue
- [ ] DashboardRepoList.vue
- [ ] RepoBranchTagSelector.vue
15 files changed:
web_src/js/components/ActionRunStatus.vue
web_src/js/components/ActivityHeatmap.vue
web_src/js/components/ContextPopup.vue
web_src/js/components/DiffFileList.vue
web_src/js/components/DiffFileTree.vue
web_src/js/components/DiffFileTreeItem.vue
web_src/js/components/PullRequestMergeForm.vue
web_src/js/components/RepoActivityTopAuthors.vue
web_src/js/components/RepoCodeFrequency.vue
web_src/js/components/RepoRecentCommits.vue
web_src/js/components/ScopedAccessTokenSelector.vue
web_src/js/features/repo-common.ts
web_src/js/index.ts
web_src/js/types.ts
web_src/js/utils/time.ts