DEV: Fix typos and formatting (#27320)

This commit is contained in:
Jarek Radosz 2024-06-04 15:16:24 +02:00 committed by GitHub
parent d42a1c8885
commit c972a31819
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 13 additions and 13 deletions

View File

@ -39,7 +39,7 @@ export function addSidebarSection(func, panelKey) {
if (!panel) {
// eslint-disable-next-line no-console
return console.warn(
`Error adding section to ${panelKey} because panel doens't exist. Check addSidebarPanel API.`
`Error adding section to ${panelKey} because panel doesn't exist. Check addSidebarPanel API.`
);
}
panel.sections.push(

View File

@ -19,7 +19,7 @@ export default class DMenuInstance extends FloatKitInstance {
/**
* Specifies whether the trigger for opening/closing the menu is detached from the menu itself.
* This is the case when a menu is trigger programmaticaly instead of through the <DMenu /> component.
* This is the case when a menu is trigger programmatically instead of through the <DMenu /> component.
* @property {boolean} detachedTrigger - Tracks whether the trigger is detached, initially set to false.
*/
@tracked detachedTrigger = false;

View File

@ -17,7 +17,7 @@ export default class DTooltipInstance extends FloatKitInstance {
/**
* Specifies whether the trigger for opening/closing the tooltip is detached from the tooltip itself.
* This is the case when a tooltip is trigger programmaticaly instead of through the <DTooltip /> component.
* This is the case when a tooltip is trigger programmatically instead of through the <DTooltip /> component.
* @property {boolean} detachedTrigger - Tracks whether the trigger is detached, initially set to false.
*/
@tracked detachedTrigger = false;

View File

@ -110,7 +110,7 @@ export default class Toasts extends Service {
}
/**
* Close a toast. Any object containg a valid `id` property can be used as a toast parameter.
* Close a toast. Any object containing a valid `id` property can be used as a toast parameter.
*/
@action
close(toast) {

View File

@ -9,11 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.32.0] - 2024-05-16
- Adds `registerHomeLogoHrefCallback` which allows to set a callback to change the home logo URL.
- Added `registerHomeLogoHrefCallback` which allows to set a callback to change the home logo URL.
## [1.31.0] - 2024-04-22
- Adds `addTopicAdminMenuButton` which allows to register a new button in the topic admin menu.
- Added `addTopicAdminMenuButton` which allows to register a new button in the topic admin menu.
## [1.30.0] - 2024-03-20
@ -21,20 +21,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.29.0] - 2024-03-05
- added `headerButtons` which allows for manipulation of the header butttons. This includes, adding, removing, or modifying the order of buttons.
- Added `headerButtons` which allows for manipulation of the header buttons. This includes, adding, removing, or modifying the order of buttons.
## [1.28.0] - 2024-02-21
- added `headerIcons` which allows for manipulation of the header icons. This includes, adding, removing, or modifying the order of icons.
- Added `headerIcons` which allows for manipulation of the header icons. This includes, adding, removing, or modifying the order of icons.
## [1.27.0] - 2024-02-21
- deprecated `addToHeaderIcons` in favor of `headerIcons`
- Deprecated `addToHeaderIcons` in favor of `headerIcons`
## [1.26.0] - 2024-02-21
- Added `renderBeforeWrapperOutlet` which is used for rendering components before the content of wrapper plugin outlets
- Added `renderAfterWrapperOutlet` which is used for rendering components after the content of wrapper plugin outlets
- Added `renderBeforeWrapperOutlet` which is used for rendering components before the content of wrapper plugin outlets
- Added `renderAfterWrapperOutlet` which is used for rendering components after the content of wrapper plugin outlets
## [1.25.0] - 2024-02-05

View File

@ -6,7 +6,7 @@ describe "Admin Dashboard New Features Page", type: :system do
before { sign_in(admin) }
it "displays new features with screenshot taking precednce over emoji" do
it "displays new features with screenshot taking precedence over emoji" do
DiscourseUpdates.stubs(:new_features).returns(
[
{

View File

@ -39,7 +39,7 @@ describe "Navigation menu states", type: :system, js: true do
expect(find(sidebar_navigation.header_toggle_css)).to have_css(".d-icon-discourse-sidebar")
end
it "shows the hamburger menu and allows toggling it, which shows the MAIN_PANEL onls" do
it "shows the hamburger menu and allows toggling it, which shows the MAIN_PANEL only" do
visit "/admin"
expect(header_dropdown).to be_visible
header_dropdown.open