milo: categories, better listing page separation

This commit is contained in:
kepler155c@gmail.com
2018-12-01 00:52:39 -05:00
parent c5d209161e
commit e1084422e5
17 changed files with 146 additions and 96 deletions

View File

@@ -10,16 +10,15 @@ local os = _G.os
local Storage = class()
function Storage:init(args)
function Storage:init(nodes)
local defaults = {
nodes = { },
nodes = nodes or { },
dirty = true,
activity = { },
storageOnline = true,
lastRefresh = os.clock(),
}
Util.merge(self, defaults)
Util.merge(self, args)
local modem = Peripheral.get('wired_modem') or error('Wired modem not attached')
self.localName = modem.getNameLocal()