-
Notifications
You must be signed in to change notification settings - Fork 2
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
basic website #19
Comments
So you need a website which serves as a replacement of the current GUI?? |
@Divyansh-0 yes |
Okk i will try and replicate the features but i have never integrated a python app to a webpage |
@Divyansh-0 |
@Divyansh-0 do you want me to assign this issue to you? |
Yeah |
i didn't get what u want in dock secondary. Also i saw Your image code in the repo u shared why are You not using that?? |
if u look at |
if u mean |
I get that part i have to store those changed |
U want it to be fast or leaner?? |
u can have a place-holder method which gets called whenever the state changes for now, latter it can make an API call to python runtime to change settings |
fast would be good, but not the rule. you can improve upon |
For state change detection u can just use useState hook it would it ll return the current state. Also what is a place-holder method never heard of it in state management context of react |
So the logic has complications?? |
so here's what the API would be like, pyodide will run a python script when component mounts, it will have a Secondary Dock does a very similar thing, but instead of change the noise parameters, it will ask for new gradient and color, which is again handled by the python script the only thing js has to do is invoke python functions using pyodide, which will return an array to be displayed |
no not really, there might be small adjustments to be made. |
i will commit the python script by today, so that you have a better idea. for now just have a empty method which just console logs the change, and renders a random image |
So basically You want to track the changes in the input fields and then user for instance presses a button then make an api call to transfer the newly collected params then py script does the work |
no by placeholder i mean a function which doesn't do anything, it's just used for latter sake. it's a simple js function |
Ok i thought there are placeholder methods in Tenserflow and all . So i thought i might not be updated about React |
Ook |
yes spot on, but introduce some delay to the call, so its invoked only after user has made their desired change, we dont want to spam new request for every value the slider moves |
@Divyansh-0, Warp should be a drop down menu of |
Ok that input fields i will fix . For the apply change you dont want it to go back to original state?? |
Warp will take a N- dimensional array?? and a nested array ?? |
|
no it should be visible what the selected parameters are, you can disable the div, and enable it back when user clicks edit |
Ok you want it to be visible all the time not only when the user edit?? |
Sorry can you explain it clearly I can't get what you want ? |
Like the lerp cosine cubic and all?? You want separate fields for them ?? |
not separate fields, a single one where you can select which method to use |
the dock should be visible always, and a button the |
Ok You want to take a value as a input and let user select what operation needs to be performed ?? |
Ok let me say this is again in points:
|
yes |
Its a selection field basically not an input field |
made some changes have a look https://neon-daifuku-86d25e.netlify.app/ |
for warp items I think there should be checkboxes |
cool
anything which works |
Whats the theme You want?? |
Gray and white Works or You need something else?? |
@Divyansh-0 not gray and white, i don't know much about themes, but it should look premium. I would advise you to use Material-UI components which already have styles applied, it will be easy |
I know Material-Ui But i don't prefer it Limits Ur style . I will fix the alignments and all make it professional colors You can tell m e later |
U can track the changes on same link |
For dock secondary You want to call the methods in Selectiontools file when the users selects it?? |
no for now just have a placeholder, it will call a function in main script nor selectionTools |
Its not related to your project but do you have any idea how can i record user activity on a system using python?? |
what type of user activity ? |
Screen time , no of apps opened |
no i dont |
A Two page website with 4 main contents:
Page 1:
_range(tuple of 2 floats)etc...Noise
classGradient
andLinearColorGradient
classesPage2:
for initial commits / PRs, the python runtime connection need not be implemented, but placeholders can be created.
to be accepted for PR, Page1 (1, 2, 3) must be implemented
or
Page2 (4) must be implemented
The text was updated successfully, but these errors were encountered: