12466
Offtopic group for casual talking about anything. @rules_for_python still apply (except for the ontopic rule)
i wanted to get sugession in my .js files as i am doing in flask but the real js code need to be done in js structer, so i wish i only want like pylance's error for my js but i found when i try to do setup the eslint, it say https://eslint.org/docs/latest/use/getting-started#quick-start
and form here i foudn in my repo there just making the package.json, ... node_modules are also creating in my python repo, is this really ok there in my flask code?
Is anyone here JavaScript Developer ???
Since I realized I need to use JavaScript anyway, I am currently using VS Code. However, I am not receiving proper warnings when writing JS code, likely because the HTML elements are not recognized, even though the code itself does not show any errors. This is different from Python, where Pylance in strict mode provides clear warnings.
What extensions do you recommend for .js files to get similar functionality? As I am completely new to JavaScript, I would like to start with the best tools from the beginning. Any suggestions?
What i found by my research is this: EsLint -> but i am not getting why it say after install the extension i need to do some global, local setup even i am using python, so why i will do local setup of using npm here i am confused or is this standard to use?
https://flask-wtf.readthedocs.io/en/0.15.x/csrf/#javascript-requests
Читать полностью…
right now I'm trying to disable or remove this anti malware thing in windows 11 somehow, but it keeps turning itself back on.
Читать полностью…
Yup. Da sleep is very important for the efficient functioning of your brain
Читать полностью…
so host private repo in vps is also risky? what should be more best way to be secure of these?
Читать полностью…
yes so i am confused as in my github repo the js thigns will also got uploded even those not need for my python app.
Читать полностью…
If you want js tooling somewhere will need to be referenced right?
Читать полностью…
What it has to do EsLint with python? Just setup EsLint in your computer so the extension can use it
Читать полностью…
Thanks for this btw, i though i need to do something like this, but i missed this part 😅 💚
For me in this case, in the js funciton i just add this:
var csrfToken = document.querySelector(
'meta[name="csrf-token"]'
).content;
Hello, I was using the Flask-WTF library and have the following code in my head:
<meta name="csrf-token" content="{{ csrf_token() }}">
async function fetchRights(contentId, options) {
var response = await root.fetch((options && options.rightsUrl) || RIGHTS_URL, {
method: "POST",
headers: { Accept: "application/json", "Content-Type": "application/json" },
body: JSON.stringify({
content_params: { content_id: contentId, content_type: CONTENT_TYPE }
}),
signal: options && options.signal
});
I disabled it again and this time it worked somehow
Читать полностью…
if I can afford to get it done for me, I'd prefer to sleep 30 minutes more
Читать полностью…
Would you like to spend 30 minutes preparing breakfast every workday?
Читать полностью…
no it's not as they said
you need direct links to get to serious stuff there
you won't find stuff just like the moment you install it
Though nobody has important and critical data in a VPS.
You should always assume that someone is going to see them when using a VPS.