-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
emailpassword.* |