type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration |
isComponentKey(key: Key): boolean {
var p = this.injectorStrategy.protoStrategy;
return this._ei.proto.firstProviderIsComponent && isPresent(key) && key.id === p.keyIds[0];
} | AjitSutar7276/demo | node_modules/angular2/ts/src/core/linker/element.ts | TypeScript |
MethodDeclaration |
addDirectivesMatchingQuery(query: QueryMetadata, list: any[]): void {
var ist = this.injectorStrategy;
var p = ist.protoStrategy;
for (var i = 0; i < p.providers.length; i++) {
if (p.providers[i].key.token === query.selector) {
if (ist.objs[i] === UNDEFINED) {
ist.objs[i] = ist.ins... | AjitSutar7276/demo | node_modules/angular2/ts/src/core/linker/element.ts | TypeScript |
MethodDeclaration |
update(): void {
if (!this.dirty) return;
this._update();
this.dirty = false;
// TODO delete the check once only field queries are supported
if (this.protoQueryRef.usesPropertySyntax) {
var dir = this.originator.getDirectiveAtIndex(this.protoQueryRef.dirIndex);
if (this.protoQueryRef.q... | AjitSutar7276/demo | node_modules/angular2/ts/src/core/linker/element.ts | TypeScript |
MethodDeclaration |
private _update(): void {
var aggregator = [];
if (this.protoQueryRef.query.isViewQuery) {
// intentionally skipping originator for view queries.
var nestedView = this.originator.componentView;
if (isPresent(nestedView)) this._visitView(nestedView, aggregator);
} else {
this._visit(... | AjitSutar7276/demo | node_modules/angular2/ts/src/core/linker/element.ts | TypeScript |
MethodDeclaration |
private _visit(inj: AppElement, aggregator: any[]): void {
var view = inj.parentView;
var startIdx = inj.proto.index;
for (var i = startIdx; i < view.appElements.length; i++) {
var curInj = view.appElements[i];
// The first injector after inj, that is outside the subtree rooted at
// inj ... | AjitSutar7276/demo | node_modules/angular2/ts/src/core/linker/element.ts | TypeScript |
MethodDeclaration |
private _visitInjector(inj: AppElement, aggregator: any[]) {
if (this.protoQueryRef.query.isVarBindingQuery) {
this._aggregateVariableBinding(inj, aggregator);
} else {
this._aggregateDirective(inj, aggregator);
}
} | AjitSutar7276/demo | node_modules/angular2/ts/src/core/linker/element.ts | TypeScript |
MethodDeclaration |
private _visitViewContainerViews(views: AppView[], aggregator: any[]) {
if (isPresent(views)) {
for (var j = 0; j < views.length; j++) {
this._visitView(views[j], aggregator);
}
}
} | AjitSutar7276/demo | node_modules/angular2/ts/src/core/linker/element.ts | TypeScript |
MethodDeclaration |
private _visitView(view: AppView, aggregator: any[]) {
for (var i = 0; i < view.appElements.length; i++) {
var inj = view.appElements[i];
this._visitInjector(inj, aggregator);
this._visitViewContainerViews(inj.nestedViews, aggregator);
}
} | AjitSutar7276/demo | node_modules/angular2/ts/src/core/linker/element.ts | TypeScript |
MethodDeclaration |
private _aggregateVariableBinding(inj: AppElement, aggregator: any[]): void {
var vb = this.protoQueryRef.query.varBindings;
for (var i = 0; i < vb.length; ++i) {
if (inj.hasVariableBinding(vb[i])) {
aggregator.push(inj.getVariableBinding(vb[i]));
}
}
} | AjitSutar7276/demo | node_modules/angular2/ts/src/core/linker/element.ts | TypeScript |
MethodDeclaration |
private _aggregateDirective(inj: AppElement, aggregator: any[]): void {
inj.addDirectivesMatchingQuery(this.protoQueryRef.query, aggregator);
} | AjitSutar7276/demo | node_modules/angular2/ts/src/core/linker/element.ts | TypeScript |
MethodDeclaration |
markForCheck(): void { this._appElement.componentView.changeDetector.ref.markForCheck(); } | AjitSutar7276/demo | node_modules/angular2/ts/src/core/linker/element.ts | TypeScript |
MethodDeclaration |
detach(): void { this._appElement.componentView.changeDetector.ref.detach(); } | AjitSutar7276/demo | node_modules/angular2/ts/src/core/linker/element.ts | TypeScript |
MethodDeclaration |
detectChanges(): void { this._appElement.componentView.changeDetector.ref.detectChanges(); } | AjitSutar7276/demo | node_modules/angular2/ts/src/core/linker/element.ts | TypeScript |
MethodDeclaration |
checkNoChanges(): void { this._appElement.componentView.changeDetector.ref.checkNoChanges(); } | AjitSutar7276/demo | node_modules/angular2/ts/src/core/linker/element.ts | TypeScript |
MethodDeclaration |
reattach(): void { this._appElement.componentView.changeDetector.ref.reattach(); } | AjitSutar7276/demo | node_modules/angular2/ts/src/core/linker/element.ts | TypeScript |
ArrowFunction |
(piece) => {
return piece.length === 0;
} | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
(res) => {
// Return the 'document' property for each element in the response,
// where it exists.
return res.body
.filter((x) => {
return x.document;
})
.map((x) => {
return x.document;
});
} | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
(x) => {
return x.document;
} | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
() => {
// No documents left to delete
if (queue.length === 0 && numPendingDeletes === 0 && !pagesRemaining) {
return true;
}
// Failure that can't be retried again
if (failures.length > 0) {
logger.debug("Found " + failures.length + " failed operations, failing.");
... | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
(docs: any[]) => {
fetchFailures = 0;
pageIncoming = false;
if (docs.length === 0) {
pagesRemaining = false;
return;
}
queue = queue.concat(docs);
lastDocName = docs[docs.length - 1].name;
} | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
(e) => {
logger.debug("Failed to fetch page after " + lastDocName, e);
pageIncoming = false;
fetchFailures++;
if (fetchFailures === 3) {
failures.push(e);
}
} | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
(numDeleted) => {
FirestoreDelete.progressBar.tick(numDeleted);
numDocsDeleted += numDeleted;
numPendingDeletes--;
} | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
(e) => {
// If the transaction is too large, reduce the batch size
if (
e.status === 400 &&
e.message.includes("Transaction too big") &&
this.deleteBatchSize >= 2
) {
logger.debug("Transaction too big error deleting doc batch", e);
... | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
(doc) => {
if (retried[doc.name]) {
logger.debug("Failed to delete doc " + doc.name + " multiple times.");
failures.push(doc.name);
} else {
retried[doc.name] = true;
queue.push(doc);
}
} | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
(resolve, reject) => {
const intervalId = setInterval(() => {
if (queueLoop()) {
clearInterval(intervalId);
if (failures.length === 0) {
resolve();
} else {
const docIds = failures.map((d) => d.name).join(", ");
reject(new FirebaseError("... | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
() => {
if (queueLoop()) {
clearInterval(intervalId);
if (failures.length === 0) {
resolve();
} else {
const docIds = failures.map((d) => d.name).join(", ");
reject(new FirebaseError("Failed to delete documents " + docIds, { exit: 1 }));
... | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
(err) => {
logger.debug("deletePath:initialDelete:error", err);
if (this.allDescendants) {
// On a recursive delete, we are insensitive to
// failures of the initial delete
return Promise.resolve();
}
// For a shallow delete, this error is fatal.
r... | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
() => {
return this.recursiveBatchDelete();
} | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
(err) => {
logger.debug("deleteDatabase:listCollectionIds:error", err);
return utils.reject("Unable to list collection IDs");
} | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
(collectionIds) => {
const promises = [];
logger.info("Deleting the following collections: " + clc.cyan(collectionIds.join(", ")));
for (let i = 0; i < collectionIds.length; i++) {
const collectionId = collectionIds[i];
const deleteOp = new FirestoreDelete(this.project, co... | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
(docs: any[]) => {
return docs.length > 0;
} | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
(multiple: boolean) => {
if (multiple) {
return utils.reject("Document has children, must specify -r or --shallow.", { exit: 1 });
}
} | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
() => {
return this.deletePath();
} | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
MethodDeclaration | /**
* Update the delete batch size and dependent properties.
*/
private setDeleteBatchSize(size: number): void {
this.deleteBatchSize = size;
this.maxQueueSize = this.deleteBatchSize * this.maxPendingDeletes * 2;
} | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
MethodDeclaration | /**
* Validate all options, throwing an exception for any fatal errors.
*/
private validateOptions(): void {
if (this.recursive && this.shallow) {
throw new FirebaseError("Cannot pass recursive and shallow options together.");
}
if (this.isCollectionPath && !this.recursive && !this.shallow) {
... | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
MethodDeclaration | /**
* Construct a StructuredQuery to find descendant documents of a collection.
*
* See:
* https://firebase.google.com/docs/firestore/reference/rest/v1/StructuredQuery
*
* @param allDescendants true if subcollections should be included.
* @param batchSize maximum number of documents to target (limi... | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
MethodDeclaration | /**
* Construct a StructuredQuery to find descendant documents of a document.
* The document itself will not be included
* among the results.
*
* See:
* https://firebase.google.com/docs/firestore/reference/rest/v1/StructuredQuery
*
* @param allDescendants true if subcollections should be include... | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
MethodDeclaration | /**
* Query for a batch of 'descendants' of a given path.
*
* For document format see:
* https://firebase.google.com/docs/firestore/reference/rest/v1/Document
*
* @param allDescendants true if subcollections should be included,
* @param batchSize the maximum size of the batch.
* @param startAfte... | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
MethodDeclaration | /**
* Repeatedly query for descendants of a path and delete them in batches
* until no documents remain.
*
* @return a promise for the entire operation.
*/
private recursiveBatchDelete() {
let queue: any[] = [];
let numDocsDeleted = 0;
let numPendingDeletes = 0;
let pagesRemaining = true;... | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
MethodDeclaration | /**
* Delete everything under a given path. If the path represents
* a document the document is deleted and then all descendants
* are deleted.
*
* @return a promise for the entire operation.
*/
private deletePath(): Promise<any> {
let initialDelete;
if (this.isDocumentPath) {
const doc ... | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
MethodDeclaration | /**
* Delete an entire database by finding and deleting each collection.
*
* @return a promise for all of the operations combined.
*/
public deleteDatabase(): Promise<any[]> {
return firestore
.listCollectionIds(this.project)
.catch((err) => {
logger.debug("deleteDatabase:listCollect... | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
MethodDeclaration | /**
* Check if a path has any children. Useful for determining
* if deleting a path will affect more than one document.
*
* @return a promise that retruns true if the path has children and false otherwise.
*/
public checkHasChildren(): Promise<boolean> {
return this.getDescendantBatch(true, 1).then((... | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
MethodDeclaration | /**
* Run the delete operation.
*/
public execute() {
let verifyRecurseSafe;
if (this.isDocumentPath && !this.recursive && !this.shallow) {
verifyRecurseSafe = this.checkHasChildren().then((multiple: boolean) => {
if (multiple) {
return utils.reject("Document has children, must spe... | oppia/firebase-tools | src/firestore/delete.ts | TypeScript |
ArrowFunction |
() => {
it('should render snapshot correctly', () => {
const { container } = render(
<>
<ButtonIcon icon="search" />
<ButtonIcon color="error" icon="minus" />
<ButtonIcon title="title test" icon="view" />
<ButtonIcon title="title test" icon="view" isDisabled />
<Butt... | wecancer/design-system | src/components/button/icon/button-icon.test.tsx | TypeScript |
ArrowFunction |
() => {
const { container } = render(
<>
<ButtonIcon icon="search" />
<ButtonIcon color="error" icon="minus" />
<ButtonIcon title="title test" icon="view" />
<ButtonIcon title="title test" icon="view" isDisabled />
<ButtonIcon icon="view" isLoading />
</>,
)
... | wecancer/design-system | src/components/button/icon/button-icon.test.tsx | TypeScript |
ArrowFunction |
() => {
const { container } = render(
<ButtonIcon className="customClass" icon="check" />,
)
expect(container.querySelector('.customClass')).toBeInstanceOf(
HTMLButtonElement,
)
} | wecancer/design-system | src/components/button/icon/button-icon.test.tsx | TypeScript |
ArrowFunction |
() => {
const handleClick = jest.fn()
const { container } = render(
<ButtonIcon icon="check" onClick={handleClick} isDisabled />,
)
const btnElement = container.querySelector('button')
if (!btnElement) throw new Error("Can't find the icon button")
fireEvent.click(btnElement)
expect(... | wecancer/design-system | src/components/button/icon/button-icon.test.tsx | TypeScript |
ArrowFunction |
() => {
const { container } = render(<ButtonIcon icon="check" isLoading />)
expect(
container.querySelector('[data-icon-name="spinnerSolid"]'),
).toBeDefined()
} | wecancer/design-system | src/components/button/icon/button-icon.test.tsx | TypeScript |
ArrowFunction |
() => {
const handleClick = jest.fn()
const { container } = render(
<ButtonIcon icon="check" onClick={handleClick} />,
)
const btnElement = container.querySelector('button')
if (!btnElement) throw new Error("Can't find the icon button")
fireEvent.click(btnElement)
expect(handleClick... | wecancer/design-system | src/components/button/icon/button-icon.test.tsx | TypeScript |
ArrowFunction |
(option: string) => logger.log(` \u203A ${option}`) | StasD/cli | packages/cli/src/commands/doctor/printFixOptions.ts | TypeScript |
ArrowFunction |
() => {
logger.log();
logger.log(chalk.bold('Usage'));
printOption(
`${chalk.dim('Press')} ${KEYS.FIX_ALL_ISSUES} ${chalk.dim(
'to fix all issues.',
)}`,
);
printOption(
`${chalk.dim('Press')} ${KEYS.FIX_ERRORS} ${chalk.dim('to fix errors.')}`,
);
printOption(
`${chalk.dim('Press')}... | StasD/cli | packages/cli/src/commands/doctor/printFixOptions.ts | TypeScript |
ArrowFunction |
({onKeyPress}: {onKeyPress: (...args: any[]) => void}) => {
printOptions();
if (process.stdin.setRawMode) {
process.stdin.setRawMode(true);
}
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', onKeyPress);
} | StasD/cli | packages/cli/src/commands/doctor/printFixOptions.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'fd-action-sheet-compact-example',
templateUrl: './action-sheet-compact-example.component.html',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class ActionSheetCompactExampleComponent {
@ViewChild(ActionSheetComponent)
actionSheetComponent: ActionSheetComponent;
... | I518192/fundamental-ngx | apps/docs/src/app/core/component-docs/action-sheet/examples/action-sheet-compact/action-sheet-compact-example.component.ts | TypeScript |
MethodDeclaration |
actionPicked(action: string): void {
this.openMessageToast(action);
this.actionSheetComponent.close();
} | I518192/fundamental-ngx | apps/docs/src/app/core/component-docs/action-sheet/examples/action-sheet-compact/action-sheet-compact-example.component.ts | TypeScript |
MethodDeclaration |
openMessageToast(action: string): void {
const content = `${action} action performed`;
this._messageToastService.open(content, {
duration: 5000
});
} | I518192/fundamental-ngx | apps/docs/src/app/core/component-docs/action-sheet/examples/action-sheet-compact/action-sheet-compact-example.component.ts | TypeScript |
FunctionDeclaration |
export async function initSSM (): Promise<void> {
const parameterStoreService = container.get<IParameterStoreService>(
IParameterStoreServiceToken,
)
const inMemoryCacheService = container.get<IInMemoryCacheService>(
IInMemoryCacheServiceToken,
)
const cache = container.get<NodeCache>(TYPES.NodeCache... | adrielcodeco/onhand-common | packages/framework-aws/src/infrastructure/initSSM.ts | TypeScript |
ArrowFunction |
async (): Promise<Parameters> => {
const parameters: string[] = cache.get<string[]>(CACHE.parameterStore) ?? []
const groups = chunk(parameters, 10)
let result: Parameters = []
for (const group of groups) {
const params = await parameterStoreService.getAll(group)
result = concat(result, par... | adrielcodeco/onhand-common | packages/framework-aws/src/infrastructure/initSSM.ts | TypeScript |
TypeAliasDeclaration |
type Parameters = Array<{ name: string, value: string | string[] }> | adrielcodeco/onhand-common | packages/framework-aws/src/infrastructure/initSSM.ts | TypeScript |
ArrowFunction |
(預設值: 0 表示不修剪區塊,> | xshard/Shard | src/qt/locale/bitcoin_zh_TW.ts | TypeScript |
ArrowFunction |
() => {
// Move dropdown element on attach node
this.attachNode.shadowRoot.appendChild(this.popoverEl);
} | ispsystem/plugin-imunify | client/packages/antivirus-card/src/components/dropdown/dropdown.tsx | TypeScript |
ClassDeclaration | /**
* Custom dropdown component
*/
@Component({
tag: 'antivirus-card-dropdown',
})
export class Dropdown {
/** Ref for ui5-popover element */
popoverEl: PopoverElType;
/** Element for attaching dropdown component, by default is root component */
@Prop() attachNode: HTMLElement = document.querySelector('ant... | ispsystem/plugin-imunify | client/packages/antivirus-card/src/components/dropdown/dropdown.tsx | TypeScript |
TypeAliasDeclaration | /** Type for popover element */
export type PopoverElType = HTMLElement & {
_isOpen: boolean;
openBy: (control: HTMLElement | EventTarget) => void;
close: () => void;
}; | ispsystem/plugin-imunify | client/packages/antivirus-card/src/components/dropdown/dropdown.tsx | TypeScript |
MethodDeclaration | /**
* Toggle dropdown state
* @param event - DOM event
*/
@Method()
async toggle(event: Event) {
if (this.popoverEl._isOpen) {
this.popoverEl.close();
} else {
this.popoverEl.openBy(event.currentTarget);
}
} | ispsystem/plugin-imunify | client/packages/antivirus-card/src/components/dropdown/dropdown.tsx | TypeScript |
MethodDeclaration |
componentDidLoad() {
setTimeout(() => {
// Move dropdown element on attach node
this.attachNode.shadowRoot.appendChild(this.popoverEl);
});
} | ispsystem/plugin-imunify | client/packages/antivirus-card/src/components/dropdown/dropdown.tsx | TypeScript |
MethodDeclaration | /**
* Lifecycle, remove dropdown element in attachNode
*/
componentDidUnload() {
this.popoverEl.remove();
} | ispsystem/plugin-imunify | client/packages/antivirus-card/src/components/dropdown/dropdown.tsx | TypeScript |
MethodDeclaration |
render() {
return (
<ui5-popover class="popover" ref={(el: PopoverElType) => (this.popoverEl = el)} | ispsystem/plugin-imunify | client/packages/antivirus-card/src/components/dropdown/dropdown.tsx | TypeScript |
ClassDeclaration |
@Injectable()
export class BotLoaderService {
constructor(private config: ConfigService) {}
@UsePlugin()
loadBots() {
const onebotConfig =
this.config.get<Adapter.PluginConfig<AdapterConfig, BotConfig>>('onebot');
if (onebotConfig.selfId) {
onebotConfig.selfId = onebotConfig.selfId.toString(... | purerosefallen/onebot-lb | src/bot-loader/bot-loader.service.ts | TypeScript |
InterfaceDeclaration |
interface EventMap {
dispatch: (session: Session) => void;
} | purerosefallen/onebot-lb | src/bot-loader/bot-loader.service.ts | TypeScript |
MethodDeclaration |
@UsePlugin()
loadBots() {
const onebotConfig =
this.config.get<Adapter.PluginConfig<AdapterConfig, BotConfig>>('onebot');
if (onebotConfig.selfId) {
onebotConfig.selfId = onebotConfig.selfId.toString();
}
if (onebotConfig.bots) {
for (const bot of onebotConfig.bots) {
bot.se... | purerosefallen/onebot-lb | src/bot-loader/bot-loader.service.ts | TypeScript |
InterfaceDeclaration |
export interface PreparedFlowie {
readonly flows: Flows
readonly name?: string
} | albertossilva/flowie | src/prepared.types.ts | TypeScript |
InterfaceDeclaration |
export interface PipeFlow {
readonly pipe: FlowieItemDeclaration
readonly name?: string
} | albertossilva/flowie | src/prepared.types.ts | TypeScript |
InterfaceDeclaration |
export interface SplitFlow {
readonly split: ReadonlyArray<FlowieItemDeclaration>
readonly name?: string
} | albertossilva/flowie | src/prepared.types.ts | TypeScript |
InterfaceDeclaration |
export interface PreparedFlowieExecution extends PreparedFlowie {
readonly isAsync: boolean
readonly allFunctionsNames: ReadonlySet<string>
} | albertossilva/flowie | src/prepared.types.ts | TypeScript |
TypeAliasDeclaration |
export type Flows = ReadonlyArray<FlowElement> | albertossilva/flowie | src/prepared.types.ts | TypeScript |
TypeAliasDeclaration |
export type FlowElement = PipeFlow | SplitFlow | PreparedFlowie | albertossilva/flowie | src/prepared.types.ts | TypeScript |
TypeAliasDeclaration |
export type FlowieItemDeclaration = string | FlowElement | albertossilva/flowie | src/prepared.types.ts | TypeScript |
ClassDeclaration | /**
* `FirebaseFunctions` represents a Functions app, and is the entry point for
* all Functions operations.
*/
export class FirebaseFunctions {
private constructor();
/**
* Gets an `HttpsCallable` instance that refers to the function with the given
* name.
*
* @param name The name of the https call... | AhmedAtbi/react-axios-musicplayer | node_modules/@firebase/functions-types/index.d.ts | TypeScript |
InterfaceDeclaration | /**
* @license
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | AhmedAtbi/react-axios-musicplayer | node_modules/@firebase/functions-types/index.d.ts | TypeScript |
InterfaceDeclaration | /**
* An HttpsCallable is a reference to a "callable" http trigger in
* Google Cloud Functions.
*/
export interface HttpsCallable {
(data?: {} | null): Promise<HttpsCallableResult>;
} | AhmedAtbi/react-axios-musicplayer | node_modules/@firebase/functions-types/index.d.ts | TypeScript |
InterfaceDeclaration | /**
* HttpsCallableOptions specify metadata about how calls should be executed.
*/
export interface HttpsCallableOptions {
timeout?: number; // in millis
} | AhmedAtbi/react-axios-musicplayer | node_modules/@firebase/functions-types/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface HttpsError extends Error {
/**
* A standard error code that will be returned to the client. This also
* determines the HTTP status code of the response, as defined in code.proto.
*/
readonly code: FunctionsErrorCode;
/**
* Extra data to be converted to JSON and included in the error... | AhmedAtbi/react-axios-musicplayer | node_modules/@firebase/functions-types/index.d.ts | TypeScript |
InterfaceDeclaration |
interface NameServiceMapping {
'functions': FirebaseFunctions;
} | AhmedAtbi/react-axios-musicplayer | node_modules/@firebase/functions-types/index.d.ts | TypeScript |
TypeAliasDeclaration | /**
* The set of Firebase Functions status codes. The codes are the same at the
* ones exposed by gRPC here:
* https://github.com/grpc/grpc/blob/master/doc/statuscodes.md
*
* Possible values:
* - 'cancelled': The operation was cancelled (typically by the caller).
* - 'unknown': Unknown error or an error from a d... | AhmedAtbi/react-axios-musicplayer | node_modules/@firebase/functions-types/index.d.ts | TypeScript |
MethodDeclaration | /**
* Gets an `HttpsCallable` instance that refers to the function with the given
* name.
*
* @param name The name of the https callable function.
* @return The `HttpsCallable` instance.
*/
httpsCallable(name: string, options?: HttpsCallableOptions): HttpsCallable; | AhmedAtbi/react-axios-musicplayer | node_modules/@firebase/functions-types/index.d.ts | TypeScript |
MethodDeclaration | /**
* Changes this instance to point to a Cloud Functions emulator running
* locally. See https://firebase.google.com/docs/functions/local-emulator
*
* @param origin The origin of the local emulator, such as
* "http://localhost:5005".
*/
useFunctionsEmulator(origin: string): void; | AhmedAtbi/react-axios-musicplayer | node_modules/@firebase/functions-types/index.d.ts | TypeScript |
FunctionDeclaration |
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const configService = app.get(ConfigService);
app.setGlobalPrefix('api');
app.useGlobalPipes(new ValidationPipe());
app.useGlobalInterceptors(new TransformInterceptor());
await app.listen(configService.get('port'));... | neumanf/clean-ecommerce | backend/src/main.ts | TypeScript |
ArrowFunction |
() => {
if (this.overflowContainer.nativeElement.scrollLeft === 0) {
this.showLeftButton = false;
}
this.showRightButton = true;
} | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
ArrowFunction |
() => {
if (this.overflowContainer.nativeElement.scrollLeft === current) {
this.showRightButton = false;
}
this.showLeftButton = true;
} | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
ArrowFunction |
(t) => {
t.selected = false;
} | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
ArrowFunction |
(t) => t.selected | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
ArrowFunction |
(t) => t.name === `All` | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
ArrowFunction |
(blogPost) => {
const selectedTags = this.tags
.filter((t) => t.selected)
.map((t) => {
return t.name;
});
for (let i = 0; i < selectedTags.length; i++) {
const tag = selectedTags[i];
if (blogPost.tags.includes(tag)) {
return true;
}
... | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
ArrowFunction |
(t) => {
return t.name;
} | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
ArrowFunction |
(tag) => {
tag.selected = false;
} | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
ArrowFunction |
(blogPost) => {
return (
blogPost.title
.toLowerCase()
.includes(
this.searchForm.controls.searchCriteria.value.toLowerCase()
) ||
blogPost.summary
.toLowerCase()
.includes(
this.searchForm.controls.sear... | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
ArrowFunction |
(tag) => {
return tag
.toLowerCase()
.includes(
this.searchForm.controls.searchCriteria.value.toLowerCase()
);
} | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
MethodDeclaration |
ngOnInit(): void {
this.searchForm = new FormGroup({
searchCriteria: new FormControl(''),
});
this.filterByTags();
this.titleService.setTitle("Blog | Symartsoft");
const metaDescription = `Browse, search and filter all existing Symartsoft blogposts`;
this.metaService.updateTag({
nam... | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
MethodDeclaration |
scrollLeft() {
this.overflowContainer.nativeElement.scroll({
left: this.overflowContainer.nativeElement.scrollLeft - 150,
behavior: 'smooth',
});
setTimeout(() => {
if (this.overflowContainer.nativeElement.scrollLeft === 0) {
this.showLeftButton = false;
}
this.showRig... | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
MethodDeclaration |
scrollRight() {
const current = this.overflowContainer.nativeElement.scrollLeft;
this.overflowContainer.nativeElement.scroll({
left: this.overflowContainer.nativeElement.scrollLeft + 150,
behavior: 'smooth',
});
setTimeout(() => {
if (this.overflowContainer.nativeElement.scrollLeft ==... | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
MethodDeclaration |
tagSelected(tag: BlogTag) {
if (tag.name === 'All') {
if (tag.selected) {
return;
} else {
this.tags.forEach((t) => {
t.selected = false;
});
tag.selected = true;
}
} else {
tag.selected = !tag.selected;
if (!this.tags.find((t) => t.select... | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.