update 2026-10-07 18:47:42

This commit is contained in:
action committed 2026-10-07 18:47:42 +08:00
1 parent 617f7ca2a6
commit bd061545ed
4832 files changed
+1693456

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
# 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 Verysync
LUCI_DEPENDS:=+verysync
LUCI_PKGARCH:=all
PKG_VERSION:=1.0
PKG_RELEASE:=6
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature
@@ -0,0 +1,17 @@
module("luci.controller.verysync", package.seeall)
function index()
if not nixio.fs.access("/etc/config/verysync") then
return
end
entry({"admin", "nas", "verysync"}, cbi("verysync"), _("Verysync"), 10).dependent = true
entry({"admin","nas","verysync","status"},call("act_status")).leaf=true
end
function act_status()
local e={}
e.running=luci.sys.call("pgrep verysync >/dev/null")==0
luci.http.prepare_content("application/json")
luci.http.write_json(e)
end
@@ -0,0 +1,24 @@
-- Copyright 2008 Yanira <forum-2008@email.de>
-- Copyright 2020 KFERMercer <KFER.Mercer@gmail.com>
-- Licensed to the public under the Apache License 2.0.
m = Map("verysync")
m.title = translate("Verysync")
m.description = translate("Simple and easy-to-use multi-platform file synchronization software, astonishing transmission speed is different from the greatest advantage of other products. Micro-force synchronization of intelligent P2P technology to accelerate synchronization, will split the file into several KB-only data synchronization, and the file will be AES encryption processing.")
m:section(SimpleSection).template = "verysync/verysync_status"
s = m:section(TypedSection, "verysync")
s.addremove = false
s.anonymous = true
o = s:option(Flag, "enabled", translate("Enable"))
o.rmempty = false
o = s:option(Value, "port", translate("Port"))
o.datatype = "port"
o.placeholder = "8886"
o.default = "8886"
o.rmempty = false
return m
@@ -0,0 +1,28 @@
<script type="text/javascript">//<![CDATA[
XHR.poll(3, '<%=url([[admin]], [[nas]], [[verysync]], [[status]])%>', null,
function(x, data) {
var tb = document.getElementById('verysync_status');
if (data && tb) {
if (data.running) {
var links = '<em><b><font color="green">Verysync <%:RUNNING%></font></b></em><input class="cbi-button mar-10" type="button" value="<%:Open Verysync page%>" onclick="openwebui();" />';
tb.innerHTML = links;
} else {
tb.innerHTML = '<em><b><font color="red">Verysync <%:NOT RUNNING%></font></b></em>';
}
}
}
);
function openwebui(){
var url = window.location.host+":<%=luci.sys.exec("uci -q get verysync.config.port"):gsub("^%s*(.-)%s*$", "%1")%>";
window.open('http://'+url,'target','');
}
//]]>
</script>
<style>.mar-10 {margin-left: 50px; margin-right: 10px;}</style>
<fieldset class="cbi-section">
<p id="verysync_status">
<em><%:Collecting data...%></em>
</p>
</fieldset>
@@ -0,0 +1,8 @@
msgid "Verysync"
msgstr "微力同步"
msgid "Simple and easy-to-use multi-platform file synchronization software, astonishing transmission speed is different from the greatest advantage of other products. Micro-force synchronization of intelligent P2P technology to accelerate synchronization, will split the file into several KB-only data synchronization, and the file will be AES encryption processing."
msgstr "简单易用的多平台文件同步软件, 惊人的传输速度是不同于其他产品的最大优势. 微力同步的智能 P2P 加速同步技术会将文件分割成若干份仅 KB 的数据进行传输, 同时会使用 AES 加密处理."
msgid "Open Verysync page"
msgstr "打开微力同步页面"
+1
View File
@@ -0,0 +1 @@
zh-cn
@@ -0,0 +1,2 @@
config verysync 'config'
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh /etc/rc.common
START=99
STOP=10
start() {
local enabled="$(uci get verysync.config.enabled)"
local port="$(uci get verysync.config.port)"
stop
[ "${enabled}" == "1" ] || exit 0
export HOME="/root/"
verysync -gui-address="0.0.0.0:${port}" -logfile="/var/log/verysync.log" -home="/etc/verysync/" -no-browser >/dev/null 2>&1 &
}
stop() {
kill -9 `pgrep verysync` >/dev/null 2>&1
}
@@ -0,0 +1,11 @@
{
"luci-app-verysync": {
"description": "Grant UCI access for luci-app-verysync",
"read": {
"uci": [ "verysync" ]
},
"write": {
"uci": [ "verysync" ]
}
}
}
@@ -0,0 +1,4 @@
{
"config": "verysync",
"init": "verysync"
}