mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
DEV: Fix random typos (#20937)
This commit is contained in:
parent
6142c50915
commit
29e2e3ff3b
|
@ -58,7 +58,7 @@ export default Component.extend(KeyEnterEscape, {
|
|||
|
||||
_isFastEditable: false,
|
||||
_displayFastEditInput: false,
|
||||
_fastEditInitalSelection: null,
|
||||
_fastEditInitialSelection: null,
|
||||
_fastEditNewSelection: null,
|
||||
_isSavingFastEdit: false,
|
||||
_canEditPost: false,
|
||||
|
@ -76,7 +76,7 @@ export default Component.extend(KeyEnterEscape, {
|
|||
|
||||
this.set("_isFastEditable", false);
|
||||
this.set("_displayFastEditInput", false);
|
||||
this.set("_fastEditInitalSelection", null);
|
||||
this.set("_fastEditInitialSelection", null);
|
||||
this.set("_fastEditNewSelection", null);
|
||||
},
|
||||
|
||||
|
@ -205,11 +205,11 @@ export default Component.extend(KeyEnterEscape, {
|
|||
matches?.length > 1 // duplicates are too complex
|
||||
) {
|
||||
this.set("_isFastEditable", false);
|
||||
this.set("_fastEditInitalSelection", null);
|
||||
this.set("_fastEditInitialSelection", null);
|
||||
this.set("_fastEditNewSelection", null);
|
||||
} else if (matches?.length === 1) {
|
||||
this.set("_isFastEditable", true);
|
||||
this.set("_fastEditInitalSelection", quoteState.buffer);
|
||||
this.set("_fastEditInitialSelection", quoteState.buffer);
|
||||
this.set("_fastEditNewSelection", quoteState.buffer);
|
||||
}
|
||||
}
|
||||
|
@ -429,7 +429,7 @@ export default Component.extend(KeyEnterEscape, {
|
|||
},
|
||||
|
||||
_saveFastEditDisabled: propertyEqual(
|
||||
"_fastEditInitalSelection",
|
||||
"_fastEditInitialSelection",
|
||||
"_fastEditNewSelection"
|
||||
),
|
||||
|
||||
|
@ -509,7 +509,7 @@ export default Component.extend(KeyEnterEscape, {
|
|||
return ajax(`/posts/${postModel.id}`, { type: "GET", cache: false })
|
||||
.then((result) => {
|
||||
const newRaw = result.raw.replace(
|
||||
fixQuotes(this._fastEditInitalSelection),
|
||||
fixQuotes(this._fastEditInitialSelection),
|
||||
fixQuotes(this._fastEditNewSelection)
|
||||
);
|
||||
|
||||
|
|
|
@ -637,7 +637,7 @@ aside.quote {
|
|||
opacity: 1;
|
||||
transition: opacity 0.3s ease-in-out;
|
||||
}
|
||||
// this psuedo element creates a transition buffer zone
|
||||
// this pseudo element creates a transition buffer zone
|
||||
// without it, the width change on hover can cause transition jitter
|
||||
// the width is roughly wide enough to cover long translations of "share"
|
||||
&:after {
|
||||
|
|
|
@ -217,7 +217,7 @@
|
|||
|
||||
|
||||
<span class="summary_desc"><div class='inline'>
|
||||
<p>Returns <code>true</code> if the conext is set as successful (default).</p>
|
||||
<p>Returns <code>true</code> if the context is set as successful (default).</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
@ -440,7 +440,7 @@
|
|||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>Returns <code>true</code> if the conext is set as successful (default)</p>
|
||||
<p>Returns <code>true</code> if the context is set as successful (default)</p>
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -459,7 +459,7 @@
|
|||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>returns <code>true</code> if the conext is set as successful (default)</p>
|
||||
<p>returns <code>true</code> if the context is set as successful (default)</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
|
|
@ -603,7 +603,7 @@ module Discourse
|
|||
USER_READONLY_MODE_KEY ||= "readonly_mode:user"
|
||||
PG_FORCE_READONLY_MODE_KEY ||= "readonly_mode:postgres_force"
|
||||
|
||||
# Psuedo readonly mode, where staff can still write
|
||||
# Pseudo readonly mode, where staff can still write
|
||||
STAFF_WRITES_ONLY_MODE_KEY ||= "readonly_mode:staff_writes_only"
|
||||
|
||||
READONLY_KEYS ||= [
|
||||
|
|
|
@ -82,7 +82,7 @@ class UploadCreator
|
|||
# in S3
|
||||
#
|
||||
# FIXME: I've added a bunch of external_upload_too_big checks littered
|
||||
# throughout the UploadCreator code. It would be better to have two seperate
|
||||
# throughout the UploadCreator code. It would be better to have two separate
|
||||
# classes with shared methods, rather than doing all these checks all over the
|
||||
# place. Needs a refactor.
|
||||
external_upload_too_big = @opts[:external_upload_too_big]
|
||||
|
|
|
@ -18,7 +18,7 @@ module Service
|
|||
|
||||
# Simple structure to hold the context of the service during its whole lifecycle.
|
||||
class Context < OpenStruct
|
||||
# @return [Boolean] returns +true+ if the conext is set as successful (default)
|
||||
# @return [Boolean] returns +true+ if the context is set as successful (default)
|
||||
def success?
|
||||
!failure?
|
||||
end
|
||||
|
|
|
@ -45,7 +45,7 @@ export default class ChatThreadPanel extends Component {
|
|||
this.requestedTargetMessageId = parseInt(this.args.targetMessageId, 10);
|
||||
}
|
||||
|
||||
// TODO (martin) Loading/scrolling to selected messagew
|
||||
// TODO (martin) Loading/scrolling to selected message
|
||||
// this.highlightOrFetchMessage(this.requestedTargetMessageId);
|
||||
// if (this.requestedTargetMessageId) {
|
||||
// } else {
|
||||
|
@ -145,7 +145,7 @@ export default class ChatThreadPanel extends Component {
|
|||
messageData.expanded = !(messageData.hidden || messageData.deleted_at);
|
||||
}
|
||||
|
||||
// newest has to be in after fetcg callback as we don't want to make it
|
||||
// newest has to be in after fetch callback as we don't want to make it
|
||||
// dynamic or it will make the pane jump around, it will disappear on reload
|
||||
if (
|
||||
!foundFirstNew &&
|
||||
|
|
|
@ -55,7 +55,7 @@ remove_subject_prefixes:
|
|||
# attempt to get the actual sender's address from other available headers like Reply-To or the /^From / line
|
||||
fix_mailman_via_addresses: false
|
||||
|
||||
# Elide up to last occurence of = in addresses (BATV, etc)
|
||||
# Elide up to last occurrence of = in addresses (BATV, etc)
|
||||
# ie. normalize these:
|
||||
# prvs=00377ab9a2=someone@somewhere.com
|
||||
# bounces+840901-dbd9-flang-dev=someone@somewhere.com
|
||||
|
|
|
@ -14,7 +14,7 @@ RSpec.describe HashtagAutocompleteService do
|
|||
after { DiscoursePluginRegistry.reset! }
|
||||
|
||||
describe ".contexts_with_ordered_types" do
|
||||
it "returns a hash of all the registrered search contexts and their types in the defined priority order" do
|
||||
it "returns a hash of all the registered search contexts and their types in the defined priority order" do
|
||||
expect(HashtagAutocompleteService.contexts_with_ordered_types).to eq(
|
||||
{ "topic-composer" => %w[category tag] },
|
||||
)
|
||||
|
@ -230,7 +230,7 @@ RSpec.describe HashtagAutocompleteService do
|
|||
end
|
||||
fab!(:tag4) { Fabricate(:tag, name: "book", staff_topic_count: 1, public_topic_count: 1) }
|
||||
|
||||
it "returns the 'most polular' categories and tags (based on topic_count) that the user can access" do
|
||||
it "returns the 'most popular' categories and tags (based on topic_count) that the user can access" do
|
||||
category1.update!(read_restricted: true)
|
||||
Fabricate(:tag_group, permissions: { "staff" => 1 }, tag_names: ["terrible-books"])
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user