Necmettin Karakaya
2020-07-19 00:33:27 +08:00
committed by GitHub
parent d5b5d4fc27
commit 24448c7504
6 changed files with 7 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ class ScrollToTop extends React.Component<Props> {
componentDidUpdate(prevProps) {
if (this.props.location.pathname === prevProps.location.pathname) return;
// exception for when entering or exiting document edit, scroll postion should not reset
// exception for when entering or exiting document edit, scroll position should not reset
if (
this.props.location.pathname.match(/\/edit\/?$/) ||
prevProps.location.pathname.match(/\/edit\/?$/)

View File

@@ -37,7 +37,7 @@ class UserDelete extends React.Component<Props> {
<Flex column>
<form onSubmit={this.handleSubmit}>
<HelpText>
Are you sure? Deleting your account will destory identifying data
Are you sure? Deleting your account will destroy identifying data
associated with your user and cannot be undone. You will be
immediately logged out of Outline and all your API tokens will be
revoked.

View File

@@ -31,7 +31,7 @@ const router = new Router();
router.post("documents.list", auth(), pagination(), async ctx => {
const { sort = "updatedAt", backlinkDocumentId, parentDocumentId } = ctx.body;
// collection and user are here for backwards compatablity
// collection and user are here for backwards compatibility
const collectionId = ctx.body.collectionId || ctx.body.collection;
const createdById = ctx.body.userId || ctx.body.user;
let direction = ctx.body.direction;

View File

@@ -490,7 +490,7 @@ Document.prototype.migrateVersion = function() {
};
// Note: This method marks the document and it's children as deleted
// in the database, it does not permanantly delete them OR remove
// in the database, it does not permanently delete them OR remove
// from the collection structure.
Document.prototype.deleteWithChildren = async function(options) {
// Helper to destroy all child documents for a document

View File

@@ -8,7 +8,7 @@ const { allow, cannot } = policy;
allow(User, "create", Document);
allow(User, ["read", "download"], Document, (user, document) => {
// existance of collection option is not required here to account for share tokens
// existence of collection option is not required here to account for share tokens
if (document.collection && cannot(user, "read", document.collection)) {
return false;
}
@@ -20,7 +20,7 @@ allow(User, ["share"], Document, (user, document) => {
if (document.archivedAt) return false;
if (document.deletedAt) return false;
// existance of collection option is not required here to account for share tokens
// existence of collection option is not required here to account for share tokens
if (document.collection && cannot(user, "read", document.collection)) {
return false;
}

View File

@@ -9,7 +9,7 @@ type Domain = {
// we originally used the parse-domain npm module however this includes
// a large list of possible TLD's which increase the size of the bundle
// unneccessarily for our usecase of trusted input.
// unnecessarily for our usecase of trusted input.
export function parseDomain(url: string): ?Domain {
if (typeof url !== "string") return null;
if (url === "") return null;