big saf 🍉
KPCKevin Powell - Community
•Created by big saf 🍉 on 11/11/2024 in #os-and-tools
Best way to use env files for Mac and Windows?
I am using typescript gen to create the types for me using contentful from package json.
Now I understand that Unix based systems can have access to it but I don't want to leak keys.
What's the best way to do this?
4 replies
KPCKevin Powell - Community
•Created by big saf 🍉 on 6/23/2024 in #front-end
How to filter specific key + values in Javascript
I am working with the swapi API. I want to return an object but only specific entries.
For example;
Obj = { name: "Luke", age: 10, gender: "male"}
But I specifically want to return a new object which is the name and gender with it's key name and value.
My goal is to return them into a table but possibly have the option to have advanced filter. So user can return for name and age or more entries.
19 replies
KPCKevin Powell - Community
•Created by big saf 🍉 on 1/30/2024 in #front-end
How to filter a nested array and render it with js.
GitHub: https://github.com/Saf98/mega-menu-vanilla/blob/main/src%2Fnav.js
Project details: build a vertical column mega menu using JS.
What I have done so far:
Loop through the first set of objects in the array to render the parent categories and render it out 1st column.
To render the child categories (in the 2nd column) I check the value of he parent link using onClick event value and render it out.
Same for the 3rd column but logic is pretty much repeated.
Problem:
How do I update the 3rd col child elements if their parents change? (Only changes if the main parent element changes)
Also I would like some feedback on my logic and how to simplify it.
8 replies
KPCKevin Powell - Community
•Created by big saf 🍉 on 1/21/2024 in #os-and-tools
Can't get auto reload and formatting set up Codesandbox dot io?
I have set up a basic html css js devbox on codesandbox. I can't seem to find how to set up live reload and auto formatting?
right click on html does not have format document open?
2 replies
KPCKevin Powell - Community
•Created by big saf 🍉 on 12/9/2023 in #front-end
I cannot compile my sass code?
I am trying to use the min() method in my scss but I get a compile error? Cannot use the properties...
Does sass support it or do I need to upgrade something?
12 replies
KPCKevin Powell - Community
•Created by big saf 🍉 on 8/3/2023 in #resources
All things GitHub.
Found a really good resource for GitHub. From registering to daily workflows.
www.happygitwithr.com
2 replies
KPCKevin Powell - Community
•Created by big saf 🍉 on 6/30/2023 in #os-and-tools
SEO for translated content.
SEO tools are reporting content is not readable but for foreign store level. How do I fix this? If I have terms/conditions translated how else can I make it "readable"
10 replies