Merge tag 'v2.0.0' into develop

Migrate to Angular
merge-requests/3/merge
Nato Boram 2019-12-03 01:40:51 -05:00
commit 53cad748e2
5 changed files with 16 additions and 8 deletions

View File

@ -6,12 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
## [Unreleased]
Now based on Angular!
### Added
* GitLab Pages
### Changed
### Deprecated
@ -22,6 +18,16 @@ Now based on Angular!
### Security
## [2.0.0] - 2019-12-03
Now based on Angular!
Tests were done with `ipfs-npm` : They weren't successful. `ipfs-css` is only minimally used.
### Added
* GitLab Pages - <https://natoboram.gitlab.io/public-gateway-cacher/>
## [1.0.0] - 2019-11-28
This version is a fork of [github.com/ipfs/public-gateway-checker](https://github.com/ipfs/public-gateway-checker).

View File

@ -4,7 +4,7 @@ Cache a specific hash on a bunch of public gateways.
**Note :** All of these (except gateway.ipfs.io and ipfs.io) are hosted by third-parties and should be treated as such.
You can view this website on [IPFS](https://bafybeifqneiiwgcejnisxd6vjic2xrmfieffldiqembuagflb2xaup772a.cf-ipfs.com).
You can view this website on [IPFS](https://bafybeibjf6z3sxavox6uahfl4vogkuenimlpvn4eghdv6mtsm55rpnalve.cf-ipfs.com).
Here's a screenshot :

View File

@ -1,6 +1,6 @@
{
"name": "public-gateway-cacher",
"version": "0.0.0",
"version": "2.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve --ssl",
@ -11,7 +11,8 @@
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"yarn": "ipfs-yarn"
"yarn": "ipfs-yarn",
"publish:ipfs": "yarn run build:ipfs; ipfs add --recursive --chunker=rabin --cid-version=1 dist/angular"
},
"private": false,
"dependencies": {

View File

@ -51,6 +51,7 @@ export class PagesComponent implements OnInit {
this.dataSource.data = [];
this.matTable.renderRows();
console.clear();
this.gateways.forEach(gateway => {
this.subscriptions.push(

View File

@ -16,7 +16,7 @@ export class GatewayService {
return this.http.get<string[]>(
environment.base_href && environment.base_href !== '/'
? `${environment.base_href}/assets/json/gateways.json`
: '/assets/json/gateways.json'
: `${document.querySelector('base').href}/assets/json/gateways.json`
);
}