improve readme, load instance list from local file

This commit is contained in:
Felix 2020-02-09 01:47:05 +01:00
parent c4609c2d30
commit d014eaa33e
3 changed files with 55 additions and 1 deletions

View file

@ -3,12 +3,14 @@
## Dev
```
$ yarn install --pure-lockfile
$ npm run serve
```
## Build for production
```
$ yarn install --pure-lockfile
$ npm run build
```

51
public/instances.json Normal file
View file

@ -0,0 +1,51 @@
{
"total": 1,
"data": [
{
"id": 1,
"host": "peertube.social",
"name": "Peertube.social",
"shortDescription": "Peertube instance for leftist and non-commercial content. Unlimited uploads (up to 500 MB per day)",
"version": "2.0.0",
"signupAllowed": false,
"userVideoQuota": -1,
"categories": [],
"languages": [],
"autoBlacklistUserVideosEnabled": false,
"defaultNSFWPolicy": "do_not_list",
"isNSFW": false,
"totalUsers": 4,
"totalVideos": 10282,
"totalLocalVideos": 8,
"totalInstanceFollowers": 10,
"totalInstanceFollowing": 64,
"supportsIPv6": true,
"country": "US",
"health": 100,
"createdAt": "2020-02-08T17:52:18.386Z"
},
{
"id": 1,
"host": "vidcommons.org",
"name": "The VidCommons Project",
"shortDescription": "A PeerTube instance dedicated to media licensed under the Creative Commons and Public Domain.",
"version": "2.0.0",
"signupAllowed": false,
"userVideoQuota": -1,
"categories": [],
"languages": [],
"autoBlacklistUserVideosEnabled": false,
"defaultNSFWPolicy": "do_not_list",
"isNSFW": false,
"totalUsers": 4,
"totalVideos": 10282,
"totalLocalVideos": 8,
"totalInstanceFollowers": 10,
"totalInstanceFollowing": 64,
"supportsIPv6": true,
"country": "US",
"health": 100,
"createdAt": "2020-02-08T17:52:18.386Z"
}
]
}

View file

@ -501,7 +501,8 @@
params
}
axios('https://instances.joinpeertube.org/api/v1/instances', options)
// TODO: need to figure out our own domain
axios('http://localhost:8080/instances.json', options)
.then(response => {
this.instances = this.shuffle(response.data.data)