meteor

meteor on armv6l (raspberry pi)

*爱你&永不变心* 提交于 2019-12-21 09:33:48
问题 I like the look of meteor, never tried it before, thought it would make a great platform for a web dashboard on my raspberry pi. Tried the recommended installer and got this: $ curl install.meteor.com | /bin/sh Unable to install Meteor on unsupported architecture: armv6l Installation failed. Well, I'm not gonna take that lying down! Am going to try and manually install it, but has anyone tried/failed/succeeded already? Any tips? 回答1: You can find a fork of meteor at github called Meteor

Meteor/React - How to wait for Meteor.user()

你离开我真会死。 提交于 2019-12-21 09:26:36
问题 I'm struggling to figure out how to wait for the Meteor.user() subscription in a react component. I know the user is logged in because Meteor.userId() returns the _id , but trying to access the email address show Meteor.user() returns undefined. I assume because it's not available just yet. Alas, since Meteor.user() isn't a publication I manually subscribe to, I'm not sure how to wait for it in a React component. Can someone point me towards an example? import { Meteor } from 'meteor/meteor';

How to localize (i18n) moment.js within meteor.js?

允我心安 提交于 2019-12-21 09:26:08
问题 How can moment.js used within a meteor.js app be told to use another language than English? moment.js (installed as an mrt package) works fine with the default English language. Using the demo calls from the moment.js docs at http://momentjs.com/docs/#/i18n/changing-language/ always produces 'en'. I noticed there is a German language file for moment in meteor_project/packages/moment/lib/moment/lang/de.js that doesn't seem to be used though? To specify: within a template helper I tried: moment

iron:router will not re-render after route change with same template

不想你离开。 提交于 2019-12-21 09:19:36
问题 How can I make Iron:router re-render a template? I have this html: <head> </head> <body> </body> <template name="mainLayout"> <a href="{{pathFor route='list'}}">list</a> <a href="{{pathFor route='find' query='q=xxx'}}">find</a> {{> yield}} </template> <template name="listTemplate"> <p>list</p> </template> and this js: Router.configure({ layoutTemplate: 'mainLayout' }); Router.route('/list', { name: 'list', template: 'listTemplate' }); Router.route('/find', { name: 'find', template:

How do I specfiy a MongoHQ database when deploying Meteor app?

不打扰是莪最后的温柔 提交于 2019-12-21 07:36:53
问题 I would like to use my own MongoHQ database to use when deploying a Meteor app using meteor deploy . The documentation explains how to do this when deploying and running on a machine I control: $ PORT=3000 MONGO_URL=mongodb://localhost:27017/myapp node bundle/main.js But the documentation seems a bit sparse on how to do this with meteor deploy . Is it possible? EDIT: I tried following http://docs.meteor.com/#meteor_settings and added a settings.json file and put in it: {"MONGO_URL" : "mongodb

Why has Chrome on Android's native HTML5 date picker become really slow?

情到浓时终转凉″ 提交于 2019-12-21 07:27:49
问题 I have a date picker on my site that just uses the default html5 date picker. I've noticed that up until a couple of weeks ago, it was working fine but ever since a recent update on Chrome Android, they've introduced a new date picker and this date picker is really slow and unresponsive. It takes several seconds to load up and i find it really hard to pick any dates. I have a demo site illustrating it (http://datapickerandroid.meteor.com/). I've tested it on a Nexus 7 2013 and HTC one M8 and

Using ES6 `import` with CSS/HTML files in Meteor project: bug or feature?

北战南征 提交于 2019-12-21 07:08:39
问题 I am currently learning Meteor and I found out something that intrigued me. I can load HTML and CSS assets from a JS file using the import statement. import '../imports/hello/myapp.html'; import '../imports/hello/myapp.css'; import * as myApp from '../imports/hello/myapp.js'; This was a surprise to me so I ran to google but could not find this behavior documented in the specification for ES6 import or in Meteor's Docs. So my questions are: Can I rely on this behavior to build my apps? Will my

How to create a default user on meteor?

北城以北 提交于 2019-12-21 07:08:37
问题 I want to create an admin user if no users exist. I tried it on a js file inside the server folder Meteor.startup(function () { if(!Meteor.users.find().count()) { var options = { username: 'admin', password: 'default-password', email: 'admin@example.com' }; Accounts.createUser(options); } }); This is the error that meteor show on the console Error at app/packages/livedata/livedata_common.js:143:26 at /Users/camilo/Documents/Proyectos/IM/interno/.meteor/local/build/server/server.js:282:7 at

Properly enabling security for filepicker.io in Meteor

一笑奈何 提交于 2019-12-21 06:59:30
问题 Filepicker by default allows pretty much everybody to add files to your S3 bucket who was clever enough to copy your API key out of the client code and luckily also offers a security option with expiring policies. But I have no idea how to implement this in Meteor.js. Tried back and forth, installing meteor-crypto-base package, trying to generate the hashes on the server, tried RGBboy's urlsafe-base64 algorithm on https://github.com/RGBboy/urlsafe-base64. But I just do not get any further.

Use Twitter Bootstrap 3 RC1 with Meteor

不想你离开。 提交于 2019-12-21 06:45:08
问题 I am trying to use the latest Twitter Bootstrap 3 RC1 with Meteor. I tried to install it using bower, but Meteor threw an error because of some HTML or JS included in the bootstrap package (the _includes directory). I am aware that meteor has a bootstrap package, however this is Bootstrap 2.3. I wonder if there's a way to either ignore certain files so that Meteor will not try and serve these files, or other way to get around this. 回答1: Have you tried the custom atmosphere package bootstrap3