Header menu logo Sigma.NET

InternalUtils Module

Internal utility functions and types for handling JavaScript references.

Types

Type Description

JSRefGroup

Defines a record type to hold paths or URLs for JavaScript libraries.

Functions and values

Function or value Description

getNugetPathJS ()

Full Usage: getNugetPathJS ()

Parameters:
    () : unit

Returns: JSRefGroup A record containing the file paths for the JavaScript libraries.

Returns the paths for JavaScript libraries based on NuGet package location in the user's profile directory.

() : unit
Returns: JSRefGroup

A record containing the file paths for the JavaScript libraries.

getSourceCodeJS ()

Full Usage: getSourceCodeJS ()

Parameters:
    () : unit

Returns: JSRefGroup A record containing the paths to the JavaScript libraries.

Retrieves the source code for JavaScript libraries from embedded resources.

() : unit
Returns: JSRefGroup

A record containing the paths to the JavaScript libraries.

getUriJS ()

Full Usage: getUriJS ()

Parameters:
    () : unit

Returns: JSRefGroup A record containing the CDN URLs for the JavaScript libraries.

Returns the URLs for JavaScript libraries from a CDN, using versions specified in Globals.

() : unit
Returns: JSRefGroup

A record containing the CDN URLs for the JavaScript libraries.

readFromManifestResource resourceName

Full Usage: readFromManifestResource resourceName

Parameters:
    resourceName : string - The name of the embedded resource.

Returns: string The content of the embedded resource as a string.

Reads the content of an embedded resource from the assembly.

resourceName : string

The name of the embedded resource.

Returns: string

The content of the embedded resource as a string.

Type something to start searching.