meteorite

$(window).scroll(…) is running even if the template is destroyed in meteor

怎甘沉沦 提交于 2020-05-16 06:06:25
问题 I have two separate template and in both template(rendered) i am doing $(window).scroll() but however go to one template another, the $(window).scroll() is running from both, previous as well as current template. Code Snippets as below: dashboard1.js Template.dashboard1.rendered = function(){ $(window).scroll(function() { console.log('dashboard1 scroll'); //... doing pagination and sticky element for dashboard1 }); } Template.dashboard1.destroyed = function(){ console.log('dashboard1

Mongorestore “auth fails” at deployed app at meteor.com

此生再无相见时 提交于 2020-02-24 12:31:19
问题 I received the information from my deployed app by using the command meteor mongo -url bhedir.meteor.com I then took the response and used the info for my mongorestore -u client -p meteorinfo - h meteorinfo -d bhedir_meteor_com meteordump/meteor however, I keep getting the following error: assertion: 18 { code: 18, ok: 0.0, errmsg: "auth fails" } I should note that I have several meteorite packages included but I don't see how that would affect this. Also, I've done this before, granted not

How to use webshot with meteor

自古美人都是妖i 提交于 2020-01-17 03:06:08
问题 I've installed webshot package and meteor webshot smart package from: https://github.com/TimHeckel/meteor-webshot In the directory pacages/webshot/lib/webshot.js there is definition of WEBSHOT object. In the default meteor application I want to use this object to get the snapshot as show in the second step from the link above: Template.hello.events({ 'click input' : function () { var _image = "myscreenshot.png"; var _res = WEBSHOT.snap("http://google.com", "public/exports~/" + _image, {

Is there a way to get a GUI representation of Mini Mongo?

青春壹個敷衍的年華 提交于 2020-01-15 04:39:05
问题 I'm learning about Meteor at the moment. Really impressed with the vision of the framework. Meteor retains data on the client side with "Mini Mongo" (http://www.quora.com/Meteor-web-framework/How-does-Meteors-Minimongo-work) - an in browser version of Mongo DB. I've connected Robomongo to the server side DB to surf it with a GUI, and I was wondering if there was a way to get a GUI representation of Mini Mongo. A Chrome dev tools hack perhaps? 回答1: There is a meteorite package developed in one

MeteorJS: Users collection how to expose new field

落花浮王杯 提交于 2020-01-11 10:57:11
问题 I have added new field in user collection but when I access it in the client side Meteor.user().cart ( cart is my new field). Its undefined. How can expose new field (cart) so that it can be access in the client? 回答1: The easiest way is to add a null publisher which will automatically send the data without the need for a subscription. Be sure to limit the fields to only the ones you need. Meteor.publish(null, function() { return Meteor.users.find(this.userId, {fields: {cart: 1}}); }); 来源:

datatables are not updating in meteorjs

瘦欲@ 提交于 2020-01-06 15:14:05
问题 I am working on an application using meteorjs. I am totally new to meteor. In my application I am using dataTables with meteor for shorting , pagination and searching. This is my template code <template name="questions"> <div class="col-md-3"> {{#constant}} <table class="table table-striped table-bordered table-condensed table-hover listing" id="content_listing-table"> <thead> <tr> <th>Questions</th> </tr> </thead> <tbody> {{#each questions}} <tr> <td> <a href="#" data-id={{_id}} class="edit"

Understanding error message from Meteor.js: Error: EACCES, permission denied

依然范特西╮ 提交于 2020-01-01 17:11:33
问题 My meteor.js application is crashing. I am getting the following error. It appears that the error is not in my application code. I would appreciate if someone could take a look at the following message and let me know how I could get rid of this error. Error Message Your application is crashing. Waiting for file change. => Modified -- restarting. => Errors prevented startup: Exception while bundling application: Error: EACCES, permission denied '/Users/username/Dropbox/LearnSoftware_and_Math

Deploy meteor to own domain

 ̄綄美尐妖づ 提交于 2019-12-28 13:37:39
问题 I've been trying to deploy my meteor app onto my subdomain (meteor.youhock.sg) but it doesn't seem to be working. I've tried the steps stated on their documentations such as setting up subdomain dns zone to origin.meteor.com and mrt deploy meteor.youhock.sg Am I missing something? Thanks in advance 回答1: You can only use mrt deploy onto *.meteor.com. If you want to continue using their servers, do a CNAME to the subdomain you hosted. From the docs: You can deploy to any available name under

return values from server side meteor methods

柔情痞子 提交于 2019-12-25 07:58:23
问题 Here is my code, googleContacts:function() { var opts= { email: Meteor.user().services.google.email, consumerKey: "xxxxxxxx", consumerSecret: "xxxxxxxxxx", token: Meteor.user().services.google.accessToken, refreshToken: Meteor.user().services.google.refreshToken}; gcontacts = new GoogleContacts(opts); gcontacts.refreshAccessToken(opts.refreshToken, function (err, accessToken) { if(err) { console.log ('gcontact.refreshToken, ', err); return false; } else { console.log ('gcontact.access token

Instaling meteorite

霸气de小男生 提交于 2019-12-23 18:40:25
问题 I'm new, forgive me. I'm trying to install meteorite on my new Linux machine. When attempting to run the install command (with or without root access) I recive this error message: npm http GET https://registry.npmjs.org/meteorite npm ERR! Error: failed to fetch from registry: meteorite<br> npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12<br> npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)<br> npm ERR! at Request._callback (/usr/share/npm/lib