[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: show "none" if package has no license (#656)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

authored by

Nadja Rømer Hesselbjerg
autofix-ci[bot]
and committed by
GitHub
cdd8d196 4c545ba4

+7 -4
+3 -2
app/pages/[...package].vue
··· 735 735 <dl 736 736 class="grid grid-cols-2 sm:grid-cols-11 gap-3 sm:gap-4 py-4 sm:py-6 mt-4 sm:mt-6 border-t border-b border-border" 737 737 > 738 - <div v-if="pkg.license" class="space-y-1 sm:col-span-2"> 738 + <div class="space-y-1 sm:col-span-2"> 739 739 <dt class="text-xs text-fg-subtle uppercase tracking-wider"> 740 740 {{ $t('package.stats.license') }} 741 741 </dt> 742 742 <dd class="font-mono text-sm text-fg"> 743 - <LicenseDisplay :license="pkg.license" /> 743 + <LicenseDisplay v-if="pkg.license" :license="pkg.license" /> 744 + <span v-else>{{ $t('package.license.none') }}</span> 744 745 </dd> 745 746 </div> 746 747
+2 -1
i18n/locales/en.json
··· 298 298 "no_types": "No TypeScript types" 299 299 }, 300 300 "license": { 301 - "view_spdx": "View license text on SPDX" 301 + "view_spdx": "View license text on SPDX", 302 + "none": "None" 302 303 }, 303 304 "vulnerabilities": { 304 305 "no_description": "No description available",
+2 -1
lunaria/files/en-US.json
··· 298 298 "no_types": "No TypeScript types" 299 299 }, 300 300 "license": { 301 - "view_spdx": "View license text on SPDX" 301 + "view_spdx": "View license text on SPDX", 302 + "none": "None" 302 303 }, 303 304 "vulnerabilities": { 304 305 "no_description": "No description available",