refactor: begin to try to refactor frontend part

This commit is contained in:
JuanZoran
2023-03-12 22:12:33 +08:00
parent f86ff7b615
commit 3c28af5314
6 changed files with 176 additions and 155 deletions

View File

@ -0,0 +1,27 @@
local strategy = {
play = function(self)
print('TODO: play')
end,
pageup = function()
print('TODO: pageup')
end,
pagedown = function()
print('TODO: pagedown')
end,
pin = function()
print('TODO: pin')
end,
close = function()
print('TODO: close')
end,
toggle_entry = function()
print('TODO: toggle_entry')
end,
}
return function(self, action)
-- TODO :
strategy[action](self)
end