1.0.7 - polski interfejs i porządki w dokumentacji
Wydanie WGTools-Extended / release (push) Successful in 8s

This commit is contained in:
asminme committed 2026-10-30 15:04:45 +01:00
1 parent 97f73a6277
commit babbdee26d
39 files changed
+142 -24356

No files matched your search

-1101
View File
File diff suppressed because it is too large. Load diff
-1101
View File
File diff suppressed because it is too large. Load diff
-1101
View File
File diff suppressed because it is too large. Load diff
-1101
View File
File diff suppressed because it is too large. Load diff
-1101
View File
File diff suppressed because it is too large. Load diff
+3 -3
View File
@@ -1744,7 +1744,7 @@
$('network-trace-results')?.setAttribute('hidden','');
operationStatus('network-trace-status',t('trace.running','Running ping and traceroute… This can take up to a minute.'),'working');
try{
const r=await fetch('/api/network/trace',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({target:value,geolocate:!!geo?.checked,language:window.WGToolsI18n?.getLanguage?.()||'en'})});
const r=await fetch('/api/network/trace',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({target:value,geolocate:!!geo?.checked,language:'pl'})});
const d=await r.json(); if(!r.ok)throw new Error(d.error||t('trace.failed','Network trace failed'));
renderNetworkTrace(d);
let message=t('trace.done','Network trace completed.'); if(d.geo_partial)message+=` ${t('trace.partial_geo','Some public hops could not be geolocated.')}`;
@@ -1881,7 +1881,7 @@
function formatDate(ts){
const n=Number(ts||0); if(!n)return t('settings.never_logged_in','Never');
try{return new Intl.DateTimeFormat(window.WGToolsI18n?.getLanguage?.()==='ru'?'ru-RU':'en-GB',{dateStyle:'medium',timeStyle:'short'}).format(new Date(n*1000));}
try{return new Intl.DateTimeFormat('pl-PL',{dateStyle:'medium',timeStyle:'short'}).format(new Date(n*1000));}
catch(_){return new Date(n*1000).toLocaleString();}
}
@@ -2552,7 +2552,7 @@
const ids=$('telegram-allowed-ids'); if(ids)ids.value=(data?.allowed_user_ids||[]).join('\n');
const endpoint=$('telegram-endpoint'); if(endpoint)endpoint.value=data?.default_endpoint||'';
const dns=$('telegram-dns'); if(dns)dns.value=(data?.default_dns||[]).join(', ');
const language=$('telegram-language'); if(language)language.value=data?.language||'auto';
const language=$('telegram-language'); if(language)language.value='pl';
const remove=$('telegram-remove-token-button'); if(remove)remove.disabled=!data?.token_configured;
const botName=$('telegram-bot-name'); if(botName)botName.textContent=data?.bot_username?`@${data.bot_username}`:t('settings.telegram_not_configured','Not configured');
const last=$('telegram-last-poll'); if(last)last.textContent=`${t('settings.telegram_last_poll','Last Telegram contact')}: ${data?.last_poll_at?formatDate(data.last_poll_at):'—'}`;
+2 -2
View File
@@ -1,8 +1,8 @@
window.WGToolsI18n = (() => {
const boot = window.WGTOOLS_I18N || {};
const messages = boot.messages || {};
const lang = boot.language || 'en';
const supported = ['en','ru','de','fr','it','es','pl'];
const lang = 'pl';
const supported = ['pl'];
function t(key, fallback = key) { return messages[key] || fallback; }
function getLanguage() { return lang; }
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
-1101
View File
File diff suppressed because it is too large. Load diff