-
-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use API #342
Comments
I did it with the same API for Frontend if is there any good solution i would be happy to hear, thank you |
It was in my plan to simplify API and also use standard API in frontend. |
Thanks, Alireza, for your answer! I’ve logged in using /api/login and successfully retrieved data with /api/load. Now, I’m working on a Python function to save new clients or update usage volume using /api/save. But I wanted to check if I’m on the right track:
I’d really appreciate any tips or corrections if I’m missing something! |
Please check this thread: #294 |
Okay, it looks like I’m on the right track! I have to say, though, it’s a bit surprising how you handled the backend changes, especially with inbounds when a new user joins. But hey—the code works, and you're a legend for that! Keep up the awesome work! By the way, I’m a front-end developer and have a bit of free time, so if you ever need an extra hand, I’d love to contribute to a great project like the S-UI panel. |
It would be appreciated! |
I hear you, brother. I’d also appreciate any information on this. Is there a task list available for fixing the UI visual issues? Any suggestions on where to start editing in the front end would be really helpful! |
hello again alireza do you think its safe enough to connect to API from another server ? and how can i improve it |
Hello @tinybug-m, My plan is changing api to a better solution. It is a temporary solution right now. To edit visual UI, I am currently using vite with existing proxy solution here.
When you finished the changes and you make sure that it works fine ( in responsive mode as well ), then send me a PR for each step. Thank you in advance |
Hi @alireza0, I hope you're doing well! I wanted to follow up on a couple of topics related to the current project: 1. UI Visual Edits I'm eager to contribute to the visual improvements of the UI. I’ve already tested the manual run, and everything is working perfectly. There are no issues running the frontend in developer mode, and I’m able to interact with it without any problems. To get started on the visual edits, I was wondering if there’s a task list or specific areas of the UI that you'd like me to focus on first. Having some direction would help me get started efficiently and ensure that I’m addressing the most important visual issues. If you have any guidance or priorities in mind, please let me know, and I can dive into the necessary changes! 2. API Security for Telegram Bot Integration I'm also working on a Telegram bot that will communicate with the S-UI backend, and I'm using the same session-based authentication (via cookies) that the frontend uses. My question is: do you think it's safe to make these API calls from another server (my bot server) to the S-UI server, or should I be cautious of any potential security risks? For context, the bot will interact with the same API endpoints and will rely on session cookies to authenticate users. Here’s an example of the code I’m using for authentication and session management:
Thank you in advance for your time, and I look forward to your thoughts on both the UI and API security! Best regards, |
Hello dear Alireza
I would like to create connection with API to S-UI panel as an admin
as its obvious current front-end (vue axios maybe) is connected with api to backend
i wonder you writed other way to comminucate with backend ?
i want to connect to pannel edit client and get some data from panel in the safe way,
notice : i want to do this with Python in the same server
thank you alireza
The text was updated successfully, but these errors were encountered: