✨ (linguoland): 加上月读书源入口
插件描述和元信息走月读的书源契约,设置页按需加载。
This commit is contained in:
1 parent
55e6303d0a
commit
8ff04cee9b
5 files changed
+52
No files matched your search
@@ -0,0 +1,17 @@
|
||||
--[[--
|
||||
月读第三方书源描述:LinguoLand。契约见月读 examples/moonsource-demo.koplugin/moon_source.lua。
|
||||
--]]
|
||||
|
||||
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_linguoland.source").meta() end,
|
||||
new = function() return require("moonsource_linguoland.source").new() end,
|
||||
setting = lazy("moonsource_linguoland.setting"),
|
||||
}
|
||||
Reference in new issue
Block a user