-
Notifications
You must be signed in to change notification settings - Fork 183
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
e962548
commit 1049203
Showing
10 changed files
with
287 additions
and
84 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
29 changes: 29 additions & 0 deletions
29
src/dotnet/APIView/ClientSPA/src/app/_helpers/common-helpers.ts
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 @@ | ||
export const REVIEW_ID_ROUTE_PARAM = "reviewId"; | ||
export const ACTIVE_API_REVISION_ID_QUERY_PARAM = "activeApiRevisionId"; | ||
export const DIFF_API_REVISION_ID_QUERY_PARAM = "diffApiRevisionId"; | ||
export const DIFF_STYLE_QUERY_PARAM = "diffStyle"; | ||
export const SCROLL_TO_NODE_QUERY_PARAM = "nId"; | ||
|
||
export function getLanguageCssSafeName(language: string): string { | ||
switch (language.toLowerCase()) { | ||
case "c#": | ||
return "csharp"; | ||
case "c++": | ||
return "cplusplus"; | ||
default: | ||
return language.toLowerCase(); | ||
} | ||
} | ||
|
||
export function mapLanguageAliases(languages: Iterable<string>): string[] { | ||
const result: Set<string> = new Set<string>(); | ||
|
||
for (const language of languages) { | ||
if (language === "TypeSpec" || language === "Cadl") { | ||
result.add("Cadl"); | ||
result.add("TypeSpec"); | ||
} | ||
result.add(language); | ||
} | ||
return Array.from(result); | ||
} |
10 changes: 0 additions & 10 deletions
10
src/dotnet/APIView/ClientSPA/src/app/_helpers/component-helpers.ts
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
src/dotnet/APIView/ClientSPA/src/app/_helpers/literal-helpers.ts
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/dotnet/APIView/ClientSPA/src/app/_helpers/service-helpers.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.