type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
MethodDeclaration
endBlock(locals: string[]): InlineBlock { let { program, symbolTable } = this.stack.pop(); let block = new InlineBlock(program, symbolTable, locals); this.addChild(block); return block; }
wycats/glimmer
packages/glimmer-runtime/lib/scanner.ts
TypeScript
MethodDeclaration
addChild(block: InlineBlock) { this.stack.current.addChild(block); }
wycats/glimmer
packages/glimmer-runtime/lib/scanner.ts
TypeScript
MethodDeclaration
addStatement(statement: StatementSyntax) { this.stack.current.addStatement(statement.scan(this)); }
wycats/glimmer
packages/glimmer-runtime/lib/scanner.ts
TypeScript
MethodDeclaration
next(): StatementSyntax { return this.reader.next(); }
wycats/glimmer
packages/glimmer-runtime/lib/scanner.ts
TypeScript
MethodDeclaration
addChild(block: InlineBlock) { this.children.push(block); }
wycats/glimmer
packages/glimmer-runtime/lib/scanner.ts
TypeScript
MethodDeclaration
addStatement(statement: StatementSyntax) { this.program.append(statement); }
wycats/glimmer
packages/glimmer-runtime/lib/scanner.ts
TypeScript
MethodDeclaration
next(): StatementSyntax { let last = this.last; if (last) { this.last = null; return last; } else if (this.current === this.statements.length) { return null; } let sexp = this.statements[this.current++]; return buildStatement(sexp, this.symbolTable, this.scanner); }
wycats/glimmer
packages/glimmer-runtime/lib/scanner.ts
TypeScript
FunctionDeclaration
export declare function mergeMapTo<O extends ObservableInput<unknown>>(innerObservable: O, concurrent?: number): OperatorFunction<any, ObservedValueOf<O>>;
0xhodl/Module_4
node_modules/rxjs/dist/types/internal/operators/mergeMapTo.d.ts
TypeScript
FunctionDeclaration
/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ export declare function mergeMapTo<T, R, O extends ObservableInput<unknown>>(innerObservable: O, resultSelector: (outerValue: T, innerValue: ObservedValueOf<O>, oute...
0xhodl/Module_4
node_modules/rxjs/dist/types/internal/operators/mergeMapTo.d.ts
TypeScript
ClassDeclaration
/** * @name ExtrinsicPayloadUnknown * @description * A default handler for payloads where the version is not known (default throw) */ export default class ExtrinsicPayloadUnknown extends Struct { constructor (value?: any, { version = 0 }: Partial<ExtrinsicPayloadOptions> = {}) { super({}); throw new Erro...
mariopino/api
packages/types/src/primitive/Extrinsic/ExtrinsicPayloadUnknown.ts
TypeScript
ArrowFunction
(styles: any) => ({ ...styles, backgroundColor: '#676767', color: 'white', border: 0, width: 400, })
nrkno/sofie-sisyfos-audio-controller
client/components/PagesSettings.tsx
TypeScript
ArrowFunction
(styles: any) => { return { backgroundColor: '#AAAAAA', color: 'white', } }
nrkno/sofie-sisyfos-audio-controller
client/components/PagesSettings.tsx
TypeScript
ArrowFunction
(styles: any) => ({ ...styles, color: 'white' })
nrkno/sofie-sisyfos-audio-controller
client/components/PagesSettings.tsx
TypeScript
ArrowFunction
(page: ICustomPages, index: number) => { return { label: page.label, value: index } }
nrkno/sofie-sisyfos-audio-controller
client/components/PagesSettings.tsx
TypeScript
ArrowFunction
(a, b) => { return a - b }
nrkno/sofie-sisyfos-audio-controller
client/components/PagesSettings.tsx
TypeScript
ArrowFunction
(event: ChangeEvent<HTMLInputElement>) => { this.setState({ label: event.target.value }) this.pageList[this.state.pageIndex].label = event.target.value let nextPages: ICustomPages[] = [...this.props.customPages] nextPages[this.state.pageIndex].label = event.target.value w...
nrkno/sofie-sisyfos-audio-controller
client/components/PagesSettings.tsx
TypeScript
ArrowFunction
() => { window.socketIoClient.emit(SOCKET_GET_PAGES_LIST) this.props.dispatch(storeShowPagesSetup()) }
nrkno/sofie-sisyfos-audio-controller
client/components/PagesSettings.tsx
TypeScript
ArrowFunction
(fader: IFader, index: number) => { return ( <div key={index} className={ClassNames('pages-settings-tick', { checked: this.props.customPages[ thi...
nrkno/sofie-sisyfos-audio-controller
client/components/PagesSettings.tsx
TypeScript
ArrowFunction
(state: any, props: any): IPagesSettingsInjectProps => { return { customPages: state.settings[0].customPages, fader: state.faders[0].fader, } }
nrkno/sofie-sisyfos-audio-controller
client/components/PagesSettings.tsx
TypeScript
ClassDeclaration
class PagesSettings extends React.PureComponent< IPagesSettingsInjectProps & Store > { pageList: { label: string; value: number }[] state = { pageIndex: 0, label: '' } constructor(props: any) { super(props) this.pageList = this.props.customPages.map( (page: ICust...
nrkno/sofie-sisyfos-audio-controller
client/components/PagesSettings.tsx
TypeScript
InterfaceDeclaration
interface IPagesSettingsInjectProps { customPages: ICustomPages[] fader: IFader[] }
nrkno/sofie-sisyfos-audio-controller
client/components/PagesSettings.tsx
TypeScript
MethodDeclaration
componentDidMount() { this.setState({ label: this.props.customPages[0].label }) }
nrkno/sofie-sisyfos-audio-controller
client/components/PagesSettings.tsx
TypeScript
MethodDeclaration
handleSelectPage(event: any) { this.setState({ pageIndex: event.value }) this.setState({ label: this.props.customPages[event.value].label, }) console.log('PAGE SELECTED', this.state.pageIndex) }
nrkno/sofie-sisyfos-audio-controller
client/components/PagesSettings.tsx
TypeScript
MethodDeclaration
handleAssignFader(fader: number, event: any) { if (event.target.checked === false) { console.log('Unbinding Fader') if ( window.confirm( 'Unbind Fader from page ' + String(fader + 1) + ' from Page...
nrkno/sofie-sisyfos-audio-controller
client/components/PagesSettings.tsx
TypeScript
MethodDeclaration
handleClearRouting() { if (window.confirm('REMOVE ALL FADER ASSIGNMENTS????')) { let nextPages: ICustomPages[] = [...this.props.customPages] nextPages[this.state.pageIndex].faders = [] window.storeRedux.dispatch(storeUpdatePagesList(nextPages)) window.socket...
nrkno/sofie-sisyfos-audio-controller
client/components/PagesSettings.tsx
TypeScript
MethodDeclaration
renderFaderList() { return ( <div> {this.props.fader.map((fader: IFader, index: number) => { return ( <div key={index} className={ClassNames('pages-settings-tick', { ...
nrkno/sofie-sisyfos-audio-controller
client/components/PagesSettings.tsx
TypeScript
MethodDeclaration
ClassNames('pages-settings-tick', { checked: this
nrkno/sofie-sisyfos-audio-controller
client/components/PagesSettings.tsx
TypeScript
FunctionDeclaration
export default function Duration(props: DurationProps): ReactElement { return ( // @ts-ignore: Property 'duration' does not exist on type <DurationGridCell {...props}> <Span> {props.duration === 60 ? '1h' : `${props.duration}m`} </Span> </DurationGrid...
neelkamath/time-bend-web
src/components/Duration.tsx
TypeScript
FunctionDeclaration
function colorDuration(duration: number): string { if (duration <= 15) return '#F1F6F8'; if (duration <= 30) return '#E5F0F3'; if (duration <= 45) return '#DAE7EA'; return '#CBDDE2'; }
neelkamath/time-bend-web
src/components/Duration.tsx
TypeScript
ArrowFunction
(props) => colorDuration(props.duration)
neelkamath/time-bend-web
src/components/Duration.tsx
TypeScript
InterfaceDeclaration
export interface DurationProps extends GridCellProps { /** The task's duration. */ readonly duration: number }
neelkamath/time-bend-web
src/components/Duration.tsx
TypeScript
InterfaceDeclaration
interface DurationGridCellProps { readonly duration: number }
neelkamath/time-bend-web
src/components/Duration.tsx
TypeScript
ClassDeclaration
@Component({ selector: 'uni-icon', templateUrl: 'icon.component.html', styleUrls: ['icon.component.scss'] }) export class UniIconComponent { @HostBinding('class.uni-icon') componentClass = true; @Input() icon: string; @Input() size: string; }
alejandroSuch/unicorn_components
src/components/utils/icon/icon.component.ts
TypeScript
TypeAliasDeclaration
export type BaseModel = { id?: string | number; cratedAt?: Date; updatedAt?: Date; };
pehleme/template-next
src/data/models/base.model.ts
TypeScript
FunctionDeclaration
function Intersect(props: IconProps) { return <Svg viewBox="0 0 256 256" width={props.size} height={props.size} {...props}><Rect width={256} height={256} fill="none" /><Circle cx={96} cy={96} r={72} fill="none" stroke={props.color} strokeLinecap="round" strokeLinejoin="round" strokeWidth={12} /><Circle cx={160} cy={...
Joeao/phosphor-react-native
src/light/Intersect.tsx
TypeScript
ArrowFunction
() => { EventService.subscribers = EventService.subscribers.filter(p => p.id !== id); }
infanf/homer
frontend/src/services/event.service.ts
TypeScript
ArrowFunction
p => p.id !== id
infanf/homer
frontend/src/services/event.service.ts
TypeScript
ClassDeclaration
export class EventService { private static subscribers: Array<{ id: number; event: string; // @ts-ignore callback: SubscribeCallback<any>; }> = []; static subscribe<T>(event: string, callback: SubscribeCallback<T>): Unsubscribe { const id = Date.now(); Eve...
infanf/homer
frontend/src/services/event.service.ts
TypeScript
TypeAliasDeclaration
export type SubscribeCallback<T> = (payload: T, event?: string) => void;
infanf/homer
frontend/src/services/event.service.ts
TypeScript
TypeAliasDeclaration
export type Unsubscribe = { unsubscribe: (() => void) };
infanf/homer
frontend/src/services/event.service.ts
TypeScript
MethodDeclaration
static subscribe<T>(event: string, callback: SubscribeCallback<T>): Unsubscribe { const id = Date.now(); EventService.subscribers.push({ id, event, callback }); // Unsubscribe return { unsubscribe: () => { EventService.subscribers = Even...
infanf/homer
frontend/src/services/event.service.ts
TypeScript
MethodDeclaration
static emit<T>(event: string, payload: T) { for (let sub of EventService.subscribers) { if (event === sub.event && sub.callback) { try { sub.callback(payload, event); } catch (ex) { logger.error(`Error in emit() for ${event}:`,...
infanf/homer
frontend/src/services/event.service.ts
TypeScript
FunctionDeclaration
function doCut (d: string): VBox[] { let dim1 = d + '1' let dim2 = d + '2' let d1 = vbox.dimension[dim1] let d2 = vbox.dimension[dim2] let vbox1 = vbox.clone() let vbox2 = vbox.clone() let left = splitPoint - d1 let right = d2 - splitPoint if (left <= right) { ...
Abhi6722/hackers-hub-website
node_modules/node-vibrant/src/quantizer/vbox.ts
TypeScript
InterfaceDeclaration
export interface Dimension { r1: number r2: number g1: number g2: number b1: number b2: number [d: string]: number }
Abhi6722/hackers-hub-website
node_modules/node-vibrant/src/quantizer/vbox.ts
TypeScript
MethodDeclaration
static build (pixels: Pixels, shouldIgnore?: Filter): VBox { let hn = 1 << (3 * SIGBITS) let hist = new Uint32Array(hn) let rmax: number let rmin: number let gmax: number let gmin: number let bmax: number let bmin: number let r: number let g: number let b: number let a: ...
Abhi6722/hackers-hub-website
node_modules/node-vibrant/src/quantizer/vbox.ts
TypeScript
MethodDeclaration
invalidate (): void { this._volume = this._count = -1 this._avg = null }
Abhi6722/hackers-hub-website
node_modules/node-vibrant/src/quantizer/vbox.ts
TypeScript
MethodDeclaration
volume (): number { if (this._volume < 0) { let { r1, r2, g1, g2, b1, b2 } = this.dimension this._volume = (r2 - r1 + 1) * (g2 - g1 + 1) * (b2 - b1 + 1) } return this._volume }
Abhi6722/hackers-hub-website
node_modules/node-vibrant/src/quantizer/vbox.ts
TypeScript
MethodDeclaration
count (): number { if (this._count < 0) { let { hist } = this let { r1, r2, g1, g2, b1, b2 } = this.dimension let c = 0 for (let r = r1; r <= r2; r++) { for (let g = g1; g <= g2; g++) { for (let b = b1; b <= b2; b++) { let index = getColorIndex(r, g, b) ...
Abhi6722/hackers-hub-website
node_modules/node-vibrant/src/quantizer/vbox.ts
TypeScript
MethodDeclaration
clone (): VBox { let { hist } = this let { r1, r2, g1, g2, b1, b2 } = this.dimension return new VBox(r1, r2, g1, g2, b1, b2, hist) }
Abhi6722/hackers-hub-website
node_modules/node-vibrant/src/quantizer/vbox.ts
TypeScript
MethodDeclaration
avg (): Vec3 { if (!this._avg) { let { hist } = this let { r1, r2, g1, g2, b1, b2 } = this.dimension let ntot = 0 let mult = 1 << (8 - SIGBITS) let rsum: number let gsum: number let bsum: number rsum = gsum = bsum = 0 for (let r = r1; r <= r2; r++) { f...
Abhi6722/hackers-hub-website
node_modules/node-vibrant/src/quantizer/vbox.ts
TypeScript
MethodDeclaration
contains (rgb: Vec3): boolean { let [r, g, b] = rgb let { r1, r2, g1, g2, b1, b2 } = this.dimension r >>= RSHIFT g >>= RSHIFT b >>= RSHIFT return r >= r1 && r <= r2 && g >= g1 && g <= g2 && b >= b1 && b <= b2 }
Abhi6722/hackers-hub-website
node_modules/node-vibrant/src/quantizer/vbox.ts
TypeScript
MethodDeclaration
split (): VBox[] { let { hist } = this let { r1, r2, g1, g2, b1, b2 } = this.dimension let count = this.count() if (!count) return [] if (count === 1) return [this.clone()] let rw = r2 - r1 + 1 let gw = g2 - g1 + 1 let bw = b2 - b1 + 1 let maxw = Math.max(rw, gw, bw) let accSum...
Abhi6722/hackers-hub-website
node_modules/node-vibrant/src/quantizer/vbox.ts
TypeScript
ClassDeclaration
@Component({ selector: "div[check-list-item]", templateUrl: "./check-list-item.component.html", styleUrls: ["./check-list-item.component.less"], changeDetection: ChangeDetectionStrategy.OnPush }) export class CheckListItemComponent extends BaseElementComponent implements OnInit { static type = 'check-list-it...
chongqiangchen/slate-ng
projects/demo/src/app/examples/check-list/check-list-item/check-list-item.component.ts
TypeScript
MethodDeclaration
ngOnInit(): void { this.init(); this.watchDeps(); }
chongqiangchen/slate-ng
projects/demo/src/app/examples/check-list/check-list-item/check-list-item.component.ts
TypeScript
MethodDeclaration
handleCheckboxChange($event: any) { const path = AngularEditor.findPath(this.editorService.editor, this.cNode); const newProperties: Partial<SlateElement & {checked: boolean}> = { checked: $event.target?.checked }; Transforms.setNodes(this.editorService.editor, newProperties, { at: path }); }
chongqiangchen/slate-ng
projects/demo/src/app/examples/check-list/check-list-item/check-list-item.component.ts
TypeScript
ArrowFunction
async (context, req, res) => res.ok({ body: { version: '0.0.1' } })
peterschretlen/kibana
src/core/server/server.ts
TypeScript
ArrowFunction
async (context, req, res): Promise<RequestHandlerContext['core']> => { const savedObjectsClient = this.coreStart!.savedObjects.getScopedClient(req); const uiSettingsClient = coreSetup.uiSettings.asScopedToClient(savedObjectsClient); return { rendering: { render: async (op...
peterschretlen/kibana
src/core/server/server.ts
TypeScript
ArrowFunction
async (options = {}) => rendering.render(req, uiSettingsClient, { ...options, vars: await this.legacy.legacyInternals!.getVars('core', req), })
peterschretlen/kibana
src/core/server/server.ts
TypeScript
MethodDeclaration
public async setup() { this.log.debug('setting up server'); // Discover any plugins before continuing. This allows other systems to utilize the plugin dependency graph. const pluginDependencies = await this.plugins.discover(); const legacyPlugins = await this.legacy.discoverPlugins(); // Immediat...
peterschretlen/kibana
src/core/server/server.ts
TypeScript
MethodDeclaration
public async start() { this.log.debug('starting server'); const savedObjectsStart = await this.savedObjects.start({}); const capabilitiesStart = this.capabilities.start(); const uiSettingsStart = await this.uiSettings.start(); const pluginsStart = await this.plugins.start({ capabilities: cap...
peterschretlen/kibana
src/core/server/server.ts
TypeScript
MethodDeclaration
public async stop() { this.log.debug('stopping server'); await this.legacy.stop(); await this.plugins.stop(); await this.savedObjects.stop(); await this.elasticsearch.stop(); await this.http.stop(); await this.uiSettings.stop(); await this.rendering.stop(); await this.metrics.stop(...
peterschretlen/kibana
src/core/server/server.ts
TypeScript
MethodDeclaration
private registerDefaultRoute(httpSetup: InternalHttpServiceSetup) { const router = httpSetup.createRouter('/core'); router.get({ path: '/', validate: false }, async (context, req, res) => res.ok({ body: { version: '0.0.1' } }) ); }
peterschretlen/kibana
src/core/server/server.ts
TypeScript
MethodDeclaration
private registerCoreContext(coreSetup: InternalCoreSetup, rendering: RenderingServiceSetup) { coreSetup.http.registerRouteHandlerContext( coreId, 'core', async (context, req, res): Promise<RequestHandlerContext['core']> => { const savedObjectsClient = this.coreStart!.savedObjects.getScope...
peterschretlen/kibana
src/core/server/server.ts
TypeScript
MethodDeclaration
public async setupCoreConfig() { const schemas: Array<[ConfigPath, Type<unknown>]> = [ [pathConfig.path, pathConfig.schema], [cspConfig.path, cspConfig.schema], [elasticsearchConfig.path, elasticsearchConfig.schema], [loggingConfig.path, loggingConfig.schema], [httpConfig.path, httpCo...
peterschretlen/kibana
src/core/server/server.ts
TypeScript
ClassDeclaration
class HtmlRenderer { private readonly templates: { [key: string]: Template } constructor() { this.templates = {} } public addTemplate(template: Template): void { if (this.templates[template.getId()]) { throw new Error(`Template with key "${template.getId()}" already exists.`) } this.te...
VencaKrecl/pdf-generator
src/html-renderer/HtmlRenderer.ts
TypeScript
MethodDeclaration
public addTemplate(template: Template): void { if (this.templates[template.getId()]) { throw new Error(`Template with key "${template.getId()}" already exists.`) } this.templates[template.getId()] = template }
VencaKrecl/pdf-generator
src/html-renderer/HtmlRenderer.ts
TypeScript
MethodDeclaration
public getTemplate(key: string): Template { if (!this.templates[key]) { throw new Error(`Template with key "${key}" does not exists.`) } return this.templates[key] }
VencaKrecl/pdf-generator
src/html-renderer/HtmlRenderer.ts
TypeScript
MethodDeclaration
public getIds(): Array<string> { return Object.keys(this.templates) }
VencaKrecl/pdf-generator
src/html-renderer/HtmlRenderer.ts
TypeScript
MethodDeclaration
public render(key: string, data: Record<string, unknown> = {}): string { const template = this.getTemplate(key) const errors = template.validate(data) if (errors.length) { throw new ValidationError(`Template with key "${key}" is not valid.`, errors) } return pug.renderFile(template.getPath...
VencaKrecl/pdf-generator
src/html-renderer/HtmlRenderer.ts
TypeScript
ClassDeclaration
export class SidenavItem { name: string; icon?: string; routeOrFunction?: any; parent?: SidenavItem; subItems?: SidenavItem[]; position?: number; pathMatchExact?: boolean; badge?: string; badgeColor?: string; }
pavanpaik/Fury
src/app/core/sidenav/sidenav-item/sidenav-item.interface.ts
TypeScript
ClassDeclaration
export declare class KinveyError extends Error { debug: string; constructor(message?: string, debug?: string); }
delangel-j/vueFrontend
node_modules/kinvey-js-sdk/lib/errors/kinvey.d.ts
TypeScript
TypeAliasDeclaration
// Declare state export type State = typeof state;
bvsbharat/scavenger-hunt
src/store/side-menu/state.ts
TypeScript
FunctionDeclaration
export function activate(_context: vscode.ExtensionContext) { // Set context as a global as some tests depend on it (global as any).testExtensionContext = _context; }
02818bea-9a08-4b24-a53f-8d4ad597fe20/vscode
extensions/vscode-api-tests/src/extension.ts
TypeScript
FunctionDeclaration
function getTarget(): vscode.ConfigurationTarget { return (vscode.workspace.workspaceFolders) ? vscode.ConfigurationTarget.WorkspaceFolder : vscode.ConfigurationTarget.Global; }
KashaSup/vscode-cpptools
Extension/src/LanguageServer/settings.ts
TypeScript
ClassDeclaration
class Settings { private readonly settings: vscode.WorkspaceConfiguration; /** * create the Settings object. * @param resource The path to a resource to which the settings should apply, or undefined if global settings are desired */ constructor(section: string, resource?: vscode.Uri) { ...
KashaSup/vscode-cpptools
Extension/src/LanguageServer/settings.ts
TypeScript
ClassDeclaration
export class CppSettings extends Settings { constructor(resource?: vscode.Uri) { super("C_Cpp", resource); } public get clangFormatPath(): string { return super.Section.get<string>("clang_format_path"); } public get clangFormatStyle(): string { return super.Section.get<string>("clang_format_st...
KashaSup/vscode-cpptools
Extension/src/LanguageServer/settings.ts
TypeScript
ClassDeclaration
export class OtherSettings { private resource: vscode.Uri; constructor(resource?: vscode.Uri) { if (!resource) { resource = null; } this.resource = resource; } public get editorTabSize(): number { return vscode.workspace.getConfiguration("editor", this.resource).ge...
KashaSup/vscode-cpptools
Extension/src/LanguageServer/settings.ts
TypeScript
InterfaceDeclaration
export interface TextMateRuleSettings { foreground: string | undefined; background: string | undefined; fontStyle: string | undefined; }
KashaSup/vscode-cpptools
Extension/src/LanguageServer/settings.ts
TypeScript
InterfaceDeclaration
export interface TextMateRule { scope: any; settings: TextMateRuleSettings; }
KashaSup/vscode-cpptools
Extension/src/LanguageServer/settings.ts
TypeScript
MethodDeclaration
public toggleSetting(name: string, value1: string, value2: string): void { let value: string = super.Section.get<string>(name); super.Section.update(name, value === value1 ? value2 : value1, getTarget()); }
KashaSup/vscode-cpptools
Extension/src/LanguageServer/settings.ts
TypeScript
MethodDeclaration
public update<T>(name: string, value: T): void { super.Section.update(name, value); }
KashaSup/vscode-cpptools
Extension/src/LanguageServer/settings.ts
TypeScript
MethodDeclaration
public getCustomColorToken(colorTokenName: string): string { return vscode.workspace.getConfiguration("editor.tokenColorCustomizations").get<string>(colorTokenName); }
KashaSup/vscode-cpptools
Extension/src/LanguageServer/settings.ts
TypeScript
MethodDeclaration
public getCustomThemeSpecificColorToken(themeName: string, colorTokenName: string): string { return vscode.workspace.getConfiguration(`editor.tokenColorCustomizations.[${themeName}]`, this.resource).get<string>(colorTokenName); }
KashaSup/vscode-cpptools
Extension/src/LanguageServer/settings.ts
TypeScript
MethodDeclaration
public getCustomThemeSpecificTextMateRules(themeName: string): TextMateRule[] { return vscode.workspace.getConfiguration(`editor.tokenColorCustomizations.[${themeName}]`, this.resource).get<TextMateRule[]>("textMateRules"); }
KashaSup/vscode-cpptools
Extension/src/LanguageServer/settings.ts
TypeScript
ArrowFunction
({ message, date, category, messageType }) => { this.databaseService.insertLogs(date, message, messageType, category); }
dirceusemighini/Med-Link-User-EN
src/app/search/search.component.ts
TypeScript
ArrowFunction
() => console.log(this.nsUrl2 + "fffffffff3333333f")
dirceusemighini/Med-Link-User-EN
src/app/search/search.component.ts
TypeScript
ArrowFunction
r => { console.log("Dialog closed!" + r.result + ", A TO TEKST:" + r.text); this.range = Number(r.text); if(this.range < 80 || this.range > 120){ dialogs.alert({message: "BG VALUE OUT OF ACCEPTABLE RANGE: 80 - 120 mg/dl", okButtonText: "OK"}); } else { appSettings.setNumber('rang...
dirceusemighini/Med-Link-User-EN
src/app/search/search.component.ts
TypeScript
ArrowFunction
r => { console.log("Dialog closed!" + r.result + ", A TO TEKST:" + r.text); if (r.text === '') { appSettings.setString('phoneN', 'ENTER PHONE NUMBER'); this.phoneN = 'ENTER PHONE NUMBER'; } else { Permissions.requestPermission( android.Manifest.permission.SEND_...
dirceusemighini/Med-Link-User-EN
src/app/search/search.component.ts
TypeScript
ArrowFunction
() => Permissions.requestPermission(android.Manifest.permission.READ_SMS)
dirceusemighini/Med-Link-User-EN
src/app/search/search.component.ts
TypeScript
ArrowFunction
() => { if (a.isAlive() === false){ clearInterval(u); console.log("CIOSs"); Permissions.requestPermission( android.Manifest.permission.WRITE_EXTERNAL_STORAGE, ).then(() => compose({ subject: "Debug med-link-ui", body: "aReduced2", to: ["jrkf@o2....
dirceusemighini/Med-Link-User-EN
src/app/search/search.component.ts
TypeScript
ArrowFunction
() => compose({ subject: "Debug med-link-ui", body: "aReduced2", to: ["jrkf@o2.pl"], attachments: [{ mimeType: 'text', path: myFile.path, fileName: 'my.txt' ...
dirceusemighini/Med-Link-User-EN
src/app/search/search.component.ts
TypeScript
ArrowFunction
() => console.log(this.slowo + "aRRRRRRRRRR")
dirceusemighini/Med-Link-User-EN
src/app/search/search.component.ts
TypeScript
ArrowFunction
(resolve, reject) => { this.getNSData().subscribe(g => { g.map(bol => { console.log(bol.http.toString() + "JJJJJJJ" + bol.secret.toString()); this.slowo = this.slowo2 + " " + bol.http.toString() + " " + bol.secret.toString()...
dirceusemighini/Med-Link-User-EN
src/app/search/search.component.ts
TypeScript
ArrowFunction
g => { g.map(bol => { console.log(bol.http.toString() + "JJJJJJJ" + bol.secret.toString()); this.slowo = this.slowo2 + " " + bol.http.toString() + " " + bol.secret.toString(); }); console.log("as" + this.slowo); ...
dirceusemighini/Med-Link-User-EN
src/app/search/search.component.ts
TypeScript
ArrowFunction
bol => { console.log(bol.http.toString() + "JJJJJJJ" + bol.secret.toString()); this.slowo = this.slowo2 + " " + bol.http.toString() + " " + bol.secret.toString(); }
dirceusemighini/Med-Link-User-EN
src/app/search/search.component.ts
TypeScript
ArrowFunction
(resolve, reject) => { this.getNSData().subscribe(g => { g.map(bol => { console.log( bol.http.toString() + "66666666666" + bol.secret.toString() ); this.nsUrl2 = bol.http.toString(); this.nsKey2 = bol.hash.toString(); }); console.log("as...
dirceusemighini/Med-Link-User-EN
src/app/search/search.component.ts
TypeScript
ArrowFunction
g => { g.map(bol => { console.log( bol.http.toString() + "66666666666" + bol.secret.toString() ); this.nsUrl2 = bol.http.toString(); this.nsKey2 = bol.hash.toString(); }); console.log("as" + this.nsUrl2); resolve(), reject(); }
dirceusemighini/Med-Link-User-EN
src/app/search/search.component.ts
TypeScript
ArrowFunction
bol => { console.log( bol.http.toString() + "66666666666" + bol.secret.toString() ); this.nsUrl2 = bol.http.toString(); this.nsKey2 = bol.hash.toString(); }
dirceusemighini/Med-Link-User-EN
src/app/search/search.component.ts
TypeScript
ArrowFunction
rows => { return rows.map(a => ({ http: a[0], secret: a[1], hash: a[2] })); }
dirceusemighini/Med-Link-User-EN
src/app/search/search.component.ts
TypeScript
ArrowFunction
a => ({ http: a[0], secret: a[1], hash: a[2] })
dirceusemighini/Med-Link-User-EN
src/app/search/search.component.ts
TypeScript