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 z from 'zod' | |
/** | |
* If you do much runtime introspection on Zod schemas, | |
* you'll find yourself writing functions like this. | |
* | |
* Copy and adapt this to save time! | |
*/ | |
function zodIntrospect(schema: z.ZodTypeAny): any { | |
switch (schema._def.typeName) { |
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 query = gql` | |
query MetadataSidebarSection( | |
$organizationId: Int! | |
$first: Int | |
$after: String | |
$last: Int | |
$before: String | |
$search: String | |
$expandedCursors: [String!] | |
) { |
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
diff --git a/node_modules/nitropack/dist/shared/nitro.7a525996.mjs b/node_modules/nitropack/dist/shared/nitro.7a525996.mjs | |
index 90c7e4a..859bee1 100644 | |
--- a/node_modules/nitropack/dist/shared/nitro.7a525996.mjs | |
+++ b/node_modules/nitropack/dist/shared/nitro.7a525996.mjs | |
@@ -1768,6 +1768,7 @@ export const plugins = [ | |
conditions: [ | |
"default", | |
nitro.options.dev ? "development" : "production", | |
+ "workerd", | |
"module", |
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
/** | |
* @flow | |
* @prettier | |
*/ | |
import { ApolloServer } from 'apollo-server-express' | |
import { typeof Server as HttpServer } from 'http' | |
import WebSocket from 'ws' | |
import { SubscriptionServer } from 'subscriptions-transport-ws' | |
import { formatApolloErrors } from 'apollo-server-errors' |
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
/** | |
* @flow | |
* @prettier | |
*/ | |
import { type QueryRenderProps } from 'react-apollo' | |
import * as React from 'react' | |
import { | |
get, | |
takeRightWhile, |
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
/** | |
* @flow | |
* @prettier | |
*/ | |
import * as React from 'react' | |
import { Query } from 'react-apollo' | |
import gql from 'graphql-tag' | |
import type { QueryRenderProps } from 'react-apollo' | |
import livechatPromise from '../util/livechat' |
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 {createServer} = require('http') | |
const proxy = require('http-proxy').createProxyServer() | |
var server = createServer(function (req, res) { | |
if (process.env.TARGET) proxy.web(req, res, { target: process.env.TARGET }) | |
else res.end('OK\n') | |
}) | |
server.on('connection', socket => socket.pipe(process.stdout)) | |
const host = process.env.HOST || '0.0.0.0' |
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 {expect} from 'chai' | |
import * as webdriverio from 'webdriverio' | |
import {run as runPhantomjs} from 'phantomjs-prebuilt' | |
describe('executeAsync', function () { | |
this.timeout(10000) | |
let phantomjs | |
let browser |
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, { PropTypes } from 'react' | |
import MatchProvider from 'react-router/MatchProvider' | |
import matchPattern from 'react-router/matchPattern' | |
import { LocationSubscriber } from 'react-router/Broadcasts' | |
class RegisterMatch extends React.Component<void, RegisterMatchProps, void> { | |
static contextTypes = { | |
match: PropTypes.object, | |
serverRouter: PropTypes.object | |
} |
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
#!/bin/bash | |
# Script to convert PDF file to PNG images | |
# | |
# Dependencies: | |
# * ghostscript | |
for PDF in "$@" | |
do | |
echo "Processing $PDF..." |