2021-09-14 20:45:00 -05:00
|
|
|
const DownloadStatus = {
|
|
|
|
PENDING: 0,
|
|
|
|
READY: 1,
|
|
|
|
EXPIRED: 2,
|
|
|
|
FAILED: 3
|
|
|
|
}
|
|
|
|
|
2021-10-01 20:29:00 -05:00
|
|
|
const CoverDestination = {
|
|
|
|
METADATA: 0,
|
|
|
|
AUDIOBOOK: 1
|
|
|
|
}
|
|
|
|
|
2021-09-14 20:45:00 -05:00
|
|
|
const Constants = {
|
2021-10-01 20:29:00 -05:00
|
|
|
DownloadStatus,
|
|
|
|
CoverDestination
|
2021-09-14 20:45:00 -05:00
|
|
|
}
|
|
|
|
|
2021-10-23 16:49:34 -05:00
|
|
|
const KeyNames = {
|
|
|
|
27: 'Escape',
|
|
|
|
32: 'Space',
|
|
|
|
37: 'ArrowLeft',
|
|
|
|
38: 'ArrowUp',
|
|
|
|
39: 'ArrowRight',
|
|
|
|
40: 'ArrowDown',
|
|
|
|
76: 'KeyL',
|
|
|
|
77: 'KeyM'
|
2021-10-22 20:08:02 -05:00
|
|
|
}
|
|
|
|
|
2021-09-14 20:45:00 -05:00
|
|
|
export default ({ app }, inject) => {
|
|
|
|
inject('constants', Constants)
|
2021-10-23 16:49:34 -05:00
|
|
|
inject('keynames', KeyNames)
|
2021-09-14 20:45:00 -05:00
|
|
|
}
|