type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration |
filter(callback: (value: T) => boolean): Observable<T>; | 1000ch/DefinitelyTyped | types/zen-observable/index.d.ts | TypeScript |
MethodDeclaration |
reduce(callback: (previousValue: T, currentValue: T) => T, initialValue?: T): Observable<T>; | 1000ch/DefinitelyTyped | types/zen-observable/index.d.ts | TypeScript |
MethodDeclaration |
reduce<R>(callback: (previousValue: R, currentValue: T) => R, initialValue?: R): Observable<R>; | 1000ch/DefinitelyTyped | types/zen-observable/index.d.ts | TypeScript |
MethodDeclaration |
flatMap<R>(callback: (value: T) => ZenObservable.ObservableLike<R>): Observable<R>; | 1000ch/DefinitelyTyped | types/zen-observable/index.d.ts | TypeScript |
MethodDeclaration |
concat<R>(...observable: Array<Observable<R>>): Observable<R>; | 1000ch/DefinitelyTyped | types/zen-observable/index.d.ts | TypeScript |
MethodDeclaration |
static from<R>(observable: Observable<R> | ZenObservable.ObservableLike<R> | ArrayLike<R>): Observable<R>; | 1000ch/DefinitelyTyped | types/zen-observable/index.d.ts | TypeScript |
MethodDeclaration |
static of<R>(...items: R[]): Observable<R>; | 1000ch/DefinitelyTyped | types/zen-observable/index.d.ts | TypeScript |
FunctionDeclaration |
export function socialReducer(state: SocialStoreModel = initialState, action: UserActions.UserActionsType) {
switch (action.type) {
case UserActions.fetchUsersAction.type:
return { ...state, ...action.payload, loading: true, error: null };
case UserActions.fetchUsersSuccessAction.type:
... | MrLalev/heimdall-ui | src/app/store/reducers/social.reducer.ts | TypeScript |
TypeAliasDeclaration |
export type RequestIdGenerator = () => string | olivierbeaulieu/client-js | src/types/client.ts | TypeScript |
TypeAliasDeclaration |
export type DfuseClientEndpoints = {
authUrl: string
graphqlQueryUrl: string
graphqlStreamUrl: string
restUrl: string
websocketUrl: string
} | olivierbeaulieu/client-js | src/types/client.ts | TypeScript |
ClassDeclaration |
export declare class SubjectsBounds implements ISubjectsBounds {
private readonly overflowContainer;
readonly trigger: Bounds;
readonly layer: Bounds;
readonly arrow: Bounds;
readonly parent: Bounds;
readonly window: Bounds;
readonly scrollContainers: Bounds[];
private construct... | padhs/instagram-clone | instagram/node_modules/.react-laag-baUnmr1n/dist/SubjectsBounds.d.ts | TypeScript |
InterfaceDeclaration |
interface ISubjectsBounds {
trigger: IBounds;
layer: IBounds;
arrow: IBounds;
parent: IBounds;
window: IBounds;
scrollContainers: IBounds[];
} | padhs/instagram-clone | instagram/node_modules/.react-laag-baUnmr1n/dist/SubjectsBounds.d.ts | TypeScript |
MethodDeclaration |
static create(environment: Window, layer: HTMLElement, trigger: HTMLElement, parent: HTMLElement | undefined, arrow: HTMLElement | null, scrollContainers: HTMLElement[], overflowContainer: boolean, getTriggerBounds?: () => IBounds): SubjectsBounds; | padhs/instagram-clone | instagram/node_modules/.react-laag-baUnmr1n/dist/SubjectsBounds.d.ts | TypeScript |
MethodDeclaration |
merge(subjectsBounds: Partial<ISubjectsBounds>): SubjectsBounds; | padhs/instagram-clone | instagram/node_modules/.react-laag-baUnmr1n/dist/SubjectsBounds.d.ts | TypeScript |
MethodDeclaration |
offsetsToScrollContainers(subject: Bounds, allContainers?: boolean): import("./BoundsOffsets").BoundsOffsets[]; | padhs/instagram-clone | instagram/node_modules/.react-laag-baUnmr1n/dist/SubjectsBounds.d.ts | TypeScript |
FunctionDeclaration |
function setMediaToken(mt) {
mediaToken = mt
} | bitcoincoredotbin/sphinx-relay | src/utils/meme.ts | TypeScript |
FunctionDeclaration |
export function useSfcStyles(
vueUri: string,
vueDoc: Ref<TextDocument>,
styles: Ref<shared.Sfc['styles']>,
) {
let version = 0;
const textDocuments = computed(() => {
const documents: {
textDocument: TextDocument,
module: string | undefined,
scoped: boolean,
}[] = [];
for (let i = 0; i < styles.... | ahnpnl/volar | packages/vue-typescript/src/use/useSfcStyles.ts | TypeScript |
ArrowFunction |
() => {
const documents: {
textDocument: TextDocument,
module: string | undefined,
scoped: boolean,
}[] = [];
for (let i = 0; i < styles.value.length; i++) {
const style = styles.value[i];
const lang = style.lang;
let content = style.content;
const documentUri = vueUri + '.' + i + '.' + lang... | ahnpnl/volar | packages/vue-typescript/src/use/useSfcStyles.ts | TypeScript |
ArrowFunction |
() => {
const sourceMaps: SourceMaps.EmbeddedDocumentSourceMap[] = [];
for (let i = 0; i < styles.value.length && i < textDocuments.value.length; i++) {
const cssData = textDocuments.value[i];
const style = styles.value[i];
const sourceMap = new SourceMaps.EmbeddedDocumentSourceMap(
sourceMapsId,
... | ahnpnl/volar | packages/vue-typescript/src/use/useSfcStyles.ts | TypeScript |
FunctionDeclaration |
function client<TRequest extends ProtobufMessage, TResponse extends ProtobufMessage, M extends MethodDefinition<TRequest, TResponse>>(methodDescriptor: M, props: ClientRpcOptions): Client<TRequest, TResponse>; | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface ProtobufMessageClass<T extends ProtobufMessage> extends impMessage.ProtobufMessageClass<T> {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface ProtobufMessage extends impMessage.ProtobufMessage {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface Transport extends impTransport.Transport {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface TransportOptions extends impTransport.TransportOptions {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface TransportFactory extends impTransport.TransportFactory {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface CrossBrowserHttpTransportInit extends impTransportHttp.CrossBrowserHttpTransportInit {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface FetchReadableStreamInit extends impTransportFetch.FetchTransportInit {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface XhrTransportInit extends impTransportXhr.XhrTransportInit {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface UnaryMethodDefinition<TRequest extends ProtobufMessage, TResponse extends ProtobufMessage> extends impService.UnaryMethodDefinition<TRequest, TResponse> {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface MethodDefinition<TRequest extends ProtobufMessage, TResponse extends ProtobufMessage> extends impService.MethodDefinition<TRequest, TResponse> {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface ServiceDefinition extends impService.ServiceDefinition {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface Client<TRequest extends ProtobufMessage, TResponse extends ProtobufMessage> extends impClient.Client<TRequest, TResponse> {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface RpcOptions extends impClient.RpcOptions {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface ClientRpcOptions extends impClient.ClientRpcOptions {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface Request extends impInvoke.Request {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface InvokeRpcOptions<TRequest extends ProtobufMessage, TResponse extends ProtobufMessage> extends impInvoke.InvokeRpcOptions<TRequest, TResponse> {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface UnaryOutput<TResponse extends ProtobufMessage> extends impUnary.UnaryOutput<TResponse> {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
InterfaceDeclaration |
interface UnaryRpcOptions<TRequest extends ProtobufMessage, TResponse extends ProtobufMessage> extends impUnary.UnaryRpcOptions<TRequest, TResponse> {
} | Bamthelearner/Locked-token-check | node_modules/@improbable-eng/grpc-web/dist/typings/index.d.ts | TypeScript |
ArrowFunction |
params => {
this.loading = true;
const checkin = params['checkin'];
const checkout = params['checkout'];
this.roomTypeService.getAll()
.subscribe(data => {
data.Items.forEach(e => {
this.calendarService.get(chec... | minhphiiuh/DoAnCC | src/app/search-result/search-result.component.ts | TypeScript |
ArrowFunction |
data => {
data.Items.forEach(e => {
this.calendarService.get(checkin, checkout, e.Name)
.subscribe(res => {
if (e.Quanlity - res.count !== 0) {
this.roomTypes.push(new RoomTypeDTO... | minhphiiuh/DoAnCC | src/app/search-result/search-result.component.ts | TypeScript |
ArrowFunction |
e => {
this.calendarService.get(checkin, checkout, e.Name)
.subscribe(res => {
if (e.Quanlity - res.count !== 0) {
this.roomTypes.push(new RoomTypeDTO(
e.Name,... | minhphiiuh/DoAnCC | src/app/search-result/search-result.component.ts | TypeScript |
ArrowFunction |
res => {
if (e.Quanlity - res.count !== 0) {
this.roomTypes.push(new RoomTypeDTO(
e.Name,
e.Quanlity,
e.Price,
... | minhphiiuh/DoAnCC | src/app/search-result/search-result.component.ts | TypeScript |
ArrowFunction |
element => {
this.total += element.NumberOfBooked * element.Price;
} | minhphiiuh/DoAnCC | src/app/search-result/search-result.component.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'app-search-result',
templateUrl: './search-result.component.html',
styleUrls: ['./search-result.component.css']
})
export class SearchResultComponent implements OnInit {
roomTypes: Array<RoomTypeDTO> = new Array<RoomTypeDTO>();
loading = false;
checkin: string;
chec... | minhphiiuh/DoAnCC | src/app/search-result/search-result.component.ts | TypeScript |
MethodDeclaration |
ngOnInit() {
this.roomTypes = new Array<RoomTypeDTO>()
this.route.queryParams.subscribe(params => {
this.loading = true;
const checkin = params['checkin'];
const checkout = params['checkout'];
this.roomTypeService.getAll()
.subscribe(data ... | minhphiiuh/DoAnCC | src/app/search-result/search-result.component.ts | TypeScript |
MethodDeclaration |
changeTotal(event) {
this.total = 0;
this.roomTypes.forEach(element => {
this.total += element.NumberOfBooked * element.Price;
});
} | minhphiiuh/DoAnCC | src/app/search-result/search-result.component.ts | TypeScript |
MethodDeclaration |
book() {
localStorage.setItem(Constant.ITEMS, JSON.stringify(this.roomTypes));
localStorage.setItem(Constant.TOTAL, this.total.toString());
this.router.navigate(['/shipping']);
} | minhphiiuh/DoAnCC | src/app/search-result/search-result.component.ts | TypeScript |
ArrowFunction |
resolve => {
resolvePersistenceEnabled = resolve;
} | charlouze/FairCount | src/app/app.module.ts | TypeScript |
ArrowFunction |
() => initializeApp(environment.firebase) | charlouze/FairCount | src/app/app.module.ts | TypeScript |
ArrowFunction |
() => {
const auth = getAuth();
if (!environment.production) {
connectAuthEmulator(auth, 'http://localhost:9099', { disableWarnings: true });
}
return auth;
} | charlouze/FairCount | src/app/app.module.ts | TypeScript |
ArrowFunction |
() => {
const firestore = getFirestore();
if (!environment.production) {
connectFirestoreEmulator(firestore, 'localhost', 8080);
}
enableMultiTabIndexedDbPersistence(firestore).then(
() => resolvePersistenceEnabled(true),
() => resolvePersistenceEnabled(false),
);
... | charlouze/FairCount | src/app/app.module.ts | TypeScript |
ArrowFunction |
() => resolvePersistenceEnabled(true) | charlouze/FairCount | src/app/app.module.ts | TypeScript |
ArrowFunction |
() => resolvePersistenceEnabled(false) | charlouze/FairCount | src/app/app.module.ts | TypeScript |
ClassDeclaration |
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
AppRoutingModule,
BrowserAnimationsModule,
MatLuxonDateModule,
ConfirmDialogModule,
MatSnackBarModule,
ServiceWorkerModule.register('ngsw-worker.js', {
enabled: environment.production,
// Register t... | charlouze/FairCount | src/app/app.module.ts | TypeScript |
ArrowFunction |
({
Icon,
component,
label,
onDragChange,
onClick,
}: ComponentProps) => {
const lastIsDragging = useRef<boolean | void>();
const [{ isDragging }, dragRef] = useDrag(
() => ({
type: component,
collect: (monitor) => ({
isDragging: monitor.isDragging(),
}),
}),
[]
);
... | piyusharorawork/webstudio-designer | app/designer/features/sidebar-left/panels/components.tsx | TypeScript |
ArrowFunction |
() => ({
type: component,
collect: (monitor) => ({
isDragging: monitor.isDragging(),
}),
}) | piyusharorawork/webstudio-designer | app/designer/features/sidebar-left/panels/components.tsx | TypeScript |
ArrowFunction |
(monitor) => ({
isDragging: monitor.isDragging(),
}) | piyusharorawork/webstudio-designer | app/designer/features/sidebar-left/panels/components.tsx | TypeScript |
ArrowFunction |
() => {
if (lastIsDragging.current !== undefined) onDragChange(isDragging);
lastIsDragging.current = isDragging;
} | piyusharorawork/webstudio-designer | app/designer/features/sidebar-left/panels/components.tsx | TypeScript |
ArrowFunction |
({
onDragChange,
publish,
onSetActiveTab,
}: ComponentsProps) => {
const components = (
Object.keys(primitives) as Array<Instance["component"]>
).filter((component) => primitives[component].isInlineOnly === false);
const handleDragChange = useCallback(
(isDragging: boolean) => {
onDragChange... | piyusharorawork/webstudio-designer | app/designer/features/sidebar-left/panels/components.tsx | TypeScript |
ArrowFunction |
(component) => primitives[component].isInlineOnly === false | piyusharorawork/webstudio-designer | app/designer/features/sidebar-left/panels/components.tsx | TypeScript |
ArrowFunction |
(isDragging: boolean) => {
onDragChange(isDragging);
publish<"dragStartInstance" | "dragEndInstance">({
type: isDragging === true ? "dragStartInstance" : "dragEndInstance",
});
} | piyusharorawork/webstudio-designer | app/designer/features/sidebar-left/panels/components.tsx | TypeScript |
ArrowFunction |
(component: Instance["component"]) => (
<Component
key={component} | piyusharorawork/webstudio-designer | app/designer/features/sidebar-left/panels/components.tsx | TypeScript |
ArrowFunction |
(dragData) => {
publish<"dragInstance", DragData>({
type: "dragInstance",
payload: {
instance: createInstance({ component: dragData.component }),
currentOffset: dragData.currentOffset,
},
});
} | piyusharorawork/webstudio-designer | app/designer/features/sidebar-left/panels/components.tsx | TypeScript |
TypeAliasDeclaration |
type ComponentProps = {
Icon: typeof Component1Icon;
component: Instance["component"];
onDragChange: (isDragging: boolean) => void;
onClick: MouseEventHandler<HTMLDivElement>;
label: string;
}; | piyusharorawork/webstudio-designer | app/designer/features/sidebar-left/panels/components.tsx | TypeScript |
TypeAliasDeclaration |
type ComponentsProps = {
onDragChange: ComponentProps["onDragChange"];
onSetActiveTab: (tabName: TabName) => void;
iframeRef: MutableRefObject<HTMLIFrameElement | null>;
publish: Publish;
}; | piyusharorawork/webstudio-designer | app/designer/features/sidebar-left/panels/components.tsx | TypeScript |
MethodDeclaration |
onSetActiveTab("none"); | piyusharorawork/webstudio-designer | app/designer/features/sidebar-left/panels/components.tsx | TypeScript |
MethodDeclaration |
publish< | piyusharorawork/webstudio-designer | app/designer/features/sidebar-left/panels/components.tsx | TypeScript |
ClassDeclaration |
export default class Box extends Phaser.Physics.Arcade.Sprite {
skin = SKINS.BOX
id: string
sync = true
constructor(scene: Phaser.Scene, id: number, x: number, y: number) {
super(scene, x, y, '')
scene.add.existing(this)
scene.physics.add.existing(this, true)
// @ts-ignore
this.body
... | Giant-develop/phaser3-multiplayer | src/server/game/arcadeObjects/box.ts | TypeScript |
ArrowFunction |
resolve => {
const clickHandler = menuItem => {
ContextMenuService.currentMenu = null;
resolve(menuItem);
};
const template = options.map(option => {
option.click = clickHandler;
return option;
});
const menu = ContextMenuService.currentMenu = Menu.buildF... | crazyrex/BotFramework-Emulator | packages/app/main/src/services/contextMenuService.ts | TypeScript |
ArrowFunction |
menuItem => {
ContextMenuService.currentMenu = null;
resolve(menuItem);
} | crazyrex/BotFramework-Emulator | packages/app/main/src/services/contextMenuService.ts | TypeScript |
ArrowFunction |
option => {
option.click = clickHandler;
return option;
} | crazyrex/BotFramework-Emulator | packages/app/main/src/services/contextMenuService.ts | TypeScript |
ClassDeclaration |
export class ContextMenuService {
private static currentMenu: Menu;
public static showMenuAndWaitForInput(options: Partial<MenuItemConstructorOptions>[]): Promise<any> {
if (ContextMenuService.currentMenu) {
ContextMenuService.currentMenu.closePopup();
}
return new Promise(resolve => {
co... | crazyrex/BotFramework-Emulator | packages/app/main/src/services/contextMenuService.ts | TypeScript |
MethodDeclaration |
public static showMenuAndWaitForInput(options: Partial<MenuItemConstructorOptions>[]): Promise<any> {
if (ContextMenuService.currentMenu) {
ContextMenuService.currentMenu.closePopup();
}
return new Promise(resolve => {
const clickHandler = menuItem => {
ContextMenuService.currentMenu =... | crazyrex/BotFramework-Emulator | packages/app/main/src/services/contextMenuService.ts | TypeScript |
TypeAliasDeclaration |
type Props<T extends React.ComponentType<any> | React.ElementType> = T extends React.ComponentType<infer P>
? P
: unknown; | IvanZatravkin/ui-kit-boilerplate | src/global.d.ts | TypeScript |
TypeAliasDeclaration |
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; | IvanZatravkin/ui-kit-boilerplate | src/global.d.ts | TypeScript |
TypeAliasDeclaration |
type StyleArgs<K extends { [n: number]: any }> = UnionToIntersection<
{ [N in keyof K]: K[N] extends (x: infer P) => any ? P : never }[number]
>; | IvanZatravkin/ui-kit-boilerplate | src/global.d.ts | TypeScript |
TypeAliasDeclaration |
type FixStyled<Base extends React.ComponentType<any> | React.ElementType, Styles extends any[]> = React.ComponentType<
Omit<Props<Base> & StyleArgs<Styles>, "theme">
>; | IvanZatravkin/ui-kit-boilerplate | src/global.d.ts | TypeScript |
TypeAliasDeclaration |
type StyledFixed = <C extends React.ComponentType<any> | React.ElementType>(
Component: C
) => <CSS extends any[]>(...css: CSS) => FixStyled<C, CSS>; | IvanZatravkin/ui-kit-boilerplate | src/global.d.ts | TypeScript |
ArrowFunction |
() => {
const source = new Const(0);
it("should return an instance of type Const", () => {
const result = source.toConst();
expect(result).toBeInstanceOf(Const);
expect(result).not.toBe(source);
});
} | mariandev/template-blocks | src/ValueProcessors/Augumentations/toConst.test.ts | TypeScript |
ArrowFunction |
() => {
const result = source.toConst();
expect(result).toBeInstanceOf(Const);
expect(result).not.toBe(source);
} | mariandev/template-blocks | src/ValueProcessors/Augumentations/toConst.test.ts | TypeScript |
ArrowFunction |
async () => {
if (shouldFail && failingStage === stagesEnum[stage]) {
await browser
.wait(async () => {
return await this.isStageUnsuccessful(stagesEnum[stage]);
}, Number(browser.params.defaultTimeout * 3))
.then(async () => {
... | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
ArrowFunction |
async () => {
return await this.isStageUnsuccessful(stagesEnum[stage]);
} | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
ArrowFunction |
async () => {
await this.checkErrorMessage(stagesEnum[stage], errorText);
console.log('This stage was to fail.');
return true;
} | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
ArrowFunction |
async () => {
console.log(`${stagesEnum[stage]} is successful.`);
} | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
ArrowFunction |
async (error) => {
console.log(error);
await this.getSetupStageLogs(stagesEnum[stage]);
throw new Error(`${stagesEnum[stage]} failed.`);
} | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
EnumDeclaration |
export enum DevCloudTargets {
CORE = 'idc047',
XEON = 'idc052',
ATOM = 'idc010jal',
MYRIAD = 'idc004nc2',
} | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
MethodDeclaration |
getMachineRow(machineName: string): ElementFinder {
return TestUtils.getElementByDataTestId(`row_name_${machineName}`);
} | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
MethodDeclaration |
async countTargets() {
const machinesList = await this.machinesList;
return await machinesList.all(by.className('mat-row')).count();
} | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
MethodDeclaration |
async getCellByPlatformTag(tag: string): Promise<ElementFinder> {
const platformsItems = await this.platformsList;
const cell = platformsItems.element(by.cssContainingText('.platform-tag-column', tag));
return await cell;
} | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
MethodDeclaration |
async getMachineDetail(name: string): Promise<ElementFinder> {
const postfix = '_detail';
return TestUtils.getElementByDataTestId(`${name + postfix}`);
} | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
MethodDeclaration |
async pingMachine(machineName: string) {
const machineRow = await this.getMachineRow(machineName);
const pingButton = await TestUtils.getNestedElementByDataTestId(machineRow, 'ping-machine');
await new TestUtils().clickElement(pingButton);
console.log('Refresh is clicked.');
await this.checkStages(... | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
MethodDeclaration |
async reviewTarget(machineRow: ElementFinder) {
const reviewBtn: ElementFinder = await TestUtils.getNestedElementByDataTestId(machineRow, 'review-target');
await new TestUtils().clickElement(reviewBtn);
await browser.sleep(3000);
} | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
MethodDeclaration |
async isMachineNotSelectable(machineRow: ElementFinder): Promise<boolean> {
return (
(await TestUtils.getNestedElementByDataTestId(
machineRow,
`${TargetMachineStatusNames.CONFIGURATION_FAILURE}`
).isPresent()) ||
(await TestUtils.getNestedElementByDataTestId(
machineRow,
... | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
MethodDeclaration |
async isMachineAvailable(machineRow: ElementFinder): Promise<boolean> {
return await TestUtils.getNestedElementByDataTestId(
machineRow,
`${TargetMachineStatusNames.AVAILABLE}`
).isPresent();
} | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
MethodDeclaration |
async isStageSuccessful(stageName: string): Promise<boolean> {
const stageRow: ElementFinder = await TestUtils.getElementByDataTestId(stageName);
const successStatus: ElementFinder = await TestUtils.getNestedElementByDataTestId(
stageRow,
`${PipelineStageStatusNames.SUCCESS}`
);
return brow... | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
MethodDeclaration |
async isWarningPresent(stageName: string): Promise<boolean> {
const stageRow: ElementFinder = await TestUtils.getElementByDataTestId(stageName);
const warningStatus: ElementFinder = await TestUtils.getNestedElementByDataTestId(
stageRow,
`${PipelineStageStatusNames.WARNING}`
);
return brows... | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
MethodDeclaration |
async isStageUnsuccessful(stageName: string): Promise<boolean> {
const stageRow: ElementFinder = await TestUtils.getElementByDataTestId(stageName);
const failureStatus: ElementFinder = await TestUtils.getNestedElementByDataTestId(
stageRow,
`${PipelineStageStatusNames.FAILURE}`
);
return br... | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
MethodDeclaration |
async checkStages(
stagesEnum,
shouldFail: boolean = false,
errorText = '',
failingStage?: SetupTargetPipelineStagesEnum
) {
for (const stage of Object.keys(stagesEnum)) {
console.log(`Waiting for ${stagesEnum[stage]} to complete.`);
await browser
.wait(async () => {
... | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
MethodDeclaration |
async checkSetupPipeline(
shouldFail: boolean = false,
errorText: string = '',
failingStage?: SetupTargetPipelineStagesEnum
) {
await this.checkStages(SetupTargetPipelineStagesEnum, shouldFail, errorText, failingStage);
if (shouldFail) {
return true;
}
console.log('Setup passed.');
... | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
MethodDeclaration |
async getSetupStageLogs(stageName: string) {
const stageRow: ElementFinder = await TestUtils.getElementByDataTestId(stageName);
await new TestUtils().clickElement(TestUtils.getNestedElementByDataTestId(stageRow, 'details'));
console.log('Stage details btn is clicked.');
await browser.sleep(700);
c... | apaniukov/workbench | client/e2e/src/pages/target-machines.po.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.