type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
foundOrder => { this.vendorsService.getVendorInfo(foundOrder.seller).subscribe((vendor:any)=>{ this.foundOrder.orderName= this.exploreOrder.orderName; this.foundOrder.orderedDate=this.exploreOrder.orderDate; this.foundOrder.checkedSellers.splice(1,this.foundOrder.checkedSell...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
ArrowFunction
(vendor:any)=>{ this.foundOrder.orderName= this.exploreOrder.orderName; this.foundOrder.orderedDate=this.exploreOrder.orderDate; this.foundOrder.checkedSellers.splice(1,this.foundOrder.checkedSellers.length); this.foundOrder.checkedSellers.push({ sellerName...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
ArrowFunction
(result:any)=>{ if(result.success == true){ this.usersService.getUserProfile(result.order.user).subscribe((res:any)=>{ if(res.success == true){ this.ordererProfile= Object.assign({},res.user); } }) } }
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
ArrowFunction
(res:any)=>{ if(res.success == true){ this.ordererProfile= Object.assign({},res.user); } }
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
ArrowFunction
(vendor:any)=>{ if(vendor.success == true){ this.ordersService.checkoutOrder(vendor.sellerId,this.exploreOrder.orderId).subscribe((res:any)=>{ if(res.success == true){ this.onFetchVendorDisplayOrders(); this.notificationService.showSuccess('Order checked','You added a ne...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
ArrowFunction
(res:any)=>{ if(res.success == true){ this.onFetchVendorDisplayOrders(); this.notificationService.showSuccess('Order checked','You added a new Order in checkouts'); this.wasChecked=true; } }
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
ArrowFunction
(res:any)=>{ if(res.success == true){ this.vendorCheckedOrders.push({ order:{ orderId:orderObj.order_id, orderName: orderObj.order_name, description: orderObj.description, orderDate:orderObj.order_date, orderImageURL: orderObj.orderImage ...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
ArrowFunction
(auth:any)=>{ this.ordersService.uncheckOrder(auth.sellerId,orderId).subscribe((res:any)=>{ if(res.success == true){ let removeIndex = 0; for(let i = 0; i < this.vendorCheckedOrders.length; i++){ if(this.vendorCheckedOrders[i].orderId == orderId){ r...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
ArrowFunction
(res:any)=>{ if(res.success == true){ let removeIndex = 0; for(let i = 0; i < this.vendorCheckedOrders.length; i++){ if(this.vendorCheckedOrders[i].orderId == orderId){ removeIndex = i; } } this.vendorCheckedOrders.spl...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
ArrowFunction
(auth:any)=>{ if(auth.email == 'NULL'){ // this.toastrService.error( // 'Error: Email is required', // 'You need to have an email before ordering. Go to -> Dashboard -> Add Email to add your email' // ,) alert("Error: You need to have an email before ordering. Go to '-...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
triggerOrderModal(orderId,task){ if(task=="addOrder"){ this.newOrder=true; this.firstCheckEmail(); } else if(task=="exploreOrder" && this.orderIsFound != true){ this.newOrder=false; this.fadePendingProductModal('in'); } else if(task=="exploreOrder" && this.orderIsFound == true){ ...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
fadePendingProductModal(mode){ $(()=>{ if(mode == 'in'){ $('#orderModal').fadeIn(); } else if(mode == 'out'){ $('#orderModal').fadeOut(); } }) }
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
fadeFoundProductModal(mode){ $(()=>{ if(mode == 'in'){ $('#foundOrderModal').fadeIn(); } else if(mode == 'out'){ $('#foundOrderModal').fadeOut(); } }) }
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
closeModal(event){ $(()=>{ if(event == 'foundOrderModal'){ $('#foundOrderModal').fadeOut(); } else if(event == 'orderModal'){ $('#orderModal').fadeOut(); } }) }
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
onCreateOrder(orderName,orderDescription){ var noSpaceOrderName = orderName.replace(/\s+/g, '').length; var noSpaceDescription = orderDescription.replace(/\s+/g, '').length; if(noSpaceOrderName == 0 || orderName.length > 50 || orderName.length < 2){ (noSpaceOrderName == 0) ? this.createOrderErrorHold...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
makeFieldDanger(fieldName){ $(()=>{ $(`#${fieldName}`).addClass('dangerField'); }) }
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
resetField(fieldName, errorId){ this.createOrderErrorHolder[errorId]=""; $(()=> $(`#${fieldName}`).removeClass('dangerField')); }
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
selectFile(event) { if(!event.target.files[0] || event.target.files[0].length == 0) { this.msg = 'You can add order image for better ordering'; return; } var mimeType = event.target.files[0].type; if (mimeType.match(/image\/*/) == null) { this.msg = "Only images are supported...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
clearFields(){ $(()=>{ $('#orderName').val(""); $('#description').val("") }) this.url=""; this.orderImage=""; this.msg=""; }
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
onFetchUserOrders(){ this.authService.authenticateUser().subscribe((user:any)=>{ if(user.success == true){ this.orders.splice(0,this.orders.length); this.ordersService.getUserOrders(user.userId).subscribe((res:any)=>{ res.orders.forEach(order => { this.ordersService.isOr...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
onRemoveOrder(orderId){ this.ordersService.deleteOrder(orderId).subscribe((res:any)=>{ if(res.success == true){ var index = this.orders.findIndex(order =>{ return order.orderId == orderId; }) this.orders.splice(index,1); this.notificationService.showSuccess(`Order was deleted`, ...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
onFetchVendorDisplayOrders(){ let vendorId = this.authService.authenticateVendor().subscribe((isVendor:any)=>{ if(isVendor.success == true){ vendorId = isVendor.sellerId; } }) this.ordersService.fetchAllOrders().subscribe((res:any)=>{ this.orders.splice(0,this.orders.length); i...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
pushInOrders(order,foundStatus:boolean){ this.orders.push({ orderId: order.order_id, orderName: order.order_name, description: order.description, imageURL: order.orderImage, foundStatus: foundStatus, orderDate: order.order_date }) }
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
deterMineAccoutType(){ if(this.route.snapshot.params.accountType == 'selleraccount'){ this.isVendor = true; this.onFetchVendorDisplayOrders(); } else if(this.route.snapshot.params.accountType == 'buyeraccount'){ this.onFetchUserOrders(); } else{ this.router.navigate(['...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
triggerExploreOrderModal(orderId,event){ if(this.isVendor == true && orderId != -1){ this.getOrdererDetails(orderId); } $(()=>{ if(event == 'open'){ this.wasChecked=false; this.orders.forEach(order => { if(order.orderId == orderId){ this.exploreOrder = Obje...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
fetchFoundOrderDetails(orderId){ this.orders.forEach(order=> { if(order.orderId == orderId){ this.exploreOrder = Object.assign({},order); } }) this.ordersService.isOrderFound(orderId).subscribe((res:any)=>{ res.foundOrder.forEach(foundOrder => { this.vendorsService.getVendorI...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
getOrdererDetails(orderId){ this.ordersService.getOrderDetails(orderId).subscribe((result:any)=>{ if(result.success == true){ this.usersService.getUserProfile(result.order.user).subscribe((res:any)=>{ if(res.success == true){ this.ordererProfile= Object.assign({},res.user); ...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
checkOrderOut(){ this.authService.authenticateVendor().subscribe((vendor:any)=>{ if(vendor.success == true){ this.ordersService.checkoutOrder(vendor.sellerId,this.exploreOrder.orderId).subscribe((res:any)=>{ if(res.success == true){ this.onFetchVendorDisplayOrders(); ...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
getVendorCheckedOuts(orderObj){ this.usersService.getUserProfile(orderObj.user).subscribe((res:any)=>{ if(res.success == true){ this.vendorCheckedOrders.push({ order:{ orderId:orderObj.order_id, orderName: orderObj.order_name, description: orderObj.description...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
triggerVendorCheckedOutModal(){ this.fadeFoundProductModal('in'); // (()=>{ // $('#foundOrderModal').fadeIn(); // }) }
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
removeCheckout(orderId){ this.authService.authenticateVendor().subscribe((auth:any)=>{ this.ordersService.uncheckOrder(auth.sellerId,orderId).subscribe((res:any)=>{ if(res.success == true){ let removeIndex = 0; for(let i = 0; i < this.vendorCheckedOrders.length; i++){ ...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
onDirectCancelCheckout(){ this.removeCheckout(this.exploreOrder.orderId); this.wasChecked=false; }
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
firstCheckEmail(){ this.authService.authenticateUser().subscribe((auth:any)=>{ if(auth.email == 'NULL'){ // this.toastrService.error( // 'Error: Email is required', // 'You need to have an email before ordering. Go to -> Dashboard -> Add Email to add your email' // ,) ...
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
MethodDeclaration
ngOnInit() { this.deterMineAccoutType(); }
PatrickNiyogitare28/Fimbo-Client-App-Angular-8
src/app/components/customer-orders/customer-orders.component.ts
TypeScript
ArrowFunction
() => { let component: SamUploadComponentV2; let host: any; let fixture: any; beforeEach(() => { TestBed.configureTestingModule({ declarations: [ TestHostComponent, SamUploadComponentV2, SamDragDropDirective, SamProgress, FilesizePipe ]...
Bibek-Regmi/sam-ui-elements
src/ui-kit/form-controls/upload-v2/upload-v2.spec.ts
TypeScript
ArrowFunction
() => { TestBed.configureTestingModule({ declarations: [ TestHostComponent, SamUploadComponentV2, SamDragDropDirective, SamProgress, FilesizePipe ], imports: [ FormsModule, ReactiveFormsModule, SamModalModule, SamToggleSwitchModule ], p...
Bibek-Regmi/sam-ui-elements
src/ui-kit/form-controls/upload-v2/upload-v2.spec.ts
TypeScript
ArrowFunction
() => { const url = 'http://localhost/upload'; const file = { name: 'sample.jpeg', size: 1001 }; const req = new HttpRequest('POST', url, file, { reportProgress: true }); const list = { 0: file, length: 1, item: () => { return file; } }; component.uploadRequest = () => req; component.on...
Bibek-Regmi/sam-ui-elements
src/ui-kit/form-controls/upload-v2/upload-v2.spec.ts
TypeScript
ArrowFunction
() => { return file; }
Bibek-Regmi/sam-ui-elements
src/ui-kit/form-controls/upload-v2/upload-v2.spec.ts
TypeScript
ArrowFunction
() => req
Bibek-Regmi/sam-ui-elements
src/ui-kit/form-controls/upload-v2/upload-v2.spec.ts
TypeScript
ArrowFunction
uf => { wasOneUpload = true; expect(uf.upload.status).toEqual(UploadStatus.Done); }
Bibek-Regmi/sam-ui-elements
src/ui-kit/form-controls/upload-v2/upload-v2.spec.ts
TypeScript
ArrowFunction
() => { const url = 'http://localhost/upload'; const file = { name: 'sample.jpeg', size: 1001 }; const request = new HttpRequest('POST', url, file, { reportProgress: true }); const deleteRequest = new HttpRequest('DELETE', 'files/1'); const list = { 0: file, length: 1, item: () => { return fil...
Bibek-Regmi/sam-ui-elements
src/ui-kit/form-controls/upload-v2/upload-v2.spec.ts
TypeScript
ArrowFunction
() => request
Bibek-Regmi/sam-ui-elements
src/ui-kit/form-controls/upload-v2/upload-v2.spec.ts
TypeScript
ArrowFunction
() => deleteRequest
Bibek-Regmi/sam-ui-elements
src/ui-kit/form-controls/upload-v2/upload-v2.spec.ts
TypeScript
ClassDeclaration
class MockHttpClient { request() { return of('success'); } }
Bibek-Regmi/sam-ui-elements
src/ui-kit/form-controls/upload-v2/upload-v2.spec.ts
TypeScript
ClassDeclaration
@Component({ template: ` <form [formGroup]="form"> <sam-upload-v2 formControlName="upload"></sam-upload-v2> </form> ` }) class TestHostComponent { public form: FormGroup = new FormGroup({ upload: new FormControl('') }); }
Bibek-Regmi/sam-ui-elements
src/ui-kit/form-controls/upload-v2/upload-v2.spec.ts
TypeScript
MethodDeclaration
request() { return of('success'); }
Bibek-Regmi/sam-ui-elements
src/ui-kit/form-controls/upload-v2/upload-v2.spec.ts
TypeScript
ArrowFunction
({ onCreate, onClose }) => { const { t } = useTranslation(['Labels']); const onSubmit = (values: any, actions: FormikHelpers<any>) => { onCreate(values.name) .then(res => { if (! res.ok) { actions.setErrors(res.errors); } }); } return ( <Formik initialV...
martijnboland/apptext
src/AppText.AdminApp/ClientApp/src/apps/CreateApiKeyForm.tsx
TypeScript
ArrowFunction
(values: any, actions: FormikHelpers<any>) => { onCreate(values.name) .then(res => { if (! res.ok) { actions.setErrors(res.errors); } }); }
martijnboland/apptext
src/AppText.AdminApp/ClientApp/src/apps/CreateApiKeyForm.tsx
TypeScript
ArrowFunction
res => { if (! res.ok) { actions.setErrors(res.errors); } }
martijnboland/apptext
src/AppText.AdminApp/ClientApp/src/apps/CreateApiKeyForm.tsx
TypeScript
InterfaceDeclaration
interface ICreateApiKeyFormProps { onCreate(name: string): Promise<any>, onClose(): void }
martijnboland/apptext
src/AppText.AdminApp/ClientApp/src/apps/CreateApiKeyForm.tsx
TypeScript
MethodDeclaration
t('Labels:Name')
martijnboland/apptext
src/AppText.AdminApp/ClientApp/src/apps/CreateApiKeyForm.tsx
TypeScript
MethodDeclaration
t('Labels:CreateButton')
martijnboland/apptext
src/AppText.AdminApp/ClientApp/src/apps/CreateApiKeyForm.tsx
TypeScript
MethodDeclaration
t('Labels:CancelButton')
martijnboland/apptext
src/AppText.AdminApp/ClientApp/src/apps/CreateApiKeyForm.tsx
TypeScript
FunctionDeclaration
function badgeColor(type: BadgeType, theme: Theme) { switch (type) { case 'primary': return theme.colors.primary case 'secondary': return theme.colors.secondary default: return theme.colors.tertiaryDark } }
CurtisLusmore/dddmelbourne-website
components/Badge/Badge.styled.tsx
TypeScript
ArrowFunction
({ type, theme }) => ({ display: 'inline-block', padding: calcRem(3, 7), backgroundColor: badgeColor(type, theme), borderRadius: calcRem(10), color: '#fff', fontSize: calcRem(12), fontWeight: theme.weights.bold, lineHeight: 1, textAlign: 'center', whiteSpace: 'nowrap', })
CurtisLusmore/dddmelbourne-website
components/Badge/Badge.styled.tsx
TypeScript
InterfaceDeclaration
interface StyledBadgeProps { type: BadgeType }
CurtisLusmore/dddmelbourne-website
components/Badge/Badge.styled.tsx
TypeScript
FunctionDeclaration
function LandingPage(props: LandingPageProps) { const { fetchLocations, fetchCurrentLocation } = props; useEffect(() => fetchLocations(), [fetchLocations]); useEffect(() => fetchCurrentLocation(), [fetchCurrentLocation]); return ( <View accessibilityLabel={'Home screen'} style={styles.screenStyle}> ...
airquality-trondheim/frontend
screens/LandingPage.tsx
TypeScript
ArrowFunction
() => fetchLocations()
airquality-trondheim/frontend
screens/LandingPage.tsx
TypeScript
ArrowFunction
() => fetchCurrentLocation()
airquality-trondheim/frontend
screens/LandingPage.tsx
TypeScript
ArrowFunction
(dispatch: Dispatch<RootAction>) => { return { fetchLocations: () => { getLocations(dispatch); }, fetchCurrentLocation: () => { getCurrentLocation(dispatch); }, }; }
airquality-trondheim/frontend
screens/LandingPage.tsx
TypeScript
ArrowFunction
() => { getLocations(dispatch); }
airquality-trondheim/frontend
screens/LandingPage.tsx
TypeScript
ArrowFunction
() => { getCurrentLocation(dispatch); }
airquality-trondheim/frontend
screens/LandingPage.tsx
TypeScript
TypeAliasDeclaration
type LandingPageProps = ReturnType<typeof mapDispatchToProps>;
airquality-trondheim/frontend
screens/LandingPage.tsx
TypeScript
TypeAliasDeclaration
type of this
clmowers/Controller
fixtureeditor/fixtureeditor_it_IT.ts
TypeScript
ArrowFunction
(data, [root, args, ctx, info]) => ctx.req.user
Thegrep01/gql-example-server
src/common/gqlAuth.ts
TypeScript
ClassDeclaration
export class GqlAuthGuard extends AuthGuard('jwt') { public getRequest(context: ExecutionContext) { const ctx = GqlExecutionContext.create(context); return ctx.getContext().req; } }
Thegrep01/gql-example-server
src/common/gqlAuth.ts
TypeScript
MethodDeclaration
public getRequest(context: ExecutionContext) { const ctx = GqlExecutionContext.create(context); return ctx.getContext().req; }
Thegrep01/gql-example-server
src/common/gqlAuth.ts
TypeScript
ArrowFunction
(props: AntdIconProps, context: SetupContext) => { const p = { ...props, ...context.attrs }; return <AntdIcon {...p} icon={Heart3FillSvg}></AntdIcon>; }
DivXPro/airclass-icons
packages/icons-vue/src/icons/Heart3Fill.tsx
TypeScript
ArrowFunction
() => { it("renders status with appropriate class", () => { const type = "information"; const wrapper = shallowMount(VEcoDot, { props: { type }, }); expect(wrapper.find(".dot").exists()).toBe(true); expect(wrapper.find(`.dot--${type}`).exists()).toBe(true); }); }
baconenggsandcheese/vue-ecosphere
tests/unit/components/common/dot.spec.ts
TypeScript
ArrowFunction
() => { const type = "information"; const wrapper = shallowMount(VEcoDot, { props: { type }, }); expect(wrapper.find(".dot").exists()).toBe(true); expect(wrapper.find(`.dot--${type}`).exists()).toBe(true); }
baconenggsandcheese/vue-ecosphere
tests/unit/components/common/dot.spec.ts
TypeScript
ArrowFunction
(theme: any) => { return { className: css` color: ${theme.palette.surface.on}; margin-top: 16px; `, }; }
AutoScheduleJS/scheduler-tester
src/web/st-queries-n-userstate.tsx
TypeScript
ArrowFunction
(theme: any) => merge({ palette: { surface: { on: 'white' } } }, theme)
AutoScheduleJS/scheduler-tester
src/web/st-queries-n-userstate.tsx
TypeScript
ClassDeclaration
class StQueriesNUserstateImpl extends React.PureComponent<StQueriesNUserstateProps> { render() { const { theme: incomingTheme, ...defaultHostProps } = this.props; const theme = defaultTheme(incomingTheme); const titleProps = mergeProps(PaddingProps(theme), themeToTitleStyles(theme)); return ( <...
AutoScheduleJS/scheduler-tester
src/web/st-queries-n-userstate.tsx
TypeScript
InterfaceDeclaration
interface StQueriesNUserstateProps extends React.HTMLAttributes<HTMLDivElement> { theme?: any; }
AutoScheduleJS/scheduler-tester
src/web/st-queries-n-userstate.tsx
TypeScript
MethodDeclaration
render() { const { theme: incomingTheme, ...defaultHostProps } = this.props; const theme = defaultTheme(incomingTheme); const titleProps = mergeProps(PaddingProps(theme), themeToTitleStyles(theme)); return ( <div {...defaultHostProps}> <div {...containerStyles}> <div {...childSt...
AutoScheduleJS/scheduler-tester
src/web/st-queries-n-userstate.tsx
TypeScript
FunctionDeclaration
export function DataLoader<T>(props: DataLoaderProps<T>) { const [data, setData] = useState<T | undefined>(); useFetch( () => props.loader(), (result) => setData(result), props.deps || [] ); if (data) { if (props.children instanceof Function) { return props.children(data); } ret...
Aboullos/keycloak-admin-ui
src/components/data-loader/DataLoader.tsx
TypeScript
ArrowFunction
() => props.loader()
Aboullos/keycloak-admin-ui
src/components/data-loader/DataLoader.tsx
TypeScript
ArrowFunction
(result) => setData(result)
Aboullos/keycloak-admin-ui
src/components/data-loader/DataLoader.tsx
TypeScript
TypeAliasDeclaration
type DataLoaderProps<T> = { loader: () => Promise<T>; deps?: DependencyList; children: ((arg: T) => any) | React.ReactNode; };
Aboullos/keycloak-admin-ui
src/components/data-loader/DataLoader.tsx
TypeScript
FunctionDeclaration
export declare function setRootDomAdapter(adapter: DomAdapter): void;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
ClassDeclaration
/** * Provides DOM operations in an environment-agnostic way. */ export declare class DomAdapter { hasProperty(element: any, name: string): boolean; setProperty(el: Element, name: string, value: any): void; getProperty(el: Element, name: string): any; invoke(el: Element, methodName: string, args...
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
hasProperty(element: any, name: string): boolean;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
setProperty(el: Element, name: string, value: any): void;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
getProperty(el: Element, name: string): any;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
invoke(el: Element, methodName: string, args: List<any>): any;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
logError(error: any): void;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
log(error: any): void;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
logGroup(error: any): void;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
logGroupEnd(): void;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
parse(templateHtml: string): void;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
query(selector: string): any;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
querySelector(el: any, selector: string): HTMLElement;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
querySelectorAll(el: any, selector: string): List<any>;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
on(el: any, evt: any, listener: any): void;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
onAndCancel(el: any, evt: any, listener: any): Function;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
dispatchEvent(el: any, evt: any): void;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
createMouseEvent(eventType: any): any;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
createEvent(eventType: string): any;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
preventDefault(evt: any): void;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript
MethodDeclaration
getInnerHTML(el: any): string;
anttisirkiafuturice/angular2todo
node_modules/angular2/es6/dev/src/dom/dom_adapter.d.ts
TypeScript