This file contains hidden or 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 { Database, DatabaseConfiguration } from '@hocuspocus/extension-database' | |
| import { Binary, Db, MongoClient } from 'mongodb'; | |
| const url = 'mongodb://localhost:27017'; | |
| const database = 'hocuspocus'; | |
| export interface MongoConfiguration extends DatabaseConfiguration { | |
| database: string, | |
| url: string, | |
| } |
This file contains hidden or 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
| function downloadFile(filename, data) { | |
| let element = document.createElement("a"); | |
| element.setAttribute("download", filename); | |
| element.setAttribute("href", data); | |
| document.body.appendChild(element); | |
| element.click(); | |
| } | |
| downloadFile( | |
| `file_name`, |
This file contains hidden or 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 Head from "next/head"; | |
| import { HiClock } from "react-icons/hi"; | |
| import { | |
| Box, | |
| Button, | |
| Container, | |
| Heading, | |
| HStack, | |
| Radio, | |
| RadioGroup, |