type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
() => { it('should work', async () => { await initLogService(); }); }
Oupsla/whook
packages/whook-gcp-functions/src/services/log.test.ts
TypeScript
ArrowFunction
async () => { await initLogService(); }
Oupsla/whook
packages/whook-gcp-functions/src/services/log.test.ts
TypeScript
MethodDeclaration
public async fullGeneration(): Promise<string[]> { // return this.render(); return this.GenerateAzureCliReport(this.model); }
kingces95/autorest.az
src/generate/renders/CliReport.ts
TypeScript
MethodDeclaration
public async incrementalGeneration(base: string): Promise<string[]> { return await this.fullGeneration(); }
kingces95/autorest.az
src/generate/renders/CliReport.ts
TypeScript
MethodDeclaration
public GetRenderData(model: CodeModelAz): any { let data = {}; const converter = new Map<string, (item) => unknown>([ [ 'mapsTo', function (item: string) { if (item.endsWith('_')) { item = item.substr(0, item.lengt...
kingces95/autorest.az
src/generate/renders/CliReport.ts
TypeScript
MethodDeclaration
GenerateAzureCliReport(model: CodeModelAz): string[] { let output: string[] = []; output.push('# Azure CLI Module Creation Report'); output.push(''); output.push('## EXTENSION'); output.push('|CLI Extension|Command Groups|'); output.push('|---------|------------|'); ...
kingces95/autorest.az
src/generate/renders/CliReport.ts
TypeScript
MethodDeclaration
getCommandBody(model: CodeModelAz) { const mo: string[] = []; mo.push( '### <a name="CommandsIn' + model.CommandGroup_CliKey + '">Commands in `az ' + model.CommandGroup_Name + '` group</a>', ); mo.push('|CLI Com...
kingces95/autorest.az
src/generate/renders/CliReport.ts
TypeScript
MethodDeclaration
getCommandDetails(model: CodeModelAz) { let mo: string[] = []; mo.push('### group `az ' + model.CommandGroup_Name + '`'); if (model.SelectFirstCommand()) { do { const allRequiredParam: Map<string, boolean> = new Map<string, boolean>(); const allNonReq...
kingces95/autorest.az
src/generate/renders/CliReport.ts
TypeScript
ClassDeclaration
export class ParentingPropertyGridComponent extends React.Component<IParentingPropertyGridComponentProps> { constructor(props: IParentingPropertyGridComponentProps) { super(props); } private _columnNumber: number; private _rowNumber: number; updateGridPosition() { const gri...
adversinc/Babylon.js
guiEditor/src/components/parentingPropertyGridComponent.tsx
TypeScript
InterfaceDeclaration
interface IParentingPropertyGridComponentProps { control: Control, lockObject: LockObject, onPropertyChangedObservable?: Observable<PropertyChangedEvent> }
adversinc/Babylon.js
guiEditor/src/components/parentingPropertyGridComponent.tsx
TypeScript
MethodDeclaration
updateGridPosition() { const grid = this.props.control.parent as Grid; if (grid) { this._changeCell(grid, this.props.control, new Vector2(this._columnNumber, this._rowNumber)); } }
adversinc/Babylon.js
guiEditor/src/components/parentingPropertyGridComponent.tsx
TypeScript
MethodDeclaration
getCellInfo() { const cellInfo = Tools.getCellInfo(this.props.control.parent as Grid, this.props.control); this._columnNumber = cellInfo.x; this._rowNumber = cellInfo.y; }
adversinc/Babylon.js
guiEditor/src/components/parentingPropertyGridComponent.tsx
TypeScript
MethodDeclaration
private _changeCell(grid: Grid, draggedControl: Control, newCell : Vector2) { let index = grid.children.indexOf(draggedControl); grid.removeControl(draggedControl); Tools.reorderGrid(grid, index, draggedControl,newCell); }
adversinc/Babylon.js
guiEditor/src/components/parentingPropertyGridComponent.tsx
TypeScript
MethodDeclaration
render() { this.getCellInfo(); return ( <div className="pane"> <hr className="ge" /> <TextLineComponent tooltip="" label="GRID PARENTING" value=" " color="grey"></TextLineComponent> <div className="divider"> <FloatLi...
adversinc/Babylon.js
guiEditor/src/components/parentingPropertyGridComponent.tsx
TypeScript
ArrowFunction
( { as: Component = 'div', style, className, classPrefix, visible, layer, disabled, allUncheckable, rtl, loading, expand, hasChildren, nodeData, focus, label, uncheckable, checkState, onExpand, onSelec...
gponimansky/rsuite
src/CheckTreePicker/CheckTreeNode.tsx
TypeScript
ArrowFunction
() => { if (typeof label === 'string') { return label; } else if (React.isValidElement(label)) { const nodes = reactToString(label); return nodes.join(''); } }
gponimansky/rsuite
src/CheckTreePicker/CheckTreeNode.tsx
TypeScript
ArrowFunction
(event: React.SyntheticEvent<any>) => { // stop propagation when using custom loading icon event?.nativeEvent?.stopImmediatePropagation?.(); onExpand?.(nodeData); }
gponimansky/rsuite
src/CheckTreePicker/CheckTreeNode.tsx
TypeScript
ArrowFunction
(_value: any, event: React.SyntheticEvent<any>) => { if (disabled || uncheckable) { return; } let isChecked = false; if (checkState === CHECK_STATE.UNCHECK || checkState === CHECK_STATE.INDETERMINATE) { isChecked = true; } if (checkState === CHECK_S...
gponimansky/rsuite
src/CheckTreePicker/CheckTreeNode.tsx
TypeScript
ArrowFunction
() => { const expandIconClasses = prefix('expand-icon', 'icon', { expanded: expand }); let expandIcon = <i className={expandIconClasses} />; if (loading) { expandIcon = ( <div className={prefix('loading-icon')}> <Icon icon="spinner" spin style={{ vertical...
gponimansky/rsuite
src/CheckTreePicker/CheckTreeNode.tsx
TypeScript
ArrowFunction
() => { return ( <DropdownMenuCheckItem as="div" active={checkState === CHECK_STATE.CHECK}
gponimansky/rsuite
src/CheckTreePicker/CheckTreeNode.tsx
TypeScript
InterfaceDeclaration
export interface CheckTreeNodeProps extends WithAsProps { rtl?: boolean; label?: any; layer?: number; value?: any; focus?: boolean; style?: React.CSSProperties; expand?: boolean; loading?: boolean; visible?: boolean; nodeData?: any; disabled?: boolean; className?: string; checkState?: CheckSt...
gponimansky/rsuite
src/CheckTreePicker/CheckTreeNode.tsx
TypeScript
MethodDeclaration
prefix('loading-icon')
gponimansky/rsuite
src/CheckTreePicker/CheckTreeNode.tsx
TypeScript
MethodDeclaration
prefix('custom-icon')
gponimansky/rsuite
src/CheckTreePicker/CheckTreeNode.tsx
TypeScript
MethodDeclaration
prefix('expand-icon-wrapper')
gponimansky/rsuite
src/CheckTreePicker/CheckTreeNode.tsx
TypeScript
MethodDeclaration
prefix('label')
gponimansky/rsuite
src/CheckTreePicker/CheckTreeNode.tsx
TypeScript
MethodDeclaration
getTitle()
gponimansky/rsuite
src/CheckTreePicker/CheckTreeNode.tsx
TypeScript
MethodDeclaration
renderIcon()
gponimansky/rsuite
src/CheckTreePicker/CheckTreeNode.tsx
TypeScript
ArrowFunction
({showNavMenu}: NavContainerProps) => showNavMenu ? 0 : -359
jeffreycao1998/image-repository
client/src/components/Admin/Navigation.tsx
TypeScript
ArrowFunction
({selected}: CategoryProps) => selected ? 'background-color: lightgrey;' : ''
jeffreycao1998/image-repository
client/src/components/Admin/Navigation.tsx
TypeScript
ArrowFunction
({ storeEndpoint, showNavMenu, setShowNavMenu }: Props) => { const location = useLocation(); const categories = [ { icon: 'home', name: 'Home', route: '/admin', }, { icon: 'pricetag', name: 'Products', route: '/admin/products', }, { icon: '', nam...
jeffreycao1998/image-repository
client/src/components/Admin/Navigation.tsx
TypeScript
ArrowFunction
category => { return ( <CategoryContainer key={category.name}> <Category to={category.route} selected={location.pathname === category.route} onClick={() => setShowNavMenu(false)}
jeffreycao1998/image-repository
client/src/components/Admin/Navigation.tsx
TypeScript
TypeAliasDeclaration
type NavContainerProps = { showNavMenu: boolean };
jeffreycao1998/image-repository
client/src/components/Admin/Navigation.tsx
TypeScript
TypeAliasDeclaration
type CategoryProps = { selected?: boolean }
jeffreycao1998/image-repository
client/src/components/Admin/Navigation.tsx
TypeScript
TypeAliasDeclaration
type Props = { storeEndpoint: string showNavMenu: boolean setShowNavMenu: React.Dispatch<React.SetStateAction<boolean>> }
jeffreycao1998/image-repository
client/src/components/Admin/Navigation.tsx
TypeScript
ArrowFunction
() => { let app: INestApplication; let repository: ExtendRepository<User>; let user: User; beforeAll(async () => { const module: TestingModule = await Test.createTestingModule({ imports: [...conInit(), TypeOrmModule.forFeature([UserRepository])],...
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
async () => { const module: TestingModule = await Test.createTestingModule({ imports: [...conInit(), TypeOrmModule.forFeature([UserRepository])], providers: [FakeResolver], }).compile(); app = module.createNestApplication(...
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
async () => { user = await getUserInstance().save(); }
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
async () => { const { body } = await request(app.getHttpServer()) .post('/api/graphql') .send({ query: `query{test}` }); expect(body).toBeDefined(); }
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
() => { expect(repository).toBeDefined(); }
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
() => { it('should return value', async () => { const getUser = await repository.findOneById(user._id); expect(getUser).toBeDefined(); }); it('should error with invalid id', async () => { try { ...
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
async () => { const getUser = await repository.findOneById(user._id); expect(getUser).toBeDefined(); }
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
async () => { try { await repository.findOneById('dsadsa213'); } catch (err) { expect(err).toBeDefined(); } }
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
async () => { const getUser = await repository.findOneById(new ObjectId()); expect(getUser).toBeUndefined(); }
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
() => { it('should return value', async () => { const getUser = await repository.findOneByField('username', user.username); expect(getUser).toBeDefined(); }); it('should error with invalid input', async () => { ...
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
async () => { const getUser = await repository.findOneByField('username', user.username); expect(getUser).toBeDefined(); }
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
async () => { const getUser = await repository.findOneByField('username', user.password); expect(getUser).toBeUndefined(); }
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
() => { it('should return value', async () => { const getUser = await repository.isExist('username', user.username); expect(getUser).toBe(true); }); it('should return value with id', async () => { c...
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
async () => { const getUser = await repository.isExist('username', user.username); expect(getUser).toBe(true); }
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
async () => { const getUser = await repository.isExist('_id', new ObjectId(user._id)); expect(getUser).toBe(true); }
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
async () => { const getUser = await repository.isExist('username', user.password); expect(getUser).toBe(false); }
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
() => { let ids; beforeAll(async () => { await getUserInstance().save(); await getUserInstance().save(); await getUserInstance().save(); ids = await repository.find(); ...
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
async () => { await getUserInstance().save(); await getUserInstance().save(); await getUserInstance().save(); ids = await repository.find(); ids = ids.map(item => item._id); }
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
item => item._id
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
async () => { const arr = await repository.findManyByIds(ids); expect(arr.length).toBeGreaterThanOrEqual(3); }
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
async () => { await repository.clear(); await app.close(); }
Heaty566/ExpressApp-Frontend
server/models/test/ExtendRepository.spec.ts
TypeScript
ArrowFunction
(light, dark) => useColorModeValue(light, dark)
B0s0/code-examples
lib/utils.ts
TypeScript
ArrowFunction
(color, amount) => whiten(color, amount)
B0s0/code-examples
lib/utils.ts
TypeScript
ArrowFunction
(color, amount) => darken(color, amount)
B0s0/code-examples
lib/utils.ts
TypeScript
ArrowFunction
(values) => useBreakpointValue(values)
B0s0/code-examples
lib/utils.ts
TypeScript
ArrowFunction
() => ({ sessionId: 'a', record: true, eventCount: 1 })
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
() => 'b'
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
() => ({ SessionManager: jest.fn().mockImplementation(() => ({ getSession, getUserId, getAttributes, incrementSessionEventCount })) })
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
() => ({ getSession, getUserId, getAttributes, incrementSessionEventCount })
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
() => { advanceTo(0); }
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
() => { getSession.mockClear(); getUserId.mockClear(); incrementSessionEventCount.mockClear(); }
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
async () => { // Init const EVENT1_SCHEMA = 'com.amazon.rum.event1'; const eventCache: EventCache = Utils.createDefaultEventCache(); // Run eventCache.getEventBatch(); eventCache.disable(); eventCache.recordEvent(EVENT1_SCHEMA, {}); // Assert ex...
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
async () => { // Init const EVENT1_SCHEMA = 'com.amazon.rum.event1'; const eventCache: EventCache = Utils.createDefaultEventCache(); // Run eventCache.disable(); eventCache.enable(); eventCache.recordEvent(EVENT1_SCHEMA, {}); // Assert expect(ev...
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
async () => { // Init const EVENT1_SCHEMA = 'com.amazon.rum.event1'; const EVENT2_SCHEMA = 'com.amazon.rum.event2'; const eventCache: EventCache = Utils.createDefaultEventCache(); // Run eventCache.recordEvent(EVENT1_SCHEMA, {}); eventCache.recordEvent(EVENT2_SC...
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
async () => { // Init const EVENT1_SCHEMA = 'com.amazon.rum.event1'; const EVENT2_SCHEMA = 'com.amazon.rum.event2'; const eventCache: EventCache = Utils.createDefaultEventCache(); const expectedEvents: RumEvent[] = [ { id: expect.stringMatching(/[0-9a...
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
async () => { // Init const EVENT1_SCHEMA = 'com.amazon.rum.event1'; const EVENT2_SCHEMA = 'com.amazon.rum.event2'; const BATCH_LIMIT = 1; const eventCache: EventCache = Utils.createEventCache({ ...DEFAULT_CONFIG, ...{ batchLimit: BATCH_LIMIT } })...
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
async () => { // Init const EVENT1_SCHEMA = 'com.amazon.rum.event1'; const EVENT2_SCHEMA = 'com.amazon.rum.event2'; const BATCH_LIMIT = 1; const eventCache: EventCache = Utils.createEventCache({ ...DEFAULT_CONFIG, ...{ batchLimit: BATCH_LIMIT } })...
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
async () => { // Init const EVENT1_SCHEMA = 'com.amazon.rum.event1'; const EVENT2_SCHEMA = 'com.amazon.rum.event2'; const BATCH_LIMIT = 20; const EVENT_LIMIT = 2; const eventCache: EventCache = Utils.createEventCache({ ...DEFAULT_CONFIG, ...{ ...
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
async () => { // Init const EVENT1_SCHEMA = 'com.amazon.rum.event1'; const eventCache: EventCache = Utils.createEventCache({ ...DEFAULT_CONFIG, ...{ pagesToExclude: [/.*/] } }); // Run eventCache.recordEvent(EVENT1_SCH...
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
async () => { // Init const EVENT1_SCHEMA = 'com.amazon.rum.event1'; const eventCache: EventCache = Utils.createEventCache({ ...DEFAULT_CONFIG, ...{ pagesToInclude: [/.*/] } }); const expectedEvents: RumEvent[] = [ ...
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
async () => { // Init const EVENT1_SCHEMA = 'com.amazon.rum.event1'; const eventCache: EventCache = Utils.createEventCache({ ...DEFAULT_CONFIG, ...{ pagesToInclude: [/.*/], pagesToExclude: [/.*/] } }); // Run ...
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
async () => { // Init const getSession = jest.fn(() => ({ sessionId: 'a', record: true })); const getUserId = jest.fn(() => 'b'); const incrementSessionEventCount = jest.fn(); (SessionManager as any).mockImplementation(() => ({ getSession, getUserId, ...
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
() => ({ sessionId: 'a', record: true })
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
() => ({ getSession, getUserId, incrementSessionEventCount })
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
async () => { // Init const getSession = jest.fn(() => ({ sessionId: 'a', record: true, eventCount: 1 })); const getUserId = jest.fn(() => 'b'); const getAttributes = jest.fn(() => {}); const incrementSessionEventCount = jest.fn(); ...
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
() => ({ sessionId: 'a', record: true, eventCount: 1 })
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
() => ({ getSession, getUserId, getAttributes, incrementSessionEventCount })
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
async () => { // Init let eventCount = 0; const getSession = jest.fn().mockImplementation(() => { eventCount++; return { sessionId: 'a', record: true, eventCount: eventCount }; }); const getUserI...
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
() => { eventCount++; return { sessionId: 'a', record: true, eventCount: eventCount }; }
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
async () => { // Init let eventCount = 0; const getSession = jest.fn(() => ({ sessionId: 'a', record: true })); const getUserId = jest.fn(() => 'b'); const getAttributes = jest.fn(() => {}); const incrementSessionEventCount = jest.fn(); (SessionManager as any).mo...
Deepak0988/aws-rum-web
src/event-cache/__tests__/EventCache.test.ts
TypeScript
ArrowFunction
state => { return { search: state.customers.search, selectedCount: state.customers.selected.length, } }
Cezerin3/Admin-NX
apps/admin/src/app/modules/customers/listHead/index.tsx
TypeScript
ArrowFunction
dispatch => { return { setSearch: value => { dispatch(setFilterSearch(value)) dispatch(fetchCustomers()) }, onDelete: () => { dispatch(deleteCustomers()) }, onSetGroup: group_id => { dispatch(setGroup(group_id)) }, } }
Cezerin3/Admin-NX
apps/admin/src/app/modules/customers/listHead/index.tsx
TypeScript
ArrowFunction
value => { dispatch(setFilterSearch(value)) dispatch(fetchCustomers()) }
Cezerin3/Admin-NX
apps/admin/src/app/modules/customers/listHead/index.tsx
TypeScript
ArrowFunction
() => { dispatch(deleteCustomers()) }
Cezerin3/Admin-NX
apps/admin/src/app/modules/customers/listHead/index.tsx
TypeScript
ArrowFunction
group_id => { dispatch(setGroup(group_id)) }
Cezerin3/Admin-NX
apps/admin/src/app/modules/customers/listHead/index.tsx
TypeScript
FunctionDeclaration
export function Home() { const [isOpen, setIsOpen] = useState(false); function handleClose() { setIsOpen(!isOpen); } return ( <> <Sidebar isOpen={isOpen} toggle={handleClose} /> <Navbar toggle={handleClose} /> </> ) }
kleytonsolinho/Healthy-Food
frontend/src/pages/Home/index.tsx
TypeScript
FunctionDeclaration
function handleClose() { setIsOpen(!isOpen); }
kleytonsolinho/Healthy-Food
frontend/src/pages/Home/index.tsx
TypeScript
ClassDeclaration
class ListTagController { async list(request: Request, response: Response) { const listTagService = new ListTagService(); const tags = await listTagService.execute(); return response.json(tags); } }
Alfredosavi/rocketseat-codes
valoriza/src/controllers/ListTagController.ts
TypeScript
MethodDeclaration
async list(request: Request, response: Response) { const listTagService = new ListTagService(); const tags = await listTagService.execute(); return response.json(tags); }
Alfredosavi/rocketseat-codes
valoriza/src/controllers/ListTagController.ts
TypeScript
ArrowFunction
() => { beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ HomeComponent ], imports: [ RouterTestingModule, ], }).compileComponents(); })); it('should create the component', async(() => { const fixture = TestBed.createComponent(HomeCo...
Rebolon/php-sf-flex-webpack-encore-vuejs
assets/js/form-devxpress-angular/src/app/home/home.component.spec.ts
TypeScript
ArrowFunction
() => { TestBed.configureTestingModule({ declarations: [ HomeComponent ], imports: [ RouterTestingModule, ], }).compileComponents(); }
Rebolon/php-sf-flex-webpack-encore-vuejs
assets/js/form-devxpress-angular/src/app/home/home.component.spec.ts
TypeScript
ArrowFunction
() => { const fixture = TestBed.createComponent(HomeComponent); const app = fixture.debugElement.componentInstance; expect(app).toBeTruthy(); }
Rebolon/php-sf-flex-webpack-encore-vuejs
assets/js/form-devxpress-angular/src/app/home/home.component.spec.ts
TypeScript
ArrowFunction
(projet) => { return <ion-col class={ 'column-' + this.cardsPerRow }> <img class='project-logo' src={this.rootPath + projet.directoryName + '/logo' + this.fileExtension}...
Salomizi/PWA-PO
src/components/app-projects-gallery/app-projects-gallery.tsx
TypeScript
ClassDeclaration
@Component({ tag: 'app-projects-gallery', styleUrl: 'app-projects-gallery.scss' }) export class AppProjectsGallery { @State() private cardsPerRow: number; @State() private columns: number; @State() private projets: Projet[]; @State() private fileExtension: string; @State(...
Salomizi/PWA-PO
src/components/app-projects-gallery/app-projects-gallery.tsx
TypeScript
MethodDeclaration
componentWillLoad() { this.computeGridProperties(); this.projets = getProjets(); this.fileExtension = getFilesExtension(); this.rootPath = getProjectsRootPath(); }
Salomizi/PWA-PO
src/components/app-projects-gallery/app-projects-gallery.tsx
TypeScript
MethodDeclaration
/** * Ecoute les modification de taille de fenêtre */ @Listen('window:resize') windowResize() { this.computeGridProperties(); }
Salomizi/PWA-PO
src/components/app-projects-gallery/app-projects-gallery.tsx
TypeScript