diff --git a/src/dotnet/APIView/ClientSPA/src/app/_components/index-page/index-page.component.scss b/src/dotnet/APIView/ClientSPA/src/app/_components/index-page/index-page.component.scss index 12125248f8d..f5c7f6113c2 100644 --- a/src/dotnet/APIView/ClientSPA/src/app/_components/index-page/index-page.component.scss +++ b/src/dotnet/APIView/ClientSPA/src/app/_components/index-page/index-page.component.scss @@ -9,16 +9,6 @@ } }; - .author-table-data { - vertical-align: middle; - font-size: 0.9rem; - font-weight: 400; - img { - border-radius: 50%; - margin-right: 5px; - } - } - .index-table-info { min-height: 30px; max-height: 30px; diff --git a/src/dotnet/APIView/ClientSPA/src/app/_components/index-page/index-page.component.ts b/src/dotnet/APIView/ClientSPA/src/app/_components/index-page/index-page.component.ts index 0ec68bf5451..a3830e0cdaf 100644 --- a/src/dotnet/APIView/ClientSPA/src/app/_components/index-page/index-page.component.ts +++ b/src/dotnet/APIView/ClientSPA/src/app/_components/index-page/index-page.component.ts @@ -7,7 +7,7 @@ import { FirstReleaseApproval, Review } from 'src/app/_models/review'; styleUrls: ['./index-page.component.scss'] }) export class IndexPageComponent { - review : Review | null = null; + review : Review | undefined = undefined; /** * Pass ReviewId to revision component to load revisions diff --git a/src/dotnet/APIView/ClientSPA/src/app/_components/review-page/review-page.component.html b/src/dotnet/APIView/ClientSPA/src/app/_components/review-page/review-page.component.html index 594ef066aac..a6cf7aae2fb 100644 --- a/src/dotnet/APIView/ClientSPA/src/app/_components/review-page/review-page.component.html +++ b/src/dotnet/APIView/ClientSPA/src/app/_components/review-page/review-page.component.html @@ -6,13 +6,12 @@ [diffApiRevisionId]="diffApiRevisionId" [userProfile]="userProfile" [review]="review" - (revisionsSidePanel)="showRevisionsPanel($event)" (pageOptionsEmitter)="handlePageOptionsEmitter($event)">
- Select a Language Below to view instructions for creating a Review. -
- -clang [inputs like az_*.h] -Xclang -ast-dump=json -I ..\\..\\..\\core\\core\\inc -I "c:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\VC\\Tools\\MSVC\\14.26.28801\\include\\" > az_core.ast`,
- `Archive the file Compress-Archive az_core.ast -DestinationPath az_core.zip`,
- `Upload the resulting archive.`
- ];
- this.acceptedFilesForReviewUpload = ".zip";
- this.createReviewForm.get('selectedFile')?.enable();
- this.createReviewForm.get('filePath')?.disable();
- break;
- case "C#":
- this.createReviewInstruction = [
- `Run dotnet pack`,
- `Upload the resulting .nupkg file.`
- ];
- this.acceptedFilesForReviewUpload = ".nupkg";
- this.createReviewForm.get('selectedFile')?.enable();
- this.createReviewForm.get('filePath')?.disable();
- break;
- case "C++":
- this.createReviewInstruction = [
- `Generate a token file using the C++ parser`,
- `Upload the token file generated.`
- ];
- this.acceptedFilesForReviewUpload = ".json";
- this.createReviewForm.get('selectedFile')?.enable();
- this.createReviewForm.get('filePath')?.disable();
- break;
- case "Java":
- this.createReviewInstruction = [
- `Run a mvn package build on your project, which will generate a number of build artifacts in the /target directory. In there, find the file ending sources.jar, and select it.`,
- ];
- this.acceptedFilesForReviewUpload = ".sources.jar";
- this.createReviewForm.get('selectedFile')?.enable();
- this.createReviewForm.get('filePath')?.disable();
- break;
- case "Python":
- this.createReviewInstruction = [
- `Generate wheel for the package. python setup.py bdist_wheel -d [dest_folder]`,
- `Upload generated whl file`
- ];
- this.acceptedFilesForReviewUpload = ".whl";
- this.createReviewForm.get('selectedFile')?.enable();
- this.createReviewForm.get('filePath')?.disable();
- break;
- case "JavaScript":
- this.createReviewInstruction = [
- `Use api-extractor to generate a docModel file`,
- `Upload generated api.json file`
- ];
- this.acceptedFilesForReviewUpload = ".api.json";
- this.createReviewForm.get('selectedFile')?.enable();
- this.createReviewForm.get('filePath')?.disable();
- break;
- case "Go":
- this.createReviewInstruction = [
- `Archive source module directory in which go.mod is present. Compress-Archive ./sdk/azcore -DestinationPath azcore.zip`,
- `Rename the file Rename-Item azcore.zip -NewName azcore.gosource`,
- `Upload the resulting archive.`
- ];
- this.acceptedFilesForReviewUpload = ".gosource";
- this.createReviewForm.get('selectedFile')?.enable();
- this.createReviewForm.get('filePath')?.disable();
- break;
- case "Swift":
- this.createReviewInstruction = [
- `Generate JSON file for the source by running Swift APIView parser in XCode. More information is available here on Swift API parser`,
- `Upload generated JSON`
- ];
- this.acceptedFilesForReviewUpload = ".json";
- this.createReviewForm.get('selectedFile')?.enable();
- this.createReviewForm.get('filePath')?.disable();
- break;
- case "Swagger":
- this.createReviewInstruction = [
- `Rename swagger json to replace file extension to .swagger Rename-Item PetSwagger.json -NewName PetSwagger.swagger`,
- `Upload renamed swagger file`
- ];
- this.acceptedFilesForReviewUpload = ".swagger";
- this.createReviewForm.get('selectedFile')?.enable();
- this.createReviewForm.get('filePath')?.disable();
- break;
- case "TypeSpec":
- this.createReviewInstruction = [
- `Rename swagger json to replace file extension to .swagger Rename-Item PetSwagger.json -NewName PetSwagger.swagger`,
- `Upload renamed swagger file`
- ];
- this.acceptedFilesForReviewUpload = ".json";
- this.createReviewForm.get('selectedFile')?.disable();
- this.createReviewForm.get('filePath')?.enable();
- break;
- case "Json":
- this.createReviewInstruction = [
- `Upload JSON API review token file.`
- ];
- this.acceptedFilesForReviewUpload = ".json, .tgz";
- this.createReviewForm.get('selectedFile')?.enable();
- this.createReviewForm.get('filePath')?.disable();
- break;
- default:
- this.createReviewInstruction = []
- }
-
- if (this.reviewCreationFileUpload) {
- this.reviewCreationFileUpload.clear();
- }
-
- this.createReviewForm.get('label')?.reset();
- this.createReviewForm.get('selectedFile')?.reset();
- this.createReviewForm.get('filePath')?.reset()
- }
}
diff --git a/src/dotnet/APIView/ClientSPA/src/app/_components/revisions-list/revisions-list.component.html b/src/dotnet/APIView/ClientSPA/src/app/_components/revisions-list/revisions-list.component.html
index 5dcf90bc6a9..37205508977 100644
--- a/src/dotnet/APIView/ClientSPA/src/app/_components/revisions-list/revisions-list.component.html
+++ b/src/dotnet/APIView/ClientSPA/src/app/_components/revisions-list/revisions-list.component.html
@@ -4,7 +4,7 @@
Select a Language Below to view instructions for creating a Review.
+ +clang [inputs like az_*.h] -Xclang -ast-dump=json -I ..\\..\\..\\core\\core\\inc -I "c:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\VC\\Tools\\MSVC\\14.26.28801\\include\\" > az_core.ast`,
+ `Archive the file Compress-Archive az_core.ast -DestinationPath az_core.zip`,
+ `Upload the resulting archive.`
+ ];
+ this.acceptedFilesForReviewUpload = ".zip";
+ this.createRevisionForm.get('selectedFile')?.enable();
+ this.createRevisionForm.get('filePath')?.disable();
+ break;
+ case "C#":
+ this.createRevisionInstruction = [
+ `Run dotnet pack`,
+ `Upload the resulting .nupkg file.`
+ ];
+ this.acceptedFilesForReviewUpload = ".nupkg";
+ this.createRevisionForm.get('selectedFile')?.enable();
+ this.createRevisionForm.get('filePath')?.disable();
+ break;
+ case "C++":
+ this.createRevisionInstruction = [
+ `Generate a token file using the C++ parser`,
+ `Upload the token file generated.`
+ ];
+ this.acceptedFilesForReviewUpload = ".json";
+ this.createRevisionForm.get('selectedFile')?.enable();
+ this.createRevisionForm.get('filePath')?.disable();
+ break;
+ case "Java":
+ this.createRevisionInstruction = [
+ `Run a mvn package build on your project, which will generate a number of build artifacts in the /target directory. In there, find the file ending sources.jar, and select it.`,
+ ];
+ this.acceptedFilesForReviewUpload = ".sources.jar";
+ this.createRevisionForm.get('selectedFile')?.enable();
+ this.createRevisionForm.get('filePath')?.disable();
+ break;
+ case "Python":
+ this.createRevisionInstruction = [
+ `Generate wheel for the package. python setup.py bdist_wheel -d [dest_folder]`,
+ `Upload generated whl file`
+ ];
+ this.acceptedFilesForReviewUpload = ".whl";
+ this.createRevisionForm.get('selectedFile')?.enable();
+ this.createRevisionForm.get('filePath')?.disable();
+ break;
+ case "JavaScript":
+ this.createRevisionInstruction = [
+ `Use api-extractor to generate a docModel file`,
+ `Upload generated api.json file`
+ ];
+ this.acceptedFilesForReviewUpload = ".api.json";
+ this.createRevisionForm.get('selectedFile')?.enable();
+ this.createRevisionForm.get('filePath')?.disable();
+ break;
+ case "Go":
+ this.createRevisionInstruction = [
+ `Archive source module directory in which go.mod is present. Compress-Archive ./sdk/azcore -DestinationPath azcore.zip`,
+ `Rename the file Rename-Item azcore.zip -NewName azcore.gosource`,
+ `Upload the resulting archive.`
+ ];
+ this.acceptedFilesForReviewUpload = ".gosource";
+ this.createRevisionForm.get('selectedFile')?.enable();
+ this.createRevisionForm.get('filePath')?.disable();
+ break;
+ case "Swift":
+ this.createRevisionInstruction = [
+ `Generate JSON file for the source by running Swift APIView parser in XCode. More information is available here on Swift API parser`,
+ `Upload generated JSON`
+ ];
+ this.acceptedFilesForReviewUpload = ".json";
+ this.createRevisionForm.get('selectedFile')?.enable();
+ this.createRevisionForm.get('filePath')?.disable();
+ break;
+ case "Swagger":
+ this.createRevisionInstruction = [
+ `Rename swagger json to replace file extension to .swagger Rename-Item PetSwagger.json -NewName PetSwagger.swagger`,
+ `Upload renamed swagger file`
+ ];
+ this.acceptedFilesForReviewUpload = ".swagger";
+ this.createRevisionForm.get('selectedFile')?.enable();
+ this.createRevisionForm.get('filePath')?.disable();
+ break;
+ case "TypeSpec":
+ this.createRevisionInstruction = [
+ `Rename swagger json to replace file extension to .swagger Rename-Item PetSwagger.json -NewName PetSwagger.swagger`,
+ `Upload renamed swagger file`
+ ];
+ this.acceptedFilesForReviewUpload = ".json";
+ this.createRevisionForm.get('selectedFile')?.disable();
+ this.createRevisionForm.get('filePath')?.enable();
+ break;
+ case "Json":
+ this.createRevisionInstruction = [
+ `Upload JSON API review token file.`
+ ];
+ this.acceptedFilesForReviewUpload = ".json, .tgz";
+ this.createRevisionForm.get('selectedFile')?.enable();
+ this.createRevisionForm.get('filePath')?.disable();
+ break;
+ default:
+ this.createRevisionInstruction = []
}
+
+ if (this.revisionCreationFileUpload) {
+ this.revisionCreationFileUpload.clear();
+ }
+
+ this.createRevisionForm.get('label')?.reset();
+ this.createRevisionForm.get('selectedFile')?.reset();
+ this.createRevisionForm.get('filePath')?.reset()
+ }
}
diff --git a/src/dotnet/APIView/ClientSPA/src/app/_components/shared/review-info/review-info.component.ts b/src/dotnet/APIView/ClientSPA/src/app/_components/shared/review-info/review-info.component.ts
index e3b9417a27d..e4a43d9d596 100644
--- a/src/dotnet/APIView/ClientSPA/src/app/_components/shared/review-info/review-info.component.ts
+++ b/src/dotnet/APIView/ClientSPA/src/app/_components/shared/review-info/review-info.component.ts
@@ -17,7 +17,6 @@ export class ReviewInfoComponent {
@Input() userProfile: UserProfile | undefined;
@Input() review : Review | undefined = undefined;
- @Output() revisionsSidePanel : EventEmitter