- Как возникают дубли и почему необходима дедупликация: https://www.npmjs.com/package/yarn-deduplicate#why-is-this-necessary
- NPM
npm dedupe: https://docs.npmjs.com/cli/v11/commands/npm-dedupe - Yarn 1
yarn-deduplicate: https://www.npmjs.com/package/yarn-deduplicate - Yarn 4
yarn dedupe: https://yarnpkg.com/cli/dedupe - Yarn dedupes inconsistently: yarnpkg/yarn#6070
- Bun overrides and resolutions: https://bun.sh/docs/install/overrides
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { renderHook } from '@testing-library/react-hooks'; | |
| import stateFactory from 'jest/stateFactory'; | |
| import configureMockStore from 'redux-mock-store'; | |
| import { Provider } from 'react-redux'; | |
| import { Store, AnyAction } from 'redux'; | |
| import { initialState as initialPaginationState } from '../../store/pagination/reducer'; | |
| import { useMyAwesomeHook } from '../useMyAwesomeHook'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :root { | |
| --violation-color: red; /* used for clear issues */ | |
| --warning-color: orange; /* used for potential issues we should look into */ | |
| } | |
| /* IMAGES */ | |
| /* | |
| * Lazy-Loaded Images Check | |
| * ==== |
useResize custom hook.
Custom hook as per Sophie Alpert on StackOverflow function that returns the height and width on each update of the window
In addition to the Storybook for React setup, you'll also need to install these packages:
npm i -D @babel/core babel-loader css-loader style-loader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| export const Recipeitem = (props) => { | |
| return (<div> | |
| {props.title} | |
| </div>) | |
| } |
Live Table: https://diafygi.github.io/webcrypto-examples/
I couldn't find anywhere that had clear examples of WebCryptoAPI, so I wrote examples and made a live table with them. Pull requests welcome!
- generateKey | importKey |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| // Load plugins | |
| const autoprefixer = require("autoprefixer"); | |
| const browsersync = require("browser-sync").create(); | |
| const cp = require("child_process"); | |
| const cssnano = require("cssnano"); | |
| const del = require("del"); | |
| const eslint = require("gulp-eslint"); | |
| const gulp = require("gulp"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // POLYFILLS | |
| // Event.composedPath | |
| // Possibly normalize to add window to Safari's chain, as it does not? | |
| (function(E, d, w) { | |
| if(!E.composedPath) { | |
| E.composedPath = function() { | |
| if (this.path) { | |
| return this.path; | |
| } | |
| var target = this.target; |
NewerOlder