-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #490 - Correctly replace <year> tag in custom notifications
Add .eslintrc.yaml to define the code style standards for better formatting. Ran eslint against the entire project to get all code in a standardized format Begin cleaning up old code that was not using best practices. Still have a bunch to do on this front but things are much cleaner now. Add firstRun entry into the Settings collection which will give the ability to perform specific actions the first time Plexrequests is started up. Various minor bug fixes Signed-off-by: Ricky Grassmuck <[email protected]>
- Loading branch information
1 parent
8a0a74d
commit 5d95537
Showing
7,116 changed files
with
466,607 additions
and
3,871 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
.meteor/ |
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,57 @@ | ||
env: | ||
browser: true | ||
es6: true | ||
node: true | ||
meteor: true | ||
|
||
extends: | ||
- eslint:recommended | ||
- plugin:meteor/recommended | ||
|
||
plugins: | ||
- meteor | ||
|
||
parserOptions: | ||
sourceType: module | ||
|
||
rules: | ||
indent: | ||
- error | ||
- 4 | ||
linebreak-style: | ||
- error | ||
- unix | ||
quotes: | ||
- error | ||
- single | ||
semi: [2, 'never'] | ||
no-unexpected-multiline: 2 | ||
no-throw-literal: 0 | ||
|
||
# eslint-plugin-meteor | ||
meteor/no-session: [0] # allow Session | ||
meteor/prefer-session-equals: [2] # prefer Session.equals instead | ||
|
||
globals: | ||
logger: true | ||
TV: true | ||
Settings: true | ||
Movie: true | ||
AdminConfig: true | ||
Async: true | ||
AutoForm: true | ||
Bert: true | ||
CouchPotato: true | ||
media: true | ||
moment: true | ||
Movies: true | ||
Radarr: true | ||
request: true | ||
SickRage: true | ||
SimpleSchema: true | ||
Sonarr: true | ||
SyncedCron: true | ||
tmdbId: true | ||
TMDBSearch: true | ||
xml2js: true | ||
Permissions: true |
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 |
---|---|---|
|
@@ -4,3 +4,4 @@ _site | |
*.log | ||
/data | ||
*.idea/ | ||
*.msg |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Bert.defaults = { | ||
hideDelay: 4500, | ||
style: 'fixed-bottom', | ||
type: 'default' | ||
}; | ||
hideDelay: 4500, | ||
style: 'fixed-bottom', | ||
type: 'default' | ||
} |
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
Template.registerHelper('plexUser', function () { | ||
return Session.get("user"); | ||
}); | ||
return Session.get('user') | ||
}) | ||
|
||
Template.registerHelper('auth', function () { | ||
var auth = function () { | ||
if (Session.get("auth") === "true") { | ||
return true; | ||
} else if (Meteor.userId()) { | ||
return true; | ||
} else { | ||
return false; | ||
} | ||
}; | ||
return auth(); | ||
}); | ||
var auth = function () { | ||
if (Session.equals('auth', 'true')) { | ||
return true | ||
} else if (Meteor.userId()) { | ||
return true | ||
} else { | ||
return false | ||
} | ||
} | ||
return auth() | ||
}) | ||
|
||
Template.registerHelper('plexAuth', function () { | ||
return Session.get("auth") === "true"; | ||
}); | ||
return Session.equals('auth', 'true') | ||
}) |
Oops, something went wrong.