This file contains hidden or 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
sealed trait ChunkState | |
object ChunkState extends CrowdscriberEnum[ChunkState] { | |
override def toString = "ChunkState" | |
val values = Set(ASSIGNED, EXPIRED, IN_PROGRESS, SUBMITTED, APPROVED, REJECTED, NEEDS_EDITING, COMPLETE) | |
val stringMap = values.map(v => (v.toString, v)).toMap | |
def valueOf(s: String) = stringMap.get(s) | |
object ASSIGNED extends ChunkState { override def toString = "ASSIGNED" } | |
object EXPIRED extends ChunkState { override def toString = "EXPIRED" } |
This file contains hidden or 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
implicit val chunkStateType = MappedColumnType.base[ChunkState,String]( | |
{ cs:ChunkState => cs.toString}, | |
{ s: String => ChunkState.valueOf(s).get} | |
) |
This file contains hidden or 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
find_target(){ | |
## The target directory | |
_target=$1 | |
## Iterate through the parent directories | |
printf "%s\n" "$PWD" | sed -r 's#/#/\n#g' | | |
while read parent_dir; | |
do | |
## Check if the target directory exists under this | |
## aprent directory and if it does, print the | |
## target's path and break the loop. |
This file contains hidden or 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
def complete(status: StatusCode) | |
def complete[T :Marshaller](obj: T) | |
def complete[T :Marshaller](status: StatusCode, obj: T) | |
def complete[T :Marshaller](status: StatusCode, headers: List[HttpHeader], obj: T) | |
def complete(response: HttpResponse) | |
def complete(future: Future[HttpResponse]) | |
def complete(future: Future[StatusCode]) |
This file contains hidden or 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
BuildingBuilding.Cleanup error. | |
Object function glob(pattern, options, cb) { | |
if (typeof options === "function") cb = options, options = {} | |
if (!options) options = {} | |
if (typeof options === "number") { | |
deprecated() | |
return | |
} |
This file contains hidden or 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
import constants from 'tpr-tol-ui/constants/main'; | |
export var initialize = function(container, app) { | |
app.register('constants:main', constants); | |
app.inject('controller' , 'constants', 'constants:main'); | |
app.inject('view' , 'constants', 'constants:main'); | |
app.inject('model' , 'constants', 'constants:main'); | |
app.inject('route' , 'constants', 'constants:main'); | |
app.inject('component' , 'constants', 'constants:main'); |
This file contains hidden or 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
$.ajaxSetup({ | |
statusCode : { | |
//403 should mean they don't have a session, however if we | |
//throw 403s for more granular pressision checks, we'll want | |
//to do some further checking here to see if the session is | |
//indeed invalid before showing the session expiry dialog | |
//and bouncing them to the landing page | |
403: function() { | |
var route = container.lookup('route:application'); | |
var sessionController = container.lookup('controller:session'); |
This file contains hidden or 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
export default function translationsFr() { | |
return { | |
"landTitlesOnline":"Titres fonciers en ligne", | |
"titlesOnline":"Titres en ligne", | |
"login":"Connexion", | |
"logoff":"Déconnexion", | |
"password":"Mot de passe", | |
"changePassword":"Changer le mot de passe.", | |
"login.securedSite":"Le présent site est sécurisé. Vous devez être un utilisateur autorisé pour y accéder. Remplacer par les instructions d'accès.", | |
"login.forgottenCredentials":"Si vous avez oublié votre identificateur d'utilisateur ou votre mot de passe, remplacer par les instructions pour recouvrer l'accès.", |
This file contains hidden or 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
var route = container.lookup('route:application'); | |
route.render('confirmation-modal', { | |
into: 'application', | |
outlet: 'modal', | |
model: {message: 'OHAI!'} | |
}); |
This file contains hidden or 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
{ | |
"name": "tpr-tol-ui", | |
"dependencies": { | |
"handlebars": "~1.3.0", | |
"jquery": "^1.11.1", | |
"ember": "1.7.0", | |
"ember-data": "1.0.0-beta.12", | |
"ember-resolver": "~0.1.7", | |
"loader.js": "stefanpenner/loader.js#1.0.1", | |
"ember-cli-shims": "stefanpenner/ember-cli-shims#0.0.3", |