2024-08-22 22:55:15 +00:00
|
|
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
|
|
|
|
|
|
local ____modules = {}
|
|
|
|
local ____moduleCache = {}
|
|
|
|
local ____originalRequire = require
|
|
|
|
local function require(file, ...)
|
|
|
|
if ____moduleCache[file] then
|
|
|
|
return ____moduleCache[file].value
|
|
|
|
end
|
|
|
|
if ____modules[file] then
|
|
|
|
local module = ____modules[file]
|
|
|
|
local value = nil
|
|
|
|
if (select("#", ...) > 0) then value = module(...) else value = module(file) end
|
|
|
|
____moduleCache[file] = { value = value }
|
|
|
|
return value
|
|
|
|
else
|
|
|
|
if ____originalRequire then
|
|
|
|
return ____originalRequire(file)
|
|
|
|
else
|
|
|
|
error("module '" .. file .. "' not found")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
____modules = {
|
|
|
|
["src.index"] = function(...)
|
|
|
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
|
|
local ____exports = {}
|
2024-08-23 09:34:37 +00:00
|
|
|
local ____basalt = require("src.basalt")
|
|
|
|
local basalt = ____basalt.default
|
2024-08-22 22:55:15 +00:00
|
|
|
local function main(self)
|
2024-08-23 00:20:09 +00:00
|
|
|
local d = peripheral.find("monitor")[1]
|
2024-08-23 00:00:21 +00:00
|
|
|
local main = basalt:addMonitor()
|
|
|
|
main:setMonitor(d)
|
|
|
|
main:addLabel():setText("uwu")
|
|
|
|
main:addButton():setText("meow")
|
|
|
|
basalt:autoUpdate()
|
2024-08-22 22:55:15 +00:00
|
|
|
end
|
|
|
|
main(nil)
|
|
|
|
return ____exports
|
|
|
|
end,
|
2024-08-23 09:34:37 +00:00
|
|
|
["src.basalt"] = function(...)
|
|
|
|
|
2024-08-23 09:40:32 +00:00
|
|
|
local basalt = ____originalRequire("basalt");
|
2024-08-23 09:34:37 +00:00
|
|
|
|
2024-08-23 09:40:32 +00:00
|
|
|
return {
|
|
|
|
default = basalt;
|
|
|
|
}
|
2024-08-23 09:34:37 +00:00
|
|
|
end,
|
2024-08-22 22:55:15 +00:00
|
|
|
}
|
|
|
|
return require("src.index", ...)
|