feat: #1408 add local icon repository (#1413)

This commit is contained in:
Manuel
2024-11-04 10:02:54 +01:00
committed by GitHub
parent aec9ec1efd
commit f31ccf2d6a
8 changed files with 39 additions and 10 deletions

View File

@@ -35,11 +35,8 @@ export class GitHubIconRepository extends IconRepository {
.map(({ path, size: sizeInBytes, sha: checksum }) => {
const file = parse(path);
const fileNameWithExtension = file.base;
const imageUrl = new URL(
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
this.repositoryBlobUrlTemplate!.replace("{0}", path).replace("{1}", file.name),
);
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const imageUrl = this.repositoryBlobUrlTemplate!.replace("{0}", path).replace("{1}", file.name);
return {
imageUrl,
fileNameWithExtension,