-
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #248 from sebakerckhof/modernize
Remove underscore + modernize code base
- Loading branch information
Showing
50 changed files
with
849 additions
and
942 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,5 @@ node_modules | |
npm-debug.log | ||
*.sublime-workspace | ||
.vscode | ||
|
||
.idea/ | ||
.idea | ||
.npm |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import './insert.js' | ||
import './update.js' | ||
import './remove.js' | ||
import './upsert.js' | ||
import './find.js' | ||
import './findone.js' | ||
|
||
// Load after all advices have been defined | ||
import './users-compat.js' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Meteor } from 'meteor/meteor' | ||
import { Tracker } from 'meteor/tracker' | ||
import { CollectionHooks } from './collection-hooks.js' | ||
|
||
import './advices' | ||
|
||
CollectionHooks.getUserId = function getUserId () { | ||
let userId | ||
|
||
Tracker.nonreactive(() => { | ||
userId = Meteor.userId && Meteor.userId() | ||
}) | ||
|
||
if (userId == null) { | ||
userId = CollectionHooks.defaultUserId | ||
} | ||
|
||
return userId | ||
} | ||
|
||
export { | ||
CollectionHooks | ||
} |
This file contains 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
Oops, something went wrong.