{"size": 780, "ext": "js", "max_stars_repo_path": "lib/tapfuse-instagram-caching-ui.js", "max_stars_repo_name": "TapFuse/instagram-caching-ui", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lib/tapfuse-instagram-caching-ui.js", "max_issues_repo_name": "TapFuse/instagram-caching-ui", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/tapfuse-instagram-caching-ui.js", "max_forks_repo_name": "TapFuse/instagram-caching-ui", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.1395348837, "max_line_length": 83, "alphanum_fraction": 0.6538461538}
//
//      tapfuseInstagramCachingUi: Lifecycle Hooks
//

Template.tapfuseInstagramCachingUi.onCreated(() => {

});

Template.tapfuseInstagramCachingUi.onRendered(() => {

});

//
//      tapfuseInstagramCachingUi: Helpers
//

Template.tapfuseInstagramCachingUi.helpers({
  helper() {
    return '';
  },
});

//
//      tapfuseInstagramCachingUi: Event Handlers
//

Template.tapfuseInstagramCachingUi.events({
  'click .js-cacheButton'(e, t) {
    const options = {
      jobName: 'Cache user photos',
      interval: 'every 2 minutes',
      parameters: {
        username: 'matas.jonys',
      },
    };
    Meteor.call('startCachingUserPhotos', options);
  },
});

Meteor.startup(() => {
  Collection.tpServicesUiTemplates.insert({template: 'tapfuseInstagramCachingUi'});
});
