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
find . -name "node_modules" -type d -prune -exec rm -rf '{}' + -exec sh -c 'echo "Deleted: $1"' _ {} \; |
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
test('should be able to create, send and sign a document', async ({ page }) => { | |
await page.goto('/signin'); | |
const documentTitle = `example-${Date.now()}.pdf`; | |
// Sign in | |
await page.getByLabel('Email').fill(TEST_USER.email); | |
await page.getByLabel('Password', { exact: true }).fill(TEST_USER.password); | |
await page.getByRole('button', { name: 'Sign In' }).click(); |
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
services: | |
- type: web | |
name: documenso-app | |
env: node | |
plan: free | |
buildCommand: npm i turbo && npm install --package-lock-only && npm ci && npm run build | |
startCommand: npx prisma migrate deploy; npm run start | |
healthCheckPath: /api/health | |
envVars: |
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 { Image, ScrollView, Text, TouchableOpacity } from "react-native"; | |
import { View } from "react-native"; | |
import Container from "../components/Container"; | |
import { SafeAreaView } from "react-native-safe-area-context"; | |
import CategoryRow from "../components/CategoryRow"; | |
import CollectionCard from "../components/CollectionCard"; | |
import FeatureProducts from "../components/FeatureProducts"; | |
import HangoutPartyCollection from "../components/HangoutPartyCollection"; | |
import FontsProvider from "../components/FontsProvider"; | |
import Recommended from "../components/Recommended"; |
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, { useState } from "react"; | |
import { | |
Alert, | |
Modal, | |
Text, | |
Pressable, | |
View, | |
SafeAreaView, | |
} from "react-native"; |
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
docker run --name postgres-db -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres |
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
psql postgres | |
CREATE DATABASE databasename; |
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 { useSession } from "next-auth/react"; | |
import { useRouter } from "next/router"; | |
export default function WithAuth({ children }: { children: React.ReactNode }): JSX.Element { | |
const router = useRouter(); | |
const { data, status } = useSession({ | |
required: true, | |
onUnauthenticated() { | |
router.push("/api/auth/signin"); |
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 { SubmitHandler, useForm } from "react-hook-form"; | |
import { zodResolver } from "@hookform/resolvers/zod"; | |
import { z } from "zod"; | |
const validationSchema = z | |
.object({ | |
firstName: z.string().min(1, { message: "Firstname is required" }), | |
lastName: z.string().min(1, { message: "Lastname is required" }), | |
email: z.string().min(1, { message: "Email is required" }).email({ | |
message: "Must be a valid email", |
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
defaults write com.apple.desktopservices DSDontWriteNetworkStores true |
NewerOlder