From ee409174f175c066fe278411873afda32f1841cd Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Wed, 7 Sep 2016 12:58:26 -0500 Subject: [PATCH] Format files to adhere to editorconfig (#7977) --- common/locales/en/gear.json | 16 +++++----- tasks/gulp-tests.js | 14 ++++----- website/client/css/avatar.styl | 14 ++++----- website/client/css/challenges.styl | 4 +-- website/client/css/classes.styl | 2 +- website/client/css/customizer.styl | 10 +++---- website/client/css/filters.styl | 4 +-- website/client/css/footer.styl | 2 +- website/client/css/game-pane.styl | 30 +++++++++---------- website/client/css/index.styl | 12 ++++---- website/client/css/inventory.styl | 2 +- website/client/css/loading-screen.styl | 4 +-- website/client/css/scrollbars.styl | 2 +- website/client/css/static.styl | 4 +-- website/client/js/config.js | 4 +-- website/client/js/controllers/authCtrl.js | 2 +- website/client/js/controllers/headerCtrl.js | 2 +- .../js/controllers/sortableInventoryCtrl.js | 2 +- website/client/js/env.js | 4 +-- website/client/js/services/pusherService.js | 4 +-- website/server/controllers/api-v3/iap.js | 2 +- .../server/controllers/top-level/qrcodes.js | 2 +- website/server/libs/inAppPurchases.js | 2 +- website/server/libs/password.js | 2 +- website/server/libs/pusher.js | 2 +- website/server/libs/setupMongoose.js | 2 +- website/server/models/user/methods.js | 2 +- website/views/avatar-static.jade | 4 +-- .../options/social/quests/bossStats.jade | 4 +-- .../social/quests/collectionStats.jade | 2 +- website/views/shared/formatting-help.jade | 2 +- .../views/shared/modals/amazon-payments.jade | 2 +- website/views/shared/modals/buy-gems.jade | 2 +- .../views/shared/modals/quest-rewards.jade | 4 +-- website/views/shared/modals/rebirth.jade | 4 +-- website/views/shared/modals/reroll.jade | 2 +- website/views/shared/modals/settings.jade | 4 +-- website/views/shared/new-stuff.jade | 6 ++-- .../views/shared/tasks/edit/checklist.jade | 2 +- website/views/shared/tasks/meta_controls.jade | 2 +- 40 files changed, 96 insertions(+), 96 deletions(-) diff --git a/common/locales/en/gear.json b/common/locales/en/gear.json index 46b238b388..b3cf0999cf 100644 --- a/common/locales/en/gear.json +++ b/common/locales/en/gear.json @@ -148,7 +148,7 @@ "weaponSpecialSummer2015MageNotes": "Hidden power glimmers in the jewels of this staff. Increases Intelligence by <%= int %> and Perception by <%= per %>. Limited Edition 2015 Summer Gear.", "weaponSpecialSummer2015HealerText": "Wand of the Waves", "weaponSpecialSummer2015HealerNotes": "Cures seasickness and sea sickness! Increases Intelligence by <%= int %>. Limited Edition 2015 Summer Gear.", - + "weaponSpecialFall2015RogueText": "Bat-tle Ax", "weaponSpecialFall2015RogueNotes": "Fearsome To-Dos cower before the flapping of this ax. Increases Strength by <%= str %>. Limited Edition 2015 Autumn Gear.", "weaponSpecialFall2015WarriorText": "Wooden Plank", @@ -184,7 +184,7 @@ "weaponSpecialSummer2016MageNotes": "All the power of the seas filters through this staff. Increases Intelligence by <%= int %> and Perception by <%= per %>. Limited Edition 2016 Summer Gear.", "weaponSpecialSummer2016HealerText": "Healing Trident", "weaponSpecialSummer2016HealerNotes": "One spike harms, the other heals. Increases Intelligence by <%= int %>. Limited Edition 2016 Summer Gear.", - + "weaponMystery201411Text": "Pitchfork of Feasting", "weaponMystery201411Notes": "Stab your enemies or dig in to your favorite foods - this versatile pitchfork does it all! Confers no benefit. November 2014 Subscriber Item.", "weaponMystery201502Text": "Shimmery Winged Staff of Love and Also Truth", @@ -365,7 +365,7 @@ "armorSpecialSummer2015MageNotes": "Hidden power resides in the puffs of these sleeves. Increases Intelligence by <%= int %>. Limited Edition 2015 Summer Gear.", "armorSpecialSummer2015HealerText": "Sailor's Armor", "armorSpecialSummer2015HealerNotes": "This armor lets everyone know that you are an honest merchant sailor who would never dream of behaving like a scalawag. Increases Constitution by <%= con %>. Limited Edition 2015 Summer Gear.", - + "armorSpecialFall2015RogueText": "Bat-tle Armor", "armorSpecialFall2015RogueNotes": "Fly into bat-tle! Increases Perception by <%= per %>. Limited Edition 2015 Autumn Gear.", "armorSpecialFall2015WarriorText": "Scarecrow Armor", @@ -374,7 +374,7 @@ "armorSpecialFall2015MageNotes": "Every stitch in this armor shimmers with enchantment. Increases Intelligence by <%= int %>. Limited Edition 2015 Autumn Gear.", "armorSpecialFall2015HealerText": "Potioner Robes", "armorSpecialFall2015HealerNotes": "What? Of course that was a potion of constitution. No, you are definitely not turning into a frog! Don't be ribbiticulous. Increases Constitution by <%= con %>. Limited Edition 2015 Autumn Gear.", - + "armorSpecialWinter2016RogueText": "Cocoa Armor", "armorSpecialWinter2016RogueNotes": "This leather armor keeps you nice and toasty. Is it actually made from cocoa? You'll never tell. Increases Perception by <%= per %>. Limited Edition 2015-2016 Winter Gear.", "armorSpecialWinter2016WarriorText": "Snowman Suit", @@ -401,7 +401,7 @@ "armorSpecialSummer2016MageNotes": "This slippery garment transforms its wearer into a real Dolphin Mage! Increases Intelligence by <%= int %>. Limited Edition 2016 Summer Gear.", "armorSpecialSummer2016HealerText": "Seahorse Tail", "armorSpecialSummer2016HealerNotes": "This spiky garment transforms its wearer into a real Seahorse Healer! Increases Constitution by <%= con %>. Limited Edition 2016 Summer Gear.", - + "armorMystery201402Text": "Messenger Robes", "armorMystery201402Notes": "Shimmering and strong, these robes have many pockets to carry letters. Confers no benefit. February 2014 Subscriber Item.", "armorMystery201403Text": "Forest Walker Armor", @@ -845,14 +845,14 @@ "shieldSpecialSummer2015WarriorNotes": "Crafted of deep-ocean metal by the artisans of Dilatory, this shield shines like the sand and the sea. Increases Constitution by <%= con %>. Limited Edition 2015 Summer Gear.", "shieldSpecialSummer2015HealerText": "Strapping Shield", "shieldSpecialSummer2015HealerNotes": "Use this shield to bash away bilge rats. Increases Constitution by <%= con %>. Limited Edition 2015 Summer Gear.", - + "shieldSpecialFall2015RogueText": "Bat-tle Ax", "shieldSpecialFall2015RogueNotes": "Fearsome To-Dos cower before the flapping of this ax. Increases Strength by <%= str %>. Limited Edition 2015 Autumn Gear.", "shieldSpecialFall2015WarriorText": "Birdseed Bag", "shieldSpecialFall2015WarriorNotes": "It's true that you're supposed to be SCARING the crows, but there's nothing wrong with making friends! Increases Constitution by <%= con %>. Limited Edition 2015 Autumn Gear.", "shieldSpecialFall2015HealerText": "Stirring Stick", "shieldSpecialFall2015HealerNotes": "This stick can stir anything without melting, dissolving, or bursting into flame! It can also be used to fiercely poke enemy tasks. Increases Constitution by <%= con %>. Limited Edition 2015 Autumn Gear.", - + "shieldSpecialWinter2016RogueText": "Cocoa Mug", "shieldSpecialWinter2016RogueNotes": "Warming drink, or boiling projectile? You decide... Increases Strength by <%= str %>. Limited Edition 2015-2016 Winter Gear.", "shieldSpecialWinter2016WarriorText": "Sled Shield", @@ -873,7 +873,7 @@ "shieldSpecialSummer2016WarriorNotes": "Bite those tough tasks with this toothy shield! Increases Constitution by <%= con %>. Limited Edition 2016 Summer Gear.", "shieldSpecialSummer2016HealerText": "Sea Star Shield", "shieldSpecialSummer2016HealerNotes": "Sometimes mistakenly called a Starfish Shield. Increases Constitution by <%= con %>. Limited Edition 2016 Summer Gear.", - + "shieldMystery201601Text": "Resolution Slayer", "shieldMystery201601Notes": "This blade can be used to parry away all distractions. Confers no benefit. January 2016 Subscriber Item.", "shieldMystery301405Text": "Clock Shield", diff --git a/tasks/gulp-tests.js b/tasks/gulp-tests.js index e7dd6e01f0..d3e18d2ace 100644 --- a/tasks/gulp-tests.js +++ b/tasks/gulp-tests.js @@ -90,7 +90,7 @@ gulp.task('test:sanity', (cb) => { let runner = exec( testBin(SANITY_TEST_COMMAND), (err, stdout, stderr) => { - cb(err); + cb(err); } ); pipe(runner); @@ -100,7 +100,7 @@ gulp.task('test:common', ['test:prepare:build'], (cb) => { let runner = exec( testBin(COMMON_TEST_COMMAND), (err, stdout, stderr) => { - cb(err); + cb(err); } ); pipe(runner); @@ -135,7 +135,7 @@ gulp.task('test:content', ['test:prepare:build'], (cb) => { testBin(CONTENT_TEST_COMMAND), CONTENT_OPTIONS, (err, stdout, stderr) => { - cb(err); + cb(err); } ); pipe(runner); @@ -170,7 +170,7 @@ gulp.task('test:server_side', ['test:prepare:build'], (cb) => { let runner = exec( testBin(SERVER_SIDE_TEST_COMMAND), (err, stdout, stderr) => { - cb(err); + cb(err); } ); pipe(runner); @@ -196,7 +196,7 @@ gulp.task('test:karma', ['test:prepare:build'], (cb) => { let runner = exec( testBin(KARMA_TEST_COMMAND), (err, stdout) => { - cb(err); + cb(err); } ); pipe(runner); @@ -206,7 +206,7 @@ gulp.task('test:karma:watch', ['test:prepare:build'], (cb) => { let runner = exec( testBin(`${KARMA_TEST_COMMAND}:watch`), (err, stdout) => { - cb(err); + cb(err); } ); pipe(runner); @@ -334,4 +334,4 @@ gulp.task('test:api-v3', (done) => { 'test:api-v3:integration', done ); -}); \ No newline at end of file +}); diff --git a/website/client/css/avatar.styl b/website/client/css/avatar.styl index 690dc1bb79..d2c26eb408 100644 --- a/website/client/css/avatar.styl +++ b/website/client/css/avatar.styl @@ -36,7 +36,7 @@ future re: pets and whatnot, this is just temporary. margin: 0 // need this b/c of bootstrap, remove or reset later position: relative cursor: pointer - + // Username and Level .avatar-level, .avatar-name position: absolute @@ -56,17 +56,17 @@ future re: pets and whatnot, this is just temporary. left: 4px opacity: 0 // Hide username by default transition: opacity 0.2s ease-out - + // Show username if not using mount or background &.isUser.noBackgroundImage:not(.hasMount) .avatar-name opacity: 1 - + // Show username on hover and focus &:hover, &:focus .avatar-name opacity: 1 - + // Sprite positioning – Base styles .character-sprites width: 6.428571429em // 90px @@ -75,13 +75,13 @@ future re: pets and whatnot, this is just temporary. span position: absolute padding-top: 2em - + // Sprite positioning – Position avatar sprite differently if they have a pet or a mount &.hasPet - padding-top: 1.75em + padding-top: 1.75em &.hasMount padding-top:0em - + // Backgrounds – Set a background color when no background image is set &.noBackgroundImage background: darken($color-herobox, 8%) diff --git a/website/client/css/challenges.styl b/website/client/css/challenges.styl index 23add6cd34..ccf1f3edc0 100644 --- a/website/client/css/challenges.styl +++ b/website/client/css/challenges.styl @@ -14,7 +14,7 @@ ul.challenge-accordion-header-specs margin-right: 5px; #back-to-challenges, #create-challenge-btn - margin-bottom: 10px + margin-bottom: 10px #challenges-filters h3 - margin-top: 0px; + margin-top: 0px; diff --git a/website/client/css/classes.styl b/website/client/css/classes.styl index 9c1cb75242..7c7a36d6be 100644 --- a/website/client/css/classes.styl +++ b/website/client/css/classes.styl @@ -14,4 +14,4 @@ html.applying-action, html.applying-action * .cast-target:hover border: 5px solid green !important .selected-class - background-color: green \ No newline at end of file + background-color: green diff --git a/website/client/css/customizer.styl b/website/client/css/customizer.styl index db55182703..853f743561 100644 --- a/website/client/css/customizer.styl +++ b/website/client/css/customizer.styl @@ -2,7 +2,7 @@ .avatar-window float: right; - margin: 0 1em 0 0 + margin: 0 1em 0 0 menu padding: 0; @@ -13,7 +13,7 @@ menu width: 100%; list-style: none; padding-bottom: 10px - + menu:before content: attr(label); display: block; @@ -33,7 +33,7 @@ menu border: 0px solid grey background-color: hsl(0, 0%, 93%) margin-bottom: 10px - + -webkit-transition: background-color 0.5s ease-out -moz-transition: background-color 0.5s ease-out transition: background-color 0.5s ease-out @@ -43,10 +43,10 @@ menu -webkit-transition: none -moz-transition: none transition: none - + .customize-option:not(:last-of-type) margin-right: 10px - + @media (max-width: 480px) { .avatar-window { diff --git a/website/client/css/filters.styl b/website/client/css/filters.styl index 0befc47658..932c2225b3 100644 --- a/website/client/css/filters.styl +++ b/website/client/css/filters.styl @@ -6,7 +6,7 @@ ul float: left list-style: none - margin-right: 1em + margin-right: 1em .filters-controls @extend $hrpg-button-bar-with-heading hrpg-button-bar-mixin($color-options-menu) @@ -32,7 +32,7 @@ margin-top: -.5em markdown display: inline-block - .hrpg-input-group + .hrpg-input-group display: inline-block margin-right: 0.618em @extend $hrpg-button-with-input diff --git a/website/client/css/footer.styl b/website/client/css/footer.styl index ad03be3f23..160bf3e81d 100644 --- a/website/client/css/footer.styl +++ b/website/client/css/footer.styl @@ -6,4 +6,4 @@ margin-top: 40px padding-bottom: 20px border-top: 1px solid #e5e5e5 - background-color: #f5f5f5 \ No newline at end of file + background-color: #f5f5f5 diff --git a/website/client/css/game-pane.styl b/website/client/css/game-pane.styl index 300653a383..eb37c2cc2d 100644 --- a/website/client/css/game-pane.styl +++ b/website/client/css/game-pane.styl @@ -38,10 +38,10 @@ .long-title .tooltip white-space: normal - + span.time white-space: nowrap - + .chat-plus-one opacity: 0 background-color: #eee @@ -62,18 +62,18 @@ &.highlight background: #EEE - + label margin-right:5px - + .float-label float:left position:absolute top:17px; - + .hidden-label visibility:hidden - + .scrollable-message max-height: 6.472em overflow-y:auto @@ -82,7 +82,7 @@ // 20px normally margin-top:5px margin-bottom:5px - + .expander float: right position: absolute @@ -98,11 +98,11 @@ .own-message border-left: 4px solid #333 padding-left: 2px - + markdown p:first-child display:inline - + img max-height:50px vertical-align:top @@ -168,12 +168,12 @@ hrpg-contributor-label-mixin($hrpg-contributor-color) .buttonList li margin: 5px - + .option-group .option-time padding: 0px 5px // Autocomplete [TODO] make this nicer -.list-at-user +.list-at-user width: 100% max-width: 120px position: absolute @@ -182,24 +182,24 @@ hrpg-contributor-label-mixin($hrpg-contributor-color) z-index: 10 -.list-at-user li +.list-at-user li line-height:14px border-bottom: 1px solid #a4a4a4 list-style-type: none -.list-at-user li:hover +.list-at-user li:hover cursor: pointer background: #b9dff4 -.list-at-user li span +.list-at-user li span margin: 2px font-size: 11.844px margin-left: 5px display: inline-block -.list-cur +.list-cur background: #b9dff4 diff --git a/website/client/css/index.styl b/website/client/css/index.styl index c9bea9f337..2b4bc2b11a 100644 --- a/website/client/css/index.styl +++ b/website/client/css/index.styl @@ -49,7 +49,7 @@ hr /* Customizations to make footer sticky */ -html, body +html, body height: 100% #wrap @@ -59,7 +59,7 @@ html, body height: auto !important @media (max-width: 600px) - #wrap + #wrap margin-top: 0 padding: 0 4px; overflow-x: hidden; @@ -67,7 +67,7 @@ html, body /* Gems -------------------------------------------------- */ /* Adaptation of GH's social-count for Gems */ - + .gem-cost border: 1px solid #D4D4D4; font-size: 11px; @@ -79,7 +79,7 @@ html, body color: #333; background-color: #FAFAFA; position: relative; - + .gem-cost::before content: "" display: block @@ -151,9 +151,9 @@ a.label .muted color: #999 -.btn +.btn margin-right: 5px -.panel-heading .btn // Fixing improper vertical alignment of buttons in panel headers +.panel-heading .btn // Fixing improper vertical alignment of buttons in panel headers margin-top: -8px .vertical-align diff --git a/website/client/css/inventory.styl b/website/client/css/inventory.styl index 39db3d7ee1..9ba3728bd9 100644 --- a/website/client/css/inventory.styl +++ b/website/client/css/inventory.styl @@ -39,7 +39,7 @@ .stable .static-popover max-width: 550px -menu.pets div +menu.pets div display: inline-block vertical-align: top diff --git a/website/client/css/loading-screen.styl b/website/client/css/loading-screen.styl index 2d39337421..f06c440706 100644 --- a/website/client/css/loading-screen.styl +++ b/website/client/css/loading-screen.styl @@ -61,10 +61,10 @@ animation-delay: -0.20s @keyframes sk-bouncedelay - 0%, 80%, 100% { + 0%, 80%, 100% { transform: scale(0) opacity: 0 - } 40% { + } 40% { transform: scale(1.0) opacity: 1 } diff --git a/website/client/css/scrollbars.styl b/website/client/css/scrollbars.styl index 8b366133bf..225f820652 100644 --- a/website/client/css/scrollbars.styl +++ b/website/client/css/scrollbars.styl @@ -79,4 +79,4 @@ } .task-column::-webkit-scrollbar-corner { background: transparent -} \ No newline at end of file +} diff --git a/website/client/css/static.styl b/website/client/css/static.styl index 7134a2b1e7..f18fe74966 100644 --- a/website/client/css/static.styl +++ b/website/client/css/static.styl @@ -25,7 +25,7 @@ body .marketing text-align: center - + .static-old-news h2 font-weight: 700 @@ -38,7 +38,7 @@ body margin-top: 20px .pull-right margin-left: 5px - + #frontpage-play-button //box-shadow: 0 0 40px #494141; display: inline diff --git a/website/client/js/config.js b/website/client/js/config.js index dc08f1a15a..1c145d5475 100644 --- a/website/client/js/config.js +++ b/website/client/js/config.js @@ -27,12 +27,12 @@ angular.module('habitrpg') function verifyNewNotifications (response) { // Ignore CRON notifications for manual syncs - var isUserLoaded = $rootScope.appLoaded === true; + var isUserLoaded = $rootScope.appLoaded === true; if (response && response.data && response.data.notifications && response.data.notifications.length > 0) { $rootScope.userNotifications = response.data.notifications.filter(function (notification) { if (isUserLoaded && notification.type === 'CRON') { - // If the user is already loaded, do not show the notification, syncing will show it + // If the user is already loaded, do not show the notification, syncing will show it // (the user will be synced automatically) $rootScope.User.readNotification(notification.id); return false; diff --git a/website/client/js/controllers/authCtrl.js b/website/client/js/controllers/authCtrl.js index 4bd7528548..4e5b7c65b4 100644 --- a/website/client/js/controllers/authCtrl.js +++ b/website/client/js/controllers/authCtrl.js @@ -30,7 +30,7 @@ angular.module('habitrpg') } else if (status === 400 && data.errors && _.isArray(data.errors)) { // bad requests data.errors.forEach(function (err) { $window.alert(err.message); - }); + }); } else if (!!data && !!data.error) { $window.alert(data.message); } else { diff --git a/website/client/js/controllers/headerCtrl.js b/website/client/js/controllers/headerCtrl.js index 390d2c92a9..33108a2a64 100644 --- a/website/client/js/controllers/headerCtrl.js +++ b/website/client/js/controllers/headerCtrl.js @@ -58,7 +58,7 @@ habitrpg.controller("HeaderCtrl", ['$scope', 'Groups', 'User', } ) if (User.user.party.orderAscending == "descending") { - result = result.reverse() + result = result.reverse() } return result; diff --git a/website/client/js/controllers/sortableInventoryCtrl.js b/website/client/js/controllers/sortableInventoryCtrl.js index 7bf2641b02..e0a14c4fa4 100644 --- a/website/client/js/controllers/sortableInventoryCtrl.js +++ b/website/client/js/controllers/sortableInventoryCtrl.js @@ -18,7 +18,7 @@ habitrpg.controller('SortableInventoryController', ['$scope', $scope.setGrouping = function (grouping) { $scope.groupingChoice = grouping; }; - + $scope.orderChoice = 'set'; $scope.setOrder($scope.orderChoice); }]); diff --git a/website/client/js/env.js b/website/client/js/env.js index cdb40e695e..3e25af7224 100644 --- a/website/client/js/env.js +++ b/website/client/js/env.js @@ -2,7 +2,7 @@ window.env = window.env || {}; //FIX tests -// If Moment.js is loaded, +// If Moment.js is loaded, if(window.moment && window.env.language && window.env.language.momentLang && window.env.language.momentLangCode){ var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); @@ -13,4 +13,4 @@ if(window.moment && window.env.language && window.env.language.momentLang && win } window.habitrpgShared.i18n.strings = window.env.translations; -window.env.t = window.habitrpgShared.i18n.t; \ No newline at end of file +window.env.t = window.habitrpgShared.i18n.t; diff --git a/website/client/js/services/pusherService.js b/website/client/js/services/pusherService.js index ed36c8ca74..1a2d6dfd2d 100644 --- a/website/client/js/services/pusherService.js +++ b/website/client/js/services/pusherService.js @@ -145,7 +145,7 @@ angular.module('habitrpg') // when a tab is closed, connect the next one // wait between 100 and 500ms to avoid two tabs connecting at the same time - // window.addEventListener('storage', function(e) { + // window.addEventListener('storage', function(e) { // if (e.key === tabIdKey && e.newValue === null) { // setTimeout(function () { // if (!localStorage.getItem(tabIdKey)) { @@ -153,7 +153,7 @@ angular.module('habitrpg') // } // }, Math.floor(Math.random() * 501) + 100); // } - // }); + // }); }); return api; diff --git a/website/server/controllers/api-v3/iap.js b/website/server/controllers/api-v3/iap.js index daaef0cef8..a626817c82 100644 --- a/website/server/controllers/api-v3/iap.js +++ b/website/server/controllers/api-v3/iap.js @@ -1,4 +1,4 @@ // NOTE: this file is only used because the mobile apps expect IAP routes // to be found at /api/v3/iap instead of /iap. -module.exports = require('../top-level/payments/iap'); \ No newline at end of file +module.exports = require('../top-level/payments/iap'); diff --git a/website/server/controllers/top-level/qrcodes.js b/website/server/controllers/top-level/qrcodes.js index da45e4ea04..e32b5914d2 100644 --- a/website/server/controllers/top-level/qrcodes.js +++ b/website/server/controllers/top-level/qrcodes.js @@ -14,4 +14,4 @@ api.redirectProfileQRCode = { }, }; -module.exports = api; \ No newline at end of file +module.exports = api; diff --git a/website/server/libs/inAppPurchases.js b/website/server/libs/inAppPurchases.js index 5f1d16b135..498fc01ae0 100644 --- a/website/server/libs/inAppPurchases.js +++ b/website/server/libs/inAppPurchases.js @@ -19,4 +19,4 @@ module.exports = { getPurchaseData: iap.getPurchaseData, GOOGLE: iap.GOOGLE, APPLE: iap.APPLE, -}; \ No newline at end of file +}; diff --git a/website/server/libs/password.js b/website/server/libs/password.js index c825083936..95b7cef7db 100644 --- a/website/server/libs/password.js +++ b/website/server/libs/password.js @@ -15,4 +15,4 @@ export function makeSalt (len = 10) { .randomBytes(Math.ceil(len / 2)) .toString('hex') .substring(0, len); -} \ No newline at end of file +} diff --git a/website/server/libs/pusher.js b/website/server/libs/pusher.js index 74ac1e10a5..76c7602008 100644 --- a/website/server/libs/pusher.js +++ b/website/server/libs/pusher.js @@ -39,4 +39,4 @@ let api = { }, }; -module.exports = api; \ No newline at end of file +module.exports = api; diff --git a/website/server/libs/setupMongoose.js b/website/server/libs/setupMongoose.js index 41ba9e5358..7e5da1e3ff 100644 --- a/website/server/libs/setupMongoose.js +++ b/website/server/libs/setupMongoose.js @@ -25,4 +25,4 @@ if (MAINTENANCE_MODE !== 'true') { }); autoinc.init(db); -} \ No newline at end of file +} diff --git a/website/server/models/user/methods.js b/website/server/models/user/methods.js index ea53bf30c3..c3f2157d8b 100644 --- a/website/server/models/user/methods.js +++ b/website/server/models/user/methods.js @@ -51,4 +51,4 @@ schema.methods.addComputedStatsToJSONObj = function addComputedStatsToUserJSONOb obj.stats.toNextLevel = common.tnl(this.stats.lvl); obj.stats.maxHealth = common.maxHealth; obj.stats.maxMP = common.statsComputed(this).maxMP; -}; \ No newline at end of file +}; diff --git a/website/views/avatar-static.jade b/website/views/avatar-static.jade index 58e11ae31a..a1e1e034a8 100644 --- a/website/views/avatar-static.jade +++ b/website/views/avatar-static.jade @@ -8,13 +8,13 @@ html(ng-app="habitrpg") meta(name='viewport', content='width=device-width, initial-scale=1.0') meta(name='apple-mobile-web-app-capable', content='yes') - // .slice(0).push('user') is to clone the array, + // .slice(0).push('user') is to clone the array, // to be surethat `user` is never available to other requests' env // TODO does it need only `user` in clientVars, not the others? - clientVars = env.clientVars.slice(0); clientVars.push('user'); - + script(type='text/javascript'). window.env = !{JSON.stringify(env._.pick(env, clientVars))}; diff --git a/website/views/options/social/quests/bossStats.jade b/website/views/options/social/quests/bossStats.jade index c9e4728743..65e6e973e8 100644 --- a/website/views/options/social/quests/bossStats.jade +++ b/website/views/options/social/quests/bossStats.jade @@ -10,7 +10,7 @@ else .meter.health .bar(ng-style='{width: Shared.percent(group.quest.progress.hp, Content.quests[group.quest.key].boss.hp) + "%"}') span.meter-text.value - | {{Math.ceil(group.quest.progress.hp) | roundLargeNumbers}} + | {{Math.ceil(group.quest.progress.hp) | roundLargeNumbers}} |  / {{::Content.quests[group.quest.key].boss.hp | roundLargeNumbers}} div(ng-if='Content.quests[group.quest.key].boss.rage') .meter-label(tooltip=env.t('rage')) @@ -20,5 +20,5 @@ else popover-trigger='mouseenter', popover-placement='bottom') .bar(ng-style='{width: Shared.percent(group.quest.progress.rage, Content.quests[group.quest.key].boss.rage.value) + "%"}') span.meter-text.value - | {{Math.ceil(group.quest.progress.rage) | roundLargeNumbers}} + | {{Math.ceil(group.quest.progress.rage) | roundLargeNumbers}} |  / {{::Content.quests[group.quest.key].boss.rage.value | roundLargeNumbers}} diff --git a/website/views/options/social/quests/collectionStats.jade b/website/views/options/social/quests/collectionStats.jade index 68217b86d7..9add7ff6ab 100644 --- a/website/views/options/social/quests/collectionStats.jade +++ b/website/views/options/social/quests/collectionStats.jade @@ -1,7 +1,7 @@ div(class="quest_{{::group.quest.key}}") h4=env.t('collected') + ':' table.table.table-striped - tr(ng-repeat='(item,number) in group.quest.progress.collect', + tr(ng-repeat='(item,number) in group.quest.progress.collect', class='quest_collected_{{number >= Content.quests[group.quest.key].collect[item].count}}') td .pull-left(class='quest_{{::group.quest.key}}_{{::item}}') diff --git a/website/views/shared/formatting-help.jade b/website/views/shared/formatting-help.jade index 9ad945093e..5c9f236da4 100644 --- a/website/views/shared/formatting-help.jade +++ b/website/views/shared/formatting-help.jade @@ -1,4 +1,4 @@ -small.btn-link(ng-init='showHelp = false', ng-click='showHelp = !showHelp') +small.btn-link(ng-init='showHelp = false', ng-click='showHelp = !showHelp') | {{showHelp ? env.t('hideFormattingHelp') : env.t('showFormattingHelp')}} .slight-vertical-padding(ng-if='showHelp') diff --git a/website/views/shared/modals/amazon-payments.jade b/website/views/shared/modals/amazon-payments.jade index 892e665e67..fb1f71873f 100644 --- a/website/views/shared/modals/amazon-payments.jade +++ b/website/views/shared/modals/amazon-payments.jade @@ -12,4 +12,4 @@ script(id='modals/amazonPayments.html', type='text/ng-template') .modal-footer .btn.btn-default(ng-click='Payments.amazonPayments.reset()')=env.t('cancel') - .btn.btn-primary(ng-disabled="!Payments.amazonPayments.canCheckout()", ng-click="Payments.amazonPayments.checkout()")=env.t('checkout') \ No newline at end of file + .btn.btn-primary(ng-disabled="!Payments.amazonPayments.canCheckout()", ng-click="Payments.amazonPayments.checkout()")=env.t('checkout') diff --git a/website/views/shared/modals/buy-gems.jade b/website/views/shared/modals/buy-gems.jade index 4ebebf57ea..009e03a265 100644 --- a/website/views/shared/modals/buy-gems.jade +++ b/website/views/shared/modals/buy-gems.jade @@ -45,7 +45,7 @@ script(id='modals/buyGems.html', type='text/ng-template') .arrow .popover-content p=env.t('buyGemsAllow1') - |  {{Shared.planGemLimits.convCap + User.user.purchased.plan.consecutive.gemCapExtra - User.user.purchased.plan.gemsBought}}  + |  {{Shared.planGemLimits.convCap + User.user.purchased.plan.consecutive.gemCapExtra - User.user.purchased.plan.gemsBought}}  =env.t('buyGemsAllow2') p!=env.t('seeSubscriptionDetails') div(ng-if='user.purchased.plan.customerId') diff --git a/website/views/shared/modals/quest-rewards.jade b/website/views/shared/modals/quest-rewards.jade index c5de84c732..450c5c4286 100644 --- a/website/views/shared/modals/quest-rewards.jade +++ b/website/views/shared/modals/quest-rewards.jade @@ -5,10 +5,10 @@ script(id='partials/options.social.party.quest-rewards.html', type='text/ng-temp tr(ng-repeat='drop in quest.drop.items') td {{::drop.text()}} tr(ng-if='::quest.drop.exp > 0') - td {{::quest.drop.exp}} + td {{::quest.drop.exp}} =env.t('experience') tr(ng-if='::quest.drop.gp > 0') - td {{::quest.drop.gp}} + td {{::quest.drop.gp}} =env.t('gold') tr(ng-if='::quest.drop.unlock()') td {{::quest.drop.unlock()}} diff --git a/website/views/shared/modals/rebirth.jade b/website/views/shared/modals/rebirth.jade index 1c61c780c3..68ee0b7c58 100644 --- a/website/views/shared/modals/rebirth.jade +++ b/website/views/shared/modals/rebirth.jade @@ -1,6 +1,6 @@ // Created by Sabe on 12/22/13. -script(type='text/ng-template', id='modals/rebirthEnabled.html') +script(type='text/ng-template', id='modals/rebirthEnabled.html') .modal-header h4=env.t('rebirthNew') .modal-body @@ -39,7 +39,7 @@ script(type='text/ng-template', id='modals/rebirth.html') p span.vertical-align.inline-block.achievement-sun |  - =env.t('rebirthEarnAchievement') + =env.t('rebirthEarnAchievement') .modal-footer button.btn.btn-default(ng-click='$close()')=env.t('neverMind') span(ng-if='user.balance < 2 && user.stats.lvl < 100') diff --git a/website/views/shared/modals/reroll.jade b/website/views/shared/modals/reroll.jade index 9fc3ce55ec..5d5cbb58cc 100644 --- a/website/views/shared/modals/reroll.jade +++ b/website/views/shared/modals/reroll.jade @@ -1,5 +1,5 @@ // Re-Roll modal -script(type='text/ng-template', id='modals/reroll.html') +script(type='text/ng-template', id='modals/reroll.html') .modal-header h4=env.t('fortify') .modal-body diff --git a/website/views/shared/modals/settings.jade b/website/views/shared/modals/settings.jade index d802527e5d..5533896538 100644 --- a/website/views/shared/modals/settings.jade +++ b/website/views/shared/modals/settings.jade @@ -1,4 +1,4 @@ -script(type='text/ng-template', id='modals/reset.html') +script(type='text/ng-template', id='modals/reset.html') .modal-header h4=env.t('resetAccount') .modal-body @@ -57,7 +57,7 @@ script(type='text/ng-template', id='modals/restore.html') button.btn.btn-default(ng-click='$close()')=env.t('discardChanges') button.btn.btn-primary(ng-click='restore(); $close();')=env.t('saveAndClose') -script(type='text/ng-template', id='modals/delete.html') +script(type='text/ng-template', id='modals/delete.html') .modal-header h4=env.t('deleteAccount') .modal-body diff --git a/website/views/shared/new-stuff.jade b/website/views/shared/new-stuff.jade index c778829a17..50324917f0 100644 --- a/website/views/shared/new-stuff.jade +++ b/website/views/shared/new-stuff.jade @@ -420,7 +420,7 @@ mixin oldNews tr td h3 Partnership with FocusMe - p Because the Habitica staff members are big fans of distraction-blocker FocusMe (and their staff members are big fans of Habitica), we’ve decided to offer a joint promotion until Sunday June 19th, where anyone who purchases FocusMe will also be offered a 20% discount on a six-month Habitica subscription! Learn more here. + p Because the Habitica staff members are big fans of distraction-blocker FocusMe (and their staff members are big fans of Habitica), we’ve decided to offer a joint promotion until Sunday June 19th, where anyone who purchases FocusMe will also be offered a 20% discount on a six-month Habitica subscription! Learn more here. tr td h3 Important Info for Developers @@ -496,7 +496,7 @@ mixin oldNews tr td h3 Important Mobile App Updates - p We’ve released an iOS update and an Android update that contain the new code. It’s very important to download these updates immediately, or you may encounter significant bugs! + p We’ve released an iOS update and an Android update that contain the new code. It’s very important to download these updates immediately, or you may encounter significant bugs! tr td .Pet-Wolf-Veteran.pull-right @@ -514,7 +514,7 @@ mixin oldNews br p.strong We expect that on Saturday, May 21st, Habitica will be unavailable between 1 PM and 10 PM Pacific Time (8 pm - 5 am UTC). ul - li Don't worry, you will NOT lose any streaks or take any damage during this weekend, not even from Bosses! This maintenance will not harm your accounts. + li Don't worry, you will NOT lose any streaks or take any damage during this weekend, not even from Bosses! This maintenance will not harm your accounts. li If you will need to see your task list on Saturday, we recommend taking a screenshot of your tasks before the maintenance begins so that you can use them as a reference during downtime. li At the end of the maintenance, to thank people for their patience, everyone will receive a rare Veteran pet! li This maintenance should not result in any major visible differences to the site; it's all behind-the-scenes work. However, at the end of it, we will release new updates to the mobile apps, which will be required in order for the apps to work properly with the new changes! Be sure to download those updates on Saturday as soon as they are released. diff --git a/website/views/shared/tasks/edit/checklist.jade b/website/views/shared/tasks/edit/checklist.jade index ed77bb0a76..1c88e36559 100644 --- a/website/views/shared/tasks/edit/checklist.jade +++ b/website/views/shared/tasks/edit/checklist.jade @@ -17,7 +17,7 @@ //input(type='checkbox',ng-model='item.completed',ng-change='saveTask(task,true)') //-,ng-blur='saveTask(task,true)') span.checklist-icon.glyphicon.glyphicon-resize-vertical - input(type='text', ng-model='item.text', + input(type='text', ng-model='item.text', ui-keyup="{'13':'addChecklistItem(task,$event,$index)','38 40':'navigateChecklist(task,$index,$event)'}") a(ng-click='removeChecklistItem(task,$event,$index,true)') span.glyphicon.glyphicon-trash(tooltip=env.t('delete')) diff --git a/website/views/shared/tasks/meta_controls.jade b/website/views/shared/tasks/meta_controls.jade index 3feaef0d87..448886ae5e 100644 --- a/website/views/shared/tasks/meta_controls.jade +++ b/website/views/shared/tasks/meta_controls.jade @@ -53,7 +53,7 @@ |   // notes - // Make this icon available regardless of task ownership + // Make this icon available regardless of task ownership a.task-notes(ng-show='task.notes && !task._editing', ng-click='task.popoverOpen = !task.popoverOpen', popover-trigger='click', data-popover-html="{{task.notes | markdown}}", popover-placement="top", popover-append-to-body='{{::modal ? "false":"true"}}') span.glyphicon.glyphicon-comment |