This file contains 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
const fs = require('fs'); | |
const path = require('path'); | |
const directories = [ | |
'src/lib/components', | |
'src/lib/stores', | |
'src/lib/utils', | |
'src/routes/history', | |
'src/routes/reports', | |
'static' |
This file contains 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 { NextRequest, NextResponse } from 'next/server'; | |
export function middleware(request: NextRequest) { | |
const nonce = Buffer.from(crypto.randomUUID()).toString('base64'); | |
const cspHeader = ` | |
default-src 'self'; | |
script-src 'self' 'nonce-${nonce}' 'strict-dynamic'; | |
style-src 'self' 'nonce-${nonce}'; | |
img-src 'self' blob: data:; | |
font-src 'self'; |
This file contains 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
// Taleo brandfile external JS | |
class Injector { | |
site_url; | |
style_paths; | |
script_paths; | |
script_paths_loaded; | |
scripts_inited; |
This file contains 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
// Example Class | |
class Example { | |
// properties | |
// methods | |
constructor() { |
This file contains 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
// remove terrible experimental layout support | |
remove_filter( 'render_block', 'wp_render_layout_support_flag', 10, 2 ); | |
function understrap_experimental_layout( $metadata ) { | |
if ( !empty($metadata['supports']['__experimentalLayout'])) { | |
$metadata['supports']['__experimentalLayout'] = false; | |
} | |
return $metadata; | |
} | |
add_filter( 'block_type_metadata', 'understrap_experimental_layout', 10, 1 ); |
This file contains 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
// marketo form overrides | |
// from https://jennamolby.com/how-to-create-responsive-marketo-forms/ | |
.mktoForm { | |
&, | |
.mktoLabel , | |
.mktoHtmlText , | |
.mktoFormRow, |
This file contains 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
sudo chown -vR webuser /not/webuser/ |
This file contains 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
/** | |
* | |
* @file | |
* carousel.js - responsive carousel | |
* @author | |
* Andrew Magill <amagill@greaterthanone.com> | |
* | |
*/ | |
(function($) { |
This file contains 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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
# don't rewrite anything in docs folder to wordpress | |
RewriteCond %{REQUEST_URI} !^/(docs/*) [NC] |
NewerOlder