Optional - Set format on save and any global prettier options
npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
/* These rules are ignored when ui-monospace is supported. */ | |
@font-face { font-family: ui-monospace; src: | |
/* MacOS (El Capitan +) */ | |
local(Menlo-Regular), | |
/* Windows (11 +) */ | |
local(CascadiaCode-Regular), | |
/* Windows (Vista +) */ | |
local(Consolas), | |
/* Android */ | |
local(RobotoMono-Regular), |
// Core assets | |
let coreAssets = []; | |
// On install, cache core assets | |
self.addEventListener('install', function (event) { | |
// Cache core assets | |
event.waitUntil(caches.open('app').then(function (cache) { | |
for (let asset of coreAssets) { | |
cache.add(new Request(asset)); |
/* Hide menu items */ | |
[aria-label^="Home"][role="link"], | |
[aria-label^="Search"], | |
[aria-label^="Bookmarks"], | |
[aria-label^="Grok"], | |
[aria-label^="Lists"], | |
[aria-label^="Communities"], | |
[aria-label^="Twitter Blue"], | |
[aria-label^="Premium"], | |
[aria-label^="Verified"], |
set -x | |
set -e | |
# e.g. folder to process e.g. "frontend/" | |
migration_folder=$1 | |
find_regex=".*/*.tsx?" # mach all .ts and .tsx files | |
# include trailing path "/" in folder parameter: e.g "frontend/" instead of just "frontend" | |
ignore_path="*/$1node_modules/*" | |
# Back up your files or change sed argument -i to -i.bak to generate backup files | |
find $migration_folder -regextype posix-egrep -regex $find_regex -type f -not -path $ignore_path | xargs sed -i -E '/[(class)(")]/{ | |
s/([mp])l(-[0-5])/\1s\2/g |
{ | |
//----Demos---- | |
"update.mode": "none", | |
"extensions.autoCheckUpdates": false, | |
"screencastMode.onlyKeyboardShortcuts": true, | |
//----Settings---- | |
"workbench.settings.editor": "json", | |
//----Editing---- |
(function (context, trackingId, options) { | |
const history = context.history; | |
const doc = document; | |
const nav = navigator || {}; | |
const storage = localStorage; | |
const encode = encodeURIComponent; | |
const pushState = history.pushState; | |
const typeException = 'exception'; | |
const generateId = () => Math.random().toString(36); | |
const getId = () => { |
[Settings] | |
ID = "Your_Site_ID" | |
# Settings in the [build] context are global and are applied to all contexts unless otherwise overridden by more specific contexts. | |
[build] | |
# This is the directory to change to before starting a build. | |
base = "project/" | |
# NOTE: This is where we will look for package.json/.nvmrc/etc, not root. | |
# This is the directory that you are publishing from (relative to root of your repo) |
// These are the Bootstrap 4 Breakpoints per the Docs | |
// Google Fonts pre-load | |
// Extra small devices (portrait phones, less than 576px) | |
// No media query since this is the default in Bootstrap | |
// Small devices (landscape phones, 576px and up) | |
@media (min-width: 576px) { |