-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
Create a new web frontend #627
Comments
I'd like to work on this if svelte is used :) |
Sounds great (current code is still based on Sapper though) |
I'll start by getting to know the project and then begin the process of moving things over. I'm planning to do some research, but I haven't had experience with this before. Any advice you can offer would be really appreciated! I will ... Let me know if anything else is needed. Also, please assign this to me. |
I think a lot of stuff was not finished regarding the GUI, but maybe @mosheduminer can give further insights. |
Thanks a lot for your help. Once we finish the GUI tasks (and it's a bigger project of course) and once we've implemented a few other things we can post on HN again :-) |
I'll see what I can summarize about the current state, issues, and plans thar we had. |
@commitsovercoffee did you already start? Let's keep in touch. We should keep track of individual issues in the other repo. |
I am unable to run it locally. I was able to create a user credential as per the README. Also, I read through the migration docs and feel someone more experienced with the project should do it. Once I get it running locally, I can work on the GUI tasks though. |
Not sure if @mosheduminer has time, but otherwise you could also start from scratch and add components or code snippets if they fit (for instance the file upload and the resource view (without the diffs) are maybe code wise ok. In general it would be awesome if we could do code reviews (that said I never found the thrill to do frontend stuff). |
@mosheduminer, what's your suggestion? |
It's possible some dependency versions weren't pinned, resulting in errors? But in any case, I think you should be able to run the web frontend without tauri. Tauri has come a long way since it was added to the project, and I have no doubt some changes would need to be made for it to work. Regarding the migration to sapper - I'd have to see what is needed. If I remember correctly it's mainly our mess of config files that need to be updated? We'll see if I have time this week to check it out. |
The sharp module is not installing ... node_modules/.pnpm/[email protected]/node_modules/sharp: Running install script, failed in 6.4s
.../[email protected]/node_modules/sharp install$ (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy) Can you please help me resolve this. |
Does this thread help? https://stackoverflow.com/questions/54409953/cant-install-sharp |
Installing I have ...
How do I login though ? What should I put in |
I believe it's http://localhost:9443 by default (whichever port sirix is exposed on). |
TypeError: Network request failed
onerror fetch-browser.js:550
setTimeout handler*fetchPonyfill/</fetch/</xhr.onerror fetch-browser.js:549
fetch fetch-browser.js:548
fetch fetch-browser.js:522
getTokenWithCredentials auth.js:61
initClient auth.js:184
init client.js:10
init sirix.js:22
login Login.svelte:18
createEventDispatcher index.mjs:977
createEventDispatcher index.mjs:976
getFormData Inner.svelte:8 I tried that. Unable to login. Do I have to set the URI in keycloak ? I followed the |
Is the keycloak container really up and running? |
@commitsovercoffee did you get to log in? |
Nope. Keycloak is running but haven't been able to login :( Keyclock is running and I am able to use it though. I'll wipe the project and try again. |
Can you access the Sirix server, though via a web browser for instance? http://localhost:9443? There should be an error, but it should be reachable. Maybe though it has to do with docker and networking stuff... |
Nope. |
For the record: I checked |
So you have to kill your current containers |
Oh, totally missed, this stuff:
|
You should check the logs from sirix (or maybe you can see it in the web console) to see what the error was for route |
I think it's also related to authorization. You can check via |
Yeah. Its an auth issue I guess.
It also says Lastest sirix log :
|
Set temporary to off, maybe that helps? |
Also I think you only need the username+pass and add the roles (you can add all 4 with "shift" pushed) |
Also the access token for instance is not set in new tabs sadly... |
Tried setting temporary to off. Still didn't work. It is working fine on your end right ? Will it be ok if we could get on a quick call on discord or meet ? I think it is taking longer than it should. Not sure where I'm messing it up. 😅 Perhaps it is time to learn docker :) |
I can't add a database currently, because it doesn't find the CSS file I assume. You can join discord. Maybe also Moshe has an idea. I'm however super tired right now.. but of course it would ne awesome to get you on board and overcome these issues |
CSS file? If you are available now we can meet in a call in the discord to try to work it out. |
Our channel: https://discord.gg/yC33wVpv7t |
So, for new interested frontend devs, this is still up for grabs :-) |
Hey I would love to work on this issue, If its still up for grabs :) |
@henrycotton1 you may first run the current frontend to get a first glimpse |
@JohannesLichtenberger Is there any specific part of the frontend you would like me to work on first or shall I just choose what I like? |
Probably we either should try to migrate the project to SvelteKit or start again from a green field. That said I think you should be ready to be able to spend some time :-) |
@henrycotton1 are you up for the task? |
Yep I will begin to migrate to Svelte, sorry for lack of communication! |
@henrycotton1 trying to ping |
The frontend sadly is dated, and some functionality has been missing.
Thus, we could either swap from Sapper to Svelte Kit or use for instance SolidJS (or whatever suits best).
The current frontend: https://github.com/sirixdb/sirix-svelte-frontend
A screenshot: https://github.com/sirixdb/sirix/blob/master/Screenshot%20from%202020-09-28%2018-50-58.png
The text was updated successfully, but these errors were encountered: