hudra0 / luci-app-qosmate

GNU General Public License v3.0
5 stars 7 forks source link

Encountered a problem #1

Closed fuqiang03 closed 3 months ago

fuqiang03 commented 3 months ago

20240814002712 Missing file path 'qosmate'

fuqiang03 commented 3 months ago

function fetchLatestVersion() { return new Promise((resolve, reject) => { var xhr = new XMLHttpRequest(); xhr.open('GET', 'https://raw.githubusercontent.com/hudra0/qosmate/main/etc/qosmate.sh', true); xhr.onload = function() { if (xhr.status === 200) { var match = xhr.responseText.match(/^VERSION="(.+)"/m); latestVersion = match ? match[1] : 'Unknown'; resolve(latestVersion); } else { reject('Failed to fetch latest version'); } }; xhr.onerror = function() { reject('Network error'); }; xhr.send(); }); } 连接错误信息,影响页面显示

fuqiang03 commented 3 months ago

20240814010625

hudra0 commented 3 months ago

Did you build qosmate from source?

fuqiang03 commented 3 months ago

@hudra0 yes I need time to learn how to use it Additional dependencies may need to be installed 20240814174804 Can you provide a "pot" file

hudra0 commented 3 months ago

You might be missing the entire backend (init script, main script, etc.). Please avoid using the Makefile for now—it hasn’t been tested and is likely incomplete. I've just updated the README, so please follow those instructions to install QoSMate and luci-app-qosmate.

fuqiang03 commented 3 months ago

@hudra0 The information returned by fetchLatestVersion will affect the display of the page, even for the latest files. If the network is restricted, the returned information will control the entire page I can solve any other problems on my own

hudra0 commented 3 months ago

I made some changes to the UI which should help if there is no Internet connection. Please re-download everything and try again.

fuqiang03 commented 3 months ago

@hudra0 没有问题了

fuqiang03 commented 2 months ago

@hudra0 20240922015319 20240922015342 20240922015443 Too many connections will result in an error