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 * as Prisma from "@prisma/client"; | |
import { createHash, randomBytes } from "crypto"; | |
import type { Adapter } from "next-auth/adapters"; | |
import { | |
CreateSessionError, | |
CreateUserError, | |
CreateVerificationRequestError, | |
DeleteSessionError, | |
DeleteUserError, | |
DeleteVerificationRequestError, |
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
/* TODO: Abstract this module away into a separate npm package */ | |
/* | |
* References: | |
* - https://developers.google.com/fonts/docs/css2 | |
* - https://github.com/google/fonts/tree/master/axisregistry | |
*/ | |
import Head from "next/head"; |
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
const plugin = require("tailwindcss/plugin"); | |
function half(value) { | |
return value.replace(/\d+(.\d+)?/, (number) => number / 2); | |
} | |
module.exports = { | |
future: { | |
removeDeprecatedGapUtilities: true, | |
purgeLayersByDefault: true, |
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 browserslist from "browserslist"; | |
import compareVersions from "compare-versions"; | |
import bcd from "mdn-browser-compat-data"; | |
function normalizeVersion(version) { | |
return version.replace("≤", ""); | |
} | |
const browsersByBrowserslistId = new Map([ | |
/* Keys: https://github.com/browserslist/browserslist#browsers */ |
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
/* Gathered from mdn-browser-compat-data using the default browserslist config */ | |
export const alternativeCSSPropertiesByStandardName = [ | |
"color-adjust": ["-webkit-print-color-adjust"], | |
"grid-auto-columns": ["-ms-grid-columns"], | |
"grid-auto-rows": ["-ms-grid-rows"], | |
"overflow-wrap": ["word-wrap"], | |
"scroll-margin-bottom": ["scroll-snap-margin-bottom"], | |
"scroll-margin-left": ["scroll-snap-margin-left"], | |
"scroll-margin-right": ["scroll-snap-margin-right"], |
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
/** | |
* Based on the differences between UA sheets. | |
* Selectors are chunked in ordered groups for better compression (e.g. gzip). | |
*/ | |
body, | |
p, | |
h1, | |
h2, | |
h3, |
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
{ | |
"name": "to-be-added", | |
"version": "0.0.0", | |
"sideEffects": false, | |
"exports": { | |
".": { | |
"import": "./dist-esm/bundle.min.mjs", | |
"require": "./dist-cjs/bundle.min.cjs" | |
}, | |
"./server": "./server/index.js" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/* eslint-disable no-fallthrough */ | |
// Inspired by: https://github.com/levitation/murmurhash-js | |
export default function murmur2(data: string, seed: number = 0): number { | |
// 'm' and 'r' are mixing constants generated offline. | |
// They're not really 'magic', they just happen to work well. | |
// const m = 0x5bd1e995; | |
// const r = 24; |
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
function imul2(x, yHi, yLo) { | |
return (((x * yHi) << 16) + x * y) | 0; | |
} | |
function imul(x, y) { | |
return imul2(x, (y >>> 16) & 0xffff, y & 0xffff); | |
} |
NewerOlder