Skip to content

Commit

Permalink
Merge pull request #1189 from ploxiln/bump_handlebars
Browse files Browse the repository at this point in the history
nsqadmin: update run-time js deps, fix channel delete
  • Loading branch information
ploxiln authored Sep 22, 2019
2 parents 09b06de + 4d384b4 commit fa9f2b4
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 199 deletions.
32 changes: 16 additions & 16 deletions nsqadmin/bindata.go

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions nsqadmin/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ func (s *httpServer) staticAssetHandler(w http.ResponseWriter, req *http.Request
ct := mime.TypeByExtension(ext)
if ct == "" {
switch ext {
case ".map":
ct = "application/json"
case ".svg":
ct = "image/svg+xml"
case ".woff":
Expand Down
211 changes: 34 additions & 177 deletions nsqadmin/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions nsqadmin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
"gulp-sourcemaps": "^2.6.4",
"gulp-task-listing": "^1.0.0",
"gulp-uglify": "^3.0.1",
"handlebars": "^4.0.11",
"handlebars": "^4.2.0",
"hbsfy": "^2.8.1",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^2.0.0"
},
"dependencies": {
"backbone": "^1.2.3",
"backbone": "^1.4.0",
"bootbox": "^4.4.0",
"bootstrap": "^3.3.6",
"jquery": "^3.3.1",
"moment": "^2.11.2",
"bootstrap": "^3.4.1",
"jquery": "^3.4.1",
"moment": "^2.24.0",
"underscore": "^1.8.3"
},
"browserify": {
Expand Down
3 changes: 2 additions & 1 deletion nsqadmin/static/js/views/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ var ChannelView = BaseView.extend({
return;
}
if (action === 'delete') {
var topic = this.model.get('topic');
$.ajax(this.model.url(), {'method': 'DELETE'})
.done(function() {
window.location = AppState.basePath('/topics/' +
encodeURIComponent(this.model.get('topic')));
encodeURIComponent(topic));
})
.fail(this.handleAJAXError.bind(this));
} else {
Expand Down

0 comments on commit fa9f2b4

Please sign in to comment.