hiddifypanel 10.10.13__py3-none-any.whl → 10.10.14__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hiddifypanel/VERSION +1 -1
- hiddifypanel/VERSION.py +1 -1
- hiddifypanel/models/admin.py +1 -1
- hiddifypanel/models/proxy.py +1 -1
- hiddifypanel/panel/hiddify.py +1 -1
- hiddifypanel/panel/init_db.py +3 -5
- hiddifypanel/translations/en/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/fa/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/pt/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/ru/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/zh/LC_MESSAGES/messages.mo +0 -0
- {hiddifypanel-10.10.13.dist-info → hiddifypanel-10.10.14.dist-info}/METADATA +1 -1
- {hiddifypanel-10.10.13.dist-info → hiddifypanel-10.10.14.dist-info}/RECORD +17 -17
- {hiddifypanel-10.10.13.dist-info → hiddifypanel-10.10.14.dist-info}/LICENSE.md +0 -0
- {hiddifypanel-10.10.13.dist-info → hiddifypanel-10.10.14.dist-info}/WHEEL +0 -0
- {hiddifypanel-10.10.13.dist-info → hiddifypanel-10.10.14.dist-info}/entry_points.txt +0 -0
- {hiddifypanel-10.10.13.dist-info → hiddifypanel-10.10.14.dist-info}/top_level.txt +0 -0
hiddifypanel/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
10.10.
|
1
|
+
10.10.14
|
hiddifypanel/VERSION.py
CHANGED
hiddifypanel/models/admin.py
CHANGED
@@ -87,7 +87,7 @@ class AdminUser(BaseAccount):
|
|
87
87
|
dbuser.parent_admin_id = parent_admin.id # type: ignore
|
88
88
|
|
89
89
|
dbuser.mode = data.get('mode', AdminMode.agent)
|
90
|
-
dbuser.can_add_admin = data.get('can_add_admin')
|
90
|
+
dbuser.can_add_admin = data.get('can_add_admin') or False
|
91
91
|
if commit:
|
92
92
|
db.session.commit()
|
93
93
|
return dbuser
|
hiddifypanel/models/proxy.py
CHANGED
hiddifypanel/panel/hiddify.py
CHANGED
@@ -285,7 +285,7 @@ def set_db_from_json(json_data, override_child_unique_id=True, set_users=True, s
|
|
285
285
|
u['added_by_uuid'] = AdminUser.current_admin_or_owner().uuid
|
286
286
|
|
287
287
|
if set_admins and 'admin_users' in json_data:
|
288
|
-
AdminUser.bulk_register(json_data['admin_users'], commit=
|
288
|
+
AdminUser.bulk_register(json_data['admin_users'], commit=True)
|
289
289
|
if set_users and 'users' in json_data:
|
290
290
|
User.bulk_register(json_data['users'], commit=False, remove=remove_users)
|
291
291
|
if set_domains and 'domains' in json_data:
|
hiddifypanel/panel/init_db.py
CHANGED
@@ -86,8 +86,6 @@ def _v65():
|
|
86
86
|
add_config_if_not_exist(ConfigEnum.mux_brutal_down_mbps, '100')
|
87
87
|
|
88
88
|
|
89
|
-
|
90
|
-
|
91
89
|
def _v63():
|
92
90
|
add_config_if_not_exist(ConfigEnum.hysteria_enable, True)
|
93
91
|
add_config_if_not_exist(ConfigEnum.hysteria_port, hutils.random.get_random_unused_port())
|
@@ -180,7 +178,7 @@ def _v45():
|
|
180
178
|
|
181
179
|
if not Proxy.query.filter(Proxy.name == "SSH").first():
|
182
180
|
db.session.add(Proxy(l3='ssh', transport='ssh', cdn='direct', proto='ssh', enable=True, name="SSH"))
|
183
|
-
|
181
|
+
|
184
182
|
add_config_if_not_exist(ConfigEnum.ssh_server_port, hutils.random.get_random_unused_port())
|
185
183
|
add_config_if_not_exist(ConfigEnum.ssh_server_enable, False)
|
186
184
|
# def _v43():
|
@@ -616,8 +614,8 @@ def init_db():
|
|
616
614
|
get_hconfigs.invalidate_all()
|
617
615
|
# set_hconfig(ConfigEnum.db_version, 71)
|
618
616
|
# temporary fix
|
619
|
-
|
620
|
-
|
617
|
+
add_column(Child.mode)
|
618
|
+
add_column(Child.name)
|
621
619
|
db_version = int(hconfig(ConfigEnum.db_version) or 0)
|
622
620
|
if db_version == latest_db_version():
|
623
621
|
return
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
hiddifypanel/Events.py,sha256=AlnRdjVul0jP-NCT4-zoaQgowoOo-JhdQB4ytetAFKA,723
|
2
|
-
hiddifypanel/VERSION,sha256=
|
3
|
-
hiddifypanel/VERSION.py,sha256=
|
2
|
+
hiddifypanel/VERSION,sha256=bcGPjxemNJPYCkyktUgFewTgYSTPeIEn51xgzi4Xaj0,9
|
3
|
+
hiddifypanel/VERSION.py,sha256=iOpL5ex0Xqh0VznhHqq6dGTk4Vkjn91RdnAyE5CD3XA,114
|
4
4
|
hiddifypanel/__init__.py,sha256=aLukp3ORszdcH4G9J-MlxhjHN6yFlOuOE6mm-L3aG_g,266
|
5
5
|
hiddifypanel/__main__.py,sha256=IVchnXpK6bm8T3N--mN17HBQNLMeLAjyP7iwzULexB4,218
|
6
6
|
hiddifypanel/auth.py,sha256=ouAFprxAfsbeuC-YFGkMyA1Z4dtWzixv8DqB7nQXrtA,6640
|
@@ -28,14 +28,14 @@ hiddifypanel/hutils/network/__init__.py,sha256=jEyLLnMUak2lXXWNvkQ5_fRtuo2wpOvba
|
|
28
28
|
hiddifypanel/hutils/network/auto_ip_selector.py,sha256=zBRkwybnHh8L1tIzQYclhiOKfIZTgMSLhysUJxkRKvU,5579
|
29
29
|
hiddifypanel/hutils/network/net.py,sha256=ns37-LUYchcFjROnPOjGu9WQcZ8_0yUz9A8tP6N_Pbs,10535
|
30
30
|
hiddifypanel/models/__init__.py,sha256=0tCXDeb3kBqCDBrczzEvuFKcALK2jJok6CioLxggPJQ,823
|
31
|
-
hiddifypanel/models/admin.py,sha256
|
31
|
+
hiddifypanel/models/admin.py,sha256=-AVk-2ZciPAUEw7x68BcvgTiXXD6EzN2Zp0jFWwMo4I,6331
|
32
32
|
hiddifypanel/models/base_account.py,sha256=BrBI7lJOqz_P85OCIhE5Mg7ccqGC1MzvqzSOqbNihbs,3008
|
33
33
|
hiddifypanel/models/child.py,sha256=fyWKKad2SMV6Jg_y_a78s4KaSnU2CnXIXJvdg56fAWs,2548
|
34
34
|
hiddifypanel/models/config.py,sha256=hu9lD_IOgR0FvRRAU9O1c3MVRyXxTR9Z8oh_QArwv-w,5728
|
35
35
|
hiddifypanel/models/config_enum.py,sha256=GcZv8SmYQiG_yx9AWOsXqmQ8Kgz9n0al6yGS-sbJAr0,12617
|
36
36
|
hiddifypanel/models/domain.py,sha256=76ECktOTStwl7atB79aCxVZxuMx6BoG74848B3g_RJg,8323
|
37
37
|
hiddifypanel/models/parent_domain.py,sha256=HEmfe92TtDDKY6wBa9eboLyS-KyKxMMnLli1R8D3U8A,2358
|
38
|
-
hiddifypanel/models/proxy.py,sha256=
|
38
|
+
hiddifypanel/models/proxy.py,sha256=ksfONenhnW6DVbfP_MEqLPkiUomQyOBPgmJcwNj-Hlg,2910
|
39
39
|
hiddifypanel/models/report.py,sha256=LLRw5hSu_LLjPyHsQ-_tCeXfCxSWq2f7rhv-NkMIg4U,1001
|
40
40
|
hiddifypanel/models/role.py,sha256=V93_AhOcgbIiAaRYUaNIWKsKZ704ANl0hq-uAJFQCUo,269
|
41
41
|
hiddifypanel/models/usage.py,sha256=_5qC0s6lqKPI3tm7T15Fhyyn-X51DLD_FesPY9O-keA,4361
|
@@ -50,8 +50,8 @@ hiddifypanel/panel/cf_api.py,sha256=lkkKb4ozSEfOXXcYrTMj9RsRfrI-xSd6ui0npFZfzYg,
|
|
50
50
|
hiddifypanel/panel/cli.py,sha256=stf6kNsfMGHFKrgeNeI9CqoFfSW_fGJZjIn6GcrRYjM,9410
|
51
51
|
hiddifypanel/panel/common.py,sha256=tc6RAtsQKNWw6phqsVI2HhPbEODg514VVcD6Ehwic_c,7389
|
52
52
|
hiddifypanel/panel/custom_widgets.py,sha256=9qI_fNX8NKqB1r8ljgcaisGZaDM89_PM_rOBZbGaTYs,2506
|
53
|
-
hiddifypanel/panel/hiddify.py,sha256=
|
54
|
-
hiddifypanel/panel/init_db.py,sha256=
|
53
|
+
hiddifypanel/panel/hiddify.py,sha256=BO5hXfQnnZw_zxlMniOSPeqoWA6UPJWAzFKnheTd03c,21581
|
54
|
+
hiddifypanel/panel/init_db.py,sha256=jVbiP40ixqbbQIo35zktArr5EaKeju90ML_xf4O79hE,31146
|
55
55
|
hiddifypanel/panel/run_commander.py,sha256=D9y-My0xSe2adHWXKV5UPYGl-9WwKURzniq55MRu6tE,3259
|
56
56
|
hiddifypanel/panel/usage.py,sha256=RBEuN4kDMbePFWRlRvFblAlFyLizdZhDHlW_AyxzXQ0,4141
|
57
57
|
hiddifypanel/panel/admin/Actions.py,sha256=Y_ZMeGOT2_hDInu4qrzcpOk1-eKL7hQ_wFxm9NKZfAY,8975
|
@@ -793,24 +793,24 @@ hiddifypanel/templates/redirect.html,sha256=K9x_O4P96vEkqBhOXIhoGrWw1KIqd2bL0BjI
|
|
793
793
|
hiddifypanel/templates/static.html,sha256=jp6q4wtx-k2A_cjqJoNiMS7Ee30arE45qI3ev4d5ky4,165
|
794
794
|
hiddifypanel/templates/hiddify-flask-admin/actions.html,sha256=2NeITe2e-lPKCk_o511tCIqVtrPu8LYHE1wTCtrFUrI,1331
|
795
795
|
hiddifypanel/templates/hiddify-flask-admin/list.html,sha256=MBGrTqZpzNLe4sZy0RozvXNr8seFUQc2C6v88BJtNWc,11095
|
796
|
-
hiddifypanel/translations/en/LC_MESSAGES/messages.mo,sha256=
|
796
|
+
hiddifypanel/translations/en/LC_MESSAGES/messages.mo,sha256=LS0tiPGbnz1mXCsmH3ORNehJwqJ4OqlifrQ9xlo72Z0,71771
|
797
797
|
hiddifypanel/translations/en/LC_MESSAGES/messages.po,sha256=uQhUc_Aps_erfwtDmorU2gW_zpp4U4w7H1AQVgo_Bco,74853
|
798
|
-
hiddifypanel/translations/fa/LC_MESSAGES/messages.mo,sha256=
|
798
|
+
hiddifypanel/translations/fa/LC_MESSAGES/messages.mo,sha256=NLZbDRCv90MuXY9TncTMpC_PEG6JRrbWregrTv6_Gms,95217
|
799
799
|
hiddifypanel/translations/fa/LC_MESSAGES/messages.po,sha256=5Mfu6vNpaDABGbiHHBnpGNWXtvfJkAA56nTI9c4YTB4,98766
|
800
|
-
hiddifypanel/translations/pt/LC_MESSAGES/messages.mo,sha256=
|
800
|
+
hiddifypanel/translations/pt/LC_MESSAGES/messages.mo,sha256=fFL0IE-VdIo8N1xlZRnUIx_RxnmzvKfmgU2hlBDYGf8,60377
|
801
801
|
hiddifypanel/translations/pt/LC_MESSAGES/messages.po,sha256=vQhcmhHh54yCYGEyTmx-SglRRHN-16dCL_Eo_0d3244,68451
|
802
|
-
hiddifypanel/translations/ru/LC_MESSAGES/messages.mo,sha256=
|
802
|
+
hiddifypanel/translations/ru/LC_MESSAGES/messages.mo,sha256=G_KX77jlb6uqNLOhoFFpER7wsCkpqxq8D67JJZdOxQ4,82219
|
803
803
|
hiddifypanel/translations/ru/LC_MESSAGES/messages.po,sha256=u-t_ipqC8OPw4lP8-TqlM-wHsquiA7JIisETogYvMys,90947
|
804
|
-
hiddifypanel/translations/zh/LC_MESSAGES/messages.mo,sha256=
|
804
|
+
hiddifypanel/translations/zh/LC_MESSAGES/messages.mo,sha256=oEQCXZsRIi1pZxd5PxRFMcWQ6beW602nVByRseBBDbE,55966
|
805
805
|
hiddifypanel/translations/zh/LC_MESSAGES/messages.po,sha256=anelhDCHK0Ybgm65zZP9qIv0kub5xUqtXbsmxxELOTw,64106
|
806
806
|
hiddifypanel/translations.i18n/en.json,sha256=FbuMwo_dHrhshJ6T5VeKDhkqu4pmWD9FfuGHGwsvZn4,65206
|
807
807
|
hiddifypanel/translations.i18n/fa.json,sha256=3A_dODq-9ehrQr8YsoZI_RrjJvVSfeSxuBJUx6rdg8E,89128
|
808
808
|
hiddifypanel/translations.i18n/pt.json,sha256=g3IlroQJX0K9JoHHJErMeftddWvrSnP1HldB-jRwBgo,59098
|
809
809
|
hiddifypanel/translations.i18n/ru.json,sha256=X3lvVYtStUD-OZPpv4ieKieOgLp5xIq5Wrtwhb25hLA,81525
|
810
810
|
hiddifypanel/translations.i18n/zh.json,sha256=rj7npV-rBWi-N3zQNR5jvVr1d3MTn0VO8HtHYKmOCKk,55143
|
811
|
-
hiddifypanel-10.10.
|
812
|
-
hiddifypanel-10.10.
|
813
|
-
hiddifypanel-10.10.
|
814
|
-
hiddifypanel-10.10.
|
815
|
-
hiddifypanel-10.10.
|
816
|
-
hiddifypanel-10.10.
|
811
|
+
hiddifypanel-10.10.14.dist-info/LICENSE.md,sha256=oDrt-cUsyiDGnRPjEJh-3dH2ddAuK_bIVBD8ntkOtZw,19807
|
812
|
+
hiddifypanel-10.10.14.dist-info/METADATA,sha256=U0j0CNXQVXNcdoxBRPYqZtfVmrFuWpOa2O494dmhpEc,3980
|
813
|
+
hiddifypanel-10.10.14.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
814
|
+
hiddifypanel-10.10.14.dist-info/entry_points.txt,sha256=Xzpqlh3nwBtZhoV9AANJykano056VJvYzaujxPztJaM,60
|
815
|
+
hiddifypanel-10.10.14.dist-info/top_level.txt,sha256=rv-b3qFWUZQTBy0kyBfsr7L6tPpeO7AaQlLHXn-HI5M,13
|
816
|
+
hiddifypanel-10.10.14.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|