From c07d8d9f982ad46e378249849b6c0346926ba42c Mon Sep 17 00:00:00 2001 From: nn Date: Tue, 19 Jan 2016 21:38:57 -0600 Subject: [PATCH] Initial commit --- .meteor/.finished-upgraders | 12 +++++++ .meteor/.gitignore | 1 + .meteor/.id | 7 ++++ .meteor/packages | 26 +++++++++++++++ .meteor/platforms | 2 ++ .meteor/release | 1 + .meteor/versions | 81 +++++++++++++++++++++++++++++++++++++++++++++ client/app.js | 5 +++ common.js | 38 +++++++++++++++++++++ main.html | 22 ++++++++++++ 10 files changed, 195 insertions(+) create mode 100644 .meteor/.finished-upgraders create mode 100644 .meteor/.gitignore create mode 100644 .meteor/.id create mode 100644 .meteor/packages create mode 100644 .meteor/platforms create mode 100644 .meteor/release create mode 100644 .meteor/versions create mode 100644 client/app.js create mode 100644 common.js create mode 100644 main.html diff --git a/.meteor/.finished-upgraders b/.meteor/.finished-upgraders new file mode 100644 index 0000000..61ee313 --- /dev/null +++ b/.meteor/.finished-upgraders @@ -0,0 +1,12 @@ +# This file contains information which helps Meteor properly upgrade your +# app when you run 'meteor update'. You should check it into version control +# with your project. + +notices-for-0.9.0 +notices-for-0.9.1 +0.9.4-platform-file +notices-for-facebook-graph-api-2 +1.2.0-standard-minifiers-package +1.2.0-meteor-platform-split +1.2.0-cordova-changes +1.2.0-breaking-changes 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/.id b/.meteor/.id new file mode 100644 index 0000000..23d4aa3 --- /dev/null +++ b/.meteor/.id @@ -0,0 +1,7 @@ +# This file contains a token that is unique to your project. +# Check it into your repository along with the rest of this directory. +# It can be used for purposes such as: +# - ensuring you don't accidentally deploy one app on top of another +# - providing package authors with aggregated statistics + +1i6v4fm1nl11gicjr3yv diff --git a/.meteor/packages b/.meteor/packages new file mode 100644 index 0000000..6f3d3ed --- /dev/null +++ b/.meteor/packages @@ -0,0 +1,26 @@ +# Meteor packages used by this project, one per line. +# Check this file (and the other files in this directory) into your repository. +# +# 'meteor add' and 'meteor remove' will edit this file for you, +# but you can also edit it by hand. + +meteor-base # Packages every Meteor app needs to have +mobile-experience # Packages for a great mobile UX +mongo # The database Meteor supports right now +blaze-html-templates # Compile .html files into Meteor Blaze views +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 + +autopublish # Publish all data to the clients (for prototyping) +insecure # Allow all DB writes from clients (for prototyping) +aldeed:simple-schema +aldeed:autoform +mizzao:autocomplete +mpowaga:autoform-autocomplete +aldeed:collection2 +twbs:bootstrap diff --git a/.meteor/platforms b/.meteor/platforms new file mode 100644 index 0000000..efeba1b --- /dev/null +++ b/.meteor/platforms @@ -0,0 +1,2 @@ +server +browser diff --git a/.meteor/release b/.meteor/release new file mode 100644 index 0000000..3a05e0a --- /dev/null +++ b/.meteor/release @@ -0,0 +1 @@ +METEOR@1.2.1 diff --git a/.meteor/versions b/.meteor/versions new file mode 100644 index 0000000..f610377 --- /dev/null +++ b/.meteor/versions @@ -0,0 +1,81 @@ +aldeed:autoform@5.8.1 +aldeed:collection2@2.8.0 +aldeed:collection2-core@1.0.0 +aldeed:schema-deny@1.0.1 +aldeed:schema-index@1.0.1 +aldeed:simple-schema@1.5.3 +autopublish@1.0.4 +autoupdate@1.2.4 +babel-compiler@5.8.24_1 +babel-runtime@0.1.4 +base64@1.0.4 +binary-heap@1.0.4 +blaze@2.1.3 +blaze-html-templates@1.0.1 +blaze-tools@1.0.4 +boilerplate-generator@1.0.4 +caching-compiler@1.0.0 +caching-html-compiler@1.0.2 +callback-hook@1.0.4 +check@1.1.0 +coffeescript@1.0.11 +dandv:caret-position@2.1.1 +ddp@1.2.2 +ddp-client@1.2.1 +ddp-common@1.2.2 +ddp-server@1.2.2 +deps@1.0.9 +diff-sequence@1.0.1 +ecmascript@0.1.6 +ecmascript-runtime@0.2.6 +ejson@1.0.7 +es5-shim@4.1.14 +fastclick@1.0.7 +geojson-utils@1.0.4 +hot-code-push@1.0.0 +html-tools@1.0.5 +htmljs@1.0.5 +http@1.1.1 +id-map@1.0.4 +insecure@1.0.4 +jquery@1.11.4 +launch-screen@1.0.4 +livedata@1.0.15 +logging@1.0.8 +mdg:validation-error@0.2.0 +meteor@1.1.10 +meteor-base@1.0.1 +minifiers@1.1.7 +minimongo@1.0.10 +mizzao:autocomplete@0.5.1 +mobile-experience@1.0.1 +mobile-status-bar@1.0.6 +momentjs:moment@2.10.6 +mongo@1.1.3 +mongo-id@1.0.1 +mpowaga:autoform-autocomplete@0.0.2 +mrt:copy-template@0.9.0 +npm-mongo@1.4.39_1 +observe-sequence@1.0.7 +ordered-dict@1.0.4 +promise@0.5.1 +raix:eventemitter@0.1.3 +random@1.0.5 +reactive-dict@1.1.3 +reactive-var@1.0.6 +reload@1.1.4 +retry@1.0.4 +routepolicy@1.0.6 +session@1.1.1 +spacebars@1.0.7 +spacebars-compiler@1.0.7 +standard-minifiers@1.0.2 +templating@1.1.5 +templating-tools@1.0.0 +tracker@1.0.9 +twbs:bootstrap@3.3.6 +ui@1.0.8 +underscore@1.0.4 +url@1.0.5 +webapp@1.2.3 +webapp-hashing@1.0.5 diff --git a/client/app.js b/client/app.js new file mode 100644 index 0000000..b6f0cad --- /dev/null +++ b/client/app.js @@ -0,0 +1,5 @@ +Template.body.helpers({ + matches: function(){ + return Matches.find().fetch(); + } +}); \ No newline at end of file diff --git a/common.js b/common.js new file mode 100644 index 0000000..b3cac5a --- /dev/null +++ b/common.js @@ -0,0 +1,38 @@ +Matches = new Mongo.Collection("matches"); + +Matches.attachSchema(new SimpleSchema({ + topic: { + type: String, + optional: false, + }, +})); + +Rounds = new Mongo.Collection("rounds"); + +Rounds.attachSchema(new SimpleSchema({ + + matches:{ + type: [String], + optional: true, + }, + 'matches.$': { + autoform: { + afFieldInput: { + type: 'autocomplete-input', + position: "top", + placeholder: 'Topic', + settings: { + position: "top", + limit: 5, + rules: [ + { + collection: Matches, + field: "topic", + template: Meteor.isClient && Template.autocomplete_display + }, + ] + } + } + } + } +})); diff --git a/main.html b/main.html new file mode 100644 index 0000000..bd0b521 --- /dev/null +++ b/main.html @@ -0,0 +1,22 @@ + +

Simple example of using mpowaga:autoform-autocomplete

+ + Insert Matches first, then it will autocomplete with these matches + {{> quickForm collection="Matches" id="insertMatcheForm" type="insert"}} + +
+ + Matches: + {{#each matches}} +
{{topic}} + {{/each}} + +
+ + Insert Round: (should autocomplete) + {{> quickForm collection="Rounds" id="insertRoundForm" type="insert"}} + + + \ No newline at end of file -- 2.11.4.GIT