-
mbr update, remove versions.json
-
Merge branch 'master' of https://github.com/CollectionFS/Meteor-cfs-file
-
update pkg, dependencies, delinting, etc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Meteor.methods({ | |
'addFoo': function(name) { | |
check(name, String); | |
foo.insert({ owner: this.userId, name }); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Meteor.isClient) { | |
// Basic animation handling | |
var defer = function(current, last, scroll) { | |
// Set the hide class and then remove the show | |
$('#'+last).addClass('hide').removeClass('show'); | |
// Remove the hide - this will make the transition fast | |
$('#'+current).removeClass('hide'); | |
Meteor.setTimeout(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
roleTypes = { | |
'admin': 'Administrator', | |
'user': 'Bruger', | |
'editor': 'Redaktør', | |
}; | |
roleTypesList = []; | |
_.each(roleTypes, function(val, key) { | |
roleTypesList.push({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Meteor.isClient) { | |
// Rig some famo.us deps | |
//famousPolyfills; | |
famous.polyfills; | |
famous.core.famous; | |
// Make sure dom got a body... | |
Meteor.startup(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template name="imageUploader"> | |
<h2>Picture</h2> | |
<p> | |
{{#each images}} | |
<img src="{{url}}" alt=""> | |
<input type="button" value="remove" class="btnRemove"/> | |
{{else}} | |
No files uploaded. | |
{{/each}} | |
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typeNames = function(type) { | |
if (Match.test(type, [Match.Any])) return 'array'; | |
if (type === Object) return 'object'; | |
if (type === String) return 'string'; | |
if (type === Number) return 'number'; | |
if (type === Boolean) return 'boolean'; | |
if (type === Function) return 'function'; | |
return typeof type; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CACHE MANIFEST | |
# cafd1417c9861bbd29cd844d8f380b340c70d316 | |
CACHE: | |
/ | |
http://grounddb.meteor.com/dbcdebadd4b96a6b5fd50c4cec204ed1f73a3398.js | |
http://grounddb.meteor.com/aa67ef88b25b2dba7b045b5f9307fc2f16573731.css | |
http://grounddb.meteor.com/green.png?cac3cc0143b7e79be4ce2682288ad2ec69882407 | |
http://grounddb.meteor.com/red.png?d9d4f943b535801166a198aec7e28799475dc1e6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// code = 'server'; | |
{ | |
"type": "Program", | |
"body": [ | |
{ | |
"type": "ExpressionStatement", | |
"expression": { | |
"type": "AssignmentExpression", | |
"operator": "=", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var renderList = []; | |
var timer = 0; | |
var timeToLog = 100; | |
function debugRendered(templateName) { | |
// init renderList | |
renderList[templateName] = 0; |
NewerOlder