update 2026-07-30 21:46:27

This commit is contained in:
action
2026-07-30 21:46:27 +08:00
parent 70742ad55f
commit 6702e14108
1970 changed files with 17 additions and 1523449 deletions
-9
View File
@@ -1,9 +0,0 @@
include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI support for UUgamebooster
LUCI_DEPENDS:=+uugamebooster
LUCI_PKGARCH:=all
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature
@@ -1,74 +0,0 @@
'use strict';
'require form';
'require view';
'require poll';
'require ui';
'require rpc';
var callServiceList = rpc.declare({
object: 'service',
method: 'list',
params: ['name'],
expect: { '': {} }
});
function getServiceStatus() {
return L.resolveDefault(callServiceList('uugamebooster'), {}).then(function(res) {
var instances = res['uugamebooster'] && res['uugamebooster']['instances'];
if (instances) {
for (var key in instances) {
if (instances[key] && instances[key].running)
return true;
}
}
return false;
});
}
return view.extend({
render: function() {
var m, s, o;
m = new form.Map('uugamebooster', _('UU Game Accelerator'), _('A Paid Game Acceleration service'));
s = m.section(form.GridSection, '_status', _('Status'));
s.render = function() {
return E('div', { class: 'cbi-section' }, [
E('p', { id: 'uugamebooster_status' }, _('Collecting data...'))
]);
};
s = m.section(form.TypedSection, 'uugamebooster', _('Settings'));
s.anonymous = true;
s.addremove = false;
o = s.option(form.Flag, 'enabled', _('Enable'));
o.default = '0';
o.rmempty = false;
s = m.section(form.GridSection, '_qrcode', _('QR Code'));
s.render = function() {
return E('div', { class: 'cbi-section' }, [
E('p', { id: 'uugamebooster_qcode' }, [
E('img', { src: '/uugamebooster/uuios.png', height: '300' }),
E('img', { src: '/uugamebooster/uuandriod.png', height: '300' })
])
]);
};
poll.add(function() {
return getServiceStatus().then(function(running) {
var node = document.getElementById('uugamebooster_status');
if (node) {
if (running) {
node.innerHTML = '<em><b><font color="green">UU GameAcc ' + _('RUNNING') + '</font></b></em>';
} else {
node.innerHTML = '<em><b><font color="red">UU GameAcc ' + _('NOT RUNNING') + '</font></b></em>';
}
}
});
}, 3);
return m.render();
}
});
@@ -1,46 +0,0 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Language: zh_Hans\n"
#: htdocs/luci-static/resources/view/uugamebooster.js:24
msgid "Enable"
msgstr "启用"
#: root/usr/share/luci/menu.d/luci-app-uugamebooster.json:3
msgid "UU GameAcc"
msgstr "UU游戏加速器"
#: htdocs/luci-static/resources/view/uugamebooster.js:11
msgid "UU Game Accelerator"
msgstr "UU游戏加速器"
#: htdocs/luci-static/resources/view/uugamebooster.js:11
msgid "A Paid Game Acceleration service"
msgstr "一个付费主机游戏加速器 (开启服务后,使用手机APP绑定路由器并指定加速主机)"
#: htdocs/luci-static/resources/view/uugamebooster.js:13
msgid "Status"
msgstr "状态"
#: htdocs/luci-static/resources/view/uugamebooster.js:16
msgid "Collecting data..."
msgstr "正在收集数据..."
#: htdocs/luci-static/resources/view/uugamebooster.js:20
msgid "Settings"
msgstr "设置"
#: htdocs/luci-static/resources/view/uugamebooster.js:28
msgid "QR Code"
msgstr "二维码"
#: htdocs/luci-static/resources/view/uugamebooster.js:44
msgid "RUNNING"
msgstr "运行中"
#: htdocs/luci-static/resources/view/uugamebooster.js:46
msgid "NOT RUNNING"
msgstr "未运行"
@@ -1,13 +0,0 @@
{
"admin/services/uugamebooster": {
"title": "UU GameAcc",
"action": {
"type": "view",
"path": "uugamebooster"
},
"depends": {
"acl": [ "luci-app-uugamebooster" ],
"uci": { "uugamebooster": true }
}
}
}
@@ -1,14 +0,0 @@
{
"luci-app-uugamebooster": {
"description": "Grant UCI access for luci-app-uugamebooster",
"read": {
"uci": [ "uugamebooster" ],
"ubus": {
"service": [ "list" ]
}
},
"write": {
"uci": [ "uugamebooster" ]
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB