type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
FunctionDeclaration
async function loginSyno(Helper: GlobalHelper): Promise<boolean>{ // Check parameters try{ if (Helper.Adapter.config.syno_path === "" || Helper.Adapter.config.syno_path === null){ Helper.Adapter.log.error("No name or IP address of Synology PhotoStation configured"); return false; } if (Helper.Adapter.con...
ioBrokerTranslator/ioBroker.slideshow
src/modules/slideSynology.ts
TypeScript
FunctionDeclaration
async function synoCheckConnection(Helper: GlobalHelper): Promise<boolean>{ try{ const synResult: AxiosResponse = await (synoConnection.get(`http://${Helper.Adapter.config.syno_path}/photo/webapi/auth.php?api=SYNO.PhotoStation.Auth&method=checkauth&version=1`)); if (synResult.status === 200){ if (synResult.dat...
ioBrokerTranslator/ioBroker.slideshow
src/modules/slideSynology.ts
TypeScript
ArrowFunction
element => { let PictureDate: Date | null = null; if (element.info.takendate){ PictureDate = new Date(element.info.takendate); } CurrentImageList.push( {path: element.id, url: "", info1: element.info.title, info2: element.info.description, info3: element.info.name, date: PictureDate, x: ...
ioBrokerTranslator/ioBroker.slideshow
src/modules/slideSynology.ts
TypeScript
InterfaceDeclaration
export interface SynoPicture{ url: string, path: string, info1: string, info2: string, info3: string, date: Date | null, x: number, y: number }
ioBrokerTranslator/ioBroker.slideshow
src/modules/slideSynology.ts
TypeScript
InterfaceDeclaration
export interface SynoPictureListUpdateResult{ success: boolean; picturecount: number; }
ioBrokerTranslator/ioBroker.slideshow
src/modules/slideSynology.ts
TypeScript
FunctionDeclaration
function now(): number;
Asthor/reactql
types/microseconds.d.ts
TypeScript
FunctionDeclaration
function parse(nano: number): Parsed;
Asthor/reactql
types/microseconds.d.ts
TypeScript
FunctionDeclaration
function since(nano: number): number;
Asthor/reactql
types/microseconds.d.ts
TypeScript
InterfaceDeclaration
interface Parsed { microseconds: number, milliseconds: number, seconds: number, minutes: number, hours: number, days: number, toString(): string, }
Asthor/reactql
types/microseconds.d.ts
TypeScript
FunctionDeclaration
export function detectPackageManager(dir: string = ''): PackageManager { return existsSync(join(dir, 'yarn.lock')) ? 'yarn' : existsSync(join(dir, 'pnpm-lock.yaml')) ? 'pnpm' : 'npm'; }
FrozenPandaz/nx
packages/create-nx-workspace/bin/package-manager.ts
TypeScript
FunctionDeclaration
/** * Returns commands for the package manager used in the workspace. * By default, the package manager is derived based on the lock file, * but it can also be passed in explicitly. * * Example: * * ```javascript * execSync(`${getPackageManagerCommand().addDev} my-dev-package`); * ``` * */ export function ge...
FrozenPandaz/nx
packages/create-nx-workspace/bin/package-manager.ts
TypeScript
FunctionDeclaration
export function getPackageManagerVersion( packageManager: PackageManager ): string { return execSync(`${packageManager} --version`).toString('utf-8').trim(); }
FrozenPandaz/nx
packages/create-nx-workspace/bin/package-manager.ts
TypeScript
FunctionDeclaration
/** * Detects which package manager was used to invoke create-nx-{plugin|workspace} command * based on the main Module process that invokes the command * - npx returns 'npm' * - pnpx returns 'pnpm' * - yarn create returns 'yarn' * * Default to 'npm' */ export function detectInvokedPackageManager(): PackageManag...
FrozenPandaz/nx
packages/create-nx-workspace/bin/package-manager.ts
TypeScript
ArrowFunction
(script: string, args: string) => `yarn ${script} ${args}`
FrozenPandaz/nx
packages/create-nx-workspace/bin/package-manager.ts
TypeScript
ArrowFunction
(script: string, args: string) => `pnpm run ${script} -- ${args}`
FrozenPandaz/nx
packages/create-nx-workspace/bin/package-manager.ts
TypeScript
ArrowFunction
(script: string, args: string) => `npm run ${script} -- ${args}`
FrozenPandaz/nx
packages/create-nx-workspace/bin/package-manager.ts
TypeScript
TypeAliasDeclaration
/* * Because we don't want to depend on @nrwl/workspace (to speed up the workspace creation) * we duplicate the helper functions from @nrwl/workspace in this file. */ export type PackageManager = 'yarn' | 'pnpm' | 'npm';
FrozenPandaz/nx
packages/create-nx-workspace/bin/package-manager.ts
TypeScript
ClassDeclaration
/** * Locations mongo module * @name LocationsModule * @kind module */ @Module({ imports: [ MongooseModule.forFeature([ { name: Locations.name, schema: LocationsSchema }, ]), ], exports: [LocationsService], providers: [LocationsService], }) export class LocationsModule { }
BohdanShmalko/-system-of-optimization-of-maprouting
src/database/locations/locations.module.ts
TypeScript
ClassDeclaration
@Injectable() export class NewSubmissionService { readonly baseUrl: string = environment.API_URL + 'abstracts'; private submissionUrl: string = this.baseUrl; private noID: boolean = false; private emptyObservable: Observable<{'$oid': string}>; constructor(private http: HttpClient) { } add...
Megabittron/DeploymentExperiment-URS
client/src/app/newSubmission/newSubmission.service.ts
TypeScript
MethodDeclaration
addNewSubmission(newSubmission: Submission): Observable<{'$oid': string}> { this.submissionUrl = this.baseUrl; this.noID = false; if(newSubmission.userID == null || newSubmission.userID == ""){ this.noID = true; } const httpOptions = { headers: new Http...
Megabittron/DeploymentExperiment-URS
client/src/app/newSubmission/newSubmission.service.ts
TypeScript
MethodDeclaration
getDisciplines(): Observable<Disciplines[]> { this.submissionUrl = this.baseUrl; return this.http.get<Disciplines[]>(this.submissionUrl + '/disciplines'); }
Megabittron/DeploymentExperiment-URS
client/src/app/newSubmission/newSubmission.service.ts
TypeScript
MethodDeclaration
getSponsoredOrganizations(): Observable<SponsoredOrganizations[]> { this.submissionUrl = this.baseUrl; return this.http.get<SponsoredOrganizations[]>(this.submissionUrl + '/sponsoredOrganizations'); }
Megabittron/DeploymentExperiment-URS
client/src/app/newSubmission/newSubmission.service.ts
TypeScript
MethodDeclaration
getCategories(): Observable<Categories[]> { this.submissionUrl = this.baseUrl; return this.http.get<Categories[]>(this.submissionUrl + '/categories'); }
Megabittron/DeploymentExperiment-URS
client/src/app/newSubmission/newSubmission.service.ts
TypeScript
FunctionDeclaration
function PresenceAnimation({ shouldAnimate, isVisible, onAnimationComplete, children, }: Props) { return ( <motion.div transition={{ ease: 'easeInOut' }}
JulianWebb/calories-in
src/variants/VariantsList/VariantItem/PresenceAnimation.tsx
TypeScript
TypeAliasDeclaration
type Props = { children: ReactNode shouldAnimate: boolean onAnimationComplete: () => void isVisible: boolean }
JulianWebb/calories-in
src/variants/VariantsList/VariantItem/PresenceAnimation.tsx
TypeScript
ArrowFunction
() => (this.disableNetworkFetches = false)
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
ArrowFunction
() => { if (this.devToolsHookCb) { this.devToolsHookCb({ action: {}, state: { queries: this.queryManager.getQueryStore(), mutations: this.queryManager.mutationStore || {}, }, dataWithOptimisticResults: this.cache.extract(true...
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
ArrowFunction
() => this.queryManager.clearStore({ discardWatches: false, })
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
ArrowFunction
() => Promise.all(this.resetStoreCallbacks.map(fn => fn()))
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
ArrowFunction
fn => fn()
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
ArrowFunction
() => this.reFetchObservableQueries()
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
ArrowFunction
() => this.queryManager.clearStore({ discardWatches: true, })
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
ArrowFunction
() => Promise.all(this.clearStoreCallbacks.map(fn => fn()))
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
ArrowFunction
() => { this.resetStoreCallbacks = this.resetStoreCallbacks.filter(c => c !== cb); }
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
ArrowFunction
c => c !== cb
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
ArrowFunction
() => { this.clearStoreCallbacks = this.clearStoreCallbacks.filter(c => c !== cb); }
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
ArrowFunction
(result, obsQuery) => { queries.push(obsQuery); results.push(result); }
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
ArrowFunction
error => { invariant.debug(`In client.refetchQueries, Promise.all promise rejected with error ${error}`); }
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
InterfaceDeclaration
export interface DefaultOptions { watchQuery?: Partial<WatchQueryOptions<any, any>>; query?: Partial<QueryOptions<any, any>>; mutate?: Partial<MutationOptions<any, any, any>>; }
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
TypeAliasDeclaration
export type ApolloClientOptions<TCacheShape> = { uri?: string | UriFunction; credentials?: string; headers?: Record<string, string>; link?: ApolloLink; cache: ApolloCache<TCacheShape>; ssrForceFetchDelay?: number; ssrMode?: boolean; connectToDevTools?: boolean; queryDeduplication?: boolean; default...
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Call this method to terminate any active client processes, making it safe * to dispose of this `ApolloClient` instance. */ public stop() { this.queryManager.stop(); }
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * This watches the cache store of the query according to the options specified and * returns an {@link ObservableQuery}. We can subscribe to this {@link ObservableQuery} and * receive updated results through a GraphQL observer when the cache store changes. * * Note that this method is not an implemen...
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * This resolves a single query according to the options specified and * returns a {@link Promise} which is either resolved with the resulting data * or rejected with an error. * * @param options An object of type {@link QueryOptions} that allows us to * describe how this query should be treated e....
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * This resolves a single mutation according to the options specified and returns a * {@link Promise} which is either resolved with the resulting data or rejected with an * error. * * It takes options as an object with the following keys and values: */ public mutate< TData = any, TVariables...
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * This subscribes to a graphql subscription according to the options specified and returns an * {@link Observable} which either emits received data or an error. */ public subscribe<T = any, TVariables = OperationVariables>( options: SubscriptionOptions<TVariables, T>, ): Observable<FetchResult<T>> { ...
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Tries to read some data from the store in the shape of the provided * GraphQL query without making a network request. This method will start at * the root query. To start at a specific id returned by `dataIdFromObject` * use `readFragment`. * * @param optimistic Set to `true` to allow `readQuery...
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Tries to read some data from the store in the shape of the provided * GraphQL fragment without making a network request. This method will read a * GraphQL fragment from any arbitrary id that is currently cached, unlike * `readQuery` which will only read from the root query. * * You must pass in ...
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Writes some data in the shape of the provided GraphQL query directly to * the store. This method will start at the root query. To start at a * specific id returned by `dataIdFromObject` then use `writeFragment`. */ public writeQuery<TData = any, TVariables = OperationVariables>( options: DataProxy...
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Writes some data in the shape of the provided GraphQL fragment directly to * the store. This method will write to a GraphQL fragment from any arbitrary * id that is currently cached, unlike `writeQuery` which will only write * from the root query. * * You must pass in a GraphQL document with a s...
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
public __actionHookForDevTools(cb: () => any) { this.devToolsHookCb = cb; }
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
public __requestRaw(payload: GraphQLRequest): Observable<ExecutionResult> { return execute(this.link, payload); }
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Resets your entire store by clearing out your cache and then re-executing * all of your active queries. This makes it so that you may guarantee that * there is no data left in your store from a time before you called this * method. * * `resetStore()` is useful when your user just logged out. You...
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Remove all data from the store. Unlike `resetStore`, `clearStore` will * not refetch any active queries. */ public clearStore(): Promise<any[]> { return Promise.resolve() .then(() => this.queryManager.clearStore({ discardWatches: true, })) .then(() => Promise.all(this.clearS...
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Allows callbacks to be registered that are executed when the store is * reset. `onResetStore` returns an unsubscribe function that can be used * to remove registered callbacks. */ public onResetStore(cb: () => Promise<any>): () => void { this.resetStoreCallbacks.push(cb); return () => { ...
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Allows callbacks to be registered that are executed when the store is * cleared. `onClearStore` returns an unsubscribe function that can be used * to remove registered callbacks. */ public onClearStore(cb: () => Promise<any>): () => void { this.clearStoreCallbacks.push(cb); return () => { ...
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Refetches all of your active queries. * * `reFetchObservableQueries()` is useful if you want to bring the client back to proper state in case of a network outage * * It is important to remember that `reFetchObservableQueries()` *will* refetch any active * queries. This means that any components ...
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Refetches specified active queries. Similar to "reFetchObservableQueries()" but with a specific list of queries. * * `refetchQueries()` is useful for use cases to imperatively refresh a selection of queries. * * It is important to remember that `refetchQueries()` *will* refetch specified active ...
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Get all currently active `ObservableQuery` objects, in a `Map` keyed by * query ID strings. An "active" query is one that has observers and a * `fetchPolicy` other than "standby" or "cache-only". You can include all * `ObservableQuery` objects (including the inactive ones) by passing "all" * instea...
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Exposes the cache's complete state, in a serializable format for later restoration. */ public extract(optimistic?: boolean): TCacheShape { return this.cache.extract(optimistic); }
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Replaces existing state in the cache (if any) with the values expressed by * `serializedState`. * * Called when hydrating a cache (server side rendering, or offline storage), * and also (potentially) during hot reloads. */ public restore(serializedState: TCacheShape): ApolloCache<TCacheShape> { ...
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Add additional local resolvers. */ public addResolvers(resolvers: Resolvers | Resolvers[]) { this.localState.addResolvers(resolvers); }
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Set (override existing) local resolvers. */ public setResolvers(resolvers: Resolvers | Resolvers[]) { this.localState.setResolvers(resolvers); }
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Get all registered local resolvers. */ public getResolvers() { return this.localState.getResolvers(); }
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Set a custom local state fragment matcher. */ public setLocalStateFragmentMatcher(fragmentMatcher: FragmentMatcher) { this.localState.setFragmentMatcher(fragmentMatcher); }
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
MethodDeclaration
/** * Define a new ApolloLink (or link chain) that Apollo Client will use. */ public setLink(newLink: ApolloLink) { this.link = this.queryManager.link = newLink; }
Nexuscompute/apollo-client
src/core/ApolloClient.ts
TypeScript
ClassDeclaration
@Module({ controllers: [CoinsController], providers: [CoinsService] }) export class CoinsModule {}
TaeHun-Lee/jabtang-server
nest-app/src/coins/coins.module.ts
TypeScript
ClassDeclaration
export default class extends MultiArgument { public get base() { return this.store.get('username')!; } }
Doctah/recruiter-bot
src/arguments/usernames.ts
TypeScript
ArrowFunction
() => { this.props.onAnchorClick('https://azure.microsoft.com/en-us/services/bot-service'); }
daltskin/BotFramework-Emulator
packages/app/client/src/ui/dialogs/azureLoginPromptDialog/azureLoginPromptDialog.tsx
TypeScript
ArrowFunction
() => { this.props.onAnchorClick('https://aka.ms/about-bot-file'); }
daltskin/BotFramework-Emulator
packages/app/client/src/ui/dialogs/azureLoginPromptDialog/azureLoginPromptDialog.tsx
TypeScript
ClassDeclaration
export class AzureLoginPromptDialog extends Component<AzureLoginPromptDialogProps, {}> { public render() { return ( <Dialog cancel={ this.props.cancel } title="Sign in with an Azure account" className={styles.dialogMedium}> <p>{ 'Use your Azure account to sign in to all your Azure services, ' + ...
daltskin/BotFramework-Emulator
packages/app/client/src/ui/dialogs/azureLoginPromptDialog/azureLoginPromptDialog.tsx
TypeScript
InterfaceDeclaration
export interface AzureLoginPromptDialogProps { cancel: () => void; confirm: () => void; onAnchorClick: (url: string) => void; }
daltskin/BotFramework-Emulator
packages/app/client/src/ui/dialogs/azureLoginPromptDialog/azureLoginPromptDialog.tsx
TypeScript
MethodDeclaration
public render() { return ( <Dialog cancel={ this.props.cancel } title="Sign in with an Azure account" className={styles.dialogMedium}> <p>{ 'Use your Azure account to sign in to all your Azure services, ' + 'such as Azure Bot Service, Dispatch, LUIS, and QnA Maker.' } <a href="javas...
daltskin/BotFramework-Emulator
packages/app/client/src/ui/dialogs/azureLoginPromptDialog/azureLoginPromptDialog.tsx
TypeScript
InterfaceDeclaration
export default interface DetailCallbacks { handleEdit(): void handleRemove(): void handleSave(): void handleCancel(): void titleDetail: string }
RyDVi/scientific_company_flight_sheets
app/components/MasterDetail/DetailCallbacks.ts
TypeScript
ClassDeclaration
@Module({ imports: [MulterModule.register({ dest: './uploads', }), TypeOrmModule.forRoot(typeOrmConfig), UsersModule, UserNotesModule, PresentationsModule, AuthModule, ], controllers: [AppController, PresentationsController, UsersController, UserNotesController, AuthController], provide...
jsoques/nestjsppt2image
src/app.module.ts
TypeScript
ClassDeclaration
export class LogChannel { static channel = '#Log'; // Used later for distributed logs static logLevel = 'LogLevel'; }
daveshanley/transport-typescript
src/log/logger.model.ts
TypeScript
ClassDeclaration
export class LogLevelObject { private _logLevel = LogLevel.Warn; build (logLevel: LogLevel) { this._logLevel = logLevel; return this; } get logLevel () { return this._logLevel; } set logLevel (level: LogLevel) { this._logLevel = level; } }
daveshanley/transport-typescript
src/log/logger.model.ts
TypeScript
ClassDeclaration
export class LogObject { private _logLevel: LogLevel; private _suppress: boolean; private _channel: string; private _object: any; private _caller: string; build (logLevel: LogLevel, channel: string, object: any, caller: string, suppress = false) { this._logLevel = logLevel; thi...
daveshanley/transport-typescript
src/log/logger.model.ts
TypeScript
EnumDeclaration
export enum LogLevel { Verbose, Debug, Info, Warn, Error, Off, }
daveshanley/transport-typescript
src/log/logger.model.ts
TypeScript
MethodDeclaration
build (logLevel: LogLevel) { this._logLevel = logLevel; return this; }
daveshanley/transport-typescript
src/log/logger.model.ts
TypeScript
MethodDeclaration
build (logLevel: LogLevel, channel: string, object: any, caller: string, suppress = false) { this._logLevel = logLevel; this._channel = channel; this._object = object; this._caller = caller; this._suppress = suppress; return this; }
daveshanley/transport-typescript
src/log/logger.model.ts
TypeScript
ClassDeclaration
export class GAWrapperArray extends WrapperArray { protected instanceArray: InstanceArray; protected result: std.HashMap<string, WrapperGroup>; private price: number; /** * @brief Validity of this sequence list. */ private valid: boolean; /* ----------------------------------------------------...
Atulfortune/Atul
ts/src/bws/packer/GAWrapperArray.ts
TypeScript
MethodDeclaration
private constructResult(): void { if (this.result.empty() == false) return; // IF RESULT IS ALREADY DEDUCTED // INSTANCE AND WRAPPER IS CORRESPOND, 1:1 RELATIONSHIP. for (let i: number = 0; i < this.size(); i++) { let wrapper: Wrapper = this.at(i); if (this.result.has(wrapper.getName()) == f...
Atulfortune/Atul
ts/src/bws/packer/GAWrapperArray.ts
TypeScript
MethodDeclaration
/* ----------------------------------------------------------- GETTERS ----------------------------------------------------------- */ /** * @brief Get optimization result. * * @return result map. */ public getResult(): std.HashMap<string, WrapperGroup> { this.constructResult(); return this.res...
Atulfortune/Atul
ts/src/bws/packer/GAWrapperArray.ts
TypeScript
MethodDeclaration
public less(obj: GAWrapperArray): boolean { this.constructResult(); obj.constructResult(); if (this.valid == true && obj.valid == true) return this.price < obj.price; else if (this.valid == true && obj.valid == false) return true; else return false; }
Atulfortune/Atul
ts/src/bws/packer/GAWrapperArray.ts
TypeScript
ClassDeclaration
export class ChannelUnit extends Component<PropsType, StateType> { constructor(props: PropsType) { super(props); this.state = { user: null }; } async componentDidMount() { var user = await getUserDto(this.props.dto.channel.userID) this.setState({ ...
bazarinitiative/BazarHtml
src/components/center/ChannelUnit.tsx
TypeScript
TypeAliasDeclaration
type PropsType = { dto: ChannelDto refreshMainCourse: any clickAm?: boolean userAm?: string }
bazarinitiative/BazarHtml
src/components/center/ChannelUnit.tsx
TypeScript
TypeAliasDeclaration
type StateType = { user: UserDto | null }
bazarinitiative/BazarHtml
src/components/center/ChannelUnit.tsx
TypeScript
MethodDeclaration
async componentDidMount() { var user = await getUserDto(this.props.dto.channel.userID) this.setState({ user: user }) }
bazarinitiative/BazarHtml
src/components/center/ChannelUnit.tsx
TypeScript
MethodDeclaration
async onClick() { if (this.props.clickAm) { var identityObj = getIdentity(); if (identityObj == null) { return } var ret = await sendChannelMember(identityObj, this.props.dto.channel.channelID, this.props.userAm ?? ""); if (!ret.succes...
bazarinitiative/BazarHtml
src/components/center/ChannelUnit.tsx
TypeScript
MethodDeclaration
render() { if (this.state.user == null) { return <div>loading {this.props.dto.channel.channelID}</div> } var channelDto = this.props.dto; var channel = channelDto.channel; var userDto = this.state.user var userInfo = userDto.userInfo; return <div c...
bazarinitiative/BazarHtml
src/components/center/ChannelUnit.tsx
TypeScript
MethodDeclaration
getUserImgUrl(userDto)
bazarinitiative/BazarHtml
src/components/center/ChannelUnit.tsx
TypeScript
FunctionDeclaration
function defaultErrorHandler(error: any): any { throw error; }
Widdershin/angular
modules/@angular/router/src/router.ts
TypeScript
FunctionDeclaration
function parentLoadedConfig(snapshot: ActivatedRouteSnapshot): LoadedRouterConfig { let s = snapshot.parent; while (s) { const c: any = s._routeConfig; if (c && c._loadedConfig) return c._loadedConfig; if (c && c.component) return null; s = s.parent; } return null; }
Widdershin/angular
modules/@angular/router/src/router.ts
TypeScript
FunctionDeclaration
function closestLoadedConfig(snapshot: ActivatedRouteSnapshot): LoadedRouterConfig { if (!snapshot) return null; let s = snapshot.parent; while (s) { const c: any = s._routeConfig; if (c && c._loadedConfig) return c._loadedConfig; s = s.parent; } return null; }
Widdershin/angular
modules/@angular/router/src/router.ts
TypeScript
FunctionDeclaration
function nodeChildrenAsMap(node: TreeNode<any>) { return node ? node.children.reduce((m: any, c: TreeNode<any>) => { m[c.value.outlet] = c; return m; }, {}) : {}; }
Widdershin/angular
modules/@angular/router/src/router.ts
TypeScript
FunctionDeclaration
function getOutlet(outletMap: RouterOutletMap, route: ActivatedRoute): RouterOutlet { let outlet = outletMap._outlets[route.outlet]; if (!outlet) { const componentName = (<any>route.component).name; if (route.outlet === PRIMARY_OUTLET) { throw new Error(`Cannot find primary outlet to load '${componen...
Widdershin/angular
modules/@angular/router/src/router.ts
TypeScript
ArrowFunction
(change: any) => { const tree = this.urlSerializer.parse(change['url']); // we fire multiple events for a single URL change // we should navigate only once return this.currentUrlTree.toString() !== tree.toString() ? this.scheduleNavigation(tree, {skipLocationChange: change['pop'], rep...
Widdershin/angular
modules/@angular/router/src/router.ts
TypeScript
ArrowFunction
(_) => this.runNavigate(url, extras.skipLocationChange, extras.replaceUrl, id)
Widdershin/angular
modules/@angular/router/src/router.ts
TypeScript
ArrowFunction
(resolvePromise, rejectPromise) => { let state: RouterState; let navigationIsSuccessful: boolean; let preActivation: PreActivation; let appliedUrl: UrlTree; const storedState = this.currentRouterState; const storedUrl = this.currentUrlTree; const redirectsApplied$ = applyRe...
Widdershin/angular
modules/@angular/router/src/router.ts
TypeScript
ArrowFunction
(u: UrlTree) => { appliedUrl = u; return recognize( this.rootComponentType, this.config, appliedUrl, this.serializeUrl(appliedUrl)); }
Widdershin/angular
modules/@angular/router/src/router.ts
TypeScript