🌴 Sync 2026-03-05 23:51:42

This commit is contained in:
github-actions[bot] committed 2026-03-05 23:51:42 +08:00
1 parent 97c049ed0a
commit 0acff03804
14253 files changed
+3893239

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#
# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
#
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI support for Vlmcsd KMS Server
LUCI_DEPENDS:=+vlmcsd
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature
@@ -0,0 +1,66 @@
'use strict';
'require form';
'require poll';
'require rpc';
'require view';
'require fs';
const callServiceList = rpc.declare({
object: 'service',
method: 'list',
params: ['name'],
expect: { '': {} }
});
function getServiceStatus() {
return L.resolveDefault(callServiceList('vlmcsd'), {}).then(res =>
res?.['vlmcsd']?.['instances']?.['vlmcsd']?.['running']
);
}
function renderStatus(status) {
const color = status ? 'green' : 'red';
const service = _('Vlmcsd KMS Server');
const running = status ? _('RUNNING') : _('NOT RUNNING');
return `<em><span style="color:${color}"><strong>${service} ${running}</strong></span></em>`;
}
return view.extend({
render() {
const m = new form.Map('vlmcsd', _('Vlmcsd KMS Server'));
let s = m.section(form.TypedSection);
s.anonymous = true;
s.render = function () {
poll.add(function () {
return L.resolveDefault(getServiceStatus()).then(function (res) {
const stats = renderStatus(res);
const view = document.getElementById('vlmcsd_status');
view.innerHTML = stats;
});
});
return E('div', { class: 'cbi-section', id: 'status_bar' }, [
E('p', { id: 'vlmcsd_status' }, _('Collecting data…'))
]);
};
s = m.section(form.NamedSection, 'config', 'vlmcsd');
s.tab('general', _('General Settings'));
s.tab('config_file', _('Configuration File'), _('Edit the content of the /etc/vlmcsd.ini file.'));
s.taboption('general', form.Flag, 'enabled', _('Enable Vlmcsd KMS Server'));
s.taboption('general', form.Flag, 'auto_activate', _('Allow automatic activation'));
s.taboption('general', form.Flag, 'internet_access', _('Allow connection from Internet'));
const o = s.taboption('config_file', form.TextValue, '_tmpl',
null,
_("This is the content of the file '/etc/vlmcsd.ini', you can edit it here, usually no modification is needed."));
o.rows = 20;
o.monospace = true;
o.load = () => fs.trimmed('/etc/vlmcsd.ini');
o.write = (_, value) => fs.write('/etc/vlmcsd.ini', value.trim().replace(/\r\n/g, '\n') + '\n');
return m.render();
}
});
+54
View File
@@ -0,0 +1,54 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:53
msgid "Allow automatic activation"
msgstr ""
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:54
msgid "Allow connection from Internet"
msgstr ""
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:44
msgid "Collecting data…"
msgstr ""
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:50
msgid "Configuration File"
msgstr ""
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:50
msgid "Edit the content of the /etc/vlmcsd.ini file."
msgstr ""
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:52
msgid "Enable Vlmcsd KMS Server"
msgstr ""
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:49
msgid "General Settings"
msgstr ""
#: applications/luci-app-vlmcsd/root/usr/share/rpcd/acl.d/luci-app-vlmcsd.json:3
msgid "Grant UCI access for luci-app-vlmcsd"
msgstr ""
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:24
msgid "NOT RUNNING"
msgstr ""
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:24
msgid "RUNNING"
msgstr ""
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:58
msgid ""
"This is the content of the file '/etc/vlmcsd.ini', you can edit it here, "
"usually no modification is needed."
msgstr ""
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:23
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:30
#: applications/luci-app-vlmcsd/root/usr/share/luci/menu.d/luci-app-vlmcsd.json:3
msgid "Vlmcsd KMS Server"
msgstr ""
+1
View File
@@ -0,0 +1 @@
zh_Hans
+61
View File
@@ -0,0 +1,61 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Project-Id-Version: PACKAGE VERSION\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: zh_Hans\n"
"MIME-Version: 1.0\n"
"Content-Transfer-Encoding: 8bit\n"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:53
msgid "Allow automatic activation"
msgstr "允许自动激活客户端"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:54
msgid "Allow connection from Internet"
msgstr "允许来自互联网的连接"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:44
msgid "Collecting data…"
msgstr "正在收集数据中..."
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:50
msgid "Configuration File"
msgstr "配置文件"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:50
msgid "Edit the content of the /etc/vlmcsd.ini file."
msgstr "编辑 /etc/vlmcsd.ini 文件的内容。"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:52
msgid "Enable Vlmcsd KMS Server"
msgstr "启用 Vlmcsd KMS 服务器"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:49
msgid "General Settings"
msgstr "常规设置"
#: applications/luci-app-vlmcsd/root/usr/share/rpcd/acl.d/luci-app-vlmcsd.json:3
msgid "Grant UCI access for luci-app-vlmcsd"
msgstr "授予 luci-app-vlmcsd 访问 UCI 的权限"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:24
msgid "NOT RUNNING"
msgstr "未运行"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:24
msgid "RUNNING"
msgstr "运行中"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:58
msgid ""
"This is the content of the file '/etc/vlmcsd.ini', you can edit it here, "
"usually no modification is needed."
msgstr "这是 /etc/vlmcsd.ini 文件的内容,您可以在此进行编辑,通常无需修改。"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:23
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:30
#: applications/luci-app-vlmcsd/root/usr/share/luci/menu.d/luci-app-vlmcsd.json:3
msgid "Vlmcsd KMS Server"
msgstr "Vlmcsd KMS 服务器"
+61
View File
@@ -0,0 +1,61 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Project-Id-Version: PACKAGE VERSION\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: zh_Hant\n"
"MIME-Version: 1.0\n"
"Content-Transfer-Encoding: 8bit\n"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:53
msgid "Allow automatic activation"
msgstr "允許自動激活客戶端"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:54
msgid "Allow connection from Internet"
msgstr "允許來自網際網路的連接"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:44
msgid "Collecting data…"
msgstr "正在收集資料中..."
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:50
msgid "Configuration File"
msgstr "設定檔案"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:50
msgid "Edit the content of the /etc/vlmcsd.ini file."
msgstr "編輯 /etc/vlmcsd.ini 檔案的內容。"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:52
msgid "Enable Vlmcsd KMS Server"
msgstr "啟用 Vlmcsd KMS 伺服器"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:49
msgid "General Settings"
msgstr "一般設定"
#: applications/luci-app-vlmcsd/root/usr/share/rpcd/acl.d/luci-app-vlmcsd.json:3
msgid "Grant UCI access for luci-app-vlmcsd"
msgstr "授予 luci-app-vlmcsd 訪問 UCI 的權限"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:24
msgid "NOT RUNNING"
msgstr "未運行"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:24
msgid "RUNNING"
msgstr "運行中"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:58
msgid ""
"This is the content of the file '/etc/vlmcsd.ini', you can edit it here, "
"usually no modification is needed."
msgstr "這是 /etc/vlmcsd.ini 檔案的內容,您可以在此進行編輯,通常無需修改。"
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:23
#: applications/luci-app-vlmcsd/htdocs/luci-static/resources/view/vlmcsd.js:30
#: applications/luci-app-vlmcsd/root/usr/share/luci/menu.d/luci-app-vlmcsd.json:3
msgid "Vlmcsd KMS Server"
msgstr "Vlmcsd KMS 伺服器"
@@ -0,0 +1,13 @@
{
"admin/services/vlmcsd": {
"title": "Vlmcsd KMS Server",
"action": {
"type": "view",
"path": "vlmcsd"
},
"depends": {
"acl": [ "luci-app-vlmcsd" ],
"uci": { "vlmcsd": true }
}
}
}
@@ -0,0 +1,20 @@
{
"luci-app-vlmcsd": {
"description": "Grant UCI access for luci-app-vlmcsd",
"read": {
"file": {
"/etc/vlmcsd.ini": [ "read" ]
},
"ubus": {
"service": [ "list" ]
},
"uci": [ "vlmcsd" ]
},
"write": {
"file": {
"/etc/vlmcsd.ini": [ "write" ]
},
"uci": [ "vlmcsd" ]
}
}
}