Skip to content

Commit

Permalink
Fixed typos (TryGhost#18648)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Lockyer <[email protected]>
  • Loading branch information
SusheelThapa and daniellockyer authored Oct 31, 2023
1 parent 97d0cdd commit 2e5fdff
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion apps/signup-form/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Run `yarn dev` (in package folder) to start the development server to test/devel

### Using the UMD build during development

Vite by default only supports HRM with an ESM output. But when loading a script on a site as a ESM module (`<script type="module" src="...">`), you don't have access to `document.currentScript` inside the script, which is required to determine the location to inject the iframe. In development mode we use a workaround for this to make the ESM HMR work. But this workaroudn is not suitable for production.
Vite by default only supports HRM with an ESM output. But when loading a script on a site as a ESM module (`<script type="module" src="...">`), you don't have access to `document.currentScript` inside the script, which is required to determine the location to inject the iframe. In development mode we use a workaround for this to make the ESM HMR work. But this workaround is not suitable for production.

To test the real production behaviour without this hack, you can use http://localhost:6173/preview.html. This HTML page will use `http://localhost:6174/signup-form.min.js` directly.

Expand Down
2 changes: 1 addition & 1 deletion ghost/admin/app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ All of these separate files are subsequently imported and compiled in `app.css`.
* Always a space after a property's colon (.e.g, display: block; and not display:block;).
* End all lines with a semi-colon.
* For multiple, comma-separated selectors, place each selector on its own line.
* Use js- prefixed classes for JavaScript hooks into the DOM, and never use these in CSS as per [Slightly Obtrusive JavaSript](http://ozmm.org/posts/slightly_obtrusive_javascript.html)
* Use js- prefixed classes for JavaScript hooks into the DOM, and never use these in CSS as per [Slightly Obtrusive JavaScript](http://ozmm.org/posts/slightly_obtrusive_javascript.html)
* Avoid over-nesting CSS. Never nest more than 3 levels deep.
* Use comments to explain "why" not "what" (Good: This requires a z-index in order to appear above mobile navigation. Bad: This is a thing which is always on top!)
2 changes: 1 addition & 1 deletion ghost/admin/app/helpers/parse-member-event.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export default class ParseMemberEventHelper extends Helper {
* object: 'My blog post'
* When both words need to get appended, we'll add 'on'
* -> do this by returning 'on' in getJoin()
* This string is not added when action and object are in a separete table column, or when the getObject/getURL is empty
* This string is not added when action and object are in a separate table column, or when the getObject/getURL is empty
*/
getJoin() {
return '–';
Expand Down
2 changes: 1 addition & 1 deletion ghost/admin/app/helpers/set-query-params.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {helper} from '@ember/component/helper';
*
* This example will return https://myurl.com?utm_source=admin
*
* You can set every query/search parameter you want. It will override existing paramters if they are already set.
* You can set every query/search parameter you want. It will override existing parameters if they are already set.
*/
export function setQueryParams([url], parameters) {
if (url) {
Expand Down
4 changes: 2 additions & 2 deletions ghost/admin/app/services/dashboard-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ import {tracked} from '@glimmer/tracking';
/**
* @typedef PaidMembersByCadence
* @type {Object}
* @property {number} year Paid memebrs on annual plan
* @property {number} month Paid memebrs on monthly plan
* @property {number} year Paid members on annual plan
* @property {number} month Paid members on monthly plan
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion ghost/admin/app/styles/components/uploader.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
color: color-mod(var(--midgrey));
}

/* TODO: remove the gh-image-uploader classes once it's using gh-progrss-bar */
/* TODO: remove the gh-image-uploader classes once it's using gh-progress-bar */
.gh-image-uploader .progress-container,
.gh-progress-container {
flex-grow: 1;
Expand Down
2 changes: 1 addition & 1 deletion ghost/admin/app/utils/currency.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export function getCurrencyOptions() {
* based on Stripe's requirements. Values here are double the Stripe limits, to take conversions to the settlement currency into account.
* @see https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts
* @param {String} currency — Currency in the 3-letter ISO format (e.g. "USD", "EUR")
* @retuns {Number} — Minimum amount
* @returns {Number} — Minimum amount
*/
export function minimumAmountForCurrency(currency) {
const isoCurrency = currency?.toUpperCase();
Expand Down
2 changes: 1 addition & 1 deletion ghost/admin/tests/acceptance/editor-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ describe('Acceptance: Editor', function () {
});

it('shows author token input and allows changing of authors in PSM', async function () {
let adminRole = this.server.create('role', {name: 'Adminstrator'});
let adminRole = this.server.create('role', {name: 'Administrator'});
let authorRole = this.server.create('role', {name: 'Author'});
let user1 = this.server.create('user', {name: 'Primary', roles: [adminRole]});
this.server.create('user', {name: 'Waldo', roles: [authorRole]});
Expand Down
2 changes: 1 addition & 1 deletion ghost/admin/tests/acceptance/settings/navigation-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
// expect(navSetting.value).to.equal('[{"label":"About","url":"/about"},{"label":"New","url":"/new/"}]');
// });

// it('can also add and remove items from seconday nav', async function () {
// it('can also add and remove items from secondray nav', async function () {
// await visit('/settings/navigation');
// await click('#secondary-navigation .gh-blognav-add');

Expand Down
2 changes: 1 addition & 1 deletion ghost/admin/tests/acceptance/signup-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ describe('Acceptance: Signup', function () {
expect(find('.gh-alert-content').textContent).to.have.string('Invalid token');
});

it('redirects with alert on non-existant or expired token', async function () {
it('redirects with alert on non-existent or expired token', async function () {
this.server.get('/authentication/invitation', function () {
return {
invitation: [{valid: false}]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Integration: Component: gh-unsplash', function () {

describe('closing', function () {
it('triggers close action');
it('can be triggerd by escape key');
it('can be triggered by escape key');
it('cannot be triggered by escape key when zoomed');
});
});
2 changes: 1 addition & 1 deletion ghost/members-csv/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Members Csv

## Usage
There are 2 parts to this package: CSV to JSON serialization and JSON to CSV serialization. The module exposes 2 methods to fullfil these: `parse` and `unparse` respectively.
There are 2 parts to this package: CSV to JSON serialization and JSON to CSV serialization. The module exposes 2 methods to fulfil these: `parse` and `unparse` respectively.

To `parse` CSV file and convert it to JSON use `parse` method, e.g.:
```js
Expand Down

0 comments on commit 2e5fdff

Please sign in to comment.