mirror of
https://git.phreedom.club/localhost_frssoft/fediauth.git
synced 2025-02-18 07:14:36 +00:00
qr code lib
This commit is contained in:
parent
54866b1f47
commit
1162262b9c
|
@ -15,3 +15,7 @@ read_globals = {
|
||||||
-- testing
|
-- testing
|
||||||
"mtt"
|
"mtt"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
files["qrencode.lua"] = {
|
||||||
|
ignore = {"631"}
|
||||||
|
}
|
6
init.lua
6
init.lua
|
@ -5,11 +5,15 @@ otp = {
|
||||||
storage = minetest.get_mod_storage(),
|
storage = minetest.get_mod_storage(),
|
||||||
|
|
||||||
-- baseXX functions
|
-- baseXX functions
|
||||||
basexx = loadfile(MP.."/basexx.lua")()
|
basexx = loadfile(MP.."/basexx.lua")(),
|
||||||
|
|
||||||
|
-- qr code
|
||||||
|
qrcode = loadfile(MP.."/qrencode.lua")().qrcode
|
||||||
}
|
}
|
||||||
|
|
||||||
dofile(MP.."/functions.lua")
|
dofile(MP.."/functions.lua")
|
||||||
|
|
||||||
if minetest.get_modpath("mtt") and mtt.enabled then
|
if minetest.get_modpath("mtt") and mtt.enabled then
|
||||||
dofile(MP.."/functions.spec.lua")
|
dofile(MP.."/functions.spec.lua")
|
||||||
|
dofile(MP.."/qrencode.spec.lua")
|
||||||
end
|
end
|
1325
qrencode.lua
Normal file
1325
qrencode.lua
Normal file
File diff suppressed because it is too large
Load diff
5
qrencode.spec.lua
Normal file
5
qrencode.spec.lua
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
mtt.register("otp.qrcode", function(callback)
|
||||||
|
assert(type(otp.qrcode) == "function")
|
||||||
|
callback()
|
||||||
|
end)
|
|
@ -8,3 +8,4 @@
|
||||||
|
|
||||||
* Code: `MIT`
|
* Code: `MIT`
|
||||||
* "basexx.lua" `MIT` https://github.com/aiq/basexx/blob/master/lib/basexx.lua
|
* "basexx.lua" `MIT` https://github.com/aiq/basexx/blob/master/lib/basexx.lua
|
||||||
|
* "qrencode.lua" `BSD` https://github.com/speedata/luaqrcode/blob/master/qrencode.lua
|
Loading…
Reference in a new issue