-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MWS: fix a few obvious bugs that typescript caught #8886
base: multi-wiki-support
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ POST /admin/delete-acl | |
/*global $tw: false */ | ||
"use strict"; | ||
|
||
var aclMiddleware = require("$:/plugins/tiddlywiki/multiwikiserver/modules/routes/helpers/acl-middleware.js").middleware; | ||
var aclMiddleware = require("$:/plugins/tiddlywiki/multiwikiserver/routes/helpers/acl-middleware.js").middleware; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The upstream title was right. |
||
|
||
exports.method = "POST"; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ DELETE /bags/:bag_name/tiddler/:title | |
/*global $tw: false */ | ||
"use strict"; | ||
|
||
var aclMiddleware = require("$:/plugins/tiddlywiki/multiwikiserver/modules/routes/helpers/acl-middleware.js").middleware; | ||
var aclMiddleware = require("$:/plugins/tiddlywiki/multiwikiserver/routes/helpers/acl-middleware.js").middleware; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. upstream title is right --- please check all of them |
||
|
||
exports.method = "DELETE"; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,9 +22,7 @@ exports.startup = function() { | |
const store = setupStore(); | ||
$tw.mws = { | ||
store: store, | ||
serverManager: new ServerManager({ | ||
store: store | ||
}) | ||
serverManager: new ServerManager() | ||
}; | ||
} | ||
|
||
|
@@ -44,7 +42,7 @@ function setupStore() { | |
return store; | ||
} | ||
|
||
function ServerManager(store) { | ||
function ServerManager() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think removing it, is not right. But @Jermolene there is an inconsistency. Here it says:
Which seems to be an options object. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The option is not used anywhere. Store is passed in somewhere else, not here. |
||
this.servers = []; | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am sure that this change is wrong. There is no TW title without the
modules
subdirectory.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most plugins, except evernote and text-slicer, leave it out. Core appears to leave it in. I don't have an opinion either way.