type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration |
toggleVideoMuted(): Promise<boolean>; | TommyTeaVee/Calla | Calla/Calla.d.ts | TypeScript |
MethodDeclaration |
getAudioMuted(): Promise<boolean>; | TommyTeaVee/Calla | Calla/Calla.d.ts | TypeScript |
MethodDeclaration |
getVideoMuted(): Promise<boolean>; | TommyTeaVee/Calla | Calla/Calla.d.ts | TypeScript |
MethodDeclaration |
userExists(id: string): boolean; | TommyTeaVee/Calla | Calla/Calla.d.ts | TypeScript |
MethodDeclaration |
getUserNames(): string[][]; | TommyTeaVee/Calla | Calla/Calla.d.ts | TypeScript |
MethodDeclaration |
join(roomName: string, enableTeleconference: boolean): Promise<void>; | TommyTeaVee/Calla | Calla/Calla.d.ts | TypeScript |
MethodDeclaration |
identify(userName: string): Promise<void>; | TommyTeaVee/Calla | Calla/Calla.d.ts | TypeScript |
MethodDeclaration |
disconnect(): Promise<void>; | TommyTeaVee/Calla | Calla/Calla.d.ts | TypeScript |
MethodDeclaration |
setAudioOutputDevice(device: MediaDeviceInfo): Promise<void>; | TommyTeaVee/Calla | Calla/Calla.d.ts | TypeScript |
MethodDeclaration |
setAudioMuted(muted: boolean): Promise<boolean>; | TommyTeaVee/Calla | Calla/Calla.d.ts | TypeScript |
MethodDeclaration |
setVideoMuted(muted: boolean): Promise<boolean>; | TommyTeaVee/Calla | Calla/Calla.d.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = undefined
const endDate1 = undefined
const startDate2 = new Date("2020-11-01T00:00:00.000Z")
const endDate2 = new Date("2020-11-02T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, startDate2, endDate2)).toEqual(true)
} | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate2 = undefined
const endDate2 = undefined
const startDate1 = new Date("2020-11-01T00:00:00.000Z")
const endDate1 = new Date("2020-11-02T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, startDate2, endDate2)).toEqual(true)
} | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = undefined
const endDate1 = undefined
const startDate2 = undefined
const endDate2 = undefined
expect(dateRangesOverlapping(startDate1, endDate1, startDate2, endDate2)).toEqual(true)
} | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2020-11-01T00:00:00.000Z")
const endDate1 = new Date("2020-11-01T00:00:00.000Z")
const startDate2 = new Date("2020-10-31T00:00:00.000Z")
const endDate2 = new Date("2021-09-30T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = undefined
const endDate1 = new Date("2020-11-01T00:00:00.000Z")
const startDate2 = new Date("2020-10-31T00:00:00.000Z")
const endDate2 = new Date("2021-09-30T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, startDate2, endDate2)).toEqual(t... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = undefined
const endDate1 = new Date("2022-08-01T00:00:00.000Z")
const startDate2 = new Date("2020-10-31T00:00:00.000Z")
const endDate2 = new Date("2021-09-30T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, startDate2, endDate2)).toEqual(t... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = undefined
const endDate1 = new Date("2020-08-01T00:00:00.000Z")
const startDate2 = new Date("2020-10-31T00:00:00.000Z")
const endDate2 = new Date("2021-09-30T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, startDate2, endDate2)).toEqual(f... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2020-10-31T00:00:00.000Z")
const endDate1 = undefined
const startDate2 = new Date("2020-10-31T00:00:00.000Z")
const endDate2 = new Date("2021-09-30T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, startDate2, endDate2)).toEqual(t... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2022-10-31T00:00:00.000Z")
const endDate1 = undefined
const startDate2 = new Date("2020-10-31T00:00:00.000Z")
const endDate2 = new Date("2021-09-30T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, startDate2, endDate2)).toEqual(f... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-11-30T00:00:00.000Z")
const endDate1 = undefined
const startDate2 = new Date("2020-10-31T00:00:00.000Z")
const endDate2 = new Date("2021-09-30T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, startDate2, endDate2)).toEqual(t... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-10-31T00:00:00.000Z")
const endDate1 = new Date("2020-11-30T00:00:00.000Z")
const startDate2 = undefined
const endDate2 = new Date("2020-09-30T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, startDate2, endDate2)).toEqual(t... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-10-31T00:00:00.000Z")
const endDate1 = new Date("2020-11-30T00:00:00.000Z")
const startDate2 = undefined
const endDate2 = new Date("2022-09-30T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, startDate2, endDate2)).toEqual(t... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-10-31T00:00:00.000Z")
const endDate1 = new Date("2020-11-30T00:00:00.000Z")
const startDate2 = undefined
const endDate2 = new Date("2019-09-30T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, startDate2, endDate2)).toEqual(f... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-10-31T00:00:00.000Z")
const endDate1 = new Date("2020-11-30T00:00:00.000Z")
const startDate2 = new Date("2019-11-30T00:00:00.000Z")
const endDate2 = undefined
expect(dateRangesOverlapping(startDate1, endDate1, startDate2, endDate2)).toEqual(t... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-10-31T00:00:00.000Z")
const endDate1 = new Date("2020-11-30T00:00:00.000Z")
const startDate2 = new Date("2020-12-01T00:00:00.000Z")
const endDate2 = undefined
expect(dateRangesOverlapping(startDate1, endDate1, startDate2, endDate2)).toEqual(f... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-10-31T00:00:00.000Z")
const endDate1 = new Date("2020-11-30T00:00:00.000Z")
const startDate2 = new Date("2018-12-01T00:00:00.000Z")
const endDate2 = undefined
expect(dateRangesOverlapping(startDate1, endDate1, startDate2, endDate2)).toEqual(t... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2018-10-31T00:00:00.000Z")
const endDate1 = new Date("2020-11-30T00:00:00.000Z")
const startDate2 = new Date("2019-12-01T00:00:00.000Z")
const endDate2 = new Date("2020-12-01T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2018-10-31T00:00:00.000Z")
const endDate1 = new Date("2021-11-30T00:00:00.000Z")
const startDate2 = new Date("2019-12-01T00:00:00.000Z")
const endDate2 = new Date("2020-12-01T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2020-10-31T00:00:00.000Z")
const endDate1 = new Date("2020-11-30T00:00:00.000Z")
const startDate2 = new Date("2019-12-01T00:00:00.000Z")
const endDate2 = new Date("2020-12-01T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2020-10-31T00:00:00.000Z")
const endDate1 = new Date("2021-11-30T00:00:00.000Z")
const startDate2 = new Date("2019-12-01T00:00:00.000Z")
const endDate2 = new Date("2020-12-01T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2020-10-31T00:00:00.000Z")
const endDate1 = new Date("2021-11-30T00:00:00.000Z")
const startDate2 = new Date("2019-11-01T00:00:00.000Z")
const endDate2 = new Date("2019-12-01T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-10-01T00:00:00.000Z")
const endDate1 = new Date("2019-10-31T00:00:00.000Z")
const startDate2 = new Date("2019-11-01T00:00:00.000Z")
const endDate2 = new Date("2019-12-01T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-10-01T00:00:00.000Z")
const endDate1 = new Date("2019-12-31T00:00:00.000Z")
const startDate2 = new Date("2018-11-01T00:00:00.000Z")
const endDate2 = new Date("2019-12-01T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-10-01T00:00:00.000Z")
const endDate1 = new Date("2019-12-31T00:00:00.000Z")
const startDate2 = new Date("2018-11-01T00:00:00.000Z")
const endDate2 = new Date("2020-12-01T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-10-01T00:00:00.000Z")
const endDate1 = new Date("2019-12-31T00:00:00.000Z")
const startDate2 = new Date("2019-11-01T00:00:00.000Z")
const endDate2 = new Date("2019-12-01T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-10-01T00:00:00.000Z")
const endDate1 = new Date("2019-12-31T00:00:00.000Z")
const startDate2 = new Date("2019-11-01T00:00:00.000Z")
const endDate2 = new Date("2020-12-01T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-10-01T00:00:00.000Z")
const endDate1 = new Date("2019-12-31T00:00:00.000Z")
const startDate2 = new Date("2020-11-01T00:00:00.000Z")
const endDate2 = new Date("2020-12-01T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-10-01T00:00:00.000Z")
const endDate1 = new Date("2019-12-31T00:00:00.000Z")
const startDate2 = new Date("2018-11-01T00:00:00.000Z")
const endDate2 = new Date("2018-12-01T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2020-10-01T00:00:00.000Z")
const endDate1 = new Date("2019-12-31T00:00:00.000Z")
const startDate2 = new Date("2018-11-01T00:00:00.000Z")
const endDate2 = new Date("2018-12-01T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-10-01T00:00:00.000Z")
const endDate1 = new Date("2019-12-31T00:00:00.000Z")
const startDate2 = new Date("2020-11-01T00:00:00.000Z")
const endDate2 = new Date("2018-12-01T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-10-01T00:00:00.000Z")
const endDate1 = new Date("2019-12-31T00:00:00.000Z")
const startDate2 = new Date("2019-10-01T00:00:00.000Z")
const endDate2 = new Date("2019-12-01T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-09-30T00:00:00.000Z")
const endDate1 = new Date("2019-12-31T00:00:00.000Z")
const startDate2 = new Date("2019-10-01T00:00:00.000Z")
const endDate2 = new Date("2019-12-31T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-09-30T00:00:00.000Z")
const endDate1 = new Date("2019-09-30T00:00:00.000Z")
const startDate2 = new Date("2018-10-01T00:00:00.000Z")
const endDate2 = new Date("2019-12-31T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const startDate1 = new Date("2019-09-30T00:00:00.000Z")
const endDate1 = new Date("2019-10-30T00:00:00.000Z")
const startDate2 = new Date("2019-10-01T00:00:00.000Z")
const endDate2 = new Date("2019-10-01T00:00:00.000Z")
expect(dateRangesOverlapping(startDate1, endDate1, start... | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const returnedDate: Date = getDateObject('2018-02-25')
expect(returnedDate.getFullYear()).toEqual(2018)
// month is returned in form of 0-11 so need to adjust accordingly
expect(returnedDate.getMonth()).toEqual(1)
expect(returnedDate.getDate()).toEqual(25)
} | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ArrowFunction |
() => {
expect.hasAssertions()
const returnedDate: Date = getDateObject('02/25/2018')
expect(returnedDate.getFullYear()).toEqual(2018)
// month is returned in form of 0-11 so need to adjust accordingly
expect(returnedDate.getMonth()).toEqual(1)
expect(returnedDate.getDate()).toEqual(25)
} | 221B-io/pace-admin | ingest/units/test/dateRange.test.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'app-followers',
templateUrl: './followers.page.html',
styleUrls: ['./followers.page.scss'],
})
export class FollowersPage implements OnInit {
constructor() { }
ngOnInit() {
}
} | Ariel-W/purple-app | src/app/followers/followers.page.ts | TypeScript |
FunctionDeclaration |
export default function Toggle() {
const { action, state } = useStateMachine(updateSetting)
const lightMode = state?.setting?.lightMode
const onChange = (e) => {
action({
lightMode: e.target.checked,
})
if (e.target.checked) {
document.querySelector("body").classList.add("light")
} ... | Anima-t3d/documentation | src/components/Toggle.tsx | TypeScript |
ArrowFunction |
(e) => {
action({
lightMode: e.target.checked,
})
if (e.target.checked) {
document.querySelector("body").classList.add("light")
} else {
document.querySelector("body").classList.remove("light")
}
} | Anima-t3d/documentation | src/components/Toggle.tsx | TypeScript |
ClassDeclaration |
@Injectable()
export class ConfirmService {
constructor(private matDialog: MatDialog) {
}
showDialog(message: string = ''): Observable<boolean> {
const dialogRef = this.matDialog.open(ConfirmDialogComponent, {
data: message
});
return dialogRef.afterClosed();
}
} | Nicolai8/tomatosplash | src/app/core/services/confirm.service.ts | TypeScript |
MethodDeclaration |
showDialog(message: string = ''): Observable<boolean> {
const dialogRef = this.matDialog.open(ConfirmDialogComponent, {
data: message
});
return dialogRef.afterClosed();
} | Nicolai8/tomatosplash | src/app/core/services/confirm.service.ts | TypeScript |
ArrowFunction |
item => {
this.case=item;
console.log(this.case);
console.log(item);
this.Type=item.type;
} | AlexAnguianoG/Pound4Pound | src/app/views/plan-view/plan-view.component.ts | TypeScript |
ArrowFunction |
data =>{
console.log(data);
} | AlexAnguianoG/Pound4Pound | src/app/views/plan-view/plan-view.component.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'app-plan-view',
templateUrl: './plan-view.component.html',
styleUrls: ['./plan-view.component.scss']
})
export class PlanViewComponent implements OnInit {
Type='';
RoleObject;
BoundRole = '';
ID: Number;
case: CaseModel;
nutriologistFlag = false;
constructor(private Authenti... | AlexAnguianoG/Pound4Pound | src/app/views/plan-view/plan-view.component.ts | TypeScript |
MethodDeclaration |
ngOnInit() {
this.RoleObject = JSON.parse(localStorage.getItem('currentUser'));
this.BoundRole = this.RoleObject.role;
if(this.BoundRole == 'Nutriologist'){
this.nutriologistFlag = true;
}
let itemID = this.activatedRoute.snapshot.queryParams["loadID"];
this.ID = itemID;
this.loadCase... | AlexAnguianoG/Pound4Pound | src/app/views/plan-view/plan-view.component.ts | TypeScript |
MethodDeclaration |
loadCaseToApprove(itemID: number) {
//let update
this.caseService.getCaseById(itemID)
.subscribe(item => {
this.case=item;
console.log(this.case);
console.log(item);
this.Type=item.type;
})
} | AlexAnguianoG/Pound4Pound | src/app/views/plan-view/plan-view.component.ts | TypeScript |
MethodDeclaration |
approve(){
this.caseService.approveCase(this.ID).subscribe(data =>{
console.log(data);
});
this.router.navigate(['/nutriologistDashboard'])
} | AlexAnguianoG/Pound4Pound | src/app/views/plan-view/plan-view.component.ts | TypeScript |
MethodDeclaration |
logout(){
this.AuthenticationService.logout();
this.router.navigate(['/login']);
} | AlexAnguianoG/Pound4Pound | src/app/views/plan-view/plan-view.component.ts | TypeScript |
ClassDeclaration |
export class UpdateTaskDTO extends Task {
title: string;
description?: string;
completed: boolean;
} | wilsonllucena/poc-nestjs | src/tasks/dtos/UpdateTaskDTO.ts | TypeScript |
FunctionDeclaration |
function makeMP4Url(hlsUrl: string, profileName: string): string {
const pp = hlsUrl.split("/");
pp.pop();
return pp.join("/") + "/" + profileName + ".mp4";
} | livepeer/livepeer-com | packages/www/components/Dashboard/AllSessionsTable/index.tsx | TypeScript |
ArrowFunction |
<D extends TableData>({
cell,
}: CellComponentProps<D, RecordingUrlCellProps>) => {
const id = cell.value.id;
return (
<Box id={`mp4-link-dropdown-${id}`} | livepeer/livepeer-com | packages/www/components/Dashboard/AllSessionsTable/index.tsx | TypeScript |
ArrowFunction |
({ title = "Sessions" }: { title?: string }) => {
const { user, getStreamSessionsByUserId } = useApi();
const tableProps = useTableState({
tableId: "allSessionsTable",
});
const [openSnackbar] = useSnackbar();
const columns: Column<SessionsTableData>[] = useMemo(
() => [
{
Header: "Str... | livepeer/livepeer-com | packages/www/components/Dashboard/AllSessionsTable/index.tsx | TypeScript |
ArrowFunction |
() => [
{
Header: "Stream",
accessor: "parentStream",
Cell: TextCell,
sortType: (...params: SortTypeArgs) =>
stringSort("original.parentStream.name", ...params),
},
{
Header: "Created at",
accessor: "created",
Cell: DateCell,
s... | livepeer/livepeer-com | packages/www/components/Dashboard/AllSessionsTable/index.tsx | TypeScript |
ArrowFunction |
(...params: SortTypeArgs) =>
stringSort("original.parentStream.name", ...params) | livepeer/livepeer-com | packages/www/components/Dashboard/AllSessionsTable/index.tsx | TypeScript |
ArrowFunction |
(...params: SortTypeArgs) =>
dateSort("original.created.date", ...params) | livepeer/livepeer-com | packages/www/components/Dashboard/AllSessionsTable/index.tsx | TypeScript |
ArrowFunction |
(...params: SortTypeArgs) =>
numberSort("original.duration.duration", ...params) | livepeer/livepeer-com | packages/www/components/Dashboard/AllSessionsTable/index.tsx | TypeScript |
ArrowFunction |
async (state) => {
const [streams, nextCursor, count] = await getStreamSessionsByUserId(
user.id,
state.cursor,
state.pageSize,
formatFiltersForApiRequest(state.filters, {
parseNumber: (n) => n * 60,
}),
true
);
return {
nextCursor,
... | livepeer/livepeer-com | packages/www/components/Dashboard/AllSessionsTable/index.tsx | TypeScript |
ArrowFunction |
(n) => n * 60 | livepeer/livepeer-com | packages/www/components/Dashboard/AllSessionsTable/index.tsx | TypeScript |
ArrowFunction |
(stream: any) => {
return {
id: stream.id,
parentStream: {
id: stream.parentId,
name: stream.parentStream.name,
children: (
<A variant="violet" as={Box}>
{stream.parentStream.name}
</A> | livepeer/livepeer-com | packages/www/components/Dashboard/AllSessionsTable/index.tsx | TypeScript |
TypeAliasDeclaration |
type Profile = { name: string; width: number; height: number }; | livepeer/livepeer-com | packages/www/components/Dashboard/AllSessionsTable/index.tsx | TypeScript |
TypeAliasDeclaration |
export type RecordingUrlCellProps = {
children?: React.ReactNode;
tooltipChildren?: React.ReactNode;
mp4Url?: string;
id?: string;
profiles?: Array<Profile>;
showMP4: boolean;
}; | livepeer/livepeer-com | packages/www/components/Dashboard/AllSessionsTable/index.tsx | TypeScript |
TypeAliasDeclaration |
type SessionsTableData = {
id: string;
parentStream: TextCellProps;
recordingUrl: TextCellProps;
created: DateCellProps;
duration: DurationCellProps;
}; | livepeer/livepeer-com | packages/www/components/Dashboard/AllSessionsTable/index.tsx | TypeScript |
MethodDeclaration |
makeMP4Url(cell | livepeer/livepeer-com | packages/www/components/Dashboard/AllSessionsTable/index.tsx | TypeScript |
MethodDeclaration |
stream <b>{stream.parentStream.name} | livepeer/livepeer-com | packages/www/components/Dashboard/AllSessionsTable/index.tsx | TypeScript |
MethodDeclaration |
truncate(stream | livepeer/livepeer-com | packages/www/components/Dashboard/AllSessionsTable/index.tsx | TypeScript |
ArrowFunction |
() => {
console.log('Socket.IO connected');
this.socket.emit('event', {test: 23})
} | birladeanuadrian/land-drone | test-image-viewer/src/app/shared/services/cloud-socket.service.ts | TypeScript |
ArrowFunction |
() => {
console.log('Socket.IO disconnected');
} | birladeanuadrian/land-drone | test-image-viewer/src/app/shared/services/cloud-socket.service.ts | TypeScript |
ArrowFunction |
(...args) => {
console.log('Received data', args);
} | birladeanuadrian/land-drone | test-image-viewer/src/app/shared/services/cloud-socket.service.ts | TypeScript |
ArrowFunction |
() => {
alert('Login successful');
} | birladeanuadrian/land-drone | test-image-viewer/src/app/shared/services/cloud-socket.service.ts | TypeScript |
ArrowFunction |
() => {
alert('Login failed');
} | birladeanuadrian/land-drone | test-image-viewer/src/app/shared/services/cloud-socket.service.ts | TypeScript |
ArrowFunction |
() => {
alert('Someone else is the active controller. Please try again later');
} | birladeanuadrian/land-drone | test-image-viewer/src/app/shared/services/cloud-socket.service.ts | TypeScript |
ArrowFunction |
(base64Image: string, ts_drone_send: number, delta_rec: number, delta_proc: number, ts_cloud_send: number) => {
const event = {
buffer: base64Image,
delta_proc: delta_proc,
delta_rec: delta_rec,
ts_cloud_send: ts_cloud_send,
ts_drone_send: ts_drone_send
};
this... | birladeanuadrian/land-drone | test-image-viewer/src/app/shared/services/cloud-socket.service.ts | TypeScript |
ArrowFunction |
() => {
window.open(downloadUrl, '_blank');
} | birladeanuadrian/land-drone | test-image-viewer/src/app/shared/services/cloud-socket.service.ts | TypeScript |
ClassDeclaration |
@Injectable({
providedIn: 'root'
})
export class CloudSocketService {
private socket: io.Socket;
imageEmitter: AngularImageEmitter;
constructor() {
console.log('Cloud socket constructor');
this.imageEmitter = new AngularImageEmitter();
// this.socket = io(environment.ioServer, {
// path: e... | birladeanuadrian/land-drone | test-image-viewer/src/app/shared/services/cloud-socket.service.ts | TypeScript |
MethodDeclaration |
listen() {
this.socket.on('image', (base64Image: string, ts_drone_send: number, delta_rec: number, delta_proc: number, ts_cloud_send: number) => {
const event = {
buffer: base64Image,
delta_proc: delta_proc,
delta_rec: delta_rec,
ts_cloud_send: ts_cloud_send,
ts_drone_... | birladeanuadrian/land-drone | test-image-viewer/src/app/shared/services/cloud-socket.service.ts | TypeScript |
MethodDeclaration |
login(secret: string) {
this.socket.emit('login', secret);
} | birladeanuadrian/land-drone | test-image-viewer/src/app/shared/services/cloud-socket.service.ts | TypeScript |
MethodDeclaration |
sendCommand(acceleration: number, direction: number) {
const now = Date.now();
const message = {acceleration, direction, now};
this.socket.emit('control-message', JSON.stringify(message));
} | birladeanuadrian/land-drone | test-image-viewer/src/app/shared/services/cloud-socket.service.ts | TypeScript |
MethodDeclaration |
startTracking() {
this.socket.emit('start-track');
} | birladeanuadrian/land-drone | test-image-viewer/src/app/shared/services/cloud-socket.service.ts | TypeScript |
MethodDeclaration |
stopTracking() {
this.socket.emit('stop-track');
} | birladeanuadrian/land-drone | test-image-viewer/src/app/shared/services/cloud-socket.service.ts | TypeScript |
MethodDeclaration |
startRec() {
this.socket.emit('start-rec');
} | birladeanuadrian/land-drone | test-image-viewer/src/app/shared/services/cloud-socket.service.ts | TypeScript |
MethodDeclaration |
stopRec() {
this.socket.emit('stop-rec');
const downloadUrl = environment.ioServer + 'download-video';
setTimeout(() => {
window.open(downloadUrl, '_blank');
}, 1000);
} | birladeanuadrian/land-drone | test-image-viewer/src/app/shared/services/cloud-socket.service.ts | TypeScript |
ClassDeclaration |
@Injectable()
export class AuthGuard implements CanActivate {
constructor(private router: Router) { }
canActivate() {
if (localStorage.getItem('currentUser')) {
console.log(localStorage.getItem('currentUser'));
return true;
}
this.router.navigate(['/login']);
return false;
}
} | mariufa/angular-boiler | src/app/auth.guard.ts | TypeScript |
MethodDeclaration |
canActivate() {
if (localStorage.getItem('currentUser')) {
console.log(localStorage.getItem('currentUser'));
return true;
}
this.router.navigate(['/login']);
return false;
} | mariufa/angular-boiler | src/app/auth.guard.ts | TypeScript |
ClassDeclaration |
export default class SettingMock {
public constructor(public readonly settingName?: string,
public readonly settingValue?: string) {
setting.name = this.settingName;
setting.value = this.settingValue;
saveStub.reset();
removeStub.reset();
}
public get save(): SinonStub<unknown[], Promise<boolean>> {
... | scottohara/tvmanager | spec/public/mocks/setting-model-mock.ts | TypeScript |
InterfaceDeclaration |
interface Setting {
name?: string;
value?: string;
} | scottohara/tvmanager | spec/public/mocks/setting-model-mock.ts | TypeScript |
ArrowFunction |
() => {
uploadFace(j, i, face);
} | CGHWorker/Babylon.js | Viewer/src/labs/texture.ts | TypeScript |
ArrowFunction |
() => {
return textureComplete();
} | CGHWorker/Babylon.js | Viewer/src/labs/texture.ts | TypeScript |
ClassDeclaration | /**
* A minimal WebGL cubemap descriptor
*/
export class TextureCube {
/**
* Returns the width of a face of the texture or 0 if not available
*/
public get Width(): number {
return (this.source && this.source[0] && this.source[0][0]) ? this.source[0][0].width : 0;
}
/**
... | CGHWorker/Babylon.js | Viewer/src/labs/texture.ts | TypeScript |
InterfaceDeclaration | /**
* Raw texture data and descriptor sufficient for WebGL texture upload
*/
export interface TextureData {
/**
* Width of image
*/
width: number;
/**
* Height of image
*/
height: number;
/**
* Format of pixels in data
*/
format: PixelFormat;
/*... | CGHWorker/Babylon.js | Viewer/src/labs/texture.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.