MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / encodeFileURL

Function encodeFileURL

frontend/util/waveutil.ts:8–13  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

6import { generate as generateCSS, parse as parseCSS, walk as walkCSS } from "css-tree";
7
8function encodeFileURL(file: string) {
9 const webEndpoint = getWebServerEndpoint();
10 const fileUri = formatRemoteUri(file, "local");
11 const rtn = webEndpoint + `/wave/stream-file?path=${encodeURIComponent(fileUri)}&no404=1`;
12 return rtn;
13}
14
15export function processBackgroundUrls(cssText: string): string {
16 if (isBlank(cssText)) {

Callers 1

enterFunction · 0.85

Calls 1

formatRemoteUriFunction · 0.85

Tested by

no test coverage detected