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
| // resource route component | |
| import React from "react"; | |
| import { PassThrough } from "node:stream" | |
| import fs from "node:fs" | |
| import {createReadableStreamFromReadable} from "@remix-run/node" | |
| import { defaultQuality,widths,mainImageReadStream,generatedImageReadstream, isThereImage,BadImageResponse } from "../../util/image.server" | |
| export const loader = async ({ request }) => { | |
| const url = new URL(request.url); | |
| const src = url.searchParams.get("src"); |
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
| #!/bin/bash | |
| # Based off https://gist.github.com/wojtekmaj/6defa1f358daae28bd52b7b6dbeb7ab6 with a few fixes and | |
| # additions/removals including no git interactions | |
| join_by() { | |
| local d=${1-} f=${2-} | |
| if shift 2; then | |
| printf %s "$f" "${@/#/$d}" | |
| fi |
OlderNewer