nvm use # Switch node version to supported version *
yarn # Install dependencies
* install nvm autoload Read more
export const getThumbnail = (id, size = 300) => | |
`https://drive.google.com/thumbnail?id=${id}&sz=${size}`; | |
export const getIcon = (mimeType) => | |
`https://drive-thirdparty.googleusercontent.com/256/type/${mimeType}`; | |
export const getFile = (id) => `https://drive.google.com/uc?id=${id}`; | |
const downloadFile = (id) => |
#!/bin/sh | |
git filter-branch --env-filter ' | |
OLD_EMAIL="your-old-email@example.com" | |
CORRECT_NAME="Your Correct Name" | |
CORRECT_EMAIL="your-correct-email@example.com" | |
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] | |
then |
.input-checkbox { | |
border : 1px solid map-get($colors, 'ocean'); | |
position : relative; | |
transition-duration : 200ms; | |
-webkit-appearance : none; | |
appearance : none; | |
width : 24px; | |
height : 24px; | |
&::after { | |
transition-duration : 100ms; |
nvm use # Switch node version to supported version *
yarn # Install dependencies
* install nvm autoload Read more
import { SitemapStream } from "sitemap"; | |
import { createWriteStream } from "node:fs"; | |
import { resolve } from "node:path"; | |
export function ssrSitemap(opts) { | |
const pages = new Set(); | |
let config; | |
let hasVitePlusinSSR = false; | |
const defaultOtps = { |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
</IfModule> |
# place this after nvm initialization! | |
autoload -U add-zsh-hook | |
load-nvmrc() { | |
local node_version="$(nvm version)" | |
local nvmrc_path="$(nvm_find_nvmrc)" | |
if [ -n "$nvmrc_path" ]; then | |
local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") | |
if [ "$nvmrc_node_version" = "N/A" ]; then |
.element { | |
backdrop-filter: saturate(50%) blur(8px); | |
-webkit-backdrop-filter: saturate(50%) blur(8px); | |
} |
<?php | |
//place code in the end of functions.php in theme | |
add_action('template_redirect', 'wc_sku_redirect'); | |
function wc_sku_redirect() { | |
$parseUrl = explode('/', $wp->request); | |
if(isset($parseUrl[0]) && $parseUrl[0] === 'product') { | |
$pid = wc_get_product_id_by_sku($parseUrl[1]); | |
if($pid) { | |
wp_safe_redirect(get_permalink($pid)); | |
exit; |
[ | |
{ | |
"id": "new24", | |
"category_id": "new-category", | |
"category_name": "Моя нова категорія", | |
"category_published": true, | |
"name": "Новий товар lab24", | |
"private": false, | |
"price": 199, | |
"pricelist": [ |