- This repo holds the solution to the helvar frontend assignment
- React: SPA Library
- Chakra UI React: A UI component library
- Vitejs.dev: Tooling to help set up the react project
- Vitest.dev: For unit tests
- Cypress: For e2e tests
This is the solution to the helvar frontend developer assignment
Home Page: https://bolu-helvar-assignment-solution.vercel.app/
Helpful:
https://glebbahmutov.com/cypress-examples/recipes/check-console-logs.html
Test that changing the value of the Occupied slider updates the corresponding state (occupied) and displays the new value in the Label component.
Test that changing the value of the Power save slider updates the corresponding state (powerSave) and displays the new value in the Label component.
Test that changing the value of the Minimum slider updates the corresponding state (minimum) and displays the new value in the Label component.
Test that clicking the Cancel button resets the values of occupied, powerSave, and minimum back to their default values.
Test that clicking the Apply button triggers the onApply function and logs the current values of occupied, powerSave, and minimum to the console.
const getNearestStepValue = (value: number) => {
if (value <= 1) return value;
if (value === 2) return 1;
if (value >= 100) return 100;
const nearestStep = Math.round(value / 5) * 5;
return nearestStep;
};
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.