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
""" /requirements.txt | |
beautifulsoup4==4.9.3 | |
lxml==4.6.2 | |
soupsieve==2.1 | |
""" | |
from bs4 import BeautifulSoup | |
from urllib.request import Request, urlopen | |
import lxml | |
import re |
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, { Fragment } from 'react' | |
import { Text as SlateText } from 'slate' | |
import Link from 'next/link' | |
import { getSectionForCollection } from '@utilities/getSectionForCollection' | |
function Serialise({ content }: any) { | |
return ( | |
<> | |
{content?.map((node: any, i: number) => { | |
if (!node) { |
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 { NextResponse } from 'next/server' | |
import type { NextRequest } from 'next/server' | |
import { CheckUserDocument } from '@/graphql/generated/client' | |
import { CheckUserQuery } from '@/graphql/generated/client' | |
/* Redirect away from these routes if not authenticated */ | |
const protectedRoutes = ['/profile', '/search'] | |
/* Redirect away from these routes if authenticated */ | |
const publicRoutes = ['/login', '/register'] |
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 from 'react' | |
import { serializeLexical } from './serialize' | |
const RichText: React.FC<{ className?: string; content: any }> = ({ className, content }) => { | |
if (!content) { | |
return null | |
} | |
return ( |