2025-05-09 04:25:35 +08:00
|
|
|
-- Copyright (C) 2023-2025 sirpdboy <herboy2008@gmail.com> https://github.com/sirpdboy/luci-app-chatgpt-web
|
2023-08-07 16:54:05 +08:00
|
|
|
-- Licensed to the public under the Apache License 2.0.
|
|
|
|
|
|
|
|
module("luci.controller.chatgpt-web", package.seeall)
|
|
|
|
|
|
|
|
function index()
|
|
|
|
if not nixio.fs.access("/etc/config/chatgpt-web") then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2023-09-22 23:35:47 +08:00
|
|
|
local e = entry({"admin", "services", "chatgpt-web"}, alias("admin", "services", "chatgpt-web", "setting"),_("Chatgpt Web"), 20)
|
|
|
|
e.dependent=false
|
|
|
|
e.acl_depends = { "luci-app-chatgpt-web" }
|
2023-08-07 16:54:05 +08:00
|
|
|
entry({"admin", "services", "chatgpt-web", "setting"}, cbi("chatgpt-web"), _("Base Setting"), 10).leaf=true
|
2023-09-22 23:35:47 +08:00
|
|
|
entry({"admin", "services", "chatgpt-web", "chatgpt-web"}, cbi("chatgpt",{hideapplybtn=true, hidesavebtn=true, hideresetbtn=true}), _("Chatgpt Web"), 30).leaf=true
|
2023-08-07 16:54:05 +08:00
|
|
|
end
|
|
|
|
|