Skip to content

Instantly share code, notes, and snippets.

View hanford's full-sized avatar
🌝

Jack Hanford hanford

🌝
View GitHub Profile
@hanford
hanford / ClientComponent.tsx
Created March 23, 2023 21:04 — forked from litewarp/ClientComponent.tsx
Relay Nextjs13
'use client'
import {graphql} from 'react-relay'
import graphqlQuery, {
AllSecuritiesPageQuery
} from '~/__generated__/AllSecuritiesPageQuery.graphql'
import {createRelayHydrator} from '~/lib/relay/create-relay-hydrator'
export const {useHydratedPreloadedQuery, Hydrator} =
createRelayHydrator<AllSecuritiesPageQuery>(graphqlQuery)
diff --git a/node_modules/next/dist/esm/server/base-server.js b/node_modules/next/dist/esm/server/base-server.js
index db135c3..7f1af5c 100644
--- a/node_modules/next/dist/esm/server/base-server.js
+++ b/node_modules/next/dist/esm/server/base-server.js
@@ -296,6 +296,12 @@ export default class Server {
}
addRequestMeta(req, "__nextHadTrailingSlash", pathnameInfo.trailingSlash);
addRequestMeta(req, "__nextIsLocaleDomain", Boolean(domainLocale));
+ let q = {}
+this.dynamicRoutes.forEach(r => {
diff --git a/node_modules/@cloudflare/next-on-pages/templates/_worker.js/index.ts b/node_modules/@cloudflare/next-on-pages/templates/_worker.js/index.ts
index 42bf66a..9ee30f2 100644
--- a/node_modules/@cloudflare/next-on-pages/templates/_worker.js/index.ts
+++ b/node_modules/@cloudflare/next-on-pages/templates/_worker.js/index.ts
@@ -140,7 +140,8 @@ export default {
}
}
- for (const { matchers, entrypoint } of Object.values(__FUNCTIONS__)) {
+ for (const [key, value] of Object.entries(__FUNCTIONS__)) {
diff --git a/node_modules/@cloudflare/next-on-pages/.DS_Store b/node_modules/@cloudflare/next-on-pages/.DS_Store
new file mode 100644
index 0000000..73fd07e
Binary files /dev/null and b/node_modules/@cloudflare/next-on-pages/.DS_Store differ
diff --git a/node_modules/@cloudflare/next-on-pages/dist/index.js b/node_modules/@cloudflare/next-on-pages/dist/index.js
index 7592663..5c439ce 100644
--- a/node_modules/@cloudflare/next-on-pages/dist/index.js
+++ b/node_modules/@cloudflare/next-on-pages/dist/index.js
@@ -4837,7 +4837,7 @@ pp.readWord = function() {
}
// Append "'client';" to beginnging of all Pages
export const parser = "tsx";
export default function transformer(file, api) {
const j = api.jscodeshift;
const root = j(file.source);
const clientCommentBlock = j.expressionStatement(j.stringLiteral("client"));
import { useEffect } from 'react';
import { BLUR_COMMAND, COMMAND_PRIORITY_NORMAL } from 'lexical';
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
export default function OnBlurPlugin({ command }: { command: () => void }) {
const [editor] = useLexicalComposerContext();
useEffect(() => {
return editor.registerCommand(
BLUR_COMMAND,
[
"/admin/settings/integrations/salesforce/create",
"/admin/compensation/settings/assignments",
"/admin/settings/integrations/jira/create",
"/admin/settings/integrations/salesforce",
"/reporting/grow/reporting/participation",
"/admin/people/import-log/event-details",
"/goals/reporting/participation/company",
"/admin/onboarding/setup/participants",
"/admin/grow/reporting/participation",
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPeriodRange =
exports.getFullWeekDates =
exports.fromWeekId =
exports.weekNumber =
void 0;
function weekNumber(date = new Date()) {
const d = new Date(date);
d.setHours(0, 0, 0, 0);
diff --git a/node_modules/@lexical/list/LexicalList.dev.js b/node_modules/@lexical/list/LexicalList.dev.js
index 015adef..a8ce544 100644
--- a/node_modules/@lexical/list/LexicalList.dev.js
+++ b/node_modules/@lexical/list/LexicalList.dev.js
@@ -10,12 +10,12 @@ var lexical = require('lexical');
var utils = require('@lexical/utils');
/**
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
import type { ListNode, ListType } from '@lexical/list';
import type { ElementNode } from 'lexical';
import type { ElementTransformer } from '@lexical/markdown';
import {
BOLD_ITALIC_STAR,
BOLD_ITALIC_UNDERSCORE,
BOLD_STAR,
BOLD_UNDERSCORE,
CHECK_LIST,
CODE,