mirror of
https://github.com/kepler155c/opus
synced 2024-12-29 01:50:27 +00:00
tweaks
This commit is contained in:
parent
0e3cb15356
commit
f4bcd61116
@ -118,12 +118,16 @@ function Event.off(h)
|
||||
end
|
||||
|
||||
function Event.onInterval(interval, fn)
|
||||
return Event.addRoutine(function()
|
||||
local h = Event.addRoutine(function()
|
||||
while true do
|
||||
os.sleep(interval)
|
||||
fn()
|
||||
end
|
||||
end)
|
||||
function h.updateInterval(i)
|
||||
interval = i
|
||||
end
|
||||
return h
|
||||
end
|
||||
|
||||
function Event.onTimeout(timeout, fn)
|
||||
|
@ -36,6 +36,7 @@ end
|
||||
local methods = { 'delete', 'exists', 'getFreeSpace', 'makeDir', 'list', 'listEx' }
|
||||
|
||||
local function resolveDir(dir, node)
|
||||
-- TODO: Wrong ! (does not support names with dashes)
|
||||
dir = dir:gsub(node.mountPoint, '', 1)
|
||||
return fs.combine(node.directory, dir)
|
||||
end
|
||||
|
@ -146,9 +146,9 @@ local Browser = UI.Page {
|
||||
s = 'shell',
|
||||
p = 'pastebin',
|
||||
r = 'refresh',
|
||||
space = 'mark',
|
||||
[ ' ' ] = 'mark',
|
||||
m = 'mark',
|
||||
backspace = 'updir',
|
||||
m = 'move',
|
||||
u = 'unmark',
|
||||
d = 'delete',
|
||||
delete = 'delete',
|
||||
|
@ -1,4 +1,4 @@
|
||||
fs.mount('sys/apps/pain.lua', 'urlfs', 'http://pastebin.com/raw/wJQ7jav0')
|
||||
fs.mount('sys/apps/pain.lua', 'urlfs', 'https://github.com/LDDestroier/CC/raw/master/pain.lua')
|
||||
fs.mount('sys/apps/update.lua', 'urlfs', 'http://pastebin.com/raw/UzGHLbNC')
|
||||
fs.mount('sys/apps/Enchat.lua', 'urlfs', 'https://raw.githubusercontent.com/LDDestroier/enchat/master/enchat3.lua')
|
||||
fs.mount('sys/apps/cloud.lua', 'urlfs', 'https://cloud-catcher.squiddev.cc/cloud.lua')
|
||||
|
@ -286,7 +286,7 @@ end)
|
||||
|
||||
local function isBlacklisted(b)
|
||||
if b and state.blacklist then
|
||||
for k, v in pairs(state.blacklist) do
|
||||
for _, v in pairs(state.blacklist) do
|
||||
if b.name:find(v) then
|
||||
return true
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user