@@ -37,21 +37,13 @@ const columnToSortKey: Record<string, SortKey> = {
3737 name: ' name' ,
3838 downloads: ' downloads-week' ,
3939 updated: ' updated' ,
40- qualityScore: ' quality' ,
41- popularityScore: ' popularity' ,
42- maintenanceScore: ' maintenance' ,
43- combinedScore: ' score' ,
4440}
4541
4642// Default direction for each column
4743const columnDefaultDirection: Record <string , ' asc' | ' desc' > = {
4844 name: ' asc' ,
4945 downloads: ' desc' ,
5046 updated: ' desc' ,
51- qualityScore: ' desc' ,
52- popularityScore: ' desc' ,
53- maintenanceScore: ' desc' ,
54- combinedScore: ' desc' ,
5547}
5648
5749function isColumnSorted(id : string ): boolean {
@@ -97,10 +89,6 @@ const columnLabels = computed(() => ({
9789 updated: t (' filters.columns.published' ),
9890 maintainers: t (' filters.columns.maintainers' ),
9991 keywords: t (' filters.columns.keywords' ),
100- qualityScore: t (' filters.columns.quality_score' ),
101- popularityScore: t (' filters.columns.popularity_score' ),
102- maintenanceScore: t (' filters.columns.maintenance_score' ),
103- combinedScore: t (' filters.columns.combined_score' ),
10492 security: t (' filters.columns.security' ),
10593 selection: t (' filters.columns.selection' ),
10694}))
@@ -264,38 +252,6 @@ function getColumnLabel(id: ColumnId): string {
264252 {{ getColumnLabel('keywords') }}
265253 </th >
266254
267- <th
268- v-if =" isColumnVisible('qualityScore')"
269- scope =" col"
270- class =" py-3 px-3 text-xs text-start text-fg-muted font-mono font-medium uppercase tracking-wider whitespace-nowrap select-none text-end"
271- >
272- {{ getColumnLabel('qualityScore') }}
273- </th >
274-
275- <th
276- v-if =" isColumnVisible('popularityScore')"
277- scope =" col"
278- class =" py-3 px-3 text-xs text-start text-fg-muted font-mono font-medium uppercase tracking-wider whitespace-nowrap select-none text-end"
279- >
280- {{ getColumnLabel('popularityScore') }}
281- </th >
282-
283- <th
284- v-if =" isColumnVisible('maintenanceScore')"
285- scope =" col"
286- class =" py-3 px-3 text-xs text-start text-fg-muted font-mono font-medium uppercase tracking-wider whitespace-nowrap select-none text-end"
287- >
288- {{ getColumnLabel('maintenanceScore') }}
289- </th >
290-
291- <th
292- v-if =" isColumnVisible('combinedScore')"
293- scope =" col"
294- class =" py-3 px-3 text-xs text-start text-fg-muted font-mono font-medium uppercase tracking-wider whitespace-nowrap select-none text-end"
295- >
296- {{ getColumnLabel('combinedScore') }}
297- </th >
298-
299255 <th
300256 v-if =" isColumnVisible('security')"
301257 scope =" col"
0 commit comments