From cd5c72beedf9faee2be1c32aca3aa3ca6447335b Mon Sep 17 00:00:00 2001 From: Sameer Faridi Date: Tue, 20 Aug 2024 22:16:53 +0530 Subject: [PATCH 01/30] fix the build --- src/Utils.js | 1005 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 950 insertions(+), 55 deletions(-) diff --git a/src/Utils.js b/src/Utils.js index 66eb633..3acbde9 100644 --- a/src/Utils.js +++ b/src/Utils.js @@ -72,6 +72,10 @@ export const buttonDetails = [ { name: "TextToSpeech", description: "Convert text to speech." + }, + { + name: "following-curser", + description: "following curser." } ]; @@ -221,66 +225,74 @@ export const categories = [ { id: 1, title: "Color Changing Button", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Create a button that changes color when clicked or hovered over." + description: + "Create a button that changes color when clicked or hovered over." }, { id: 2, title: "Stop Watch", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Develop a functional stopwatch with start, stop, and reset features." + description: + "Develop a functional stopwatch with start, stop, and reset features." }, { id: 3, title: "Password Generator", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Build a tool that generates secure, random passwords based on user-defined criteria." + description: + "Build a tool that generates secure, random passwords based on user-defined criteria." }, { id: 4, title: "Tabs Composition", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Implement a tabbed interface component for organizing and displaying content." + description: + "Implement a tabbed interface component for organizing and displaying content." }, { id: 5, title: "Breadcrumbs", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Create a breadcrumb navigation component to improve website navigation." + description: + "Create a breadcrumb navigation component to improve website navigation." }, { id: 6, title: "Progress Bar", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Design and implement a progress bar to visualize task completion or loading status." + description: + "Design and implement a progress bar to visualize task completion or loading status." }, { id: 7, title: "Holy Grail Layout", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Implement the classic 'Holy Grail' layout using modern CSS techniques." + description: + "Implement the classic 'Holy Grail' layout using modern CSS techniques." }, { id: 8, title: "Blink Game", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Develop a simple reaction-based game where elements blink and users must click quickly." + description: + "Develop a simple reaction-based game where elements blink and users must click quickly." } ] }, @@ -290,98 +302,110 @@ export const categories = [ { id: 9, title: "Stepper Component", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Create a multi-step form or wizard interface using a stepper component." + description: + "Create a multi-step form or wizard interface using a stepper component." }, { id: 10, title: "Quiz App", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Build an interactive quiz application with multiple-choice questions and scoring." + description: + "Build an interactive quiz application with multiple-choice questions and scoring." }, { id: 11, title: "Drag and Drop Notes", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Implement a drag-and-drop interface for organizing and rearranging notes or tasks." + description: + "Implement a drag-and-drop interface for organizing and rearranging notes or tasks." }, { id: 12, title: "Tic Tac Toe", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Create a functional Tic Tac Toe game with win detection and player turn management." + description: + "Create a functional Tic Tac Toe game with win detection and player turn management." }, { id: 13, title: "Website Walk-through Helper", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Develop a step-by-step guide system to help users navigate through a website or application." + description: + "Develop a step-by-step guide system to help users navigate through a website or application." }, { id: 14, title: "Overlapping Circles Detector", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Create a function to detect and visualize overlapping circles on a canvas." + description: + "Create a function to detect and visualize overlapping circles on a canvas." }, { id: 15, title: "OTP Login System", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Implement a One-Time Password (OTP) based login system for enhanced security." + description: + "Implement a One-Time Password (OTP) based login system for enhanced security." }, { id: 16, title: "Dark Mode Toggle", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Create a toggle switch to switch between dark and light modes in a web application." + description: + "Create a toggle switch to switch between dark and light modes in a web application." }, { id: 17, title: "Selectable Grid", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Build a grid where users can select multiple cells, similar to spreadsheet functionality." + description: + "Build a grid where users can select multiple cells, similar to spreadsheet functionality." }, { id: 18, title: "Search Suggestions", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Implement a search bar with auto-complete suggestions as the user types." + description: + "Implement a search bar with auto-complete suggestions as the user types." }, { id: 19, title: "Modal Component", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Create a reusable modal component as a functional component in React." + description: + "Create a reusable modal component as a functional component in React." }, { id: 20, title: "Like Button", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Implement an interactive 'like' button with animations and state management." + description: + "Implement an interactive 'like' button with animations and state management." } ] }, @@ -391,59 +415,930 @@ export const categories = [ { id: 21, title: "Job Board with API Integration", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Build a job board application that fetches and displays job listings using the Hacker News API." + description: + "Build a job board application that fetches and displays job listings using the Hacker News API." }, { id: 22, title: "Infinite Scroll Implementation", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Create an infinite scroll feature to load content dynamically as the user scrolls." + description: + "Create an infinite scroll feature to load content dynamically as the user scrolls." }, { id: 23, title: "useEffect Hook Polyfill", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Implement a polyfill for React's useEffect hook to understand its inner workings." + description: + "Implement a polyfill for React's useEffect hook to understand its inner workings." }, { id: 24, title: "useMemo Hook Polyfill", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Create a custom implementation of React's useMemo hook for optimizing performance." + description: + "Create a custom implementation of React's useMemo hook for optimizing performance." }, { id: 25, title: "useThrottle Hook", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Develop a custom React hook for throttling function calls to improve performance." + description: + "Develop a custom React hook for throttling function calls to improve performance." }, { id: 26, title: "Multi-Select Search Component", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Build a search component that allows users to select multiple items from search results." + description: + "Build a search component that allows users to select multiple items from search results." }, { id: 27, title: "Recursive Comment Section", - date: "06 July 2024", + date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", - description: "Implement a nested comment section using recursion and depth-first search in React." + description: + "Implement a nested comment section using recursion and depth-first search in React." } ] } -]; \ No newline at end of file +]; + +export const ServiceId = "service_gtb4j1e"; + +export const Arun_M_questions = { + questions: [ + { + id: 1, + title: "Implement Debounce", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a debounce function.", + difficulty: "easy", + askedIn: ["Meta", "Google", "Flipkart", "IBM", "MakeMyTrip"] + }, + + { + id: 2, + title: "Implement Throttle", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a throttle function.", + difficulty: "medium", + askedIn: ["Google", "Meta", "Tekion"] + }, + { + id: 3, + title: "Implement Currying", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement function currying in JavaScript.", + difficulty: "easy", + askedIn: ["Intuit", "Tekion", "Adobe", "MakeMyTrip", "Jio", "Paytm"] + }, + { + id: 4, + title: "Implement Currying with Placeholders", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement function currying with placeholders.", + difficulty: "hard", + askedIn: [ + "Amazon", + "Flipkart", + "Yandex", + "Xiaomi", + "Vimeo", + "Gojek", + "Zeta" + ] + }, + { + id: 5, + title: "Deep Flatten I", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement deep flattening of arrays (version 1).", + difficulty: "medium", + askedIn: ["Roblox", "Disney+ Hotstar", "Rippling"] + }, + { + id: 6, + title: "Deep Flatten II", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement deep flattening of arrays (version 2).", + difficulty: "medium", + askedIn: ["CoinSwitch"] + }, + { + id: 7, + title: "Deep Flatten III", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement deep flattening of arrays (version 3).", + difficulty: "easy", + askedIn: [] + }, + { + id: 8, + title: "Deep Flatten IV", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement deep flattening of arrays (version 4).", + difficulty: "hard", + askedIn: ["Meta", "TikTok", "Google", "Apple", "Yandex", "Flipkart"] + }, + { + id: 9, + title: "Negative Indexing in Arrays (Proxies)", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement negative indexing in arrays using Proxies.", + difficulty: "medium", + askedIn: [] + }, + { + id: 10, + title: "Implement a Pipe Method", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a pipe method for function composition.", + difficulty: "easy", + askedIn: ["Adobe"] + }, + { + id: 11, + title: "Implement Auto-retry Promises", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Implement a system for automatically retrying failed promises.", + difficulty: "medium", + askedIn: ["Amazon", "Flipkart", "Adobe", "Paypal", "Swiggy"] + }, + { + id: 12, + title: "Implement Promise.all", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement the Promise.all() method.", + difficulty: "medium", + askedIn: [ + "TikTok", + "Lyft", + "Snapchat", + "Disney+ Hotstar", + "MakeMyTrip", + "Jio", + "MindTickle", + "Zepto" + ] + }, + { + id: 13, + title: "Implement Promise.allSettled", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement the Promise.allSettled() method.", + difficulty: "medium", + askedIn: ["Tekion", "Adobe"] + }, + { + id: 14, + title: "Implement Promise.any", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement the Promise.any() method.", + difficulty: "medium", + askedIn: ["Zepto"] + }, + { + id: 15, + title: "Implement Promise.race", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement the Promise.race() method.", + difficulty: "easy", + askedIn: ["Yandex"] + }, + { + id: 16, + title: "Implement Promise.finally", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement the Promise.finally() method.", + difficulty: "medium", + askedIn: ["Google"] + }, + { + id: 17, + title: "Implement Custom Javascript Promises", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom Promise class in JavaScript.", + difficulty: "super hard", + askedIn: ["Amazon", "Airbnb", "Tekion", "Cars24"] + }, + { + id: 18, + title: "Throttling Promises by Batching", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a system to throttle promises by batching them.", + difficulty: "medium", + askedIn: [] + }, + { + id: 19, + title: "Implement Custom Deep Equal", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom deep equality comparison function.", + difficulty: "hard", + askedIn: ["Google", "Tekion"] + }, + { + id: 20, + title: "Implement Custom Object.assign", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of Object.assign().", + difficulty: "medium", + askedIn: ["ServiceNow", "Flipkart"] + }, + { + id: 21, + title: "Implement Custom JSON.stringify", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of JSON.stringify().", + difficulty: "hard", + askedIn: ["Meta"] + }, + { + id: 22, + title: "Implement Custom JSON.parse", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of JSON.parse().", + difficulty: "super hard", + askedIn: ["Meta"] + }, + { + id: 23, + title: "Implement Custom typeof operator", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of the typeof operator.", + difficulty: "medium", + askedIn: [] + }, + { + id: 24, + title: "Implement Custom lodash _.get()", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of lodash's _.get() method.", + difficulty: "medium", + askedIn: ["TikTok", "Amazon", "Quizizz", "MindTickle"] + }, + { + id: 25, + title: "Implement Custom lodash _.set()", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of lodash's _.set() method.", + difficulty: "medium", + askedIn: [] + }, + { + id: 26, + title: "Implement Custom lodash _.omit()", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of lodash's _.omit() method.", + difficulty: "medium", + askedIn: [] + }, + { + id: 27, + title: "Implement Custom String Tokenizer", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom string tokenizer.", + difficulty: "medium", + askedIn: [] + }, + { + id: 28, + title: "Implement Custom setTimeout", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of setTimeout().", + difficulty: "medium", + askedIn: [] + }, + { + id: 29, + title: "Implement Custom setInterval", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of setInterval().", + difficulty: "medium", + askedIn: ["Meta", "TikTok", "Swiggy"] + }, + { + id: 30, + title: "Implement Custom clearAllTimers", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a function to clear all active timers.", + difficulty: "easy", + askedIn: ["Meta"] + }, + { + id: 31, + title: "Implement Custom Event Emitter", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom event emitter class.", + difficulty: "medium", + askedIn: ["Meta", "Flipkart", "Adobe", "Jio", "Tekion"] + }, + { + id: 32, + title: "Implement Custom Browser History", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom browser history object.", + difficulty: "medium", + askedIn: [] + }, + { + id: 33, + title: "Implement Custom Deep Clone", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom deep cloning function.", + difficulty: "medium", + askedIn: ["Adobe", "Tekion", "Navi"] + }, + { + id: 34, + title: "Implement Custom lodash _.chunk()", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of lodash's _.chunk() method.", + difficulty: "medium", + askedIn: [] + }, + { + id: 35, + title: "Promisify the Async Callbacks", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Convert async callbacks to promises.", + difficulty: "easy", + askedIn: ["Amazon"] + }, + { + id: 36, + title: "Implement 'N' async tasks in Series", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a system to run N async tasks in series.", + difficulty: "hard", + askedIn: ["Jio", "MakeMyTrip", "Tekion"] + }, + { + id: 37, + title: "Implement 'N' async tasks in Parallel", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a system to run N async tasks in parallel.", + difficulty: "medium", + askedIn: ["Zepto", "Paytm", "BookMyShow"] + }, + { + id: 38, + title: "Implement 'N' async tasks in Race", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a system to run N async tasks in a race.", + difficulty: "easy", + askedIn: [] + }, + { + id: 39, + title: "Implement Custom Object.is() method", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of the Object.is() method.", + difficulty: "easy", + askedIn: [] + }, + { + id: 40, + title: "Implement Custom lodash _.partial()", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of lodash's _.partial() method.", + difficulty: "medium", + askedIn: ["Meesho"] + }, + { + id: 41, + title: "Implement Custom lodash _.once()", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of lodash's _.once() method.", + difficulty: "medium", + askedIn: [] + }, + { + id: 42, + title: "Implement Custom trim() operation", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom trim() operation for strings.", + difficulty: "medium", + askedIn: [] + }, + { + id: 43, + title: "Implement Custom reduce() method", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of the reduce() method.", + difficulty: "medium", + askedIn: ["Amazon", "Apple", "Expedia", "Paytm", "ByteLearn"] + }, + { + id: 44, + title: "Implement Custom lodash _.memoize()", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of lodash's _.memoize() method.", + difficulty: "medium", + askedIn: ["Meta", "Intuit", "Gameskraft"] + }, + { + id: 45, + title: "Implement Custom call() method", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of the call() method.", + difficulty: "medium", + askedIn: ["Meesho"] + }, + { + id: 46, + title: "Implement Custom apply() method", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of the apply() method.", + difficulty: "medium", + askedIn: [] + }, + { + id: 47, + title: "Implement Custom bind() method", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom version of the bind() method.", + difficulty: "medium", + askedIn: ["Rippling", "Flipkart", "BookMyShow"] + }, + { + id: 48, + title: "Implement Custom React 'classnames' library", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Implement a custom version of the classnames library for React.", + difficulty: "medium", + askedIn: ["Meta"] + }, + { + id: 49, + title: "Implement Custom Redux used 'Immer' library", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Implement a custom version of Redux using the Immer library.", + difficulty: "medium", + askedIn: [] + }, + { + id: 50, + title: "Implement Custom Virtual DOM - I (Serialize)", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom virtual DOM (serialization).", + difficulty: "hard", + askedIn: ["Meta"] + }, + { + id: 51, + title: "Implement Custom Virtual DOM - II (Deserialize)", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement a custom virtual DOM (deserialization).", + difficulty: "medium", + askedIn: ["Meta"] + }, + { + id: 52, + title: "Implement Memoize/Cache identical API calls", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Implement memoization or caching for identical API calls.", + difficulty: "hard", + askedIn: ["Meta"] + }, + { + id: 53, + title: "Virtualized List", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Implement a virtualized list to efficiently render large lists of items.", + difficulty: "hard", + askedIn: ["Google"] + }, + { + id: 54, + title: "Context API for Theme Switching", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Use the Context API to implement theme switching across a React application.", + difficulty: "medium", + askedIn: ["Amazon"] + }, + { + id: 55, + title: "Custom Hook for Data Fetching", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Create a custom React hook for data fetching with error handling and loading states.", + difficulty: "medium", + askedIn: ["Netflix"] + }, + { + id: 56, + title: "Image Carousel", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Develop an image carousel component with auto-slide and manual navigation.", + difficulty: "easy", + askedIn: ["Microsoft"] + }, + { + id: 57, + title: "Form Validation with Formik and Yup", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Implement form validation using Formik and Yup for a user registration form.", + difficulty: "medium", + askedIn: ["Apple"] + }, + { + id: 58, + title: "Real-Time Chat Application", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Build a real-time chat application using WebSockets.", + difficulty: "hard", + askedIn: ["Facebook"] + }, + { + id: 59, + title: "Debounce Function Implementation", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Implement a debounce function to limit the rate at which a function is executed.", + difficulty: "medium", + askedIn: ["LinkedIn"] + }, + { + id: 60, + title: "Markdown Previewer", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Create a Markdown previewer that converts Markdown input to HTML in real-time.", + difficulty: "easy", + askedIn: ["Twitter"] + }, + { + id: 61, + title: "E-commerce Product Filter", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Implement a product filter component for an e-commerce website.", + difficulty: "medium", + askedIn: ["Shopify"] + }, + { + id: 62, + title: "Interactive Map with Leaflet", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "Build an interactive map using Leaflet and React.", + difficulty: "hard", + askedIn: ["Uber"] + }, + { + id: 63, + title: "Real-Time Data Visualization", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Create a real-time data visualization dashboard using D3.js and React.", + difficulty: "hard", + askedIn: ["Tesla"] + }, + { + id: 64, + title: "Dynamic Form Builder", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Build a dynamic form builder that allows users to create and customize forms.", + difficulty: "medium", + askedIn: ["Salesforce"] + }, + { + id: 65, + title: "Responsive Navbar", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Create a responsive navbar that collapses and expands based on screen size.", + difficulty: "easy", + askedIn: ["Adobe"] + }, + { + id: 66, + title: "Weather App with Geolocation", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Develop a weather application that uses geolocation to fetch weather data for the user's current location.", + difficulty: "medium", + askedIn: ["IBM"] + }, + { + id: 67, + title: "Recipe Finder", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Create a recipe finder app that fetches recipes from an external API based on user input.", + difficulty: "easy", + askedIn: ["Pinterest"] + }, + { + id: 68, + title: "Custom Scrollbars", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Implement custom scrollbars for a web application using CSS and JavaScript.", + difficulty: "medium", + askedIn: ["Slack"] + }, + { + id: 69, + title: "SVG Animation", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Create an animated SVG graphic using React and CSS animations.", + difficulty: "hard", + askedIn: ["Spotify"] + }, + { + id: 70, + title: "Real-Time Collaborative Editor", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Develop a real-time collaborative text editor using WebSockets.", + difficulty: "hard", + askedIn: ["Dropbox"] + }, + { + id: 71, + title: "Video Player with Custom Controls", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Build a video player component with custom controls and full-screen functionality.", + difficulty: "medium", + askedIn: ["YouTube"] + }, + { + id: 72, + title: "Image Gallery with Lightbox", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Create an image gallery with a lightbox feature for viewing images in a modal.", + difficulty: "easy", + askedIn: ["Flickr"] + }, + { + id: 73, + title: "Markdown to HTML Converter", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Build a tool that converts Markdown input into HTML output in real-time.", + difficulty: "medium", + askedIn: ["Medium"] + }, + { + id: 74, + title: "E-commerce Shopping Cart", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Implement a shopping cart feature for an e-commerce site with add, remove, and update functionalities.", + difficulty: "medium", + askedIn: ["Amazon"] + }, + { + id: 75, + title: "GraphQL API Integration", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Integrate a GraphQL API into a React application and perform queries and mutations.", + difficulty: "hard", + askedIn: ["Airbnb"] + }, + { + id: 76, + title: "Redux State Management", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Implement state management using Redux in a React application.", + difficulty: "medium", + askedIn: ["PayPal"] + }, + { + id: 77, + title: "Voice Recognition", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Create a voice recognition feature to interact with a web application using the Web Speech API.", + difficulty: "hard", + askedIn: ["Google"] + }, + { + id: 78, + title: "Password Strength Indicator", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Develop a password strength indicator to provide feedback on the strength of user passwords.", + difficulty: "easy", + askedIn: ["Twitter"] + }, + { + id: 79, + title: "Server-Side Rendering with Next.js", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Implement server-side rendering for a React application using Next.js.", + difficulty: "medium", + askedIn: ["Netflix"] + }, + { + id: 80, + title: "Accessibility Enhancements", + date: "25 July 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: + "Enhance the accessibility of a web application by implementing ARIA roles and keyboard navigation.", + difficulty: "medium", + askedIn: ["Microsoft"] + }, + { + id: 81, + title: "Following Curser", + date: "20 August 2024", + author: "sameerkali", + link: "https://github.com/sameerkali/React_coding_round_practice", + description: "A circle that follows the Curser", + difficulty: "easy", + askedIn: [""] + } + ] +}; From 23ed67734c5c781a769053d873f7c88501621400 Mon Sep 17 00:00:00 2001 From: Sameer Faridi Date: Tue, 20 Aug 2024 22:24:02 +0530 Subject: [PATCH 02/30] fix the utils --- src/Utils.js | 147 +-------------------------------------------------- 1 file changed, 1 insertion(+), 146 deletions(-) diff --git a/src/Utils.js b/src/Utils.js index 581a019..40fd482 100644 --- a/src/Utils.js +++ b/src/Utils.js @@ -76,12 +76,10 @@ export const buttonDetails = [ { name: "following-curser", description: "following curser." -<<<<<<< HEAD -======= }, + { name: "Debouncing", description: "Impliment Debouncing." ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 } ]; @@ -487,15 +485,8 @@ export const categories = [ export const ServiceId = "service_gtb4j1e"; -<<<<<<< HEAD export const Arun_M_questions = { questions: [ -======= - -export const Arun_M_questions = { - questions: [ - ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 { id: 1, title: "Implement Debounce", @@ -506,9 +497,6 @@ export const Arun_M_questions = { difficulty: "easy", askedIn: ["Meta", "Google", "Flipkart", "IBM", "MakeMyTrip"] }, -<<<<<<< HEAD - -======= { id: 81, title: "Following Curser", @@ -519,7 +507,6 @@ export const Arun_M_questions = { difficulty: "easy", askedIn: [""] }, ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 { id: 2, title: "Implement Throttle", @@ -548,7 +535,6 @@ export const Arun_M_questions = { link: "https://github.com/sameerkali/React_coding_round_practice", description: "Implement function currying with placeholders.", difficulty: "hard", -<<<<<<< HEAD askedIn: [ "Amazon", "Flipkart", @@ -558,9 +544,6 @@ export const Arun_M_questions = { "Gojek", "Zeta" ] -======= - askedIn: ["Amazon", "Flipkart", "Yandex", "Xiaomi", "Vimeo", "Gojek", "Zeta"] ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 }, { id: 5, @@ -628,12 +611,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Implement a system for automatically retrying failed promises.", -======= - description: "Implement a system for automatically retrying failed promises.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "medium", askedIn: ["Amazon", "Flipkart", "Adobe", "Paypal", "Swiggy"] }, @@ -645,7 +624,6 @@ export const Arun_M_questions = { link: "https://github.com/sameerkali/React_coding_round_practice", description: "Implement the Promise.all() method.", difficulty: "medium", -<<<<<<< HEAD askedIn: [ "TikTok", "Lyft", @@ -656,9 +634,6 @@ export const Arun_M_questions = { "MindTickle", "Zepto" ] -======= - askedIn: ["TikTok", "Lyft", "Snapchat", "Disney+ Hotstar", "MakeMyTrip", "Jio", "MindTickle", "Zepto"] ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 }, { id: 13, @@ -1016,12 +991,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Implement a custom version of the classnames library for React.", -======= - description: "Implement a custom version of the classnames library for React.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "medium", askedIn: ["Meta"] }, @@ -1031,12 +1002,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Implement a custom version of Redux using the Immer library.", -======= - description: "Implement a custom version of Redux using the Immer library.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "medium", askedIn: [] }, @@ -1076,12 +1043,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Implement a virtualized list to efficiently render large lists of items.", -======= - description: "Implement a virtualized list to efficiently render large lists of items.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "hard", askedIn: ["Google"] }, @@ -1091,12 +1054,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Use the Context API to implement theme switching across a React application.", -======= - description: "Use the Context API to implement theme switching across a React application.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "medium", askedIn: ["Amazon"] }, @@ -1106,12 +1065,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Create a custom React hook for data fetching with error handling and loading states.", -======= - description: "Create a custom React hook for data fetching with error handling and loading states.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "medium", askedIn: ["Netflix"] }, @@ -1121,12 +1076,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Develop an image carousel component with auto-slide and manual navigation.", -======= - description: "Develop an image carousel component with auto-slide and manual navigation.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "easy", askedIn: ["Microsoft"] }, @@ -1136,12 +1087,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Implement form validation using Formik and Yup for a user registration form.", -======= - description: "Implement form validation using Formik and Yup for a user registration form.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "medium", askedIn: ["Apple"] }, @@ -1161,12 +1108,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Implement a debounce function to limit the rate at which a function is executed.", -======= - description: "Implement a debounce function to limit the rate at which a function is executed.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "medium", askedIn: ["LinkedIn"] }, @@ -1176,12 +1119,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Create a Markdown previewer that converts Markdown input to HTML in real-time.", -======= - description: "Create a Markdown previewer that converts Markdown input to HTML in real-time.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "easy", askedIn: ["Twitter"] }, @@ -1191,12 +1130,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Implement a product filter component for an e-commerce website.", -======= - description: "Implement a product filter component for an e-commerce website.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "medium", askedIn: ["Shopify"] }, @@ -1216,12 +1151,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Create a real-time data visualization dashboard using D3.js and React.", -======= - description: "Create a real-time data visualization dashboard using D3.js and React.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "hard", askedIn: ["Tesla"] }, @@ -1231,12 +1162,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Build a dynamic form builder that allows users to create and customize forms.", -======= - description: "Build a dynamic form builder that allows users to create and customize forms.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "medium", askedIn: ["Salesforce"] }, @@ -1246,12 +1173,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Create a responsive navbar that collapses and expands based on screen size.", -======= - description: "Create a responsive navbar that collapses and expands based on screen size.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "easy", askedIn: ["Adobe"] }, @@ -1261,12 +1184,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Develop a weather application that uses geolocation to fetch weather data for the user's current location.", -======= - description: "Develop a weather application that uses geolocation to fetch weather data for the user's current location.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "medium", askedIn: ["IBM"] }, @@ -1276,12 +1195,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Create a recipe finder app that fetches recipes from an external API based on user input.", -======= - description: "Create a recipe finder app that fetches recipes from an external API based on user input.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "easy", askedIn: ["Pinterest"] }, @@ -1291,12 +1206,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Implement custom scrollbars for a web application using CSS and JavaScript.", -======= - description: "Implement custom scrollbars for a web application using CSS and JavaScript.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "medium", askedIn: ["Slack"] }, @@ -1306,12 +1217,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Create an animated SVG graphic using React and CSS animations.", -======= - description: "Create an animated SVG graphic using React and CSS animations.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "hard", askedIn: ["Spotify"] }, @@ -1321,12 +1228,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Develop a real-time collaborative text editor using WebSockets.", -======= - description: "Develop a real-time collaborative text editor using WebSockets.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "hard", askedIn: ["Dropbox"] }, @@ -1336,12 +1239,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Build a video player component with custom controls and full-screen functionality.", -======= - description: "Build a video player component with custom controls and full-screen functionality.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "medium", askedIn: ["YouTube"] }, @@ -1351,12 +1250,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Create an image gallery with a lightbox feature for viewing images in a modal.", -======= - description: "Create an image gallery with a lightbox feature for viewing images in a modal.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "easy", askedIn: ["Flickr"] }, @@ -1366,12 +1261,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Build a tool that converts Markdown input into HTML output in real-time.", -======= - description: "Build a tool that converts Markdown input into HTML output in real-time.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "medium", askedIn: ["Medium"] }, @@ -1381,12 +1272,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Implement a shopping cart feature for an e-commerce site with add, remove, and update functionalities.", -======= - description: "Implement a shopping cart feature for an e-commerce site with add, remove, and update functionalities.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "medium", askedIn: ["Amazon"] }, @@ -1396,12 +1283,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Integrate a GraphQL API into a React application and perform queries and mutations.", -======= - description: "Integrate a GraphQL API into a React application and perform queries and mutations.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "hard", askedIn: ["Airbnb"] }, @@ -1411,12 +1294,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Implement state management using Redux in a React application.", -======= - description: "Implement state management using Redux in a React application.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "medium", askedIn: ["PayPal"] }, @@ -1426,12 +1305,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Create a voice recognition feature to interact with a web application using the Web Speech API.", -======= - description: "Create a voice recognition feature to interact with a web application using the Web Speech API.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "hard", askedIn: ["Google"] }, @@ -1441,12 +1316,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Develop a password strength indicator to provide feedback on the strength of user passwords.", -======= - description: "Develop a password strength indicator to provide feedback on the strength of user passwords.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "easy", askedIn: ["Twitter"] }, @@ -1456,12 +1327,8 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Implement server-side rendering for a React application using Next.js.", -======= - description: "Implement server-side rendering for a React application using Next.js.", ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 difficulty: "medium", askedIn: ["Netflix"] }, @@ -1471,7 +1338,6 @@ export const Arun_M_questions = { date: "25 July 2024", author: "sameerkali", link: "https://github.com/sameerkali/React_coding_round_practice", -<<<<<<< HEAD description: "Enhance the accessibility of a web application by implementing ARIA roles and keyboard navigation.", difficulty: "medium", @@ -1489,14 +1355,3 @@ export const Arun_M_questions = { } ] }; -======= - description: "Enhance the accessibility of a web application by implementing ARIA roles and keyboard navigation.", - difficulty: "medium", - askedIn: ["Microsoft"] - }, - - - - ] -} ->>>>>>> 71b573c8751ab87ecbf95a570c13921099a3acf3 From d1730b6b4a0efc27672348db2c9aa64c4f4bab42 Mon Sep 17 00:00:00 2001 From: Sameer Faridi <76611058+sameerkali@users.noreply.github.com> Date: Wed, 21 Aug 2024 11:50:19 +0530 Subject: [PATCH 03/30] Update FollowingCurser.jsx --- src/All Assessment/assessment19/FollowingCurser.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/All Assessment/assessment19/FollowingCurser.jsx b/src/All Assessment/assessment19/FollowingCurser.jsx index d8a0321..71aced8 100644 --- a/src/All Assessment/assessment19/FollowingCurser.jsx +++ b/src/All Assessment/assessment19/FollowingCurser.jsx @@ -25,7 +25,7 @@ const FollowingCurser = () => { }; }; - const throttledHandleMovement = throttle(handleMovement, 40); + const throttledHandleMovement = throttle(handleMovement, 20); return (
Date: Sat, 24 Aug 2024 18:52:05 +0530 Subject: [PATCH 04/30] checking --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index fa4f542..ecd176f 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ - OTP Login - Dark mode Light mode + + ## Medium: - Selectable Grid ✅ From 22af8a291c337841b191a5fe8afde1635e631d25 Mon Sep 17 00:00:00 2001 From: sameerkali Date: Tue, 27 Aug 2024 13:26:04 +0530 Subject: [PATCH 05/30] adding toster --- .../assessment20/Debouncing.jsx | 35 +++++++++++++++++++ src/All Assessment/assessment20/readme.md | 1 + src/All Assessment/assessment21/Toster.jsx | 9 +++++ src/All Assessment/assessment21/readme.md | 1 + src/App.jsx | 3 +- src/Utils.js | 4 +++ 6 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 src/All Assessment/assessment20/Debouncing.jsx create mode 100644 src/All Assessment/assessment20/readme.md create mode 100644 src/All Assessment/assessment21/Toster.jsx create mode 100644 src/All Assessment/assessment21/readme.md diff --git a/src/All Assessment/assessment20/Debouncing.jsx b/src/All Assessment/assessment20/Debouncing.jsx new file mode 100644 index 0000000..d16fbba --- /dev/null +++ b/src/All Assessment/assessment20/Debouncing.jsx @@ -0,0 +1,35 @@ +import React, { useState, useEffect } from 'react'; + +const Debouncing = () => { + const [inputValue, setInputValue] = useState(''); + const [debouncedValue, setDebouncedValue] = useState(''); + + useEffect(() => { + const handler = setTimeout(() => { + setDebouncedValue(inputValue); + }, 300); + return () => { + clearTimeout(handler); + }; + }, [inputValue]); + + const handleChange = (event) => { + setInputValue(event.target.value); + }; + + return ( +
+ +

Input value: {inputValue}

+

Debounced value: {debouncedValue}

+
+ ); +}; + +export default Debouncing; diff --git a/src/All Assessment/assessment20/readme.md b/src/All Assessment/assessment20/readme.md new file mode 100644 index 0000000..93ba11c --- /dev/null +++ b/src/All Assessment/assessment20/readme.md @@ -0,0 +1 @@ +## Blink game \ No newline at end of file diff --git a/src/All Assessment/assessment21/Toster.jsx b/src/All Assessment/assessment21/Toster.jsx new file mode 100644 index 0000000..14db90a --- /dev/null +++ b/src/All Assessment/assessment21/Toster.jsx @@ -0,0 +1,9 @@ +import React from 'react' + +const Toster = () => { + return ( +
Toster
+ ) +} + +export default Toster \ No newline at end of file diff --git a/src/All Assessment/assessment21/readme.md b/src/All Assessment/assessment21/readme.md new file mode 100644 index 0000000..93ba11c --- /dev/null +++ b/src/All Assessment/assessment21/readme.md @@ -0,0 +1 @@ +## Blink game \ No newline at end of file diff --git a/src/App.jsx b/src/App.jsx index 11aa129..6a67ec0 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -34,6 +34,7 @@ import Code from "./Components/Code_Snippet/Code"; import FollowingCurser from "./All Assessment/assessment19/FollowingCurser"; import Debouncing from "./All Assessment/assessment19/Debouncing"; +import Toster from "./All Assessment/assessment21/Toster"; ReactGA.initialize("G-R3DJ0V5QK6"); @@ -103,7 +104,7 @@ const App = () => { } /> } /> } /> - } /> + } />} /> } diff --git a/src/Utils.js b/src/Utils.js index 40fd482..78d4d31 100644 --- a/src/Utils.js +++ b/src/Utils.js @@ -80,6 +80,10 @@ export const buttonDetails = [ { name: "Debouncing", description: "Impliment Debouncing." + }, + { + name: "Toster", + description: "Toster message trigger on event." } ]; From a6a0d53709d44a6f59fb4a9193c9e979ab4a6625 Mon Sep 17 00:00:00 2001 From: sameerkali Date: Tue, 27 Aug 2024 13:54:23 +0530 Subject: [PATCH 06/30] My version of toster that is working but not so optimized --- src/All Assessment/assessment21/Toster.jsx | 44 +++++++++++++++++++--- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/src/All Assessment/assessment21/Toster.jsx b/src/All Assessment/assessment21/Toster.jsx index 14db90a..3f25fd1 100644 --- a/src/All Assessment/assessment21/Toster.jsx +++ b/src/All Assessment/assessment21/Toster.jsx @@ -1,9 +1,43 @@ -import React from 'react' +import React, { useState } from "react"; +import GotoHome from "../../Components/GoToHome"; const Toster = () => { + const [showToster, setShowToster] = useState(false) + console.log("showToster",showToster) + const handleClick = () => { + setShowToster(true) + }; + setTimeout(() => { + setShowToster(false) + console.log("I am also running") + }, 6000); return ( -
Toster
- ) -} +
+ {showToster &&
} + + +
+ ); +}; -export default Toster \ No newline at end of file +export default Toster; + +const TosterBox = (setShowToster) => { + console.log(setShowToster, "======") + const handleClose = () => { + setShowToster="false" + } + return ( +
+
+

This is a Toster Box after click

+

x

+
+
+ ); +}; From f4c1a2f40cb3b2c521a580f663a55da40bfff8a6 Mon Sep 17 00:00:00 2001 From: sameerkali Date: Tue, 27 Aug 2024 14:20:06 +0530 Subject: [PATCH 07/30] apna dimaag + chat GPT for optimize it more --- src/All Assessment/assessment21/Toster.jsx | 59 +++++++++++++++------- 1 file changed, 40 insertions(+), 19 deletions(-) diff --git a/src/All Assessment/assessment21/Toster.jsx b/src/All Assessment/assessment21/Toster.jsx index 3f25fd1..1ccc5d4 100644 --- a/src/All Assessment/assessment21/Toster.jsx +++ b/src/All Assessment/assessment21/Toster.jsx @@ -2,20 +2,43 @@ import React, { useState } from "react"; import GotoHome from "../../Components/GoToHome"; const Toster = () => { - const [showToster, setShowToster] = useState(false) - console.log("showToster",showToster) + const [toasts, setToasts] = useState([]); + const handleClick = () => { - setShowToster(true) + const newToast = { id: Date.now(), visible: true }; + setToasts((prevToasts) => [newToast, ...prevToasts]); + + setTimeout(() => { + removeToast(newToast.id); + }, 6000); }; - setTimeout(() => { - setShowToster(false) - console.log("I am also running") - }, 6000); + + const removeToast = (id) => { + setToasts((prevToasts) => + prevToasts.map((toast) => + toast.id === id ? { ...toast, visible: false } : toast + ) + ); + setTimeout(() => { + setToasts((prevToasts) => prevToasts.filter((toast) => toast.id !== id)); + }, 500); + }; + return (
- {showToster &&
} + {toasts.map((toast, index) => ( +
+ removeToast(toast.id)} /> +
+ ))} +
); }; From b0e918c0a153555637104fe6a252089541dd6a76 Mon Sep 17 00:00:00 2001 From: sameerkali Date: Tue, 27 Aug 2024 14:24:52 +0530 Subject: [PATCH 08/30] add progress bar in toaste message --- src/All Assessment/assessment21/Toster.jsx | 8 +++++--- src/All Assessment/assessment21/styles.css | 12 ++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 src/All Assessment/assessment21/styles.css diff --git a/src/All Assessment/assessment21/Toster.jsx b/src/All Assessment/assessment21/Toster.jsx index 1ccc5d4..241d1e6 100644 --- a/src/All Assessment/assessment21/Toster.jsx +++ b/src/All Assessment/assessment21/Toster.jsx @@ -1,5 +1,6 @@ -import React, { useState } from "react"; +import React, { useState, useEffect } from "react"; import GotoHome from "../../Components/GoToHome"; +import './styles.css' const Toster = () => { const [toasts, setToasts] = useState([]); @@ -32,7 +33,7 @@ const Toster = () => { className={`z-1000 absolute right-10 transition-all duration-500 ${ toast.visible ? "opacity-100 translate-x-0" : "opacity-0 translate-x-full" }`} - style={{ top: `${10 + index * 60}px` }} + style={{ top: `${10 + index * 60}px` }} // Adjust the position based on index > removeToast(toast.id)} /> @@ -52,13 +53,14 @@ export default Toster; const TosterBox = ({ onClose }) => { return ( -
+

This is a Toster Box after click

+
); }; diff --git a/src/All Assessment/assessment21/styles.css b/src/All Assessment/assessment21/styles.css new file mode 100644 index 0000000..a7b5f46 --- /dev/null +++ b/src/All Assessment/assessment21/styles.css @@ -0,0 +1,12 @@ +.progress-bar { + animation: progress 6s linear forwards; + } + + @keyframes progress { + from { + width: 100%; + } + to { + width: 0%; + } + } \ No newline at end of file From d6664c5b6a6dffd26a69f41609bffd2688853175 Mon Sep 17 00:00:00 2001 From: sameerkali Date: Tue, 27 Aug 2024 20:35:27 +0530 Subject: [PATCH 09/30] remove comments --- src/All Assessment/assessment21/Toster.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/All Assessment/assessment21/Toster.jsx b/src/All Assessment/assessment21/Toster.jsx index 241d1e6..f16326a 100644 --- a/src/All Assessment/assessment21/Toster.jsx +++ b/src/All Assessment/assessment21/Toster.jsx @@ -33,7 +33,7 @@ const Toster = () => { className={`z-1000 absolute right-10 transition-all duration-500 ${ toast.visible ? "opacity-100 translate-x-0" : "opacity-0 translate-x-full" }`} - style={{ top: `${10 + index * 60}px` }} // Adjust the position based on index + style={{ top: `${10 + index * 60}px` }} > removeToast(toast.id)} />
From ae70a4804a2e2387601def778973e95f103c9e77 Mon Sep 17 00:00:00 2001 From: sameerkali Date: Tue, 27 Aug 2024 20:39:37 +0530 Subject: [PATCH 10/30] add My toaster --- src/All Assessment/assessment21/MyToaster.jsx | 58 +++++++++++++++++++ src/App.jsx | 6 +- src/Utils.js | 4 ++ 3 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 src/All Assessment/assessment21/MyToaster.jsx diff --git a/src/All Assessment/assessment21/MyToaster.jsx b/src/All Assessment/assessment21/MyToaster.jsx new file mode 100644 index 0000000..16cb608 --- /dev/null +++ b/src/All Assessment/assessment21/MyToaster.jsx @@ -0,0 +1,58 @@ +import React from "react"; + +const MyToaster = () => { + const [toast, setToast] = React.useState([]); + console.log("toast:", toast); + + const handleClick = () => { + const newToast = { id: Date.now() }; + setToast(prev => [...prev, newToast]); + setTimeout(() => { + removeToast(newToast.id); + }, 6000); + }; + + const removeToast = id => { + setToast(prev => prev.filter(t => t.id !== id)); + }; + + return ( +
+
+ {toast.map((t, index) => +
+ removeToast(t.id)} /> +
+ )} +
+

Hello React.

+ +
+ ); +}; + +export default MyToaster; + +const Toast = ({ close }) => { + return ( +
+

I am a sweet Toast

+ +
+ ); +}; diff --git a/src/App.jsx b/src/App.jsx index 6a67ec0..91b0038 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -35,7 +35,7 @@ import FollowingCurser from "./All Assessment/assessment19/FollowingCurser"; import Debouncing from "./All Assessment/assessment19/Debouncing"; import Toster from "./All Assessment/assessment21/Toster"; - +import MyToaster from "./All Assessment/assessment21/MyToaster"; ReactGA.initialize("G-R3DJ0V5QK6"); @@ -104,7 +104,9 @@ const App = () => { } /> } /> } /> - } />} /> + } /> + } /> + } /> } diff --git a/src/Utils.js b/src/Utils.js index 78d4d31..ac94505 100644 --- a/src/Utils.js +++ b/src/Utils.js @@ -84,6 +84,10 @@ export const buttonDetails = [ { name: "Toster", description: "Toster message trigger on event." + }, + { + name: "MyToster", + description: "Toster message trigger on event jo ki maine khud banaya hai" } ]; From 255ae3d933fb68d414e2886b52eac901587d1e42 Mon Sep 17 00:00:00 2001 From: sameerkali Date: Tue, 27 Aug 2024 20:42:19 +0530 Subject: [PATCH 11/30] fix My Toaster --- src/All Assessment/assessment21/MyToaster.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/All Assessment/assessment21/MyToaster.jsx b/src/All Assessment/assessment21/MyToaster.jsx index 16cb608..34300ec 100644 --- a/src/All Assessment/assessment21/MyToaster.jsx +++ b/src/All Assessment/assessment21/MyToaster.jsx @@ -1,4 +1,5 @@ import React from "react"; +import GoToHome from "../../Components/GoToHome" const MyToaster = () => { const [toast, setToast] = React.useState([]); @@ -25,8 +26,9 @@ const MyToaster = () => { )} -

Hello React.

- + +

Toaster By sameerkali

+ ); }; From 6b14851eda9f9e716deab991b6107f99f9ca2a5e Mon Sep 17 00:00:00 2001 From: sameerkali Date: Tue, 27 Aug 2024 21:00:56 +0530 Subject: [PATCH 12/30] add countdown --- src/All Assessment/assessment21/MyToaster.jsx | 35 ++++++++++++++----- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/src/All Assessment/assessment21/MyToaster.jsx b/src/All Assessment/assessment21/MyToaster.jsx index 34300ec..b92852b 100644 --- a/src/All Assessment/assessment21/MyToaster.jsx +++ b/src/All Assessment/assessment21/MyToaster.jsx @@ -1,5 +1,5 @@ import React from "react"; -import GoToHome from "../../Components/GoToHome" +import GoToHome from "../../Components/GoToHome"; const MyToaster = () => { const [toast, setToast] = React.useState([]); @@ -26,16 +26,34 @@ const MyToaster = () => { )} - +

Toaster By sameerkali

- + ); }; export default MyToaster; -const Toast = ({ close }) => { +const Toast = ({ close, time = 6 }) => { + const [count, setCount] = React.useState(time); + + React.useEffect(() => { + const intervalId = setInterval(() => { + setCount((prev) => { + if (prev === 1) { + clearInterval(intervalId); + close(); + } + return prev - 1; + }); + }, 1000); + + return () => clearInterval(intervalId); + }, [close]); + return (
{ gap: "20px", backgroundColor: "white", padding: "10px", - backgroundColor: "red" + backgroundColor: "red", }} >

I am a sweet Toast

-
); }; + From 345f311f7c44069282307c7abe08c80b5030168d Mon Sep 17 00:00:00 2001 From: sameerkali Date: Tue, 27 Aug 2024 23:03:29 +0530 Subject: [PATCH 13/30] add new assignment: Todo app (CRUD) --- src/All Assessment/assessment22/Todo.jsx | 9 +++++++++ src/All Assessment/assessment22/readme.md | 1 + src/All Assessment/assessment22/styles.css | 12 ++++++++++++ src/App.jsx | 2 ++ src/Utils.js | 4 ++++ 5 files changed, 28 insertions(+) create mode 100644 src/All Assessment/assessment22/Todo.jsx create mode 100644 src/All Assessment/assessment22/readme.md create mode 100644 src/All Assessment/assessment22/styles.css diff --git a/src/All Assessment/assessment22/Todo.jsx b/src/All Assessment/assessment22/Todo.jsx new file mode 100644 index 0000000..db5d368 --- /dev/null +++ b/src/All Assessment/assessment22/Todo.jsx @@ -0,0 +1,9 @@ +import React from 'react' + +const Todo = () => { + return ( +
Todo
+ ) +} + +export default Todo \ No newline at end of file diff --git a/src/All Assessment/assessment22/readme.md b/src/All Assessment/assessment22/readme.md new file mode 100644 index 0000000..93ba11c --- /dev/null +++ b/src/All Assessment/assessment22/readme.md @@ -0,0 +1 @@ +## Blink game \ No newline at end of file diff --git a/src/All Assessment/assessment22/styles.css b/src/All Assessment/assessment22/styles.css new file mode 100644 index 0000000..a7b5f46 --- /dev/null +++ b/src/All Assessment/assessment22/styles.css @@ -0,0 +1,12 @@ +.progress-bar { + animation: progress 6s linear forwards; + } + + @keyframes progress { + from { + width: 100%; + } + to { + width: 0%; + } + } \ No newline at end of file diff --git a/src/App.jsx b/src/App.jsx index 91b0038..25c9b42 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -36,6 +36,7 @@ import FollowingCurser from "./All Assessment/assessment19/FollowingCurser"; import Debouncing from "./All Assessment/assessment19/Debouncing"; import Toster from "./All Assessment/assessment21/Toster"; import MyToaster from "./All Assessment/assessment21/MyToaster"; +import Todo from "./All Assessment/assessment22/Todo"; ReactGA.initialize("G-R3DJ0V5QK6"); @@ -107,6 +108,7 @@ const App = () => { } /> } /> } /> + } /> } diff --git a/src/Utils.js b/src/Utils.js index ac94505..24d0a3e 100644 --- a/src/Utils.js +++ b/src/Utils.js @@ -88,6 +88,10 @@ export const buttonDetails = [ { name: "MyToster", description: "Toster message trigger on event jo ki maine khud banaya hai" + }, + { + name: "Todo", + description: "Basic todo app using local storage" } ]; From 87e1be97af94df99c9dd1aa547eb945551eac51d Mon Sep 17 00:00:00 2001 From: sameerkali Date: Tue, 27 Aug 2024 23:38:04 +0530 Subject: [PATCH 14/30] basic todo is compleate without local storage --- src/All Assessment/assessment22/Todo.jsx | 73 ++++++++++++++++++++++-- 1 file changed, 68 insertions(+), 5 deletions(-) diff --git a/src/All Assessment/assessment22/Todo.jsx b/src/All Assessment/assessment22/Todo.jsx index db5d368..ae3c5f1 100644 --- a/src/All Assessment/assessment22/Todo.jsx +++ b/src/All Assessment/assessment22/Todo.jsx @@ -1,9 +1,72 @@ -import React from 'react' +import React, { useState } from "react"; const Todo = () => { + const [todos, setTodos] = useState([]); + const [todo, setTodo] = useState(""); + + const addTodo = () => { + if (todo.trim() !== "") { + let newTodo = { id: Date.now(), content: todo }; + setTodos((prev) => [...prev, newTodo]); + setTodo(""); + } + }; + + const removeTodo = (id) => { + setTodos(todos.filter((todo) => todo.id !== id)); + }; + + const updateTodo = (id, newText) => { + setTodos( + todos.map((todo) => + todo.id === id ? { ...todo, content: newText } : todo + ) + ); + }; + + const handleChange = (e) => { + setTodo(e.target.value); + }; + return ( -
Todo
- ) -} +
+

Todo Local Storage

+
+ + +
+
+ {todos.map((todo) => ( +
+

{todo.content}

+ + +
+ ))} +
+
+ ); +}; -export default Todo \ No newline at end of file +export default Todo; From ffe604567eb9eb6b4de3bacb7b244d67e6e847d7 Mon Sep 17 00:00:00 2001 From: sameerkali Date: Sun, 8 Sep 2024 22:31:02 +0530 Subject: [PATCH 15/30] basic todo is compleate without local --- src/All Assessment/assessment22/Todo.jsx | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/All Assessment/assessment22/Todo.jsx b/src/All Assessment/assessment22/Todo.jsx index ae3c5f1..88a6f34 100644 --- a/src/All Assessment/assessment22/Todo.jsx +++ b/src/All Assessment/assessment22/Todo.jsx @@ -3,29 +3,25 @@ import React, { useState } from "react"; const Todo = () => { const [todos, setTodos] = useState([]); const [todo, setTodo] = useState(""); + console.log(todo) const addTodo = () => { - if (todo.trim() !== "") { - let newTodo = { id: Date.now(), content: todo }; - setTodos((prev) => [...prev, newTodo]); - setTodo(""); + if(todo.trim() !== ""){ + let newTodo = {id: Date.now() , content: todo} + setTodos( prev => [...prev, newTodo ]) } }; const removeTodo = (id) => { - setTodos(todos.filter((todo) => todo.id !== id)); + setTodos(todos.filter(t => t.id !== id)) }; const updateTodo = (id, newText) => { - setTodos( - todos.map((todo) => - todo.id === id ? { ...todo, content: newText } : todo - ) - ); + setTodos(todos.map(t => ( t.id === id ? {...t, content: newText} : t))) }; const handleChange = (e) => { - setTodo(e.target.value); + setTodo(e.target.value) }; return ( From 695557ed3f9e47f51c288832ae567bdead37d90a Mon Sep 17 00:00:00 2001 From: sameerkali Date: Wed, 11 Sep 2024 21:51:38 +0530 Subject: [PATCH 16/30] fix: some things --- src/All Assessment/assessment01/StopWatch.jsx | 7 ++----- src/All Assessment/assessment21/MyToaster.jsx | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/All Assessment/assessment01/StopWatch.jsx b/src/All Assessment/assessment01/StopWatch.jsx index 21bdba9..45da1af 100644 --- a/src/All Assessment/assessment01/StopWatch.jsx +++ b/src/All Assessment/assessment01/StopWatch.jsx @@ -1,15 +1,12 @@ import React, { useEffect, useState } from "react"; import '../../index.css' import GoToHome from "../../Components/GoToHome"; -// import GoToHome from "../../Components/GoToHome"; const StopWatch = () => { const [clicked, setClicked] = useState(false); const [time, setTime] = useState(0); - const handleclick = () => { - setClicked(!clicked); - }; + useEffect(() => { let interval; @@ -29,7 +26,7 @@ const StopWatch = () => {
{time}
diff --git a/src/All Assessment/assessment21/MyToaster.jsx b/src/All Assessment/assessment21/MyToaster.jsx index b92852b..fc41723 100644 --- a/src/All Assessment/assessment21/MyToaster.jsx +++ b/src/All Assessment/assessment21/MyToaster.jsx @@ -61,7 +61,6 @@ const Toast = ({ close, time = 6 }) => { justifyContent: "center", alignItems: "center", gap: "20px", - backgroundColor: "white", padding: "10px", backgroundColor: "red", }} From 0d3344e096646407d7f9c73abc242e36b646ba05 Mon Sep 17 00:00:00 2001 From: sameerkali Date: Mon, 23 Dec 2024 23:16:59 +0530 Subject: [PATCH 17/30] practice again for job --- src/All Assessment/assessment22/Todo.jsx | 141 +++++++++++++++-------- 1 file changed, 93 insertions(+), 48 deletions(-) diff --git a/src/All Assessment/assessment22/Todo.jsx b/src/All Assessment/assessment22/Todo.jsx index 88a6f34..6671a6c 100644 --- a/src/All Assessment/assessment22/Todo.jsx +++ b/src/All Assessment/assessment22/Todo.jsx @@ -1,66 +1,111 @@ +// import React, { useState } from "react"; + +// const Todo = () => { +// const [todos, setTodos] = useState([]); +// const [todo, setTodo] = useState(""); +// console.log(todo) + +// const addTodo = () => { +// if(todo.trim() !== ""){ +// let newTodo = {id: Date.now() , content: todo} +// setTodos( prev => [...prev, newTodo ]) +// } +// }; + +// const removeTodo = (id) => { +// setTodos(todos.filter(t => t.id !== id)) +// }; + +// const updateTodo = (id, newText) => { +// setTodos(todos.map(t => ( t.id === id ? {...t, content: newText} : t))) +// }; + +// const handleChange = (e) => { +// setTodo(e.target.value) +// }; + +// return ( +//
+//

Todo Local Storage

+//
+// +// +//
+//
+// {todos.map((todo) => ( +//
+//

{todo.content}

+// +// +//
+// ))} +//
+//
+// ); +// }; + +// export default Todo; + import React, { useState } from "react"; const Todo = () => { - const [todos, setTodos] = useState([]); const [todo, setTodo] = useState(""); - console.log(todo) + const [todos, setTodos] = useState([]); + const [clicked, setClicked] = useState(false); + console.log(todos); + const handleChange = (e) => { + setTodo(e.target.value); + }; const addTodo = () => { - if(todo.trim() !== ""){ - let newTodo = {id: Date.now() , content: todo} - setTodos( prev => [...prev, newTodo ]) + if (todo !== "") { + let newTodo = { id: Date.now(), content: todo }; + setTodos((prev) => [...prev, newTodo]); + setTodo(""); } }; - const removeTodo = (id) => { setTodos(todos.filter(t => t.id !== id)) }; - const updateTodo = (id, newText) => { - setTodos(todos.map(t => ( t.id === id ? {...t, content: newText} : t))) + setTodos(todos.filter(t => t.id === id ? {...t, content: newText}: t)) }; - - const handleChange = (e) => { - setTodo(e.target.value) - }; - return ( -
-

Todo Local Storage

-
- - -
-
- {todos.map((todo) => ( -
-

{todo.content}

- - -
+
+ + + + +
    + {todos.map((t) => ( +
    + +
  • {t.content}
  • + {clicked && } +
    ))} -
+
); }; From 129d3342549432c615a9e9be269ab1d861aa8297 Mon Sep 17 00:00:00 2001 From: sameerkali Date: Fri, 27 Dec 2024 11:56:21 +0530 Subject: [PATCH 18/30] practice --- src/All Assessment/assessment22/Todo.jsx | 188 ++++++++++++----------- 1 file changed, 95 insertions(+), 93 deletions(-) diff --git a/src/All Assessment/assessment22/Todo.jsx b/src/All Assessment/assessment22/Todo.jsx index 6671a6c..c7e967a 100644 --- a/src/All Assessment/assessment22/Todo.jsx +++ b/src/All Assessment/assessment22/Todo.jsx @@ -1,113 +1,115 @@ -// import React, { useState } from "react"; - -// const Todo = () => { -// const [todos, setTodos] = useState([]); -// const [todo, setTodo] = useState(""); -// console.log(todo) - -// const addTodo = () => { -// if(todo.trim() !== ""){ -// let newTodo = {id: Date.now() , content: todo} -// setTodos( prev => [...prev, newTodo ]) -// } -// }; - -// const removeTodo = (id) => { -// setTodos(todos.filter(t => t.id !== id)) -// }; - -// const updateTodo = (id, newText) => { -// setTodos(todos.map(t => ( t.id === id ? {...t, content: newText} : t))) -// }; - -// const handleChange = (e) => { -// setTodo(e.target.value) -// }; - -// return ( -//
-//

Todo Local Storage

-//
-// -// -//
-//
-// {todos.map((todo) => ( -//
-//

{todo.content}

-// -// -//
-// ))} -//
-//
-// ); -// }; - -// export default Todo; - import React, { useState } from "react"; const Todo = () => { - const [todo, setTodo] = useState(""); const [todos, setTodos] = useState([]); - const [clicked, setClicked] = useState(false); - console.log(todos); + const [todo, setTodo] = useState(""); + console.log(todo) - const handleChange = (e) => { - setTodo(e.target.value); - }; const addTodo = () => { - if (todo !== "") { - let newTodo = { id: Date.now(), content: todo }; - setTodos((prev) => [...prev, newTodo]); - setTodo(""); + if(todo.trim() !== ""){ + let newTodo = {id: Date.now() , content: todo} + setTodos( prev => [...prev, newTodo ]) } }; + const removeTodo = (id) => { setTodos(todos.filter(t => t.id !== id)) }; + const updateTodo = (id, newText) => { - setTodos(todos.filter(t => t.id === id ? {...t, content: newText}: t)) + setTodos(todos.map(t => ( t.id === id ? {...t, content: newText} : t))) }; - return ( -
- - - -
    - {todos.map((t) => ( -
    - -
  • {t.content}
  • - {clicked && } -
    + const handleChange = (e) => { + setTodo(e.target.value) + }; + + return ( +
    +

    Todo Local Storage

    +
    + + +
    +
    + {todos.map((todo) => ( +
    +

    {todo.content}

    + + +
    ))} -
+
); }; export default Todo; + + + +// import React, { useState } from "react"; + +// const Todo = () => { +// const [todo, setTodo] = useState(""); +// const [todos, setTodos] = useState([]); +// const [clicked, setClicked] = useState(false); +// console.log(todos); + +// const handleChange = (e) => { +// setTodo(e.target.value); +// }; +// const addTodo = () => { +// if (todo !== "") { +// let newTodo = { id: Date.now(), content: todo }; +// setTodos((prev) => [...prev, newTodo]); +// setTodo(""); +// } +// }; +// const removeTodo = (id) => { +// setTodos(todos.filter(t => t.id !== id)) +// }; +// const updateTodo = (id, newText) => { +// setTodos(todos.filter(t => t.id === id ? {...t, content: newText}: t)) +// }; +// return ( +//
+ +// +// + +//
    +// {todos.map((t) => ( +//
    + +//
  • {t.content}
  • +// {clicked && } +//
    +// ))} +//
+//
+// ); +// }; + +// export default Todo; From af5fce644308751ea311c3ba1718e129adca40bf Mon Sep 17 00:00:00 2001 From: sameerkali Date: Mon, 30 Dec 2024 19:30:56 +0530 Subject: [PATCH 19/30] asd --- Frontend Interview Preparation.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Frontend Interview Preparation.txt b/Frontend Interview Preparation.txt index 0926557..284c337 100644 --- a/Frontend Interview Preparation.txt +++ b/Frontend Interview Preparation.txt @@ -121,7 +121,9 @@ I'd be happy to provide detailed answers on these HTML and web development topic Semantic HTML5 Elements -Semantic HTML5 elements are tags that convey meaning about the structure and content of a web page to both browsers and developers. They improve accessibility, SEO, and code readability. Key semantic elements include: +Semantic HTML5 elements are tags that convey meaning about the structure and content of a web page to + both browsers and developers. They improve accessibility, SEO, and code readability. Key semantic + elements include:
: Introductory content or navigational links