Тёмный
DOCTYPE Code
DOCTYPE Code
DOCTYPE Code
Подписаться
Login Template | HTML | CSS | JQuery
53:41
6 лет назад
Custom CSS Scrollbars
24:18
6 лет назад
Комментарии
@OCEMTechZone
@OCEMTechZone 2 месяца назад
🎉
@sakshamgupta7368
@sakshamgupta7368 3 месяца назад
Great work dear!! Regarding the duplicate log values, that happened because you are assigning deleteHandler on children as well. So once parent's method is invoked and then children's. If you further nest your code one level, you will see 3 values being logged. Anyways very nice explanation! Loved it !!
@doctypecode
@doctypecode 3 месяца назад
Thanks for clarifying, I overlooked
@Aditya-lc5uk
@Aditya-lc5uk 3 месяца назад
so is there a better way for this ?? or is it completely fine if it is getting printed multiple times
@doctypecode
@doctypecode 3 месяца назад
The solution is complete, you can ignore this. We were just discussing what was happening at that particular point. If you would check the code by the end of the video here [ codesandbox.io/p/sandbox/file-explorer-react-xy8nwv?file=%2Fsrc%2Findex.js%3A14%2C1 ] you will see single log statement now for delete node. Around 29:00 I could see two log statements, I think some intermittent issue might have come because of codesandbox. After creating traverse method, delete node is showing only one undefined statement not two which is the expected behaviour. I actually overlooked the issue and then forgot about it while creating the video but there is nothing wrong.
@ShakyaKaran-h3u
@ShakyaKaran-h3u 4 месяца назад
well explained, but you need to zoom in the screen so that it can be visible.
@doctypecode
@doctypecode 4 месяца назад
Thanks, I'll take care of it.
@doctypecode
@doctypecode 4 месяца назад
Around 27:30 I made a mistake, I shouldn't be passing anything in handleLoadMore function as it's handling the entire fetch data functionality. The issue was with sandbox, refresh actually fixed the problem. I though my code was wrong and passed length in confusion thinking I am calling fetch data from there which is not the case.
@nikhilyadav-v6p
@nikhilyadav-v6p 4 месяца назад
Great Explaination! It would be amazing if you'll add more such videos
@doctypecode
@doctypecode 4 месяца назад
Thanks! I'll keep adding.
@VinayakPhal
@VinayakPhal 4 месяца назад
Very well explained. Can see one issue cloning the main data. Array de structuring will do shallow copy.
@doctypecode
@doctypecode 4 месяца назад
Great that you found it useful. However, array destructuring doesn't create shallow copy. It only assigns references to the variables you specify in the destructuring pattern. If the elements of the array are objects, the variables will hold references to those objects, not copies of them. But this made me notice one thing, when i am using spread operator for creating shallow copy of the main data there I should be using JSON.parse(JSON.stringify(data)). Because spread operator will only create shallow copy and nested objects will still have the same reference of the state data. Hope this answers your concern. If not then put the timestamp and line number I'll look into it.
@VinayakPhal
@VinayakPhal 4 месяца назад
@@doctypecode actually You got my point, I was referring to the spread operator only, don't know why I typed de structuring. Sorry for the confusion.
@doctypecode
@doctypecode Год назад
Watch Full Video - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-VZSGwqk58Ko.html
@doctypecode
@doctypecode Год назад
Watch Full Video - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5f7dJ88S9wM.html
@doctypecode
@doctypecode Год назад
Understand the perspective property of CSS. What is perspective property and how to use it. Perspective - codepen.io/doctypecode/pen/gOZYVKr Login Page - codepen.io/doctypecode/pen/gXdmaj
@cssbattle
@cssbattle Год назад
So cool! 🤩 Thanks for sharing this walkthrough! 🙌🏼
@doctypecode
@doctypecode Год назад
In the body, there is a typo in height, but it doesn’t matter because we are absolutely positioning the div and giving absolute width and height to div - 120px, height and width matter when you want to give relative width and height like 10%, or 50%. Still, if there is any confusion then please comment
@S4LTYT
@S4LTYT Год назад
you took 1 hour to make a bullshit crap
@MrPogi-lf5gz
@MrPogi-lf5gz 2 года назад
Are the build files ready to be published in chrome store without issues? Why is there a separate watch/build directory?
@doctypecode
@doctypecode 2 года назад
Yes the build is production ready, you can submit this to Chrome Web Store. The watch folder is to load live changes of CE, it's only required during development. When you will create build, that you can submit on store or share with team for testing, demo and similar things.
@tomiszczew
@tomiszczew 2 года назад
First of all - it's very useful so many thanks! What about styling content.jsx? Is there any simple way to have a separate CSS file for content.jsx?
@doctypecode
@doctypecode 2 года назад
Think of it like a react project now. You can import CSS files in your content.jsx and use them to style
@iamankitdadhich
@iamankitdadhich 2 года назад
how can I contact you? could you pls share email id? I would like to discuss potential opportunity.
@doctypecode
@doctypecode 2 года назад
You can reach out to me on twitter @kapilkumar_95 www.linkedin.com/in/kapilkumar9395 doctypecode@gmail.com
@raghavareddy246
@raghavareddy246 2 года назад
Hiii i am Trying to turn my Reactjs project into Chrome extension i got this error how to solve this error : Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-q3nqK4VzeI/SowYCYQ/tCfo056B/JMutuSpzbJbHczk='), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present. Note also that 'style-src' was not explicitly set, so 'default-src' is used as a fallback. Thank you .
@doctypecode
@doctypecode 2 года назад
Assuming that you are trying to inject script in content js Manifest v3 does not allow inline scripting due to csp changes If that file is included in your “web_accessible_resources”
"web_accessible_resources": [{ "resources": [“script.js”], "matches": ["<all_urls>"] }] Then you can send message from content js whenever you want to inject the script like this // content script chrome.runtime.sendMessage({injectSpecific : true}, function(response) { // Script injected, we can proceed if(response.done) { apply_forms(/*...*/); } else { /* error handling */ } }); // background script chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) { if(message.injectSpecific){ var filename = getSpecificFilename(sender.url); chrome.tabs.executeScript(sender.tab.id, {file: script.js}, function() { sendResponse({ done: true }); }); return true; // Required for async sendResponse() } }); =========== If you are using webpack and Webpack’s Hot Module Replacement (HMR) creating chunks that you want to load then you can use a script which you include in your background script but only for development . Script link - github.com/doctypecode/react-cext-boilerplate/blob/main/cext-live-reload.js 
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-pBPDJb_6Aps.html&?t=47m50s If this doesn't help you then try to explain your project setup and exactly when you are getting this issue
@atulmehla8401
@atulmehla8401 5 лет назад
activate windows using kmspico