This file has been truncated, but you can view the full file.
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 | |
A'isha | |
A-jay | |
Aa | |
Aab | |
Aaban | |
Aaberg | |
Aabid | |
Aabidah |
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 { loadCommunity } from "@lib/loadCommunity.server"; | |
import { ImageResponse } from "@vercel/og"; | |
import { NextRequest, NextResponse } from "next/server"; | |
export async function GET(request: NextRequest, { params }: { params: { slug: string; size: string } }) { | |
const community = await loadCommunity(params.slug); | |
if (!community || !community.icon_url) { | |
return NextResponse.json( | |
{ message: "Not found" }, |
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
{ | |
"theme_color": "#055b49", | |
"background_color": "#055b49", | |
"display": "standalone", | |
"scope": "/", | |
"orientation": "any", | |
"start_url": "/?utm_medium=PWA&utm_source=launcher", | |
"name": "NutriFlex", | |
"short_name": "NutriFlex", | |
"icons": [ |
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 { useIsomorphicEffect } from "@hooks/useIsomorphicEffect"; | |
import React from "react"; | |
const cache: Map<string, { height: number }> = new Map(); | |
/** | |
* Very fast rendering of large lists, without windowing/virtualization | |
* | |
* Wrap any list item with `<Item><MyListItem /></Item` and we | |
* will ensure that only what appears within the viewport is what |
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
type Cache = { | |
[k: string]: string; | |
}; | |
function cache() { | |
const _cache: Cache = {}; | |
const cache = { | |
get: (key: string) => { | |
const cachedUrl = _cache[key]; |
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
/** | |
* @author qiao / https://github.com/qiao | |
* @author mrdoob / http://mrdoob.com | |
* @author alteredq / http://alteredqualia.com/ | |
* @author WestLangley / http://github.com/WestLangley | |
* @author erich666 / http://erichaines.com | |
*/ | |
// This set of controls performs orbiting, dollying (zooming), and panning. | |
// Unlike TrackballControls, it maintains the "up" direction object.up (+Y by default). |
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
{ | |
"type":"doc", | |
"content":[ | |
{ | |
"type":"heading", | |
"attrs":{ | |
"level":1 | |
}, | |
"content":[ | |
{ |
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 defaultDelay = 500; | |
export default function getDelay(): number { | |
if (typeof window !== "undefined") { | |
if (window.navigator && window.navigator.connection) { | |
const connection = window.navigator.connection.effectiveType; | |
switch (connection) { | |
case "4g": | |
return defaultDelay; | |
case "3g": |
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 * as React from "react"; | |
type ThemeConfig = "system" | "light" | "dark"; | |
type ThemeName = "light" | "dark"; | |
// Custom themes are keyed by a unique id. | |
type KeyedThemes = { | |
[k: string]: { | |
config: ThemeConfig; | |
themeName: ThemeName; | |
}; |
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 * as React from "react"; | |
type Theme = "system" | "light" | "dark"; | |
const STORAGE_KEY = "theme"; | |
const VALID_THEMES: Theme[] = ["system", "light", "dark"]; | |
const DARK_MODE_MEDIA_QUERY = "(prefers-color-scheme: dark)"; | |
function getAppTheme(): Theme { | |
if (typeof window !== "undefined") { |
NewerOlder