support mymind
This commit is contained in:
parent
fcb76a6a2d
commit
ede956d5e6
7
applications/luci-app-mymind/luasrc/controller/mymind.lua
Executable file
7
applications/luci-app-mymind/luasrc/controller/mymind.lua
Executable file
@ -0,0 +1,7 @@
|
||||
|
||||
module("luci.controller.mymind", package.seeall)
|
||||
|
||||
function index()
|
||||
entry({"admin", "services", "mymind"}, alias("admin", "services", "mymind", "config"), _("MyMind"), 30).dependent = true
|
||||
entry({"admin", "services", "mymind", "config"}, cbi("mymind"))
|
||||
end
|
16
applications/luci-app-mymind/luasrc/model/cbi/mymind.lua
Normal file
16
applications/luci-app-mymind/luasrc/model/cbi/mymind.lua
Normal file
@ -0,0 +1,16 @@
|
||||
--[[
|
||||
LuCI - Lua Configuration Interface
|
||||
]]--
|
||||
|
||||
local taskd = require "luci.model.tasks"
|
||||
local m, s
|
||||
|
||||
m = Map("mymind",
|
||||
translate("MyMind"),
|
||||
translate("MyMind is mind editor.")
|
||||
.. translate("Official website:") .. ' <a href=\"https://github.com/ondras/my-mind\" target=\"_blank\">https://github.com/ondras/my-mind</a>')
|
||||
|
||||
s = m:section(SimpleSection, translate("MyMind Web"), translate("MyMind Web:"))
|
||||
s:append(Template("mymind/status"))
|
||||
|
||||
return m
|
@ -0,0 +1,7 @@
|
||||
<div class="cbi-value cbi-value-last">
|
||||
<label class="cbi-value-title"> </label>
|
||||
<div class="cbi-value-field">
|
||||
<input type="button" class="btn cbi-button cbi-button-apply" name="start" value="<%:Open MyMind%>" onclick="window.open('http://'+location.hostname+'/luci-static/mymind/', '_blank')" />
|
||||
</div>
|
||||
</div>
|
||||
|
14
applications/luci-app-mymind/po/zh-cn/mymind.po
Normal file
14
applications/luci-app-mymind/po/zh-cn/mymind.po
Normal file
@ -0,0 +1,14 @@
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=UTF-8"
|
||||
|
||||
msgid "Official website:"
|
||||
msgstr "官方网站:"
|
||||
|
||||
msgid "MyMind is mind editor."
|
||||
msgstr "MyMind 是一个在线思维导图编辑器。"
|
||||
|
||||
msgid "Open MyMind"
|
||||
msgstr "打开 MyMind"
|
||||
|
||||
msgid "MyMind Web"
|
||||
msgstr "MyMind 网页"
|
Loading…
x
Reference in New Issue
Block a user