diff --git a/.meteor/.finished-upgraders b/.meteor/.finished-upgraders index 61ee313..dacc2c0 100644 --- a/.meteor/.finished-upgraders +++ b/.meteor/.finished-upgraders @@ -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 diff --git a/.meteor/packages b/.meteor/packages index a9f8340..a77b3d2 100644 --- a/.meteor/packages +++ b/.meteor/packages @@ -12,9 +12,23 @@ 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) +accounts-password +iron:router +accounts-ui +twbs:bootstrap +cfs:gridfs +cfs:filesystem +cfs:standard-packages +aldeed:collection2 +aldeed:autoform-bs-datetimepicker +aldeed:autoform +standard-minifier-css +standard-minifier-js +yogiben:autoform-file +tsega:bootstrap3-datetimepicker +drewy:autoform-datetimepicker diff --git a/.meteor/release b/.meteor/release index 3a05e0a..4fd7a93 100644 --- a/.meteor/release +++ b/.meteor/release @@ -1 +1 @@ -METEOR@1.2.1 +METEOR@1.3 diff --git a/.meteor/versions b/.meteor/versions index 17859ef..3d70a57 100644 --- a/.meteor/versions +++ b/.meteor/versions @@ -1,66 +1,130 @@ -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 -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 -meteor@1.1.10 -meteor-base@1.0.1 -minifiers@1.1.7 -minimongo@1.0.10 -mobile-experience@1.0.1 -mobile-status-bar@1.0.6 -mongo@1.1.3 -mongo-id@1.0.1 -npm-mongo@1.4.39_1 -observe-sequence@1.0.7 -ordered-dict@1.0.4 -promise@0.5.1 -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 -ui@1.0.8 -underscore@1.0.4 -url@1.0.5 -webapp@1.2.3 -webapp-hashing@1.0.5 +accounts-base@1.2.4 +accounts-password@1.1.6 +accounts-ui@1.1.7 +accounts-ui-unstyled@1.1.10 +aldeed:autoform@5.5.1 +aldeed:autoform-bs-datetimepicker@1.0.6 +aldeed:collection2@2.9.1 +aldeed:collection2-core@1.1.1 +aldeed:schema-deny@1.0.1 +aldeed:schema-index@1.0.1 +aldeed:simple-schema@1.5.3 +allow-deny@1.0.2 +autopublish@1.0.5 +autoupdate@1.2.6 +babel-compiler@6.5.2 +babel-runtime@0.1.6 +base64@1.0.6 +binary-heap@1.0.6 +blaze@2.1.5 +blaze-html-templates@1.0.2 +blaze-tools@1.0.6 +boilerplate-generator@1.0.6 +caching-compiler@1.0.2 +caching-html-compiler@1.0.4 +callback-hook@1.0.6 +cfs:access-point@0.1.49 +cfs:base-package@0.0.30 +cfs:collection@0.5.5 +cfs:collection-filters@0.2.4 +cfs:data-man@0.0.6 +cfs:file@0.1.17 +cfs:filesystem@0.1.2 +cfs:gridfs@0.0.33 +cfs:http-methods@0.0.30 +cfs:http-publish@0.0.13 +cfs:power-queue@0.9.11 +cfs:reactive-list@0.0.9 +cfs:reactive-property@0.0.4 +cfs:standard-packages@0.5.9 +cfs:storage-adapter@0.2.3 +cfs:tempstore@0.1.5 +cfs:ui@0.1.3 +cfs:upload-http@0.0.20 +cfs:worker@0.1.4 +check@1.1.2 +coffeescript@1.0.15 +ddp@1.2.3 +ddp-client@1.2.3 +ddp-common@1.2.3 +ddp-rate-limiter@1.0.2 +ddp-server@1.2.4 +deps@1.0.10 +diff-sequence@1.0.3 +drewy:autoform-datetimepicker@1.0.666666 +ecmascript@0.4.1 +ecmascript-runtime@0.2.8 +ejson@1.0.9 +email@1.0.10 +es5-shim@4.5.8 +fastclick@1.0.9 +fortawesome:fontawesome@4.5.0 +geojson-utils@1.0.6 +hot-code-push@1.0.2 +html-tools@1.0.7 +htmljs@1.0.7 +http@1.1.3 +id-map@1.0.5 +insecure@1.0.5 +iron:controller@1.0.12 +iron:core@1.0.11 +iron:dynamic-template@1.0.12 +iron:layout@1.0.12 +iron:location@1.0.11 +iron:middleware-stack@1.0.11 +iron:router@1.0.12 +iron:url@1.0.11 +jquery@1.11.6 +launch-screen@1.0.8 +less@2.5.6 +livedata@1.0.16 +localstorage@1.0.7 +logging@1.0.10 +mdg:validation-error@0.2.0 +meteor@1.1.12 +meteor-base@1.0.2 +minifier-css@1.1.9 +minifier-js@1.1.9 +minimongo@1.0.12 +mobile-experience@1.0.2 +mobile-status-bar@1.0.10 +modules@0.5.1 +modules-runtime@0.6.1 +momentjs:moment@2.10.6 +mongo@1.1.5 +mongo-id@1.0.2 +mongo-livedata@1.0.10 +mpowaga:jquery-fileupload@9.11.2 +mpowaga:jquery-ui-widget@1.11.4 +npm-bcrypt@0.7.8_2 +npm-mongo@1.4.41 +observe-sequence@1.0.9 +ordered-dict@1.0.5 +promise@0.6.5 +raix:eventemitter@0.1.3 +random@1.0.7 +rate-limit@1.0.2 +reactive-dict@1.1.5 +reactive-var@1.0.7 +reload@1.1.6 +retry@1.0.5 +routepolicy@1.0.8 +service-configuration@1.0.7 +session@1.1.3 +sha@1.0.5 +spacebars@1.0.9 +spacebars-compiler@1.0.9 +srp@1.0.6 +standard-minifier-css@1.0.4 +standard-minifier-js@1.0.4 +templating@1.1.7 +templating-tools@1.0.2 +tracker@1.0.11 +tsega:bootstrap3-datetimepicker@4.17.37_1 +twbs:bootstrap@3.3.6 +ui@1.0.9 +underscore@1.0.6 +url@1.0.7 +webapp@1.2.6 +webapp-hashing@1.0.7 +yogiben:autoform-file@0.4.2 diff --git a/SpicMacay.jpg b/SpicMacay.jpg new file mode 100644 index 0000000..183e9ea Binary files /dev/null and b/SpicMacay.jpg differ diff --git a/client/addEvent.html b/client/addEvent.html new file mode 100644 index 0000000..38b3a44 --- /dev/null +++ b/client/addEvent.html @@ -0,0 +1,24 @@ + diff --git a/client/event.html b/client/event.html new file mode 100644 index 0000000..81c78a4 --- /dev/null +++ b/client/event.html @@ -0,0 +1,3 @@ + diff --git a/client/eventList.html b/client/eventList.html new file mode 100644 index 0000000..6ee80a4 --- /dev/null +++ b/client/eventList.html @@ -0,0 +1,20 @@ + diff --git a/client/events.html b/client/events.html new file mode 100644 index 0000000..76e55ff --- /dev/null +++ b/client/events.html @@ -0,0 +1,7 @@ + diff --git a/client/main.js b/client/main.js new file mode 100644 index 0000000..42faed0 --- /dev/null +++ b/client/main.js @@ -0,0 +1,79 @@ +Router.configure({ + layoutTemplate: 'ApplicationLayout' +}); + +Router.route('/', function(){ + $('head').append( 'NITH Events Portal' ); + this.render("navbar", {to:"header"}); + this.render("eventList", {to:"main"}); +}); + +Router.route('/pastEvents', function(){ + $('head').append( 'NITH Events Portal' ); + this.render("navbar", {to:"header"}); + this.render("pastEventList", {to:"main"}); +}); +Router.route('/event/:_id', function(){ + Session.set("eventId", this.params._id); + this.render("navbar", {to:"header"}); + this.render("eventPage", {to:"main"}); +}); + +Router.route('/addEvent', function(){ + this.render("navbar", {to:"header"}); + if(Meteor.userId()){ + this.render("addEventForm", {to:"main"}); + } else { + this.render("loginForm", {to:"main"}); + } +}); + +Router.route('/editEvent/:_id', function(){ + Session.set("eventId", this.params._id); + this.render("navbar", {to:"header"}); + eventData = Events.findOne({_id:this.params._id}); + if(eventData.author == Meteor.userId()){ + this.render("editEventForm", {to:"main"}); + } +}); + + +// EventPage Template helpers + +Template.eventPage.helpers({ + eventData: function(){ + Event = Events.findOne({_id:Session.get("eventId")}); + Event.begin = new Date(Event.startTime); + return Event; + } +}); + + +// Eventlist template helpers + +Template.eventList.helpers({ + events: function(){ + date = Session.get("current_date"); + date = Date.parse(date); + date = date.toString(); + eventList = Events.find({}); + + return eventList; + } +}); + + +// afQuickField helpers and events + +Template.afQuickField.events({ + 'change .fileInput': function(event, template) { + FS.Utility.eachFile(event, function(file){ + var fileObj = new FS.File(file); + Posters.insert(fileObj, function(err, fileObj){ + if(!err){ + console.log(fileObj); + } + }); + }); + } +}); diff --git a/client/navbar.html b/client/navbar.html new file mode 100644 index 0000000..6dff35d --- /dev/null +++ b/client/navbar.html @@ -0,0 +1,13 @@ + diff --git a/event.css b/event.css new file mode 100644 index 0000000..8e1e3bd --- /dev/null +++ b/event.css @@ -0,0 +1,78 @@ +#col-1{ + border: 2px solid red; +} +.jumbotron{ + text-align: center; + background-color:#23282D; + color: white; + height: 350px; + background-image: url('SpicMacay.jpg'); + background-size: 100% 100%; +} + +.row{ + left: 0px; +} + +.image{ + position: absolute; + top: 0px; + opacity: 0.5; + +} + +#b1{ + position: absolute; + background-color: #708090; + border-radius: 8px; + top: 250px; + left: 570px; + color: white; + width: 150px; + height: 40px; + z-index: 1; +} + +#img{ + width:400px; + height: 200px; +} + +#b1:hover{ + background-color: white; + box-shadow: 0px 4px 4px; + color: black; +} + +#detail{ + background-color: #2F4F4F; + border-radius: 10px; + color: white; +} + +#overview{ + background-color: #2F4F4F; + border-radius:5px; + color: white; + height: 200px; + +} + + + +.col-md-3{ + left: 100px; + margin-left: 5px; + margin-top: 40px; +} + +.col-md-4{ + background-color: #2F4F4F; + border-radius:5px; + color: white; + height: 300px; + left: 140px; + margin-left: 5px; + margin-top: 40px; + margin-bottom: 20px; +} diff --git a/event.html b/event.html new file mode 100644 index 0000000..e1ab3a5 --- /dev/null +++ b/event.html @@ -0,0 +1,62 @@ + + + + EVENT one + + + + + + + + + +
+ +
+ + + +
+
+
+

About

+

Event Owner: Team .EXE

+ +
+
+

Details

+
    + +
  • Coding event
  • +
  • +
  • Exiting Prices
  • +
+
+ +
+

OverView

+

Started On : hh:mm

+

Closes On : hh:mm

+

Location : Auditorium

+
+
+ +
+
+

Detailed Description

+

+

+
+ +
+

Rules

+

+

+
+ +
+
+ + + diff --git a/hackathonApp.css b/hackathonApp.css deleted file mode 100644 index b6b4052..0000000 --- a/hackathonApp.css +++ /dev/null @@ -1 +0,0 @@ -/* CSS declarations go here */ diff --git a/hackathonApp.html b/hackathonApp.html deleted file mode 100644 index d878346..0000000 --- a/hackathonApp.html +++ /dev/null @@ -1,14 +0,0 @@ - - hackathonApp - - - -

Welcome to Meteor!

- - {{> hello}} - - - diff --git a/hackathonApp.js b/hackathonApp.js deleted file mode 100644 index 4f8c65d..0000000 --- a/hackathonApp.js +++ /dev/null @@ -1,23 +0,0 @@ -if (Meteor.isClient) { - // counter starts at 0 - Session.setDefault('counter', 0); - - Template.hello.helpers({ - counter: function () { - return Session.get('counter'); - } - }); - - Template.hello.events({ - 'click button': function () { - // increment the counter when button is clicked - Session.set('counter', Session.get('counter') + 1); - } - }); -} - -if (Meteor.isServer) { - Meteor.startup(function () { - // code to run on server at startup - }); -} diff --git a/image.jpg b/image.jpg new file mode 100755 index 0000000..8a52caa Binary files /dev/null and b/image.jpg differ diff --git a/lib/collections.js b/lib/collections.js new file mode 100644 index 0000000..048fb96 --- /dev/null +++ b/lib/collections.js @@ -0,0 +1,77 @@ +this.Events = new Mongo.Collection("events"); +Posters = new FS.Collection("posters", { + stores: [new FS.Store.FileSystem("posters", {path: 'public/event_posters/'})] +}); //Store Path needs to be changed + +// Event Schema +Events.attachSchema(new SimpleSchema({ + title: { + type: String, + label: "Name of the Event", + max: 200 + }, + description: { + type: String, + label: "Description of the Event", + max: 200 + }, + venue: { + type: String, + label: "Venue for the event", + max: 200 + }, + startTime: { + type: String, + autoform: { + afFieldInput: { + type: "datetimepicker" + } + }, + label: "Start Date and Time" + }, + endTime: { + type: String, + autoform: { + afFieldInput: { + type: "datetimepicker" + } + }, + label: "End Date and Time" + }, + targetAudience: { + type: String, + label: "Target Audience", + max: 200, + optional: true + }, + addedOn: { + type: String, + optional:true + }, + author: { + type: String, + optional:true + }, + poster: { + type: String, + autoform: { + afFieldInput: { + type: 'fileUpload', + collection: 'Posters', + accept: 'image/*', + label: 'Choose file', + previewTemplate: 'myFilePreview' + } + } + }, + contactPerson:{ + type: String, + max: 50, + label: "Whom to Contact?" + }, + contactNumber:{ + type: String, + max: 12, + label: "Contact Number" + } +})); diff --git a/server/main.js b/server/main.js new file mode 100644 index 0000000..fb20bda --- /dev/null +++ b/server/main.js @@ -0,0 +1,3 @@ +Meteor.startup(function () { + // code to run on server at startup +}); diff --git a/shared/main.js b/shared/main.js new file mode 100644 index 0000000..f4467f7 --- /dev/null +++ b/shared/main.js @@ -0,0 +1,15 @@ +Meteor.methods({ + addEvent: function(newEvent){ + user = Meteor.users.findOne({_id:Meteor.userId()}); + if (user.emails){ + if (Meteor.userId()){ + newEvent.startTime = Date.parse(newEvent.startTime); + newEvent.endTime = Date.parse(newEvent.endTime); + newEvent.author = Meteor.userId(); + Events.insert(newEvent); + } + } else { + alert("You are not authorized to post an Event"); + } + } +}); diff --git a/shared/style.css b/shared/style.css new file mode 100644 index 0000000..39a7eca --- /dev/null +++ b/shared/style.css @@ -0,0 +1,41 @@ +#heading{ + height: 200px; + background-color: #2B3856; + color: #FFFFFF; + padding-left: 30px; + font-family: "Times New Roman"; +} +#e { + height: 420px; + width: 280px; + border: 1px solid #111111; + border-radius: 5px; + margin-right: 5px; + margin-left: 20px; + } + +.photos{ + position: absolute; + top: 60px; + left: 0; + width: 100%; +} + +.event{ + position: absolute; + left: 0; + height: 40px; + width: 100%; + border-top-left-radius: 5px; + border-top-right-radius: 5px; + background-color: #4C4646; + padding:3px 0px 2px 5px; + font-size: 20px; + font-family: verdana,Geneva,sans-serif;; + color: #FFFFFF; +} + +.desc{ + position: absolute; + top: 300px; +}