MCPcopy Index your code
hub / github.com/github/awesome-copilot / getCountText

Function getCountText

website/src/scripts/pages/plugins.ts:76–82  ·  view source on GitHub ↗
(resultsCount: number)

Source from the content-addressed store, hash-verified

74}
75
76function getCountText(resultsCount: number): string {
77 if (currentFilters.tags.length === 0) {
78 return `${resultsCount} plugin${resultsCount === 1 ? '' : 's'}`;
79 }
80
81 return `${resultsCount} of ${allItems.length} plugins (filtered by ${currentFilters.tags.length} tag${currentFilters.tags.length === 1 ? '' : 's'})`;
82}
83
84function applyFiltersAndRender(): void {
85 const countEl = document.getElementById('results-count');

Callers 1

applyFiltersAndRenderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected