├── .meteor ├── .finished-upgraders ├── .gitignore ├── .id ├── packages ├── platforms ├── release └── versions ├── client ├── client.js ├── comment_submit.js ├── main.html ├── stylesheets │ ├── basscss.css │ ├── style.css │ └── tachyons.css ├── templates │ ├── accounts.html │ ├── comment_item.html │ ├── comment_submit.html │ ├── firstPage.html │ ├── landingPage.html │ ├── signout.html │ ├── wellness.html │ ├── wellnessItem.html │ ├── wellnessItem.js │ ├── wellnessList.html │ ├── wellnessList.js │ ├── wellnessSubmit.html │ ├── wellnessSubmit.js │ ├── yak_item.html │ ├── yak_page.html │ ├── yak_submit.html │ └── yaks_list.html ├── yak_item.js ├── yak_page.js └── yak_submit.js ├── main.js ├── public └── welby.svg └── server └── server.js /.meteor/.finished-upgraders: -------------------------------------------------------------------------------- 1 | # This file contains information which helps Meteor properly upgrade your 2 | # app when you run 'meteor update'. You should check it into version control 3 | # with your project. 4 | 5 | notices-for-0.9.0 6 | notices-for-0.9.1 7 | 0.9.4-platform-file 8 | notices-for-facebook-graph-api-2 9 | -------------------------------------------------------------------------------- /.meteor/.gitignore: -------------------------------------------------------------------------------- 1 | local 2 | -------------------------------------------------------------------------------- /.meteor/.id: -------------------------------------------------------------------------------- 1 | # This file contains a token that is unique to your project. 2 | # Check it into your repository along with the rest of this directory. 3 | # It can be used for purposes such as: 4 | # - ensuring you don't accidentally deploy one app on top of another 5 | # - providing package authors with aggregated statistics 6 | 7 | 1cl6p1f1a1163cfy0po1 8 | -------------------------------------------------------------------------------- /.meteor/packages: -------------------------------------------------------------------------------- 1 | # Meteor packages used by this project, one per line. 2 | # Check this file (and the other files in this directory) into your repository. 3 | # 4 | # 'meteor add' and 'meteor remove' will edit this file for you, 5 | # but you can also edit it by hand. 6 | 7 | meteor-platform 8 | autopublish 9 | insecure 10 | twbs:bootstrap 11 | iron:router 12 | natestrauser:font-awesome 13 | accounts-facebook 14 | accounts-ui 15 | accounts-password 16 | -------------------------------------------------------------------------------- /.meteor/platforms: -------------------------------------------------------------------------------- 1 | server 2 | browser 3 | -------------------------------------------------------------------------------- /.meteor/release: -------------------------------------------------------------------------------- 1 | METEOR@1.1.0.3 2 | -------------------------------------------------------------------------------- /.meteor/versions: -------------------------------------------------------------------------------- 1 | accounts-base@1.2.0 2 | accounts-facebook@1.0.4 3 | accounts-oauth@1.1.5 4 | accounts-password@1.1.1 5 | accounts-ui@1.1.5 6 | accounts-ui-unstyled@1.1.7 7 | autopublish@1.0.3 8 | autoupdate@1.2.1 9 | base64@1.0.3 10 | binary-heap@1.0.3 11 | blaze@2.1.2 12 | blaze-tools@1.0.3 13 | boilerplate-generator@1.0.3 14 | callback-hook@1.0.3 15 | check@1.0.5 16 | ddp@1.1.0 17 | deps@1.0.7 18 | ejson@1.0.6 19 | email@1.0.6 20 | facebook@1.2.1 21 | fastclick@1.0.3 22 | geojson-utils@1.0.3 23 | html-tools@1.0.4 24 | htmljs@1.0.4 25 | http@1.1.0 26 | id-map@1.0.3 27 | insecure@1.0.3 28 | iron:controller@1.0.8 29 | iron:core@1.0.8 30 | iron:dynamic-template@1.0.8 31 | iron:layout@1.0.8 32 | iron:location@1.0.9 33 | iron:middleware-stack@1.0.9 34 | iron:router@1.0.9 35 | iron:url@1.0.9 36 | jquery@1.11.3_2 37 | json@1.0.3 38 | launch-screen@1.0.2 39 | less@1.0.14 40 | livedata@1.0.13 41 | localstorage@1.0.3 42 | logging@1.0.7 43 | meteor@1.1.6 44 | meteor-platform@1.2.2 45 | minifiers@1.1.5 46 | minimongo@1.0.8 47 | mobile-status-bar@1.0.3 48 | mongo@1.1.0 49 | natestrauser:font-awesome@4.3.0 50 | npm-bcrypt@0.7.8_2 51 | oauth@1.1.4 52 | oauth2@1.1.3 53 | observe-sequence@1.0.6 54 | ordered-dict@1.0.3 55 | random@1.0.3 56 | reactive-dict@1.1.0 57 | reactive-var@1.0.5 58 | reload@1.1.3 59 | retry@1.0.3 60 | routepolicy@1.0.5 61 | service-configuration@1.0.4 62 | session@1.1.0 63 | sha@1.0.3 64 | spacebars@1.0.6 65 | spacebars-compiler@1.0.6 66 | srp@1.0.3 67 | templating@1.1.1 68 | tracker@1.0.7 69 | twbs:bootstrap@3.3.5 70 | ui@1.0.6 71 | underscore@1.0.3 72 | url@1.0.4 73 | webapp@1.2.0 74 | webapp-hashing@1.0.3 75 | -------------------------------------------------------------------------------- /client/client.js: -------------------------------------------------------------------------------- 1 | Template.yaksList.helpers({ 2 | yaks: function() { 3 | return Yaks.find({}, {sort : {score: -1}}); 4 | } 5 | }) -------------------------------------------------------------------------------- /client/comment_submit.js: -------------------------------------------------------------------------------- 1 | Template.commentSubmit.events({ 2 | 'submit form': function(e, template) { 3 | e.preventDefault(); 4 | 5 | var $body = $(e.target).find('[name=body]'); 6 | var comment = { 7 | body: $body.val(), 8 | postId: template.data._id, 9 | submitted: new Date() 10 | }; 11 | 12 | var commentBody = e.target.body.value; 13 | // Check if the comment is not empty 14 | if (commentBody == "") { 15 | alert("You can't insert empty comment. Try to comment something nice instead! :)") 16 | } else { 17 | Meteor.call('commentInsert', comment); 18 | } 19 | 20 | // clear field 21 | e.target.body.value = ""; 22 | } 23 | }); -------------------------------------------------------------------------------- /client/main.html: -------------------------------------------------------------------------------- 1 |
2 |{{body}}
4 |Sign up for our iOS Beta
18 | 19 | 31 | 32 |5 | {{> loginButtons}} 6 |
7 | 8 | 9 | -------------------------------------------------------------------------------- /client/templates/wellness.html: -------------------------------------------------------------------------------- 1 | 2 | {{> loginButtons}} 3 |{{yak}}
6 | {{#if currentUser}} 7 | {{commentsCount}} comments 8 | 9 | {{score}} 10 | 11 | {{else}} 12 | {{commentsCount}} comments 13 | 14 | {{score}} 15 | 16 | {{/if}} 17 |{{postTitle}}
8 |{{yak}}
9 | {{#if currentUser}} 10 | 11 | {{commentsCount}} comments 12 | 13 | {{score}} 14 | 15 | {{else}} 16 | {{commentsCount}} comments 17 | 18 | {{score}} 19 | 20 | {{/if}} 21 |
Comments
7 | {{#each comments}} 8 | {{> commentItem}} 9 | {{/each}} 10 |