Initial commitmaster
authornn <[email protected]>
Wed, 20 Jan 2016 03:38:57 +0000 (19 21:38 -0600)
committernn <[email protected]>
Wed, 20 Jan 2016 03:38:57 +0000 (19 21:38 -0600)
.meteor/.finished-upgraders [new file with mode: 0644]
.meteor/.gitignore [new file with mode: 0644]
.meteor/.id [new file with mode: 0644]
.meteor/packages [new file with mode: 0644]
.meteor/platforms [new file with mode: 0644]
.meteor/release [new file with mode: 0644]
.meteor/versions [new file with mode: 0644]
client/app.js [new file with mode: 0644]
common.js [new file with mode: 0644]
main.html [new file with mode: 0644]

diff --git a/.meteor/.finished-upgraders b/.meteor/.finished-upgraders
new file mode 100644 (file)
index 0000000..61ee313
--- /dev/null
@@ -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 (file)
index 0000000..4083037
--- /dev/null
@@ -0,0 +1 @@
+local
diff --git a/.meteor/.id b/.meteor/.id
new file mode 100644 (file)
index 0000000..23d4aa3
--- /dev/null
@@ -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 (file)
index 0000000..6f3d3ed
--- /dev/null
@@ -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 (file)
index 0000000..efeba1b
--- /dev/null
@@ -0,0 +1,2 @@
+server
+browser
diff --git a/.meteor/release b/.meteor/release
new file mode 100644 (file)
index 0000000..3a05e0a
--- /dev/null
@@ -0,0 +1 @@
diff --git a/.meteor/versions b/.meteor/versions
new file mode 100644 (file)
index 0000000..f610377
--- /dev/null
@@ -0,0 +1,81 @@
diff --git a/client/app.js b/client/app.js
new file mode 100644 (file)
index 0000000..b6f0cad
--- /dev/null
@@ -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 (file)
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 (file)
index 0000000..bd0b521
--- /dev/null
+++ b/main.html
@@ -0,0 +1,22 @@
+<body>
+  <h2> Simple example of using mpowaga:autoform-autocomplete </h2>
+  
+  Insert Matches first, then it will autocomplete with these matches
+  {{> quickForm collection="Matches" id="insertMatcheForm" type="insert"}}
+  
+  <br>
+  
+  Matches:
+  {{#each matches}}
+    <br>{{topic}}
+  {{/each}}
+  
+  <br>
+  
+  Insert Round: (should autocomplete)
+  {{> quickForm collection="Rounds" id="insertRoundForm" type="insert"}}
+</body>
+
+<template name="autocomplete_display">
+   {{topic}}
+</template>
\ No newline at end of file