hiddifypanel 9.0.0.dev41__py3-none-any.whl → 9.0.0.dev42__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 CHANGED
@@ -1 +1 @@
1
- 9.0.0.dev41
1
+ 9.0.0.dev42
hiddifypanel/VERSION.py CHANGED
@@ -1,3 +1,3 @@
1
- __version__='9.0.0.dev41'
1
+ __version__='9.0.0.dev42'
2
2
  from datetime import datetime
3
3
  __release_date__= datetime.strptime('2024-01-09','%Y-%m-%d')
@@ -178,12 +178,12 @@ def is_admin_role(role: Role):
178
178
 
179
179
  def is_admin_proxy_path() -> bool:
180
180
  proxy_path = g.get('proxy_path') or get_proxy_path_from_url(request.url)
181
- return proxy_path in [hconfig(ConfigEnum.proxy_path_admin), hconfig(ConfigEnum.proxy_path)]
181
+ return proxy_path in [hconfig(ConfigEnum.proxy_path_admin)] or (proxy_path in [hconfig(ConfigEnum.proxy_path)] and "/admin/" in request.path)
182
182
 
183
183
 
184
184
  def is_client_proxy_path() -> bool:
185
185
  proxy_path = g.get('proxy_path') or get_proxy_path_from_url(request.url)
186
- return proxy_path in [hconfig(ConfigEnum.proxy_path_client), hconfig(ConfigEnum.proxy_path)]
186
+ return proxy_path in [hconfig(ConfigEnum.proxy_path_client)] or (proxy_path in [hconfig(ConfigEnum.proxy_path)] and "/admin/" not in request.path)
187
187
 
188
188
 
189
189
  def proxy_path_validator(proxy_path):
@@ -896,7 +896,6 @@ def get_account_panel_link(account: BaseAccount, host: str, is_https: bool = Tru
896
896
  return link
897
897
 
898
898
 
899
-
900
899
  def is_valid_uuid(val: str, version: int | None = None):
901
900
  try:
902
901
  uuid.UUID(val, version=version)
@@ -3,8 +3,8 @@ msgid ""
3
3
  msgstr ""
4
4
  "Project-Id-Version: HiddifyPanel\n"
5
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2024-01-09 17:04+0100\n"
7
- "PO-Revision-Date: 2024-01-09 09:48-0600\n"
6
+ "POT-Creation-Date: 2024-01-09 17:46+0100\n"
7
+ "PO-Revision-Date: 2024-01-09 10:04-0600\n"
8
8
  "Last-Translator: hidden u\n"
9
9
  "Language-Team: English (USA)\n"
10
10
  "Language: en_US\n"
@@ -3,8 +3,8 @@ msgid ""
3
3
  msgstr ""
4
4
  "Project-Id-Version: HiddifyPanel\n"
5
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2024-01-09 17:04+0100\n"
7
- "PO-Revision-Date: 2024-01-09 09:48-0600\n"
6
+ "POT-Creation-Date: 2024-01-09 17:46+0100\n"
7
+ "PO-Revision-Date: 2024-01-09 10:04-0600\n"
8
8
  "Last-Translator: hidden u\n"
9
9
  "Language: fa\n"
10
10
  "Language-Team: Persian\n"
@@ -3,8 +3,8 @@ msgid ""
3
3
  msgstr ""
4
4
  "Project-Id-Version: HiddifyPT\n"
5
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2024-01-09 17:04+0100\n"
7
- "PO-Revision-Date: 2024-01-09 09:48-0600\n"
6
+ "POT-Creation-Date: 2024-01-09 17:46+0100\n"
7
+ "PO-Revision-Date: 2024-01-09 10:04-0600\n"
8
8
  "Last-Translator: lymanrudni\n"
9
9
  "Language: pt\n"
10
10
  "Language-Team: Portuguese\n"
@@ -3,8 +3,8 @@ msgid ""
3
3
  msgstr ""
4
4
  "Project-Id-Version: HiddifyPT\n"
5
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2024-01-09 17:04+0100\n"
7
- "PO-Revision-Date: 2024-01-09 09:48-0600\n"
6
+ "POT-Creation-Date: 2024-01-09 17:46+0100\n"
7
+ "PO-Revision-Date: 2024-01-09 10:04-0600\n"
8
8
  "Last-Translator: lymanrudni\n"
9
9
  "Language: ru\n"
10
10
  "Language-Team: Russian\n"
@@ -3,8 +3,8 @@ msgid ""
3
3
  msgstr ""
4
4
  "Project-Id-Version: HiddifyPanel\n"
5
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2024-01-09 17:04+0100\n"
7
- "PO-Revision-Date: 2024-01-09 09:48-0600\n"
6
+ "POT-Creation-Date: 2024-01-09 17:46+0100\n"
7
+ "PO-Revision-Date: 2024-01-09 10:04-0600\n"
8
8
  "Last-Translator: hidden u\n"
9
9
  "Language: zh\n"
10
10
  "Language-Team: Chinese\n"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hiddifypanel
3
- Version: 9.0.0.dev41
3
+ Version: 9.0.0.dev42
4
4
  Summary: hiddifypanel multi proxy panel
5
5
  Home-page: https://github.com/hiddify/hiddify-manager/
6
6
  Author: hiddify
@@ -1,6 +1,6 @@
1
1
  hiddifypanel/Events.py,sha256=mkIsfz4YQqegdeFgH4quxvLIx7AundtjAW6HBSP9I-M,719
2
- hiddifypanel/VERSION,sha256=-d7V45WB9carGq2KOXKyXmi4wYLVTGh3wLqvQW7OT6Q,12
3
- hiddifypanel/VERSION.py,sha256=eSlBcV8yD_Netob2WNtZAosYW7qIf9-5bwgAwO3Fyao,117
2
+ hiddifypanel/VERSION,sha256=gP8foVioK7psF8bfwR7RhS_P605t2LK2JN04oH8tERg,12
3
+ hiddifypanel/VERSION.py,sha256=sumlf02t1xXqcWEJIo65MnKWWRHApn3Z_55lC5netXQ,117
4
4
  hiddifypanel/__init__.py,sha256=b4nIILUBiDaAWF1Mnkew84MxzR5OeWogcVbR-gpnbrA,217
5
5
  hiddifypanel/__main__.py,sha256=GaHLsnu3y4zNTh6x-9kuZLOYaShltkG96rRAHOuMLak,270
6
6
  hiddifypanel/base.py,sha256=CEizDKl_bTWPrKfjRW-YxOw23hBMKinCQpasPiTkonA,4789
@@ -40,7 +40,7 @@ hiddifypanel/panel/common.py,sha256=ANqwi12M9DgG6tZXczUBxrwRMZiK2x7QeC7piDFzmRk,
40
40
  hiddifypanel/panel/custom_widgets.py,sha256=rAI5lka3rCftJVvdIFGOBh6DrcwrewfY41lXlDI-19s,2502
41
41
  hiddifypanel/panel/database.py,sha256=EMsJ0S-FP7Ir24Qw7EtADmkW8ZHDXM_672TAm5Zrgpk,1143
42
42
  hiddifypanel/panel/github_issue_generator.py,sha256=2zUNnvhJZcvWaaXEpCHzx6WWvBIluVKQhEDsHmL5x1A,3646
43
- hiddifypanel/panel/hiddify.py,sha256=NlDHpQvHpAssmo71YaZyf0YMIjR8xY2Omw6qvRllxPU,34897
43
+ hiddifypanel/panel/hiddify.py,sha256=rsirwo5Z6qe_aQHnzor8H0LVpf9TAq9yw59WbsKErS0,35000
44
44
  hiddifypanel/panel/init_db.py,sha256=BpULmssoYDg3D1UmlUbx7xsS2ZG1BaIWJq4GDKzNr9A,24624
45
45
  hiddifypanel/panel/run_commander.py,sha256=NGKMxYAmkwvbh27UFUmUD3rPvNU3JCr6YF4IoGU24FA,2932
46
46
  hiddifypanel/panel/usage.py,sha256=eDIHWqElWLSpI2ZDbctlM9vKjunuHnBn1jypEoCvB9g,4164
@@ -758,19 +758,19 @@ hiddifypanel/templates/master.html,sha256=C01NzGP0Ciqx6PX2m7aV0dpIe7u4CbzXLT541y
758
758
  hiddifypanel/templates/redirect.html,sha256=K9x_O4P96vEkqBhOXIhoGrWw1KIqd2bL0BjIqmnpZi0,412
759
759
  hiddifypanel/templates/static.html,sha256=jp6q4wtx-k2A_cjqJoNiMS7Ee30arE45qI3ev4d5ky4,165
760
760
  hiddifypanel/templates/hiddify-flask-admin/list.html,sha256=St0TD6-ZIJ24A6Akbh51JNkTEOpimFq2iiRydcUjQlA,13642
761
- hiddifypanel/translations/en/LC_MESSAGES/messages.mo,sha256=ozsVqD-A8Ju6B_Hb8MBhyw_bgjZ4dqqFaNG-TX35tmg,61231
762
- hiddifypanel/translations/en/LC_MESSAGES/messages.po,sha256=dlJhwdvUVHKcZ2mwbfRd398zHz6QLWujDsN6AeOGTcM,176612
763
- hiddifypanel/translations/fa/LC_MESSAGES/messages.mo,sha256=y71jb7lgl5_IsSDEY1Jph9MFIVFmS9w9SGNaR6GOTXw,81189
764
- hiddifypanel/translations/fa/LC_MESSAGES/messages.po,sha256=2hokcKjpPQ5KSnSZQMp9bIH3q2NjUGin_wGkB7DzsrE,201023
765
- hiddifypanel/translations/pt/LC_MESSAGES/messages.mo,sha256=Dc0KwPjTe821u90Mak0xiU5ffHZM4QpBQoc4ncVH61s,62521
766
- hiddifypanel/translations/pt/LC_MESSAGES/messages.po,sha256=f9D_saOkWxTi3Sr6yrVfdRbfgih5QDUi_baOyvgoBEI,175367
767
- hiddifypanel/translations/ru/LC_MESSAGES/messages.mo,sha256=gK5Wn_vuJmGRvJ0KV1PtFXDCjELhcNWkFZWrv4YkkeM,84530
768
- hiddifypanel/translations/ru/LC_MESSAGES/messages.po,sha256=sLs3GBDcYLt5Ur6CyuZFrfYvQkrqN7k_7xJFnuGf7lU,195628
769
- hiddifypanel/translations/zh/LC_MESSAGES/messages.mo,sha256=aYdgiSTqzagKJVzBQxdKukqiBLt0CNNH4Y7uWsYPs2g,58670
770
- hiddifypanel/translations/zh/LC_MESSAGES/messages.po,sha256=GAWY8t5SDMWLOHWiYnpbmU4JIRmb8Ql_7pIefkSrzxs,173839
771
- hiddifypanel-9.0.0.dev41.dist-info/LICENSE.md,sha256=oDrt-cUsyiDGnRPjEJh-3dH2ddAuK_bIVBD8ntkOtZw,19807
772
- hiddifypanel-9.0.0.dev41.dist-info/METADATA,sha256=gA9_sukhRK6TqLpFz_KZ5nVitqaJOXR87F53VhqYVYI,3564
773
- hiddifypanel-9.0.0.dev41.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
774
- hiddifypanel-9.0.0.dev41.dist-info/entry_points.txt,sha256=Xzpqlh3nwBtZhoV9AANJykano056VJvYzaujxPztJaM,60
775
- hiddifypanel-9.0.0.dev41.dist-info/top_level.txt,sha256=rv-b3qFWUZQTBy0kyBfsr7L6tPpeO7AaQlLHXn-HI5M,13
776
- hiddifypanel-9.0.0.dev41.dist-info/RECORD,,
761
+ hiddifypanel/translations/en/LC_MESSAGES/messages.mo,sha256=sOIhRThBLNqLgsBg28pnkq_sua8bJwMzrUS2At31FCE,61231
762
+ hiddifypanel/translations/en/LC_MESSAGES/messages.po,sha256=mqen9iOEPUd_pKL_5BPwIDfbAAc6ticePXGH2a5iccI,176612
763
+ hiddifypanel/translations/fa/LC_MESSAGES/messages.mo,sha256=kcp0y4xxCxLXmxwQcyP3LxOrB5dikPIx0hJZ1cj2qFY,81189
764
+ hiddifypanel/translations/fa/LC_MESSAGES/messages.po,sha256=AhD3oevyAAIa0b5ZLaNh-dy9g221Me5Ga4NG7b71-s8,201023
765
+ hiddifypanel/translations/pt/LC_MESSAGES/messages.mo,sha256=cKQK6jsz6mys3IMROEipCzUI2let7g9SjiCbd1MqLUU,62521
766
+ hiddifypanel/translations/pt/LC_MESSAGES/messages.po,sha256=1joXUwTlydpu7Yt5PYnb6fqWtjRxFV1nbtL1a0aKOGk,175367
767
+ hiddifypanel/translations/ru/LC_MESSAGES/messages.mo,sha256=ew3aPjWj7j1q6JVZ3AYVCXJYS_FrMQrTXk5y86waVDk,84530
768
+ hiddifypanel/translations/ru/LC_MESSAGES/messages.po,sha256=TRqxceBwGnsFenWRNpEIa1uxP2dTI18Op9jIE72ZOmo,195628
769
+ hiddifypanel/translations/zh/LC_MESSAGES/messages.mo,sha256=xv2CEnbBnlvUFb2emnsKKBWQFCgmQDkA2LwELkJtozQ,58670
770
+ hiddifypanel/translations/zh/LC_MESSAGES/messages.po,sha256=I9xU9w_tgkb3CfpXrjtJKh2FPmzRgxcxeTZttv9eIZY,173839
771
+ hiddifypanel-9.0.0.dev42.dist-info/LICENSE.md,sha256=oDrt-cUsyiDGnRPjEJh-3dH2ddAuK_bIVBD8ntkOtZw,19807
772
+ hiddifypanel-9.0.0.dev42.dist-info/METADATA,sha256=JoB8rL8QTWy6DNbykIGXBADtuC5LeZe-xfuW5jVbXgg,3564
773
+ hiddifypanel-9.0.0.dev42.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
774
+ hiddifypanel-9.0.0.dev42.dist-info/entry_points.txt,sha256=Xzpqlh3nwBtZhoV9AANJykano056VJvYzaujxPztJaM,60
775
+ hiddifypanel-9.0.0.dev42.dist-info/top_level.txt,sha256=rv-b3qFWUZQTBy0kyBfsr7L6tPpeO7AaQlLHXn-HI5M,13
776
+ hiddifypanel-9.0.0.dev42.dist-info/RECORD,,