Skip to content

Commit

Permalink
chore: small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Oct 29, 2024
1 parent 5feb85e commit 100a0bd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion index.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@
"dependencies": []
},
"lrc-player": {
"test": false,
"version": "0.1.0",
"style": true,
"icon": false,
"test": true,
"install": false,
"react": false,
"dependencies": []
Expand Down
2 changes: 1 addition & 1 deletion src/logcat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default class Logcat extends Component<IOptions> {
? (entry.date as Date)
: new Date(entry.date)

const level = [' ', 'V', 'D', 'I', 'W', 'E'][entry.priority - 1]
const level = ['?', '?', 'V', 'D', 'I', 'W', 'E'][entry.priority]

const container = h(`.${c('entry')}.${c(level)}`)
const e = {
Expand Down
9 changes: 3 additions & 6 deletions src/logcat/story.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,22 @@ const def = story(
)

function createKnobs() {
const priority = select(
const filterPriority = select(
'Filter Level',
{
DEFAULT: 1,
VERBOSE: 2,
DEBUG: 3,
INFO: 4,
WARN: 5,
WARNING: 5,
ERROR: 6,
FATAL: 7,
SILENT: 8,
},
1
)
const wrapLongLines = boolean('Wrap Long Lines', false)

return {
filter: {
priority,
priority: filterPriority,
},
wrapLongLines,
}
Expand Down
5 changes: 4 additions & 1 deletion src/lrc-player/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"name": "lrc-player",
"version": "0.1.0",
"description": "Play lyrics in LRC format"
"description": "Play lyrics in LRC format",
"luna": {
"test": false
}
}

0 comments on commit 100a0bd

Please sign in to comment.