1
0
mirror of https://github.com/kepler155c/opus synced 2024-12-29 01:50:27 +00:00
This commit is contained in:
kepler155c@gmail.com 2019-04-25 14:44:36 -04:00
parent 0e3cb15356
commit f4bcd61116
5 changed files with 10 additions and 5 deletions

View File

@ -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)

View File

@ -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

View File

@ -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',

View File

@ -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')

View File

@ -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