type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration |
VERSION(): string {
let result = super.call("VERSION", []);
return result[0].toString();
} | djrosenbaum/unchained-transactions | generated/Contract/Contract.ts | TypeScript |
MethodDeclaration |
try_VERSION(): CallResult<string> {
let result = super.tryCall("VERSION", []);
if (result.reverted) {
return new CallResult();
}
let value = result.value;
return CallResult.fromValue(value[0].toString());
} | djrosenbaum/unchained-transactions | generated/Contract/Contract.ts | TypeScript |
ArrowFunction |
({ onClose, content, children, ...props }) => {
const ref = useRef(document.createElement('div'));
useEffect(() => {
document.body.appendChild(ref.current);
return () => {
document.body.removeChild(ref.current);
};
}, []);
return createPortal(
<DialogOuter fullScreen={!content} | kiwijobs/core | src/components/molecules/Dialog/Dialog.tsx | TypeScript |
ArrowFunction |
() => {
document.body.appendChild(ref.current);
return () => {
document.body.removeChild(ref.current);
};
} | kiwijobs/core | src/components/molecules/Dialog/Dialog.tsx | TypeScript |
ArrowFunction |
() => {
document.body.removeChild(ref.current);
} | kiwijobs/core | src/components/molecules/Dialog/Dialog.tsx | TypeScript |
InterfaceDeclaration |
export interface IDialogContent {
title: React.ReactNode;
body: React.ReactNode;
cancel?: string;
confirm?: string;
onCancel?(): void;
onConfirm?(): void;
} | kiwijobs/core | src/components/molecules/Dialog/Dialog.tsx | TypeScript |
InterfaceDeclaration |
interface IDialogPropsBase extends Omit<BoxProps, 'content'> {
onClose(): void;
} | kiwijobs/core | src/components/molecules/Dialog/Dialog.tsx | TypeScript |
InterfaceDeclaration |
interface IDialogPropsWithChildren extends IDialogPropsBase {
children: ReactNode;
content?: undefined;
} | kiwijobs/core | src/components/molecules/Dialog/Dialog.tsx | TypeScript |
InterfaceDeclaration |
interface IDialogPropsWithContent extends IDialogPropsBase {
content: IDialogContent;
children?: undefined;
} | kiwijobs/core | src/components/molecules/Dialog/Dialog.tsx | TypeScript |
TypeAliasDeclaration |
export type IDialogProps = IDialogPropsWithChildren | IDialogPropsWithContent; | kiwijobs/core | src/components/molecules/Dialog/Dialog.tsx | TypeScript |
TypeAliasDeclaration |
export type TDialog = FC<IDialogProps> & {
Submit: typeof DialogSubmit;
Cancel: typeof DialogCancel;
Title: typeof DialogTitle;
Subtitle: typeof DialogSubtitle;
Header: typeof DialogHeader;
Body: typeof DialogBody;
Footer: typeof DialogFooter;
}; | kiwijobs/core | src/components/molecules/Dialog/Dialog.tsx | TypeScript |
ArrowFunction |
() =>
combineReducers<ReducersMapObject<RootReducerState, any>>({
locale: localeReducer
}) | CesarLai/react-blog-app | src/store/createRootStore.ts | TypeScript |
ArrowFunction |
(): Middleware[] => {
const middlewares = [thunk, logger]
isProd && middlewares.pop()
return middlewares
} | CesarLai/react-blog-app | src/store/createRootStore.ts | TypeScript |
ArrowFunction |
(middlewares: Middleware[]) =>
applyMiddleware(...middlewares) | CesarLai/react-blog-app | src/store/createRootStore.ts | TypeScript |
ArrowFunction |
() => {
const middlewares = [
composeWithDevTools,
applyMiddlewares,
getBaseMiddlewares
]
isProd && middlewares.shift()
return middlewares
} | CesarLai/react-blog-app | src/store/createRootStore.ts | TypeScript |
ArrowFunction |
(initialState?: RootReducerState) => {
const rootReducer = createRootReducer()
const persistedReducer = persistReducer(persistConfig, rootReducer)
const store = createStore(persistedReducer, initialState, enhancer())
const persistor = persistStore(store)
return { store, persistor }
} | CesarLai/react-blog-app | src/store/createRootStore.ts | TypeScript |
ClassDeclaration | // Formatting DateTime by pattern
@Pipe({
name: "ynDateFormatter",
pure: true
})
export class DateFormatterPipe {
transform(date: any, pattern: string): string {
let mask: Mask = new Mask(this.intl);
mask.pattern = pattern;
return DateParserFormatter.format(date, mask);
}
constructor(private int... | m-alx/yopsilon-mask | src/dates/date-formatter.pipe.ts | TypeScript |
MethodDeclaration |
transform(date: any, pattern: string): string {
let mask: Mask = new Mask(this.intl);
mask.pattern = pattern;
return DateParserFormatter.format(date, mask);
} | m-alx/yopsilon-mask | src/dates/date-formatter.pipe.ts | TypeScript |
ArrowFunction |
(
sequelize: Sequelize.Sequelize,
DataTypes: Sequelize.DataTypes
) => {
const AddressLog = sequelize.define(
"AddressLog",
{
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: DataTypes.BIGINT
... | sgkim126/codechain-indexer | src/models/addressLog.ts | TypeScript |
ArrowFunction |
() => {
// associations can be defined here
} | sgkim126/codechain-indexer | src/models/addressLog.ts | TypeScript |
InterfaceDeclaration |
export interface AddressLogAttribute {
id?: number;
transactionHash: string;
transactionTracker?: string | null;
transactionType: string | null;
blockNumber?: number | null;
transactionIndex?: number | null;
success?: boolean | null;
isPending: boolean;
address: string;
type: Ad... | sgkim126/codechain-indexer | src/models/addressLog.ts | TypeScript |
TypeAliasDeclaration |
export type AddressLogType =
| "TransactionSigner"
| "TransactionApprover"
| "AssetOwner"
| "Approver"
| "Registrar"; | sgkim126/codechain-indexer | src/models/addressLog.ts | TypeScript |
TypeAliasDeclaration |
export type AddressLogInstance = Sequelize.Instance<AddressLogAttribute>; | sgkim126/codechain-indexer | src/models/addressLog.ts | TypeScript |
ClassDeclaration |
export class AgentTransportDto {
id: number;
idagent: number;
idtransport: number;
} | marwenyounes11/accidentfront | src/app/views/parametres/components/dto/agenttransportdto.ts | TypeScript |
FunctionDeclaration |
function maxDepth(root: MyNode | null): number {
if (root === null) return 0;
if (root.children.length === 0) return 1;
return (
1 +
Math.max(
...root.children.map((child) => maxDepth(child))
)
);
} | Dafunk-759/Algorithm4-ts | src/leetcode/binaryTree/maxDepth.ts | TypeScript |
ArrowFunction |
(child) => maxDepth(child) | Dafunk-759/Algorithm4-ts | src/leetcode/binaryTree/maxDepth.ts | TypeScript |
ClassDeclaration |
class MyNode {
val: number;
children: MyNode[];
constructor(val?: number, children?: MyNode[]) {
this.val = val === undefined ? 0 : val;
this.children = children === undefined ? [] : children;
}
} | Dafunk-759/Algorithm4-ts | src/leetcode/binaryTree/maxDepth.ts | TypeScript |
FunctionDeclaration |
declare function configure(config?: TranslatorConfig): Translator; | ercastil/superset-ui | plugins/plugin-chart-test/node_modules/@superset-ui/core/lib/translation/TranslatorSingleton.d.ts | TypeScript |
FunctionDeclaration |
declare function addTranslation(key: string, translations: string[]): void; | ercastil/superset-ui | plugins/plugin-chart-test/node_modules/@superset-ui/core/lib/translation/TranslatorSingleton.d.ts | TypeScript |
FunctionDeclaration |
declare function addTranslations(translations: Translations): void; | ercastil/superset-ui | plugins/plugin-chart-test/node_modules/@superset-ui/core/lib/translation/TranslatorSingleton.d.ts | TypeScript |
FunctionDeclaration |
declare function addLocaleData(data: LocaleData): void; | ercastil/superset-ui | plugins/plugin-chart-test/node_modules/@superset-ui/core/lib/translation/TranslatorSingleton.d.ts | TypeScript |
FunctionDeclaration |
declare function t(input: string, ...args: unknown[]): string; | ercastil/superset-ui | plugins/plugin-chart-test/node_modules/@superset-ui/core/lib/translation/TranslatorSingleton.d.ts | TypeScript |
FunctionDeclaration |
declare function tn(key: string, ...args: unknown[]): string; | ercastil/superset-ui | plugins/plugin-chart-test/node_modules/@superset-ui/core/lib/translation/TranslatorSingleton.d.ts | TypeScript |
FunctionDeclaration | /** Return path if accessible, blank if not accessible */
export function pathAccessible(path: string): Observable<string> {
return defer(() => isPathAccessible(path)).pipe(
map(exists => exists ? normalize(path) : ''),
)
} | waitingsong/knex-factory | .githooks/init-repo/init-utils.ts | TypeScript |
FunctionDeclaration | // support relative file ('./foo')
export function isPathAccessible(path: string): Promise<boolean> {
return path
? new Promise(resolve => access(path, err => resolve(err ? false : true)))
: Promise.resolve(false)
} | waitingsong/knex-factory | .githooks/init-repo/init-utils.ts | TypeScript |
FunctionDeclaration | /**
* Generate random integer
*
* @see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/random
*/
export function genRandomInt(max: number): number {
return Math.floor(Math.random() * Math.floor(max))
} | waitingsong/knex-factory | .githooks/init-repo/init-utils.ts | TypeScript |
FunctionDeclaration |
export async function cpGlobalConfigsToPkgs(
baseDir: string,
configPaths: string[],
pkgBase: string,
): Promise<string[]> {
const pkgs = await readDirAsync(pkgBase)
const ret: string[] = []
for (const pkg of pkgs) {
for (const path of configPaths) {
try {
const dst = `${pkg}/${path}`
... | waitingsong/knex-factory | .githooks/init-repo/init-utils.ts | TypeScript |
ArrowFunction |
() => isPathAccessible(path) | waitingsong/knex-factory | .githooks/init-repo/init-utils.ts | TypeScript |
ArrowFunction |
exists => exists ? normalize(path) : '' | waitingsong/knex-factory | .githooks/init-repo/init-utils.ts | TypeScript |
ArrowFunction |
resolve => access(path, err => resolve(err ? false : true)) | waitingsong/knex-factory | .githooks/init-repo/init-utils.ts | TypeScript |
ArrowFunction |
err => resolve(err ? false : true) | waitingsong/knex-factory | .githooks/init-repo/init-utils.ts | TypeScript |
FunctionDeclaration |
function advance(fixture: ComponentFixture<any>): void {
tick();
fixture.detectChanges();
} | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
FunctionDeclaration |
function compileRoot(tcb: TestComponentBuilder): Promise<ComponentFixture<any>> {
return tcb.createAsync(RootCmp);
} | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
() => [
{provide: RouterUrlSerializer, useClass: DefaultRouterUrlSerializer},
RouterOutletMap,
{provide: Location, useClass: SpyLocation},
{provide: RouteSegment, useFactory: (r: any /** TODO #9100 */) => r.routeTree.root, deps: [Router]},
{
provide: Router,
useFactory: (r... | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
(r: any /** TODO #9100 */) => r.routeTree.root | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
(resolver: any /** TODO #9100 */, urlParser: any /** TODO #9100 */, outletMap: any /** TODO #9100 */, location: any /** TODO #9100 */) => new Router(
"RootComponent", RootCmp, resolver, urlParser, outletMap, location) | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
(router: any /** TODO #9100 */, tcb: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
let fixture = tcb.createFakeAsync(RootCmp);
router.navigateByUrl('/team/22/user/victor');
advance(fixture);
expect(location.path()).toEqual('/team/22/user/victor');
router.na... | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
(router: any /** TODO #9100 */, tcb: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
let fixture = tcb.createFakeAsync(RootCmp);
router.navigateByUrl('/team/33/simple');
advance(fixture);
router.navigateByUrl('/team/22/user/victor');
advance(fixture);
loc... | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
(router: any /** TODO #9100 */, tcb: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
let fixture = tcb.createFakeAsync(RootCmp);
router.navigateByUrl('/team/22/user/victor');
advance(fixture);
location.simulateHashChange("/team/22/user/fedor");
advance(fixtur... | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
(router: any /** TODO #9100 */, tcb: any /** TODO #9100 */) => {
let fixture = tcb.createFakeAsync(RootCmp);
router.navigateByUrl('/team/22/user/victor');
advance(fixture);
expect(fixture.debugElement.nativeElement).toHaveText('team 22 { hello victor, aux: }');
} | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
(router: any /** TODO #9100 */, tcb: any /** TODO #9100 */) => {
let fixture = tcb.createFakeAsync(RootCmp);
router.navigateByUrl('/team/22/user/victor(/simple)');
advance(fixture);
expect(fixture.debugElement.nativeElement)
.toHaveText('team 22 { hello victor, aux: s... | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
(router: any /** TODO #9100 */, tcb: any /** TODO #9100 */) => {
let fixture = tcb.createFakeAsync(RootCmp);
router.navigateByUrl('/team/22/user/victor(/simple)');
advance(fixture);
router.navigateByUrl('/team/22/user/victor');
advance(fixture);
expect(fixture.d... | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
(router: any /** TODO #9100 */, tcb: any /** TODO #9100 */) => {
let fixture = tcb.createFakeAsync(RootCmp);
router.navigateByUrl('/team/22/user/victor(/simple)');
advance(fixture);
router.navigateByUrl('/');
advance(fixture);
expect(fixture.debugElement.nativeE... | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
(router: any /** TODO #9100 */, tcb: any /** TODO #9100 */) => {
let fixture = tcb.createFakeAsync(RootCmp);
router.navigateByUrl('/team/22/user/victor');
advance(fixture);
let team1 = fixture.debugElement.children[1].componentInstance;
router.navigateByUrl('/team/22/user... | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
(router: any /** TODO #9100 */, tcb: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
let fixture = tcb.createFakeAsync(RootCmp);
router.navigateByUrl('/team/22/cannotDeactivate');
advance(fixture);
router.navigateByUrl('/team/22/user/fedor');
advance(fixture)... | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
(router: any /** TODO #9100 */, tcb: any /** TODO #9100 */) => {
let fixture = tcb.createFakeAsync(RootCmp);
advance(fixture);
router.navigateByUrl('/team/22/link');
advance(fixture);
expect(fixture.debugElement.nativeElement).toHaveText('team 22 { link, aux: }'... | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
(router: any /** TODO #9100 */, tcb: any /** TODO #9100 */) => {
let fixture = tcb.createFakeAsync(RootCmp);
advance(fixture);
router.navigateByUrl('/team/22/relativelink');
advance(fixture);
expect(fixture.debugElement.nativeElement)
.toHaveText('... | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
(router: any /** TODO #9100 */, tcb: any /** TODO #9100 */) => {
let fixture = tcb.createFakeAsync(RootCmp);
advance(fixture);
router.navigateByUrl('/team/22/relativelink');
advance(fixture);
expect(fixture.debugElement.nativeElement)
.toHaveText('... | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
(router: any /** TODO #9100 */, tcb: any /** TODO #9100 */) => {
let fixture = tcb.createFakeAsync(RootCmp);
advance(fixture);
router.navigateByUrl('/team/22/link(simple)');
advance(fixture);
expect(fixture.debugElement.nativeElement).toHaveText('team 22 { link, ... | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
(router: any /** TODO #9100 */, tcb: any /** TODO #9100 */) => {
let fixture = tcb.createFakeAsync(LinkCmp);
advance(fixture);
expect(fixture.debugElement.nativeElement).toHaveText('link');
} | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
(router: any /** TODO #9100 */, tcb: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
let fixture = tcb.createFakeAsync(RootCmp);
router.navigateByUrl('/team/33/simple');
advance(fixture);
router.navigateByUrl('/team/22/user/victor');
advance(fixture);
... | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ClassDeclaration |
@Component({selector: 'user-cmp', template: `hello {{user}}`})
class UserCmp implements OnActivate {
user: string;
routerOnActivate(s: RouteSegment, a?: any /** TODO #9100 */, b?: any /** TODO #9100 */, c?: any /** TODO #9100 */) { this.user = s.getParam('name'); }
} | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ClassDeclaration |
@Component({selector: 'cannot-deactivate', template: `cannotDeactivate`})
class CanDeactivateCmp implements CanDeactivate {
routerCanDeactivate(a?: any /** TODO #9100 */, b?: any /** TODO #9100 */): Promise<boolean> { return PromiseWrapper.resolve(false); }
} | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ClassDeclaration |
@Component({selector: 'simple-cmp', template: `simple`})
class SimpleCmp {
} | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ClassDeclaration |
@Component({selector: 'simple2-cmp', template: `simple2`})
class Simple2Cmp {
} | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'link-cmp',
template: `<a [routerLink]="['/team', '33', 'simple']">link</a>`,
directives: ROUTER_DIRECTIVES
})
class LinkCmp {
} | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'link-cmp',
template: `<a [routerLink]="['./simple']">relativelink</a> { <router-outlet></router-outlet> }`,
directives: ROUTER_DIRECTIVES
})
@Routes([new Route({path: 'simple', component: SimpleCmp})])
class RelativeLinkCmp {
} | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'team-cmp',
template: `team {{id}} { <router-outlet></router-outlet>, aux: <router-outlet name="aux"></router-outlet> }`,
directives: [ROUTER_DIRECTIVES]
})
@Routes([
new Route({path: 'user/:name', component: UserCmp}),
new Route({path: 'simple', component: SimpleCmp}),
new Route({pa... | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'root-cmp',
template: `<router-outlet></router-outlet>`,
directives: [ROUTER_DIRECTIVES]
})
@Routes([new Route({path: 'team/:id', component: TeamCmp})])
class RootCmp {
} | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
MethodDeclaration |
routerOnActivate(s: RouteSegment, a?: any /** TODO #9100 */, b?: any /** TODO #9100 */, c?: any /** TODO #9100 */) { this.user = s.getParam('name'); } | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
MethodDeclaration |
routerCanDeactivate(a?: any /** TODO #9100 */, b?: any /** TODO #9100 */): Promise<boolean> { return PromiseWrapper.resolve(false); } | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
MethodDeclaration |
routerOnActivate(s: RouteSegment, a?: any /** TODO #9100 */, b?: any /** TODO #9100 */, c?: any /** TODO #9100 */) { this.id = s.getParam('id'); } | AftabAnsari10662/angular | modules/@angular/router/test/integration_spec.ts | TypeScript |
ArrowFunction |
() => DepartmentModule | hagarbarakat/enable-task | src/user/user.module.ts | TypeScript |
ClassDeclaration |
@Module({
imports: [
forwardRef(() => DepartmentModule),
MongooseModule.forFeature([{ name: User.name, schema: UserSchema }]),
],
controllers: [UserController],
providers: [
{
provide: APP_GUARD,
useClass: JwtAuthGuard,
},
UserService
],
exports: [UserService],
... | hagarbarakat/enable-task | src/user/user.module.ts | TypeScript |
ArrowFunction |
(error: RetryObject['error']): error is HTTPError | ParseError | MaxRedirectsError => (
error instanceof HTTPError || error instanceof ParseError || error instanceof MaxRedirectsError
) | Eomm/got | source/calculate-retry-delay.ts | TypeScript |
ArrowFunction |
({attemptCount, retryOptions, error}) => {
if (attemptCount > retryOptions.limit) {
return 0;
}
const hasMethod = retryOptions.methods.includes(error.options.method);
const hasErrorCode = Reflect.has(error, 'code') && retryOptions.errorCodes.includes(error.code);
const hasStatusCode = isErrorWithResponse(error... | Eomm/got | source/calculate-retry-delay.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'app-related',
templateUrl: './related.component.html',
styleUrls: ['./related.component.css'],
encapsulation: ViewEncapsulation.None,
})
export class RelatedComponent implements OnInit {
constructor(
public shared: SharedService,
public globals: GlobalsService,
public caro... | quead/angular-yt-player | src/app/components/related/related.component.ts | TypeScript |
MethodDeclaration |
ngOnInit() {
this.carouselOne = {
grid: { xs: 2, sm: 4, md: 4, lg: 4, all: 0 },
slide: 4,
speed: 250,
loop: true,
velocity: 0,
touch: false,
point: {
visible: true,
hideOnSingleSlide: true,
},
};
} | quead/angular-yt-player | src/app/components/related/related.component.ts | TypeScript |
ArrowFunction |
({ imageName }) => {
const { t } = useTranslation();
const labelImage = () => {
const os = {
[RHEL7]: RHEL7_EXAMPLE_CONTAINER,
[RHEL8]: RHEL8_EXAMPLE_CONTAINER,
[CENTOS7]: CENTOS7_EXAMPLE_CONTAINER,
[CENTOS8]: CENTOS8_EXAMPLE_CONTAINER,
[WIN2k]: NO_LABEL,
[WIN10]: NO_LABEL,... | DaoDaoNoCode/console | frontend/packages/kubevirt-plugin/src/components/form/helper/container-source-help.tsx | TypeScript |
ArrowFunction |
() => {
const os = {
[RHEL7]: RHEL7_EXAMPLE_CONTAINER,
[RHEL8]: RHEL8_EXAMPLE_CONTAINER,
[CENTOS7]: CENTOS7_EXAMPLE_CONTAINER,
[CENTOS8]: CENTOS8_EXAMPLE_CONTAINER,
[WIN2k]: NO_LABEL,
[WIN10]: NO_LABEL,
};
const label =
os[Object.keys(os).find((name) => imageName?... | DaoDaoNoCode/console | frontend/packages/kubevirt-plugin/src/components/form/helper/container-source-help.tsx | TypeScript |
ArrowFunction |
(name) => imageName?.includes(name) | DaoDaoNoCode/console | frontend/packages/kubevirt-plugin/src/components/form/helper/container-source-help.tsx | TypeScript |
TypeAliasDeclaration |
type ContainerSourceHelpProps = {
imageName: string;
}; | DaoDaoNoCode/console | frontend/packages/kubevirt-plugin/src/components/form/helper/container-source-help.tsx | TypeScript |
ClassDeclaration |
@Component({
selector: 'clr-notification-demo',
styleUrls: ['./notification.demo.scss'],
templateUrl: './notification.demo.html',
})
export class NotificationDemo {
constructor(private clrNotificationService: ClrNotificationService) {}
onClose(): void {
console.log('notification closed');
}
showAle... | gauranirudh/clarity-addons | src/dev/src/app/notification/notification.demo.ts | TypeScript |
MethodDeclaration |
onClose(): void {
console.log('notification closed');
} | gauranirudh/clarity-addons | src/dev/src/app/notification/notification.demo.ts | TypeScript |
MethodDeclaration |
showAlert(): void {
alert('Button was clicked');
} | gauranirudh/clarity-addons | src/dev/src/app/notification/notification.demo.ts | TypeScript |
MethodDeclaration |
openInfo(content): void {
this.clrNotificationService
.openNotification(content, { timeout: 100000, notificationType: 'info', dismissable: true, progressbar: true })
.result.then(this.onClose);
} | gauranirudh/clarity-addons | src/dev/src/app/notification/notification.demo.ts | TypeScript |
MethodDeclaration |
openWarning(content): void {
this.clrNotificationService
.openNotification(content, { timeout: 20000, notificationType: 'warning', dismissable: true, progressbar: true })
.result.then(this.onClose);
} | gauranirudh/clarity-addons | src/dev/src/app/notification/notification.demo.ts | TypeScript |
MethodDeclaration |
openSuccess(content): void {
this.clrNotificationService
.openNotification(content, { timeout: 30000, notificationType: 'success', dismissable: true, progressbar: true })
.result.then(this.onClose);
} | gauranirudh/clarity-addons | src/dev/src/app/notification/notification.demo.ts | TypeScript |
MethodDeclaration |
openDanger(content): void {
this.clrNotificationService
.openNotification(content, { timeout: 40000, notificationType: 'danger', dismissable: true, progressbar: true })
.result.then(this.onClose);
} | gauranirudh/clarity-addons | src/dev/src/app/notification/notification.demo.ts | TypeScript |
ArrowFunction |
() => {
const query1 = Query.atPath(path('collection')).withLimit(2);
const doc1 = doc('collection/a', 1000, { key: 'a' });
const doc2 = doc('collection/b', 1002, { key: 'b' });
const doc3 = doc('collection/c', 1001, { key: 'c' });
return spec()
.userListens(query1)
.watchAcksFull(query... | CapOM/firebase-js-sdk | packages/firestore/test/unit/specs/limit_spec.test.ts | TypeScript |
ArrowFunction |
() => {
const query1 = Query.atPath(path('collection')).withLimit(2);
const doc1 = doc('collection/a', 1000, { key: 'a' });
const doc2 = doc('collection/b', 1000, { key: 'b' });
return spec()
.withGCEnabled(false)
.userListens(query1)
.watchAcksFull(query1, 1000, doc1, ... | CapOM/firebase-js-sdk | packages/firestore/test/unit/specs/limit_spec.test.ts | TypeScript |
ArrowFunction |
() => {
const query = Query.atPath(path('collection')).withLimit(2);
const doc1 = doc('collection/a', 1000, { key: 'a' });
const doc2 = doc('collection/b', 1001, { key: 'b' });
const doc3 = doc('collection/c', 1002, { key: 'c' });
return (
spec()
.userListens(query)
.watchAcks... | CapOM/firebase-js-sdk | packages/firestore/test/unit/specs/limit_spec.test.ts | TypeScript |
ArrowFunction |
() => {
const query1 = Query.atPath(path('collection')).withLimit(2);
const doc1 = doc('collection/a', 1000, { key: 'a' });
const doc2 = doc('collection/b', 1002, { key: 'b' });
const doc3 = doc('collection/c', 1001, { key: 'c' });
return (
spec()
.userListens(query1)
.watchAc... | CapOM/firebase-js-sdk | packages/firestore/test/unit/specs/limit_spec.test.ts | TypeScript |
ArrowFunction |
() => {
const query1 = Query.atPath(path('collection')).withLimit(2);
const query2 = Query.atPath(path('collection')).withLimit(3);
const doc1 = doc('collection/a', 1000, { key: 'a' });
const doc2 = doc('collection/b', 1002, { key: 'b' });
const doc3 = doc('collection/c', 1001, { key: 'c'... | CapOM/firebase-js-sdk | packages/firestore/test/unit/specs/limit_spec.test.ts | TypeScript |
ArrowFunction |
() => {
const query1 = Query.atPath(path('collection')).withLimit(2);
const query2 = Query.atPath(path('collection'));
const docA = doc('collection/a', 1000, { key: 'a' });
const docB = doc('collection/b', 1001, { key: 'b' });
const docC = doc('collection/c', 1002, { key: 'c' });
const docD = d... | CapOM/firebase-js-sdk | packages/firestore/test/unit/specs/limit_spec.test.ts | TypeScript |
ArrowFunction |
() => {
const query1 = Query.atPath(path('collection')).withLimit(2);
const doc1 = doc('collection/a', 1000, { key: 'a' });
const doc2 = doc('collection/b', 1002, { key: 'b' });
const doc3 = doc('collection/c', 1001, { key: 'c' });
return client(0)
.becomeVisible()
.client... | CapOM/firebase-js-sdk | packages/firestore/test/unit/specs/limit_spec.test.ts | TypeScript |
ArrowFunction |
() => {
const query1 = Query.atPath(path('collection')).withLimit(2);
const doc1 = doc('collection/a', 1003, { key: 'a' });
const doc1Local = doc(
'collection/a',
0,
{ key: 'a' },
{ hasLocalMutations: true }
);
const doc2 = doc('collection/b', 1001, { key: ... | CapOM/firebase-js-sdk | packages/firestore/test/unit/specs/limit_spec.test.ts | TypeScript |
ArrowFunction |
type => Client | acoard-aot/Project-and-time-tracker | api/src/app/models/entities/project.entity.ts | TypeScript |
ArrowFunction |
type => ProjectSector | acoard-aot/Project-and-time-tracker | api/src/app/models/entities/project.entity.ts | TypeScript |
ArrowFunction |
type => MOU | acoard-aot/Project-and-time-tracker | api/src/app/models/entities/project.entity.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.