fix: ship every bundled MIT notice and link licenses.txt in About
collect-licenses falls back to the README's License section (only when it carries a copyright line) for packages without a LICENSE file; hash.js and isarray now ship their full notice. The About dialog links /licenses.txt, which was previously reachable only by knowing the URL.
This commit is contained in:
1 parent
6bbf4286c3
commit
c336127006
5 files changed
+87
-7
No files matched your search
@@ -60,6 +60,8 @@
|
||||
</svg>
|
||||
<span>{t().about.viewOnGitHub}</span>
|
||||
</a>
|
||||
|
||||
<a class="licenses" href="licenses.txt" target="_blank" rel="noopener">{t().about.licenses}</a>
|
||||
</div>
|
||||
</dialog>
|
||||
|
||||
@@ -192,4 +194,12 @@
|
||||
border-color: var(--color-primary);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.licenses {
|
||||
font-size: 0.75rem;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
.licenses:hover {
|
||||
color: var(--color-text);
|
||||
}
|
||||
</style>
|
||||
@@ -518,6 +518,7 @@ const de: Messages = {
|
||||
points: ['Free · Open Source · Private by Design'],
|
||||
version: (v) => `Version ${v}`,
|
||||
viewOnGitHub: 'Auf GitHub ansehen',
|
||||
licenses: 'Lizenzen Dritter',
|
||||
},
|
||||
findReplace: {
|
||||
dialogLabel: 'Suchen und ersetzen',
|
||||
|
||||
@@ -524,6 +524,7 @@ const en = {
|
||||
points: ['Free · Open Source · Private by Design'],
|
||||
version: (v: string) => `Version ${v}`,
|
||||
viewOnGitHub: 'View on GitHub',
|
||||
licenses: 'Third-party licenses',
|
||||
},
|
||||
findReplace: {
|
||||
dialogLabel: 'Find and replace',
|
||||
|
||||
Reference in new issue
Block a user