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
| //replace com.company with your base package for errors | |
| //can call via renderErrors(cmd) or renderErrors([cmd1, cmd2]) | |
| private void renderErrors(cmd) { | |
| renderErrors([cmd]) | |
| } | |
| private void renderErrors(List commands) { | |
| render(contentType: "text/json") { | |
| status = "fail" |
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
| LocalStorageAppender.prototype = new log4javascript.Appender(); | |
| LocalStorageAppender.prototype.layout = new log4javascript.NullLayout(); | |
| LocalStorageAppender.prototype.threshold = log4javascript.Level.DEBUG; |
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
| LocalStorageAppender.prototype.append = function(loggingEvent) { | |
| var appender = this; | |
| var getFormattedMessage = function() { | |
| var layout = appender.getLayout(); | |
| var formattedMessage = layout.format(loggingEvent); | |
| if (layout.ignoresThrowable() && loggingEvent.exception) { | |
| formattedMessage += loggingEvent.getThrowableStrRep(); | |
| } | |
| return formattedMessage; |
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
| { | |
| "toFile" : [ | |
| {"from": "/js/(.+\\.js)", | |
| "to": "/js/$1"}, | |
| {"from": "/css/(.+\\.css)", | |
| "to": "/css/$1"} | |
| ] | |
| } |
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
| listeners: { | |
| boxready: function (component, eOpts) { | |
| Ext.each(Ext.query(".x-column-header-checkbox"), function(element) { | |
| setStyle(element, {'width': '25px'}); | |
| }); | |
| Ext.each(Ext.query(".x-grid-header-row :first"), function(element) { | |
| setStyle(element, {'width': '25px'}); | |
| }) | |
| } |
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
| /* | |
| Jasmine-Ajax : a set of helpers for testing AJAX requests under the Jasmine | |
| BDD framework for JavaScript. | |
| Supports both Prototype.js and jQuery. | |
| http://github.com/pivotal/jasmine-ajax | |
| Jasmine Home page: http://pivotal.github.com/jasmine |
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
| initComponent: function() { | |
| var me = this, | |
| scroll = me.scroll, | |
| vertical = false, | |
| horizontal = false, | |
| headerCtCfg = me.columns || me.colModel, | |
| view, | |
| border = me.border, |
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
| package com.hotelone.api.service | |
| import com.codahale.metrics.* | |
| import com.codahale.metrics.graphite.Graphite | |
| import com.codahale.metrics.graphite.GraphiteReporter | |
| import com.hotelone.api.adapters.TimedResourceMethodDispatchAdapter | |
| import com.hotelone.api.auth.ExampleAuthenticator | |
| import com.hotelone.api.auth.User | |
| import com.hotelone.api.bundles.SwaggerBundle | |
| import com.hmsonline.dropwizard.spring.SpringService |
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 com.github.jengelman.gradle.plugins.shadow.transformers.AppendingTransformer | |
| import com.github.jengelman.gradle.plugins.shadow.transformers.ManifestResourceTransformer | |
| import com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer | |
| buildscript { | |
| repositories { | |
| mavenLocal() | |
| mavenCentral() | |
| jcenter() | |
| maven { |
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
| package com.hotelone.rs.resources | |
| import javax.ws.rs.GET; | |
| import javax.ws.rs.Path; | |
| import javax.ws.rs.Produces; | |
| import javax.ws.rs.core.MediaType; | |
| @Path("/ws") | |
| @Component | |
| public class HelloWorldResource { |