Skip to content

Commit

Permalink
Added gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
toantran committed Mar 24, 2012
1 parent 2c6654c commit e750418
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 0 deletions.
10 changes: 10 additions & 0 deletions coffee/public/js/index.coffee
Original file line number Diff line number Diff line change
@@ -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()
18 changes: 18 additions & 0 deletions coffee/repository/customers.coffee
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions public/js/index.js
Original file line number Diff line number Diff line change
@@ -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);
36 changes: 36 additions & 0 deletions repository/customers.js
Original file line number Diff line number Diff line change
@@ -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);
1 change: 1 addition & 0 deletions services/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
emailpassword.*

0 comments on commit e750418

Please sign in to comment.