-
Notifications
You must be signed in to change notification settings - Fork 137
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
Web gui #215
Comments
I second this, somehow lol |
there is a really nice one here i use. https://github.com/icyphox/legit It does not need git even :) If anyone wants to work on it with me just shout... |
Hey @aymanbagabas If you want help on this just shout. |
Im willing to give it a try this week. Maybe I can send a PR, maybe only a half one. |
I have now started to Use htmx for the GUI. It allows progressive updates and is easy to develop on.. I based it on https://github.com/stackus/todos-htmx-wasm The web gui is plan Go templates with sprinkles of htmx tags. So the gui is updated from the server . Small parts of the gui update without a full page load. You can also run the exact same go html templates as wasm service worker. You’re just moving the rendering server to the browsers Service worker. so on first request the golang Server fully renders the page, whilst the Browser service worker is asynchronously loading that golang rendering Server into the browser. Once the golang rendering server is inside your service worker ans WASM all browser html requests hit that. Now that WASM is doing IO with the Golang Git server for only JSON using SSE and HTTP. Soft Serve does not raise an event when a file changes and so SSE is not possible yet .. The s |
Not sure if someone else is already working on this. If not, then I might be able to give it a try (but it might take awhile). I'm still exploring the code, but I'm very sure at least you can have a home page (see screenshot) :D The problem with third-party web UI is that they don't handle permissions, because the permission data is handled inside Soft Serve and not exposed. So the only way to do it is build it in. |
Well, before I dig myself any deeper, maybe it's a good time to ask the project members if the effort has already been commenced by someone. So... @aymanbagabas, you've mentioned in #241 that a Web UI was planed. Is the work already started? I mean, someone who knows the ins and outs is more likely to have better idea on how things should be done than me poking around :) On the other hand, if there is no effort yet... well, I'm exploring the code just a little, not sure if I can succeed in the end though. |
This is awesome @nirui I will be happy to help out . Let me know where your fork is etc |
My intention is to add the feature to the official version, so I want to hear the opinion and concerns from the project members before greenlighting myself to do anything further. My plan is to implement few very minimal, and read-only web pages to allow visitors to browse basic information about the repositories. Just couple of template and CSS files, maybe not even include JavaScript (So no CodeMirror or Markdown parsing etc, just good old I might also make it so the end-user can customize the interface via their own template and CSS files. So if they don't like what I did, they can make it all fancy by themselves. But before all that, we need to hear what the project members have to say about it. |
hey @nirui Is there code to look at ?
good. kiss...
agree +1
Raw http access is in the works : #456 |
Hi @gedw99, I've stopped working on this after my last comment up there. If you'd like to take a look, here are the changes I made: 0001-webui-add-initial-files-to-explorer-the-possibility.patch.txt Hope it will be useful to you if you're trying to implement similar feature ;) |
thanks @nirui Patch looks pretty good with no exotic dependencies ... I wil take a look later and see if I can PR it in. OH and also what @aymanbagabas thinks of it. |
Hi @gedw99. My patch introduced no new dependency. I thought extra dependency might complicate the code review process. However, please note that some part of the code might not be considered as up-to-spec for merging. For starter, the Another thing is the But... while waiting for the respond, I got involved in something else, which took all my free time away... So yeah, I'm no longer have time for this :( Anyway, that's your code now, have fun with it :) |
thanks @nirui yep I know how it is when you get dragged onto paying work etc. I will play with it and extend it based on your tips. |
Curious, are there any updates? |
I have not touched it at all . |
Maybe the most ironic thing but a basic web gui.
what ya think ?
soft serve is mega cool and really extendable and so many git servers are crazy complex. Gitea etc etc .
so a htmx based web gui with pure golang might be a nice thing for others ?
The text was updated successfully, but these errors were encountered: