Skip to content

Commit f2f0d6c

Browse files
committedJun 28, 2018
2.0.0
1 parent be0aca4 commit f2f0d6c

File tree

6 files changed

+1918
-12237
lines changed

6 files changed

+1918
-12237
lines changed
 

‎dist/vue-instagram.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h2 class="subtitle">
2828
</section>
2929

3030
<div class="section container">
31-
<vue-instagram :token="token" :count="5" class="columns is-multiline is-mobile">
31+
<vue-instagram :token="token" :count="6" class="columns is-multiline is-mobile">
3232
<template slot="feeds" slot-scope="props">
3333
<div class="column is-4-desktop is-6-tablet is-6-mobile">
3434
<div class="card">

‎package-lock.json

-11,939
This file was deleted.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-instagram",
3-
"version": "1.3.1",
3+
"version": "2.0.0",
44
"description": "Fetch Instagram feed components based on Vue.",
55
"author": "Kevin Ongko",
66
"main": "dist/vue-instagram.min.js",

‎src/vue-instagram.vue

+8-14
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,17 @@ export default {
3030
required: false
3131
},
3232
33+
/*
34+
* Filter by media type, ex: video, image.
35+
*/
3336
mediaType: {
3437
type: String,
3538
required: false
3639
},
3740
41+
/*
42+
* Filter by tags.
43+
*/
3844
tags: {
3945
type: Array,
4046
default: () => [],
@@ -51,23 +57,11 @@ export default {
5157
5258
data: () => ({
5359
error: '',
54-
feeds: [],
55-
profile: ''
60+
feeds: []
5661
}),
5762
5863
mounted () {
59-
jsonp({
60-
url: 'https://api.instagram.com/v1/users/self',
61-
data: { access_token: this.token },
62-
error: error => { throw error },
63-
complete: response => {
64-
if (response.meta.code === 400) this.error = response.meta
65-
if (response.meta.code === 200) {
66-
this.profile = response.data
67-
this.getUserFeed()
68-
}
69-
}
70-
})
64+
this.getUserFeed()
7165
},
7266
7367
methods: {

‎yarn.lock

+1,907-281
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.