-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b59f35
commit 11078c2
Showing
8 changed files
with
182 additions
and
94 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
namespace AngleSharp.Js | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
/// <summary> | ||
/// https://html.spec.whatwg.org/multipage/webappapis.html#import-map | ||
/// </summary> | ||
sealed class JsImportMap | ||
{ | ||
public JsImportMap() | ||
{ | ||
Imports = new Dictionary<string, Uri>(); | ||
Scopes = new Dictionary<string, Dictionary<string, Uri>>(); | ||
} | ||
|
||
/// <summary> | ||
/// Provides the mappings between module specifier text that might appear in an import statement or import() operator, | ||
/// and the text that will replace it when the specifier is resolved. | ||
/// </summary> | ||
public Dictionary<string, Uri> Imports { get; set; } | ||
|
||
/// <summary> | ||
/// Mappings that are only used if the script importing the module contains a particular URL path. | ||
/// If the URL of the loading script matches the supplied path, the mapping associated with the scope will be used. | ||
/// </summary> | ||
public Dictionary<string, Dictionary<string, Uri>> Scopes { get; set; } | ||
} | ||
} |
Oops, something went wrong.