-
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.
072924.01/api revision meta data (#8720)
* Refactor Models into Separate Files. Get Tests to all pass * All Tests Green * Move Projects to DotNET 8 * Switch back to net 7 * Resolve Bug in First Release Approval Button * Remove rougue file * Update APIRevisionsMetaData Logic * Add Tests for AzureEngSemanticVersion
- Loading branch information
1 parent
a09e26d
commit cc04af0
Showing
11 changed files
with
363 additions
and
83 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.