Skip to content

Commit

Permalink
release(logcat): v0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Oct 31, 2024
1 parent d0bba62 commit b603234
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
},
"logcat": {
"react": true,
"version": "0.4.0",
"version": "0.4.1",
"style": true,
"icon": false,
"test": true,
Expand Down
2 changes: 1 addition & 1 deletion src/logcat/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "logcat",
"version": "0.4.0",
"version": "0.4.1",
"description": "Android logcat viewer",
"luna": {
"react": true
Expand Down
4 changes: 3 additions & 1 deletion src/logcat/react.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { CSSProperties, FC, useEffect, useRef } from 'react'
import { CSSProperties, FC, MouseEventHandler, useEffect, useRef } from 'react'
import each from 'licia/each'
import Logcat, { IOptions } from './index'
import { useNonInitialEffect } from '../share/hooks'

interface IILogcatProps extends IOptions {
style?: CSSProperties
className?: string
onContextMenu?: MouseEventHandler<HTMLDivElement>
onCreate?: (logcat: Logcat) => void
}

Expand Down Expand Up @@ -39,6 +40,7 @@ const LunaLogcat: FC<IILogcatProps> = (props) => {
<div
className={props.className || ''}
ref={logcatRef}
onContextMenu={props.onContextMenu}
style={props.style}
></div>
)
Expand Down
1 change: 1 addition & 0 deletions src/logcat/story.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const def = story(
maxNum={maxNum}
filter={filter}
view={view}
onContextMenu={() => console.log('context menu')}
onCreate={(logcat) => each(logs, (log) => logcat.append(log))}
/>
)
Expand Down

0 comments on commit b603234

Please sign in to comment.