Giter Club home page Giter Club logo

Comments (9)

Conor-Fleming avatar Conor-Fleming commented on July 21, 2024 1

Cool, I'll take a stab and let you know if I need anything. Thanks for the clear direction!

from core.

dstpierre avatar dstpierre commented on July 21, 2024 1

@Conor-Fleming yes server.go is a good file to have the embed.FS variable.

sorry for the delay.

from core.

Conor-Fleming avatar Conor-Fleming commented on July 21, 2024

Hi @dstpierre. I can work on this issue, if that's ok. Seems pretty straightforward based on your description.

from core.

dstpierre avatar dstpierre commented on July 21, 2024

that's great @Conor-Fleming let me know if you have any questions

from core.

dstpierre avatar dstpierre commented on July 21, 2024

@Conor-Fleming it would be nice if this change also brings in the CSS and logo image in a "public" directory that would be embeded as well.

For example, at this moment in templates/login.html line 14 there's a that references the logo from https, same from templates/partials/navbar.html line:5.

And for the CSS it's in templates/login.html line:8 and templates/partials/head.html line:13.

Would be nice to create a public directory, embed it and serve it's content. This involved changing the URL to access those resources in the html file above.

See this go doc part for how to serve content from an embed.FS.

Let me know if you have any questions.

from core.

Conor-Fleming avatar Conor-Fleming commented on July 21, 2024

I have created a public directory and added the logo-sb-no-txt.png & sb-app.css files as mentioned above. Would the best place to embed this new public directory and serve these files be in the existing server.go file? Or would you rather create a new file to do this? @dstpierre

Thanks in advance.

from core.

dstpierre avatar dstpierre commented on July 21, 2024

@Conor-Fleming I'm doing a friendly follow-up here, I'm planning a new release and would want this issue to be available in the next CLI update.

Can you update on your status, are you still interested in tackling this one?

Please let me know, thanks.

from core.

Conor-Fleming avatar Conor-Fleming commented on July 21, 2024

HI @dstpierre,

Apologies, I'm going to have to let this one go for the time being. Again so sorry.

from core.

dstpierre avatar dstpierre commented on July 21, 2024

@Conor-Fleming no worries at all, thanks for confirming.

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.