Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot] ce38d42bae chore(deps): bump fuse.js from 7.1.0 to 7.3.0 in /src/static/admin
Bumps [fuse.js](https://github.com/krisk/Fuse) from 7.1.0 to 7.3.0.
- [Release notes](https://github.com/krisk/Fuse/releases)
- [Changelog](https://github.com/krisk/Fuse/blob/main/CHANGELOG.md)
- [Commits](https://github.com/krisk/Fuse/compare/v7.1.0...v7.3.0)

---
updated-dependencies:
- dependency-name: fuse.js
  dependency-version: 7.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-07 01:08:50 +00:00
7 changed files with 20 additions and 22 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
.idea/*
*.db
dist
+5 -5
View File
@@ -8,9 +8,9 @@ from .config_utils import config_utils
class config():
@staticmethod
def filter(config_data: dict, filter_keyword: str) -> tuple[bool, dict]:
"""
'''
Helper function to grab a specific part of the config
"""
'''
lower_filter_keyword = filter_keyword.lower()
for section_name, section_values in config_data.items():
@@ -23,9 +23,9 @@ class config():
@staticmethod
def read() -> tuple[bool, dict]:
"""
'''
check some basic things and then return the dict containing the config data
"""
'''
ok, candidate_path = config_utils.search_known_paths()
if not ok:
@@ -46,7 +46,7 @@ class config():
ok, config_data = config.read()
if not ok:
log.error("failed to read the config successfully")
log.error("failed to read the config succesfully")
return False
if not config_utils.find_section(config_data, lower_target_section):
+2 -2
View File
@@ -8,9 +8,9 @@ import os
class config_utils():
@staticmethod
def search_known_paths() -> tuple[bool, str]:
"""
'''
Look at predefined paths on the filesystem for a config file
"""
'''
possible_config_locations = [
"./config.ini",
+1 -1
View File
@@ -40,7 +40,7 @@ class localeman:
return json.load(lang_file)
return None
def get_available_languages(self):
def get_available_languages():
available_languages_path = "./static/locales/supported_locales.json"
with open(os.path.join(available_languages_path), "r") as f:
+2 -8
View File
@@ -29,9 +29,8 @@ white_list = [
"/static/",
"/api/auth",
"/api/auth/validate",
"/api/auth/totp", # Need a GET to see if TOTP is enabled
"/api/dashboard/locale",
# "/api/dashboard/configuration",
"/api/dashboard/configuration",
"/api/dashboard/theme",
"/api/dashboard/version",
"/api/dashboard/totp",
@@ -50,7 +49,6 @@ def authentication_required():
auth_required_flag = config_server.get('auth_req', True)
api_key_enabled = config_server.get("wgdashboard_apikey", False)
app_prefix = config_server.get("app_prefix", "")
if not auth_required_flag:
return
@@ -66,11 +64,7 @@ def authentication_required():
if flask.session.get("role") == "admin":
return
# Handle Client Dashboard Path
if path.startswith(f'{app_prefix}/client'):
return
if routes_utils.is_path_allowed(path, white_list, flask.session):
return
+8 -4
View File
@@ -20,7 +20,7 @@
"css-color-converter": "^2.0.0",
"dayjs": "^1.11.20",
"electron-builder": "^26.8.1",
"fuse.js": "^7.0.0",
"fuse.js": "^7.3.0",
"i": "^0.3.7",
"is-cidr": "^6.0.3",
"npm": "^11.12.1",
@@ -3395,12 +3395,16 @@
}
},
"node_modules/fuse.js": {
"version": "7.1.0",
"resolved": "https://registry.npmmirror.com/fuse.js/-/fuse.js-7.1.0.tgz",
"integrity": "sha512-trLf4SzuuUxfusZADLINj+dE8clK1frKdmqiJNb1Es75fmI5oY6X2mxLVUciLLjxqw/xr72Dhy+lER6dGd02FQ==",
"version": "7.3.0",
"resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-7.3.0.tgz",
"integrity": "sha512-plz8RVjfcDedTGfVngWH1jmJvBvAwi1v2jecfDerbEnMcmOYUEEwKFTHbNoCiYyzaK2Ws8lABkTCcRSqCY1q4w==",
"license": "Apache-2.0",
"engines": {
"node": ">=10"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/krisk"
}
},
"node_modules/geotiff": {
+1 -1
View File
@@ -24,7 +24,7 @@
"css-color-converter": "^2.0.0",
"dayjs": "^1.11.20",
"electron-builder": "^26.8.1",
"fuse.js": "^7.0.0",
"fuse.js": "^7.3.0",
"i": "^0.3.7",
"is-cidr": "^6.0.3",
"npm": "^11.12.1",