-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
78 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Luna Logcat | ||
|
||
Android logcat viewer. | ||
|
||
## Demo | ||
|
||
https://luna.liriliri.io/?path=/story/logcat | ||
|
||
## Install | ||
|
||
Add the following script and style to your page. | ||
|
||
```html | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/luna-logcat/luna-logcat.css" /> | ||
<script src="//cdn.jsdelivr.net/npm/luna-logcat/luna-logcat.js"></script> | ||
``` | ||
|
||
You can also get it on npm. | ||
|
||
```bash | ||
npm install luna-logcat --save | ||
``` | ||
|
||
```javascript | ||
import 'luna-logcat/luna-logcat.css' | ||
import LunaLogcat from 'luna-logcat' | ||
``` |
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,15 @@ | ||
import Component from '../share/Component' | ||
import { exportCjs } from '../share/util' | ||
|
||
/** | ||
* Android logcat viewer. | ||
*/ | ||
export default class Logcat extends Component { | ||
constructor(container: HTMLElement) { | ||
super(container, { compName: 'logcat' }) | ||
} | ||
} | ||
|
||
if (typeof module !== 'undefined') { | ||
exportCjs(module, Logcat) | ||
} |
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,5 @@ | ||
{ | ||
"name": "logcat", | ||
"version": "0.1.0", | ||
"description": "Android logcat viewer" | ||
} |
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,20 @@ | ||
import 'luna-logcat.css' | ||
import Logcat from 'luna-logcat.js' | ||
import readme from './README.md' | ||
import story from '../share/story' | ||
|
||
const def = story( | ||
'logcat', | ||
(container) => { | ||
const logcat = new Logcat(container) | ||
|
||
return logcat | ||
}, | ||
{ | ||
readme, | ||
story: __STORY__, | ||
} | ||
) | ||
|
||
export default def | ||
export const { logcat } = def |
Empty file.
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