Skip to content

Commit cbf3e64

Browse files
committed
refactor: use gcp img instead of inline img to reduce package size
1 parent adb9233 commit cbf3e64

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.npmignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
assets/registry/*
1+
assets/*
2+
networks/*
3+
.github/*
4+
.parcel-cache/*
5+
api.json

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
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).
44

5+
## Changelog
6+
7+
### 2.2.0
8+
9+
Refactor: use gcp img instead of inline img to reduce package size
10+
511
## Notice
612

713
- 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.

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ kusamaJsons.keys().forEach((k) => {
99
const imageName = logoPaths[logoPaths.length - 1];
1010
kusamaParachains[
1111
c.data.ParaID
12-
].logo = require(`./assets/images/${imageName}`);
12+
].logo = `https://gcs.subscan.io/projects-info/images/${imageName}`;
1313
} catch {}
1414
}
1515
});
@@ -25,7 +25,7 @@ polkadotJsons.keys().forEach((k) => {
2525
const imageName = logoPaths[logoPaths.length - 1];
2626
polkadotParachains[
2727
c.data.ParaID
28-
].logo = require(`./assets/images/${imageName}`);
28+
].logo = `https://gcs.subscan.io/projects-info/images/${imageName}`;
2929
} catch {}
3030
}
3131
});
@@ -41,7 +41,7 @@ rococoJsons.keys().forEach((k) => {
4141
const imageName = logoPaths[logoPaths.length - 1];
4242
rococoParachains[
4343
c.data.ParaID
44-
].logo = require(`./assets/images/${imageName}`);
44+
].logo = `https://gcs.subscan.io/projects-info/images/${imageName}`;
4545
} catch {}
4646
}
4747
});
@@ -57,7 +57,7 @@ westendJsons.keys().forEach((k) => {
5757
const imageName = logoPaths[logoPaths.length - 1];
5858
westendParachains[
5959
c.data.ParaID
60-
].logo = require(`./assets/images/${imageName}`);
60+
].logo = `https://gcs.subscan.io/projects-info/images/${imageName}`;
6161
} catch {}
6262
}
6363
});

0 commit comments

Comments
 (0)