mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -42,14 +42,14 @@ export function firstStartDateAfterDate(inputDate: Date): number { | ||||
|   return resultDate.valueOf(); | ||||
| } | ||||
|  | ||||
| type DayData = { | ||||
| export type DayData = { | ||||
|   week: number, | ||||
|   additions: number, | ||||
|   deletions: number, | ||||
|   commits: number, | ||||
| } | ||||
|  | ||||
| export function fillEmptyStartDaysWithZeroes(startDays: number[], data: DayData): DayData[] { | ||||
| export function fillEmptyStartDaysWithZeroes(startDays: number[], data: DayData[]): DayData[] { | ||||
|   const result = {}; | ||||
|  | ||||
|   for (const startDay of startDays) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Anbraten
					Anbraten