type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
FunctionDeclaration
export function SacramentsBoldIcon(props: IconProps) { return ( <Icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}> <path d="M.5 12A11.5 11.5 0 1012 .5 11.513 11.513 0 00.5 12zm5-.5a1 1 0 011-1h3.75a.25.25 0 00.25-.25V6.5a1 1 0 011-1h1a1 1 0 011 1v3.75a.25.25 0 00.25.25h3.75a1 1 0 011 1v1a1 1 0 01-1 1h-3.75a.25.25 0 00-.25.25v3.75a1 1 0 01-1 1h-1a1 1 0 01-1-1v-3.75a.25.25 0 00-.25-.25H6.5a1 1 0 01-1-1z" /> </Icon> ) }
ParishConnect/ui
src/Icon/generated/SacramentsBold.tsx
TypeScript
ArrowFunction
(iconProps: IFluentIconsProps, props: React.HTMLAttributes<HTMLElement>): JSX.Element => { const { primaryFill, className } = iconProps; return <svg {...props} width={24} height={24} viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" className={className}><path d="M15.28 6.03c-.3.3-.77.3-1.06 0l-1.47-1.47v3.69a.75.75 0 01-1.5 0V4.56L9.78 6.03a.75.75 0 01-1.06-1.06l2.75-2.75a.75.75 0 011.06 0l2.75 2.75c.3.3.3.77 0 1.06z" fill={primaryFill} /><path d="M6.03 14.22a.75.75 0 11-1.06 1.06l-2.75-2.75a.75.75 0 010-1.06l2.75-2.75a.75.75 0 011.06 1.06l-1.47 1.47h3.69a.75.75 0 010 1.5H4.56l1.47 1.47z" fill={primaryFill} /><path d="M17.97 15.28a.75.75 0 010-1.06l1.47-1.47h-3.69a.75.75 0 010-1.5h3.69l-1.47-1.47a.75.75 0 011.06-1.06l2.75 2.75a.75.75 0 010 1.06l-2.75 2.75c-.3.3-.77.3-1.06 0z" fill={primaryFill} /><path d="M15.28 17.97a.75.75 0 00-1.06 0l-1.47 1.47v-3.69a.75.75 0 00-1.5 0v3.69l-1.47-1.47a.75.75 0 00-1.06 1.06l2.75 2.75a.75.75 0 001.06 0l2.75-2.75c.3-.3.3-.77 0-1.06z" fill={primaryFill} /></svg>; }
LiquidatorCoder/fluentui-system-icons
packages/react-icons/src/components/ArrowMove24Regular.tsx
TypeScript
MethodDeclaration
startAnimationForLineChart(chart) { let seq: any, delays: any, durations: any; seq = 0; delays = 80; durations = 500; chart.on('draw', function (data) { if (data.type === 'line' || data.type === 'area') { data.element.animate({ d: { begin: 600, dur: 700, from: data.path.clone().scale(1, 0).translate(0, data.chartRect.height()).stringify(), to: data.path.clone().stringify(), easing: Chartist.Svg.Easing.easeOutQuint } }); } else if (data.type === 'point') { seq++; data.element.animate({ opacity: { begin: seq * delays, dur: durations, from: 0, to: 1, easing: 'ease' } }); } }); seq = 0; }
raylison100/Voltaqui-Frontend
src/app/components/dashboard/dashboard.component.ts
TypeScript
MethodDeclaration
startAnimationForBarChart(chart) { let seq2: any, delays2: any, durations2: any; seq2 = 0; delays2 = 80; durations2 = 500; chart.on('draw', function (data) { if (data.type === 'bar') { seq2++; data.element.animate({ opacity: { begin: seq2 * delays2, dur: durations2, from: 0, to: 1, easing: 'ease' } }); } }); seq2 = 0; }
raylison100/Voltaqui-Frontend
src/app/components/dashboard/dashboard.component.ts
TypeScript
MethodDeclaration
ngOnInit() { /* ----------========== Visitas na semana Chart initialization For Documentation ==========---------- */ const dataDailySalesChart: any = { labels: ['M', 'T', 'W', 'T', 'F', 'S', 'S'], series: [ [12, 17, 7, 17, 23, 18, 38] ] }; const optionsDailySalesChart: any = { lineSmooth: Chartist.Interpolation.cardinal({ tension: 0 }), low: 0, high: 50, // creative tim: we recommend you to set the high sa the biggest value + something for a better look chartPadding: { top: 0, right: 0, bottom: 0, left: 0 }, } var dailySalesChart = new Chartist.Line('#dailySalesChart', dataDailySalesChart, optionsDailySalesChart); this.startAnimationForLineChart(dailySalesChart); /* ----------========== Visitas no ano Chart initialization ==========---------- */ var datawebsiteViewsChart = { labels: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], series: [ [542, 443, 320, 780, 553, 453, 326, 434, 568, 610, 756, 895] ] }; var optionswebsiteViewsChart = { axisX: { showGrid: false }, low: 0, high: 1000, chartPadding: { top: 0, right: 5, bottom: 0, left: 0 } }; var responsiveOptions: any[] = [ ['screen and (max-width: 640px)', { seriesBarDistance: 5, axisX: { labelInterpolationFnc: function (value) { return value[0]; } } }] ]; var websiteViewsChart = new Chartist.Bar('#websiteViewsChart', datawebsiteViewsChart, optionswebsiteViewsChart, responsiveOptions); //start animation for the Emails Subscription Chart this.startAnimationForBarChart(websiteViewsChart); /* ----------========== Avaliacoes na semana Chart initialization ==========---------- */ const dataCompletedTasksChart: any = { labels: ['M', 'T', 'W', 'T', 'F', 'S', 'S'], series: [ [20, 50, 45, 30, 28, 24, 20,] ] }; const optionsCompletedTasksChart: any = { lineSmooth: Chartist.Interpolation.cardinal({ tension: 0 }), low: 0, high: 60, // creative tim: we recommend you to set the high sa the biggest value + something for a better look chartPadding: { top: 0, right: 0, bottom: 0, left: 0 } } var completedTasksChart = new Chartist.Line('#completedTasksChart', dataCompletedTasksChart, optionsCompletedTasksChart); // start animation for the Completed Tasks Chart - Line Chart this.startAnimationForLineChart(completedTasksChart); /* ----------========== avaliações no ano Chart initialization ==========---------- */ var avaliacoesAnoViewsChart = { labels: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], series: [ [542, 443, 320, 780, 553, 453, 326, 434, 568, 610, 756, 895] ] }; var optionsAvaliacoesAnoChart = { axisX: { showGrid: false }, low: 0, high: 1000, chartPadding: { top: 0, right: 5, bottom: 0, left: 0 } }; var responsiveOptions: any[] = [ ['screen and (max-width: 640px)', { seriesBarDistance: 5, axisX: { labelInterpolationFnc: function (value) { return value[0]; } } }] ]; var avaliacoesAnoChart = new Chartist.Bar('#avaliacoesAnoChart', avaliacoesAnoViewsChart, optionsAvaliacoesAnoChart, responsiveOptions); //start animation for the Emails Subscription Chart this.startAnimationForBarChart(avaliacoesAnoChart); /* ----------========== Motivacao na semana Chart initialization ==========---------- */ const dataMotivationChart: any = { labels: ['M', 'T', 'W', 'T', 'F', 'S', 'S'], series: [ [2.2, 4, 5, 5, 2, 4, 3], [5, 4, 4, 4, 3.5, 5, 5], [4.5,4.5,3.5,5,3.5,4,3.5] ] }; const optionsMotivationChart: any = { lineSmooth: Chartist.Interpolation.cardinal({ tension: 0 }), low: 1, high: 6, // creative tim: we recommend you to set the high sa the biggest value + something for a better look chartPadding: { top: 0, right: 0, bottom: 0, left: 0 }, } var motivationChart = new Chartist.Line('#motivationChart', dataMotivationChart, optionsMotivationChart); this.startAnimationForLineChart(motivationChart); /* ----------========== Motivacoes no ano Chart initialization ==========---------- */ var motivacaoAnoViewsChart = { labels: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], series: [ [5, 4, 3.5, 4, 4, 3.5, 5, 5, 3, 2, 4, 5], [3, 3, 3, 4, 4, 4, 4.5, 3, 5, 5, 5, 4.6], [3.2, 3.6, 4.2, 4.5, 4.2, 4.3, 4.8, 5, 4.6, 3.9, 4.2, 5] ] }; var optionsmotivacaoAnoViewsChart = { axisX: { showGrid: false }, low: 1, high: 6, chartPadding: { top: 0, right: 5, bottom: 0, left: 0 } }; var responsiveOptions: any[] = [ ['screen and (max-width: 640px)', { seriesBarDistance: 5, axisX: { labelInterpolationFnc: function (value) { return value[0]; } } }] ]; var motivacaoanoViewsChart = new Chartist.Bar('#motivacaoanoViewsChart', motivacaoAnoViewsChart, optionsmotivacaoAnoViewsChart, responsiveOptions); //start animation for the Emails Subscription Chart this.startAnimationForBarChart(motivacaoanoViewsChart); }
raylison100/Voltaqui-Frontend
src/app/components/dashboard/dashboard.component.ts
TypeScript
FunctionDeclaration
/** * A DDoS protection plan in a resource group. */ export function getDdosProtectionPlan(args: GetDdosProtectionPlanArgs, opts?: pulumi.InvokeOptions): Promise<GetDdosProtectionPlanResult> { if (!opts) { opts = {} } if (!opts.version) { opts.version = utilities.getVersion(); } return pulumi.runtime.invoke("azure-native:network/v20181001:getDdosProtectionPlan", { "ddosProtectionPlanName": args.ddosProtectionPlanName, "resourceGroupName": args.resourceGroupName, }, opts); }
polivbr/pulumi-azure-native
sdk/nodejs/network/v20181001/getDdosProtectionPlan.ts
TypeScript
InterfaceDeclaration
export interface GetDdosProtectionPlanArgs { /** * The name of the DDoS protection plan. */ ddosProtectionPlanName: string; /** * The name of the resource group. */ resourceGroupName: string; }
polivbr/pulumi-azure-native
sdk/nodejs/network/v20181001/getDdosProtectionPlan.ts
TypeScript
InterfaceDeclaration
/** * A DDoS protection plan in a resource group. */ export interface GetDdosProtectionPlanResult { /** * A unique read-only string that changes whenever the resource is updated. */ readonly etag: string; /** * Resource ID. */ readonly id: string; /** * Resource location. */ readonly location?: string; /** * Resource name. */ readonly name: string; /** * The provisioning state of the DDoS protection plan resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. */ readonly provisioningState: string; /** * The resource GUID property of the DDoS protection plan resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups. */ readonly resourceGuid: string; /** * Resource tags. */ readonly tags?: {[key: string]: string}; /** * Resource type. */ readonly type: string; /** * The list of virtual networks associated with the DDoS protection plan resource. This list is read-only. */ readonly virtualNetworks: outputs.network.v20181001.SubResourceResponse[]; }
polivbr/pulumi-azure-native
sdk/nodejs/network/v20181001/getDdosProtectionPlan.ts
TypeScript
FunctionDeclaration
export default function reducer( state: ContractsState = initialState, action: any ) { const {type, ...payload} = action; switch (type) { case CLEAR_CONTRACTS: return clearContracts(state); case CONTRACT_BANK_ADAPTER: return contractBankAdapter(state, payload); case CONTRACT_BANK_EXTENSION: return contractBankExtension(state, payload); case CONTRACT_BANK_FACTORY: return contractBankFactory(state, payload); case CONTRACT_CONFIGURATION: return contractConfiguration(state, payload); case CONTRACT_COUPON_ONBOARDING: return contractCouponOnboarding(state, payload); case CONTRACT_DAO_FACTORY: return contractDAOFactory(state, payload); case CONTRACT_DAO_REGISTRY: return contractDAORegistry(state, payload); case CONTRACT_DAO_REGISTRY_ADAPTER: return contractDaoRegistryAdapter(state, payload); case CONTRACT_DISTRIBUTE: return contractDistribute(state, payload); case CONTRACT_ERC20_EXTENSION: return contractERC20Extension(state, payload); case CONTRACT_FINANCING: return contractFinancing(state, payload); case CONTRACT_GUILDKICK: return contractGuildBank(state, payload); case CONTRACT_MANAGING: return contractManaging(state, payload); case CONTRACT_NFT_ADAPTER: return contractNFTAdapter(state, payload); case CONTRACT_NFT_EXTENSION: return contractNFTExtension(state, payload); case CONTRACT_ONBOARDING: return contractOnboarding(state, payload); case CONTRACT_RAGEQUIT: return contractRagequit(state, payload); case CONTRACT_TRIBUTE: return contractTribute(state, payload); case CONTRACT_TRIBUTE_NFT: return contractTributeNFT(state, payload); case CONTRACT_VOTING: return contractVoting(state, payload); case CONTRACT_VOTING_OP_ROLLUP: return contractVoting(state, payload); default: return state; } }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function clearContracts(state: ContractsState) { return {...state, ...initialState}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractBankFactory(state: ContractsState, payload: any) { return {...state, BankFactoryContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractDAOFactory(state: ContractsState, payload: any) { return {...state, DaoFactoryContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractDAORegistry(state: ContractsState, payload: any) { return {...state, DaoRegistryContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractDaoRegistryAdapter( state: ContractsState, payload: any ): ContractsState { return {...state, DaoRegistryAdapterContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractBankExtension( state: ContractsState, payload: any ): ContractsState { return {...state, BankExtensionContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractConfiguration(state: ContractsState, payload: any) { return {...state, ConfigurationContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractDistribute( state: ContractsState, payload: any ): ContractsState { return {...state, DistributeContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractFinancing(state: ContractsState, payload: any) { return {...state, FinancingContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractGuildBank(state: ContractsState, payload: any) { return {...state, GuildBankContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractOnboarding(state: ContractsState, payload: any) { return {...state, OnboardingContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractRagequit(state: ContractsState, payload: any) { return {...state, RagequitContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractTribute(state: ContractsState, payload: any): ContractsState { return {...state, TributeContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractVoting(state: ContractsState, payload: any): ContractsState { return {...state, VotingContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractManaging(state: ContractsState, payload: any): ContractsState { return {...state, ManagingContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractBankAdapter( state: ContractsState, payload: any ): ContractsState { return {...state, BankAdapterContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractNFTAdapter( state: ContractsState, payload: any ): ContractsState { return {...state, NFTAdapterContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractTributeNFT( state: ContractsState, payload: any ): ContractsState { return {...state, TributeNFTContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractCouponOnboarding( state: ContractsState, payload: any ): ContractsState { return {...state, CouponOnboardingContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractNFTExtension( state: ContractsState, payload: any ): ContractsState { return {...state, NFTExtensionContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
FunctionDeclaration
function contractERC20Extension( state: ContractsState, payload: any ): ContractsState { return {...state, ERC20ExtensionContract: {...payload}}; }
harmony-one/tribute-ui
src/store/contracts/reducers.ts
TypeScript
ClassDeclaration
/** * [[SimulcastTransceiverController]] implements [[VideoStreamIndex]] to facilitate video stream * subscription and includes query functions for stream id and attendee id. */ export default class SimulcastVideoStreamIndex extends DefaultVideoStreamIndex { private streamIdToBitrateKbpsMap; static readonly UNSEEN_STREAM_BITRATE = -2; static readonly RECENTLY_INACTIVE_STREAM_BITRATE = -1; static readonly NOT_SENDING_STREAM_BITRATE = 0; static readonly BitratesMsgFrequencyMs: number; private _localStreamInfos; private _lastBitRateMsgTime; constructor(logger: Logger); localStreamDescriptions(): VideoStreamDescription[]; integrateUplinkPolicyDecision(encodingParams: RTCRtpEncodingParameters[]): void; integrateBitratesFrame(bitrateFrame: SdkBitrateFrame): void; private logLocalStreamDescriptions; integrateIndexFrame(indexFrame: SdkIndexFrame): void; integrateSubscribeAckFrame(subscribeAck: SdkSubscribeAckFrame): void; }
eMed-com/amazon-chime-sdk-js
build/videostreamindex/SimulcastVideoStreamIndex.d.ts
TypeScript
MethodDeclaration
localStreamDescriptions(): VideoStreamDescription[];
eMed-com/amazon-chime-sdk-js
build/videostreamindex/SimulcastVideoStreamIndex.d.ts
TypeScript
MethodDeclaration
integrateUplinkPolicyDecision(encodingParams: RTCRtpEncodingParameters[]): void;
eMed-com/amazon-chime-sdk-js
build/videostreamindex/SimulcastVideoStreamIndex.d.ts
TypeScript
MethodDeclaration
integrateBitratesFrame(bitrateFrame: SdkBitrateFrame): void;
eMed-com/amazon-chime-sdk-js
build/videostreamindex/SimulcastVideoStreamIndex.d.ts
TypeScript
MethodDeclaration
integrateIndexFrame(indexFrame: SdkIndexFrame): void;
eMed-com/amazon-chime-sdk-js
build/videostreamindex/SimulcastVideoStreamIndex.d.ts
TypeScript
MethodDeclaration
integrateSubscribeAckFrame(subscribeAck: SdkSubscribeAckFrame): void;
eMed-com/amazon-chime-sdk-js
build/videostreamindex/SimulcastVideoStreamIndex.d.ts
TypeScript
ArrowFunction
async ( input: SendSerialConsoleSSHPublicKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { const headers: __HeaderBag = { "content-type": "application/x-amz-json-1.1", "x-amz-target": "AWSEC2InstanceConnectService.SendSerialConsoleSSHPublicKey", }; let body: any; body = JSON.stringify(serializeAws_json1_1SendSerialConsoleSSHPublicKeyRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
async ( input: SendSSHPublicKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { const headers: __HeaderBag = { "content-type": "application/x-amz-json-1.1", "x-amz-target": "AWSEC2InstanceConnectService.SendSSHPublicKey", }; let body: any; body = JSON.stringify(serializeAws_json1_1SendSSHPublicKeyRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
async ( output: __HttpResponse, context: __SerdeContext ): Promise<SendSerialConsoleSSHPublicKeyCommandOutput> => { if (output.statusCode >= 300) { return deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; contents = deserializeAws_json1_1SendSerialConsoleSSHPublicKeyResponse(data, context); const response: SendSerialConsoleSSHPublicKeyCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; return Promise.resolve(response); }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
async ( output: __HttpResponse, context: __SerdeContext ): Promise<SendSerialConsoleSSHPublicKeyCommandOutput> => { const parsedOutput: any = { ...output, body: await parseBody(output.body, context), }; let response: __SmithyException & __MetadataBearer & { [key: string]: any }; let errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { case "AuthException": case "com.amazonaws.ec2instanceconnect#AuthException": response = { ...(await deserializeAws_json1_1AuthExceptionResponse(parsedOutput, context)), name: errorCode, $metadata: deserializeMetadata(output), }; break; case "EC2InstanceNotFoundException": case "com.amazonaws.ec2instanceconnect#EC2InstanceNotFoundException": response = { ...(await deserializeAws_json1_1EC2InstanceNotFoundExceptionResponse(parsedOutput, context)), name: errorCode, $metadata: deserializeMetadata(output), }; break; case "EC2InstanceTypeInvalidException": case "com.amazonaws.ec2instanceconnect#EC2InstanceTypeInvalidException": response = { ...(await deserializeAws_json1_1EC2InstanceTypeInvalidExceptionResponse(parsedOutput, context)), name: errorCode, $metadata: deserializeMetadata(output), }; break; case "InvalidArgsException": case "com.amazonaws.ec2instanceconnect#InvalidArgsException": response = { ...(await deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)), name: errorCode, $metadata: deserializeMetadata(output), }; break; case "SerialConsoleAccessDisabledException": case "com.amazonaws.ec2instanceconnect#SerialConsoleAccessDisabledException": response = { ...(await deserializeAws_json1_1SerialConsoleAccessDisabledExceptionResponse(parsedOutput, context)), name: errorCode, $metadata: deserializeMetadata(output), }; break; case "SerialConsoleSessionLimitExceededException": case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionLimitExceededException": response = { ...(await deserializeAws_json1_1SerialConsoleSessionLimitExceededExceptionResponse(parsedOutput, context)), name: errorCode, $metadata: deserializeMetadata(output), }; break; case "SerialConsoleSessionUnavailableException": case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionUnavailableException": response = { ...(await deserializeAws_json1_1SerialConsoleSessionUnavailableExceptionResponse(parsedOutput, context)), name: errorCode, $metadata: deserializeMetadata(output), }; break; case "ServiceException": case "com.amazonaws.ec2instanceconnect#ServiceException": response = { ...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)), name: errorCode, $metadata: deserializeMetadata(output), }; break; case "ThrottlingException": case "com.amazonaws.ec2instanceconnect#ThrottlingException": response = { ...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)), name: errorCode, $metadata: deserializeMetadata(output), }; break; default: const parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = { ...parsedBody, name: `${errorCode}`, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output), } as any; } const message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return Promise.reject(Object.assign(new Error(message), response)); }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
async ( output: __HttpResponse, context: __SerdeContext ): Promise<SendSSHPublicKeyCommandOutput> => { if (output.statusCode >= 300) { return deserializeAws_json1_1SendSSHPublicKeyCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; contents = deserializeAws_json1_1SendSSHPublicKeyResponse(data, context); const response: SendSSHPublicKeyCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; return Promise.resolve(response); }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
async ( output: __HttpResponse, context: __SerdeContext ): Promise<SendSSHPublicKeyCommandOutput> => { const parsedOutput: any = { ...output, body: await parseBody(output.body, context), }; let response: __SmithyException & __MetadataBearer & { [key: string]: any }; let errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { case "AuthException": case "com.amazonaws.ec2instanceconnect#AuthException": response = { ...(await deserializeAws_json1_1AuthExceptionResponse(parsedOutput, context)), name: errorCode, $metadata: deserializeMetadata(output), }; break; case "EC2InstanceNotFoundException": case "com.amazonaws.ec2instanceconnect#EC2InstanceNotFoundException": response = { ...(await deserializeAws_json1_1EC2InstanceNotFoundExceptionResponse(parsedOutput, context)), name: errorCode, $metadata: deserializeMetadata(output), }; break; case "InvalidArgsException": case "com.amazonaws.ec2instanceconnect#InvalidArgsException": response = { ...(await deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)), name: errorCode, $metadata: deserializeMetadata(output), }; break; case "ServiceException": case "com.amazonaws.ec2instanceconnect#ServiceException": response = { ...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)), name: errorCode, $metadata: deserializeMetadata(output), }; break; case "ThrottlingException": case "com.amazonaws.ec2instanceconnect#ThrottlingException": response = { ...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)), name: errorCode, $metadata: deserializeMetadata(output), }; break; default: const parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = { ...parsedBody, name: `${errorCode}`, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output), } as any; } const message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return Promise.reject(Object.assign(new Error(message), response)); }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
async ( parsedOutput: any, context: __SerdeContext ): Promise<AuthException> => { const body = parsedOutput.body; const deserialized: any = deserializeAws_json1_1AuthException(body, context); const contents: AuthException = { name: "AuthException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), ...deserialized, }; return contents; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
async ( parsedOutput: any, context: __SerdeContext ): Promise<EC2InstanceNotFoundException> => { const body = parsedOutput.body; const deserialized: any = deserializeAws_json1_1EC2InstanceNotFoundException(body, context); const contents: EC2InstanceNotFoundException = { name: "EC2InstanceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), ...deserialized, }; return contents; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
async ( parsedOutput: any, context: __SerdeContext ): Promise<EC2InstanceTypeInvalidException> => { const body = parsedOutput.body; const deserialized: any = deserializeAws_json1_1EC2InstanceTypeInvalidException(body, context); const contents: EC2InstanceTypeInvalidException = { name: "EC2InstanceTypeInvalidException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), ...deserialized, }; return contents; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
async ( parsedOutput: any, context: __SerdeContext ): Promise<InvalidArgsException> => { const body = parsedOutput.body; const deserialized: any = deserializeAws_json1_1InvalidArgsException(body, context); const contents: InvalidArgsException = { name: "InvalidArgsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), ...deserialized, }; return contents; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
async ( parsedOutput: any, context: __SerdeContext ): Promise<SerialConsoleAccessDisabledException> => { const body = parsedOutput.body; const deserialized: any = deserializeAws_json1_1SerialConsoleAccessDisabledException(body, context); const contents: SerialConsoleAccessDisabledException = { name: "SerialConsoleAccessDisabledException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), ...deserialized, }; return contents; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
async ( parsedOutput: any, context: __SerdeContext ): Promise<SerialConsoleSessionLimitExceededException> => { const body = parsedOutput.body; const deserialized: any = deserializeAws_json1_1SerialConsoleSessionLimitExceededException(body, context); const contents: SerialConsoleSessionLimitExceededException = { name: "SerialConsoleSessionLimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), ...deserialized, }; return contents; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
async ( parsedOutput: any, context: __SerdeContext ): Promise<SerialConsoleSessionUnavailableException> => { const body = parsedOutput.body; const deserialized: any = deserializeAws_json1_1SerialConsoleSessionUnavailableException(body, context); const contents: SerialConsoleSessionUnavailableException = { name: "SerialConsoleSessionUnavailableException", $fault: "server", $metadata: deserializeMetadata(parsedOutput), ...deserialized, }; return contents; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
async ( parsedOutput: any, context: __SerdeContext ): Promise<ServiceException> => { const body = parsedOutput.body; const deserialized: any = deserializeAws_json1_1ServiceException(body, context); const contents: ServiceException = { name: "ServiceException", $fault: "server", $metadata: deserializeMetadata(parsedOutput), ...deserialized, }; return contents; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
async ( parsedOutput: any, context: __SerdeContext ): Promise<ThrottlingException> => { const body = parsedOutput.body; const deserialized: any = deserializeAws_json1_1ThrottlingException(body, context); const contents: ThrottlingException = { name: "ThrottlingException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), ...deserialized, }; return contents; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
( input: SendSerialConsoleSSHPublicKeyRequest, context: __SerdeContext ): any => { return { ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }), ...(input.SSHPublicKey !== undefined && input.SSHPublicKey !== null && { SSHPublicKey: input.SSHPublicKey }), ...(input.SerialPort !== undefined && input.SerialPort !== null && { SerialPort: input.SerialPort }), }; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
(input: SendSSHPublicKeyRequest, context: __SerdeContext): any => { return { ...(input.AvailabilityZone !== undefined && input.AvailabilityZone !== null && { AvailabilityZone: input.AvailabilityZone }), ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }), ...(input.InstanceOSUser !== undefined && input.InstanceOSUser !== null && { InstanceOSUser: input.InstanceOSUser }), ...(input.SSHPublicKey !== undefined && input.SSHPublicKey !== null && { SSHPublicKey: input.SSHPublicKey }), }; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
(output: any, context: __SerdeContext): AuthException => { return { Message: __expectString(output.Message), } as any; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
( output: any, context: __SerdeContext ): EC2InstanceNotFoundException => { return { Message: __expectString(output.Message), } as any; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
( output: any, context: __SerdeContext ): EC2InstanceTypeInvalidException => { return { Message: __expectString(output.Message), } as any; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
(output: any, context: __SerdeContext): InvalidArgsException => { return { Message: __expectString(output.Message), } as any; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
( output: any, context: __SerdeContext ): SendSerialConsoleSSHPublicKeyResponse => { return { RequestId: __expectString(output.RequestId), Success: __expectBoolean(output.Success), } as any; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
( output: any, context: __SerdeContext ): SendSSHPublicKeyResponse => { return { RequestId: __expectString(output.RequestId), Success: __expectBoolean(output.Success), } as any; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
( output: any, context: __SerdeContext ): SerialConsoleAccessDisabledException => { return { Message: __expectString(output.Message), } as any; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
( output: any, context: __SerdeContext ): SerialConsoleSessionLimitExceededException => { return { Message: __expectString(output.Message), } as any; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
( output: any, context: __SerdeContext ): SerialConsoleSessionUnavailableException => { return { Message: __expectString(output.Message), } as any; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
(output: any, context: __SerdeContext): ServiceException => { return { Message: __expectString(output.Message), } as any; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
(output: any, context: __SerdeContext): ThrottlingException => { return { Message: __expectString(output.Message), } as any; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
(output: __HttpResponse): __ResponseMetadata => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"], })
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
(streamBody: any = new Uint8Array(), context: __SerdeContext): Promise<Uint8Array> => { if (streamBody instanceof Uint8Array) { return Promise.resolve(streamBody); } return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
(streamBody: any, context: __SerdeContext): Promise<string> => collectBody(streamBody, context).then((body) => context.utf8Encoder(body))
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
(body) => context.utf8Encoder(body)
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
async ( context: __SerdeContext, headers: __HeaderBag, path: string, resolvedHostname: string | undefined, body: any ): Promise<__HttpRequest> => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); const contents: any = { protocol, hostname, port, method: "POST", path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, headers, }; if (resolvedHostname !== undefined) { contents.hostname = resolvedHostname; } if (body !== undefined) { contents.body = body; } return new __HttpRequest(contents); }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
(streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { return JSON.parse(encoded); } return {}; })
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
(encoded) => { if (encoded.length) { return JSON.parse(encoded); } return {}; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
(output: __HttpResponse, data: any): string => { const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); const sanitizeErrorCode = (rawValue: string): string => { let cleanValue = rawValue; if (cleanValue.indexOf(":") >= 0) { cleanValue = cleanValue.split(":")[0]; } if (cleanValue.indexOf("#") >= 0) { cleanValue = cleanValue.split("#")[1]; } return cleanValue; }; const headerKey = findKey(output.headers, "x-amzn-errortype"); if (headerKey !== undefined) { return sanitizeErrorCode(output.headers[headerKey]); } if (data.code !== undefined) { return sanitizeErrorCode(data.code); } if (data["__type"] !== undefined) { return sanitizeErrorCode(data["__type"]); } return ""; }
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
(object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase())
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ArrowFunction
(k) => k.toLowerCase() === key.toLowerCase()
AllanZhengYP/aws-sdk-js-v3
clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts
TypeScript
ClassDeclaration
declare class index { static defaultMaxListeners: any; static init(): void; static listenerCount(emitter: any, type: any): any; static tag: string; static usingDomains: boolean; constructor(options: any); broadcast: any; interval: any; serviceTag: any; port: any; peerInfo: any; addListener(type: any, listener: any): any; emit(type: any, args: any): any; eventNames(): any; getMaxListeners(): any; listenerCount(type: any): any; listeners(type: any): any; off(type: any, listener: any): any; on(type: any, listener: any): any; once(type: any, listener: any): any; prependListener(type: any, listener: any): any; prependOnceListener(type: any, listener: any): any; rawListeners(type: any): any; removeAllListeners(type: any, ...args: any[]): any; removeListener(type: any, listener: any): any; setMaxListeners(n: any): any; start(callback: any): void; stop(callback: any): void; }
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
ClassDeclaration
class EventEmitter { // Circular reference from index.EventEmitter static EventEmitter: any; static defaultMaxListeners: any; static init(): void; static listenerCount(emitter: any, type: any): any; static usingDomains: boolean; addListener(type: any, listener: any): any; emit(type: any, args: any): any; eventNames(): any; getMaxListeners(): any; listenerCount(type: any): any; listeners(type: any): any; off(type: any, listener: any): any; on(type: any, listener: any): any; once(type: any, listener: any): any; prependListener(type: any, listener: any): any; prependOnceListener(type: any, listener: any): any; rawListeners(type: any): any; removeAllListeners(type: any, ...args: any[]): any; removeListener(type: any, listener: any): any; setMaxListeners(n: any): any; }
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
static init(): void;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
static listenerCount(emitter: any, type: any): any;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
addListener(type: any, listener: any): any;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
emit(type: any, args: any): any;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
eventNames(): any;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
getMaxListeners(): any;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
listenerCount(type: any): any;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
listeners(type: any): any;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
off(type: any, listener: any): any;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
on(type: any, listener: any): any;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
once(type: any, listener: any): any;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
prependListener(type: any, listener: any): any;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
prependOnceListener(type: any, listener: any): any;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
rawListeners(type: any): any;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
removeAllListeners(type: any, ...args: any[]): any;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
removeListener(type: any, listener: any): any;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
setMaxListeners(n: any): any;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
start(callback: any): void;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
MethodDeclaration
stop(callback: any): void;
MetaMask/kitsunet-js
definitions/libp2p-mdns.d.ts
TypeScript
ClassDeclaration
@Injectable() export class AuthGuard implements CanActivate { constructor(private router: Router) { } canActivate() { if (BackendService.isLoggedIn()) { return true; } else { this.router.navigate(["/login"]); return false; } } }
Teezkad/quizroom-beta
app/auth-guard.service.ts
TypeScript
MethodDeclaration
canActivate() { if (BackendService.isLoggedIn()) { return true; } else { this.router.navigate(["/login"]); return false; } }
Teezkad/quizroom-beta
app/auth-guard.service.ts
TypeScript
ArrowFunction
({ image, nickname, statusMesg, obsoleted, liveMode, stream, speakerOn }) => ( <div className="FaceImages-card"
tell-y/remote-faces
web/src/components/FaceImages.tsx
TypeScript
ArrowFunction
({ roomId, userId, nickname, statusMesg, liveMode, micOn, speakerOn, videoDeviceId, audioDeviceId, }) => { const { myImage, roomImages } = useFaceImages( roomId, userId, nickname, statusMesg, liveMode, videoDeviceId ); const { faceStream, faceStreamMap } = useFaceVideos( roomId, userId, liveMode, liveMode, micOn, videoDeviceId, audioDeviceId ); return ( <div className="FaceImage-container"> <FaceImage image={myImage} nickname={nickname} statusMesg={statusMesg} liveMode={liveMode} stream={faceStream || undefined}
tell-y/remote-faces
web/src/components/FaceImages.tsx
TypeScript
ArrowFunction
(item) => ( <FaceImage key={item.userId}
tell-y/remote-faces
web/src/components/FaceImages.tsx
TypeScript