-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed commit of the following: (#317)
commit 5b7044e Author: waynelwz <[email protected]> Date: Thu May 12 19:36:08 2022 +0800 ci: revert test code commit 78fd6ae Author: waynelwz <[email protected]> Date: Thu May 12 19:30:20 2022 +0800 ci: add types commit 72ab2e4 Author: waynelwz <[email protected]> Date: Thu May 12 18:19:53 2022 +0800 ci: upgrade eslint deps commit 03a2970 Author: waynelwz <[email protected]> Date: Thu May 12 17:49:43 2022 +0800 ci: test commit 37d0668 Author: waynelwz <[email protected]> Date: Thu May 12 17:00:58 2022 +0800 ci: test commit ab2a082 Author: waynelwz <[email protected]> Date: Thu May 12 16:50:24 2022 +0800 ci: test commit 61d7057 Author: waynelwz <[email protected]> Date: Thu May 12 16:45:17 2022 +0800 ci: test commit ffa9b2a Author: waynelwz <[email protected]> Date: Thu May 12 16:33:38 2022 +0800 ci: test commit b1de3d4 Author: waynelwz <[email protected]> Date: Thu May 12 16:32:37 2022 +0800 ci: test commit b03b658 Author: waynelwz <[email protected]> Date: Thu May 12 16:32:26 2022 +0800 ci: test commit 6f28a84 Author: waynelwz <[email protected]> Date: Wed May 11 15:38:52 2022 +0800 fix: sth rong with github action disable for now commit 6713394 Author: waynelwz <[email protected]> Date: Wed May 11 15:35:55 2022 +0800 fix: tsc check test commit 6aeb717 Author: waynelwz <[email protected]> Date: Wed May 11 15:11:45 2022 +0800 fix: tsc check test commit 906983a Author: waynelwz <[email protected]> Date: Wed May 11 15:00:44 2022 +0800 fix: tsc check error commit de76e64 Author: waynelwz <[email protected]> Date: Wed May 11 14:56:57 2022 +0800 fix: tsc check error commit 43cd8a5 Author: waynelwz <[email protected]> Date: Wed May 11 14:47:35 2022 +0800 Squashed commit of the following: commit fb6a119 Author: waynelwz <[email protected]> Date: Wed May 11 14:42:31 2022 +0800 feat: realtime log proxy 1. fix realtime log proxy 2. custom lazylog support onScroll stop following when user scroll commit 813c092 Author: waynelwz <[email protected]> Date: Tue May 10 19:23:53 2022 +0800 fix: api props changed / ws proxy error /add logo commit da19fe7 Author: waynelwz <[email protected]> Date: Tue May 10 17:56:16 2022 +0800 fix: lazylog ws not work commit 45a7596 Author: waynelwz <[email protected]> Date: Tue May 10 11:13:43 2022 +0800 chores: add ico, some kind of warnings commit e5dac3c Author: waynelwz <[email protected]> Date: Mon May 9 13:47:30 2022 +0800 chores: add hook deps commit 9275eb2 Author: waynelwz <[email protected]> Date: Mon May 9 11:53:50 2022 +0800 fix: wrong job actions
- Loading branch information
Showing
17 changed files
with
369 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) Microsoft Corporation. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Installation | ||
> `npm install --save @types/react-lazylog` | ||
# Summary | ||
This package contains type definitions for react-lazylog (https://github.com/mozilla-frontend-infra/react-lazylog). | ||
|
||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-lazylog. | ||
|
||
### Additional Details | ||
* Last updated: Sun, 26 Apr 2020 17:12:32 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react), [@types/immutable](https://npmjs.com/package/@types/immutable) | ||
* Global values: none | ||
|
||
# Credits | ||
These definitions were written by [Benjamin Romano](https://github.com/benjaminRomano), and [Adam Bouqdib](https://github.com/abemedia). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Type definitions for react-lazylog 4.5 | ||
// Project: https://github.com/mozilla-frontend-infra/react-lazylog | ||
// Definitions by: Benjamin Romano <https://github.com/benjaminRomano> | ||
// Adam Bouqdib <https://github.com/abemedia> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.8 | ||
|
||
declare module 'react-lazylog' { | ||
export * from 'types/react-lazylog/libs/LazyLog' | ||
export * from 'types/react-lazylog//libs/Line' | ||
export * from 'types/react-lazylog//libs/LineContent' | ||
export * from 'types/react-lazylog//libs/LineNumber' | ||
export * from 'types/react-lazylog//libs/LinePart' | ||
export * from 'types/react-lazylog//libs/Loading' | ||
export * from 'types/react-lazylog//libs/ScrollFollow' | ||
export * from 'types/react-lazylog//libs/SearchBar' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* eslint-disable react/static-property-placement */ | ||
/* eslint-disable react/prefer-stateless-function */ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
import { Component, ReactNode, CSSProperties } from 'react' | ||
import { Range } from 'immutable' | ||
|
||
export interface WebsocketOptions { | ||
onOpen?: (e: Event, socket: WebSocket) => void | ||
onClose?: (e: CloseEvent) => void | ||
onError?: (e: Event) => void | ||
formatMessage?: (message: any) => string | ||
} | ||
|
||
export interface LazyLogProps { | ||
caseInsensitive?: boolean | ||
containerStyle?: CSSProperties | ||
enableSearch?: boolean | ||
extraLines?: number | ||
fetchOptions?: RequestInit | ||
follow?: boolean | ||
formatPart?: (text: string) => ReactNode | ||
height?: string | number | ||
highlight?: number | number[] | ||
highlightLineClassName?: string | ||
lineClassName?: string | ||
loadingComponent?: any | ||
onError?: (error: any) => any | ||
onHighlight?: (range: Range) => any | ||
onLoad?: () => any | ||
overscanRowCount?: number | ||
rowHeight?: number | ||
scrollToLine?: number | ||
selectableLines?: boolean | ||
stream?: boolean | ||
style?: CSSProperties | ||
text?: string | ||
url: string | ||
websocket?: boolean | ||
websocketOptions?: WebsocketOptions | ||
width?: string | number | ||
onScroll: (params: { clientHeight: number; scrollHeight: number; scrollTop: number }) => void | ||
} | ||
|
||
export class LazyLog extends Component<LazyLogProps> { | ||
static defaultProps: Partial<LazyLogProps> | ||
} | ||
|
||
export default LazyLog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* eslint-disable react/static-property-placement */ | ||
/* eslint-disable react/prefer-stateless-function */ | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
import { Component, ReactNode, CSSProperties, MouseEventHandler } from 'react' | ||
|
||
export interface LineProps { | ||
data: Array<{ text: string }> | ||
number: number | ||
rowHeight: number | ||
highlight?: boolean | ||
selectable?: boolean | ||
style?: CSSProperties | ||
formatPart?: (text: string) => ReactNode | ||
onLineNumberClick?: MouseEventHandler<HTMLAnchorElement> | ||
|
||
/** | ||
* This is never called | ||
* https://github.com/mozilla-frontend-infra/react-lazylog/issues/18 | ||
*/ | ||
onRowClick?: () => any | ||
} | ||
|
||
export default class Line extends Component<LineProps> { | ||
static defaultProps: Partial<LineProps> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* eslint-disable react/static-property-placement */ | ||
/* eslint-disable react/prefer-stateless-function */ | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
import { Component, ReactNode, CSSProperties } from 'react' | ||
|
||
export interface LineContentProps { | ||
data: Array<{ text: string }> | ||
number: number | ||
formatPart?: (text: string) => ReactNode | ||
style?: CSSProperties | ||
} | ||
|
||
export default class LineContent extends Component<LineContentProps> { | ||
static defaultProps: Partial<LineContentProps> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
/* eslint-disable react/static-property-placement */ | ||
/* eslint-disable react/prefer-stateless-function */ | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
import { Component, ReactNode, CSSProperties, MouseEventHandler } from 'react' | ||
|
||
export interface LineNumberProps { | ||
number: number | ||
highlight?: boolean | ||
onClick?: MouseEventHandler<HTMLAnchorElement> | ||
style?: CSSProperties | ||
} | ||
|
||
export default class LinePart extends Component<LineNumberProps> { | ||
static defaultProps: Partial<LineNumberProps> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
/* eslint-disable react/static-property-placement */ | ||
/* eslint-disable react/prefer-stateless-function */ | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
import { Component, ReactNode, CSSProperties } from 'react' | ||
|
||
export interface LinePartProps { | ||
part: { text: string } | ||
format?: (text: string) => ReactNode | ||
style?: CSSProperties | ||
} | ||
|
||
export default class LinePart extends Component<LinePartProps> { | ||
static defaultProps: Partial<LinePartProps> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
/* eslint-disable react/static-property-placement */ | ||
/* eslint-disable react/prefer-stateless-function */ | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
import { Component } from 'react' | ||
|
||
export default class Loading extends Component {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
/* eslint-disable react/static-property-placement */ | ||
/* eslint-disable react/prefer-stateless-function */ | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
import { Component, ReactNode } from 'react' | ||
|
||
export interface ScrollFollowRenderProps { | ||
onScroll: (args: { scrollTop: number; scrollHeight: number; clientHeight: number }) => void | ||
follow: boolean | ||
startFollowing: () => void | ||
stopFollowing: () => void | ||
} | ||
|
||
export interface ScrollFollowProps { | ||
render: (props: ScrollFollowRenderProps) => ReactNode | ||
startFollowing?: boolean | ||
} | ||
|
||
export class ScrollFollow extends Component<ScrollFollowProps> {} | ||
|
||
export default ScrollFollow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
/* eslint-disable react/static-property-placement */ | ||
/* eslint-disable react/prefer-stateless-function */ | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
import { Component, ReactNode, CSSProperties } from 'react' | ||
|
||
export interface SearchBarProps { | ||
onSearch?: (keyword: string) => void | ||
onClearSearch?: () => void | ||
onFilterLinesWithMatches?: (isFiltered: boolean) => void | ||
resultsCount?: number | ||
filterActive?: boolean | ||
disabled?: boolean | ||
} | ||
|
||
export default class SearchBar extends Component<SearchBarProps> { | ||
static defaultProps: Partial<SearchBarProps> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "@types/react-lazylog", | ||
"version": "4.5.0", | ||
"description": "TypeScript definitions for react-lazylog", | ||
"license": "MIT", | ||
"contributors": [ | ||
{ | ||
"name": "Benjamin Romano", | ||
"url": "https://github.com/benjaminRomano", | ||
"githubUsername": "benjaminRomano" | ||
}, | ||
{ | ||
"name": "Adam Bouqdib", | ||
"url": "https://github.com/abemedia", | ||
"githubUsername": "abemedia" | ||
} | ||
], | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/react-lazylog" | ||
}, | ||
"scripts": {}, | ||
"dependencies": { | ||
"@types/react": "*", | ||
"immutable": ">=3.8.2" | ||
}, | ||
"typesPublisherContentHash": "ae82f9f61b43522629fa73d269f639e3f0dabdc89f14fdb65cdabbe4e91e8faa", | ||
"typeScriptVersion": "2.8" | ||
} |
Oops, something went wrong.