-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from NUDelta/issue37-meteormethods
Sped up the time for entering pair research tasks by removing "popular tasks" feature
- Loading branch information
Showing
31 changed files
with
2,518 additions
and
981 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,39 +5,38 @@ | |
# but you can also edit it by hand. | ||
|
||
[email protected] # Packages every Meteor app needs to have | ||
mobile-experience@1.0.5 # Packages for a great mobile UX | ||
mongo@1.7.0 # The database Meteor supports right now | ||
mobile-experience@1.1.0 # Packages for a great mobile UX | ||
mongo@1.11.0 # The database Meteor supports right now | ||
[email protected] # Compile .html files into Meteor Blaze views | ||
[email protected] # Reactive variable for tracker | ||
[email protected] # Helpful client-side library | ||
[email protected] # Meteor's client-side reactive programming library | ||
|
||
[email protected] # CSS minifier run for production mode | ||
[email protected] # JS minifier run for production mode | ||
[email protected] # JS minifier run for production mode | ||
[email protected] # ECMAScript 5 compatibility for older browsers. | ||
ecmascript@0.13.2 # Enable ECMAScript2015+ syntax in app code | ||
ecmascript@0.15.3 # Enable ECMAScript2015+ syntax in app code | ||
|
||
aldeed:collection2 | ||
accounts-base@1.4.5 | ||
accounts-password@1.5.2 | ||
accounts-base@1.9.0 | ||
accounts-password@1.7.0 | ||
kadira:flow-router | ||
kadira:blaze-layout | ||
fourseven:scss | ||
mdg:validated-method | ||
nooitaf:colors | ||
dburles:collection-helpers | ||
poetic:materialize-scss | ||
practicalmeteor:mocha | ||
dburles:factory | ||
momentjs:moment | ||
natestrauser:animate-css | ||
[email protected] | ||
email@1.2.3 | ||
email@2.0.0 | ||
arillo:flow-router-helpers | ||
archive:jquery-dotdotdot | ||
shell-server@0.4.0 | ||
shell-server@0.5.0 | ||
practicalmeteor:chai | ||
dynamic-import@0.5.1 | ||
dynamic-import@0.6.0 | ||
[email protected] | ||
meteorhacks:ssr | ||
montiapm:agent | ||
fourseven:scss | ||
seba:minifiers-autoprefixer | ||
spacebars-compiler |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
METEOR@1.8.3 | ||
METEOR@2.2.4 |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { SpacebarsCompiler } from 'meteor/spacebars-compiler'; | ||
import { Blaze } from "meteor/blaze"; | ||
|
||
// from: https://forums.meteor.com/t/a-better-way-to-do-ssr-with-blaze-in-meteor-than-meteorhacks-ssr/55687 | ||
export const SSR = { | ||
render: (templateName, data) => { | ||
const renderFunc = (data)? Blaze.toHTMLWithData : Blaze.toHTML; | ||
const template = Blaze.Template[templateName]; | ||
if (!template) { | ||
throw new Error(`Template ${templateName} not found`); | ||
} | ||
else { | ||
return renderFunc(template, data); | ||
} | ||
}, | ||
compileTemplate: (name, content) => { | ||
const renderfunc = eval(`(function(view) { return ${SpacebarsCompiler.compile(content)}(); })`); | ||
const template = new Blaze.Template(name, function() { return renderfunc(this); }); | ||
Blaze.Template[name] = template; | ||
return template; | ||
} | ||
}; |
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
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
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
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
Oops, something went wrong.