Skip to content

Commit

Permalink
Restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
robbinjohansson committed May 30, 2018
1 parent 23341be commit d0fbd11
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 30 deletions.
23 changes: 13 additions & 10 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1864,16 +1864,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_

exports.default = {
name: 'vuebbble',
mounted: function mounted() {
this.get();
},
data: function data() {
return {
shots: [],
url: '',
error: ''
};
},

props: {
token: {
Expand All @@ -1886,6 +1876,19 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
required: false
}
},

data: function data() {
return {
shots: [],
url: '',
error: ''
};
},
mounted: function mounted() {
this.get();
},


methods: {
get: function get() {
var _this = this;
Expand Down
23 changes: 13 additions & 10 deletions docs/build/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12902,16 +12902,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_

exports.default = {
name: 'vuebbble',
mounted: function mounted() {
this.get();
},
data: function data() {
return {
shots: [],
url: '',
error: ''
};
},

props: {
token: {
Expand All @@ -12924,6 +12914,19 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
required: false
}
},

data: function data() {
return {
shots: [],
url: '',
error: ''
};
},
mounted: function mounted() {
this.get();
},


methods: {
get: function get() {
var _this = this;
Expand Down
24 changes: 14 additions & 10 deletions src/components/Vuebbble.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,7 @@ import axios from 'axios';
export default {
name: 'vuebbble',
mounted() {
this.get();
},
data() {
return {
shots: [],
url: '',
error: '',
};
},
props: {
token: {
type: String,
Expand All @@ -33,6 +24,19 @@ export default {
required: false,
},
},
data() {
return {
shots: [],
url: '',
error: '',
};
},
mounted() {
this.get();
},
methods: {
get() {
this.url = 'https://api.dribbble.com/v2/user/shots?access_token=' + this.token + '&per_page=' + this.count;
Expand Down

0 comments on commit d0fbd11

Please sign in to comment.