Skip to content

Commit

Permalink
release(logcat): v0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Oct 29, 2024
1 parent 1328f86 commit fca9d3c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 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.2.1",
"version": "0.2.2",
"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.2.1",
"version": "0.2.2",
"description": "Android logcat viewer",
"luna": {
"react": true
Expand Down
3 changes: 2 additions & 1 deletion src/logcat/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ const LunaLogcat: FC<IILogcatProps> = (props) => {
const logcat = useRef<Logcat>()

useEffect(() => {
const { maxNum, wrapLongLines, filter, entries } = props
const { maxNum, wrapLongLines, filter, entries, view } = props
logcat.current = new Logcat(logcatRef.current!, {
filter,
maxNum,
wrapLongLines,
entries,
view,
})
props.onCreate && props.onCreate(logcat.current)

Expand Down
3 changes: 2 additions & 1 deletion src/logcat/story.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ const def = story(
readme,
story: __STORY__,
ReactComponent() {
const { wrapLongLines, maxNum, filter } = createKnobs()
const { wrapLongLines, maxNum, filter, view } = createKnobs()

return (
<LunaLogcat
style={{ height: '500px' }}
wrapLongLines={wrapLongLines}
maxNum={maxNum}
filter={filter}
view={view}
onCreate={(logcat) => each(logs, (log) => logcat.append(log))}
/>
)
Expand Down

0 comments on commit fca9d3c

Please sign in to comment.