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
const request = { | |
parent: client.locationPath(projectID, regionID), | |
job: { | |
inputUri, | |
outputUri, | |
config: { | |
pubsubDestination: { | |
topic: pubsubTopicID, | |
}, | |
elementaryStreams: [ |
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 { | |
assertEquals, | |
equal, | |
} from "https://deno.land/[email protected]/testing/asserts.ts"; | |
import { copy } from "https://deno.land/[email protected]/fs/mod.ts"; | |
export const assertSnapshot = async ( | |
receivedPath: string, | |
expectedPath: 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
const { loadConfigFromFile, mergeConfig } = require("vite"); | |
const path = require("path"); | |
module.exports = { | |
... | |
async viteFinal(config) { | |
const result = await loadConfigFromFile( | |
{ command: "build", mode: "development" }, | |
path.resolve(__dirname, "path to vite config") | |
); |
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
Show hidden characters
{ | |
"Define FunctionComponents": { | |
"scope": "typescript,typescriptreact", | |
"prefix": "fc", | |
"body": [ | |
"import { FC } from \"react\";", | |
"", | |
"const $TM_FILENAME_BASE: FC = () => <></>;", | |
"", | |
"export default $TM_FILENAME_BASE", |
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 { FC, PropsWithChildren, ReactNode, useEffect, useState } from "react"; | |
interface Props { | |
srcSets: { [key: string]: string }; | |
fallback?: ReactNode; | |
} | |
const Preload: FC<PropsWithChildren<Props>> = ({ | |
children, | |
fallback, |
OlderNewer