type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
({ message }) => { console.log('DetailsConversationComponent::onAddConversationMessage', message); }
zetapush/angular-zetapush-starter
src/app/conversation/details-conversation/details-conversation.component.ts
TypeScript
ArrowFunction
(errors) => { console.error('DetailsConversationComponent::onAddConversationMessage', errors); }
zetapush/angular-zetapush-starter
src/app/conversation/details-conversation/details-conversation.component.ts
TypeScript
ArrowFunction
(message) => { console.log('DetailsConversationComponent::onPurgeConversationMessageList', message); }
zetapush/angular-zetapush-starter
src/app/conversation/details-conversation/details-conversation.component.ts
TypeScript
ArrowFunction
(errors) => { console.error('DetailsConversationComponent::onPurgeConversationMessageList', errors); }
zetapush/angular-zetapush-starter
src/app/conversation/details-conversation/details-conversation.component.ts
TypeScript
ClassDeclaration
@Component({ selector: 'zp-details-conversation', templateUrl: './details-conversation.component.html', styles: [` `] }) export class DetailsConversationComponent implements OnDestroy, OnChanges { @Input() conversation: Conversation; readonly view: View = DetailsConversationComponent; context = new R...
zetapush/angular-zetapush-starter
src/app/conversation/details-conversation/details-conversation.component.ts
TypeScript
MethodDeclaration
ngOnDestroy() { // Remove subscription this.subscriptions.forEach((subscription) => { subscription.unsubscribe(); }); }
zetapush/angular-zetapush-starter
src/app/conversation/details-conversation/details-conversation.component.ts
TypeScript
MethodDeclaration
ngOnChanges(changes) { const { conversation } = changes; if (conversation && conversation.currentValue) { this.context.next(conversation.currentValue); } }
zetapush/angular-zetapush-starter
src/app/conversation/details-conversation/details-conversation.component.ts
TypeScript
MethodDeclaration
onSubmit({ value, valid }: { value: any, valid: boolean }, event) { console.log('DetailsConversationComponent::onSubmit', value, valid, event); if (valid) { const parameters = { room: this.conversation.room, type: 'markup', value: { text: value.message }, ...
zetapush/angular-zetapush-starter
src/app/conversation/details-conversation/details-conversation.component.ts
TypeScript
MethodDeclaration
onPurgConversation($event) { this.api.purgeConversationMessageList({ room: this.conversation.room }).then((message) => { console.log('DetailsConversationComponent::onPurgeConversationMessageList', message); }, (errors) => { console.error('DetailsConversationComponent::onPurgeConversationM...
zetapush/angular-zetapush-starter
src/app/conversation/details-conversation/details-conversation.component.ts
TypeScript
MethodDeclaration
onRequestConfirmed(request: FileUploadRequest) { console.log('DetailsConversationComponent::onRequestConfirmed', request); /* const parameters = { room: this.conversation.room, type: 'attachment', value: { contentType: request.contentType, guid: request.transfer.guid, ...
zetapush/angular-zetapush-starter
src/app/conversation/details-conversation/details-conversation.component.ts
TypeScript
ArrowFunction
() => { console.log('Server is running'); // eslint-disable-line }
CauaMatheus/NLW-Node
api/src/server.ts
TypeScript
ArrowFunction
() => { beforeEach(() => { TestBed.configureTestingModule({ providers: [ChatService] }); }); it('should ...', inject([ChatService], (service: ChatService) => { expect(service).toBeTruthy(); })); }
lglad583/mean-chat
src/app/chat.service.spec.ts
TypeScript
ArrowFunction
() => { TestBed.configureTestingModule({ providers: [ChatService] }); }
lglad583/mean-chat
src/app/chat.service.spec.ts
TypeScript
ArrowFunction
(service: ChatService) => { expect(service).toBeTruthy(); }
lglad583/mean-chat
src/app/chat.service.spec.ts
TypeScript
ArrowFunction
() => { beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [VulnerabilitiesOverviewComponent], imports: [NgxChartsModule, NoopAnimationsModule], providers: [ ElectronService, ChangeDetectorRef, {provide: BackendService, useValue: new BackendService()...
USECAP/electron_frontend
src/app/vulnerabilities-overview/vulnerabilities-overview.component.spec.ts
TypeScript
ArrowFunction
() => { TestBed.configureTestingModule({ declarations: [VulnerabilitiesOverviewComponent], imports: [NgxChartsModule, NoopAnimationsModule], providers: [ ElectronService, ChangeDetectorRef, {provide: BackendService, useValue: new BackendService()} ] }) .com...
USECAP/electron_frontend
src/app/vulnerabilities-overview/vulnerabilities-overview.component.spec.ts
TypeScript
ArrowFunction
({ bsPrefix: initialBsPrefix, onClick, className, as: Component = 'button', children, label, ...props }: SidebarMenuSubToggleProps, ref) => { const bsPrefix = useBootstrapPrefix(initialBsPrefix, 'sidebar-menu-sub-toggle'); const { activeKey, onSelect, onToggle, expanded } = useCo...
ivp-dev/react-bootstrap-sidebar-menu
src/sidebar-menu-sub-toggle.tsx
TypeScript
ArrowFunction
() => () => { const eventKeyPassed = eventKey === activeKey ? null : eventKey; onSelect?.(eventKeyPassed); }
ivp-dev/react-bootstrap-sidebar-menu
src/sidebar-menu-sub-toggle.tsx
TypeScript
ArrowFunction
() => { const eventKeyPassed = eventKey === activeKey ? null : eventKey; onSelect?.(eventKeyPassed); }
ivp-dev/react-bootstrap-sidebar-menu
src/sidebar-menu-sub-toggle.tsx
TypeScript
ArrowFunction
(e) => { onClick?.(e); onToggle?.(); handleOnClick(); }
ivp-dev/react-bootstrap-sidebar-menu
src/sidebar-menu-sub-toggle.tsx
TypeScript
TypeAliasDeclaration
type SidebarMenuSubToggleProps = NavbarToggleProps & { eventKey?: EventKey }
ivp-dev/react-bootstrap-sidebar-menu
src/sidebar-menu-sub-toggle.tsx
TypeScript
MethodDeclaration
classNames(className, bsPrefix, !expanded
ivp-dev/react-bootstrap-sidebar-menu
src/sidebar-menu-sub-toggle.tsx
TypeScript
ArrowFunction
r => r.fileReport
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
ArrowFunction
r => this.getFileReport(r)
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
ArrowFunction
f => isExtension(join(this.coveragePath, f), "html")
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
ArrowFunction
f => f !== "index.html"
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
ArrowFunction
r => r.fileReport.filename === filename
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
ClassDeclaration
export class CoverageReportProvider implements vscode.TreeDataProvider<CoverageReport> { private coverageReportList: FullCoverageReport[]; private _onDidChangeTreeData: vscode.EventEmitter<CoverageReport | undefined | void> = new vscode.EventEmitter<CoverageReport | undefined | void>(); readonly onDidChan...
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
TypeAliasDeclaration
type FullCoverageReport = { fileReport: FileReport, linesReport: LinesReport };
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
MethodDeclaration
public setLibraryInterface(lib: LibraryInterface | null): void { if (this.libraryInterface?.name === lib?.name) { return; } this.libraryInterface = lib; this.reload(); }
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
MethodDeclaration
public reload() { this._onDidChangeTreeData.fire(); }
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
MethodDeclaration
getTreeItem(element: CoverageReport): vscode.TreeItem { return element; }
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
MethodDeclaration
getChildren(element?: CoverageReport): Thenable<CoverageReport[]> { try { accessSync(this.coveragePath); } catch { vscode.window.showErrorMessage("No coverage report folder found ..."); return Promise.resolve([]); } if (element) { ...
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
MethodDeclaration
public buildCoverageReportList() { this.coverageReportList = []; if (!this.libraryInterface || !this.libraryInterface.coverageReportUI) { return; } let htmlFiles = readdirSync(this.coveragePath).filter(f => isExtension(join(this.coveragePath, f), "html")).filter(f => f !== ...
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
MethodDeclaration
public actOnChange(filename: string, start: number, end: number) { const rootPath = getRootPath(); if (rootPath === null) { return; } let relativeFilename = relative(rootPath, filename); let linesReport = this.getLinesReport(relativeFilename); if (linesReport === null) { return...
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
MethodDeclaration
private getFileReport(coverageReport: FileReport): CoverageReport { let collapse = vscode.TreeItemCollapsibleState.Collapsed; if (coverageReport.percent === 100) { collapse = vscode.TreeItemCollapsibleState.None; } return new CoverageReport(coverageReport.filename, coverageReport.percent, null...
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
MethodDeclaration
private getLinesReport(filename: string): LinesReport | null { let filtered = this.coverageReportList.filter(r => r.fileReport.filename === filename); if (filtered.length === 0) { return null; } return filtered[0].linesReport; }
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
MethodDeclaration
private setNewLinesReport(filename: string, newLinesReport: LinesReport) { let filtered = this.coverageReportList.filter(r => r.fileReport.filename === filename); if (filtered.length === 0) { return; } filtered[0].linesReport = newLinesReport; }
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
MethodDeclaration
private getNotTestedFiles(orignalFilename: string, coverageReport: LinesReport): CoverageReport[] { let res: CoverageReport[] = []; for (let line of coverageReport.notTested) { res.push(new CoverageReport(orignalFilename, line, "NT", vscode.TreeItemCollapsibleState.None)); } ...
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
MethodDeclaration
private getNotHandledFiles(orignalFilename: string, coverageReport: LinesReport): CoverageReport[] { let res: CoverageReport[] = []; for (let line of coverageReport.notHandled) { res.push(new CoverageReport(orignalFilename, line, "NH", vscode.TreeItemCollapsibleState.None)); } ...
E-Jacques/pytestersuits
src/extension_func/coverageReport/provider.ts
TypeScript
ArrowFunction
logout => { if(logout) { this.clearAndLogout(); } }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
roomUsers => { this.zone.run(() => { this.roomUsers = roomUsers }); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
() => { this.roomUsers = roomUsers }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
data => { this.zone.run(() => { this.boardName = boardService.getCurrentBoardName(); this.textDocumentName = boardService.getCurrentTextDocumentName(); }); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
() => { this.boardName = boardService.getCurrentBoardName(); this.textDocumentName = boardService.getCurrentTextDocumentName(); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
() => { console.log('loaded'); ctx.drawImage(newImage, 0, 0); let dataURL = canvas.toDataURL("image/png"); console.log(dataURL); image.setAttribute('src', dataURL); console.log(count); image.onload = () => { --count; if(count === 0) {...
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
() => { --count; if(count === 0) { html2canvas(element, { onrendered: function(canvas) { pdf.addImage(canvas.toDataURL("image/png"),"png",0,0); pdf.output('save', 'test.pdf'); }, allowTaint: true, ...
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
(error) => { console.log(error); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
data => { console.log(data.userIds); this.dialog .open(BoardShareDialogComponent, {width: "55vw", data: data.userIds}) .afterClosed().subscribe(result => { if(result && result.length !== 0) { console.log(data.userIds, result); ...
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
result => { if(result && result.length !== 0) { console.log(data.userIds, result); if(data.userIds.indexOf(result) < 0 && data.userIds.indexOf(this.boardService.getOwnerEmail()) < 0) { this.boardService .shareBoard(result)...
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
data =>{}
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
error=>{}
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
result => { if(result && result.name !== this.boardName) { this.boardService .getBoard(result.ownerEmail, result.name) .subscribe(data => { this.zone.run(() => { this.boardName = this.boardService.getCurrentBoardName(); th...
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
data => { this.zone.run(() => { this.boardName = this.boardService.getCurrentBoardName(); this.textDocumentName = this.boardService.getCurrentTextDocumentName(); }); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
() => { this.boardName = this.boardService.getCurrentBoardName(); this.textDocumentName = this.boardService.getCurrentTextDocumentName(); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
result => { console.log(result); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
result => { if(result) { this.boardService .createBoard(result) .subscribe(data => { this.zone.run(() => { this.boardName = this.boardService.getCurrentBoardName(); this.textDocumentName = this.boardService.getCurrentTextDocumentName(); ...
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
data => { this.zone.run(() => { this.boardName = this.boardService.getCurrentBoardName(); this.textDocumentName = this.boardService.getCurrentTextDocumentName(); }); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
() => { this.boardName = this.boardService.getCurrentBoardName(); this.textDocumentName = this.boardService.getCurrentTextDocumentName(); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
result => { if(result) { this.boardService .createTextDocument(result) .subscribe(data => { this.zone.run(() => { console.log(this.boardService.getCurrentTextDocumentName()); this.textDocumentName = this.boardService.getCurrentTextDocumentNa...
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
data => { this.zone.run(() => { console.log(this.boardService.getCurrentTextDocumentName()); this.textDocumentName = this.boardService.getCurrentTextDocumentName(); }); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
() => { console.log(this.boardService.getCurrentTextDocumentName()); this.textDocumentName = this.boardService.getCurrentTextDocumentName(); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
result => { if(result && result.name !== this.boardName) { this.boardService .getTextDocument(result.ownerEmail, result.name) .subscribe(data => { this.zone.run(() => { console.log(this.boardService.getCurrentTextDocumentName()); ...
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
data => { this.zone.run(() => { console.log(this.boardService.getCurrentTextDocumentName()); this.textDocumentName = this.boardService.getCurrentTextDocumentName(); }); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
() => { console.log(this.boardService.getCurrentTextDocumentName()); this.textDocumentName = this.boardService.getCurrentTextDocumentName(); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
() => { this.newBoardName = this.boardName; this.showChangeBoardNameInput = true; this.boardNameTimeoutId = setTimeout(() => { this.showChangeBoardNameInput = false}, 2000); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
() => { this.showChangeBoardNameInput = false}
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
() => { this.newTextDocumentName = this.textDocumentName; this.showChangeTextDocumentNameInput = true; this.textDocumentNameTimeoutId = setTimeout(() => { this.showChangeTextDocumentNameInput = false}, 2000); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
() => { this.showChangeTextDocumentNameInput = false}
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
data => { this.boardName = this.newBoardName; }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ArrowFunction
data => { this.textDocumentName = this.newTextDocumentName; }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
adaptElement(element :any) { var pdf = new jsPDF('p','pt','a4'); let canvas = document.createElement("canvas"); let images = element.getElementsByTagName("IMG"); let count = images.length; for(let image of images) { let newImage = new Image(); canvas.width = image.width; ...
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
htmlToCanvas() { let clone = document.querySelector('.ql-editor').cloneNode(true); this.adaptElement(clone); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
whiteBoardOpen() { this.boardService.unfocusQuillEditor(); this.dialog.closeAll(); this.dialog .open(BoardCanvasDialogComponent, {width: '100vw', height: '100vh', disableClose: true}); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
insertLastUploadedFile() { this.boardService.insertLastUploadedFile(); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
openFileGallery() { this.boardService.unfocusQuillEditor(); this.dialog.closeAll(); this.dialog .open(BoardFileGalleryComponent, {width: '100vw', height: '100vh'}); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
setQuillEditor(event) { this.boardService.setQuillEditor(event); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
shareBoard() { if(this.boardService.isOwner()) { this.boardService.unfocusQuillEditor(); this.dialog.closeAll(); this.boardService .getMembers() .subscribe(data => { console.log(data.userIds); this.dialog .open(BoardShareDialogComponent, {wid...
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
changeBoard() { this.boardService.unfocusQuillEditor(); this.dialog.closeAll(); this.dialog .open(BoardListDialogComponent, {width: "55vw"}) .afterClosed().subscribe(result => { if(result && result.name !== this.boardName) { this.boardService .getBoard...
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
showRoadMap() { this.boardService.unfocusQuillEditor(); this.dialog.closeAll(); this.dialog .open(RoadMapDialogComponent, {width: "65vw"}) .afterClosed().subscribe(result => { console.log(result); }); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
newBoard() { this.boardService.unfocusQuillEditor(); this.dialog.closeAll(); this.dialog .open(BoardNewDialogComponent) .afterClosed().subscribe(result => { if(result) { this.boardService .createBoard(result) .subscribe(data => { this.zone...
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
newTextDocument() { this.boardService.unfocusQuillEditor(); this.dialog.closeAll(); this.dialog .open(TextDocumentNewDialogComponent) .afterClosed().subscribe(result => { if(result) { this.boardService .createTextDocument(result) .subscribe(data => { ...
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
changeTextDocument() { this.boardService.unfocusQuillEditor(); this.dialog.closeAll(); this.dialog .open(TextDocumentListDialogComponent, {width: "55vw"}) .afterClosed().subscribe(result => { if(result && result.name !== this.boardName) { this.boardService ...
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
showChangeBoardName() { if(!this.boardService.isOwner() || this.boardService.isShared()) { return; } this.zone.run(() => { this.newBoardName = this.boardName; this.showChangeBoardNameInput = true; this.boardNameTimeoutId = setTimeout(() => { this.showChangeBoardNameInp...
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
showChangeTextDocumentName() { this.zone.run(() => { this.newTextDocumentName = this.textDocumentName; this.showChangeTextDocumentNameInput = true; this.textDocumentNameTimeoutId = setTimeout(() => { this.showChangeTextDocumentNameInput = false}, 2000); }); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
focusedBoardNameInput() { clearTimeout(this.boardNameTimeoutId); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
focusedTextDocumentNameInput() { clearTimeout(this.textDocumentNameTimeoutId); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
changeBoardName() { if(this.newBoardName !== this.boardName && !this.boardService.isShared()) { this.boardService .changeBoardName(this.newBoardName) .subscribe(data => { this.boardName = this.newBoardName; }, error => {}); } this.showChangeBoardNa...
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
changeTextDocumentName() { if(this.newTextDocumentName !== this.textDocumentName) { this.boardService .changeTextDocumentName(this.newTextDocumentName) .subscribe(data => { this.textDocumentName = this.newTextDocumentName; }, error => {}); } this.showChange...
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
hideBoardNameInput() { console.log('lost'); this.showChangeBoardNameInput = false; }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
hideTextDocumentNameInput() { console.log('lost'); this.showChangeTextDocumentNameInput = false; }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
MethodDeclaration
clearAndLogout() { console.log('here'); this.dialog.closeAll(); this.boardService.clearAndLogout(); this.router.navigateByUrl('/login'); }
1729org/Hadron
HadronClient/src/app/board-zone/board-zone.component.ts
TypeScript
ClassDeclaration
class HeroesContainerCard extends Component<Props> { render() { return ( <Link href={"/heroes/" + this.props.subClassName} passHref> <div className={styles.heroCardContainer}> <Image src={this.props.imgSrc} alt=...
Aearsears/RTS-ping-simulator
components/heroes-container/HeroesContainerCard.tsx
TypeScript
InterfaceDeclaration
interface Props { class: string; subClassName: string; subClassNameDisplay: string; primaryStat: string; imgSrc: StaticImageData; }
Aearsears/RTS-ping-simulator
components/heroes-container/HeroesContainerCard.tsx
TypeScript
MethodDeclaration
render() { return ( <Link href={"/heroes/" + this.props.subClassName} passHref> <div className={styles.heroCardContainer}> <Image src={this.props.imgSrc} alt="img of class" height="200" ...
Aearsears/RTS-ping-simulator
components/heroes-container/HeroesContainerCard.tsx
TypeScript
ArrowFunction
() => { button.dispose(); }
cbzheng/nb2slide
src/nb2slide.ts
TypeScript
ArrowFunction
(sender) => { }
cbzheng/nb2slide
src/nb2slide.ts
TypeScript
ArrowFunction
() => { if (this.cellsIndex === undefined) { alert('You should start the NB2Slide widget to use this function') return } const activeCell = this.notebookTools.activeNotebookPanel.content.activeCell let cellOutput = null try { ...
cbzheng/nb2slide
src/nb2slide.ts
TypeScript
ArrowFunction
(args: any) => { //@ts-ignore const cells: Array<Cell> = this.notebookTools.activeNotebookPanel.content.widgets this.notebookPanel = this.notebookTools.activeNotebookPanel this.cellsIndex = computeCurCellsIdx(cells) // configure the widge...
cbzheng/nb2slide
src/nb2slide.ts
TypeScript
ArrowFunction
(cellIdx: number) => { this.notebookPanel.content.activeCellIndex = cellIdx this.cellsIndex[cellIdx].node.scrollIntoView(); }
cbzheng/nb2slide
src/nb2slide.ts
TypeScript