Cleanup
This commit is contained in:
parent
55795c7cdb
commit
dfedaa83f3
@ -5,6 +5,9 @@ window.hiss = {
|
|||||||
|
|
||||||
import * as index from './index/index.js'
|
import * as index from './index/index.js'
|
||||||
import * as view from './view/view.js'
|
import * as view from './view/view.js'
|
||||||
|
import * as player from './view/player.js'
|
||||||
|
import * as browser from './view/browser.js'
|
||||||
|
import * as queue from './view/queue.js'
|
||||||
import Store from 'store'
|
import Store from 'store'
|
||||||
import * as device from 'device'
|
import * as device from 'device'
|
||||||
|
|
||||||
@ -47,6 +50,9 @@ export async function State() {
|
|||||||
{
|
{
|
||||||
Object.assign(window, {
|
Object.assign(window, {
|
||||||
view,
|
view,
|
||||||
|
player,
|
||||||
|
browser,
|
||||||
|
queue,
|
||||||
device,
|
device,
|
||||||
index,
|
index,
|
||||||
|
|
||||||
|
0
src/player.js
Normal file
0
src/player.js
Normal file
@ -45,7 +45,7 @@ export async function Init() {
|
|||||||
|
|
||||||
a['Enter'] = a[' '] = {
|
a['Enter'] = a[' '] = {
|
||||||
down(focus) {
|
down(focus) {
|
||||||
queue.Add(Entry(hiss.view.browser.focus))
|
view.player.Queue(Entry(hiss.view.browser.focus))
|
||||||
view.FocusNext()
|
view.FocusNext()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
import * as index from "../index/index.js"
|
import * as index from "../index/index.js"
|
||||||
|
import * as player from './player.js'
|
||||||
|
import * as browser from './browser.js'
|
||||||
|
import * as queue from './queue.js'
|
||||||
|
|
||||||
export function State() {
|
export function State() {
|
||||||
hiss.state.queue = []
|
hiss.state.queue = []
|
||||||
|
@ -3,16 +3,9 @@ import * as player from './player.js'
|
|||||||
import * as browser from './browser.js'
|
import * as browser from './browser.js'
|
||||||
import * as queue from './queue.js'
|
import * as queue from './queue.js'
|
||||||
|
|
||||||
export {
|
|
||||||
player,
|
|
||||||
browser,
|
|
||||||
queue
|
|
||||||
}
|
|
||||||
|
|
||||||
export function State() {
|
export function State() {
|
||||||
player.State()
|
player.State()
|
||||||
browser.State()
|
browser.State()
|
||||||
queue.State()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function Init() {
|
export async function Init() {
|
||||||
|
@ -876,6 +876,11 @@
|
|||||||
resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.27.2.tgz"
|
resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.27.2.tgz"
|
||||||
integrity sha512-PaW2DY5Tan+IFvNJGHDmUrORadbe/Ceh8tQxi8cmdQVCCYsLoQo2cuaSj+AU+YRX8M4ivS2vJ9UGaxfuNN7gmg==
|
integrity sha512-PaW2DY5Tan+IFvNJGHDmUrORadbe/Ceh8tQxi8cmdQVCCYsLoQo2cuaSj+AU+YRX8M4ivS2vJ9UGaxfuNN7gmg==
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-x64-musl@4.27.2":
|
||||||
|
version "4.27.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.27.2.tgz"
|
||||||
|
integrity sha512-dOlWEMg2gI91Qx5I/HYqOD6iqlJspxLcS4Zlg3vjk1srE67z5T2Uz91yg/qA8sY0XcwQrFzWWiZhMNERylLrpQ==
|
||||||
|
|
||||||
"@types/estree@^1.0.0", "@types/estree@1.0.6":
|
"@types/estree@^1.0.0", "@types/estree@1.0.6":
|
||||||
version "1.0.6"
|
version "1.0.6"
|
||||||
resolved "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz"
|
resolved "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user