diff --git a/applications/luci-app-mymind/luasrc/controller/mymind.lua b/applications/luci-app-mymind/luasrc/controller/mymind.lua new file mode 100755 index 0000000..a9c2413 --- /dev/null +++ b/applications/luci-app-mymind/luasrc/controller/mymind.lua @@ -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 diff --git a/applications/luci-app-mymind/luasrc/model/cbi/mymind.lua b/applications/luci-app-mymind/luasrc/model/cbi/mymind.lua new file mode 100644 index 0000000..61379f8 --- /dev/null +++ b/applications/luci-app-mymind/luasrc/model/cbi/mymind.lua @@ -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 diff --git a/applications/luci-app-mymind/luasrc/view/mymind/status.htm b/applications/luci-app-mymind/luasrc/view/mymind/status.htm new file mode 100644 index 0000000..49cd7f7 --- /dev/null +++ b/applications/luci-app-mymind/luasrc/view/mymind/status.htm @@ -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> + diff --git a/applications/luci-app-mymind/po/zh-cn/mymind.po b/applications/luci-app-mymind/po/zh-cn/mymind.po new file mode 100644 index 0000000..4c9eebd --- /dev/null +++ b/applications/luci-app-mymind/po/zh-cn/mymind.po @@ -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 网页"