Moved to wakujs/waku#943
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 { randomBytes } from "node:crypto"; | |
import { | |
copyFileSync, | |
existsSync, | |
mkdirSync, | |
readdirSync, | |
renameSync, | |
rmSync, | |
writeFileSync, | |
} from "node:fs"; |
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 { useEffect, useRef } from "react"; | |
import { useRouter_UNSTABLE as useRouter } from "waku/router/client"; | |
function scrollIntoView(hash: string) { | |
const elementId = hash.slice(1); | |
const element = document.getElementById(elementId); | |
if (!element) { | |
return false; | |
} | |
element.scrollIntoView({ behavior: "auto", block: "start" }); |
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 { type Getter, atom, useAtom } from "jotai"; | |
import { useCallback } from "react"; | |
import { useSyncExternalStoreWithSelector } from "use-sync-external-store/shim/with-selector"; | |
import type { | |
Actor, | |
ActorOptions, | |
ActorRefFromLogic, | |
AnyActorLogic, | |
AnyActorRef, | |
} from "xstate"; |
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 { isDevelopment } from "#is-development"; | |
import type { | |
ComponentType, | |
ErrorInfo, | |
PropsWithChildren, | |
ReactNode, | |
} from "react"; | |
import { Component, createContext, createElement } from "react"; |
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 { | |
type ComponentResourceOptions, | |
type Output, | |
Unwrap, | |
all, | |
output, | |
} from "@pulumi/pulumi"; | |
import * as fs from "node:fs"; | |
import * as path from "node:path"; | |
import type { Bucket } from "../../.sst/platform/src/components/aws/bucket.js"; |
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/packages/waku/src/lib/plugins/vite-plugin-deploy-aws-lambda.ts b/packages/waku/src/lib/plugins/vite-plugin-deploy-aws-lambda.ts | |
index 09a09d2..452efc7 100644 | |
--- a/packages/waku/src/lib/plugins/vite-plugin-deploy-aws-lambda.ts | |
+++ b/packages/waku/src/lib/plugins/vite-plugin-deploy-aws-lambda.ts | |
@@ -1,10 +1,22 @@ | |
import path from 'node:path'; | |
-import { writeFileSync } from 'node:fs'; | |
+import { | |
+ appendFileSync, | |
+ cpSync, |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<style> | |
html, | |
body { | |
margin: 0; | |
padding: 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
// A script that can pull down the result of the introspection query | |
// from a running graphql server. | |
// Dependencies: | |
// npm i -S isomorphic-fetch graphql-tag graphql apollo-client | |
// Usage: | |
// node fetch-graphql-schema [graphql url] | |
// Example: |
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
class Openbr < Formula | |
# This should just temporarily override the official homebrew formula | |
# until the next release. And it is pointing to a commit on the | |
# master git branch, so use at your own risk. It does seem | |
# to get things working with the latest Qt version on homebrew. | |
# See https://github.com/biometrics/openbr/pull/486 | |
# Copy the contents of this file to | |
# /usr/local/Library/Taps/homebrew/homebrew-science/openbr.rb | |
desc "Open Source Biometric Recognition" |
NewerOlder