support mymind

This commit is contained in:
janson 2022-11-10 09:51:20 +08:00
parent fcb76a6a2d
commit ede956d5e6
4 changed files with 44 additions and 0 deletions

View 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

View 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

View File

@ -0,0 +1,7 @@
<div class="cbi-value cbi-value-last">
<label class="cbi-value-title">&nbsp;</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>

View 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 网页"