meteor

How to modify/edit a Meteor package?

喜夏-厌秋 提交于 2019-12-18 19:00:01
问题 I want to run two different Meteor apps on the same server (on different ports) but I want to change something in one of Meteor's core packages and I want one app to use the original package and the other app to use the modified one. How could I do it? 回答1: A bit more straightforward answer, based on answer from here : Create packages folder in your project and change location to that folder ('cd yourproject' && 'mkdir packages' && 'cd packages') Fetch files from git ('git clone https:/

How to modify/edit a Meteor package?

我们两清 提交于 2019-12-18 18:59:41
问题 I want to run two different Meteor apps on the same server (on different ports) but I want to change something in one of Meteor's core packages and I want one app to use the original package and the other app to use the modified one. How could I do it? 回答1: A bit more straightforward answer, based on answer from here : Create packages folder in your project and change location to that folder ('cd yourproject' && 'mkdir packages' && 'cd packages') Fetch files from git ('git clone https:/

Suggestions for <head> tags for Meteor

蓝咒 提交于 2019-12-18 18:37:53
问题 Fellow Meteor users, During my searches for tutorials and example applications, I found one that uses a unique head structure: <meta charset="utf-8"> <title>Title</title> <meta name="description" content="Top10"> <meta name="viewport" content="width=device-width" /> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1"> This particular example app didn't even have a <body> tag anywhere, just a file called head.html which contained the above code.

Suggestions for <head> tags for Meteor

心不动则不痛 提交于 2019-12-18 18:37:26
问题 Fellow Meteor users, During my searches for tutorials and example applications, I found one that uses a unique head structure: <meta charset="utf-8"> <title>Title</title> <meta name="description" content="Top10"> <meta name="viewport" content="width=device-width" /> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1"> This particular example app didn't even have a <body> tag anywhere, just a file called head.html which contained the above code.

In Meteor JS, how to control Javascript load order in relation to DOM load order? For animations

吃可爱长大的小学妹 提交于 2019-12-18 17:34:11
问题 I've got a template that I downloaded: http://halibegic.com/projects/merlin/ I want to use it in Meteor and I'm having major issues with <script src="assets/js/script.js"></script> at the bottom on line 444 not loading in the right order. When the page loads, none of the 4 functions specified in this js file work. initNavbar(); initPortfolio(); initAnimations(); initTwitterFeed(); I have all the css, fonts, images, and js files in my public folder and they are all correctly referenced in the

When update nested collection in meteor, how to pass variable for the update path

China☆狼群 提交于 2019-12-18 17:24:09
问题 Update a nested collection in meteor is not a problem (and it is described here : Updating a nested property on a collection object with $set) Basic way to do it : Collection.update({sel}, {"$set" : {"address.city": "new address"}}); But what if I want to describe my path with variables ? This one obviously does not work : var cityName = "NYC"; Collection.update({sel}, {"$set" : {"address." + cityName: "new address"}}); Sadly this one does not work either: var path = "address.NYC"; Collection

Multiple yield in Meteor.js application template

戏子无情 提交于 2019-12-18 16:58:29
问题 I have one general {{>yield}} for iron-router in a layout file which renders my pages, which are templates. In one of my pages, I have a side menu and according to the selection in this menu, I want to load different templates related to this page in this page. How can I achieve this? 回答1: I have done a similar thing using iron-router's layout template option. Say I want to create a home view with multiple views/templates inside of this home view that will change. First I would declare my

Multiple yield in Meteor.js application template

梦想与她 提交于 2019-12-18 16:58:19
问题 I have one general {{>yield}} for iron-router in a layout file which renders my pages, which are templates. In one of my pages, I have a side menu and according to the selection in this menu, I want to load different templates related to this page in this page. How can I achieve this? 回答1: I have done a similar thing using iron-router's layout template option. Say I want to create a home view with multiple views/templates inside of this home view that will change. First I would declare my

Modal bootstrap disapear with change event meteor

烈酒焚心 提交于 2019-12-18 16:57:49
问题 I use a modal with bootstrap, so I have a modal with 3 tabs. In one of this tab I have a select like this : <div class="modal-body"> <ul class="nav nav-tabs" id="TabModal"> <li><a href="#onglet1" data-toggle="tab">Libre</a></li> <li><a href="#onglet2" data-toggle="tab">Complexe</a></li> <li><a href="#onglet3" data-toggle="tab">Questionnaire</a></li> </ul> <div class="tab-content"> <div class="tab-pane" id="onglet1"> <span class="label label-primary">Choose your collections :</span><br /><br /

How to access app hosted on meteor.com by DDP (WebSocket) protocol?

删除回忆录丶 提交于 2019-12-18 15:56:00
问题 I have a Meteor app A and another application B , not using Meteor, but making some data exchange with the app A . It works fine when I launch A on a machine in my local network, but when I deploy it on meteor.com hosting it doesn't. Server doesn't reply. B uses code new WebSocket("ws://" + host + ":3000/websocket") for connection (DDP protocol). But when I change ws to wss it doesn't work any more even with the machine in LAN - it doesn't reply. I saw that main page of app A when I open it