refactor: reorganize logger module and update proxy display

Move logger.js from root to utils directory for better project structure
Update InstanceDetail view to show full remote address instead of just port
This commit is contained in:
2026-04-01 22:01:35 +08:00
parent 14b959fcc2
commit c53854722d
3 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import { postLog } from '../../logger.js'; import { postLog } from './logger.js';
function showNotification(message, type = 'info') { function showNotification(message, type = 'info') {
const icons = { const icons = {

View File

@@ -199,8 +199,8 @@
<span class="config-value">{{ proxy.localIP }}:{{ proxy.localPort }}</span> <span class="config-value">{{ proxy.localIP }}:{{ proxy.localPort }}</span>
</div> </div>
<div class="config-item proxy-detail"> <div class="config-item proxy-detail">
<span class="config-key">Remote Port</span> <span class="config-key">Remote Address</span>
<span class="config-value">{{ proxy.remotePort }}</span> <span class="config-value">{{ instanceConfig['Server Address'] || '' }}:{{ proxy.remotePort }}</span>
</div> </div>
</div> </div>
</div> </div>