-
Install
npm i -D @mocks-server/main
-
Add script
"scripts": {
"mocks": "mocks-server",
},
import { defineConfig, loadEnv } from '@rsbuild/core'; | |
// import { pluginEslint } from '@rsbuild/plugin-eslint'; | |
import { pluginReact } from '@rsbuild/plugin-react'; | |
import { pluginSass } from '@rsbuild/plugin-sass'; | |
import { pluginSvgr } from '@rsbuild/plugin-svgr'; | |
import { pluginTypeCheck } from '@rsbuild/plugin-type-check'; | |
const { publicVars, rawPublicVars } = loadEnv({ prefixes: ['REACT_APP_'] }); | |
export default defineConfig({ |
Install
npm i -D @mocks-server/main
Add script
"scripts": {
"mocks": "mocks-server",
},
// https://jsfiddle.net/tzi/qtqnqomL/ | |
function isEllipsisActive(element) { | |
return element.offsetWidth < element.scrollWidth; | |
} | |
Array.from(document.querySelectorAll('.ellipsis')) | |
.forEach(element => { | |
if (isEllipsisActive(element)) { | |
element.title = element.innerText; |
// Import the variables file to access the breakpoints and other variables | |
@import './variables'; | |
/* Base container styles */ | |
.root { | |
width: 100%; | |
margin-left: auto; | |
margin-right: auto; | |
padding-left: $container-padding-x; | |
padding-right: $container-padding-x; |
import matplotlib.pyplot as plt | |
lai_suat_theo_ky_han = [ | |
{ | |
"ky_han": 1, | |
"lai_suat": 0.037 | |
}, | |
{ | |
"ky_han": 2, | |
"lai_suat": 0.038 |
// ==UserScript== | |
// @name remove Hola VPN overlay | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-06-05 | |
// @description try to take over the world! | |
// @author You | |
// @match https://*.medium.com/* | |
// @match *://*/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=medium.com | |
// @grant none |
:root { | |
--text-gradient-stop-1: #4285f4; | |
--text-gradient-stop-2: #9b72cb; | |
--text-gradient-stop-3: #d96570; | |
--color-surface: #fff; | |
} | |
div { | |
background: linear-gradient( | |
74deg, | |
/* end here (2) */ var(--text-gradient-stop-1) 0, |
@echo off | |
set /p branch=Branch (master): | |
set /p git_command=Git command (fetch): | |
if "%branch%"=="" set branch=master | |
if "%git_command%"=="" set git_command=fetch | |
for /d %%i in (%cd%\*) do ( | |
echo ************************************************************************* |
const getState = () => { | |
if (document.visibilityState === 'hidden') { | |
return 'hidden'; | |
} | |
if (document.hasFocus()) { | |
return 'active'; | |
} | |
return 'passive'; | |
}; |