Apply a package script
export NEXT_PUBLIC_GQL_PATH=localhost:3006/gql; node package-name.cjsCreate a snapshot
cd packages/deeplinks && npm run snapshot:create && cd ../..;| { | |
| "layout": { | |
| "model": "pc105", | |
| "group": 0, | |
| "layout": "us,ru,us", | |
| "variant": "colemak,,", | |
| "options": "", | |
| "rules": "evdev" | |
| }, | |
| "rawMapping": { |
| function aclean(arr) { | |
| let map = new Map(); | |
| for (let word of arr) { | |
| // разбиваем слово на буквы, сортируем и объединяем снова в строку | |
| let sorted = word.toLowerCase().split("").sort().join(""); // (*) | |
| map.set(sorted, word); | |
| } | |
| return Array.from(map.values()); |
| function uniqueArray(arr) { | |
| return Array.from(new Set(arr)); | |
| } |
| function getSecondsToTomorrow() { | |
| let now = new Date(); | |
| let tomorrow = new Date(now.getFullYear(), now.getMonth(), now.getDate()+1); | |
| let diff = tomorrow - now; | |
| return Math.round(diff / 1000); | |
| } |
| function getSecondsToday() { | |
| let now = new Date(); | |
| let today = new Date(now.getFullYear(), now.getMonth(), now.getDate()); | |
| let diff = now - today; // разница в миллисекундах | |
| return Math.round(diff / 1000); // получаем секунды | |
| } | |
| alert( getSecondsToday() ); |
| function getLastDayOfMonth(year, month) { | |
| let date = new Date(year, month + 1, 0); | |
| return date.getDate(); | |
| } |
| <?php | |
| image = get_field(""); | |
| if (!empty(image)) : | |
| ?> | |
| <img src="<?php echo image["url"] ?>" alt="<?php echo image["alt"] ?>" class=""> | |
| <?php endif ?> |