Skip to content

Commit 8c953da

Browse files
Remove rougue files
1 parent d275e61 commit 8c953da

2,289 files changed

Lines changed: 9 additions & 1130640 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/dotnet/APIView/ClientSPA/src/app/_components/code-panel/code-panel.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
<ng-container *ngIf="item.type === CodePanelRowDatatype.CommentThread">
2626
<app-comment-thread
2727
[codePanelRowData]="item"
28-
[associatedCodeLine]="getAssociatedCodeLine(item)"
2928
(cancelCommentActionEmitter)="handleCancelCommentActionEmitter($event)"
3029
(saveCommentActionEmitter)="handleSaveCommentActionEmitter($event)"
3130
(deleteCommentActionEmitter)="handleDeleteCommentActionEmitter($event)"

src/dotnet/APIView/ClientSPA/src/app/_components/code-panel/code-panel.component.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,17 @@ export class CodePanelComponent implements OnChanges{
5656
this.codePanelRowSource = undefined;
5757
}
5858
}
59-
59+
6060
if (changes['scrollToNodeIdHashed'] && changes['scrollToNodeIdHashed'].currentValue) {
6161
this.scrollToNode(this.scrollToNodeIdHashed!);
6262
}
63-
63+
6464
if (changes['loadFailed'] && changes['loadFailed'].currentValue) {
6565
this.isLoading = false;
6666
}
6767
}
6868

69-
onCodePanelItemClick(event: Event) {
69+
onCodePanelItemClick(event: Event) {
7070
const target = event.target as Element;
7171
if (target.classList.contains('nav-token')) {
7272
const navigationId = target.getAttribute('data-navigate-to-id');
@@ -137,13 +137,6 @@ export class CodePanelComponent implements OnChanges{
137137
return "";
138138
}
139139

140-
getAssociatedCodeLine(item: CodePanelRowData): CodePanelRowData | undefined {
141-
if (this.codePanelData?.nodeMetaData && this.codePanelData.nodeMetaData[item.nodeIdHashed]) {
142-
return this.codePanelData.nodeMetaData[item.nodeIdHashed].codeLines[item.associatedRowPositionInGroup] || undefined;
143-
}
144-
return undefined;
145-
}
146-
147140
toggleNodeComments(target: Element) {
148141
const nodeIdHashed = target.closest('.code-line')!.getAttribute('data-node-id');
149142
const rowPositionInGroup = parseInt(target.closest('.code-line')!.getAttribute('data-row-position-in-group')!, 10);

src/dotnet/APIView/ClientSPA/src/app/_components/shared/comment-thread/comment-thread.component.ts

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { UserProfile } from 'src/app/_models/userProfile';
1717
})
1818
export class CommentThreadComponent {
1919
@Input() codePanelRowData: CodePanelRowData | undefined = undefined;
20-
@Input() associatedCodeLine: CodePanelRowData | undefined;
2120
@Output() cancelCommentActionEmitter : EventEmitter<any> = new EventEmitter<any>();
2221
@Output() saveCommentActionEmitter : EventEmitter<any> = new EventEmitter<any>();
2322
@Output() deleteCommentActionEmitter : EventEmitter<any> = new EventEmitter<any>();
@@ -63,37 +62,34 @@ export class CommentThreadComponent {
6362
items: [{
6463
title: "csharp",
6564
label: ".NET",
66-
command: (event) => this.createGitHubIssue(event),
65+
state: {
66+
repo: "azure-sdk-for-net",
67+
language: "C#"
68+
}
6769
},
6870
{
6971
title: "java",
7072
label: "Java",
71-
command: (event) => this.createGitHubIssue(event),
7273
},
7374
{
7475
title: "python",
7576
label: "Python",
76-
command: (event) => this.createGitHubIssue(event),
7777
},
7878
{
7979
title: "c",
8080
label: "C",
81-
command: (event) => this.createGitHubIssue(event),
8281
},
8382
{
8483
title: "javascript",
8584
label: "JavaScript",
86-
command: (event) => this.createGitHubIssue(event),
8785
},
8886
{
8987
title: "go",
9088
label: "Go",
91-
command: (event) => this.createGitHubIssue(event),
9289
},
9390
{
9491
title: "cplusplus",
9592
label: "C++",
96-
command: (event) => this.createGitHubIssue(event),
9793
},
9894
]
9995
});
@@ -105,8 +101,6 @@ export class CommentThreadComponent {
105101
if (changes['codePanelRowData']) {
106102
this.setCommentResolutionState();
107103
}
108-
if (changes['associatedCodeLine']) {
109-
}
110104
}
111105

112106
setCommentResolutionState() {
@@ -143,9 +137,9 @@ export class CommentThreadComponent {
143137
this.allowAnyOneToResolve = !this.allowAnyOneToResolve;
144138
}
145139

146-
createGitHubIssue(event: MenuItemCommandEvent) {
140+
createGitHubIsuue(title : string) {
147141
let repo = "";
148-
switch (event.item?.title) {
142+
switch (title) {
149143
case "csharp":
150144
repo = "azure-sdk-for-net";
151145
break;
@@ -168,25 +162,6 @@ export class CommentThreadComponent {
168162
repo = "azure-sdk-for-cpp";
169163
break;
170164
}
171-
172-
const target = (event.originalEvent?.target as Element).closest("a") as Element;
173-
const commentId = target.getAttribute("data-item-id");
174-
const commentData = this.codePanelRowData?.comments?.find(comment => comment.id === commentId)?.commentText.replace(/<[^>]*>/g, '').trim();
175-
176-
const codeLineContent = this.associatedCodeLine
177-
? this.associatedCodeLine.rowOfTokens
178-
.filter(token => token.kind !== 'nonBreakingSpace')
179-
.map(token => token.value)
180-
.join(' ')
181-
.replace(/\s+/g, ' ')
182-
.trim()
183-
: '';
184-
185-
const nodeId: string = this.codePanelRowData?.nodeId ?? 'defaultNodeId';
186-
const apiViewUrl = `${window.location.href.split("#")[0]}&nId=${encodeURIComponent(nodeId)}`;
187-
const issueBody = encodeURIComponent(`\`\`\`${event.item?.title}\n${codeLineContent}\n\`\`\`\n#\n${commentData}\n#\n[Created from ApiView comment](${apiViewUrl})`);
188-
189-
window.open(`https://github.com/Azure/${repo}/issues/new?body=${issueBody}`, '_blank');
190165
}
191166

192167
showReplyEditor(event: Event) {
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

tools/agent-time-extractor/AgentTimeExtractor.sln

Lines changed: 0 additions & 25 deletions
This file was deleted.

tools/agent-time-extractor/AgentTimeExtractor/AgentTimeExtractor.csproj

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)