Genie Discord forum

Author AvatarGenerallyClueless
7/7/2023, 7:19:46 PM

I have spent more time than I would like to try and add tabs to a project in Genie Builder. Unfortunately the docs are outdated (https://genieframework.com/docs/stippleui/v0.21/API/tabs.html) , and there are no examples that involve Genie Builder, so I have not yet figured out what role GB fulfills, aside from visuals, or whether multiple tabs REQUIRE TabGroups, or whether TabPanels/TabPanelGroups are needed at all (as opposed to different URL's) etc...

I have had much better success copying already by using this approach that uses HTML, CSS, and JS. https://codepen.io/z007/pen/gwyRLQ

Originally, I thought that I could store the code inside an "app.css" and "app.js" and place them in the project directory, linking them to the HTML. Unfortunately, even when I specified the file location (rather than just file names) in the and <script> blocks, the functions and styles were not found. So it occurred to me that the julia server does not recognize the files as part of the project even though they are in the same folder.</script>

**๐Ÿ‘‰ Can anyone tell me what is the best way to upload these files to the server as part of the project? ๐Ÿ‘ˆ **

Currently, I have added the contents of the javascript file to the HTML <script> </script> block, and it works, but it's not very elegant. I would really like to add the files to a my project.

Once again, huge thanks to the @GENIE team for building such a cool product and I am really curious to see what new features will be released or updated soon!

Author AvatarPere
7/10/2023, 6:24:49 PM

the assets should be placed in the public/ folder as it is usually done in web frameworks. Then you'll be able to access them. For instance, to access /public/style.css you'll use the route mysite.com/style.css

Author AvatarGenerallyClueless
7/10/2023, 6:26:02 PM

So would I need to upload the files with an ftp client or some similar app?

Author AvatarGenerallyClueless
7/10/2023, 6:26:33 PM

I had hoped that I could just put the files in the same folder created by genie builder for the project

Author AvatarPere
7/10/2023, 6:26:39 PM

sorry, but that's for assets like images or something. You can also use the assets folder to place your javascript and css

Author AvatarPere
7/10/2023, 6:28:28 PM

what do you mean upload the files with an FTP client? I meant a structure like this

Author AvatarGenerallyClueless
7/10/2023, 6:30:23 PM

Forgive me, I have no experience writing web apps, so this is probably common knowledge for almost everyone working with Genie. ๐Ÿ˜ณ

Author AvatarPere
7/10/2023, 6:32:59 PM

no it's not! no ftp needed indeed ๐Ÿ™‚