Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebDiffManager

Imperative Web Differences Manager handles the opening of diffs and constructs the dirs and files if necessary

export

Hierarchy

  • WebDiffManager

Implements

Index

Properties

Static Private mInstance

mInstance: WebDiffManager = null

Singleton instance of this class

static
memberof

WebDiffManager

Accessors

Private webDiffDir

  • get webDiffDir(): string

Static instance

Methods

Private encodeForScript

  • encodeForScript(str: string): string
  • Encodes a string so it can be safely embedded inside an inline <script> element. JSON.stringify produces a valid JavaScript string literal, and the additional replacements prevent the value from terminating the script element (e.g. a </script> sequence in the diff content) or introducing line terminators that are illegal inside JS string literals (U+2028/U+2029).

    Parameters

    • str: string

      the raw string to embed in a script context

    Returns string

    A safely-encoded JavaScript string literal

Private genHtmlForDiffs

  • genHtmlForDiffs(htmlDiff: string, unifiedStringDiff: string): string

openDiffs

  • openDiffs(patchDiff: string): Promise<void>

Generated using TypeDoc