Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot fix for Issue #3010 #3074

Closed
wants to merge 181 commits into from

Conversation

cptcrunchy
Copy link
Contributor

There was a small error that was left unaddressed. The method GetComponentLink was to only create links prefixed with components/ but in the case where the logic if(parent.Component is not null) was false it would prefix the link with api/. This issue was corrected and the link property was used rather than the name property.

Description

How Has This Been Tested?

Visually tested.

Types of changes

  • [ x] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • [ x] The PR is submitted to the correct branch (dev).
  • My code follows the code style of this project.
  • I've added relevant tests.

just-the-benno and others added 30 commits September 10, 2021 00:31
@cptcrunchy cptcrunchy closed this Oct 17, 2021
@cptcrunchy cptcrunchy deleted the feature/API-docs-link branch October 17, 2021 23:35
@cptcrunchy cptcrunchy restored the feature/API-docs-link branch October 17, 2021 23:36
'mud-popover-bottom-center': 'mud-popover-top-center',
'mud-popover-bottom-right': 'mud-popover-top-right',
},
'top-and-left': {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
'top-and-left': {
"top-and-left"': {

}
} else if (classList.contains('mud-popover-top-right')) {
if (deltaBottom < gracePeriod && deltaToLeft < gracePeriod) {
selector = 'top-and-right';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
selector = 'top-and-right';
selector ="top-and-right"';

'mud-popover-bottom-right': 'mud-popover-top-right',
},
'top-and-left': {
'mud-popover-top-left': 'mud-popover-bottom-right',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
'mud-popover-top-left': 'mud-popover-bottom-right',
"mud-popover-top-left"': 'mud-popover-bottom-right',

let selector = popoverContentNode.mudPopoverFliped;

if (!selector) {
if (classList.contains('mud-popover-top-left')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
if (classList.contains('mud-popover-top-left')) {
if (classList.contains"mud-popover-top-left"')) {

else if (list.indexOf('mud-popover-center-left') >= 0) {
offsetX = 0;
offsetY = -selfRect.height / 2;
} else if (list.indexOf('mud-popover-center-center') >= 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
} else if (list.indexOf('mud-popover-center-center') >= 0) {
} else if (list.indexOf"mud-popover-center-center"') >= 0) {

} else if (list.indexOf('mud-popover-anchor-center-center') >= 0) {
left = boundingRect.left + boundingRect.width / 2;
top = boundingRect.top + boundingRect.height / 2;
} else if (list.indexOf('mud-popover-anchor-center-right') >= 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
} else if (list.indexOf('mud-popover-anchor-center-right') >= 0) {
} else if (list.indexOf"mud-popover-anchor-center-right"') >= 0) {

'bottom': {
'mud-popover-bottom-left': 'mud-popover-top-left',
'mud-popover-bottom-center': 'mud-popover-top-center',
'mud-popover-bottom-right': 'mud-popover-top-right',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
'mud-popover-bottom-right': 'mud-popover-top-right',
"mud-popover-bottom-right"': 'mud-popover-top-right',

}
}

else if (classList.contains('mud-popover-center-left')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
else if (classList.contains('mud-popover-center-left')) {
else if (classList.contains"mud-popover-center-left"')) {

} else if (deltaToRight < gracePeriod) {
selector = 'left';
}
} else if (classList.contains('mud-popover-bottom-center')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
} else if (classList.contains('mud-popover-bottom-center')) {
} else if (classList.contains"mud-popover-bottom-center"')) {

'mud-popover-top-right': 'mud-popover-bottom-left',
},
'bottom-and-left': {
'mud-popover-bottom-left': 'mud-popover-top-right',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
'mud-popover-bottom-left': 'mud-popover-top-right',
"mud-popover-bottom-left"': 'mud-popover-top-right',

},
'left': {
'mud-popover-top-left': 'mud-popover-top-right',
'mud-popover-center-left': 'mud-popover-center-right',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
'mud-popover-center-left': 'mud-popover-center-right',
"mud-popover-center-left"': 'mud-popover-center-right',

selector = 'right';
}
}
else if (classList.contains('mud-popover-bottom-left')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
else if (classList.contains('mud-popover-bottom-left')) {
else if (classList.contains"mud-popover-bottom-left"')) {

'top': {
'mud-popover-top-left': 'mud-popover-bottom-left',
'mud-popover-top-center': 'mud-popover-bottom-center',
'mud-popover-top-right': 'mud-popover-bottom-right',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
'mud-popover-top-right': 'mud-popover-bottom-right',
"mud-popover-top-right"': 'mud-popover-bottom-right',

} else if (deltaBottom < gracePeriod) {
selector = 'top';
} else if (deltaToRight < gracePeriod) {
selector = 'left';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
selector = 'left';
selector ="left"';

@cptcrunchy cptcrunchy deleted the feature/API-docs-link branch October 17, 2021 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants