-
Notifications
You must be signed in to change notification settings - Fork 858
converts EuiCode and EuiCodeBlock to TypeScript #2835
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
Changes from all commits
d534a0e
535e3b3
50905d4
2207cf2
024ea33
b0cd6e4
f9b1dff
183f789
8d2c601
15cbc88
bee4596
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -524,7 +524,7 @@ var MutationNotifier = /** @class */ (function (_super) { | |
| __extends(MutationNotifier, _super); | ||
| function MutationNotifier() { | ||
| var _this = _super.call(this) || this; | ||
| _this.setMaxListeners(150); // bump this as needed - some tests do not perform the unmounting lifecycle | ||
| _this.setMaxListeners(294); // bump this as needed - some tests do not perform the unmounting lifecycle | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is suspicious to me, but it's all that worked to get past the pre-commit hook. Any deeper insight is appreciated.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Definitely agree, I'll take a deeper look at this.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: at the time I made this PR this change was necessary on master as well
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Very interesting; can you provide some details on your setup:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. λ $ uname -a
Linux dimitri 5.3.0-26-generic #28-Ubuntu SMP Wed Dec 18 05:37:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
λ $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.10
Release: 19.10
Codename: eoan
λ $ yarn --version
1.21.1
λ $ jest
Command 'jest' not found, did you mean:
command 'test' from deb coreutils (8.30-3ubuntu2)
Try: sudo apt install <deb name>
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. would you like me to remove the commit where I upped the count or shall we just leave it in? |
||
| return _this; | ||
| } | ||
| MutationNotifier.getInstance = function () { | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| import { CommonProps } from '../common'; | ||
|
|
||
| import React, { FunctionComponent, HTMLAttributes } from 'react'; | ||
|
|
||
| import { EuiCodeBlockImpl } from './_code_block'; | ||
|
|
||
| export type FontSize = 's' | 'm' | 'l'; | ||
| export type PaddingSize = 'none' | 's' | 'm' | 'l'; | ||
|
|
||
| export interface EuiCodeSharedProps { | ||
| paddingSize?: PaddingSize; | ||
|
|
||
| /** | ||
| * Sets the syntax highlighting for a specific language | ||
| * @see http://highlightjs.readthedocs.io/en/latest/css-classes-reference.html#language-names-and-aliases | ||
| * for options | ||
| */ | ||
| language?: string; | ||
| overflowHeight?: number; | ||
| fontSize?: FontSize; | ||
| transparentBackground?: boolean; | ||
| isCopyable?: boolean; | ||
| } | ||
|
|
||
| interface Props extends EuiCodeSharedProps { | ||
| inline?: true; | ||
| } | ||
|
|
||
| export type EuiCodeProps = CommonProps & Props & HTMLAttributes<HTMLElement>; | ||
|
|
||
| export const EuiCode: FunctionComponent<EuiCodeProps> = ({ | ||
| inline, | ||
| ...rest | ||
| }) => { | ||
| return <EuiCodeBlockImpl inline={true} {...rest} />; | ||
| }; |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.