update 2026-09-26 11:07:27

This commit is contained in:
action committed 2026-09-26 11:07:27 +08:00
1 parent 7b88b273d0
commit 97ae9f68da
4898 files changed
-1712274

No files matched your search

-18
View File
@@ -1,18 +0,0 @@
# Copyright (C) 2016 Openwrt.org
#
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI support for fastnet
LUCI_DEPENDS:=+fastnet +luci-lib-linkeaseauth +linkease-app-entry
LUCI_PKGARCH:=all
PKG_VERSION:=0.7.7
PKG_RELEASE:=5
LUCI_MINIFY_CSS:=0
LUCI_MINIFY_JS:=0
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature
@@ -1,34 +0,0 @@
module("luci.controller.fastnet", package.seeall)
function index()
if not nixio.fs.access("/etc/config/fastnet") then return end
entry({"admin", "services", "fastnet"}, cbi("fastnet"), _("FastNet"), 50).dependent = true
entry({"admin", "services", "fastnet", "status"}, call("action_status")).leaf = true
local open = entry({"admin", "services", "fastnet", "open"}, call("action_open"))
open.leaf = true
open.dependent = false
open.sysauth = false
end
local function compat()
local dispatcher = require "luci.dispatcher"
return require("luci.model.linkease.apps_compat").new({
http = require "luci.http",
resolver = require("luci.model.linkease.apps_openwrt").new(),
auth_url = dispatcher.build_url("admin", "services", "linkease_auth", "auth")
})
end
function action_status()
local sys = require "luci.sys"
local uci = require "luci.model.uci".cursor()
compat():legacy_status("fastnet", {
running = sys.call("pidof FastNet >/dev/null") == 0,
port = uci:get_first("fastnet", "fastnet", "port") or "3200"
})
end
function action_open()
compat():open("fastnet")
end
@@ -1,32 +0,0 @@
local sys = require "luci.sys"
local dispatcher = require "luci.dispatcher"
local m = Map("fastnet", translate("FastNet"))
m.description = translate("FastNet provides network testing tools and a Web UI.")
local st = m:section(SimpleSection, translate("Status"))
local running = (sys.call("pidof FastNet >/dev/null") == 0)
local url = dispatcher.build_url("admin", "services", "linkease_apps", "open") .. "?id=fastnet"
st.template = "fastnet/status"
st.running = running
st.url = url
local s = m:section(TypedSection, "fastnet", translate("Settings"))
s.anonymous = true
local enabled = s:option(Flag, "enabled", translate("Enable"))
enabled.default = enabled.enabled
local port = s:option(Value, "port", translate("Listen Port"))
port.datatype = "port"
port.default = "3200"
local token = s:option(Value, "token", translate("API Token"))
token.password = true
token.rmempty = true
local logger = s:option(Flag, "logger", translate("Enable Logging"))
logger.rmempty = true
return m
@@ -1,21 +0,0 @@
<fieldset class="cbi-section">
<legend><%:Status%></legend>
<div class="cbi-section-node">
<div class="cbi-value">
<label class="cbi-value-title"><%:Status%></label>
<div class="cbi-value-field">
<% if self.running then %>
<span style="color: green; font-weight: bold"><%:Running%></span>
<% else %>
<span style="color: red; font-weight: bold"><%:Not running%></span>
<% end %>
</div>
</div>
<div class="cbi-value">
<label class="cbi-value-title"><%:Open Web UI%></label>
<div class="cbi-value-field">
<a href="<%=self.url%>" target="_blank" rel="noreferrer"><%:Open Web UI%></a>
</div>
</div>
</div>
</fieldset>
-39
View File
@@ -1,39 +0,0 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
msgid "FastNet"
msgstr "FastNet"
msgid "FastNet provides network testing tools and a Web UI."
msgstr "FastNet 提供网络测试工具与 Web 界面。"
msgid "Settings"
msgstr "设置"
msgid "Enable"
msgstr "启用"
msgid "Listen Host"
msgstr "监听地址"
msgid "Listen Port"
msgstr "监听端口"
msgid "API Token"
msgstr "访问 Token"
msgid "Enable Logging"
msgstr "启用日志"
msgid "Status"
msgstr "状态"
msgid "Running"
msgstr "运行中"
msgid "Not running"
msgstr "未运行"
msgid "Open Web UI"
msgstr "打开 Web 界面"
-39
View File
@@ -1,39 +0,0 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
msgid "FastNet"
msgstr "FastNet"
msgid "FastNet provides network testing tools and a Web UI."
msgstr "FastNet 提供网络测试工具与 Web 界面。"
msgid "Settings"
msgstr "设置"
msgid "Enable"
msgstr "启用"
msgid "Listen Host"
msgstr "监听地址"
msgid "Listen Port"
msgstr "监听端口"
msgid "API Token"
msgstr "访问 Token"
msgid "Enable Logging"
msgstr "启用日志"
msgid "Status"
msgstr "状态"
msgid "Running"
msgstr "运行中"
msgid "Not running"
msgstr "未运行"
msgid "Open Web UI"
msgstr "打开 Web 界面"
@@ -1,5 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0