commit 4387b8e1986e1bba1c83fa8b60712de0681b78d6 Author: fazo96 Date: Sun May 25 12:01:38 2014 +0200 first commit diff --git a/.meteor/.gitignore b/.meteor/.gitignore new file mode 100644 index 0000000..4083037 --- /dev/null +++ b/.meteor/.gitignore @@ -0,0 +1 @@ +local diff --git a/.meteor/packages b/.meteor/packages new file mode 100644 index 0000000..1d9ecd6 --- /dev/null +++ b/.meteor/packages @@ -0,0 +1,12 @@ +# Meteor packages used by this project, one per line. +# +# 'meteor add' and 'meteor remove' will edit this file for you, +# but you can also edit it by hand. + +standard-app-packages +insecure +coffeescript +bootstrap-3 +font-awesome +accounts-base +accounts-password diff --git a/.meteor/release b/.meteor/release new file mode 100644 index 0000000..db5f2c7 --- /dev/null +++ b/.meteor/release @@ -0,0 +1 @@ +0.8.1.3 diff --git a/app.coffee b/app.coffee new file mode 100644 index 0000000..10ac55b --- /dev/null +++ b/app.coffee @@ -0,0 +1,20 @@ +todos = new Meteor.Collection "todos" + +if Meteor.isServer + #todos.insert { content: "Example" } unless todos.find().fetch().length > 0 + Meteor.publish "todos", -> todos.find() + +if Meteor.isClient + Meteor.subscribe "todos" + Template.notes.notes = -> + todos.find().fetch() + Template.notes.events { + 'click .delete': -> + todos.remove @_id + } + Template.adder.events { + 'keypress #newNote': (e,template) -> + console.log e.keyCode + if e.keyCode is 13 + todos.insert { content: template.find('#newNote').value } + } diff --git a/index.html b/index.html new file mode 100644 index 0000000..2688213 --- /dev/null +++ b/index.html @@ -0,0 +1,28 @@ + +
+ +
+ {{> notes}} +
{{> adder}}
+
+
+ + + + + diff --git a/packages/.gitignore b/packages/.gitignore new file mode 100644 index 0000000..4a481b3 --- /dev/null +++ b/packages/.gitignore @@ -0,0 +1,2 @@ +/bootstrap-3 +/font-awesome diff --git a/smart.json b/smart.json new file mode 100644 index 0000000..04515cc --- /dev/null +++ b/smart.json @@ -0,0 +1,6 @@ +{ + "packages": { + "bootstrap-3": {}, + "font-awesome": {} + } +} diff --git a/smart.lock b/smart.lock new file mode 100644 index 0000000..64bb779 --- /dev/null +++ b/smart.lock @@ -0,0 +1,21 @@ +{ + "meteor": {}, + "dependencies": { + "basePackages": { + "bootstrap-3": {}, + "font-awesome": {} + }, + "packages": { + "bootstrap-3": { + "git": "https://github.com/mangasocial/meteor-bootstrap-3.git", + "tag": "v3.1.1-1", + "commit": "63dd38968828bb8963636df93e9a1c45e2dfe67e" + }, + "font-awesome": { + "git": "https://github.com/nate-strauser/meteor-font-awesome.git", + "tag": "v4.1.0", + "commit": "ce6b1e92715d1938babc5d69c655c17e387f5926" + } + } + } +} diff --git a/style.css b/style.css new file mode 100644 index 0000000..683eb9e --- /dev/null +++ b/style.css @@ -0,0 +1,11 @@ +.container { + max-width: 700px; +} + +#quicknotes { + max-width: 500px; +} + +#newNote { + max-width: 250px; +}