clevermissfox
clevermissfox
Explore posts from servers
KPCKevin Powell - Community
Created by snxxwyy on 10/16/2024 in #front-end
class questions
I really struggle with classes and OOP in general myself. Just wanted to add on , a class instance is when you use it eg
const user = new User();
const user = new User();
So the instance is now user , it is the first instance and you can have as many as you want.
24 replies
KPCKevin Powell - Community
Created by luca on 10/15/2024 in #front-end
How to Extend Background Color Across the Entire Row in My Opening Hours Table?
Is there another property needed? Width:100% on the table nor the tr is getting rid of the borders in bw columns
6 replies
KPCKevin Powell - Community
Created by luca on 10/15/2024 in #front-end
How to Extend Background Color Across the Entire Row in My Opening Hours Table?
theres some property on the table , i believe its border-collapse: collapse but i could be wrong
6 replies
KPCKevin Powell - Community
Created by lko on 10/12/2024 in #front-end
How to get information when doing promises?
Woah really ? As of version 14.8 apparently! Wow! Very good information to know ! I could’ve sworn I just got a warning about an await keyword without an async function recently in a node project which was definitely running latest node , maybe type module wasn’t set in package.json . Thanks for the tip!
However, it is only available in ES modules, which means you need to use the .mjs file extension or set "type": "module" in your package.json
11 replies
KPCKevin Powell - Community
Created by lko on 10/12/2024 in #front-end
How to get information when doing promises?
Just was confused by the plugins array being in the same block
11 replies
KPCKevin Powell - Community
Created by lko on 10/12/2024 in #front-end
How to get information when doing promises?
Okay I thought perhaps that was the case but just wanted to check I wasn’t missing out on something important
11 replies
KPCKevin Powell - Community
Created by snxxwyy on 10/13/2024 in #front-end
async function/promises vs try and catch
Ahhh I think you’re right. In that case , I’ve used async function for a demo project that used a Timer / Stopwatch . As an example
63 replies
KPCKevin Powell - Community
Created by snxxwyy on 10/13/2024 in #front-end
async function/promises vs try and catch
No it def shouldn’t be used outside of how it should be used but it’s always the example to introduce Promises to beginners when I was trying to learn. OP said they couldn’t think of a use case for asynchronous functions that don’t connect to the backend , so it’s an example of an asynchronous function that doesn’t connect to the backend
63 replies
KPCKevin Powell - Community
Created by lko on 10/12/2024 in #front-end
How to get information when doing promises?
How are you able to do this, use the await keyword without being inside an async function ?
const results = await Promise.all(….)
const results = await Promise.all(….)
I can understand why const response and const text can use await since async was declared on the data.map but up a level for the const results I would’ve thought js would yell at me that I cant use await without an async keyword
11 replies
KPCKevin Powell - Community
Created by snxxwyy on 10/13/2024 in #front-end
async function/promises vs try and catch
SetTimeout is the original Promise
63 replies
KPCKevin Powell - Community
Created by roger on 10/13/2024 in #front-end
how is this form can be between two divs
Yes , although I tend to use named grid lines but yes the concept is the same!
58 replies
KPCKevin Powell - Community
Created by roger on 10/13/2024 in #front-end
how is this form can be between two divs
Why stylus over scss ?
58 replies
KPCKevin Powell - Community
Created by roger on 10/13/2024 in #front-end
how is this form can be between two divs
Sigh… grid tracks and rules . So annoying to try and make
58 replies
KPCKevin Powell - Community
Created by roger on 10/13/2024 in #front-end
how is this form can be between two divs
PS I love that you use Pug!! It’s awesome
58 replies
KPCKevin Powell - Community
Created by roger on 10/13/2024 in #front-end
how is this form can be between two divs
Agh really ?? What kind of jank have you run into ?
58 replies
KPCKevin Powell - Community
Created by Arctomachine on 10/13/2024 in #front-end
Take full width in single column grid
In your minmax , use a min() function minmax ( min(100%, 350px), 1fr )
3 replies
KPCKevin Powell - Community
Created by roger on 10/13/2024 in #front-end
how is this form can be between two divs
I’ll often use pseudo elements for backgrounds in my grid and assign it a cell
58 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 10/10/2024 in #front-end
Can anybody tell me how to approach this layout ? Please see the attached image
Not necessarily , like I said depends on how you want it to behave . If you’re okay with some of it getting cut off on smaller screens then that could work
4 replies
KPCKevin Powell - Community
Created by Faker on 10/10/2024 in #front-end
JavaScript local storage, storing data, sending data from login/sign up form
Need to connect from the Front-End to somewhere I can store nonsensitive data. Localstorage would've been perfect but the security rules prohibit it. So trying to figure out where else to save some data . Someone suggested I use a database like supabase and use cloudflare workers to protect those credentials. I'll prob give indexedDB a try since it's not a lot of data
35 replies
KPCKevin Powell - Community
Created by Faker on 10/10/2024 in #front-end
JavaScript local storage, storing data, sending data from login/sign up form
I would prefer to skip the Worker and just connect straight to supabase. Looking for resources on how to set it up. Are there any keywords I should specifically be searching ? Maybe restricted IP token or …?
35 replies