Skip to content
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

How to Make Changes in Frontend Code/Layout OctoBot #2583

Open
mkamranmazhar opened this issue Apr 5, 2024 · 11 comments
Open

How to Make Changes in Frontend Code/Layout OctoBot #2583

mkamranmazhar opened this issue Apr 5, 2024 · 11 comments

Comments

@mkamranmazhar
Copy link

Hello,

I've successfully running OctoBot with Docker on my server.

I'm looking to make some changes to its frontend layout. However, I'm encountering difficulty understanding where the frontend files are located.

someone please guide me on how to locate the frontend files within the source code?

Thank you.

@Herklos
Copy link
Member

Herklos commented Apr 5, 2024

Hi @mkamranmazhar,

You can find the source code of the OctoBot web interface here https://github.com/Drakkar-Software/OctoBot-Tentacles/tree/master/Services/Interfaces/web_interface.

These files are automatically installed at first startup as modules named "tentacles"

@mkamranmazhar
Copy link
Author

These files are automatically installed at first startup as modules named "tentacles"

Thank you @Herklos

These files will also be automatically installed if I run this via Docker, right?

@Herklos
Copy link
Member

Herklos commented Apr 5, 2024

Right, you can find them at /octobot/tentacles inside your docker container

@mkamranmazhar
Copy link
Author

@Herklos,

Please check image files are not available in this folder.

octobot-docker

Thank you.

@Herklos
Copy link
Member

Herklos commented Apr 5, 2024

@Herklos,

Please check image files are not available in this folder.

octobot-docker Thank you.

They are installed at first startup

@mkamranmazhar
Copy link
Author

They are installed at first startup

I've already done first startup, please check image & files are still not available in this location /octobot/tentacles.

both images attached.

octobot-first-run octobot-docker

Thank you.

@Herklos
Copy link
Member

Herklos commented Apr 6, 2024

The second screenshot contains the files available in the OctoBot docker image. It doesn't represent the files on your computer/server. A docker image once started can create new files and directories.

@mkamranmazhar
Copy link
Author

@Herklos,

Indeed, you're correct. Once the Docker image is started, files are automatically generated within the Docker container. However, I'm curious about the location of the frontend code files within the Docker container. Obviously, frontend code files are also generated, which is why the frontend is displayed when I start it in the browser.

Thank you.

@Herklos
Copy link
Member

Herklos commented Apr 7, 2024

They are packaged from https://github.com/Drakkar-Software/OctoBot-Tentacles/tree/master/Services/Interfaces/web_interface and then downloaded from our servers when a bot starts.

@mkamranmazhar
Copy link
Author

Thank you for update, @Herklos

They are packaged before being downloaded from your servers to our server?

And if so, does this mean I need to build the Docker image myself if I want to make changes to the source code?

@Herklos
Copy link
Member

Herklos commented Apr 16, 2024

No you can just mount a volume on /tentacles (like https://github.com/Drakkar-Software/OctoBot/blob/master/Dockerfile#L66) and modify the web interface source files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants