From 13838fff9d057c554652bf1b3b2155b11d33ca0c Mon Sep 17 00:00:00 2001 From: Pascal Borreli Date: Sat, 14 Mar 2015 21:50:00 +0000 Subject: [PATCH] Fixed typos --- core/client/app/controllers/posts.js | 2 +- core/client/app/mixins/validation-engine.js | 2 +- core/client/app/styles/components/splitbuttons.scss | 2 +- core/client/app/styles/layouts/editor.scss | 2 +- core/server/apps/loader.js | 4 ++-- core/server/config/url.js | 2 +- core/server/controllers/frontend.js | 2 +- core/server/data/fixtures/permissions/index.js | 2 +- core/server/ghost-server.js | 2 +- core/server/helpers/ghost_head.js | 2 +- core/server/index.js | 2 +- core/server/mail.js | 2 +- core/server/utils/index.js | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) diff --git a/core/client/app/controllers/posts.js b/core/client/app/controllers/posts.js index 9bd26f1fa3..cb3e7fa558 100644 --- a/core/client/app/controllers/posts.js +++ b/core/client/app/controllers/posts.js @@ -79,7 +79,7 @@ var PostsController = Ember.ArrayController.extend(PaginationControllerMixin, { init: function () { // let the PaginationControllerMixin know what type of model we will be paginating - // this is necesariy because we do not have access to the model inside the Controller::init method + // this is necessary because we do not have access to the model inside the Controller::init method this._super({modelType: 'post'}); } }); diff --git a/core/client/app/mixins/validation-engine.js b/core/client/app/mixins/validation-engine.js index 732151f258..2499d1f68c 100644 --- a/core/client/app/mixins/validation-engine.js +++ b/core/client/app/mixins/validation-engine.js @@ -82,7 +82,7 @@ var ValidationEngine = Ember.Mixin.create({ }, /** - * Passses the model to the validator specified by validationType. + * Passes the model to the validator specified by validationType. * Returns a promise that will resolve if validation succeeds, and reject if not. * Some options can be specified: * diff --git a/core/client/app/styles/components/splitbuttons.scss b/core/client/app/styles/components/splitbuttons.scss index fc1ea7f88e..3dad39a5e9 100644 --- a/core/client/app/styles/components/splitbuttons.scss +++ b/core/client/app/styles/components/splitbuttons.scss @@ -162,7 +162,7 @@ }; } - // If it has a class of "up" spin it an extra 180degress to point up + // If it has a class of "up" spin it an extra 180degrees to point up &.up:hover, &.up:focus { @include icon($i-chevron-down) { diff --git a/core/client/app/styles/layouts/editor.scss b/core/client/app/styles/layouts/editor.scss index c991d54400..99741621a6 100644 --- a/core/client/app/styles/layouts/editor.scss +++ b/core/client/app/styles/layouts/editor.scss @@ -454,7 +454,7 @@ body.zen { } }//#publish-bar -.extended-tags { // When the tag bar is exapanded +.extended-tags { // When the tag bar is expanded position: static; min-height: 100%; diff --git a/core/server/apps/loader.js b/core/server/apps/loader.js index 4e924f5d3d..70b869b13a 100644 --- a/core/server/apps/loader.js +++ b/core/server/apps/loader.js @@ -22,7 +22,7 @@ function getAppRelativePath(name, relativeTo) { return path.relative(relativeTo, getAppAbsolutePath(name)); } -// Load apps through a psuedo sandbox +// Load apps through a pseudo sandbox function loadApp(appPath) { var sandbox = new AppSandbox(); @@ -55,7 +55,7 @@ function getAppByName(name, permissions) { loader = { // Load a app and return the instantiated app installAppByName: function (name) { - // Install the apps dependendencies first + // Install the apps dependencies first var appPath = getAppAbsolutePath(name), deps = new AppDependencies(appPath); diff --git a/core/server/config/url.js b/core/server/config/url.js index af33f108d2..a0d81f1e05 100644 --- a/core/server/config/url.js +++ b/core/server/config/url.js @@ -9,7 +9,7 @@ var moment = require('moment'), // Simple utility function to allow // passing of the ghostConfig // object here to be used locally -// to ensure clean depedency graph +// to ensure clean dependency graph // (i.e. no circular dependencies). function setConfig(config) { ghostConfig = config; diff --git a/core/server/controllers/frontend.js b/core/server/controllers/frontend.js index 473b4a282e..83f3501ba6 100644 --- a/core/server/controllers/frontend.js +++ b/core/server/controllers/frontend.js @@ -382,7 +382,7 @@ frontendControllers = { return next(); } - // If there is any date based paramter in the slug + // If there is any date based parameter in the slug // we will check it against the post published date // to verify it's correct. if (params.year || params.month || params.day) { diff --git a/core/server/data/fixtures/permissions/index.js b/core/server/data/fixtures/permissions/index.js index 9356e56020..5fdda45616 100644 --- a/core/server/data/fixtures/permissions/index.js +++ b/core/server/data/fixtures/permissions/index.js @@ -98,7 +98,7 @@ to003 = function (options) { }); }); - // Now we can perfom the normal populate + // Now we can perform the normal populate return Promise.all(ops).then(function () { return populate(options); }); diff --git a/core/server/ghost-server.js b/core/server/ghost-server.js index 8a74417ce8..de863b6c38 100644 --- a/core/server/ghost-server.js +++ b/core/server/ghost-server.js @@ -115,7 +115,7 @@ GhostServer.prototype.logUpgradeWarning = function () { /** * Starts the ghost server listening on the configured port. * Alternatively you can pass in your own express instance and let Ghost - * start lisetning for you. + * start listening for you. * @param {Object=} externalApp Optional express app instance. * @return {Promise} */ diff --git a/core/server/helpers/ghost_head.js b/core/server/helpers/ghost_head.js index efccc93bb2..40db4e10be 100644 --- a/core/server/helpers/ghost_head.js +++ b/core/server/helpers/ghost_head.js @@ -69,7 +69,7 @@ ghost_head = function (options) { metaDescription = excerpt.call(self.post, {hash: {words: '40'}}).string; } if (tags[0] !== '') { - keywords = hbs.handlebars.Utils.escapeExpression(tagsHelper.call(self.post, {hash: {autolink: 'false', seperator: ', '}}).string); + keywords = hbs.handlebars.Utils.escapeExpression(tagsHelper.call(self.post, {hash: {autolink: 'false', separator: ', '}}).string); } head.push(''); diff --git a/core/server/index.js b/core/server/index.js index 04a10d7a4c..783128b26b 100644 --- a/core/server/index.js +++ b/core/server/index.js @@ -183,7 +183,7 @@ function init(options) { initNotifications(); // ##Configuration - // return the correct mime type for woff filess + // return the correct mime type for woff files express['static'].mime.define({'application/font-woff': ['woff']}); // enabled gzip compression by default diff --git a/core/server/mail.js b/core/server/mail.js index 683c1a23a3..fde06935cd 100644 --- a/core/server/mail.js +++ b/core/server/mail.js @@ -56,7 +56,7 @@ GhostMailer.prototype.getDomain = function () { }; // Sends an e-mail message enforcing `to` (blog owner) and `from` fields -// This assumes that api.settings.read('email') was aready done on the API level +// This assumes that api.settings.read('email') was already done on the API level GhostMailer.prototype.send = function (message) { var self = this, to, diff --git a/core/server/utils/index.js b/core/server/utils/index.js index b95f8df379..86bfc7e764 100644 --- a/core/server/utils/index.js +++ b/core/server/utils/index.js @@ -65,7 +65,7 @@ utils = { return string; }, - // The token is encoded URL safe by replcaing '+' with '-', '\' with '_' and removing '=' + // The token is encoded URL safe by replacing '+' with '-', '\' with '_' and removing '=' // NOTE: the token is not encoded using valid base64 anymore encodeBase64URLsafe: function (base64String) { return base64String.replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '');