Permalink
Browse files

Added gitignore

  • Loading branch information...
1 parent 2c6654c commit e7504182b20aba7d481545e162d59e4673db5868 @toantran committed Mar 24, 2012
Showing with 82 additions and 0 deletions.
  1. +10 −0 coffee/public/js/index.coffee
  2. +18 −0 coffee/repository/customers.coffee
  3. +17 −0 public/js/index.js
  4. +36 −0 repository/customers.js
  5. +1 −0 services/.gitignore
@@ -0,0 +1,10 @@
+jQuery ($) ->
+ initialize = ->
+ mapOptions =
+ center: new google.maps.LatLng(-34.397, 150.644)
+ zoom: 16
+ mapTypeId: google.maps.MapTypeId.ROADMAP
+
+ map = new google.maps.Map( document.getElementById("map_canvas"), mapOptions )
+
+ initialize()
@@ -0,0 +1,18 @@
+baseDb = require('./base')
+baseRepo = new baseDb.repository('customers')
+
+{Db, ObjectId, Timestamp, Connection, Server, checkError, errorHandler, getDb} = baseDb
+
+exports.create = () ->
+ baseRepo.create.apply baseRepo, arguments
+exports.read = () ->
+ baseRepo.read.apply baseRepo, arguments
+exports.update = () ->
+ baseRepo.update.apply baseRepo, arguments
+exports.save = () ->
+ baseRepo.save.apply baseRepo, arguments
+exports.remove = () ->
+ baseRepo.remove.apply baseRepo, arguments
+exports.getById = () ->
+ baseRepo.getById.apply baseRepo, arguments
+exports.ObjectId = ObjectId
View
@@ -0,0 +1,17 @@
+(function() {
+
+ jQuery(function($) {
+ var initialize;
+ initialize = function() {
+ var map, mapOptions;
+ mapOptions = {
+ center: new google.maps.LatLng(-34.397, 150.644),
+ zoom: 16,
+ mapTypeId: google.maps.MapTypeId.ROADMAP
+ };
+ return map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
+ };
+ return initialize();
+ });
+
+}).call(this);
View
@@ -0,0 +1,36 @@
+(function() {
+ var Connection, Db, ObjectId, Server, Timestamp, baseDb, baseRepo, checkError, errorHandler, getDb;
+
+ baseDb = require('./base');
+
+ baseRepo = new baseDb.repository('customers');
+
+ Db = baseDb.Db, ObjectId = baseDb.ObjectId, Timestamp = baseDb.Timestamp, Connection = baseDb.Connection, Server = baseDb.Server, checkError = baseDb.checkError, errorHandler = baseDb.errorHandler, getDb = baseDb.getDb;
+
+ exports.create = function() {
+ return baseRepo.create.apply(baseRepo, arguments);
+ };
+
+ exports.read = function() {
+ return baseRepo.read.apply(baseRepo, arguments);
+ };
+
+ exports.update = function() {
+ return baseRepo.update.apply(baseRepo, arguments);
+ };
+
+ exports.save = function() {
+ return baseRepo.save.apply(baseRepo, arguments);
+ };
+
+ exports.remove = function() {
+ return baseRepo.remove.apply(baseRepo, arguments);
+ };
+
+ exports.getById = function() {
+ return baseRepo.getById.apply(baseRepo, arguments);
+ };
+
+ exports.ObjectId = ObjectId;
+
+}).call(this);
View
@@ -0,0 +1 @@
+emailpassword.*

0 comments on commit e750418

Please sign in to comment.