diff --git a/README.md b/README.md index 2709bc4..93eae3e 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,14 @@ ## Dev ``` +$ yarn install --pure-lockfile $ npm run serve ``` ## Build for production ``` +$ yarn install --pure-lockfile $ npm run build ``` diff --git a/public/instances.json b/public/instances.json new file mode 100644 index 0000000..d8802df --- /dev/null +++ b/public/instances.json @@ -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" + } + ] +} \ No newline at end of file diff --git a/src/components/InstancesList.vue b/src/components/InstancesList.vue index 572a71f..5ea5260 100644 --- a/src/components/InstancesList.vue +++ b/src/components/InstancesList.vue @@ -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)