pocopico / tinycore-redpill

GNU General Public License v3.0
2.14k stars 631 forks source link

HTML : action with csrf #293

Open damienmillet opened 1 year ago

damienmillet commented 1 year ago

sometimes if we actualise after a reboot, we reboot again xD

pocopico commented 1 year ago

true dont know how to solve that :) let me try some google search :)

damienmillet commented 1 year ago

It’s really easy, u generate a token for each form or button before send view and verify it before use action

pocopico commented 1 year ago

You can PR if you want

damienmillet commented 1 year ago

haha i ll check it, if u want a rich web solution I can help u to create a node/deno app

about PR, can u check my PR of rp-ext pls

damienmillet commented 1 year ago

node is possible on tinycore, so i ll did it πŸ˜‰ I'm left some day so I ll did it in one week

damienmillet commented 1 year ago

Hi @pocopico, I just started a new repo called rp-web and I took a look at the front js app.

Based of my investigations, I'll use denojs instead of nodejs. That will be a local web app. I'll use a framework like aleph for creating a front linked to rploader by local api. The api will use a system command called to execute (eg : ./rploader build xxx)

I'll use react to make a dynamic app and I would love to hear your pov about any new features you would like to implement.

When it'll be done, I can send u all the repo as owner.

I think redpill cli and html use different ways, it would be nice to even out that.

The user_config is a json file so it'll be really easy to modify it πŸ€”

Maybe we can use another way to talk about this ? i ll open a discussion on the repo, u had an invitation to join

damienmillet commented 1 year ago

for the front UI I'll use geist-ui if you valid it

but I'm really not a UX designer πŸ˜…

damienmillet commented 1 year ago

I wait your validation to start, buddy πŸ˜…

pocopico commented 1 year ago

What ? Already ?

damienmillet commented 1 year ago

I didn't start, I waiting about ur idea and validation

pocopico commented 1 year ago

I'm interested of course to improve the experience. If you can provide a base to start it would be nice

damienmillet commented 1 year ago

Ok ! this morning I tried node and Deno but they 're really bulky so I ll did it with Php with fetch caller

damienmillet commented 1 year ago

So, the actual stack is :

Features :

API

Assets'r local, no web dependencies

I ll update this post

damienmillet commented 1 year ago

work with json is really easy, the app ll only work with json and exec command like ./rploader ... the user_conf file will be updated on keyup, command only use it

damienmillet commented 1 year ago

I'm just back from vacation, sry for time

pocopico commented 1 year ago

Welcome back, that means I can leave for vacation.

damienmillet commented 1 year ago

U want i help someone need help ?

damienmillet commented 9 months ago

Hi buddy, I'm really sorry I'm late cause I should change to hyper-v for some testing. I started this new front app, based on php with low ram and storage utilization. I don't forgot you, I need 2-3 month before come back to this project.

pocopico commented 9 months ago

Hey ! Nice to see you back. No worries, I'm also deep into work right now that I'm also away from my side projects