type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
ArrowFunction |
() => {
const startBlock = 100;
const unlockBlock = startBlock + lockResolver['maximumLockDurationInBlocks'] + 1;
const actual = lockResolver['isLockDurationValid'](startBlock, unlockBlock);
expect(actual).toBeFalsy();
} | wesleyh-dev/sidetree | tests/bitcoin/lock/LockResolver.spec.ts | TypeScript |
ArrowFunction |
() => {
const intendedStartBlock = 100;
const unlockBlock = intendedStartBlock + lockResolver['minimumLockDurationInBlocks'];
const actualStartBlock = intendedStartBlock + 1;
const actual = lockResolver['isLockDurationValid'](actualStartBlock, unlockBlock);
expect(actual).toBeFalsy... | wesleyh-dev/sidetree | tests/bitcoin/lock/LockResolver.spec.ts | TypeScript |
ArrowFunction |
() => {
it('should be able to authenticate', async () => {
const fakeUsersRepository = new FakeUsersRepository();
const fakeHashProvider = new FakeHashProvider();
const authenticateUser = new AuthenticateUserService(
fakeUsersRepository,
fakeHashProvider,
);
const createUser = new C... | thiagorcode/GoStack13 | Level-4/04-Iniciando-Back-End/src/modules/users/services/AuthenticateUserService.spec.ts | TypeScript |
ArrowFunction |
async () => {
const fakeUsersRepository = new FakeUsersRepository();
const fakeHashProvider = new FakeHashProvider();
const authenticateUser = new AuthenticateUserService(
fakeUsersRepository,
fakeHashProvider,
);
const createUser = new CreateUserService(
fakeUsersRepository,
... | thiagorcode/GoStack13 | Level-4/04-Iniciando-Back-End/src/modules/users/services/AuthenticateUserService.spec.ts | TypeScript |
ArrowFunction |
async () => {
const fakeUsersRepository = new FakeUsersRepository();
const fakeHashProvider = new FakeHashProvider();
const authenticateUser = new AuthenticateUserService(
fakeUsersRepository,
fakeHashProvider,
);
expect(
authenticateUser.execute({
email: 'johndoe@exampl... | thiagorcode/GoStack13 | Level-4/04-Iniciando-Back-End/src/modules/users/services/AuthenticateUserService.spec.ts | TypeScript |
ArrowFunction |
async () => {
const fakeUsersRepository = new FakeUsersRepository();
const fakeHashProvider = new FakeHashProvider();
const authenticateUser = new AuthenticateUserService(
fakeUsersRepository,
fakeHashProvider,
);
const createUser = new CreateUserService(
fakeUsersRepository,
... | thiagorcode/GoStack13 | Level-4/04-Iniciando-Back-End/src/modules/users/services/AuthenticateUserService.spec.ts | TypeScript |
ArrowFunction |
rez => {
this.shopUrl = rez;
this.changed = false;
this._reload = false;
this.selectedRow = null;
this.loading = false;
this.filterUrls();
_sub.unsubscribe();
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
ArrowFunction |
urlVo => {return urlVo.url === urlToDelete;} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
ArrowFunction |
urlVo => {return urlVo.urlId === this.urlToEdit.urlId;} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
ArrowFunction |
(url:UrlVO) => {
url.primary = (url.urlId === row.urlId || (url.urlId === 0 && url.url === row.url)); // Match by id and url
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
ArrowFunction |
shopUrl => {
LogUtil.debug('ShopUrlComponent urls', this.shopUrl);
this.shopUrl = shopUrl;
this.changed = false;
this._reload = false;
this.selectedRow = null;
this.filterUrls();
LogUtil.debug('ShopUrlComponent totalItems:' + this.totalItems + ', itemsPerPage:'... | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
ArrowFunction |
url =>
url.url.toLowerCase().indexOf(_filter) !== -1 ||
url.theme && url.theme.toLowerCase().indexOf(_filter) !== -1 | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
newUrlInstance():UrlVO {
return {'urlId': 0, 'url': '', 'theme' : '', 'primary': false};
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
formBind():void {
UiUtil.formBind(this, 'shopUrlForm', 'formChange', false);
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
formUnbind():void {
UiUtil.formUnbind(this, 'shopUrlForm');
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
formChange():void {
LogUtil.debug('AttributeComponent formChange', this.shopUrlForm.valid, this.urlToEdit);
this.validForSave = this.shopUrlForm.valid;
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration | /** {@inheritDoc} */
ngOnInit() {
LogUtil.debug('ShopUrlComponent ngOnInit shop', this.shop);
let that = this;
this.delayedFiltering = Futures.perpetual(function() {
that.filterUrls();
}, this.delayedFilteringMs);
this.formBind();
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
ngOnDestroy() {
LogUtil.debug('ShopUrlComponent ngOnDestroy');
this.formUnbind();
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration | /**
* Row delete handler.
* @param row url to delete.
*/
protected onRowDelete(row:UrlVO) {
LogUtil.debug('ShopUrlComponent onRowDelete handler', row);
this.deleteConfirmationModalDialog.show();
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
protected onRowDeleteSelected() {
if (this.selectedRow != null) {
this.onRowDelete(this.selectedRow);
}
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
protected onRowEdit(row:UrlVO) {
LogUtil.debug('ShopUrlComponent onRowEdit handler', row);
this.validForSave = false;
UiUtil.formInitialise(this, 'shopUrlForm', 'urlToEdit', Util.clone(row));
this.editModalDialog.show();
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
protected onRowEditSelected() {
if (this.selectedRow != null) {
this.onRowEdit(this.selectedRow);
}
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
protected onRowPrimary(row:UrlVO) {
LogUtil.debug('ShopUrlComponent onRowPrimary handler', row);
if (row.primary === false) {
this.resetPrimary(row);
} else {
// do not allow unsetting because we need at least one primary for emails to reference shop url
}
this.changed = true;
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
protected onRowPrimarySelected() {
if (this.selectedRow != null) {
this.onRowPrimary(this.selectedRow);
}
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
protected onSelectRow(row:UrlVO) {
LogUtil.debug('ShopUrlComponent onRowPrimary handler', row);
if (row == this.selectedRow) {
this.selectedRow = null;
} else {
this.selectedRow = row;
}
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
protected onRowNew() {
LogUtil.debug('ShopUrlComponent onRowNew handler');
this.validForSave = false;
UiUtil.formInitialise(this, 'shopUrlForm', 'urlToEdit', this.newUrlInstance());
this.editModalDialog.show();
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
protected onFilterChange(event:any) {
this.delayedFiltering.delay();
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
protected onSaveHandler() {
LogUtil.debug('ShopUrlComponent Save handler', this.shop);
if (this.shop.shopId > 0 && this.shopUrl) {
this.loading = true;
let _sub:any = this._shopService.saveShopUrls(this.shopUrl).subscribe(
rez => {
this.shopUrl = rez;
this.changed ... | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
protected onDiscardEventHandler() {
LogUtil.debug('ShopUrlComponent discard handler', this.shop);
this.onRefreshHandler();
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
protected onRefreshHandler() {
LogUtil.debug('ShopUrlComponent refresh handler', this.shop);
this.getShopUrls();
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
protected onDeleteConfirmationResult(modalresult: ModalResult) {
LogUtil.debug('ShopUrlComponent onDeleteConfirmationResult modal result is ', modalresult);
if (ModalAction.POSITIVE === modalresult.action) {
let urlToDelete = this.selectedRow.url;
let idx = this.shopUrl.urls.findIndex(urlVo => {re... | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
protected onEditModalResult(modalresult: ModalResult) {
LogUtil.debug('ShopUrlComponent onEditModalResult modal result is ', modalresult);
if (ModalAction.POSITIVE === modalresult.action) {
if (this.urlToEdit.urlId === 0) { // add new
LogUtil.debug('ShopUrlComponent onEditModalResult add new url'... | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
resetLastPageEnd() {
let _pageEnd = this.pageStart + this.itemsPerPage;
if (_pageEnd > this.totalItems) {
this.pageEnd = this.totalItems;
} else {
this.pageEnd = _pageEnd;
}
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
onPageChanged(event:any) {
this.pageStart = (event.page - 1) * this.itemsPerPage;
let _pageEnd = this.pageStart + this.itemsPerPage;
if (_pageEnd > this.totalItems) {
this.pageEnd = this.totalItems;
} else {
this.pageEnd = _pageEnd;
}
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
protected onClearFilter() {
this.urlFilter = '';
this.delayedFiltering.delay();
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
private resetPrimary(row:UrlVO) {
this.shopUrl.urls.forEach((url:UrlVO) => {
url.primary = (url.urlId === row.urlId || (url.urlId === 0 && url.url === row.url)); // Match by id and url
});
} | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration | /**
* Read urls, that belong to shop.
*/
private getShopUrls() {
LogUtil.debug('ShopUrlComponent get urls', this.shop);
if (this.shop.shopId > 0) {
this.loading = true;
this._shopService.getShopUrls(this.shop.shopId).subscribe(shopUrl => {
LogUtil.debug('ShopUrlComponent urls', this.s... | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
MethodDeclaration |
private filterUrls() {
let _filter = this.urlFilter ? this.urlFilter.toLowerCase() : null;
let _urls:UrlVO[] = [];
if (_filter) {
_urls = this.shopUrl.urls.filter(url =>
url.url.toLowerCase().indexOf(_filter) !== -1 ||
url.theme && url.theme.toLowerCase().indexOf(_filter) !== -1
... | ernsyn/yes-cart | manager/jam-jsclient/src/main/typescript/src/client/app/+shop/components/shop-url.component.ts | TypeScript |
FunctionDeclaration |
export function jsonCopy<T>( fuck: T ): T {
return JSON.parse( JSON.stringify( fuck ) );
} | 0b5vr/automaton | packages/automaton-fxs/src/tests/utils/jsonCopy.ts | TypeScript |
ArrowFunction |
async (
data: IUserCredentials
): Promise<IAuthentication> => {
return await postRequest(AUTHENTICATION_ROUTES.login, data);
} | GabrielaGuedes/ngos_microservices_system | admin-front/src/requests/authentication/login.ts | TypeScript |
ArrowFunction |
() => {
test('render', () => {
const onAllowPermissionsClickMock = Mock.ofInstance((e: SupportedMouseEvent): Promise<void> => null);
const eventStub = {} as any;
const wrapper = shallow(<IframeWarning onAllowPermissionsClick={onAllowPermissionsClickMock.object} />);
const onAllowPe... | AdrianRamiro/accessibility-insights-web | src/tests/unit/tests/DetailsView/components/iframe-warning.test.tsx | TypeScript |
ArrowFunction |
() => {
const onAllowPermissionsClickMock = Mock.ofInstance((e: SupportedMouseEvent): Promise<void> => null);
const eventStub = {} as any;
const wrapper = shallow(<IframeWarning onAllowPermissionsClick={onAllowPermissionsClickMock.object} />);
const onAllowPermissionsClick = wrapper.fi... | AdrianRamiro/accessibility-insights-web | src/tests/unit/tests/DetailsView/components/iframe-warning.test.tsx | TypeScript |
ArrowFunction |
(e: SupportedMouseEvent): Promise<void> => null | AdrianRamiro/accessibility-insights-web | src/tests/unit/tests/DetailsView/components/iframe-warning.test.tsx | TypeScript |
ArrowFunction |
m => m(eventStub) | AdrianRamiro/accessibility-insights-web | src/tests/unit/tests/DetailsView/components/iframe-warning.test.tsx | TypeScript |
ArrowFunction |
() => {
let allUrlsPermissionHandlerMock: IMock<AllUrlsPermissionHandler>;
let detailsViewActionCreatorMock: IMock<DetailsViewActionMessageCreator>;
let testStub: VisualizationType;
let props: AssessmentIframeWarningProps;
beforeEach(() => {
allUrlsPermissionHandlerMock = Mock.ofType<AllUr... | AdrianRamiro/accessibility-insights-web | src/tests/unit/tests/DetailsView/components/iframe-warning.test.tsx | TypeScript |
ArrowFunction |
() => {
allUrlsPermissionHandlerMock = Mock.ofType<AllUrlsPermissionHandler>();
detailsViewActionCreatorMock = Mock.ofType<DetailsViewActionMessageCreator>();
testStub = -1;
props = {
deps: {
allUrlsPermissionHandler: allUrlsPermissionHandlerMock.object,
... | AdrianRamiro/accessibility-insights-web | src/tests/unit/tests/DetailsView/components/iframe-warning.test.tsx | TypeScript |
ArrowFunction |
async () => {
const wrapper = shallow(<AssessmentIframeWarning {...props} />);
const eventStub = {} as SupportedMouseEvent;
const onAllowPermissionsClick = wrapper.find(IframeWarning).prop('onAllowPermissionsClick');
allUrlsPermissionHandlerMock
.setup(m => m.requestAllUrls... | AdrianRamiro/accessibility-insights-web | src/tests/unit/tests/DetailsView/components/iframe-warning.test.tsx | TypeScript |
ArrowFunction |
m => m.requestAllUrlsPermission(eventStub, It.isAny()) | AdrianRamiro/accessibility-insights-web | src/tests/unit/tests/DetailsView/components/iframe-warning.test.tsx | TypeScript |
ArrowFunction |
(_, successCallback) => {
successCallback();
} | AdrianRamiro/accessibility-insights-web | src/tests/unit/tests/DetailsView/components/iframe-warning.test.tsx | TypeScript |
ArrowFunction |
m => m.startOverTest(eventStub, testStub) | AdrianRamiro/accessibility-insights-web | src/tests/unit/tests/DetailsView/components/iframe-warning.test.tsx | TypeScript |
ArrowFunction |
() => {
let allUrlsPermissionHandlerMock: IMock<AllUrlsPermissionHandler>;
let detailsViewActionCreatorMock: IMock<DetailsViewActionMessageCreator>;
let testStub: VisualizationType;
let props: FastPassIframeWarningProps;
beforeEach(() => {
allUrlsPermissionHandlerMock = Mock.ofType<AllUrls... | AdrianRamiro/accessibility-insights-web | src/tests/unit/tests/DetailsView/components/iframe-warning.test.tsx | TypeScript |
ArrowFunction |
() => {
allUrlsPermissionHandlerMock = Mock.ofType<AllUrlsPermissionHandler>();
detailsViewActionCreatorMock = Mock.ofType<DetailsViewActionMessageCreator>();
testStub = -1;
props = {
deps: {
allUrlsPermissionHandler: allUrlsPermissionHandlerMock.object,
... | AdrianRamiro/accessibility-insights-web | src/tests/unit/tests/DetailsView/components/iframe-warning.test.tsx | TypeScript |
ArrowFunction |
async () => {
const wrapper = shallow(<FastPassIframeWarning {...props} />);
const eventStub = {} as SupportedMouseEvent;
const onAllowPermissionsClick = wrapper.find(IframeWarning).prop('onAllowPermissionsClick');
allUrlsPermissionHandlerMock
.setup(m => m.requestAllUrlsPe... | AdrianRamiro/accessibility-insights-web | src/tests/unit/tests/DetailsView/components/iframe-warning.test.tsx | TypeScript |
ArrowFunction |
m => m.rescanVisualization(testStub, eventStub) | AdrianRamiro/accessibility-insights-web | src/tests/unit/tests/DetailsView/components/iframe-warning.test.tsx | TypeScript |
ArrowFunction |
() => {
let component: FormErrorDisplayComponent;
let fixture: ComponentFixture<FormErrorDisplayComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ FormErrorDisplayComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createCo... | MaZderMind/gstreamer-plugin-generator | ui/src/app/form-error-display/form-error-display.component.spec.ts | TypeScript |
ArrowFunction |
() => {
TestBed.configureTestingModule({
declarations: [ FormErrorDisplayComponent ]
})
.compileComponents();
} | MaZderMind/gstreamer-plugin-generator | ui/src/app/form-error-display/form-error-display.component.spec.ts | TypeScript |
ArrowFunction |
() => {
fixture = TestBed.createComponent(FormErrorDisplayComponent);
component = fixture.componentInstance;
fixture.detectChanges();
} | MaZderMind/gstreamer-plugin-generator | ui/src/app/form-error-display/form-error-display.component.spec.ts | TypeScript |
ArrowFunction |
() => {
it('should decode from raw hex rlp', () => {
const tx = EthereumTx.fromRaw('0xf889808609184e72a00082271094000000000000000000000000000000000000000080a47f74657374320000000000000000000000000000000000000000000000000000006000571ca08a8bbf888cfa37bbf0bb965423625641fc956967b81d12e23709cead01446075a01ce999b56a8a8... | 3plcoins/3plcoins-wallet | packages/core/src/blockchains/ethereum/EthereumTx.spec.ts | TypeScript |
ArrowFunction |
() => {
const tx = EthereumTx.fromRaw('0xf889808609184e72a00082271094000000000000000000000000000000000000000080a47f74657374320000000000000000000000000000000000000000000000000000006000571ca08a8bbf888cfa37bbf0bb965423625641fc956967b81d12e23709cead01446075a01ce999b56a8a88504be365442ea61239198e23d1fce7d00fcfc5cd3b44b7... | 3plcoins/3plcoins-wallet | packages/core/src/blockchains/ethereum/EthereumTx.spec.ts | TypeScript |
ArrowFunction |
() => {
const tx = EthereumTx.fromRaw('0xf86c8203be85012a05f20082520894532c801e9cc47dd8b165e04d60dc4809d184ea9186c724990520008026a0757a98c3e116bf1dc3f0b2e6d6c5d42cd5e3bd7edb8385b7e31acc6aac1d67afa0616c169a9297bc04cec57be60184d9c8f524e6768a9395475548851572e031e9', 1);
expect(tx.getRecipientAddress().toString())... | 3plcoins/3plcoins-wallet | packages/core/src/blockchains/ethereum/EthereumTx.spec.ts | TypeScript |
ArrowFunction |
() => {
const tx = EthereumTx.fromRaw('0xf86c8203be85012a05f20082520894532c801e9cc47dd8b165e04d60dc4809d184ea9186c724990520008026a0757a98c3e116bf1dc3f0b2e6d6c5d42cd5e3bd7edb8385b7e31acc6aac1d67afa0616c169a9297bc04cec57be60184d9c8f524e6768a9395475548851572e031e9', 1);
expect(tx.verifySignature()).toBeTruthy();
... | 3plcoins/3plcoins-wallet | packages/core/src/blockchains/ethereum/EthereumTx.spec.ts | TypeScript |
ArrowFunction |
() => {
const tx = EthereumTx.fromRaw('0xf8aa01850a3e9ab80083419ce094aff4481d10270f50f203e0763e2597776068cbc580b844a9059cbb00000000000000000000000027346de44a32bd9943c57a961854a1d28a9c220d0000000000000000000000000000000000000000000000000de0b6b3a76400001ca0e07cc0402d3c982a7c73cf24b14d4e2ad429854271c78d940051ea4a9be0... | 3plcoins/3plcoins-wallet | packages/core/src/blockchains/ethereum/EthereumTx.spec.ts | TypeScript |
ArrowFunction |
() => {
const tx = EthereumTx.fromRaw('0xf881808504e3b2920083061a80944abe410ae11835263203d4ca8ee222a38725396b8806f05b59d3b200009414ab686eb9aafea98c6b39e2b6a487d726b9486226a0425ab7faea6fac638f1677cd1e50041db9c6983638f9576021e8acc1c3256e44a0235f29b02719c4f2271c8def0cee62ffc47a2c2e1fffb1ce073532351e48d3b9', 1);
e... | 3plcoins/3plcoins-wallet | packages/core/src/blockchains/ethereum/EthereumTx.spec.ts | TypeScript |
ArrowFunction |
({ resourcesList }) => {
const completeTitle = (r: DataSources) => {
if({author: "Lindley, Mark", book: "A quest for Bach’s ideal style of organ temperament", title:"", other: " in M. Lustig, ed., Stimmungen im 17. und 18.Jahrhundert, Michaelstein, ", date: "1997", page: "", url:"https://www.academia.edu/113... | TemperApp/TemperApp | src/components/Learn/ResourcesLearn.tsx | TypeScript |
ArrowFunction |
(r: DataSources) => {
if({author: "Lindley, Mark", book: "A quest for Bach’s ideal style of organ temperament", title:"", other: " in M. Lustig, ed., Stimmungen im 17. und 18.Jahrhundert, Michaelstein, ", date: "1997", page: "", url:"https://www.academia.edu/1134176/A_quest_for_Bach_s_ideal_style_of_organ_tempera... | TemperApp/TemperApp | src/components/Learn/ResourcesLearn.tsx | TypeScript |
ArrowFunction |
(r: DataSources, idx: number) => {
if(r.url !== ""){
return(
<IonButton
key={idx}
className="learn-resources-btn h-11"
expand="block"
color="light"
href={r.url}
>
<span className="ion-text-left">
{r.book}
... | TemperApp/TemperApp | src/components/Learn/ResourcesLearn.tsx | TypeScript |
ArrowFunction |
(r, idx) => {
let longTitle = completeTitle(r);
let btn = buttonWithLink(r,idx);
return(
<div key={"learnRessource_"+r.book}>
{btn}
<div className="learn-ressources-not-btn">
{longTitle}
</div>
</div> | TemperApp/TemperApp | src/components/Learn/ResourcesLearn.tsx | TypeScript |
TypeAliasDeclaration |
type resourcesProps = {
resourcesList: Array<DataSources>,
} | TemperApp/TemperApp | src/components/Learn/ResourcesLearn.tsx | TypeScript |
ClassDeclaration | /**
* Get Items Actions
*/
export class LoadItems implements Action {
readonly type = ActionTypes.LOAD_ITEMS;
constructor(public payload: any) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration |
export class LoadItemsSuccess implements Action {
readonly type = ActionTypes.LOAD_ITEMS_SUCCESS;
constructor(public payload: any) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration |
export class LoadItemsError implements Action {
readonly type = ActionTypes.LOAD_ITEMS_ERROR;
constructor(public payload: any = null) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration |
export class LoadMoreItems implements Action {
readonly type = ActionTypes.LOAD_MORE_ITEMS;
constructor(public payload: any) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration |
export class LoadMoreItemsSuccess implements Action {
readonly type = ActionTypes.LOAD_MORE_ITEMS_SUCCESS;
constructor(public payload: any) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration |
export class LoadMoreItemsError implements Action {
readonly type = ActionTypes.LOAD_ITEMS_ERROR;
constructor(public payload: any = null) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration | // Update actions
export class Update implements Action {
readonly type = ActionTypes.UPDATE;
constructor(public payload: any) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration |
export class UpdateSuccess implements Action {
readonly type = ActionTypes.UPDATE_SUCCESS;
constructor(public payload: any = null) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration |
export class UpdateError implements Action {
readonly type = ActionTypes.UPDATE_ERROR;
constructor(public payload: any = null) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration | // Update state
export class SetState implements Action {
readonly type = ActionTypes.SET_STATE;
constructor(public payload: any = null) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration | // Accept Invitation actions
export class AcceptInvitation implements Action {
readonly type = ActionTypes.ACCEPT_INVITATION;
constructor(public payload: any) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration |
export class AcceptInvitationSuccess implements Action {
readonly type = ActionTypes.ACCEPT_INVITATION_SUCCESS;
constructor(public payload: any = null) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration |
export class AcceptInvitationError implements Action {
readonly type = ActionTypes.ACCEPT_INVITATION_ERROR;
constructor(public payload: any = null) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration | // Accept Invitation actions
export class DeclineInvitation implements Action {
readonly type = ActionTypes.DECLINE_INVITATION;
constructor(public payload: any) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration |
export class DeclineInvitationSuccess implements Action {
readonly type = ActionTypes.DECLINE_INVITATION_SUCCESS;
constructor(public payload: any = null) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration |
export class DeclineInvitationError implements Action {
readonly type = ActionTypes.DECLINE_INVITATION_ERROR;
constructor(public payload: any = null) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration | // Mark all as read actions
export class MarkAsRead implements Action {
readonly type = ActionTypes.MARK_AS_READ;
constructor(public payload: any) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration |
export class MarkAsReadSuccess implements Action {
readonly type = ActionTypes.MARK_AS_READ_SUCCESS;
constructor(public payload: any = null) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration |
export class MarkAsReadError implements Action {
readonly type = ActionTypes.MARK_AS_READ_ERROR;
constructor(public payload: any = null) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration | // Mark all as read actions
export class MarkAllAsRead implements Action {
readonly type = ActionTypes.MARK_ALL_AS_READ;
constructor(public payload: any) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration |
export class MarkAllAsReadSuccess implements Action {
readonly type = ActionTypes.MARK_ALL_AS_READ_SUCCESS;
constructor(public payload: any = null) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
ClassDeclaration |
export class MarkAllAsReadError implements Action {
readonly type = ActionTypes.MARK_ALL_AS_READ_ERROR;
constructor(public payload: any = null) { }
} | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
EnumDeclaration |
export enum ActionTypes {
LOAD_ITEMS = 'NOTIFICATION_LOAD_ITEMS',
LOAD_ITEMS_SUCCESS = 'NOTIFICATION_LOAD_ITEMS_SUCCESS',
LOAD_ITEMS_ERROR = 'NOTIFICATION_LOAD_ITEMS_ERROR',
LOAD_MORE_ITEMS = 'NOTIFICATION_LOAD_MORE_ITEMS',
LOAD_MORE_ITEMS_SUCCESS = 'NOTI... | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
TypeAliasDeclaration |
export type Actions =
LoadItems |
LoadItemsSuccess |
LoadItemsError |
LoadMoreItems |
LoadMoreItemsSuccess |
LoadMoreItemsError |
Update |
UpdateSuccess |
UpdateError |
AcceptInvitation |
AcceptInvitationSuccess |
AcceptInvitationError |
DeclineInvitation |
DeclineInvitationSuccess |
Decl... | wthapps/portal-frontend | src/core/store/notification/notification.actions.ts | TypeScript |
FunctionDeclaration | // Main
async function main(cli: meow.Result): Promise<void> {
let template: Template | undefined = undefined
let newOrExisting = null
if (cli.flags['template']) {
template = templateFromFlags(cli)
} else {
const result = await inquirer.prompt<{
newOrExisting: 'new' | 'database'
}>([
{
... | Weakky/nexus-cli | packages/create-nexus/src/index.ts | TypeScript |
FunctionDeclaration | /**
* Imports one of the preconfigured yoga templates
*/
export async function createTemplate(): Promise<void> {
return main(cli)
} | Weakky/nexus-cli | packages/create-nexus/src/index.ts | TypeScript |
ArrowFunction |
() => {
const { setValueFromEvent } = useForm();
const display = usePropsSelector("display");
return (
<>
<FormControl label="Display">
<Select
size="sm"
value={display || ""} | glareui/glare | packages/editor/src/components/inspector/panels/styles/DisplayPanel.tsx | TypeScript |
FunctionDeclaration |
function culture(): {
name: string;
calendar: {
AM: string[];
PM: string[];
"/": string;
":": string;
days: {
names: string[];
namesAbbr: string[];
namesShort: string[];
};
... | hanswright/kendo-ui-core | typescript/kendo.all.d.ts | TypeScript |
FunctionDeclaration |
function format(format: string, ...values: any[]): string; | hanswright/kendo-ui-core | typescript/kendo.all.d.ts | TypeScript |
FunctionDeclaration |
function fx(selector: string): effects.Element; | hanswright/kendo-ui-core | typescript/kendo.all.d.ts | TypeScript |
FunctionDeclaration |
function fx(element: Element): effects.Element; | hanswright/kendo-ui-core | typescript/kendo.all.d.ts | TypeScript |
FunctionDeclaration |
function fx(element: JQuery): effects.Element; | hanswright/kendo-ui-core | typescript/kendo.all.d.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.