Skip to content

Commit

Permalink
refactor: use gcp img instead of inline img to reduce package size
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhong committed May 28, 2024
1 parent adb9233 commit cbf3e64
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
assets/registry/*
assets/*
networks/*
.github/*
.parcel-cache/*
api.json
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

This repo contains info of projects used in [Subscan parachain module](https://rococo.subscan.io/auction_board) based on [@polkadot/apps-config](https://github.com/polkadot-js/apps/tree/master/packages/apps-config).

## Changelog

### 2.2.0

Refactor: use gcp img instead of inline img to reduce package size

## Notice

- The data will be displayed in Subscan([EG-1](https://kusama.subscan.io/parachain/2000?tab=project), [EG-2](https://kusama.subscan.io/crowdloan/2012-3?tab=project)), please be sure to fill in the real information. It is recommended to use the github account of the project member to submit.
Expand Down
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ kusamaJsons.keys().forEach((k) => {
const imageName = logoPaths[logoPaths.length - 1];
kusamaParachains[
c.data.ParaID
].logo = require(`./assets/images/${imageName}`);
].logo = `https://gcs.subscan.io/projects-info/images/${imageName}`;
} catch {}
}
});
Expand All @@ -25,7 +25,7 @@ polkadotJsons.keys().forEach((k) => {
const imageName = logoPaths[logoPaths.length - 1];
polkadotParachains[
c.data.ParaID
].logo = require(`./assets/images/${imageName}`);
].logo = `https://gcs.subscan.io/projects-info/images/${imageName}`;
} catch {}
}
});
Expand All @@ -41,7 +41,7 @@ rococoJsons.keys().forEach((k) => {
const imageName = logoPaths[logoPaths.length - 1];
rococoParachains[
c.data.ParaID
].logo = require(`./assets/images/${imageName}`);
].logo = `https://gcs.subscan.io/projects-info/images/${imageName}`;
} catch {}
}
});
Expand All @@ -57,7 +57,7 @@ westendJsons.keys().forEach((k) => {
const imageName = logoPaths[logoPaths.length - 1];
westendParachains[
c.data.ParaID
].logo = require(`./assets/images/${imageName}`);
].logo = `https://gcs.subscan.io/projects-info/images/${imageName}`;
} catch {}
}
});
Expand Down

0 comments on commit cbf3e64

Please sign in to comment.