type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
FunctionDeclaration
/** * */ export default function LandingAppBar(props: LandingAppBarProps): JSX.Element { const {} = props; return <nav className="p-4"></nav>; }
UTDNebula/planner
components/landing/AppBar.tsx
TypeScript
InterfaceDeclaration
/** * Component properties for a LandingAppBar. */ interface LandingAppBarProps { items: LandingBarItem; }
UTDNebula/planner
components/landing/AppBar.tsx
TypeScript
TypeAliasDeclaration
type LandingBarItem = { title: string; href: string; };
UTDNebula/planner
components/landing/AppBar.tsx
TypeScript
ArrowFunction
() => { describe('Component', () => { it('render', async () => { const page = await newE2EPage() await page.setContent( `<webc-modal> <p>Hello world</p> </webc-modal>` ) const component = await page.find(COMPONENT_NAME) expect(component).toHaveClass('hydrat...
kimulaco/webc-modal
src/components/webc-modal/webc-modal.e2e.ts
TypeScript
ArrowFunction
() => { it('render', async () => { const page = await newE2EPage() await page.setContent( `<webc-modal> <p>Hello world</p> </webc-modal>` ) const component = await page.find(COMPONENT_NAME) expect(component).toHaveClass('hydrated') }) }
kimulaco/webc-modal
src/components/webc-modal/webc-modal.e2e.ts
TypeScript
ArrowFunction
async () => { const page = await newE2EPage() await page.setContent( `<webc-modal> <p>Hello world</p> </webc-modal>` ) const component = await page.find(COMPONENT_NAME) expect(component).toHaveClass('hydrated') }
kimulaco/webc-modal
src/components/webc-modal/webc-modal.e2e.ts
TypeScript
ArrowFunction
() => { it('show()', async () => { const page = await newE2EPage() await page.setContent( `<webc-modal> <p>Hello world</p> </webc-modal>` ) const component = await page.find(COMPONENT_NAME) const rootElement = await page.find(ROOT_ELEMENT) expect(rootEl...
kimulaco/webc-modal
src/components/webc-modal/webc-modal.e2e.ts
TypeScript
ArrowFunction
async () => { const page = await newE2EPage() await page.setContent( `<webc-modal> <p>Hello world</p> </webc-modal>` ) const component = await page.find(COMPONENT_NAME) const rootElement = await page.find(ROOT_ELEMENT) expect(rootElement).not.toHaveClass('s...
kimulaco/webc-modal
src/components/webc-modal/webc-modal.e2e.ts
TypeScript
ArrowFunction
async () => { const page = await newE2EPage() await page.setContent( `<webc-modal> <p>Hello world</p> </webc-modal>` ) const component = await page.find(COMPONENT_NAME) const rootElement = await page.find(ROOT_ELEMENT) await component.callMethod('show') ...
kimulaco/webc-modal
src/components/webc-modal/webc-modal.e2e.ts
TypeScript
ClassDeclaration
export class Schueler { name: string; gruppenId?: string; }
crymlink/projektBackend
src/interface/schueler.class.ts
TypeScript
TypeAliasDeclaration
export type SchuelerDocument = Schueler & Document;
crymlink/projektBackend
src/interface/schueler.class.ts
TypeScript
ArrowFunction
(msg: Message) => { const dataHash = utils.solidityKeccak256(['bytes'], [msg.data]); return utils.solidityKeccak256( ['address', 'address', 'uint256', 'bytes32', 'uint256', 'uint', 'address', 'uint', 'uint'], [msg.from, msg.to, msg.value, dataHash, msg.nonce, msg.gasPrice, msg.gasToken, msg.gasLimit, msg.o...
aihua/eth-UniversalLoginSDK
universal-login-contracts/lib/calculateMessageSignature.ts
TypeScript
ArrowFunction
(privateKey: string, msg: Message) => { const wallet = new Wallet(privateKey); const massageHash = calculateMessageHash(msg); return wallet.signMessage(utils.arrayify(massageHash)); }
aihua/eth-UniversalLoginSDK
universal-login-contracts/lib/calculateMessageSignature.ts
TypeScript
InterfaceDeclaration
export interface Message { from: string; to: string; value: utils.BigNumberish; data: string; nonce: utils.BigNumberish; gasPrice: utils.BigNumberish; gasToken: string; gasLimit: utils.BigNumberish; operationType: utils.BigNumberish; }
aihua/eth-UniversalLoginSDK
universal-login-contracts/lib/calculateMessageSignature.ts
TypeScript
ClassDeclaration
export class AttachCertificateToDistributionCommand extends $Command< AttachCertificateToDistributionCommandInput, AttachCertificateToDistributionCommandOutput, LightsailClientResolvedConfig > { // Start section: command_properties // End section: command_properties constructor(readonly input: AttachCerti...
justingrant/aws-sdk-js-v3
clients/client-lightsail/commands/AttachCertificateToDistributionCommand.ts
TypeScript
TypeAliasDeclaration
export type AttachCertificateToDistributionCommandInput = AttachCertificateToDistributionRequest;
justingrant/aws-sdk-js-v3
clients/client-lightsail/commands/AttachCertificateToDistributionCommand.ts
TypeScript
TypeAliasDeclaration
export type AttachCertificateToDistributionCommandOutput = AttachCertificateToDistributionResult & __MetadataBearer;
justingrant/aws-sdk-js-v3
clients/client-lightsail/commands/AttachCertificateToDistributionCommand.ts
TypeScript
MethodDeclaration
resolveMiddleware( clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LightsailClientResolvedConfig, options?: __HttpHandlerOptions ): Handler<AttachCertificateToDistributionCommandInput, AttachCertificateToDistributionCommandOutput> { this.middlewareStack.use(getSerd...
justingrant/aws-sdk-js-v3
clients/client-lightsail/commands/AttachCertificateToDistributionCommand.ts
TypeScript
MethodDeclaration
private serialize( input: AttachCertificateToDistributionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> { return serializeAws_json1_1AttachCertificateToDistributionCommand(input, context); }
justingrant/aws-sdk-js-v3
clients/client-lightsail/commands/AttachCertificateToDistributionCommand.ts
TypeScript
MethodDeclaration
private deserialize( output: __HttpResponse, context: __SerdeContext ): Promise<AttachCertificateToDistributionCommandOutput> { return deserializeAws_json1_1AttachCertificateToDistributionCommand(output, context); }
justingrant/aws-sdk-js-v3
clients/client-lightsail/commands/AttachCertificateToDistributionCommand.ts
TypeScript
ArrowFunction
() => { getTableData(); }
JohnZhaoXiaoHu/vue3-admin-vite-ts
src/views/table/baseTable.tsx
TypeScript
ArrowFunction
() => { baseTableRef.value.clearScroll(); loading.value = true; tableModel .base({ pageSize: pageConf.pageSize, currentPage: pageConf.currentPage, }) .then(res => { tableData.value = res.list; pageConf.total = res.total; loadin...
JohnZhaoXiaoHu/vue3-admin-vite-ts
src/views/table/baseTable.tsx
TypeScript
ArrowFunction
res => { tableData.value = res.list; pageConf.total = res.total; loading.value = false; }
JohnZhaoXiaoHu/vue3-admin-vite-ts
src/views/table/baseTable.tsx
TypeScript
ArrowFunction
err => { tableData.value= [] loading.value = false; }
JohnZhaoXiaoHu/vue3-admin-vite-ts
src/views/table/baseTable.tsx
TypeScript
ArrowFunction
({ row }) => ( <el-input
JohnZhaoXiaoHu/vue3-admin-vite-ts
src/views/table/baseTable.tsx
TypeScript
ArrowFunction
e => { let { pageSize, currentPage, type } = e; if (type === "size") { pageConf.currentPage = 1; getTableData(); } else { getTableData(); } }
JohnZhaoXiaoHu/vue3-admin-vite-ts
src/views/table/baseTable.tsx
TypeScript
ArrowFunction
row => { const rows = Object.assign(row, { name: "1111" }); baseTableRef.value.reloadRow([rows]); }
JohnZhaoXiaoHu/vue3-admin-vite-ts
src/views/table/baseTable.tsx
TypeScript
ArrowFunction
() => ( <div> <vxe-table
JohnZhaoXiaoHu/vue3-admin-vite-ts
src/views/table/baseTable.tsx
TypeScript
ArrowFunction
({ row }) => { return ( <el-button size="mini" type="success" onClick={handINput.bind(this, row)} > update </el-button> ); }
JohnZhaoXiaoHu/vue3-admin-vite-ts
src/views/table/baseTable.tsx
TypeScript
MethodDeclaration
setup() { const baseTableRef = ref({} as VxeTableInstance); const tableData = ref([]); const loading = ref(false); const pageConf = reactive({ pageSize: 20, currentPage: 1, total: 0, }); onMounted(() => { getTableData(); }); const getTableData = () => { bas...
JohnZhaoXiaoHu/vue3-admin-vite-ts
src/views/table/baseTable.tsx
TypeScript
ArrowFunction
() => { const props = { processInstance: { id: '538f9feb-5a14-4096-b791-2055b38da7c6', processId: 'travels', businessKey: 'Tra234', parentProcessInstanceId: null, parentProcessInstance: null, processName: 'travels', rootProcessInstanceId: null, roles: [], sta...
AjayJagan/kogito-apps
ui-packages/packages/process-list/src/envelope/components/ProcessListActionsKebab/tests/ProcessListActionsKebab.test.tsx
TypeScript
ArrowFunction
() => { let wrapper = mount(<ProcessListActionsKebab {...props} />); wrapper .find(Dropdown) .find(KebabToggle) .find('button') .simulate('click'); wrapper = wrapper.update(); expect( wrapper .find(DropdownItem) .at(1) .find('a') .children()...
AjayJagan/kogito-apps
ui-packages/packages/process-list/src/envelope/components/ProcessListActionsKebab/tests/ProcessListActionsKebab.test.tsx
TypeScript
ArrowFunction
() => { let wrapper = mount(<ProcessListActionsKebab {...props} />); wrapper .find(Dropdown) .find(KebabToggle) .find('button') .simulate('click'); wrapper = wrapper.update(); expect( wrapper .find(DropdownItem) .at(0) .find('a') .children()...
AjayJagan/kogito-apps
ui-packages/packages/process-list/src/envelope/components/ProcessListActionsKebab/tests/ProcessListActionsKebab.test.tsx
TypeScript
ArrowFunction
() => { let wrapper = mount(<ProcessListActionsKebab {...props} />); wrapper .find(Dropdown) .find(KebabToggle) .find('button') .simulate('click'); wrapper = wrapper.update(); expect( wrapper .find(DropdownItem) .at(2) .find('a') .children()...
AjayJagan/kogito-apps
ui-packages/packages/process-list/src/envelope/components/ProcessListActionsKebab/tests/ProcessListActionsKebab.test.tsx
TypeScript
ArrowFunction
() => { let wrapper = mount( <ProcessListActionsKebab {...{ ...props, processInstance: { ...props.processInstance, state: ProcessInstanceState.Active } }} /> ); wrapper .find(Dropdown) .find(KebabToggle) .fi...
AjayJagan/kogito-apps
ui-packages/packages/process-list/src/envelope/components/ProcessListActionsKebab/tests/ProcessListActionsKebab.test.tsx
TypeScript
FunctionDeclaration
/** * Compares two currencies for equality */ export declare function currencyEquals(currencyA: Currency, currencyB: Currency): boolean;
hexlabio/pancake-sdk
dist/entities/token.d.ts
TypeScript
ClassDeclaration
/** * Represents an ERC20 token with a unique address and some metadata. */ export declare class Token extends Currency { readonly chainId: ChainId; readonly address: string; readonly projectLink?: string; constructor(chainId: ChainId, address: string, decimals: number, symbol?: string, name?: s...
hexlabio/pancake-sdk
dist/entities/token.d.ts
TypeScript
MethodDeclaration
/** * Returns true if the two tokens are equivalent, i.e. have the same chainId and address. * @param other other token to compare */ equals(other: Token): boolean;
hexlabio/pancake-sdk
dist/entities/token.d.ts
TypeScript
MethodDeclaration
/** * Returns true if the address of this token sorts before the address of the other token * @param other other token to compare * @throws if the tokens have the same address * @throws if the tokens are on different chains */ sortsBefore(other: Token): boolean;
hexlabio/pancake-sdk
dist/entities/token.d.ts
TypeScript
FunctionDeclaration
export default function makeExpressRouterAdapter() { return function expressRouterAdapter(controller, responseFormat?: string, download?: boolean) { return async (req: Request | any, res: Response) => { const httpRequest: IHttpRequest = { body: req.body, params: req.params, token: ...
Nex-Developers/node-boilerplate
src/configs/adapters/express-router-adapter.ts
TypeScript
ArrowFunction
async (req: Request | any, res: Response) => { const httpRequest: IHttpRequest = { body: req.body, params: req.params, token: req.params.token, ref: req.params.ref, lang: req.params.lang, file: req.file } // console.log('adapt lang ', httpRequest.lang) ...
Nex-Developers/node-boilerplate
src/configs/adapters/express-router-adapter.ts
TypeScript
ArrowFunction
({ hideLoader, onInViewport, pending }) => { const [inViewport, setInViewport] = useState(false) const [element, setElement] = useState<HTMLDivElement | null>(null) useEffect(() => { if (element) { const observer = new IntersectionObserver( entries => { ...
keesey/phylopic
apps/www/src/swr/pagination/InfiniteScroll/index.tsx
TypeScript
ArrowFunction
() => { if (element) { const observer = new IntersectionObserver( entries => { for (const entry of entries) { if (entry.intersectionRatio > 0) { setInViewport(true) } else { ...
keesey/phylopic
apps/www/src/swr/pagination/InfiniteScroll/index.tsx
TypeScript
ArrowFunction
entries => { for (const entry of entries) { if (entry.intersectionRatio > 0) { setInViewport(true) } else { setInViewport(false) } } }
keesey/phylopic
apps/www/src/swr/pagination/InfiniteScroll/index.tsx
TypeScript
ArrowFunction
() => observer.disconnect()
keesey/phylopic
apps/www/src/swr/pagination/InfiniteScroll/index.tsx
TypeScript
ArrowFunction
() => { if (!pending && inViewport) { onInViewport?.() } }
keesey/phylopic
apps/www/src/swr/pagination/InfiniteScroll/index.tsx
TypeScript
InterfaceDeclaration
export interface Props { hideLoader?: boolean onInViewport?: () => void pending?: boolean }
keesey/phylopic
apps/www/src/swr/pagination/InfiniteScroll/index.tsx
TypeScript
ArrowFunction
(iconProps: IFluentIconsProps, props: React.HTMLAttributes<HTMLElement>): JSX.Element => { const { primaryFill, className } = iconProps; return <svg {...props} width={12} height={12} viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg" className={className}><path d="M7.5 5.5a1.5 1.5 0 11-3 0 1.5 1.5 0 ...
LiquidatorCoder/fluentui-system-icons
packages/react-icons/src/components/VideoPerson12Filled.tsx
TypeScript
ArrowFunction
() => import('./views/base/base.module').then(m => m.BaseModule)
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ArrowFunction
m => m.BaseModule
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ArrowFunction
() => import('./views/buttons/buttons.module').then(m => m.ButtonsModule)
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ArrowFunction
m => m.ButtonsModule
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ArrowFunction
() => import('./views/chartjs/chartjs.module').then(m => m.ChartJSModule)
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ArrowFunction
m => m.ChartJSModule
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ArrowFunction
() => import('./views/dashboard/dashboard.module').then(m => m.DashboardModule)
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ArrowFunction
m => m.DashboardModule
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ArrowFunction
() => import('./views/icons/icons.module').then(m => m.IconsModule)
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ArrowFunction
m => m.IconsModule
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ArrowFunction
() => import('./views/notifications/notifications.module').then(m => m.NotificationsModule)
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ArrowFunction
m => m.NotificationsModule
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ArrowFunction
() => import('./views/manage/manage.module').then(m => m.ManageModule)
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ArrowFunction
m => m.ManageModule
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ArrowFunction
() => import('./views/theme/theme.module').then(m => m.ThemeModule)
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ArrowFunction
m => m.ThemeModule
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ArrowFunction
() => import('./views/widgets/widgets.module').then(m => m.WidgetsModule)
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ArrowFunction
m => m.WidgetsModule
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ClassDeclaration
@NgModule({ imports: [ RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' }) ], exports: [ RouterModule ] }) export class AppRoutingModule {}
funpk4/eshopper-heroku
src/app/app.routing.ts
TypeScript
ClassDeclaration
export class AwsS3Component implements Component { constructor() { this.providers = { [AWSS3Bindings.AwsS3Provider.key]: AwsS3Provider, }; } providers?: ProviderMap = {}; }
sf-kansara/loopback4-s3
src/component.ts
TypeScript
ArrowFunction
(processCfg: HyperionProcessConfig)=> { const type: string = processCfg.type; if (this.moduleRegistry.has(type)) { const module: HyperionModule = this.moduleRegistry.get(type); const validator: HyperionValidator = module.getValidator(); ...
asteria-project/asteria-hyperion
src/com/asteria/hyperion/core/Hyperion.ts
TypeScript
ClassDeclaration
/** * The <code>Hyperion</code> class is the entry point of the Hyperion framework. It provides all functionalities needed * for running Asteria processes defined by Plain Old JavaScript objects. */ export class Hyperion extends AbstractAsteriaObject { /** * The session config for this <code>Hyperion</code...
asteria-project/asteria-hyperion
src/com/asteria/hyperion/core/Hyperion.ts
TypeScript
MethodDeclaration
/** * Build and return a new <code>Hyperion</code> instance. * * @param {HyperionConfig} config the description of all Asteria processes managed by this <code>Hyperion</code> * instance. * * @returns {Hyperion} a new <code>Hyperion</code> instance. */ ...
asteria-project/asteria-hyperion
src/com/asteria/hyperion/core/Hyperion.ts
TypeScript
MethodDeclaration
/** * Return the <code>HyperionModuleRegistry</code> object for this processor. * * @returns {HyperionModuleRegistry} the <code>HyperionModuleRegistry</code> object for this processor. */ public getModuleRegistry(): HyperionModuleRegistry { return this.moduleRegistry; }
asteria-project/asteria-hyperion
src/com/asteria/hyperion/core/Hyperion.ts
TypeScript
MethodDeclaration
/** * Set the <code>HyperionModuleRegistry</code> object for this processor. * * @param {HyperionModuleRegistry} moduleRegistry the new <code>HyperionModuleRegistry</code> object for this * processor. */ public setModuleRegistry(moduleRegistry: Hy...
asteria-project/asteria-hyperion
src/com/asteria/hyperion/core/Hyperion.ts
TypeScript
MethodDeclaration
/** * Run all stream processes registered in this <code>Hyperion</code> instance and return the the reference to the * last registered stream. * * @returns {AsteriaStream} the reference to the <code>AsteriaStream</code> objects created by this processor. */ public run(): AsteriaStream { ...
asteria-project/asteria-hyperion
src/com/asteria/hyperion/core/Hyperion.ts
TypeScript
MethodDeclaration
/** * Stop all stream processes registered in this <code>Hyperion</code> instance. */ public stop(): void { // TODO: not implemented yet. }
asteria-project/asteria-hyperion
src/com/asteria/hyperion/core/Hyperion.ts
TypeScript
MethodDeclaration
/** * Return the context for this <code>Hyperion</code> instance. * * @returns {AsteriaContext} the context for this <code>Hyperion</code> instance. */ public getContext(): AsteriaContext { return this.SESSION.getContext(); }
asteria-project/asteria-hyperion
src/com/asteria/hyperion/core/Hyperion.ts
TypeScript
MethodDeclaration
/** * Parse the specified Hyperion config and initialize the processor. */ private initProcessor(config: HyperionConfig): void { const processes: Array<HyperionProcessConfig> = config.processes; const logger: AsteriaLogger = (this.SESSION.getContext() as OuranosContext).getLogger(); if...
asteria-project/asteria-hyperion
src/com/asteria/hyperion/core/Hyperion.ts
TypeScript
MethodDeclaration
/** * Initialize the module registry with default modules. */ private initModuleRegistry(): void { const factory: HyperionModuleRegistryFactory = new HyperionModuleRegistryFactory(); this.moduleRegistry = factory.create(); }
asteria-project/asteria-hyperion
src/com/asteria/hyperion/core/Hyperion.ts
TypeScript
ArrowFunction
() => { const { state, controls } = useContext(ColorGeneratorContext); const [activeColor, setActiveColor] = useState(''); const toggleActiveColor = (color: string) => { setActiveColor(activeColor === color ? '' : color); }; return ( <ul className={styles.selectColors}> {Array.from(state.colo...
Christo-Deyzel/ionic-docs
src/components/ColorGenerator/SelectColors/index.tsx
TypeScript
ArrowFunction
(color: string) => { setActiveColor(activeColor === color ? '' : color); }
Christo-Deyzel/ionic-docs
src/components/ColorGenerator/SelectColors/index.tsx
TypeScript
ArrowFunction
([name]) => { const { tint, shade } = state.colors.get(name); const isOpen = activeColor === name ? true : false; return ( <li className={clsx({ [styles.item]: true, [styles.isOpen]: isOpen })} > <VariableSelector name={name} ...
Christo-Deyzel/ionic-docs
src/components/ColorGenerator/SelectColors/index.tsx
TypeScript
MethodDeclaration
clsx({ [styles.item]: true, [styles.isOpen]: isOpen })
Christo-Deyzel/ionic-docs
src/components/ColorGenerator/SelectColors/index.tsx
TypeScript
ClassDeclaration
export declare class NgbTimepickerModule { }
bigzerosolutions/qlez-app
node_modules/@ng-bootstrap/ng-bootstrap/timepicker/timepicker.module.d.ts
TypeScript
ArrowFunction
([key, value]) => { if (value === null || typeof value === 'undefined') { return; } if (Array.isArray(value)) { // eslint-disable-next-line no-param-reassign value = value.join(','); } if (value instanceof Date) { // eslint-disable-next-line no-param-reas...
alanmxll/jira.js
src/clients/baseClient.ts
TypeScript
ArrowFunction
([, value]) => typeof value !== 'undefined'
alanmxll/jira.js
src/clients/baseClient.ts
TypeScript
ArrowFunction
(accumulator, [key, value]) => ({ ...accumulator, [key]: value })
alanmxll/jira.js
src/clients/baseClient.ts
TypeScript
ArrowFunction
(data: T): void => callback(null, data)
alanmxll/jira.js
src/clients/baseClient.ts
TypeScript
ArrowFunction
(data: T): T => data
alanmxll/jira.js
src/clients/baseClient.ts
TypeScript
ArrowFunction
(error: Config.Error) => callback(error)
alanmxll/jira.js
src/clients/baseClient.ts
TypeScript
ArrowFunction
(error: Error) => { throw error; }
alanmxll/jira.js
src/clients/baseClient.ts
TypeScript
ClassDeclaration
export class BaseClient implements Client { private instance: AxiosInstance; constructor(protected readonly config: Config) { this.instance = axios.create({ paramsSerializer: this.paramSerializer.bind(this), ...config.baseRequestConfig, baseURL: config.host, headers: this.removeUndefin...
alanmxll/jira.js
src/clients/baseClient.ts
TypeScript
MethodDeclaration
protected paramSerializer(parameters: Record<string, any>): string { const parts: string[] = []; Object.entries(parameters).forEach(([key, value]) => { if (value === null || typeof value === 'undefined') { return; } if (Array.isArray(value)) { // eslint-disable-next-line no-...
alanmxll/jira.js
src/clients/baseClient.ts
TypeScript
MethodDeclaration
protected encode(value: string) { return encodeURIComponent(value) .replace(/%3A/gi, ':') .replace(/%24/g, '$') .replace(/%2C/gi, ',') .replace(/%20/g, '+') .replace(/%5B/gi, '[') .replace(/%5D/gi, ']'); }
alanmxll/jira.js
src/clients/baseClient.ts
TypeScript
MethodDeclaration
protected removeUndefinedProperties(obj: Record<string, any>): Record<string, any> { return Object.entries(obj) .filter(([, value]) => typeof value !== 'undefined') .reduce((accumulator, [key, value]) => ({ ...accumulator, [key]: value }), {}); }
alanmxll/jira.js
src/clients/baseClient.ts
TypeScript
MethodDeclaration
async sendRequest<T>(requestConfig: RequestConfig, callback: never, telemetryData?: any): Promise<T>;
alanmxll/jira.js
src/clients/baseClient.ts
TypeScript
MethodDeclaration
async sendRequest<T>(requestConfig: RequestConfig, callback: Callback<T>, telemetryData?: any): Promise<void>;
alanmxll/jira.js
src/clients/baseClient.ts
TypeScript
MethodDeclaration
async sendRequest<T>(requestConfig: RequestConfig, callback: Callback<T> | never): Promise<void | T> { try { const modifiedRequestConfig = { ...requestConfig, headers: this.removeUndefinedProperties({ Authorization: await AuthenticationService.getAuthenticationToken(this.config.auth...
alanmxll/jira.js
src/clients/baseClient.ts
TypeScript
ClassDeclaration
export class ColourConfig extends React.Component<IProps, {}> { render() { return ( <div className={'colour-config-container'}> <div className={'colour-select-container'}> <div className={'colour-select'}> <label className={'form-label'} style={{ lineHeight: '24px' }}
Meebuhs/newtab
src/newtab/components/ui/modals/editors/ColourConfig.tsx
TypeScript
InterfaceDeclaration
interface IProps { updateColourValue: (attribute: string, value: RGBColor) => void backgroundColour: RGBColor }
Meebuhs/newtab
src/newtab/components/ui/modals/editors/ColourConfig.tsx
TypeScript
MethodDeclaration
render() { return ( <div className={'colour-config-container'}> <div className={'colour-select-container'}> <div className={'colour-select'}> <label className={'form-label'} style={{ lineHeight: '24px' }}
Meebuhs/newtab
src/newtab/components/ui/modals/editors/ColourConfig.tsx
TypeScript