1
0
mirror of https://github.com/kenzok8/small-package synced 2025-11-18 01:01:34 +08:00

update-10.30

This commit is contained in:
github-actions[bot]
2021-10-30 20:29:00 +08:00
parent 5bbe89bbfd
commit eee9559674
7 changed files with 33 additions and 26 deletions

View File

@@ -7,7 +7,7 @@ PKG_NAME:=luci-app-sms-tool
LUCI_TITLE:=LuCI Support for sms_tool
LUCI_PKGARCH:=all
LUCI_DEPENDS:=+sms-tool +kmod-usb-serial +kmod-usb-serial-option +luci-compat
PKG_VERSION:=1.9.1-19092021
PKG_VERSION:=1.9.2-2021-10-30
PKG_LICENSE:=GPLv3
define Package/luci-app-sms-tool/postinst

View File

@@ -42,7 +42,7 @@ local smscount = string.match(smsnum, '%d+')
m = Map("sms_tool", translate("Configuration sms-tool"),
translate("Configuration panel for sms_tool and gui application."))
s = m:section(NamedSection, 'general' , "sms_tool" , "<p>&nbsp;</p>" .. translate(""))
s = m:section(NamedSection, 'general' , "sms_tool" , "" .. translate(""))
s.anonymous = true
s:tab("sms", translate("SMS Settings"))
s:tab("ussd", translate("USSD Codes Settings"))

View File

@@ -6,7 +6,7 @@
-->
<h2><%:AT Commands%></h2>
<label><%:Web UI for handling AT commands via sms_tool.%></label>
<label><%:Web UI for handling AT commands via sms_tool. More information about the sms-tool on the%> <a href="https://eko.one.pl/?p=openwrt-sms_tool" target="_blank"><%:eko.one.pl forum%></a>.</label>
<p></p>
<h4><%:Sending commands to modem%></h4>
<div class="table" width="100%">
@@ -35,7 +35,7 @@
<pre id="odp" style="visibility: hidden; width:75%;"></pre></div>
<div class="tr cbi-rowstyle-2">
<div class="td right"><div style="float: left;"><div class="ifacebadge"><a href="https://eko.one.pl/forum/viewtopic.php?id=20096">e1</a></div></div><input type="button" style="margin-right: 26%"; id="sendcmd" class="btn cbi-button cbi-button-neutral" value="<%:Send Command%>" /></div>
<div class="td right"><input type="button" style="margin-right: 26%"; id="sendcmd" class="btn cbi-button cbi-button-neutral" value="<%:Send Command%>" /></div>
</div>
</div>

View File

@@ -10,7 +10,7 @@
local smsmem = tostring(uci:get("sms_tool", "general", "storage"))
local sms = tostring(luci.sys.exec("sms_tool -s" .. smsmem .. " -d " .. devv .. " -f '%Y-%m-%d %H:%M' -j recv 2>/dev/null"))
local sms = tostring(luci.sys.exec("sms_tool -s" .. smsmem .. " -d " .. devv .. " -f '%Y-%m-%d %H:%M:%S' -j recv 2>/dev/null"))
local smsmer = tostring(uci:get("sms_tool", "general", "mergesms"))
local smscuta = string.sub (sms, 8)
local smscut = smscuta:sub(1, #smscuta - 2)
@@ -56,7 +56,7 @@ th, td {
td input[type="checkbox"] {
float: left;
margin: 0 auto;
width: 50%;
width: 40%;
}
tr:nth-child(odd) {background-color: #f5f5f5;}
@@ -272,7 +272,7 @@ if (document.querySelectorAll('input[name="smsn"]:checked').length === document.
<h2><%:SMS Messages%></h2>
<label><%:Web UI for handling messages via sms_tool.%></label>
<label><%:Web UI for receiveling messages via sms_tool. More information about the sms-tool on the%> <a href="https://eko.one.pl/?p=openwrt-sms_tool" target="_blank"><%:eko.one.pl forum%></a>.</label>
<p></p>
<h4><%:Received Messages%></h4>
<div class="table" width="100%">
@@ -285,8 +285,8 @@ if (document.querySelectorAll('input[name="smsn"]:checked').length === document.
<td class="td left" width="7%"><input type='checkbox' id='allcheck' onclick='toggle(this);'/></td>
<td class="td left" width="10%"><strong><%:From%></strong></td>
<td class="td left" width="13%"><strong><%:Received%></strong></td>
<td class="td center" width="60%" ><strong><%:Message%></strong></td>
<td class="td left" width="16%"><strong><%:Received%></strong></td>
<td class="td center" width="66%" ><strong><%:Message%></strong></td>
</tr>
</table>
@@ -296,7 +296,7 @@ if (document.querySelectorAll('input[name="smsn"]:checked').length === document.
<div class="td right" style="width:100%;">
<div style="float: left;"><div class="ifacebadge"><a href="https://eko.one.pl/forum/viewtopic.php?id=20096">e1</a></div></div>
<div style="float: left;"></div>
<input type="button" id="delbtn" class="btn cbi-button cbi-button-neutral" value="<%:Refresh SMS%>" onclick="refreshSMS()" />&nbsp;&nbsp;&nbsp;<input type="button" id="delabtn" class="btn cbi-button cbi-button-neutral" value="<%:Delete message(s)%>" onclick="delete_new()" />
</div>

View File

@@ -1,6 +1,7 @@
<%
local util = require "luci.util"
local sys = require "luci.sys"
local uci = require "luci.model.uci".cursor()
local pon = tostring(uci:get("sms_tool", "general", "prefix"))
local pnumber = tostring(uci:get("sms_tool", "general", "pnumber"))
@@ -74,8 +75,8 @@ XHR.get('<%=luci.dispatcher.build_url("admin", "modem", "sms", "user_phonebook")
var number = fields[1];
opt.text = name;
opt.value = number.trim();
opt.innerHTML = name;
select.appendChild(opt);
opt.innerHTML = name;
select.appendChild(opt);
}
}
@@ -101,7 +102,7 @@ function count_replace(obj) {
document.getElementById('counter').innerHTML = (160 - document.getElementById('smstxt').value.length);
obj.value = obj.value.replace(/ą/g, 'a').replace(/Ą/g, 'A');
obj.value = obj.value.replace(/ą/g, 'a').replace(/Ą/g, 'A');
obj.value = obj.value.replace(/ć/g, 'c').replace(/Ć/g, 'C')
obj.value = obj.value.replace(/ę/g, 'e').replace(/Ę/g, 'E')
obj.value = obj.value.replace(/ł/g, 'l').replace(/Ł/g, 'L')
@@ -110,7 +111,7 @@ function count_replace(obj) {
obj.value = obj.value.replace(/ś/g, 's').replace(/Ś/g, 'S')
obj.value = obj.value.replace(/ż/g, 'z').replace(/Ż/g, 'Z')
obj.value = obj.value.replace(/ź/g, 'z').replace(/Ź/g, 'Z');
document.getElementById("odp").innerHTML = "";
document.getElementById("odp").innerHTML = "";
}
@@ -189,7 +190,7 @@ document.addEventListener('DOMContentLoaded', function (ev) {var button = docume
<h2><%:SMS Messages%></h2>
<label><%:Web UI for handling messages via sms_tool.%></label>
<label><%:Web UI for sending messages via sms_tool. More information about the sms-tool on the%> <a href="https://eko.one.pl/?p=openwrt-sms_tool" target="_blank"><%:eko.one.pl forum%></a>.</label>
<p></p>
<h4><%:Send Messages%></h4>
@@ -227,7 +228,7 @@ document.addEventListener('DOMContentLoaded', function (ev) {var button = docume
<div class="table" width="100%">
<div class="tr cbi-rowstyle-2">
<div class="td center"><div style="float: left;"><div class="ifacebadge"><a href="https://eko.one.pl/forum/viewtopic.php?id=20096">e1</a></div></div><input type="button" style="margin-left: 35%"; id="sendsms" class="btn cbi-button cbi-button-neutral" value="<%:Send Message%>" /></div>
<div class="td center"><input type="button" style="margin-left: 35%"; id="sendsms" class="btn cbi-button cbi-button-neutral" value="<%:Send Message%>" /></div>
</div>
</div>

View File

@@ -17,7 +17,7 @@
-->
<h2><%:USSD Codes%></h2>
<label><%:Web UI for handling USSD codes via sms_tool.%></label>
<label><%:Web UI for handling USSD codes via sms_tool. More information about the sms-tool on the%> <a href="https://eko.one.pl/?p=openwrt-sms_tool" target="_blank"><%:eko.one.pl forum%></a>.</label>
<p></p>
<h4><%:Sending USSD codes%></h4>
<div class="table" width="100%">
@@ -46,7 +46,7 @@
<div class="table" width="100%">
<div class="tr cbi-rowstyle-2">
<div class="td center"><div style="float: left;"><div class="ifacebadge"><a href="https://eko.one.pl/forum/viewtopic.php?id=20096">e1</a></div></div><input type="button" style="margin-left: 35%"; id="sendussd" class="btn cbi-button cbi-button-neutral" value="<%:Send Code%>" /></div>
<div class="td center"><input type="button" style="margin-left: 35%"; id="sendussd" class="btn cbi-button cbi-button-neutral" value="<%:Send Code%>" /></div>
</div>
</div>
@@ -75,8 +75,8 @@ window.onload = function readUSER() {
var code = fields[1];
opt.text = name;
opt.value = code.trim();
opt.innerHTML = name;
select.appendChild(opt);
opt.innerHTML = name;
select.appendChild(opt);
}
}

View File

@@ -70,11 +70,17 @@ msgstr "Panel ustawień dla aplikacji sms_tool oraz dla interfejsu użytkownika.
msgid "Device"
msgstr "Urządzenie"
msgid "Web UI for handling messages via sms_tool."
msgstr "Interfejs użytkownika dla sms_tool do obsługi wiadomości SMS."
msgid "Web UI for receiveling messages via sms_tool. More information about the sms-tool on the"
msgstr "Interfejs użytkownika dla sms_tool do odbierania wiadomości SMS. Więcej informacji o sms-tool na"
msgid "Web UI for handling USSD codes via sms_tool."
msgstr "Interfejs użytkownika dla sms_tool do obsługi kodów USSD."
msgid "Web UI for sending messages via sms_tool. More information about the sms-tool on the"
msgstr "Interfejs użytkownika dla sms_tool do wysyłania wiadomości SMS. Więcej informacji o sms-tool na"
msgid "Web UI for handling USSD codes via sms_tool. More information about the sms-tool on the"
msgstr "Interfejs użytkownika dla sms_tool do obsługi kodów USSD. Więcej informacji o sms-tool na"
msgid "eko.one.pl forum"
msgstr "forum eko.one.pl"
msgid "SIM card"
msgstr "Karta SIM"
@@ -229,8 +235,8 @@ msgstr "Wiadomości przechowywane są w określonym miejscu (np. na karcie SIM l
msgid "AT Commands"
msgstr "Polecenia AT"
msgid "Web UI for handling AT commands via sms_tool."
msgstr "Interfejs użytkownika dla sms_tool do obsługi poleceń AT."
msgid "Web UI for handling AT commands via sms_tool. More information about the sms-tool on the"
msgstr "Interfejs użytkownika dla sms_tool do obsługi poleceń AT. Więcej informacji o sms-tool na"
msgid "Sending commands to modem"
msgstr "Wysyłanie poleceń do modemu"