repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
BirMa/components | projects/components/utils/public_api.ts | <reponame>BirMa/components<gh_stars>0
export { objectToKeyValueArray } from './src/object';
export { isInViewport } from './src/dom';
export { replaceAll } from './src/string';
export { AutoFormArray } from './src/auto-form-array';
|
BirMa/components | projects/components/select/src/defaults/default-select-service.spec.ts | <reponame>BirMa/components
import { fakeAsync } from '@angular/core/testing';
import { Observable, of } from 'rxjs';
import { PsSelectItem } from '../models';
import { PsSelectDataSource } from '../select-data-source';
import { PsSelectLoadTrigger } from './default-select-data-source';
import { DefaultPsSelectService }... |
BirMa/components | projects/components/dialog-wrapper/src/dialog-wrapper.component.spec.ts | import { OverlayContainer } from '@angular/cdk/overlay';
import { HarnessLoader } from '@angular/cdk/testing';
import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
... |
BirMa/components | projects/components/select/src/testing/select.harness.ts | /* eslint-disable @typescript-eslint/member-ordering */
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
import { MatCheckboxHarness } from '@angular/material/checkbox/testing';
import { MatOptionHarness, OptionHarnessFilters } from '@angular/material/core/testing';
import ... |
BirMa/components | projects/components/number-input/src/number-input.component.ts | /* eslint-disable @angular-eslint/no-conflicting-lifecycle */
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { coerceBooleanProperty } from '@angular/cdk/coer... |
BirMa/components | projects/components/utils/src/auto-form-array.ts | import { AbstractControl, AbstractControlOptions, AsyncValidatorFn, FormArray, ValidatorFn } from '@angular/forms';
export class AutoFormArray extends FormArray {
/**
* Creates a new `FormArray` instance.
*
* @param controlGenerator A function that generates the control for en entry.
*
* @param valida... |
BirMa/components | projects/prosoft-components-demo/src/app/form-demo/form-data-source-demo.component.ts | <gh_stars>0
import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';
import { AbstractControl, FormControl, FormGroup } from '@angular/forms';
import { IPsButton, IPsException } from '@prosoft/components/core';
import { IPsFormDataSource, IPsFormDataSourceConnectOptions } from '@prosoft/co... |
BirMa/components | projects/components/table/src/models.ts | <reponame>BirMa/components<gh_stars>0
export interface IPsTableSortDefinition {
prop: string;
displayName: string;
}
export interface IPsTableUpdateDataInfo {
currentPage: number | null;
pageSize: number | null;
searchText: string | null;
sortDirection: 'asc' | 'desc' | null;
sortColumn: string | null;
}... |
BirMa/components | projects/components/select/src/select.component.spec.ts | <gh_stars>0
import { HarnessLoader } from '@angular/cdk/testing';
import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Injectable, OnDestroy, QueryList, Type, ViewChild } from '@angular/core';
import { ComponentFixture, fakeAsync, Test... |
BirMa/components | projects/prosoft-components-demo/src/app/number-input-demo/number-input-demo.component.ts | import { ChangeDetectionStrategy, ChangeDetectorRef, Component } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { ErrorStateMatcher } from '@angular/material/core';
@Component({
selector: 'app-number-input-demo',
template: `
<mat-card>
<h1>ps-slider</h1>... |
BirMa/components | projects/prosoft-components-demo/src/app/select-demo/demos/select-with-custom-template.component.ts | import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';
@Component({
selector: 'app-select-with-custom-template',
template: `
<h2>Custom options template</h2>
<mat-form-field>
<mat-label>select</mat-label>
<ps-select [(ngModel)]="ngModelValue" [dataSource]="items"... |
BirMa/components | projects/components/table/src/subcomponents/table-settings.component.ts | import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output, TemplateRef } from '@angular/core';
import { MatCheckboxChange } from '@angular/material/checkbox';
import { IPsTableIntlTexts } from '@prosoft/components/core';
import { Observable, Subscription } from 'rxjs';
import { first, map } from ... |
BirMa/components | projects/components/header/public_api.ts | <reponame>BirMa/components
export { PsHeaderComponent } from './src/header.component';
export {
PsHeaderCaptionSectionDirective,
PsHeaderDescriptionSectionDirective,
PsHeaderTopButtonSectionDirective,
} from './src/header.directives';
export { PsHeaderModule } from './src/header.module';
|
BirMa/components | projects/components/savebar/src/savebar.component.ts | import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ContentChild,
EventEmitter,
Input,
NgZone,
OnChanges,
OnDestroy,
OnInit,
Output,
Renderer2,
SimpleChanges,
TemplateRef,
ViewEncapsulation,
} from '@angular/core';
import { IPsSavebarIntlTexts, PsIntlService } from '@prosoft/co... |
BirMa/components | projects/components/table/src/data/table-data-source.spec.ts | <gh_stars>0
/* eslint-disable @typescript-eslint/naming-convention */
import { fakeAsync, tick } from '@angular/core/testing';
import { NEVER, of, Subject, throwError } from 'rxjs';
import { delay, map } from 'rxjs/operators';
import { PsTableDataSource, PsTableDataSourceOptions } from '../data/table-data-source';
imp... |
BirMa/components | projects/components/table/src/subcomponents/table-header.component.spec.ts | import { CommonModule } from '@angular/common';
import { ChangeDetectionStrategy, Component, TemplateRef, ViewChild } from '@angular/core';
import { TestBed, waitForAsync } from '@angular/core/testing';
import { MatButtonModule } from '@angular/material/button';
import { MatFormFieldModule } from '@angular/material/for... |
BirMa/components | projects/components/form-field/src/form-field.component.ts | import type { QueryList } from '@angular/core';
import {
AfterContentInit,
ChangeDetectionStrategy,
Component,
ContentChild,
ContentChildren,
ElementRef,
HostBinding,
Inject,
InjectionToken,
Input,
OnChanges,
OnDestroy,
Optional,
SimpleChanges,
ViewChild,
ViewEncapsulation,
} from '@angu... |
BirMa/components | projects/components/flip-container/src/flip-container.component.spec.ts | import { CommonModule } from '@angular/common';
import { ChangeDetectionStrategy, Component, ViewChild } from '@angular/core';
import { fakeAsync, TestBed, tick, waitForAsync } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { NoopAnimationsModule } from '@angular/platform-browser/a... |
BirMa/components | projects/prosoft-components-demo/src/app/select-demo/demos/select-with-custom-select-service.component.ts | import { ChangeDetectionStrategy, Component, Injectable } from '@angular/core';
import { AbstractControl, FormControl, FormGroup } from '@angular/forms';
import { DefaultPsSelectService, PsSelectData, PsSelectDataSource, PsSelectLoadTrigger, PsSelectService } from '@prosoft/components/select';
import { Observable, of }... |
BirMa/components | projects/components/card/src/testing/card.harness.ts | <reponame>BirMa/components<filename>projects/components/card/src/testing/card.harness.ts
import { BaseHarnessFilters, ContentContainerComponentHarness, HarnessPredicate, TestElement } from '@angular/cdk/testing';
import { PsHeaderHarness } from '@prosoft/components/header/src/testing/header.harness';
export interface ... |
BirMa/components | projects/components/table/src/directives/table.directives.ts | import { ContentChild, Directive, ElementRef, Input, TemplateRef } from '@angular/core';
@Directive({ selector: '[psTableColumnTemplate]' })
export class PsTableColumnTemplateDirective {
constructor(public templateRef: TemplateRef<any>) {}
}
@Directive({ selector: '[psTableColumnHeaderTemplate]' })
export class PsT... |
BirMa/components | projects/prosoft-components-demo/src/app/select-demo/demos/select-with-other-load-trigger.component.ts | <filename>projects/prosoft-components-demo/src/app/select-demo/demos/select-with-other-load-trigger.component.ts
import { ChangeDetectionStrategy, ChangeDetectorRef, Component } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
import { DefaultPsSelectDataSource, PsSelectDataSource, PsSelec... |
BirMa/components | projects/components/select/src/select.component.ts | import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ContentChild,
DoCheck,
ElementRef,
EventEmitter,
HostBinding,
Input,
OnDestroy,
OnInit,
Optional,
Output,
Self,
TemplateRef,
ViewChild,
ViewEncapsulation,
} from '@angular/core';
import { ControlValueAccessor, FormControl,... |
BirMa/components | projects/components/schematics/ps-select-load-trigger-and-sort-by-rename/index_spec.ts | import { Tree, FileEntry } from '@angular-devkit/schematics';
import { SchematicTestRunner } from '@angular-devkit/schematics/testing';
const tsContent = `
import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';
import { PsSelectLoadTrigger, PsSelectSortBy } from '@prosoft/components... |
BirMa/components | projects/components/utils/src/auto-form-array.spec.ts | <reponame>BirMa/components
import { FormControl, Validators } from '@angular/forms';
import { of } from 'rxjs';
import { AutoFormArray } from './auto-form-array';
describe('AutoFormArray', () => {
it('should initialize FormArray when constructed', () => {
const asyncValidator = () => of(null);
const array = ... |
BirMa/components | projects/components/form/src/form.component.spec.ts | import { CommonModule } from '@angular/common';
import { ChangeDetectionStrategy, Component, DebugElement, Injectable, ViewChild } from '@angular/core';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { FormGroup } from '@angular/forms';
import { MatIcon } from '@angular/material... |
BirMa/components | projects/prosoft-components-demo/src/app/select-demo/select-demo.component.ts | <gh_stars>0
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit, ViewEncapsulation } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
import { DefaultPsSelectDataSource, PsSelectLoadTrigger, PsSelectSortBy } from '@prosoft/components/select';
import { NEVER, of, throwErr... |
BirMa/components | projects/components/table/src/subcomponents/table-actions.component.ts | import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnChanges, Output, SimpleChanges, ViewChild } from '@angular/core';
import { MatMenu } from '@angular/material/menu';
import { IPsTableIntlTexts } from '@prosoft/components/core';
import { IPsTableAction } from '../models';
@Component({
selector: 'ps... |
BirMa/components | projects/components/table/src/helper/table.helper.ts | <filename>projects/components/table/src/helper/table.helper.ts<gh_stars>0
import { coerceNumberProperty } from '@angular/cdk/coercion';
import { IPsTableUpdateDataInfo } from '../models';
export function asQueryParams(settings: IPsTableUpdateDataInfo): string {
return [settings.pageSize, settings.currentPage, settin... |
BirMa/components | projects/prosoft-components-demo/src/app/table-demo/table-demo.module.ts | <filename>projects/prosoft-components-demo/src/app/table-demo/table-demo.module.ts
import { CommonModule } from '@angular/common';
import { NgModule, Injectable } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MatCardModule } from '@angular/material/card';
import { MatCheckboxModule } from... |
BirMa/components | projects/components/card/src/card.component.spec.ts | import { HarnessLoader } from '@angular/cdk/testing';
import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
import { ChangeDetectionStrategy, Component, ViewChild } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MatButtonModule } from '@angular/mate... |
BirMa/components | projects/components/dialog-wrapper/src/dialog-wrapper.component.ts | import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnDestroy, ViewEncapsulation } from '@angular/core';
import { IPsButton, IPsException } from '@prosoft/components/core';
import { Subject, Subscription } from 'rxjs';
import { IPsDialogWrapperDataSource } from './dialog-wrapper.models';
@Component(... |
MusicalPatterns/pattern-playroomTest | src/material/constants.ts | <gh_stars>0
// tslint:disable no-magic-numbers
import { as, Pitch, Scalar, Value } from '@musical-patterns/utilities'
const PLAYROOM_TEST_NOTE_VALUE_SCALAR: Scalar<Value> = as.Scalar<Value>(15)
const PLAYROOM_TEST_NOTE_PITCH_SCALAR: Scalar<Pitch> = as.Scalar<Pitch>(0.5)
export {
PLAYROOM_TEST_NOTE_VALUE_SCALAR,
... |
MusicalPatterns/pattern-playroomTest | src/patterns.ts | <reponame>MusicalPatterns/pattern-playroomTest
// tslint:disable max-file-line-count
import { Id } from '@musical-patterns/id'
import { Pattern, Patterns } from '@musical-patterns/pattern'
import { finiteMaterial, material, repetendMaterial } from './material'
import * as metadata from './metadata'
import * as specs f... |
MusicalPatterns/pattern-playroomTest | src/spec/index.ts | export {
spec,
specDifferent,
specOnlyStandardInitial,
specOnlyPatternParticularInitial,
specValidation,
specPresets,
specLongDuration,
specRestart,
} from './specs'
export {
PlayroomTestSpecs,
} from './types'
|
MusicalPatterns/pattern-playroomTest | src/spec/constants.ts | <reponame>MusicalPatterns/pattern-playroomTest
// tslint:disable no-magic-numbers
import {
as,
Duration,
musicalAs,
round,
ScientificPitchNoteName,
ScientificPitchOctaveNumber,
SCIENTIFIC_PITCHES,
Tone,
Translation,
} from '@musical-patterns/utilities'
const PLAYROOM_TEST_INITIAL_M... |
MusicalPatterns/pattern-playroomTest | src/material/index.ts | export { material, repetendMaterial, finiteMaterial } from './materials'
|
MusicalPatterns/pattern-playroomTest | src/spec/constraints.ts | import { OptionedConstraint, RangedConstraint, StandardSpec, StringedConstraint } from '@musical-patterns/spec'
import { as, ObjectOf } from '@musical-patterns/utilities'
import { PLAYROOM_TEST_MAX_MS_PHYSICALIZATION, PLAYROOM_TEST_MIN_MS_PHYSICALIZATION } from '../constants'
import { OptionedSpecOneOption, OptionedSpe... |
MusicalPatterns/pattern-playroomTest | src/metadata/metadatas.ts | <filename>src/metadata/metadatas.ts
// tslint:disable max-file-line-count
import { Metadata } from '@musical-patterns/metadata'
import { nonPost, post } from './posts'
const baseMetadata: Metadata = {
mostRecentPublish: process.env.PUBLISH_DATE || '2018-12-19T07:00:00.000Z',
musicalIdeaIllustrated: '',
or... |
MusicalPatterns/pattern-playroomTest | src/constants.ts | // tslint:disable no-magic-numbers
import { Duration, musicalAs } from '@musical-patterns/utilities'
const PLAYROOM_TEST_MAX_MS_PHYSICALIZATION: Duration = musicalAs.Duration(1003)
const PLAYROOM_TEST_MIN_MS_PHYSICALIZATION: Duration = musicalAs.Duration(9)
export {
PLAYROOM_TEST_MAX_MS_PHYSICALIZATION,
PLAY... |
MusicalPatterns/pattern-playroomTest | src/spec/configurations.ts | <reponame>MusicalPatterns/pattern-playroomTest<filename>src/spec/configurations.ts
import { InputType, RangedInputType, standardConfigurations, StandardSpec } from '@musical-patterns/spec'
import { optionedConstraints, rangedConstraints, stringedConstraints } from './constraints'
import { PlayroomTestConfigurations, Pl... |
MusicalPatterns/pattern-playroomTest | src/spec/specs.ts | import { Spec } from '@musical-patterns/spec'
import { configurations, differentConfigurations } from './configurations'
import {
differentInitial,
initials,
longDurationInitial,
onlyPatternParticularInitial,
onlyStandardInitial,
} from './initials'
import { presets } from './presets'
import { Playr... |
MusicalPatterns/pattern-playroomTest | src/spec/types.ts | import {
Configurations,
OptionedConfiguration,
RangedConfiguration,
Specs,
StandardSpec,
StringedConfiguration,
ToggledConfiguration,
} from '@musical-patterns/spec'
enum OptionedSpecOneOption {
OPTION_ONE = 'OPTION_ONE',
OPTION_TWO = 'OPTION_TWO',
OPTION_THREE = 'OPTION_THREE'... |
MusicalPatterns/pattern-playroomTest | src/material/notes.ts | <filename>src/material/notes.ts<gh_stars>0
import { Note } from '@musical-patterns/material'
import { Thunk } from '@musical-patterns/utilities'
import { PLAYROOM_TEST_NOTE_PITCH_SCALAR, PLAYROOM_TEST_NOTE_VALUE_SCALAR } from './constants'
const thunkNotes: Thunk<Note[]> =
(): Note[] => [ {
pitch: { scalar... |
MusicalPatterns/pattern-playroomTest | src/spec/validations.ts | import { ComputeValidations, StandardSpec, Validations } from '@musical-patterns/spec'
import { as, computeLength, Duration, isEven, musicalAs, Tone } from '@musical-patterns/utilities'
import { PlayroomTestSpecs } from './types'
const computeValidations: ComputeValidations<PlayroomTestSpecs> =
(specs: PlayroomTes... |
MusicalPatterns/pattern-playroomTest | src/spec/presets.ts | <reponame>MusicalPatterns/pattern-playroomTest
import { Preset } from '@musical-patterns/spec'
import { ObjectOf } from '@musical-patterns/utilities'
import {
PLAYROOM_TEST_INITIAL_ARRAYED_SPEC,
PLAYROOM_TEST_INITIAL_ARRAYED_SPEC_WITH_INITIAL_ELEMENT_VALUE,
} from './constants'
import { initials } from './initi... |
MusicalPatterns/pattern-playroomTest | src/material/entities.ts | <reponame>MusicalPatterns/pattern-playroomTest<filename>src/material/entities.ts
import { Entity, MaterializeEntities } from '@musical-patterns/material'
import { as } from '@musical-patterns/utilities'
import { thunkNotes } from './notes'
const materializeEntitiesUsingCrazyStrategyCircumventingScales: MaterializeEnti... |
MusicalPatterns/pattern-playroomTest | src/metadata/posts.ts | // tslint:disable
import { Maybe } from '@musical-patterns/utilities'
const env: Maybe<string> = process.env.NODE_ENV
const post: string = env !== 'test' && env != 'material' ? require('./post.html') : ''
const nonPost: string = env === 'development' || env === 'production' ? require('./nonPost.html') : ''
export {... |
MusicalPatterns/pattern-playroomTest | src/metadata/index.ts | export {
playroomTestSpecControlsMetadata,
playroomTestPostMetadata,
playroomTestTimeControlsMetadata,
playroomTestOnlyPatternParticularSpecsMetadata,
playroomTestOnlyStandardSpecsMetadata,
playroomTestValidationMetadata,
playroomTestPresetsMetadata,
playroomTestLongDurationMetadata,
... |
MusicalPatterns/pattern-playroomTest | src/material/materials.ts | import { Material, materializeStandardScales } from '@musical-patterns/material'
import {
materializeEntitiesUsingCrazyStrategyCircumventingScales,
materializeFiniteEntitiesUsingCrazyStrategyCircumventingScales,
materializeRepetendEntitiesUsingCrazyStrategyCircumventingScales,
} from './entities'
const mat... |
MusicalPatterns/pattern-playroomTest | src/spec/initials.ts | import { Specs, StandardSpec } from '@musical-patterns/spec'
import { Duration, insteadOf, Tone, Translation, use } from '@musical-patterns/utilities'
import {
DIFFERENT,
PLAYROOM_TEST_INITIAL_ARRAYED_SPEC,
PLAYROOM_TEST_INITIAL_ARRAYED_SPEC_WITH_INITIAL_ELEMENT_VALUE,
PLAYROOM_TEST_INITIAL_HZ_PHYSICALI... |
gabefgonc/san-francisco-rice-dotfiles | dot_vim/plugged/yats.vim/test/test.tsx | var fragment = <div sdss="123" ></div>
var b = <Div sss="123"></Div>
var a = 123
var a= <Option key={item}></Option>;
var a= <Option key={item}
value="test"
>
</Option>;
var a = <React.Fragment>
{
this.state.thing
? <p>Hello <strong data-role={`${this.props.prefix}-name`}>world</str... |
gabefgonc/san-francisco-rice-dotfiles | dot_vim/plugged/yats.vim/test/test.ts | var a = (): string => 123
var p: Promise<void>
var a = { template: /*eee*/ this.template
}
type A = [
/*test*/ string,
/*test*/ string,
]
var b: unique symbol = 123
var c: readonly t.MyClass<T>[] = 333
c?.test
const COMPILER_PROVIDERS: Array<any[]> = null
var a = {
get method<T>(a) {
},
}
var a = [/... |
MateusGX/react-js-cron-mui | src/locale.ts | <reponame>MateusGX/react-js-cron-mui
import { DefaultLocale } from './types'
export const DEFAULT_LOCALE_EN: DefaultLocale = {
everyText: 'todo',
emptyMonths: 'todo mês',
emptyMonthDays: 'todos os dias do mês',
emptyMonthDaysShort: 'dia do mês',
emptyWeekDays: 'todos os dias da semana',
emptyWeekDaysShort:... |
MateusGX/react-js-cron-mui | src/Cron.tsx | <reponame>MateusGX/react-js-cron-mui<gh_stars>0
import React, { useState, useCallback, useEffect, useRef, useMemo } from 'react'
import { Button } from '@material-ui/core'
import { CronProps, PeriodType } from './types'
import Period from './fields/Period'
import MonthDays from './fields/MonthDays'
import Months from '... |
MateusGX/react-js-cron-mui | src/components/CustomSelect.tsx | import React, { useMemo, useCallback } from 'react'
import { Select, MenuItem } from '@material-ui/core'
import { CustomSelectProps } from '../types'
import { DEFAULT_LOCALE_EN } from '../locale'
import { classNames, sort } from '../utils'
import { parsePartArray, partToString, formatValue } from '../converter'
expor... |
MateusGX/react-js-cron-mui | src/stories/index.stories.tsx | import React, { useState, useCallback, useEffect, useRef, useMemo } from 'react'
import {
TextField,
Table,
Radio,
Switch,
Button,
FormControlLabel,
RadioGroup,
FormGroup,
Input,
TableHead,
TableRow,
TableCell,
TableBody,
Typography,
TextFieldProps
} from '@material-ui/core'
import InfoIco... |
MateusGX/react-js-cron-mui | src/converter.ts | <reponame>MateusGX/react-js-cron-mui<filename>src/converter.ts
import { MutableRefObject } from 'react'
import { UNITS, SUPPORTED_SHORTCUTS } from './constants'
import { range, sort, dedup, setError } from './utils'
import {
Unit,
PeriodType,
LeadingZero,
ClockFormat,
SetInternalError,
OnError,
AllowEmpt... |
ColiseumSoft786/hemmam-ionic | src/pages/home/home.ts | import { Component } from '@angular/core';
import {LoadingController, NavController , ToastController} from 'ionic-angular';
import { DashboardPage } from '../dashboard/dashboard';
import { MenuController } from 'ionic-angular';
import 'rxjs/add/operator/map';
import {Http} from "@angular/http";
import {error} from "@a... |
ColiseumSoft786/hemmam-ionic | src/pages/certificate/certificate.ts | import { Component, Input, ViewChild } from '@angular/core';
import { IonicPage, Content } from 'ionic-angular';
import {LoadingController , ToastController} from 'ionic-angular';
import 'rxjs/add/operator/map';
import {Http} from "@angular/http";
import { MenuController } from 'ionic-angular';
import { DashboardPage }... |
ColiseumSoft786/hemmam-ionic | src/pages/challenge/challenge.module.ts | import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { ChallengePage } from './challenge';
import {Http, HttpModule} from "@angular/http";
@NgModule({
declarations: [
ChallengePage,
],
imports: [
HttpModule,
IonicPageModule.forChild(ChallengePage),
],
})... |
ColiseumSoft786/hemmam-ionic | src/pages/history/history.ts | <reponame>ColiseumSoft786/hemmam-ionic
import { Component, Input, ViewChild, OnChanges } from '@angular/core';
import { IonicPage,NavController , Content } from 'ionic-angular';
import {LoadingController , ToastController} from 'ionic-angular';
import 'rxjs/add/operator/map';
import {Http} from "@angular/http";
import ... |
ColiseumSoft786/hemmam-ionic | src/pages/sponsor/sponsor.ts | import { Component, Input, ViewChild } from '@angular/core';
import { IonicPage, Content } from 'ionic-angular';
/**
* Generated class for the SponsorPage page.
*
* See https://ionicframework.com/docs/components/#navigation for more info on
* Ionic pages and navigation.
*/
@IonicPage()
@Component({
selector: '... |
ColiseumSoft786/hemmam-ionic | src/pages/dashboard/dashboard.ts | import {Component, ViewChild} from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { HistoryPage } from '../history/history';
import { SponsorPage } from '../sponsor/sponsor';
import { FounderPage } from '../founder/founder';
import { LibraryPage } from '../library/library';... |
ColiseumSoft786/hemmam-ionic | src/app/app.module.ts | import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { ListPage ... |
ColiseumSoft786/hemmam-ionic | src/app/app.component.ts | import { Component, ViewChild } from '@angular/core';
import { Nav, Platform } from 'ionic-angular';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { ListPage } from '../pages/list/list';
import { DashboardPage } from '../pages/dashboard/dashboa... |
ColiseumSoft786/hemmam-ionic | src/pages/sponsor/sponsor.module.ts | import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { SponsorPage } from './sponsor';
@NgModule({
declarations: [
SponsorPage,
],
imports: [
IonicPageModule.forChild(SponsorPage),
],
})
export class SponsorPageModule {}
|
ColiseumSoft786/hemmam-ionic | src/pages/founder/founder.module.ts | <gh_stars>0
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { FounderPage } from './founder';
@NgModule({
declarations: [
FounderPage,
],
imports: [
IonicPageModule.forChild(FounderPage),
],
})
export class FounderPageModule {}
|
ColiseumSoft786/hemmam-ionic | src/pages/partner/partner.ts | <reponame>ColiseumSoft786/hemmam-ionic
import { Component, Input, ViewChild } from '@angular/core';
import { IonicPage, Content } from 'ionic-angular';
/**
* Generated class for the PartnerPage page.
*
* See https://ionicframework.com/docs/components/#navigation for more info on
* Ionic pages and navigation.
*/
... |
ColiseumSoft786/hemmam-ionic | src/providers/file-chooser-android/file-chooser-android.ts | import {Injectable} from '@angular/core';
import {File, FileEntry, IFile} from "@ionic-native/file";
import {Base64} from "@ionic-native/base64";
import {FilePath} from "@ionic-native/file-path";
import {FileChooser} from "@ionic-native/file-chooser";
/*
Generated class for the FileChooserAndroidProvider provider.
... |
ColiseumSoft786/hemmam-ionic | src/pages/certificate/certificate.module.ts | <filename>src/pages/certificate/certificate.module.ts
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { CertificatePage } from './certificate';
@NgModule({
declarations: [
CertificatePage,
],
imports: [
IonicPageModule.forChild(CertificatePage),
],
})
e... |
ColiseumSoft786/hemmam-ionic | src/pages/founder/founder.ts | import { Component, ViewChild } from '@angular/core';
import { IonicPage, Content, ActionSheetController } from 'ionic-angular';
/**
* Generated class for the FounderPage page.
*
* See https://ionicframework.com/docs/components/#navigation for more info on
* Ionic pages and navigation.
*/
@IonicPage()
@Component... |
ColiseumSoft786/hemmam-ionic | src/pages/challenge/challenge.ts |
import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams, Platform} from 'ionic-angular';
import {LoadingController , ToastController} from 'ionic-angular';
import 'rxjs/add/operator/map';
import {Http, RequestOptions} from "@angular/http";
import { MenuController } from 'ionic-angular';
im... |
Adatta1276/react-p5-wrapper | tests/__fixtures__/sketch.ts | <gh_stars>0
import p5 from "p5";
export function sketch(p5: p5) {
p5.setup = () => p5.createCanvas(720, 400);
p5.draw = () => {
p5.background(127);
p5.noStroke();
for (let i = 0; i < p5.height; i += 20) {
p5.fill(129, 206, 15);
p5.rect(0, i, p5.width, 10);
p5.fill(255);
p5.rec... |
Adatta1276/react-p5-wrapper | tests/index.test.tsx | <reponame>Adatta1276/react-p5-wrapper
import React from "react";
import { render } from "@testing-library/react";
import P5Wrapper from "../src/index";
import { sketch } from "./__fixtures__/sketch";
describe("P5Wrapper", () => {
it("renders the component", () => {
const { container: wrapper, asFragment } = rend... |
highfi13g/docs | components/sublanding/ArticleCard.tsx | <filename>components/sublanding/ArticleCard.tsx
import { ArticleGuide } from 'components/context/ProductSubLandingContext'
import { Label } from '@primer/components'
type Props = {
card: ArticleGuide
typeLabel: string
}
export const ArticleCard = ({ card, typeLabel }: Props) => {
return (
<div data-testid="... |
nick-laqua-dragon/backstage | packages/core-components/src/layout/Sidebar/index.ts | /*
* Copyright 2020 The Backstage Authors
*
* 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 ... |
nick-laqua-dragon/backstage | plugins/permission-react/src/components/PermissionedRoute.tsx | <gh_stars>0
/*
* Copyright 2021 The Backstage Authors
*
* 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 applic... |
nick-laqua-dragon/backstage | plugins/permission-node/src/integration/createPermissionIntegrationRouter.ts | /*
* Copyright 2021 The Backstage Authors
*
* 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 ... |
nick-laqua-dragon/backstage | plugins/analytics-module-ga/src/apis/implementations/AnalyticsApi/GoogleAnalytics.ts | <reponame>nick-laqua-dragon/backstage
/*
* Copyright 2021 The Backstage Authors
*
* 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
*
*... |
Neurone/ethers.js | src.ts/_version.ts | export const version = "4.0.47";
|
valentynpatsera/metacomponents | types/index.d.ts | <filename>types/index.d.ts<gh_stars>0
interface Metacomponent {
tag: string;
meta?: ImportMeta;
text?: string;
styles?: Styles;
props?: Partial<HTMLInputElement>;
attrs?: Attrs;
state?: any;
methods?: Methods;
events?: Events;
channels?: Channels;
hooks?: Hooks;
children?: Array<Metacomponent | ... |
uzelac92/jsPDF-AutoTable | test/testWidthCalculator.ts | const assert = require('assert')
import { resizeColumns } from '../src/widthCalculator'
import { Column } from '../src/models'
describe('calculator', () => {
describe('columns resizer', () => {
it('shrink: one column - no min', () => {
const col1 = new Column('col1', null, 0)
col1.width = 700
c... |
uzelac92/jsPDF-AutoTable | src/tableCalculator.ts | import { DocHandler, jsPDFDocument } from './documentHandler'
import { Cell, Column, Row, Section, StylesProps, Table } from './models'
import { calculateWidths } from './widthCalculator'
import {
CellInput,
ColumnInput,
defaultStyles,
getTheme,
RowInput,
Styles,
ThemeName,
} from './config'
import { assi... |
uzelac92/jsPDF-AutoTable | src/HookData.ts | <gh_stars>1000+
import { DocHandler, jsPDFDocument } from './documentHandler'
import { Table, Cell, Row, Column, Settings, Pos } from './models'
export class HookData {
table: Table
pageNumber: number
pageCount: number // Deprecated, use pageNumber instead
settings: Settings
doc: jsPDFDocument
cursor: Pos ... |
uzelac92/jsPDF-AutoTable | test/testHtmlParser.ts | <reponame>uzelac92/jsPDF-AutoTable
import { parseHtml } from '../src/htmlParser'
import { DocHandler } from '../src/documentHandler'
import { loadJspdf } from './common'
const assert = require('assert')
const jsdom = require('jsdom')
const dom = new jsdom.JSDOM('')
const jsPDF = loadJspdf()
describe('html parser', () ... |
uzelac92/jsPDF-AutoTable | src/common.ts | <gh_stars>1000+
import { DocHandler } from './documentHandler'
import { Pos, Table } from './models'
import { Color, MarginPaddingInput, Styles } from './config'
type Text = string | string[]
export function getStringWidth(
text: Text,
styles: Partial<Styles>,
doc: DocHandler
) {
doc.applyStyles(styles, true)
... |
uzelac92/jsPDF-AutoTable | src/autoTableText.ts | <reponame>uzelac92/jsPDF-AutoTable<gh_stars>1000+
import { jsPDFDocument } from './documentHandler'
/**
* Improved text function with halign and valign support
* Inspiration from: http://stackoverflow.com/questions/28327510/align-text-right-using-jspdf/28433113#28433113
*/
export default function (
text: string |... |
uzelac92/jsPDF-AutoTable | src/polyfills.ts | <reponame>uzelac92/jsPDF-AutoTable
/* eslint-disable @typescript-eslint/no-unused-vars */
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
export function assign<T, U, V, W, X>(
target: T,
s: U,
s1?: V,
s2?: W,
s3?: X
): T & U & V & W & X {
if (target == nul... |
uzelac92/jsPDF-AutoTable | test/testEllipsize.ts | <reponame>uzelac92/jsPDF-AutoTable<gh_stars>1000+
const assert = require('assert')
import { ellipsize } from '../src/widthCalculator'
import { DocHandler } from '../src/documentHandler'
import { loadJspdf } from './common'
const jsPDF = loadJspdf()
describe('ellipsize', () => {
it('ellipsize string', () => {
con... |
uzelac92/jsPDF-AutoTable | src/inputValidator.ts | /* eslint-disable @typescript-eslint/no-explicit-any */
import { DocHandler } from './documentHandler'
import { HookData } from './HookData'
import { UserOptions } from './config'
export default function (
doc: DocHandler,
global: UserOptions,
document: UserOptions,
current: UserOptions
) {
for (const option... |
uzelac92/jsPDF-AutoTable | examples/typescript/index.ts | import jsPDF from 'jspdf'
import autoTable from 'jspdf-autotable'
const head = [['ID', 'Country', 'Index', 'Capital']]
const data = [
[1, 'Finland', 7.632, 'Helsinki'],
[2, 'Norway', 7.594, 'Oslo'],
[3, 'Denmark', 7.555, 'Copenhagen'],
[4, 'Iceland', 7.495, 'Reykjavík'],
[5, 'Switzerland', 7.487, 'Bern'],
... |
uzelac92/jsPDF-AutoTable | src/inputParser.ts | <reponame>uzelac92/jsPDF-AutoTable
import { UserOptions, ColumnInput, RowInput, CellInput } from './config'
import { parseHtml } from './htmlParser'
import { assign } from './polyfills'
import { parseSpacing } from './common'
import { DocHandler, jsPDFDocument } from './documentHandler'
import validateOptions from './i... |
uzelac92/jsPDF-AutoTable | test/testInputParser.ts | import { loadJspdf } from './common'
import { createTable } from '../src/tableCalculator'
import { parseInput } from '../src/inputParser'
const assert = require('assert')
const jsPDF = loadJspdf()
describe('input parser', () => {
it('non browser', () => {
const d = new jsPDF()
const input = parseInput(d, { ... |
uzelac92/jsPDF-AutoTable | test/testRunning.ts | import { loadJspdf } from './common'
const jsPDF = loadJspdf()
import autoTable, { autoTable as autoTableType } from '../src/main'
const assert = require('assert')
describe('runner', () => {
it('prototype', () => {
const doc = new jsPDF()
doc.autoTable({ body: [['cell']] })
assert(true)
})
it('expor... |
beenotung/stencil-virtual-scroll | src/components/virtual-scroll-list/virtual-scroll-list.tsx | import { Watch, Element, State, Prop, Component, h } from '@stencil/core';
import { VNode, ChildType } from '@stencil/core/internal/index';
/**
* the parent should the style of this component, including
* - width
* - height
* - display
* */
@Component({
tag: 'virtual-scroll-list',
styleUrl: 'virtual-scr... |
beenotung/stencil-virtual-scroll | src/components/virtual-scroll/virtual-scroll.tsx | <filename>src/components/virtual-scroll/virtual-scroll.tsx
import { Watch, Element, State, Prop, Component, h, VNode } from '@stencil/core';
import { ChildType } from '@stencil/core/internal';
/**
* the parent should the style of this component, including
* - width
* - height
* - display
* */
@Component({
... |
beenotung/stencil-virtual-scroll | src/components.d.ts | /* eslint-disable */
/* tslint:disable */
/**
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
import { ChildType } from "@stencil/core/internal";
i... |
beenotung/stencil-virtual-scroll | src/components/stencil-virtual-scroll-demo/stencil-virtual-scroll-demo.tsx | <gh_stars>1-10
import { Component, Host, h, State } from '@stencil/core';
@Component({
tag: 'stencil-virtual-scroll-demo',
styleUrl: 'stencil-virtual-scroll-demo.css',
shadow: true,
})
export class StencilVirtualScrollDemo {
@State()
mode = 'none';
renderItem(props: { name: string, desc: string }) {
... |
beenotung/stencil-virtual-scroll | src/components/virtual-scroll-list-demo/virtual-scroll-list-demo.tsx | <gh_stars>1-10
import { Component, h, Host } from '@stencil/core';
const N = 100;
const width = 450;
const height = 50;
const heights = Array(N).fill(height)
.map(height => Math.floor(height * (1 + Math.random() * 2)));
const colors = [
'red',
'orange',
'yellow',
'green',
'cyan',
'blue',
'purple',
];
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.