File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import type { CompareResponse , FileChange } from ' #shared/types'
3- import { getFileIcon } from ' ~/utils/file-icons'
43
54definePageMeta ({
65 name: ' diff' ,
@@ -136,17 +135,6 @@ function getSemverBadgeClass(semverDiff: string | null | undefined): string {
136135 }
137136}
138137
139- function getChangeIcon(type : FileChange [' type' ]): string {
140- switch (type ) {
141- case ' added' :
142- return ' i-carbon-add-alt text-green-500'
143- case ' removed' :
144- return ' i-carbon-subtract-alt text-red-500'
145- case ' modified' :
146- return ' i-carbon-edit text-yellow-500'
147- }
148- }
149-
150138const fromVersionUrlPattern = computed (() => {
151139 return ` /diff/${packageName .value }/v/{version}...${toVersion .value } `
152140})
You can’t perform that action at this time.
0 commit comments