This commit is contained in:
Tony Tam
2015-02-25 22:14:43 -08:00
6 changed files with 15 additions and 4 deletions

1
dist/lib/underscore-min.map vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -16,6 +16,7 @@ var watch = require('gulp-watch');
var connect = require('gulp-connect');
var header = require('gulp-header');
var pkg = require('./package.json');
var order = require('gulp-order');
var banner = ['/**',
' * <%= pkg.name %> - <%= pkg.description %>',
' * @version v<%= pkg.version %>',
@@ -69,6 +70,7 @@ gulp.task('dist', ['clean'], function() {
coffeescript(),
templates()
)
.pipe(order(['docs.js', 'scripts.js', 'templates.js']))
.pipe(concat('swagger-ui.js'))
.pipe(header(banner, { pkg: pkg } ))
.pipe(gulp.dest('./dist'))
@@ -103,7 +105,7 @@ gulp.task('copy', ['less'], function() {
// copy JavaScript files inside lib folder
gulp
.src(['./lib/**/*.js'])
.src(['./lib/**/*.{js,map}'])
.pipe(gulp.dest('./dist/lib'))
.on('error', gutil.log)
@@ -118,7 +120,7 @@ gulp.task('copy', ['less'], function() {
* Watch for changes and recompile
*/
gulp.task('watch', function() {
return watch(['./src/**/*.{coffee,js,less}'], function() {
return watch(['./src/**/*.{coffee,js,less,handlebars}'], function() {
gulp.start('default');
});
});

1
lib/underscore-min.map Normal file

File diff suppressed because one or more lines are too long

View File

@@ -35,6 +35,7 @@
"gulp-handlebars": "^3.0.1",
"gulp-header": "1.2.2",
"gulp-less": "^2.0.1",
"gulp-order": "^1.1.1",
"gulp-rename": "^1.2.0",
"gulp-uglify": "^1.1.0",
"gulp-util": "^3.0.2",

View File

@@ -24,11 +24,14 @@ class SwaggerUi extends Backbone.Router
@options = options
# set marked options
marked.setOptions(gfm: true)
# Set the callbacks
@options.success = =>
@options.success = =>
@render()
@options.progress = (d) => @showMessage(d)
@options.failure = (d) =>
@options.failure = (d) =>
@onLoadFailure(d)
# Create view to handle the header inputs

View File

@@ -1,3 +1,6 @@
{{#if required}}
<td class='code required'>{{name}}</td>
{{/if}}
<td class='code'>{{name}}</td>
<td>
<select {{#isArray this}} multiple='multiple'{{/isArray}} class='parameter' name='{{name}}'>