Skip to content

Commit

Permalink
Public UI update.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot committed Feb 14, 2025
1 parent 8ee28e7 commit eab9432
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webui/generator/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ def add_left_widgets(self) -> None:
self._show_version()

st.write(Messages.MAIN_PAGE_DESCRIPTION)
if self.public:
with st.expander("How to launch the tool locally", icon="ℹ️"):
st.markdown(Messages.LOCAL_VERSION)
st.markdown("---")

self.main_settings = MainSettings(
Expand Down
11 changes: 11 additions & 0 deletions webui/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,22 @@ class Messages:
"maps, or just chat. \n"
"🤗 If you like the project, consider supporting it on [Buy Me a Coffee](https://www.buymeacoffee.com/iwatkot) or "
"[Patreon](https://www.patreon.com/iwatkot). \n"
"🐙 Visit the [GitHub repository](https://github.com/iwatkot/maps4fs) for more information. \n"
"📹 A complete step-by-step video tutorial is on [YouTube](https://www.youtube.com/watch?v=Nl_aqXJ5nAk&)! \n"
"📹 WIP: Check out the complete playlist of video turorials on [YouTube]"
"(https://www.youtube.com/watch?v=hPbJZ0HoiDE&list=PLug0g7UYHX8D1Jik6NkJjQhdxqS-NOtB9). 🆕"
)

LOCAL_VERSION = (
"Right now you're using a public version of the app, which has some limitations. \n"
"You can also run the app locally, it will work faster, has no limitations, and "
"have some additional features. \n"
"If you have Docker installed it's just one command: \n"
"```bash \ndocker run -p 8501:8501 iwatkot/maps4fs \n``` \n"
"Detailed instuctions are available in the [README](https://github.com/iwatkot/maps4fs"
"?tab=readme-ov-file#option-2-docker-version)."
)

FS22_NOTES = (
"Support for the Farming Simulator 22 is discontinued. \nSome of the features are not "
"available for this game."
Expand Down

0 comments on commit eab9432

Please sign in to comment.