Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .meteor/.finished-upgraders
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 15 additions & 1 deletion .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .meteor/release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
METEOR@1.2.1
METEOR@1.3
196 changes: 130 additions & 66 deletions .meteor/versions
Original file line number Diff line number Diff line change
@@ -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
Binary file added SpicMacay.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions client/addEvent.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<template name="addEventForm">
<div class="container eventDabba">
<div class="col-md-6">
{{#autoForm collection="Events" id="addEventForm" type="method" meteormethod="addEvent"}}
<fieldset>
<legend>Post a new Event</legend>
{{> afQuickField name='title'}}
{{> afQuickField name='description' rows=3 placeholder="A little description of the event"}}
{{> afQuickField name='eventid' value=eventid type="hidden"}}
{{> afQuickField name='addedOn' value=current_date type="hidden"}}
{{> afQuickField name='venue' placeholder="For e.g. Audi, CC"}}
{{> afQuickField name="startTime" type="datetimepicker"}}
{{> afQuickField name="endTime" type="datetimepicker"}}
{{> afQuickField name='targetAudience' placeholder="For e.g. First year, CSE and ECE"}}
{{> afQuickField name="author" type="hidden" value=author}}
{{> afQuickField name="contactPerson" placeholder="Name of the Person"}}
{{> afQuickField name="contactNumber"}}
{{> afQuickField name="poster" class="file fileInput"}}
</fieldset>
<button type="submit" class="btn btn-primary">Post</button>
{{/autoForm}}
</div>
</div>
</template>
3 changes: 3 additions & 0 deletions client/event.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template name="eventPage">

</template>
20 changes: 20 additions & 0 deletions client/eventList.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<template name="eventList">
<br><br>
<div class="jumbotron" id="heading">
<h1>Upcoming Events</h1>
</div>

<div class="container-fluid">
{{#each events}}
<div class="col-sm-3" id="e">
<a href="https://google.com">
<div class="event">{{title}}</div>
<div class="desc">{{description}}<br>Date: {{startTime}}</div>
<div class="photos">
<img src="image.jpg" alt="Event image" width="278" height="210">
</div>
</a>
</div>
{{/each}}
</div>
</template>
7 changes: 7 additions & 0 deletions client/events.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<template name="ApplicationLayout">

{{>yield "header"}}

{{>yield "main"}}

</template>
79 changes: 79 additions & 0 deletions client/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
Router.configure({
layoutTemplate: 'ApplicationLayout'
});

Router.route('/', function(){
$('head').append( '<title>NITH Events Portal</title>' );
this.render("navbar", {to:"header"});
this.render("eventList", {to:"main"});
});

Router.route('/pastEvents', function(){
$('head').append( '<title>NITH Events Portal</title>' );
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);
}
});
});
}
});
13 changes: 13 additions & 0 deletions client/navbar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template name="navbar">
<div class="row">
<nav class="navbar navbar-inverse navbar-top">
<div class="container">
<a class="navbar-brand" href="/">NITH Events Portal</a>
<ul class="nav navbar-nav">
<li><a href="/addEvent"><span class="glyphicon glpyhicon-plus"></span>Post a New Event</a></li>
</ul>
<p class="navbar-text navbar-right">{{>loginButtons}}</p>
</div> <!-- end nav container -->
</nav>
</div>
</template>
Loading