This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
function extractProductData() { | |
const products = []; | |
const productItems = document.querySelectorAll('.form-product-item'); | |
productItems.forEach(item => { | |
const productId = item.getAttribute('pid'); | |
const name = item.querySelector('.form-product-name')?.textContent?.trim() || ''; // Adjust selector. Use ? to avoid errors if element is missing. | |
const description = item.querySelector('.form-product-description')?.textContent?.trim() || ''; // Adjust selector. | |
const price = item.querySelector('.form-product-detail span span')?.textContent?.trim() || ''; // Adjust selector. | |
const image = item.querySelector('.image_area img')?.src || ''; // Adjust selector. Assumes image is in an <img> tag. |
OlderNewer