Skip to content

Commit

Permalink
Make SSR work with ES2015
Browse files Browse the repository at this point in the history
  • Loading branch information
sahanDissanayake committed Apr 14, 2016
1 parent 3d2d52d commit 366b235
Show file tree
Hide file tree
Showing 3,055 changed files with 207,635 additions and 89 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .meteor/.finished-upgraders
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ notices-for-facebook-graph-api-2
1.2.0-meteor-platform-split
1.2.0-cordova-changes
1.2.0-breaking-changes
1.3.0-split-minifiers-package
3 changes: 2 additions & 1 deletion .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ session # Client-side reactive dictionary for your app
jquery # Helpful client-side library
tracker # Meteor's client-side reactive programming library

standard-minifiers # JS/CSS minifiers run for production mode
es5-shim # ECMAScript 5 compatibility for older browsers.
ecmascript # Enable ECMAScript2015+ syntax in app code

Expand All @@ -22,3 +21,5 @@ check
random
accounts-password
kadira:dochead
standard-minifier-css
standard-minifier-js
2 changes: 1 addition & 1 deletion .meteor/release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[email protected]-beta.11
[email protected].1
170 changes: 84 additions & 86 deletions .meteor/versions
Original file line number Diff line number Diff line change
@@ -1,91 +1,89 @@
[email protected].3-beta.11
[email protected].5-beta.11
[email protected].1-beta.11
[email protected].4
[email protected].5-beta.11
babel-compiler@6.4.0-beta.11
[email protected].5-beta.11
[email protected].5-beta.11
[email protected].5-beta.11
[email protected].4-beta.11
[email protected].1
[email protected].5-beta.11
[email protected].5-beta.11
[email protected].1-beta.11
[email protected].3-beta.11
[email protected].5-beta.11
[email protected].1-beta.11
[email protected].5
[email protected].7
[email protected].3
[email protected].6
[email protected].7
babel-compiler@6.6.1
[email protected].7
[email protected].7
[email protected].7
[email protected].6
[email protected].3
[email protected].7
[email protected].7
[email protected].3
[email protected].5
[email protected].7
[email protected].3
chuangbo:[email protected]
[email protected].12-beta.11
cosmos:[email protected].3
[email protected].2
[email protected].2-beta.11
[email protected].2
[email protected].1-beta.11
[email protected].3-beta.11
[email protected].9
[email protected].2-beta.11
[email protected].0-beta.11
[email protected].7-beta.11
[email protected].8-beta.11
[email protected].9-beta.11
es5-shim@4.3.2-beta.11
[email protected].8-beta.11
[email protected].5-beta.11
[email protected].1-beta.11
[email protected].6-beta.11
[email protected].6-beta.11
[email protected].2-beta.11
[email protected].4
[email protected].5-beta.11
[email protected].16
cosmos:[email protected].4
[email protected].4
[email protected].4
[email protected].4
[email protected].3
[email protected].5
[email protected].11
[email protected].4
[email protected].2
[email protected].9
[email protected].10
[email protected]
es5-shim@4.5.9
[email protected].10
[email protected].7
[email protected].3
[email protected].8
[email protected].8
[email protected].4
[email protected].6
[email protected].7
kadira:[email protected]
kadira:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
meteorhacks:[email protected]
kadira:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
meteorhacks:[email protected]
meteorhacks:[email protected]
meteorhacks:[email protected]
meteorhacks:[email protected]
[email protected].8-beta.11
[email protected].8-beta.11
[email protected].11-beta.11
[email protected].1
[email protected].8-beta.11
[email protected].0-beta.11
modules-runtime@0.5.0-beta.11
[email protected].4-beta.11
[email protected].1
[email protected].10
[email protected].10
[email protected].13
[email protected].3
[email protected]
[email protected].2
modules-runtime@0.6.2
[email protected].6
[email protected].3
[email protected]_2
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
24 changes: 24 additions & 0 deletions both/routes.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react';
import {mount} from 'react-mounter';

import BlogLayout from '../imports/app/layouts/blog.jsx';
import PostList from '../imports/app/containers/post_list';
import PostPage from '../imports/app/containers/post_page';

FlowRouter.route("/", {
name: "home",
action() {
mount(BlogLayout, {
content: <PostList />
});
}
});

FlowRouter.route('/post/:_id', {
name: 'post',
action(params) {
mount(BlogLayout, {
content: <PostPage _id={params._id} />
});
}
});
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import {composeWithTracker} from 'react-komposer';
import PostList from '../components/post_list.jsx';
import { DocHead } from 'meteor/kadira:dochead';
import { Posts } from '../../lib/collections.js';


function composer(props, onData) {
const handle = Meteor.subscribe('posts');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { composeWithTracker } from 'react-komposer';
import PostPage from '../components/post_page.jsx';
import { DocHead } from 'meteor/kadira:dochead';

import { Posts } from '../../lib/collections.js';

function composer(props, onData) {
const handle = Meteor.subscribe('singlePost', props._id);

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 5 additions & 1 deletion lib/collections.jsx → imports/lib/collections.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
Posts = new Meteor.Collection('posts');
import { Meteor } from 'meteor/meteor';
import { Mongo } from 'meteor/mongo';

export const Posts = new Meteor.Collection('posts');

if(Meteor.isServer) {
Posts.remove({});
Posts.insert({
Expand Down
1 change: 1 addition & 0 deletions node_modules/.bin/.meteor-portable

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/envify

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/esparse

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/esvalidate

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/amdefine/.meteor-portable

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions node_modules/amdefine/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 366b235

Please sign in to comment.