21 lines
720 B
Lua
21 lines
720 B
Lua
--[[--
|
||
月读第三方书源描述:起点中文网。契约见月读 examples/moonsource-demo.koplugin/moon_source.lua。
|
||
--]]
|
||
|
||
-- 本源的段评可借给本地书(reader.paragraph_lender)
|
||
require("utils.extension").add("reader.paragraph_lender", { id = "qidian", label = require("moonsource_qidian._meta").name })
|
||
|
||
local function lazy(module)
|
||
return setmetatable({}, { __index = function(_, key) return require(module)[key] end })
|
||
end
|
||
|
||
return {
|
||
api = 1,
|
||
provides = {
|
||
source = true,
|
||
},
|
||
meta = function() return require("moonsource_qidian.source").meta() end,
|
||
new = function() return require("moonsource_qidian.source").new() end,
|
||
setting = lazy("moonsource_qidian.setting"),
|
||
}
|