mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2026-02-22 16:46:17 +00:00
Fixed Bug. Unpredicted grow of cumulative data counters when using MySQL DB with 7 digits float precision. (#1125)
* build(deps): bump @vue/language-server in /src/static/app (#1063) Bumps [@vue/language-server](https://github.com/vuejs/language-tools/tree/HEAD/packages/language-server) from 3.1.8 to 3.2.2. - [Release notes](https://github.com/vuejs/language-tools/releases) - [Changelog](https://github.com/vuejs/language-tools/blob/master/CHANGELOG.md) - [Commits](https://github.com/vuejs/language-tools/commits/v3.2.2/packages/language-server) --- updated-dependencies: - dependency-name: "@vue/language-server" dependency-version: 3.2.2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump pinia from 3.0.3 to 3.0.4 in /src/static/app (#1065) Bumps [pinia](https://github.com/vuejs/pinia) from 3.0.3 to 3.0.4. - [Release notes](https://github.com/vuejs/pinia/releases) - [Commits](https://github.com/vuejs/pinia/compare/v3.0.3...v3.0.4) --- updated-dependencies: - dependency-name: pinia dependency-version: 3.0.4 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps-dev): bump @vitejs/plugin-vue in /src/static/app (#1067) Bumps [@vitejs/plugin-vue](https://github.com/vitejs/vite-plugin-vue/tree/HEAD/packages/plugin-vue) from 6.0.1 to 6.0.3. - [Release notes](https://github.com/vitejs/vite-plugin-vue/releases) - [Changelog](https://github.com/vitejs/vite-plugin-vue/blob/main/packages/plugin-vue/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite-plugin-vue/commits/plugin-vue@6.0.3/packages/plugin-vue) --- updated-dependencies: - dependency-name: "@vitejs/plugin-vue" dependency-version: 6.0.3 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump electron-builder in /src/static/app (#1064) Bumps [electron-builder](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-builder) from 26.0.12 to 26.4.0. - [Release notes](https://github.com/electron-userland/electron-builder/releases) - [Changelog](https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/CHANGELOG.md) - [Commits](https://github.com/electron-userland/electron-builder/commits/electron-builder@26.4.0/packages/electron-builder) --- updated-dependencies: - dependency-name: electron-builder dependency-version: 26.4.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump @volar/language-server in /src/static/app (#1066) Bumps [@volar/language-server](https://github.com/volarjs/volar.js/tree/HEAD/packages/language-server) from 2.4.26 to 2.4.27. - [Release notes](https://github.com/volarjs/volar.js/releases) - [Changelog](https://github.com/volarjs/volar.js/blob/master/CHANGELOG.md) - [Commits](https://github.com/volarjs/volar.js/commits/v2.4.27/packages/language-server) --- updated-dependencies: - dependency-name: "@volar/language-server" dependency-version: 2.4.27 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore: change docs * docs: correctly escape pipes * build(deps): bump npm from 11.6.4 to 11.8.0 in /src/static/app (#1104) Bumps [npm](https://github.com/npm/cli) from 11.6.4 to 11.8.0. - [Release notes](https://github.com/npm/cli/releases) - [Changelog](https://github.com/npm/cli/blob/latest/CHANGELOG.md) - [Commits](https://github.com/npm/cli/compare/v11.6.4...v11.8.0) --- updated-dependencies: - dependency-name: npm dependency-version: 11.8.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump gunicorn from 23.0.0 to 24.1.1 in /src (#1103) Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 23.0.0 to 24.1.1. - [Release notes](https://github.com/benoitc/gunicorn/releases) - [Commits](https://github.com/benoitc/gunicorn/compare/23.0.0...24.1.1) --- updated-dependencies: - dependency-name: gunicorn dependency-version: 24.1.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump is-cidr from 6.0.1 to 6.0.2 in /src/static/app (#1102) Bumps [is-cidr](https://github.com/silverwind/is-cidr) from 6.0.1 to 6.0.2. - [Release notes](https://github.com/silverwind/is-cidr/releases) - [Commits](https://github.com/silverwind/is-cidr/compare/6.0.1...6.0.2) --- updated-dependencies: - dependency-name: is-cidr dependency-version: 6.0.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump sqlalchemy from 2.0.45 to 2.0.46 in /src (#1101) Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 2.0.45 to 2.0.46. - [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases) - [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES.rst) - [Commits](https://github.com/sqlalchemy/sqlalchemy/commits) --- updated-dependencies: - dependency-name: sqlalchemy dependency-version: 2.0.46 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix npm audit tar vulnerabilities (#1093) * Harden npm deps via tar override * chore: retrigger review --------- Co-authored-by: Super User <root@vpn.northcaptiva.com> * build(deps): bump @vue/language-server in /src/static/app (#1100) Bumps [@vue/language-server](https://github.com/vuejs/language-tools/tree/HEAD/packages/language-server) from 3.2.2 to 3.2.4. - [Release notes](https://github.com/vuejs/language-tools/releases) - [Changelog](https://github.com/vuejs/language-tools/blob/master/CHANGELOG.md) - [Commits](https://github.com/vuejs/language-tools/commits/v3.2.4/packages/language-server) --- updated-dependencies: - dependency-name: "@vue/language-server" dependency-version: 3.2.4 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump vue from 3.5.26 to 3.5.27 in /src/static/app (#1087) Bumps [vue](https://github.com/vuejs/core) from 3.5.26 to 3.5.27. - [Release notes](https://github.com/vuejs/core/releases) - [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md) - [Commits](https://github.com/vuejs/core/compare/v3.5.26...v3.5.27) --- updated-dependencies: - dependency-name: vue dependency-version: 3.5.27 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps-dev): bump vite from 7.3.0 to 7.3.1 in /src/static/app (#1082) Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.3.0 to 7.3.1. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v7.3.1/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v7.3.1/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-version: 7.3.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump psutil from 7.2.1 to 7.2.2 in /src Bumps [psutil](https://github.com/giampaolo/psutil) from 7.2.1 to 7.2.2. - [Changelog](https://github.com/giampaolo/psutil/blob/master/HISTORY.rst) - [Commits](https://github.com/giampaolo/psutil/compare/release-7.2.1...release-7.2.2) --- updated-dependencies: - dependency-name: psutil dependency-version: 7.2.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * build(deps): bump gunicorn from 24.1.1 to 25.0.1 in /src Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 24.1.1 to 25.0.1. - [Release notes](https://github.com/benoitc/gunicorn/releases) - [Commits](https://github.com/benoitc/gunicorn/compare/24.1.1...25.0.1) --- updated-dependencies: - dependency-name: gunicorn dependency-version: 25.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Refine total_sent and total_receive with precision factor Adjusted total_sent and total_receive calculations for accuracy. The database engine may have lower floating-point precision than the Python engine. This can lead to situations where the current bytes count compares lower than the database data. This causes an increase in cumulative traffic each time such a precision collision occurs. * Update WireguardConfiguration.py It better make some fix in comparation only, and don't touch saved values. * Update WireguardConfiguration.py wrong symbol --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: DaanSelen <dselen@systemec.nl> Co-authored-by: zombu4 <dom@northcaptiva.com> Co-authored-by: Super User <root@vpn.northcaptiva.com>
This commit is contained in:
@@ -55,7 +55,7 @@ docker run -d \
|
||||
|
||||
---
|
||||
|
||||
### 📦 Docker Compose Alternative
|
||||
### 📦 Docker Compose Alternative (see the [compose file](./compose.yaml))
|
||||
|
||||
You can also use Docker Compose for easier configuration:
|
||||
|
||||
@@ -65,7 +65,6 @@ services:
|
||||
image: ghcr.io/wgdashboard/wgdashboard:latest
|
||||
restart: unless-stopped
|
||||
container_name: wgdashboard
|
||||
|
||||
ports:
|
||||
- 10086:10086/tcp
|
||||
- 51820:51820/udp
|
||||
|
||||
@@ -799,7 +799,7 @@ class WireguardConfiguration:
|
||||
cur_total_receive = float(data_usage[i][1]) / (1024 ** 3)
|
||||
cumulative_receive = cur_i['cumu_receive'] + total_receive
|
||||
cumulative_sent = cur_i['cumu_sent'] + total_sent
|
||||
if total_sent <= cur_total_sent and total_receive <= cur_total_receive:
|
||||
if (total_sent * 0.999 ) <= cur_total_sent and (total_receive * 0.999) <= cur_total_receive: # An accuracy of 1K ppm is sufficient
|
||||
total_sent = cur_total_sent
|
||||
total_receive = cur_total_receive
|
||||
else:
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
bcrypt==5.0.0
|
||||
ifcfg==0.24
|
||||
psutil==7.2.1
|
||||
psutil==7.2.2
|
||||
pyotp==2.9.0
|
||||
Flask==3.1.2
|
||||
flask-cors==6.0.2
|
||||
icmplib==3.0.4
|
||||
gunicorn==23.0.0
|
||||
gunicorn==25.0.1
|
||||
requests==2.32.5
|
||||
tcconfig==0.30.1
|
||||
sqlalchemy==2.0.45
|
||||
sqlalchemy==2.0.46
|
||||
sqlalchemy_utils==0.42.1
|
||||
psycopg[binary]==3.3.2
|
||||
PyMySQL==1.1.2
|
||||
|
||||
1891
src/static/app/package-lock.json
generated
1891
src/static/app/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -12,8 +12,8 @@
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@volar/language-server": "2.4.26",
|
||||
"@vue/language-server": "3.1.8",
|
||||
"@volar/language-server": "2.4.27",
|
||||
"@vue/language-server": "3.2.4",
|
||||
"@vuepic/vue-datepicker": "^12.1.0",
|
||||
"@vueuse/core": "^14.0.0",
|
||||
"@vueuse/shared": "^14.1.0",
|
||||
@@ -23,24 +23,27 @@
|
||||
"cidr-tools": "^11.0.3",
|
||||
"css-color-converter": "^2.0.0",
|
||||
"dayjs": "^1.11.19",
|
||||
"electron-builder": "^26.0.12",
|
||||
"electron-builder": "^26.4.0",
|
||||
"fuse.js": "^7.0.0",
|
||||
"i": "^0.3.7",
|
||||
"is-cidr": "^6.0.1",
|
||||
"npm": "^11.6.4",
|
||||
"is-cidr": "^6.0.2",
|
||||
"npm": "^11.8.0",
|
||||
"ol": "^10.7.0",
|
||||
"pinia": "^3.0.3",
|
||||
"pinia": "^3.0.4",
|
||||
"pinia-plugin-persistedstate": "^4.7.1",
|
||||
"qrcode": "^1.5.3",
|
||||
"qrcodejs": "^1.0.0",
|
||||
"simple-code-editor": "^2.0.9",
|
||||
"uuid": "^13.0.0",
|
||||
"vue": "^3.5.26",
|
||||
"vue": "^3.5.27",
|
||||
"vue-chartjs": "^5.3.3",
|
||||
"vue-router": "^4.6.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-vue": "^6.0.0",
|
||||
"vite": "^7.3.0"
|
||||
"@vitejs/plugin-vue": "^6.0.3",
|
||||
"vite": "^7.3.1"
|
||||
},
|
||||
"overrides": {
|
||||
"tar": "^7.5.6"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user