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
"use client"; | |
import { | |
Dialog, | |
DialogContent, | |
DialogTitle, | |
DialogTrigger | |
} from "@/components/ui/dialog"; | |
import useDragDrop from "@/hooks/useDragDrop"; | |
import { cn, formatBytes } from "@/lib/utils"; |
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 React, { FC, useState } from 'react' | |
import { PageContainer } from '@keystone-6/core/admin-ui/components' | |
import Script from 'next/script' | |
import tailwindConfig from '../tailwind.config.js' | |
import Head from 'next/head' | |
import { ApolloProvider } from '@apollo/client' | |
import client from '../utils/graphql/apollo-client' | |
const styles = ` | |
@tailwind base; |
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 useQueryString from './useQueryString' | |
export const Component = () => { | |
const [cat, setCat] = useQueryString<string>({ | |
key: 'cat', | |
defaultValue: 'Robert Paulson', | |
}); | |
return <h1>His name is <strong>{cat}</strong></h1> |
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
// https://github.com/sidorares/node-mysql2/issues/677 | |
const mysql = require("mysql2/promise"); | |
const stream = require("stream"); | |
const dbconn = mysql.createPool({ | |
connectionLimit: 10, | |
host: "127.0.0.1", | |
user: "user", | |
password: "password", | |
database: "database", |
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
/* | |
Do not modify this version of the file. It will be copied over when any of the project's targets are built. | |
If you wish to modify mraid.js, modify the version located at mopub-sdk-common/mraid/mraid.js. | |
*/ | |
(function() { | |
var isIOS = (/iphone|ipad|ipod/i).test(window.navigator.userAgent.toLowerCase()); | |
if (isIOS) { | |
console = {}; | |
console.log = function(log) { | |
var iframe = document.createElement('iframe'); |
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
/* global Buffer, console */ | |
/** | |
* Strip inline <script> elements and push each | |
* <script> tag's contents to `file.scripts` | |
* (Array; each element is the contents of a script element) | |
*/ | |
'use strict'; | |
var through = require('through2'); | |
var gutil = require('gulp-util'); | |
var cheerio = require('cheerio'); |