Commit graph

1053 commits

Author SHA1 Message Date
Shishkevich D.
821ebcf40c fix: current tab highlight in sidebar (#2874) 2025-04-07 08:28:02 +07:00
mhsanaei
d77d5f0152 minor changes 2025-04-07 00:45:52 +02:00
Shishkevich D.
a6b1a272b0 Code refactoring (#2865)
* refactor: use vue inline styles in entire application

* refactor: setting row in dashboard page

* refactor: use blob for download file in text modal

* refactor: move all html templates in `web/html` folder

* refactor: `DeviceUtils` -> `MediaQueryMixin`
The transition to mixins has been made, as they can update themselves.

* chore: pretty right buttons in `outbounds` tab in xray settings

* refactor: add translations for system status

* refactor: adjust gutter spacing in setting list item

* refactor: use native `a-input-password` for password field

* chore: return old system status
with new translations

* chore: add missing translation
2025-04-06 11:40:33 +02:00
Shishkevich D.
ae15cd3063 chore: simplify login page (#2851)
* chore: change login page

* chore: minor improvements on login page

* chore: add login button padding

* fix: delete unnecessary attributes

* fix: Restore headline animation with DOMContentLoaded
2025-04-01 14:24:03 +02:00
Shishkevich D.
b88be94c3b fix: opening links in the sidebar 2025-03-30 22:02:05 +07:00
Columbiysky
5ff3340ab2 locs(RU\UA): a bit better translate (#2841) 2025-03-30 11:29:35 +07:00
nistootsin
23a554a5aa Add Admin-Controlled Client Management to Telegram Bot (#2788)
* Add feature to add clients to inbound:
- Implement buttons for adding new clients
- Handle client addition process (submission remains to be completed)
- Support for multiple languages

* update the go.mod

* feat: complete submission process for adding a client to inbounds

* - Add client variables: client_method, client_sh_password, client_tr_password
- Exclude specific inbound protocols (HTTP, WireGuard, Socks, DOKODEMO) from addclient inline button

* - customize the add client message and json for each protocol

* - handle password input rather than id for shadow and trojan protocols

* - remove add_client_as_enable button in bot

* restructrure the add client bot feature

* update all files in web/translation/

* Refactoring

* - add traffic button to add client bot feature

* - fix a mistake in the email prompt message

* - add expire data button to add client telegram process.

* Refactroring

* remove refresh button in add client

* - delete message after cancel

* - uptimize the process of adding client by deleting main message on
  getting text inputs.
2025-03-26 19:16:35 +01:00
danilshishkevich
64b2168b43 chore: giving keys for each a-collapse-panel 2025-03-25 15:13:17 +00:00
danilshishkevich
13a82a5634 chore: move client table into components 2025-03-24 15:17:45 +00:00
danilshishkevich
10a573ef74 chore: improve styles
- elements with class `.collapse-title` are missing
- changed paddings in `.ant-xray-version-list-item` element
2025-03-24 12:22:12 +00:00
Shishkevich D.
2d95430c58 chore: transforming a common sidebar into a separate component
- also added saving collapsed state
2025-03-24 11:19:27 +00:00
Shishkevich D.
46effcde35 fix: dashboard won't load 2025-03-24 10:02:01 +00:00
Shishkevich D.
b5cbeb642c chore: moving the modals to a separate directory 2025-03-24 09:57:37 +00:00
Shishkevich D.
837091007b chore: moving the settings tabs to a separate directory 2025-03-24 09:45:15 +00:00
Shishkevich D.
48f87babf0 chore: make class to get the device form factor 2025-03-21 15:09:05 +00:00
Shishkevich D.
274030e8d6 chore: meta tag change
- `X-UA-Compatible` is only used by Internet Explorer, so it removed
- `robots` allows the panel not to be indexed by a search engine
2025-03-21 14:49:49 +00:00
Shishkevich D.
6f4fc9a83d chore: delete display.css
these styles are not used anywhere
2025-03-21 14:38:41 +00:00
Shishkevich D.
a1ed63efa5 chore: improve russian translation (#2802)
* chore: improve russian translation

* chore: corrections in translation
2025-03-21 18:54:02 +07:00
Shishkevich D.
09f11c6a69 chore: pretty Inbounds page (#2791)
* chore: pretty 'Inbounds' page

* chore: return styles for aCustomStatistic

styles was intended to properly display a-statistic in the app, but for some unknown reason it was removed

* fix: switch style in dark mode

---------
2025-03-18 22:13:01 +01:00
Kirill Dunaev
1d1fd655ff Russian translation fixes (#2792) 2025-03-18 20:56:58 +07:00
mhsanaei
5a3952f4a8 Update index.html 2025-03-18 13:39:07 +01:00
Tara Rostami
681019bd75 Fixes and improvements (#2789)
* Fixes and improvements

* Update translate.en_US.toml
2025-03-18 09:51:05 +01:00
Shishkevich D.
a3d20673dc Code refactoring (#2785)
* chore: pretty theme menu in sidebar

* refactor: renaming component templates

* refactor: create custom `a-statistic` component

* fix: display button text only on large screens

* chore: remove loading background in overview page

* fix: show `Version` text when xray version is unknown
2025-03-17 18:26:07 +07:00
Shishkevich D.
e288d3b655 chore: some improvements (#2782)
* chore: improve outbound link input

* chore: ui improvement
2025-03-17 08:26:59 +07:00
Shishkevich D.
e194b6c95b chore: pretty 'Overview' page (#2772)
* chore: pretty 'Overview' page

* chore: some improvements in 'overview page'
- reduced font size
- added caption to buttons
- fixed display of xray state
- xray version display returned
2025-03-15 12:15:46 +01:00
Ilya Afanasov
2d5da560f9 feat: custom subscription title in panel (#2773)
* feat: custom subscription title in panel

* feat: added translations
2025-03-15 08:16:59 +01:00
mhsanaei
1c452cb40e Refactor: Use any instead of interface{} 2025-03-12 20:43:43 +01:00
mhsanaei
5c7514b585 warp - optimize utility code 2025-03-12 19:27:19 +01:00
mhsanaei
714f39509e fix - public IP #2763 2025-03-12 19:20:13 +01:00
mhsanaei
f317161b82 Axios v1.8.2 2025-03-11 13:18:52 +01:00
Shishkevich D.
3fa098db30 fix: protocol checking during random uuidv4 generation
fixes the https://github.com/MHSanaei/3x-ui/issues/2750 issue
2025-03-10 22:09:51 +07:00
Shishkevich D.
35381e57e1 fix: generating shortIds for vless reality (#2745) 2025-03-09 19:37:53 +07:00
Shishkevich D.
de063acc02 chore: remove unused variable 2025-03-09 06:38:45 +00:00
Shishkevich D.
582a9a44eb chore: refactoring RandomUtil class
now we use window.crypto.getRandomValues to generate random values.
2025-03-09 06:37:05 +00:00
Shishkevich D.
d288c7243f chore: use crypto.randomUUID() for generating UUIDv4 2025-03-09 06:09:42 +00:00
Shishkevich D.
57e7c7cff1 chore: use Base64 library for generating SS password 2025-03-09 06:06:27 +00:00
Shishkevich D.
6feae65f91 fix: modals style 2025-03-09 06:01:27 +00:00
Shishkevich D.
f1c06f113d Revert "chore: add missing params for grpc stream settings (outbound)"
This reverts commit 0ba3bfdd6d.
2025-03-09 05:38:34 +00:00
Shishkevich D.
58b6489ce5 Revert "chore: add new grpc params for outbound (#2744)"
This reverts commit 18931404bf.
2025-03-09 05:37:50 +00:00
Shishkevich D.
136b7daf4c chore: add dns type for kcp protocol
see https://xtls.github.io/config/transports/mkcp.html#headerobject
2025-03-09 12:23:35 +07:00
Shishkevich D.
0ba3bfdd6d chore: add missing params for grpc stream settings (outbound) 2025-03-09 04:49:17 +00:00
Shishkevich D.
18931404bf chore: add new grpc params for outbound (#2744) 2025-03-09 11:28:12 +07:00
mhsanaei
f31304a9a3 tgbot - restart
change restart force to restart
2025-03-08 23:08:04 +01:00
mhsanaei
9f47ac2c9e minor changes 2025-03-08 18:14:48 +01:00
Shishkevich D.
59f86ea873 Code refactoring (#2739)
* refactor: switching to the use of typed props

* refactor: `password-input` -> `a-password-input`

* fix: qr modal copy error
2025-03-08 22:41:27 +07:00
Shishkevich D.
60c44f378d chore: pretty backup and xray version modal (#2737)
* chore: pretty `backup & restore` modal

* chore: pretty `xray version` modal

* fix: new `xray version` modal style
2025-03-08 20:41:23 +07:00
Shishkevich D.
609fb6bf6b fix: base64 encoding on vmess/shadowsocks inbounds (#2736) 2025-03-08 12:33:34 +07:00
Shishkevich D.
76c3fbca3f refactor: move language manager to utils (#2735) 2025-03-08 09:54:41 +07:00
Shishkevich D.
d4210ee2ad chore: add empty screens for empty data (balancers, reverses, dns)
cleaned up some of the margins & paddings
2025-03-07 13:56:03 +00:00
Shishkevich D.
4e261a0b13 refactor: merging all util functions into classes 2025-03-07 09:07:23 +00:00
Shishkevich D.
be20335d55 refactor: move copy function to utils.js 2025-03-07 07:27:33 +00:00
Shishkevich D.
08372d5adb refactor: delete base64js
instead of base64 library you can use built-in JS functions `btoa()` and `atob()`
2025-03-07 07:11:03 +00:00
Shishkevich D.
4bdfc8c5eb refactor: delete clipboardjs (#2727)
text copying can be done without using additional libraries
2025-03-06 20:43:46 +01:00
UltraMegaPotato
2393010464 Change the cpu usage interval from second to minute (#2729)
feature(check_cpu_usage): Change the usage interval from second to minute
2025-03-06 20:38:58 +01:00
mhsanaei
dacd749cd1 Balancer fallbackTag #2724 2025-03-06 20:35:17 +01:00
Shishkevich D.
0b45413f82 Pretty Panel and Xray settings (#2726)
* chore: refactor `setting-list-item` component

* chore: remove padding

* chore: replace settings list with settings collapse panels

* chore: add missing translations

* chore: fix translation
2025-03-06 11:17:25 +01:00
Shishkevich D.
ed6f9f76b2 feat: add statistics section (#2718)
the "Outbounds Traffic" parameter, which was misleading, was also renamed and moved
2025-03-05 13:27:25 +01:00
mhsanaei
77630896b3 Noise: Add hex 2025-03-05 13:22:07 +01:00
mhsanaei
f94dc58380 Sockopt: Add addressPortStrategy 2025-03-05 13:14:17 +01:00
Shishkevich D.
7fa1951d80 chore: add global params for DNS (#2713)
parameter list: `disableCache`, `disableFallback`, `disableFallbackIfMatch`, `clientIp`
2025-03-04 14:18:51 +01:00
mhsanaei
c57e2edc46 better view for uTLS 2025-03-04 12:50:49 +01:00
mhsanaei
e7ed82c58a TLS-REALITY : hide value of private key 2025-03-04 10:36:02 +01:00
Shishkevich D.
08baa2bfef chore: pretty dns section in xray settings (#2700) 2025-03-04 09:55:13 +01:00
Shishkevich D.
6df2190baa chore: pretty auth tab in panel settings (#2701) 2025-03-04 09:54:59 +01:00
mhsanaei
70ceee75ac Xray core v25.3.3 2025-03-04 09:54:10 +01:00
mhsanaei
03a065a4e1 TLS fingerprints: randomizednoalpn 2025-03-03 10:20:52 +01:00
mhsanaei
c27b7c8ee3 fix mistake 2025-03-01 10:19:52 +01:00
atarwn
01b1e03b61 Improved ru_RU translation (#2677)
* Improved ru_RU translation

Some words have been changed to sound nicer. I made some words less complicated to understand. I also fixed some warnings and messages so they are easier to read.

* Apply suggestions from code review
2025-02-28 10:42:27 +01:00
mhsanaei
5db945c758 Xray core buggy version removed 2025-02-27 13:40:56 +01:00
Shishkevich D.
ec7eba73b3 feat: add quic protocol in xray rule modal (#2666) 2025-02-24 09:23:59 +01:00
mhsanaei
e21716763f bug fix #2660 2025-02-22 14:31:08 +01:00
mhsanaei
e9c48424ae serverNameToVerify to verifyPeerCertInNames #2662 2025-02-22 14:09:52 +01:00
AAA
6f3856211e feat(externalTrafficJob): External Traffic Inform (#2660)
* Add Setting entity + GUI field in panel settings

* Add a missing 'Traffic' in InformEnabale field

* Add ExternalTrafficURL Post request call

* Add translation + cleanup

* Move options to General tab

---------

Co-authored-by: root <root@vm3562019.stark-industries.solutions>
Co-authored-by: root <root@vm3688062.stark-industries.solutions>
2025-02-22 10:45:14 +01:00
Sanaei
7e64355f51 revert group management (#2656)
* Revert "json post base path bug fixed (#2647)"

This reverts commit 2c88e53ba0.

* Revert "Group Management of Subscription Clients"

* Revert "fix getSubGroupClients for enable/disable and edit clients."

* Revert "Enhance database initialization in db.go (#2645)"

This reverts commit fc8cce9f90.

* Revert "Add checkpoint handling in CloseDB function (#2646)"

This reverts commit 13b1e4c7e6.

* Revert "Improved database model migration and added indexing (#2655)"

This reverts commit cb6ba20865.
2025-02-04 11:27:58 +01:00
mhsanaei
7a410b8e8a v2.5.1 2025-02-03 17:40:33 +01:00
Abolfazl Fazilat
98e4262fda Completed translation for missing text (#2653) 2025-01-31 18:54:52 +01:00
AghayeCoder
7b839597a0 fix getSubGroupClients for enable/disable and edit clients. 2025-01-31 17:27:09 +03:30
AghayeCoder
a6758637a1 switcher for outbound traffic 2025-01-31 17:24:03 +03:30
mhsanaei
274b8c8704 [subJson] better direct options
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2025-01-26 19:43:02 +01:00
mhsanaei
cb96e9a318 TLS - serverNameToVerify 2025-01-26 19:33:50 +01:00
mhsanaei
4f3d530874 outbound Traffic - default false
if you need it you need to change it manually to true
2025-01-26 11:22:42 +01:00
mhsanaei
6e1eb60cb1 minor change 2025-01-26 11:07:45 +01:00
mhsanaei
32cdfee6e0 default setting - scStreamUpServerSecs 2025-01-26 11:07:35 +01:00
Ivan Zorin
c8bf3221a0 Fix non-MultiUser dbInbounds (#2649) 2025-01-26 11:03:06 +01:00
mhsanaei
bfaf6b290f bug fix - get client ips 2025-01-24 17:16:16 +01:00
Ali Rahimi
2c88e53ba0 json post base path bug fixed (#2647)
* json post base path bug fixed

* added comment field to group client management
2025-01-23 21:33:47 +01:00
mhsanaei
11fc842844 XHTTP - scStreamUpServerSecs 2025-01-21 22:43:13 +01:00
Ali Rahimi
661ae0e671 Group Management of Subscription Clients (#2644)
* add group user with the same subscription id to all inbounds

* code format compare

* add await for reset client traffic

* en language changed

* added client traffic syncer job

* handle exist email duplicate in sub group

* multi reset and delete request for clients group

* add client traffic syncer setting option

* vi translate file updated

* auto open qr-modal bug fixed
2025-01-21 03:01:54 +01:00
Tara Rostami
ecc9e8a737 Minor Fixes (CSS) (#2641) 2025-01-15 12:50:50 +01:00
Alex Churin
3b17a74a73 wireguard modal fix (#2640) 2025-01-14 16:08:19 +01:00
xtclovver
be3016f351 Update translate.ru_RU.toml (#2637)
Fixed ru translation
2025-01-13 18:23:19 +01:00
mortefy
68f27be470 Fixed ru translation (#2638) 2025-01-13 18:22:35 +01:00
mhsanaei
573afb1f0a time Location - local 2025-01-11 15:13:49 +01:00
Igor Semenov
6b5e65238d Add Russian domains (#2635)
Add Russian domains
2025-01-11 13:39:32 +01:00
Tara Rostami
b4a0aceebd Minor Fixes (UI) (#2636)
* Minor Fixes (UI)

* Update custom.min.css
2025-01-11 13:38:26 +01:00
mhsanaei
d86ab94154 bug fix 2025-01-05 21:04:18 +01:00
mhsanaei
23cc2e4cb8 iplimit: ipRegex improved
When the client has MUX enabled, a TCP or UDP prefix appears before the IP address. We initially weren’t aware of this behavior, but we have now resolved the issue.
2025-01-05 18:58:51 +01:00
mhsanaei
a940da8fee Add custom v2ray rules for Russia
runetfreedom/russia-v2ray-rules-dat
2025-01-05 15:39:40 +01:00
mhsanaei
2e95d48e72 bug fix - reality settings 2025-01-01 22:49:29 +01:00
mhsanaei
2d77a134ca httpupgrade: remove host from header 2025-01-01 20:18:28 +01:00