commit
stringlengths
40
40
old_file
stringlengths
4
150
new_file
stringlengths
4
150
old_contents
stringlengths
0
3.26k
new_contents
stringlengths
1
4.43k
subject
stringlengths
15
501
message
stringlengths
15
4.06k
lang
stringclasses
4 values
license
stringclasses
13 values
repos
stringlengths
5
91.5k
diff
stringlengths
0
4.35k
aa718271ac86d003fac422bf60174f88cdca9969
ui/src/app/statusbar.ts
ui/src/app/statusbar.ts
declare function require(name: string): string; import * as nprogress from "nprogress"; export class Statusbar { public static Start(): void { Statusbar.loadStylesheet(); nprogress.configure({ minimum: 0.3, showSpinner: false, trickleSpeed: 200 }); ...
declare function require(name: string): string; import * as nprogress from "nprogress"; interface IWindow extends Window { Statusbar: Statusbar; } export class Statusbar { public static Start(): void { Statusbar.Instance.Start(); } public static Inc(): void { Statusbar.Instance.Inc();...
Make sure that there will really only be one NProgress instance.
Make sure that there will really only be one NProgress instance.
TypeScript
mit
jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr
--- +++ @@ -1,9 +1,31 @@ declare function require(name: string): string; import * as nprogress from "nprogress"; +interface IWindow extends Window { + Statusbar: Statusbar; +} + export class Statusbar { public static Start(): void { - Statusbar.loadStylesheet(); + Statusbar.Instance.Start()...
8e4f2a99a32dfc362b27c883890f64e406ba5aae
test/e2e/helloworld.ts
test/e2e/helloworld.ts
import t = require("unittest/unittest"); function main(): void { t.test("bigifies text", function() { t.expect("hello".toUpperCase(), t.equals("HELLO")); }); }
import t = require("unittest/unittest"); class MyClass { field: string; MyClass(someVal: string) { this.field = someVal; } getField(): string { return this.field + " world"; } } function main(): void { t.test("bigifies text", function() { t.expect("hello".toUpperCase(), t.equals("HELLO")); }); t.test("han...
Add an end2end test using a class.
Add an end2end test using a class.
TypeScript
apache-2.0
yjbanov/ts2dart,alfonso-presa/ts2dart,vsavkin/ts2dart,jeffbcross/ts2dart,alfonso-presa/ts2dart,dart-archive/ts2dart,jacob314/ts2dart,hterkelsen/ts2dart,dart-archive/ts2dart,dart-archive/ts2dart,jeffbcross/ts2dart,vsavkin/ts2dart,vicb/ts2dart,caitp/ts2dart,yjbanov/ts2dart,caitp/ts2dart,hansl/ts2dart,hansl/ts2dart,jtepli...
--- +++ @@ -1,5 +1,17 @@ import t = require("unittest/unittest"); + +class MyClass { + field: string; + + MyClass(someVal: string) { this.field = someVal; } + + getField(): string { return this.field + " world"; } +} function main(): void { t.test("bigifies text", function() { t.expect("hello".toUpperCase()...
4611d9c79704cac18108996c85c9a88d38c122c3
packages/db/src/db.ts
packages/db/src/db.ts
import { logger } from "@truffle/db/logger"; const debug = logger("db:db"); import gql from "graphql-tag"; import { DocumentNode, ExecutionResult, execute } from "graphql"; import type TruffleConfig from "@truffle/config"; import { Db } from "./meta"; export { Db }; // rather than force src/index from touching meta ...
import { logger } from "@truffle/db/logger"; const debug = logger("db:db"); import gql from "graphql-tag"; import { print } from "graphql/language/printer"; import { DocumentNode, ExecutionResult, execute } from "graphql"; import type TruffleConfig from "@truffle/config"; import { Db } from "./meta"; export { Db }; ...
Add debug logging for failed GraphQL requests
Add debug logging for failed GraphQL requests
TypeScript
mit
ConsenSys/truffle
--- +++ @@ -2,6 +2,7 @@ const debug = logger("db:db"); import gql from "graphql-tag"; +import { print } from "graphql/language/printer"; import { DocumentNode, ExecutionResult, execute } from "graphql"; import type TruffleConfig from "@truffle/config"; @@ -23,20 +24,23 @@ request: DocumentNode | string...
4a2fcb50d8a8551a910d9524cbf2ed4bba35042f
src/ChatBubble/index.tsx
src/ChatBubble/index.tsx
import * as React from 'react'; import ChatBubbleProps from './interface'; import styles from './styles'; const defaultBubbleStyles = { userBubble: {}, chatbubble: {}, text: {}, }; export default class ChatBubble extends React.Component { props; constructor(props: ChatBubbleProps) { super(props); } ...
import * as React from 'react'; import ChatBubbleProps from './interface'; import styles from './styles'; const defaultBubbleStyles = { userBubble: {}, chatbubble: {}, text: {}, }; export default class ChatBubble extends React.Component { props; constructor(props: ChatBubbleProps) { super(props); } ...
Make user bubble and chat bubble styles apply independently.
Make user bubble and chat bubble styles apply independently. Currently, when I use 'bubbleStyles', the useBubble style is getting applied to both userBubble and chatbubble. This commit fixes this issue and applies the right styles to the right bubbles.
TypeScript
mit
brandonmowat/react-chat-ui,brandonmowat/react-chat-ui
--- +++ @@ -36,8 +36,8 @@ ...bubblesCentered ? {} : styles.recipientChatbubbleOrientationNormal, + ...userBubble, ...chatbubble, - ...userBubble, }; return (
c10fa9989604580d0f2be07015f5df5ebe5afce8
collector/src/options.ts
collector/src/options.ts
import * as yargs from 'yargs' interface Options extends yargs.Arguments { count: number } const allOptions = { count: { alias: 'c', default: 5, describe: 'number of sources to poll', number: true } } const parseArgs = (args: string[]): Options => { return yargs .options(allOptions) ....
import * as yargs from 'yargs' interface Options extends yargs.Arguments { count: number } const allOptions = { count: { alias: 'c', default: 5, describe: 'number of sources to poll', number: true } } const parseArgs = (args: string[]): Options => { return yargs .options(allOptions) ....
Add --help and --version flags.
feat(help): Add --help and --version flags.
TypeScript
apache-2.0
eheikes/oscar,eheikes/oscar,eheikes/oscar,eheikes/oscar
--- +++ @@ -16,6 +16,8 @@ const parseArgs = (args: string[]): Options => { return yargs .options(allOptions) + .help() + .version() .parse(args) as Options }
11de346a2ef4e86502c88df074cb9ba1e6a0022a
webapp/source/plugins-for-local-libre-or-standard-services/rss/rss-plugin.ts
webapp/source/plugins-for-local-libre-or-standard-services/rss/rss-plugin.ts
import m = require("mithril"); import testData = require("./rssFeedExampleFromFSF"); export function initialize() { console.log("test data:", testData) console.log("RSS plugin initialized"); } export function display() { return m("div.rssPlugin", ["RSS feed reader plugin", m("pre", JSON.stringify(testDat...
import m = require("mithril"); import testData = require("./rssFeedExampleFromFSF"); export function initialize() { console.log("test data:", testData) console.log("RSS plugin initialized"); } function displayItem(item) { var title = item.title; var link = item.link; var description = item.desc; ...
Improve display of test RSS data
Improve display of test RSS data
TypeScript
mpl-2.0
pdfernhout/Twirlip2,pdfernhout/Twirlip2,pdfernhout/Twirlip2
--- +++ @@ -7,6 +7,34 @@ console.log("RSS plugin initialized"); } +function displayItem(item) { + var title = item.title; + var link = item.link; + var description = item.desc; + var timestamp = item.date; + + return m("div.item", [ + m("br") + m("strong", title), + m("br")...
a76ac48528786ec207478ffa7cab07bd742124e2
lib/utils/mapbox-search.ts
lib/utils/mapbox-search.ts
import throttle from 'lodash/throttle' import get from 'lodash/get' import {stringify} from 'querystring' import {MB_TOKEN} from 'lib/constants' const DELAY_MS = 400 const BASE_URL = 'https://api.mapbox.com' const PATH = '/geocoding/v5/mapbox.places' const getURL = (s: string, q: string) => `${BASE_URL}${PATH}/${en...
import throttle from 'lodash/throttle' import get from 'lodash/get' import {stringify} from 'querystring' import {MB_TOKEN} from 'lib/constants' const DELAY_MS = 400 const BASE_URL = 'https://api.mapbox.com' const PATH = '/geocoding/v5/mapbox.places' const getURL = (s: string, q: string) => `${BASE_URL}${PATH}/${en...
Remove `country` and `poi` from search
Remove `country` and `poi` from search
TypeScript
mit
conveyal/analysis-ui,conveyal/analysis-ui,conveyal/analysis-ui
--- +++ @@ -33,6 +33,8 @@ const querystring = stringify({ access_token: MB_TOKEN, autocomplete: false, + // All types except `country` and `poi`: https://docs.mapbox.com/api/search/geocoding/#data-types + types: 'region,district,locality,postcode,place,neighborhood,address', ...options })
bd1b5e9607662cf74a7b387d9b27784264ea287e
dium/src/components/text-input.ts
dium/src/components/text-input.ts
import * as Finder from "../finder"; import * as Filters from "../filters"; export const enum TextInputSizes { DEFAULT = "default", MINI = "mini" } interface TextInputProps { type?: string; value?: string; name?: string; placeholder?: string; error?: any; minLength?: any; maxLength...
import * as Finder from "../finder"; import * as Filters from "../filters"; export const enum TextInputSizes { DEFAULT = "default", MINI = "mini" } interface TextInputProps { type?: string; value?: string; name?: string; placeholder?: string; error?: any; minLength?: any; maxLength...
Fix text input filter error
Fix text input filter error
TypeScript
mit
Zerthox/BetterDiscord-Plugins,Zerthox/BetterDiscord-Plugins
--- +++ @@ -49,6 +49,6 @@ } export const {TextInput, TextInputError}: TextInputModule = /* @__PURE__ */ Finder.demangle({ - TextInput: (target) => target.defaultProps?.type === "text", + TextInput: (target) => target?.defaultProps?.type === "text", TextInputError: Filters.bySource(".error", "text-dange...
83901755106b45c9e244e02f118dacaf184b6ccf
src/app/dashboard/shared/services/dashboard.service.ts
src/app/dashboard/shared/services/dashboard.service.ts
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/catch'; import 'rxjs/add/observable/throw'; import { Observable } from 'rxjs/Observable'; import { NgRedux } from '@angular-redux/store'; import { SELECT_...
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/catch'; import 'rxjs/add/observable/throw'; import { Observable } from 'rxjs/Observable'; import { NgRedux } from '@angular-redux/store'; import { SELECT_...
Add headers to get request
Add headers to get request
TypeScript
mit
zackluckyf/advanced-social-network,zackluckyf/advanced-social-network,zackluckyf/advanced-social-network
--- +++ @@ -13,9 +13,9 @@ constructor(private http: HttpClient, private ngRedux: NgRedux<IAppState>) { } getAllUserPosts(id: number): Observable<any>{ - return this.http.get(`/api/users/${id}/allposts`) + const headers = new HttpHeaders().set('Content-Type', 'application/json; charset=utf-8'...
f16808620fd345dae127bd3011ccfa2393d34241
app/src/lib/parse-url.ts
app/src/lib/parse-url.ts
import * as URL from 'url' interface IURLAction<T> { name: string readonly args: T } export interface IOAuthActionArgs { readonly code: string } export interface IOAuthAction extends IURLAction<IOAuthActionArgs> { readonly name: 'oauth' readonly args: IOAuthActionArgs } export interface IOpenRepositoryAct...
import * as URL from 'url' interface IURLAction<T> { name: string readonly args: T } export interface IOAuthActionArgs { readonly code: string } export interface IOAuthAction extends IURLAction<IOAuthActionArgs> { readonly name: 'oauth' readonly args: IOAuthActionArgs } export interface IOpenRepositoryAct...
Append the trailing git extension
Append the trailing git extension
TypeScript
mit
hjobrien/desktop,BugTesterTest/desktops,artivilla/desktop,j-f1/forked-desktop,BugTesterTest/desktops,hjobrien/desktop,desktop/desktop,artivilla/desktop,desktop/desktop,j-f1/forked-desktop,hjobrien/desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,BugTesterTest/desktops,kactus-io/kactus,j-f1/forked-desktop,geng...
--- +++ @@ -38,7 +38,7 @@ } else if (actionName === 'openrepo') { // The `path` will be: /https://github.com/user/repo, so we need to take a // substring from the first character on. - return { name: 'open-repository', args: parsedURL.path!.substr(1) } + return { name: 'open-repository', args: `${p...
a0c618826752293c837dac6e702cc4a913a35ccb
client/src/environments/environment.prod.ts
client/src/environments/environment.prod.ts
export const environment = { production: true, RECAPTCHA_SITE_KEY: process.env.RECAPTCHA_SITE_KEY, // For kfet-insa.fr domains VERSION: require('../../../package.json').version, JWT_DAY_EXP_LONG: 30, JWT_DAY_EXP: 1, };
export const environment = { production: true, RECAPTCHA_SITE_KEY: '6Ldbh14UAAAAAC_hGGi0xaHS5Om-Qln1UQV_lW-7', // For kfet-insa.fr domains VERSION: require('../../../package.json').version, JWT_DAY_EXP_LONG: 30, JWT_DAY_EXP: 1, };
Revert angular env variables (Thx angular!)
Revert angular env variables (Thx angular!)
TypeScript
apache-2.0
K-Fet/K-App,K-Fet/K-App,K-Fet/K-App,K-Fet/K-App
--- +++ @@ -1,6 +1,6 @@ export const environment = { production: true, - RECAPTCHA_SITE_KEY: process.env.RECAPTCHA_SITE_KEY, // For kfet-insa.fr domains + RECAPTCHA_SITE_KEY: '6Ldbh14UAAAAAC_hGGi0xaHS5Om-Qln1UQV_lW-7', // For kfet-insa.fr domains VERSION: require('../../../package.json').version, JWT_DAY_...
5e1dc59042349bb71a25b2e9ac9c969200dcb7b4
app/modal-save-map/modal-save-map.component.ts
app/modal-save-map/modal-save-map.component.ts
import { Component, Input, Output, EventEmitter } from "@angular/core"; import { MapService } from "../core/map.service"; import { OptionMap } from "../core/map"; @Component({ selector: 'aba-modal-save-map', templateUrl: 'modal-save-map.component.html', styleUrls: ['modal-save-map.component.css'] }) export class...
import { Component, Input, Output, EventEmitter } from "@angular/core"; @Component({ selector: 'aba-modal-save-map', templateUrl: 'modal-save-map.component.html', styleUrls: ['modal-save-map.component.css'] }) export class ModalSaveMapComponent { @Input('visible') visible: boolean = false; @Output() onMapSu...
Refresh after saving a map
Refresh after saving a map close #59
TypeScript
mit
ABAPlan/abaplan-core,ABAPlan/abaplan-core,ABAPlan/abaplan-core
--- +++ @@ -1,6 +1,4 @@ import { Component, Input, Output, EventEmitter } from "@angular/core"; -import { MapService } from "../core/map.service"; -import { OptionMap } from "../core/map"; @Component({ selector: 'aba-modal-save-map', @@ -12,10 +10,9 @@ @Input('visible') visible: boolean = false; @Output(...
2f55b45147e37f75a2bb9d7ddc325631ff6549cb
src/model/optional-range.ts
src/model/optional-range.ts
export interface OptionalRange { value: string; endValue?: string; } export module OptionalRange { export const VALUE = 'value'; export const ENDVALUE = 'endValue'; export function isValid(optionalRange: OptionalRange): boolean { const keys = Object.keys(optionalRange); if (ke...
export interface OptionalRange { value: string; endValue?: string; } export module OptionalRange { export const VALUE = 'value'; export const ENDVALUE = 'endValue'; export function isValid(optionalRange: OptionalRange): boolean { const keys = Object.keys(optionalRange); if (ke...
Add method generateLabel to OptionalRange
Add method generateLabel to OptionalRange
TypeScript
apache-2.0
dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2
--- +++ @@ -19,4 +19,13 @@ if (keys.length === 2 && (typeof optionalRange[VALUE] !== typeof optionalRange[ENDVALUE])) return false; return true; } + + + export function generateLabel(optionalRange: OptionalRange, + getTranslation: (key: string) => string): st...
4b3361a7b9b2adf5ccbc2c0774c30a0be92f417f
src/vs/editor/contrib/parameterHints/provideSignatureHelp.ts
src/vs/editor/contrib/parameterHints/provideSignatureHelp.ts
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
Use first for picking first sig help result
Use first for picking first sig help result
TypeScript
mit
eamodio/vscode,joaomoreno/vscode,rishii7/vscode,cleidigh/vscode,eamodio/vscode,the-ress/vscode,Microsoft/vscode,hoovercj/vscode,microlv/vscode,landonepps/vscode,0xmohit/vscode,cleidigh/vscode,the-ress/vscode,0xmohit/vscode,Krzysztof-Cieslak/vscode,rishii7/vscode,cleidigh/vscode,0xmohit/vscode,Microsoft/vscode,eamodio/v...
--- +++ @@ -3,15 +3,13 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -'use strict'; - +import { asWinJsPromise, first } from 'vs/base/common/async'; +import { onUn...
9158be7fc0404e4672c98ee321c380a4b581e5ff
client/src/app/routes.ts
client/src/app/routes.ts
import {Route} from '@angular/router'; import {HomeComponent} from './home/home.component'; import {LoginComponent} from './login/login.component'; import {FacebookAuthorizerComponent} from './oauth/facebook/facebook_authorizer.component'; import {FacebookTokenHandlerComponent} from './oauth/facebook/facebook_token_han...
import {Route} from '@angular/router'; import {HomeComponent} from './home/home.component'; import {LoginComponent} from './login/login.component'; import {FacebookAuthorizerComponent} from './oauth/facebook/facebook_authorizer.component'; import {FacebookTokenHandlerComponent} from './oauth/facebook/facebook_token_han...
Make path for 404 in router.
Make path for 404 in router.
TypeScript
mit
frostblooded/kanq,frostblooded/kanq,frostblooded/kanq,frostblooded/kanq,frostblooded/kanq
--- +++ @@ -49,5 +49,13 @@ component: FacebookTokenHandlerComponent } ] + }, + { + path: '404', + component: NotFoundComponent + }, + { + path: '**', + redirectTo: '404' } ];
568768198c173ffc62a718cade3a98dee89c809e
src/smc-webapp/project/explorer/path-segment-link.tsx
src/smc-webapp/project/explorer/path-segment-link.tsx
import * as React from "react"; import { COLORS, Tip } from "../../r_misc" const Breadcrumb = require("react-bootstrap") interface Props { path?: string, display?: string | JSX.Element, actions: any, full_name?: string, history?: boolean, active?: boolean } // One segment of the directory links at the t...
import * as React from "react"; import { COLORS, Tip } from "../../r_misc"; const Breadcrumb = require("react-bootstrap"); interface Props { path?: string; display?: string | JSX.Element; actions: any; full_name?: string; history?: boolean; active?: boolean; } // One segment of the directory links at the...
Convert PathSegmentLink to a function
Convert PathSegmentLink to a function
TypeScript
agpl-3.0
tscholl2/smc,tscholl2/smc,sagemathinc/smc,tscholl2/smc,sagemathinc/smc,tscholl2/smc,DrXyzzy/smc,DrXyzzy/smc,DrXyzzy/smc,tscholl2/smc,DrXyzzy/smc,sagemathinc/smc,sagemathinc/smc
--- +++ @@ -1,61 +1,59 @@ import * as React from "react"; -import { COLORS, Tip } from "../../r_misc" +import { COLORS, Tip } from "../../r_misc"; -const Breadcrumb = require("react-bootstrap") +const Breadcrumb = require("react-bootstrap"); interface Props { - path?: string, - display?: string | JSX.Element,...
db04cd61b38ef219744cbae3c6e05bf313d8d3e3
APM-Final/src/app/products/product-detail.component.ts
APM-Final/src/app/products/product-detail.component.ts
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { IProduct } from './product'; import { ProductService } from './product.service'; @Component({ templateUrl: './product-detail.component.html', styleUrls: ['./product-detail.component.css'] }) expor...
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { IProduct } from './product'; import { ProductService } from './product.service'; @Component({ templateUrl: './product-detail.component.html', styleUrls: ['./product-detail.component.css'] }) expor...
Add null check to pass strict: true
Add null check to pass strict: true
TypeScript
mit
DeborahK/Angular2-GettingStarted,DeborahK/Angular2-GettingStarted,DeborahK/Angular2-APM,DeborahK/Angular2-GettingStarted,DeborahK/Angular2-APM
--- +++ @@ -19,8 +19,11 @@ } ngOnInit() { - const id = +this._route.snapshot.paramMap.get('id'); - this.getProduct(id); + const param = this._route.snapshot.paramMap.get('id'); + if (param) { + const id = +param; + this.getProduct(id); + } } getProduct(id: number) {
1ecc866cad88bd21120fa2d264aa661007d13ed1
src/app/space/create/apps/apps.component.ts
src/app/space/create/apps/apps.component.ts
import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { Router } from '@angular/router'; import { AppsService, Environment, } from './services/apps.service'; @Component({ encapsulation: ViewEncapsulation.None, selector: 'alm-apps', templateUrl: 'apps.component.html' }) export class Ap...
import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { Router } from '@angular/router'; import { AppsService, Environment, } from './services/apps.service'; @Component({ encapsulation: ViewEncapsulation.None, selector: 'alm-apps', templateUrl: 'apps.component.html' }) export class Ap...
Add missing return type declaration
Add missing return type declaration
TypeScript
apache-2.0
fabric8io/fabric8-ui,fabric8-ui/fabric8-ui,fabric8-ui/fabric8-ui,fabric8-ui/fabric8-ui,fabric8-ui/fabric8-ui,fabric8io/fabric8-ui,fabric8io/fabric8-ui,fabric8io/fabric8-ui,fabric8io/fabric8-ui,fabric8-ui/fabric8-ui
--- +++ @@ -23,7 +23,7 @@ this.spaceId = 'placeholder-space'; } - ngOnInit() { + ngOnInit(): void { this.updateResources(); }
009e8d0dcf201907a9bce3d480608e2a765770e4
src/core/vg-media/i-playable.ts
src/core/vg-media/i-playable.ts
import {Observable} from "rxjs/Observable"; export interface IPlayable { id:string; elem:any; time:any; buffer:any; track?:any; // its optional, need in add custom cue (addTextTrack) canPlay:boolean; canPlayThrough:boolean; isMetadataLoaded:boolean; isWaiting:boolean; isCom...
import {Observable} from "rxjs/Observable"; export interface IPlayable { id:string; elem:any; time:any; buffer:any; track?:any; canPlay:boolean; canPlayThrough:boolean; isMetadataLoaded:boolean; isWaiting:boolean; isCompleted:boolean; isLive:boolean; state:string; su...
Add create track and cues dynamically
Add create track and cues dynamically
TypeScript
mit
videogular/videogular2,kwarismian/videogular2,videogular/videogular2,amitkumarmahajan/videogular2,amitkumarmahajan/videogular2,kwarismian/videogular2,kwarismian/videogular2,amitkumarmahajan/videogular2,videogular/videogular2
--- +++ @@ -5,7 +5,7 @@ elem:any; time:any; buffer:any; - track?:any; // its optional, need in add custom cue (addTextTrack) + track?:any; canPlay:boolean; canPlayThrough:boolean; isMetadataLoaded:boolean;
e8c4abaa12787782ef5b452e9c1f46d20ab255f5
src/components/nav-bar-item/nav-bar.spec.ts
src/components/nav-bar-item/nav-bar.spec.ts
import Vue from 'vue'; import '../../utils/polyfills'; import NavBarItemPlugin, { MNavBarItem } from './nav-bar-item'; const SELECTED_CSS: string = 'm--is-selected'; let navbaritem: MNavBarItem; describe('navbar-item', () => { beforeEach(() => { Vue.use(NavBarItemPlugin); navbaritem = new MNavBar...
import Vue from 'vue'; import '../../utils/polyfills'; import NavBarItemPlugin, { MNavBarItem } from './nav-bar-item'; const SELECTED_CSS: string = 'm--is-selected'; let navbaritem: MNavBarItem; describe('navbar-item', () => { beforeEach(() => { Vue.use(NavBarItemPlugin); navbaritem = new MNavBar...
Change test name in nav-bar-item
Change test name in nav-bar-item
TypeScript
apache-2.0
ulaval/modul-components,ulaval/modul-components,ulaval/modul-components
--- +++ @@ -12,7 +12,7 @@ navbaritem = new MNavBarItem().$mount(); }); - it('skin prop', () => { + it('selected prop', () => { expect(navbaritem.$el.classList.contains(SELECTED_CSS)).toBeFalsy(); navbaritem.selected = true;
a6f0651d054a09772b9bdeaea5d6b00aca255361
output-googleassistant/src/models/Scene.ts
output-googleassistant/src/models/Scene.ts
import { EnumLike, IsEnum, IsNotEmpty, IsObject, IsOptional, IsString, Type, ValidateNested, } from '@jovotech/output'; export class NextScene { @IsString() @IsNotEmpty() name: string; } export enum SlotFillingStatus { Unspecified = 'UNSPECIFIED', Initialized = 'INITIALIZED', Collecting = ...
import { EnumLike, IsEnum, IsNotEmpty, IsObject, IsOptional, IsString, Type, ValidateNested, } from '@jovotech/output'; export class NextScene { @IsString() @IsNotEmpty() name: string; } export enum SlotFillingStatus { Unspecified = 'UNSPECIFIED', Initialized = 'INITIALIZED', Collecting = ...
Allow scene.name to be empty to be filled by platform
:recycle: Allow scene.name to be empty to be filled by platform
TypeScript
apache-2.0
jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs
--- +++ @@ -26,7 +26,6 @@ export class Scene { @IsString() - @IsNotEmpty() name: string; @IsOptional()
8d16e762e7ecf359ba2431b42487afeafe694a86
src/open_farm/__tests__/index_test.tsx
src/open_farm/__tests__/index_test.tsx
jest.mock("axios", function () { return { default: { get: function () { return Promise.resolve({ data: { id: 0, data: { attributes: { svg_icon: "<svg>Wow</svg>", slug: "lettuce" } } }...
jest.mock("axios", function () { return { default: { get: function () { return Promise.resolve({ data: { id: 0, data: { attributes: { svg_icon: "<svg>Wow</svg>", slug: "lettuce" } } }...
Update tests to reflect changes
Update tests to reflect changes
TypeScript
mit
RickCarlino/farmbot-web-app,RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,RickCarlino/farmbot-web-app,MrChristofferson/Farmbot-Web-API,FarmBot/Farmbot-Web-API,MrChristofferson/Farmbot-Web-API...
--- +++ @@ -24,12 +24,12 @@ it("does an HTTP request if the icon can't be found locally", (done) => { cachedCrop("lettuce") .then(function (item) { - expect(item).toContain(DATA_URI); - expect(item).toContain(encodeURIComponent("<svg>Wow</svg>")); + expect(item.svg_icon).toContain(...
88fa2116371ab2e153d41c94a2e6e01171b1a9b8
client/src/app/plants/bed.component.ts
client/src/app/plants/bed.component.ts
import { Component, OnInit } from '@angular/core'; import { PlantListService } from "./plant-list.service"; import { Plant } from "./plant"; import {Params, ActivatedRoute} from "@angular/router"; @Component({ selector: 'bed-component', templateUrl: 'bed.component.html', }) export class BedComponent implement...
import { Component, OnInit } from '@angular/core'; import { PlantListService } from "./plant-list.service"; import { Plant } from "./plant"; import {Params, ActivatedRoute, Router} from "@angular/router"; @Component({ selector: 'bed-component', templateUrl: 'bed.component.html', }) export class BedComponent i...
Call refreshInformation on URL change
Call refreshInformation on URL change
TypeScript
mit
UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-360...
--- +++ @@ -1,7 +1,7 @@ import { Component, OnInit } from '@angular/core'; import { PlantListService } from "./plant-list.service"; import { Plant } from "./plant"; -import {Params, ActivatedRoute} from "@angular/router"; +import {Params, ActivatedRoute, Router} from "@angular/router"; @Component({ selecto...
a1bfd99aeb4e5ee90a9b75ef80de30cc9b00ac78
packages/rev-ui-materialui/src/actions/MUIActionButton.tsx
packages/rev-ui-materialui/src/actions/MUIActionButton.tsx
import * as React from 'react'; import { IActionComponentProps } from 'rev-ui/lib/actions/types'; import Button from 'material-ui/Button'; export const MUIActionButton: React.SFC<IActionComponentProps> = (props) => { const childContent = props.children || props.label; return ( <Button raised color=...
import * as React from 'react'; import { IActionComponentProps } from 'rev-ui/lib/actions/types'; import Button from 'material-ui/Button'; export const MUIActionButton: React.SFC<IActionComponentProps> = (props) => { const childContent = props.children || props.label; return ( <Button raised color=...
Remove default margin from ActionButton
Remove default margin from ActionButton
TypeScript
mit
RevFramework/rev-framework,RevFramework/rev-framework
--- +++ @@ -11,7 +11,6 @@ return ( <Button raised color="primary" onClick={() => props.doAction()} - style={{ margin: 12 }} disabled={props.disabled} > {childContent}
99678056bc86f3d8bc1b3cc6c2b86a3efe39f3de
Mechanism/Widget.ts
Mechanism/Widget.ts
///<reference path="RenderObject.ts"/> ///<reference path="Animations/Animators.ts"/> class Widget extends RenderObject { children: Widget[] = []; position = Vector2.zero; scale = Vector2.one; rotation = 0; pivot = Vector2.zero; size = new Vector2(100, 100); beforeRender(renderer: Renderer...
///<reference path="RenderObject.ts"/> ///<reference path="Animations/Animators.ts"/> class Widget extends RenderObject { children: Widget[] = []; position = Vector2.zero; scale = Vector2.one; rotation = 0; pivot = Vector2.zero; size = new Vector2(100, 100); beforeRender(renderer: Renderer...
Add position and size shortcuts for widget.
Add position and size shortcuts for widget.
TypeScript
apache-2.0
Dia6lo/Mechanism,Dia6lo/Mechanism,Dia6lo/Mechanism
--- +++ @@ -20,12 +20,36 @@ renderer.restore(); } + get x(): number { + return this.position.x; + } + + set x(value: number) { + this.position.x = value; + } + + get y(): number { + return this.position.y; + } + + set y(value: number) { + this.position....
c81350a8902e7f7dc579d59773077a7f5554833d
src/app/components/menu-service.ts
src/app/components/menu-service.ts
import {Router} from '@angular/router'; import {Injectable, NgZone} from '@angular/core'; const ipcRenderer = typeof window !== 'undefined' ? window.require('electron').ipcRenderer : require('electron').ipcRenderer; const remote = typeof window !== 'undefined' ? window.require('electron').remote : require('electron')....
import {Router} from '@angular/router'; import {Injectable, NgZone} from '@angular/core'; const ipcRenderer = typeof window !== 'undefined' ? window.require('electron').ipcRenderer : require('electron').ipcRenderer; const remote = typeof window !== 'undefined' ? window.require('electron').remote : require('electron')....
Check for existence of remote in MenuService to fix unit tests
Check for existence of remote in MenuService to fix unit tests
TypeScript
apache-2.0
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
--- +++ @@ -36,6 +36,6 @@ public static setContext(context: MenuContext) { - remote.getGlobal('setMenuContext')(context); + if (remote) remote.getGlobal('setMenuContext')(context); } }
45b520975d515a88ac975ca09035b196ba5abeda
read.ts
read.ts
import { AggregateIdType, DomainEvent, DomainEventType, allDomainEvents, domainEventsByAggregate } from "./event-store"; export function todoListEvents(): Promise<DomainEvent[]> { // This app's domain and event-store are designed to accommodate multiple aggregates of different types. // Currently, the app only...
import { AggregateIdType, DomainEvent, DomainEventType, allDomainEvents, domainEventsByAggregate } from "./event-store"; export function todoListEvents(): Promise<DomainEvent[]> { // This app's domain and event-store are designed to accommodate multiple aggregates of different types. // Currently, the app only...
Fix domain events not loading on page load
Fix domain events not loading on page load
TypeScript
mit
jbrianskog/static-event-sourcing-todo,jbrianskog/static-event-sourcing-todo
--- +++ @@ -15,7 +15,7 @@ function todoLists(events: DomainEvent[]): AggregateIdType[] { return events.reduce<AggregateIdType[]>((p, c) => { - if (c.type === DomainEventType.TodoAdded && p.indexOf(c.aggregateId) !== -1) { + if (c.type === DomainEventType.TodoAdded && p.indexOf(c.aggregateId) ===...
ea5c960c348b5405e820f98087af1ea182641e12
src/index.ts
src/index.ts
/* eslint-disable @typescript-eslint/no-var-requires */ import * as SegfaultHandler from 'segfault-handler' SegfaultHandler.registerHandler('crash.log') import 'source-map-support/register' export * from './commands/generate' export * from './commands/list' export * from './types' export * from './config' export * from...
/* eslint-disable @typescript-eslint/no-var-requires */ import * as SegfaultHandler from 'segfault-handler' SegfaultHandler.registerHandler('crash.log') import 'source-map-support/register' export * from './commands/generate' export * from './commands/list' export * from './types' export * from './config' export * from...
Add the type for ex
Add the type for ex ... to avoid the type-unknown error during installation.
TypeScript
apache-2.0
sammydre/ts-for-gjs,sammydre/ts-for-gjs
--- +++ @@ -26,7 +26,7 @@ console.log(error) require('@oclif/errors/handle')(error) }) - } catch (ex) { + } catch (ex: any) { console.log(ex.stack) } }
c0b80796e2ec9207bd2edc0f31e5999c40236ed6
src/index.ts
src/index.ts
const express = require('express'); const MongoClient = require('mongodb').MongoClient; const ObjectId = require('mongodb').ObjectId; const bodyParser = require('body-parser'); const logger = require('morgan'); // SETUP // =================================== const config = require('./config.json'); const app = expr...
const express = require('express'); const MongoClient = require('mongodb').MongoClient; const ObjectId = require('mongodb').ObjectId; const bodyParser = require('body-parser'); const logger = require('morgan'); // SETUP // =================================== const config = require('./config.json'); const app = expr...
Set up basic routing and middlewares
Set up basic routing and middlewares
TypeScript
mit
SBats/marvel-reading-stats-backend
--- +++ @@ -12,10 +12,34 @@ const app = express(); const port = process.env.PORT || 8080; +const dbUrl = config.dbUrl; +const collectionsList = [ + 'comics', + 'events', + 'series', + 'creators', + 'characters', +]; -app.get('/', (req, res) => { - res.send('Please select a collection, eg., /collections/me...
87e05578aaae011413288664630e35b7d20956e4
src/modules/payment-backend-methods/hooks/afterRegistration.ts
src/modules/payment-backend-methods/hooks/afterRegistration.ts
import * as types from './../store/mutation-types' export function afterRegistration(Vue, config, store, isServer) { // Place the order. Payload is empty as we don't have any specific info to add for this payment method '{}' const placeOrder = function () { Vue.prototype.$bus.$emit('checkout-do-placeOrder', {}...
import * as types from './../store/mutation-types' export function afterRegistration(Vue, config, store, isServer) { // Place the order. Payload is empty as we don't have any specific info to add for this payment method '{}' const placeOrder = function () { Vue.prototype.$bus.$emit('checkout-do-placeOrder', {}...
Check on null for state of payment-backend-methods
Check on null for state of payment-backend-methods
TypeScript
mit
pkarw/vue-storefront,pkarw/vue-storefront,DivanteLtd/vue-storefront,DivanteLtd/vue-storefront,DivanteLtd/vue-storefront,pkarw/vue-storefront,DivanteLtd/vue-storefront,pkarw/vue-storefront
--- +++ @@ -14,7 +14,8 @@ // Mount the info component when required. Vue.prototype.$bus.$on('checkout-payment-method-changed', (paymentMethodCode) => { - if (store.state['payment-backend-methods'].methods.find(item => item.code === paymentMethodCode)) { + let methods = store.state['payment-backe...
3525fbae2e1dcb281500c0395e45339a7cb3f2c1
TameGame/Input/StandardControlBindings.ts
TameGame/Input/StandardControlBindings.ts
/// <reference path="Interface.ts" /> module TameGame { /** * Some well-known control bindings used in many different types of game */ export var standardControls: { [name: string]: ControlBinding } = { /** The WASD control layout. Provides up, down, left, right control actions */ was...
/// <reference path="Interface.ts" /> module TameGame { /** * Some well-known control bindings used in many different types of game */ export var standardControls: { [name: string]: ControlBinding } = { /** The WASD control layout. Provides up, down, left, right control actions */ was...
Add mouse events to the set of standard control bindings
Add mouse events to the set of standard control bindings
TypeScript
apache-2.0
TameGame/Engine,TameGame/Engine,TameGame/Engine
--- +++ @@ -19,6 +19,14 @@ down: [ { device: controlDevice.keyboard, control: keyControl.arrowdown } ], left: [ { device: controlDevice.keyboard, control: keyControl.arrowleft } ], right: [ { device: controlDevice.keyboard, control: keyControl.arrowright } ], + }, + + ...
6b95ece8e168628012fea275153c2e614f1ff1a0
src/webauthn-json/schema-format.ts
src/webauthn-json/schema-format.ts
type SchemaLeaf = "copy" | "convert"; export interface SchemaProperty { required: boolean; schema: Schema; derive?: (v: any) => any; } interface SchemaObject { [property: string]: SchemaProperty; } type SchemaArray = [SchemaObject] | [SchemaLeaf]; export type Schema = SchemaLeaf | SchemaArray | SchemaObject;
type SchemaLeaf = "copy" | "convert"; export interface SchemaProperty { required: boolean; schema: Schema; derive?: (v: any) => any; // For client extension results, transports, etc. } interface SchemaObject { [property: string]: SchemaProperty; } type SchemaArray = [SchemaObject] | [SchemaLeaf]; export type S...
Add a comment to the `derive` declaration with examples.
Add a comment to the `derive` declaration with examples.
TypeScript
mit
github/webauthn-json,github/webauthn-json,github/webauthn-json
--- +++ @@ -2,7 +2,7 @@ export interface SchemaProperty { required: boolean; schema: Schema; - derive?: (v: any) => any; + derive?: (v: any) => any; // For client extension results, transports, etc. } interface SchemaObject { [property: string]: SchemaProperty;
2244ee2736279e0e0b0a41443e189ca8198c3417
src/parser/mage/fire/normalizers/Combustion.tsx
src/parser/mage/fire/normalizers/Combustion.tsx
import SPELLS from 'common/SPELLS'; import EventsNormalizer from 'parser/core/EventsNormalizer'; import { Event, EventType, ApplyBuffEvent, CastEvent } from 'parser/core/Events'; class Combustion extends EventsNormalizer { /** * @param {Array} events * @returns {Array} */ normalize(events: Event<any>[]) ...
import SPELLS from 'common/SPELLS'; import EventsNormalizer from 'parser/core/EventsNormalizer'; import { AnyEvent, EventType } from 'parser/core/Events'; class Combustion extends EventsNormalizer { normalize(events: AnyEvent[]): AnyEvent[] { const fixedEvents: AnyEvent[] = []; events.forEach((event, eventI...
Update combustion normalizer to AnyEvent
Update combustion normalizer to AnyEvent
TypeScript
agpl-3.0
yajinni/WoWAnalyzer,anom0ly/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,anom0ly/WoWAnalyzer,sMteX/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,anom0ly/WoWAnalyzer,sMteX/WoWAnalyzer,yajinni/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,sMteX/WoWAnalyzer,Juko8/WoWAnalyzer,yajinni/WoWAnalyzer,anom0ly/WoWAnalyzer,Juko8/WoWAnalyzer,yajinni/WoWAnalyze...
--- +++ @@ -1,19 +1,15 @@ import SPELLS from 'common/SPELLS'; import EventsNormalizer from 'parser/core/EventsNormalizer'; -import { Event, EventType, ApplyBuffEvent, CastEvent } from 'parser/core/Events'; +import { AnyEvent, EventType } from 'parser/core/Events'; class Combustion extends EventsNormalizer { - ...
b795d676b49e965c7902410dc15e96e063065728
src/app/app.component.ts
src/app/app.component.ts
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'app works!'; }
import { Component } from '@angular/core'; import { User } from './models/user.model'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { user: User = new User('Godson', 'vor.nachname@gmail.com', '+234-809-613-2999'); con...
Create user model for Demo
chore(User): Create user model for Demo
TypeScript
mit
gottsohn/md-input-inline,gottsohn/md-input-inline,gottsohn/md-input-inline
--- +++ @@ -1,10 +1,13 @@ import { Component } from '@angular/core'; +import { User } from './models/user.model'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) + export class AppComponent { - title = 'app works!'; + user: User = new User...
f3acfb61d87a1cfa1a191c0cd194bfe0f2ce4b2b
applications/mail/src/app/components/message/MessageBody.tsx
applications/mail/src/app/components/message/MessageBody.tsx
import React, { useMemo } from 'react'; import { classnames, useToggle, Button } from 'react-components'; import { isPlainText } from '../../helpers/message/messages'; import { MessageExtended } from '../../models/message'; import { locateBlockquote } from '../../helpers/message/messageBlockquote'; import './MessageB...
import React, { useMemo } from 'react'; import { classnames, useToggle, Button } from 'react-components'; import { isPlainText } from '../../helpers/message/messages'; import { MessageExtended } from '../../models/message'; import { locateBlockquote } from '../../helpers/message/messageBlockquote'; import './MessageB...
Fix - add relative class to message-content
Fix - add relative class to message-content
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -29,7 +29,12 @@ ]); return ( - <div className={classnames(['message-content scroll-horizontal-if-needed bodyDecrypted', plain && 'plain'])}> + <div + className={classnames([ + 'message-content scroll-horizontal-if-needed relative bodyDecrypted', + ...
91be7571aae9d60dd17fbd5a97311cb087996ab8
src/components/footer.ts
src/components/footer.ts
import Component from 'inferno-component' import h from 'inferno-hyperscript' interface Props { clearCompleted: () => void clearAll: () => void leftCount: number } interface State {} export default class Footer extends Component<Props, State> { render() { return h('div', [ h('span', `${this.props.le...
import Component from 'inferno-component' import h from 'inferno-hyperscript' interface Props { clearCompleted: () => void clearAll: () => void leftCount: number } interface State {} export default class Footer extends Component<Props, State> { leftCountText(count: number): string { if (count === 1) { ...
Tweak left count text in Footer component
Tweak left count text in Footer component
TypeScript
mit
y0za/typescript-inferno-todo,y0za/typescript-inferno-todo,y0za/typescript-inferno-todo
--- +++ @@ -9,9 +9,17 @@ interface State {} export default class Footer extends Component<Props, State> { + leftCountText(count: number): string { + if (count === 1) { + return `${count} item left` + } else { + return `${count} items left` + } + } + render() { return h('div', [ - ...
3525b1fe0774448431b299a0efbed245fb9176b2
test/lib/mock-store.ts
test/lib/mock-store.ts
import { RecursiveProxyHandler } from 'electron-remote'; import { Store } from '../../src/lib/store'; import { Updatable } from '../../src/lib/updatable'; import { ChannelBase, User } from '../../src/lib/models/api-shapes'; export function createMockStore(seedData: any): Store { return RecursiveProxyHandler.create(...
import { Api } from '../../src/lib/models/slack-api'; import { ArrayUpdatable } from '../../src/lib/updatable'; import { ChannelBase, Message, User } from '../../src/lib/models/api-shapes'; import { EventType } from '../../src/lib/models/event-type'; import { SparseMap, InMemorySparseMap } from '../../src/lib/sparse-ma...
Rework MockStore to not be clever.
Rework MockStore to not be clever.
TypeScript
bsd-3-clause
paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline
--- +++ @@ -1,21 +1,43 @@ -import { RecursiveProxyHandler } from 'electron-remote'; +import { Api } from '../../src/lib/models/slack-api'; +import { ArrayUpdatable } from '../../src/lib/updatable'; +import { ChannelBase, Message, User } from '../../src/lib/models/api-shapes'; +import { EventType } from '../../src/lib...
4ff63dd1d58808598ae77fb72c4ff5496dd25a07
app/src/ui/branches/no-branches.tsx
app/src/ui/branches/no-branches.tsx
import * as React from 'react' import { Button } from '../lib/button' const BlankSlateImage = `file:///${__dirname}/static/empty-no-branches.svg` interface INoBranchesProps { readonly onCreateNewBranch: () => void } export class NoBranches extends React.Component<INoBranchesProps> { public render() { const s...
import * as React from 'react' import { Button } from '../lib/button' const BlankSlateImage = `file:///${__dirname}/static/empty-no-branches.svg` interface INoBranchesProps { readonly onCreateNewBranch: () => void } export class NoBranches extends React.Component<INoBranchesProps> { public render() { const s...
Make it a blue button
Make it a blue button
TypeScript
mit
shiftkey/desktop,kactus-io/kactus,shiftkey/desktop,shiftkey/desktop,shiftkey/desktop,say25/desktop,say25/desktop,j-f1/forked-desktop,say25/desktop,desktop/desktop,kactus-io/kactus,j-f1/forked-desktop,desktop/desktop,desktop/desktop,j-f1/forked-desktop,artivilla/desktop,desktop/desktop,kactus-io/kactus,artivilla/desktop...
--- +++ @@ -23,6 +23,7 @@ <Button className="create-branch-button" onClick={this.props.onCreateNewBranch} + type="submit" > {__DARWIN__ ? 'Create New Branch' : 'Create new branch'} </Button>
0f5d99e55d0ae7ca25a87b9aaf896aaefeeda425
src/appInsightsClient.ts
src/appInsightsClient.ts
'use strict'; import * as vscode from 'vscode'; const appInsights = require("applicationinsights"); export class AppInsightsClient { private _client; private _enableAppInsights; constructor() { this._client = appInsights.getClient("a25ddf11-20fc-45c6-96ae-524f47754f28"); let co...
'use strict'; import * as vscode from 'vscode'; const appInsights = require("applicationinsights"); export class AppInsightsClient { private _client; private _enableAppInsights; constructor() { this._client = appInsights.getClient('a25ddf11-20fc-45c6-96ae-524f47754f28'); let co...
Handle tracking evernt for bat (the executor is '')
Handle tracking evernt for bat (the executor is '')
TypeScript
mit
formulahendry/vscode-code-runner
--- +++ @@ -8,14 +8,14 @@ private _enableAppInsights; constructor() { - this._client = appInsights.getClient("a25ddf11-20fc-45c6-96ae-524f47754f28"); + this._client = appInsights.getClient('a25ddf11-20fc-45c6-96ae-524f47754f28'); let config = vscode.workspace.getConfiguration('code-...
2b7e1a93a88e238f9b51c77b402cbbca1010fab5
src/shared/components/query/filteredSearch/SearchBox.tsx
src/shared/components/query/filteredSearch/SearchBox.tsx
import * as React from 'react'; import { FunctionComponent, useEffect, useState } from 'react'; import { useDebounce } from 'shared/components/query/filteredSearch/useDebounce'; type SearchBoxProps = { queryString: string; onType: (changed: string) => void; }; export const SearchBox: FunctionComponent<SearchB...
import * as React from 'react'; import { FunctionComponent, useEffect, useState } from 'react'; import { useDebounce } from 'shared/components/query/filteredSearch/useDebounce'; type SearchBoxProps = { queryString: string; onType: (changed: string) => void; }; export const SearchBox: FunctionComponent<SearchB...
Disable spellchecking in search box
Disable spellchecking in search box
TypeScript
agpl-3.0
cBioPortal/cbioportal-frontend,cBioPortal/cbioportal-frontend,cBioPortal/cbioportal-frontend,cBioPortal/cbioportal-frontend,cBioPortal/cbioportal-frontend,cBioPortal/cbioportal-frontend
--- +++ @@ -25,6 +25,7 @@ <> <input autoComplete="off" + spellCheck="false" className="form-control" placeholder="Search..." type="text"
8f4361d61aaf82de5503a426456b5cf24096685a
bokehjs/src/coffee/core/util/dom.ts
bokehjs/src/coffee/core/util/dom.ts
import * as _ from "underscore"; export function createElement(type: string, props: { [name: string]: any }, ...children: (string | HTMLElement)[]): HTMLElement { let elem; if (type === "fragment") { elem = document.createDocumentFragment(); } else { elem = document.createElement(type); for (let k in...
import {isBoolean, isString, isArray, flatten} from "underscore"; export function createElement(type: string, props: { [name: string]: any }, ...children: Array<string | HTMLElement | Array<string | HTMLElement>>): HTMLElement { let elem; if (type === "fragment") { elem = document.createDocumentFragment();...
Handle children arrays (not ...) in createElement()
Handle children arrays (not ...) in createElement()
TypeScript
bsd-3-clause
schoolie/bokeh,draperjames/bokeh,percyfal/bokeh,bokeh/bokeh,draperjames/bokeh,percyfal/bokeh,jakirkham/bokeh,jakirkham/bokeh,DuCorey/bokeh,mindriot101/bokeh,bokeh/bokeh,dennisobrien/bokeh,mindriot101/bokeh,mindriot101/bokeh,aavanian/bokeh,draperjames/bokeh,timsnyder/bokeh,stonebig/bokeh,schoolie/bokeh,azjps/bokeh,jakir...
--- +++ @@ -1,6 +1,7 @@ -import * as _ from "underscore"; +import {isBoolean, isString, isArray, flatten} from "underscore"; -export function createElement(type: string, props: { [name: string]: any }, ...children: (string | HTMLElement)[]): HTMLElement { +export function createElement(type: string, props: { [name:...
b7a6006a2df87d1d942683085066b787356685b8
src/controls/peripherals/peripheral_list.tsx
src/controls/peripherals/peripheral_list.tsx
import * as React from "react"; import { ToggleButton } from "../toggle_button"; import { pinToggle } from "../../devices/actions"; import { Row, Col } from "../../ui"; import { PeripheralListProps } from "./interfaces"; export function PeripheralList(props: PeripheralListProps) { return <div> {props.peripherals...
import * as React from "react"; import { ToggleButton } from "../toggle_button"; import { pinToggle } from "../../devices/actions"; import { Row, Col } from "../../ui"; import { PeripheralListProps } from "./interfaces"; export function PeripheralList(props: PeripheralListProps) { let { pins } = props; return <div...
Change how pins are rendered
Change how pins are rendered
TypeScript
mit
RickCarlino/farmbot-web-frontend,FarmBot/farmbot-web-frontend,MrChristofferson/farmbot-web-frontend,RickCarlino/farmbot-web-frontend,MrChristofferson/farmbot-web-frontend,FarmBot/farmbot-web-frontend
--- +++ @@ -5,9 +5,10 @@ import { PeripheralListProps } from "./interfaces"; export function PeripheralList(props: PeripheralListProps) { + let { pins } = props; return <div> {props.peripherals.map(p => { - let status = JSON.stringify(props.pins[p.body.pin || 0]); + let value = (pins[p.body.pin...
603b14630f8fc36f1c0312ac72be34842b0870b6
figma-plugin/src/server_requests.ts
figma-plugin/src/server_requests.ts
import { API, RETURN_OVERLAY_REQUEST, ExportOverlayRequest, setError, makePostData } from './helper' /** Method that sends the (decoded) fetched overlay, along with its * ID and display name. */ export async function sendOverlay(msg: ExportOverlayRequest) { const data: string = makePostData(msg); console.log...
import { API, RETURN_OVERLAY_REQUEST, ExportOverlayRequest, setError, makePostData } from './helper' /** Method that sends the (decoded) fetched overlay, along with its * ID and display name. */ export async function sendOverlay(msg: ExportOverlayRequest) { const data: string = makePostData(msg); console.log...
Add method for manual cancellation of the plugin.
Add method for manual cancellation of the plugin. bug: 106757419 Change-Id: I5e64848eba4ba29fcc500d882e5391109d965f35
TypeScript
apache-2.0
googleinterns/android-studio-figma-overlay,googleinterns/android-studio-figma-overlay,googleinterns/android-studio-figma-overlay,googleinterns/android-studio-figma-overlay
--- +++ @@ -37,3 +37,12 @@ request.open('GET', API + "/cancel"); request.send(); } + +/** This is a simple call to the local server + * which stops the server,triggered + * when the user manually closes the plugin */ +export function manualCancelOverlay() { + var request = new XMLHttpRequest(); + ...
df64e5bcfccbe3829e6fdcfa9849dccba5b7c1df
src/Apps/Search/Routes/Artworks/index.tsx
src/Apps/Search/Routes/Artworks/index.tsx
import { Box } from "@artsy/palette" import { AnalyticsSchema, useTracking } from "Artsy/Analytics" import { Location } from "found" import React from "react" import { ArtworkFilter_viewer } from "__generated__/ArtworkFilter_viewer.graphql" import { ZeroState } from "Apps/Search/Components/ZeroState" import { ArtworkF...
import { Box } from "@artsy/palette" import { AnalyticsSchema, useTracking } from "Artsy/Analytics" import { Location } from "found" import React from "react" import { ArtworkFilter_viewer } from "__generated__/ArtworkFilter_viewer.graphql" import { ZeroState } from "Apps/Search/Components/ZeroState" import { ArtworkF...
Fix analytics event on /search
[Bugfix] Fix analytics event on /search
TypeScript
mit
artsy/reaction-force,xtina-starr/reaction,xtina-starr/reaction,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction-force,artsy/reaction,artsy/reaction,artsy/reaction
--- +++ @@ -22,8 +22,17 @@ <Box pt={2}> <ArtworkFilter viewer={props.viewer} - filters={props.location.query as any} + filters={props.location.query} onChange={updateUrl} + onArtworkBrickClick={(artwork, artworkBrickProps) => { + tracking.trackEvent({ + ...
0ef821d0c9be3170dd8094bb5a4dc78e2111b301
src/extra/DeepPartial.ts
src/extra/DeepPartial.ts
/** * Version of TypeScript's `Partial` type that considers nested properties as optional too, recursively. * * FIXME This type undermines type safety, e.g. the compiler will not check function signatures. An eye must be kept on * https://github.com/Microsoft/TypeScript/issues/12424. */ export type DeepPartial<T> ...
/** * Version of TypeScript's `Partial` type that considers nested properties as optional too, recursively. * * FIXME This type undermines type safety, e.g. the compiler will not check function signatures. An eye must be kept on * https://github.com/Microsoft/TypeScript/issues/12424. * * TODO Consider the alterna...
Add link to alternative implementation
Add link to alternative implementation
TypeScript
agpl-3.0
inad9300/Soil,inad9300/Soil
--- +++ @@ -3,6 +3,8 @@ * * FIXME This type undermines type safety, e.g. the compiler will not check function signatures. An eye must be kept on * https://github.com/Microsoft/TypeScript/issues/12424. + * + * TODO Consider the alternative proposed in https://github.com/Microsoft/TypeScript/issues/12424. */ e...
17e0ce594a81a88f37fabcc39cea6ee2ddb2db29
src/app/recipe.service.ts
src/app/recipe.service.ts
import { Injectable } from '@angular/core'; import { Recipe } from './recipe'; import { RECIPES } from './mock-recipes' @Injectable() export class RecipeService { constructor() { } getRecipes(): Promise<Recipe[]> { return Promise.resolve(RECIPES); } getRecipe(id: number): Promise<Recipe> { return t...
import { Injectable } from '@angular/core'; import { Headers, Http } from '@angular/http'; import { Recipe } from './recipe'; import 'rxjs/add/operator/toPromise'; @Injectable() export class RecipeService { private recipesUrl = '/api/recipes'; constructor(private http: Http) { } getRecipes(): Promise<Recipe...
Read recipes from web API
Read recipes from web API
TypeScript
mpl-2.0
mkozina/cookbook,mkozina/cookbook,mkozina/cookbook
--- +++ @@ -1,20 +1,35 @@ import { Injectable } from '@angular/core'; +import { Headers, Http } from '@angular/http'; import { Recipe } from './recipe'; -import { RECIPES } from './mock-recipes' + +import 'rxjs/add/operator/toPromise'; @Injectable() export class RecipeService { - constructor() { } + priva...
f794cf4dead09652eae471fd751260dad97bb0a7
types/detox/test/detox-jest-setup-tests.ts
types/detox/test/detox-jest-setup-tests.ts
declare var beforeAll: (callback: () => void) => void; declare var beforeEach: (callback: () => void) => void; declare var afterAll: (callback: () => void) => void; import adapter from "detox/runners/jest/adapter"; // Normally the Detox configuration from the project's package.json like so: // const config = require(...
declare var beforeAll: (callback: () => void) => void; declare var beforeEach: (callback: () => void) => void; declare var afterAll: (callback: () => void) => void; import defaultDetox from "detox"; import adapter from "detox/runners/jest/adapter"; // Normally the Detox configuration from the project's package.json l...
Add test for importing default export
[detox] Add test for importing default export
TypeScript
mit
dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,mcliment/DefinitelyTyped,markogresak/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,dsebastien/DefinitelyTyped
--- +++ @@ -2,6 +2,7 @@ declare var beforeEach: (callback: () => void) => void; declare var afterAll: (callback: () => void) => void; +import defaultDetox from "detox"; import adapter from "detox/runners/jest/adapter"; // Normally the Detox configuration from the project's package.json like so: @@ -18,7 +19,7...
c73b9be174158c16f674d25c078cd0534dacfa98
src/vs/editor/contrib/codeAction/codeActionContributions.ts
src/vs/editor/contrib/codeAction/codeActionContributions.ts
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
Fix all action not registered
Fix all action not registered https://github.com/Microsoft/vscode-typescript-tslint-plugin/issues/81
TypeScript
mit
Krzysztof-Cieslak/vscode,eamodio/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,joaomoreno/vscode,the-ress/vscode,the-ress/vscode,Microsoft/vscode,joaomoreno/vscode,hoovercj/vscode,joaomoreno/vscode,the-ress/vscode,eamodio/vscode,microsoft/vscode,joaomoreno/vscode,hoovercj/vscode,hoovercj/vscode,joaomoreno/vscod...
--- +++ @@ -4,7 +4,7 @@ *--------------------------------------------------------------------------------------------*/ import { registerEditorAction, registerEditorCommand, registerEditorContribution } from 'vs/editor/browser/editorExtensions'; -import { CodeActionCommand, OrganizeImportsAction, QuickFixAction,...
9094ea1d86dd3e3134d69dce0c3c5038031d2cd3
app/src/ui/repository-settings/git-ignore.tsx
app/src/ui/repository-settings/git-ignore.tsx
import * as React from 'react' import { DialogContent } from '../dialog' import { TextArea } from '../lib/text-area' import { LinkButton } from '../lib/link-button' interface IGitIgnoreProps { readonly text: string | null readonly isDefaultBranch: boolean readonly onIgnoreTextChanged: (text: string) => void re...
import * as React from 'react' import { DialogContent } from '../dialog' import { TextArea } from '../lib/text-area' import { LinkButton } from '../lib/link-button' interface IGitIgnoreProps { readonly text: string | null readonly isDefaultBranch: boolean readonly onIgnoreTextChanged: (text: string) => void re...
Update message to state changes will only be stored on the current branch
Update message to state changes will only be stored on the current branch
TypeScript
mit
kactus-io/kactus,artivilla/desktop,shiftkey/desktop,say25/desktop,kactus-io/kactus,j-f1/forked-desktop,j-f1/forked-desktop,j-f1/forked-desktop,kactus-io/kactus,shiftkey/desktop,kactus-io/kactus,say25/desktop,say25/desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,desktop/desktop,desktop/desktop,artivilla/deskt...
--- +++ @@ -19,8 +19,8 @@ return ( <p> - You are not on the default branch, so changes here may not be applied to - the repository when you switch branches. + You are not on the default branch, changes here will only be stored + locally on this branch. </p> ) }
64bbfb53bf127469ba4eda285b2fdf90fea4d9d3
src/pipes/stationName.ts
src/pipes/stationName.ts
import { Injectable, Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'stationName', //pure: false // needed to react to array changes }) @Injectable() export class StationName implements PipeTransform { public transform(station: any, showNumber: boolean): string { let nameWithoutNumber = station.na...
import { Injectable, Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'stationName', //pure: false // needed to react to array changes }) @Injectable() export class StationName implements PipeTransform { public transform(station: any, showNumber: boolean): string { let nameWithoutNumber = station.na...
Add no. to station display name
Add no. to station display name
TypeScript
mit
255kb/city-bike-routes,255kb/city-bike-routes,255kb/city-bike-routes
--- +++ @@ -9,7 +9,7 @@ public transform(station: any, showNumber: boolean): string { let nameWithoutNumber = station.name.replace(/[0-9]+ *- */, ''); if (showNumber) { - return `${nameWithoutNumber} (${station.number})`; + return `${nameWithoutNumber} (no. ${station.number})`; } else { ...
6d34f3761e3a355d7327f142c9984ba8bf4afcd1
src/server_manager/infrastructure/crypto.ts
src/server_manager/infrastructure/crypto.ts
// Copyright 2018 The Outline 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 agre...
// Copyright 2018 The Outline 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 agre...
Increase key sized to 4096.
Increase key sized to 4096.
TypeScript
apache-2.0
Jigsaw-Code/outline-server,Jigsaw-Code/outline-server,Jigsaw-Code/outline-server,Jigsaw-Code/outline-server
--- +++ @@ -23,7 +23,7 @@ // Generates an RSA keypair using forge export function generateKeyPair(): Promise<KeyPair> { return new Promise((resolve, reject) => { - forge.pki.rsa.generateKeyPair({bits: 3072, workers: -1}, (forgeError, keypair) => { + forge.pki.rsa.generateKeyPair({bits: 4096, workers: -1}, ...
02ff5f70ab2c134aee031596fa575ee78ac1ed88
tests/helpers.ts
tests/helpers.ts
import fs from 'fs-extra'; import { PixelDiffer } from 'mugshot'; import { dirname, join } from 'path'; /** * Use PixelDiffer to compare two screenshots. * * Assume that PixelDiffer passes all of its tests. */ export async function expectIdenticalScreenshots( screenshot: Buffer | string, baselinePath: string )...
import fs from 'fs-extra'; import { PixelDiffer } from 'mugshot'; import { dirname, join } from 'path'; /** * Use PixelDiffer to compare two screenshots. * * Assume that PixelDiffer passes all of its tests. */ export async function expectIdenticalScreenshots( screenshot: Buffer, baselinePath: string ) { if (...
Remove support for reading screenshots
test: Remove support for reading screenshots This is an artifact of old ways of writing tests.
TypeScript
mit
uberVU/mugshot,uberVU/mugshot
--- +++ @@ -8,10 +8,10 @@ * Assume that PixelDiffer passes all of its tests. */ export async function expectIdenticalScreenshots( - screenshot: Buffer | string, + screenshot: Buffer, baselinePath: string ) { - if (!(await fs.pathExists(baselinePath)) && typeof screenshot !== 'string') { + if (!(await fs....
c8bcc3cf8d7c7635e29833bffed5ae717c4aa771
src/Styleguide/Components/MarketInsights.tsx
src/Styleguide/Components/MarketInsights.tsx
import React from "react" import { Responsive } from "../Utils/Responsive" import { BorderBox } from "../Elements/Box" import { Sans } from "@artsy/palette" import { themeGet } from "styled-system" import styled from "styled-components" const TextWrap = styled.div` display: block; @media ${themeGet("mediaQueries....
import React from "react" import { Responsive } from "../Utils/Responsive" import { Box, BorderBox } from "../Elements/Box" import { Flex } from "../Elements/Flex" import { Sans } from "@artsy/palette" const wrapper = xs => props => xs ? <Flex flexDirection="column" mb={3} {...props} /> : <Box {...props} /> export ...
Update market insights to be RN safe(r)
Update market insights to be RN safe(r)
TypeScript
mit
artsy/reaction,artsy/reaction,artsy/reaction,xtina-starr/reaction,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction-force,xtina-starr/reaction,artsy/reaction-force
--- +++ @@ -1,19 +1,11 @@ import React from "react" import { Responsive } from "../Utils/Responsive" -import { BorderBox } from "../Elements/Box" +import { Box, BorderBox } from "../Elements/Box" +import { Flex } from "../Elements/Flex" import { Sans } from "@artsy/palette" -import { themeGet } from "styled-system...
5a51e25de97eb29a0e876a218c10e0a121b3f4f3
tests/cases/fourslash/formattingCrash.ts
tests/cases/fourslash/formattingCrash.ts
/// <reference path='fourslash.ts' /> /////**/module Default{ ////} format.setOption("PlaceOpenBraceOnNewLineForFunctions", true); format.setOption("PlaceOpenBraceOnNewLineForControlBlocks", true); format.document(); goTo.marker(); verify.currentLineContentIs('module Default');
/// <reference path='fourslash.ts' /> /////**/module Default{ ////} format.setOption("PlaceOpenBraceOnNewLineForFunctions", true); format.setOption("PlaceOpenBraceOnNewLineForControlBlocks", true); format.document(); goTo.marker(); verify.currentLineContentIs('module Default');
Test for crash in formatter
Test for crash in formatter
TypeScript
apache-2.0
mbebenita/shumway.ts,hippich/typescript,fdecampredon/jsx-typescript-old-version,mbrowne/typescript-dci,popravich/typescript,fdecampredon/jsx-typescript-old-version,mbrowne/typescript-dci,mbrowne/typescript-dci,mbebenita/shumway.ts,hippich/typescript,popravich/typescript,popravich/typescript,fdecampredon/jsx-typescript-...
ebbecca947ceb17067a6dee9e97411a2299ba538
test/push-pop.test.ts
test/push-pop.test.ts
import { Expect, TestCase } from "alsatian"; import { Stack } from "../stack"; export class PushPopTestFixture { @TestCase(15) @TestCase(20) @TestCase("some string") @TestCase("another string") @TestCase(false) @TestCase(true) @TestCase(1.25) public afterPushPopShouldReturnValue(value:...
import { Expect, TestCase } from "alsatian"; import { Stack } from "../stack"; export class PushPopTestFixture { @TestCase(15) @TestCase(20) @TestCase("some string") @TestCase("another string") @TestCase(false) @TestCase(true) @TestCase(1.25) public afterPushPopShouldReturnValue(value:...
Test that pop gets the top
Test that pop gets the top
TypeScript
mit
ts-data/stack
--- +++ @@ -20,4 +20,25 @@ Expect(popped).toBe(value); } + @TestCase(15) + @TestCase(20) + @TestCase("some string") + @TestCase("another string") + @TestCase(false) + @TestCase(true) + @TestCase(1.25) + public afterPushPopShouldReturnTopValue(value: any) { + let stack = ...
0b52e3275f2b3b586f0fb29c4a06709164d1b57a
components/responsive-dimensions/responsive-dimensions-directive.ts
components/responsive-dimensions/responsive-dimensions-directive.ts
import { Directive, Inject, Input, OnChanges, SimpleChanges } from 'ng-metadata/core'; import { Screen } from './../screen/screen-service'; import { Ruler } from './../ruler/ruler-service'; @Directive({ selector: '[gj-responsive-dimensions]', }) export class ResponsiveDimensionsDirective implements OnChanges { @Inpu...
import { Directive, Inject, Input, OnChanges, SimpleChanges } from 'ng-metadata/core'; import { Screen } from './../screen/screen-service'; import { Ruler } from './../ruler/ruler-service'; @Directive({ selector: '[gj-responsive-dimensions]', }) export class ResponsiveDimensionsDirective implements OnChanges { @Inpu...
Make responsive dimensions happen immediately.
Make responsive dimensions happen immediately.
TypeScript
mit
gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib
--- +++ @@ -13,7 +13,7 @@ constructor( @Inject( '$element' ) $element: ng.IAugmentedJQuery, - @Inject( '$scope' ) private $scope: ng.IScope, + @Inject( '$scope' ) $scope: ng.IScope, @Inject( 'Screen' ) screen: Screen, @Inject( 'Ruler' ) private ruler: Ruler, ) @@ -31,10 +31,7 @@ private updateDim...
b7c929e50be3476e91dd819e09bf5313502e0b73
src/navigation/AnonymousLayout.tsx
src/navigation/AnonymousLayout.tsx
import { UIView, useCurrentStateAndParams } from '@uirouter/react'; import { FunctionComponent } from 'react'; import { AppFooter } from './AppFooter'; import { CookiesConsent } from './cookies/CookiesConsent'; import { SiteHeader } from './header/SiteHeader'; export const AnonymousLayout: FunctionComponent = () => {...
import { UIView, useCurrentStateAndParams } from '@uirouter/react'; import { FunctionComponent } from 'react'; import { AppFooter } from './AppFooter'; import { CookiesConsent } from './cookies/CookiesConsent'; import { SiteHeader } from './header/SiteHeader'; export const AnonymousLayout: FunctionComponent = () => {...
Add a workaround for checking if header should be hidden.
Add a workaround for checking if header should be hidden.
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -11,7 +11,7 @@ <> <CookiesConsent /> <div className="app-wrap footer-indent"> - {!state.data.hideHeader && <SiteHeader />} + {!state.data?.hideHeader && <SiteHeader />} <UIView className="app-content"></UIView> </div> <AppFooter />
e0ff22834eae4956ce079e60fd000de841c3d5e8
dropbox/src/main/endpoints/WebhookEndpoint.ts
dropbox/src/main/endpoints/WebhookEndpoint.ts
/** Classes in this module handle the protocol-level tasks of handling Events and returning HTTP responses. */ import { event, callback, challenge, uri } from "../Api"; import { pathTo, redirectTo } from "../clients/Http"; import { Notification, NotificationProcessor } from "../services/ServiceApi" const complete = <...
/** Classes in this module handle the protocol-level tasks of handling Events and returning HTTP responses. */ import { event, callback, challenge, uri } from "../Api"; import { pathTo, redirectTo } from "../clients/Http"; import { Notification, NotificationProcessor } from "../services/ServiceApi" const complete = <...
Stop writing notification to console
Stop writing notification to console
TypeScript
apache-2.0
poetix/bentham,poetix/bentham
--- +++ @@ -22,7 +22,6 @@ } notify(cb: callback, event: event) { - console.log(event.body); complete(cb, this.processAndReturn(JSON.parse(event.body))); }
b7f170964880b1e7376853d236912c74ca869f30
spec/laws/must.spec.ts
spec/laws/must.spec.ts
///<reference path="../../typings/main.d.ts" /> import expect = require('expect.js'); import { MustLaw } from 'courtroom/courtroom/laws/must'; describe('MustLaw', () => { describe('constructor', () => { it('should have correct name', function () { let mustFunction = function func () { return...
///<reference path="../../typings/main.d.ts" /> import expect = require('expect.js'); import { MustLaw } from 'courtroom/courtroom/laws/must'; describe('MustLaw', () => { describe('constructor', () => { it('should have correct name', function () { let mustFunction = function func () { return...
Test that function is called
Test that function is called
TypeScript
mit
Jameskmonger/courtroom,Jameskmonger/courtroom
--- +++ @@ -17,4 +17,22 @@ }); + describe('verdict', () => { + + it('should call into function with given string', () => { + let functionCalled = false; + let mustFunction = function func () { + functionCalled = true; + + return false; + ...
be5b7e429d0592770b7ffc8bc7d02be933f19b87
src/lib/Errors.ts
src/lib/Errors.ts
export abstract class NestedError extends Error { readonly inner?: Error readonly id: Number public constructor(message: string, id: Number, inner?: Error) { super(message) this.inner = inner this.id = id } toString(): string { const string = this.name + ": " + th...
export abstract class NestedError extends Error { readonly inner?: Error readonly id: Number public constructor(message: string, id: Number, inner?: Error) { super(message) this.inner = inner this.id = id this.name = this.constructor.name } toString(): string { ...
Set the name of the errors correctly
Set the name of the errors correctly
TypeScript
mit
Belphemur/node-json-db,Belphemur/node-json-db
--- +++ @@ -7,6 +7,7 @@ super(message) this.inner = inner this.id = id + this.name = this.constructor.name } @@ -23,5 +24,4 @@ } export class DataError extends NestedError { - }
f79b8dd26f3ecf2c8d0dbfa22f24e612016cda83
src/api/configuration/get.ts
src/api/configuration/get.ts
import { RequestHandler } from 'express' import { get } from './db' const handler: RequestHandler = async (_, res) => { try { const config = await get() res.json(config) } catch (ex) { res.status(500).json({ message: ex.message || ex }) } } export default handler
import { RequestHandler } from 'express' import { getConfig as get } from './db' const handler: RequestHandler = async (_, res) => { try { const config = await get() res.json(config) } catch (ex) { res.status(500).json({ message: ex.message || ex }) } } export default handler
Use managed config cache in GET config responses
Use managed config cache in GET config responses
TypeScript
mit
the-concierge/concierge,the-concierge/concierge,the-concierge/concierge
--- +++ @@ -1,5 +1,5 @@ import { RequestHandler } from 'express' -import { get } from './db' +import { getConfig as get } from './db' const handler: RequestHandler = async (_, res) => { try {
dd2cdba95e842fe044eac1356f0b0d0916cc621a
src/app/services/settings.ts
src/app/services/settings.ts
import {Injectable} from 'angular2/angular2'; let languages = require('app/lib/languages'); @Injectable() export class Settings { private language: {key: string, value: string}; private availableLanguages: Array<{key: string, value: string}>; constructor() { let defaultLanguage = 'EN'; let language = ...
import {Injectable} from 'angular2/angular2'; let languages = require('app/lib/languages'); @Injectable() export class Settings { private language: {key: string, value: string}; private availableLanguages: Array<{key: string, value: string}>; constructor() { let defaultLanguage = 'US'; let language = ...
Fix wrong initial values for language
Fix wrong initial values for language
TypeScript
mit
dotcs/cueonthespot-web,dotcs/cueonthespot-web,dotcs/cueonthespot-web
--- +++ @@ -9,7 +9,7 @@ constructor() { - let defaultLanguage = 'EN'; + let defaultLanguage = 'US'; let language = localStorage.getItem('language'); this.availableLanguages = languages.map(language => {
3ce1a8ca28fc6fd255b5a7155f6e0c529c4c91e5
lib/config.ts
lib/config.ts
///<reference path=".d.ts"/> import path = require("path"); import util = require("util"); export class StaticConfig implements IStaticConfig { public PROJECT_FILE_NAME = ".tnsproject"; public CLIENT_NAME = "nativescript"; public CLIENT_NAME_ALIAS = "tns"; public ANALYTICS_API_KEY = "5752dabccfc54c4ab82aea9626b73...
///<reference path=".d.ts"/> import path = require("path"); import util = require("util"); export class StaticConfig implements IStaticConfig { public PROJECT_FILE_NAME = ".tnsproject"; public CLIENT_NAME = "NativeScript"; public CLIENT_NAME_ALIAS = "tns"; public ANALYTICS_API_KEY = "5752dabccfc54c4ab82aea9626b73...
Fix message from analytics consent prompt
Fix message from analytics consent prompt
TypeScript
apache-2.0
NativeScript/nativescript-cli,tsvetie/nativescript-cli,NathanaelA/nativescript-cli,tsvetie/nativescript-cli,tsvetie/nativescript-cli,NativeScript/nativescript-cli,jbristowe/nativescript-cli,NathanaelA/nativescript-cli,tsvetie/nativescript-cli,NathanaelA/nativescript-cli,NativeScript/nativescript-cli,e2l3n/nativescript-...
--- +++ @@ -5,7 +5,7 @@ export class StaticConfig implements IStaticConfig { public PROJECT_FILE_NAME = ".tnsproject"; - public CLIENT_NAME = "nativescript"; + public CLIENT_NAME = "NativeScript"; public CLIENT_NAME_ALIAS = "tns"; public ANALYTICS_API_KEY = "5752dabccfc54c4ab82aea9626b7338e"; public TRACK_...
c0362b7a8f67d8d1153ec27e84a2f1b6aef43344
packages/lesswrong/server/bookmarkMutation.ts
packages/lesswrong/server/bookmarkMutation.ts
import { addGraphQLMutation, addGraphQLResolvers } from './vulcan-lib'; import Users from '../lib/collections/users/collection'; import { updateMutator } from './vulcan-lib/mutators'; import * as _ from 'underscore'; addGraphQLMutation('setIsBookmarked(postId: String!, isBookmarked: Boolean!): User!'); addGraphQLResol...
import { addGraphQLMutation, addGraphQLResolvers } from './vulcan-lib'; import Users from '../lib/collections/users/collection'; import { updateMutator } from './vulcan-lib/mutators'; import * as _ from 'underscore'; addGraphQLMutation('setIsBookmarked(postId: String!, isBookmarked: Boolean!): User!'); addGraphQLResol...
Fix crash from oldBookmarksList being null, seen in Sentry
Fix crash from oldBookmarksList being null, seen in Sentry
TypeScript
mit
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2
--- +++ @@ -14,7 +14,7 @@ const oldBookmarksList = currentUser.bookmarkedPostsMetadata; const alreadyBookmarked = _.some(oldBookmarksList, bookmark=>bookmark.postId===postId); const newBookmarksList = (isBookmarked - ? (alreadyBookmarked ? oldBookmarksList : [...oldBookmarksList, {postId}]...
212ed488a1c0c156d41882e31ef7766e974a45bc
app/demo-app.component.ts
app/demo-app.component.ts
import {Component} from 'angular2/core'; import {SvgIconComponent} from './svg-icon.component'; @Component({ selector: 'demo-app', directives: [ SvgIconComponent ], template: ` <div style="width:100px;"> <div style="fill:red;"> <svg-icon src="images/eye.svg"></svg-icon> </div> <div style="fill:green;...
import {Component} from 'angular2/core'; import {SvgIconComponent} from './svg-icon.component'; @Component({ selector: 'demo-app', directives: [ SvgIconComponent ], template: ` <div style="width:100px;"> <svg-icon src="images/eye.svg" style="fill:red;"></svg-icon> <svg-icon src="images/eye.svg" style="fill:...
Remove containing div and style svg-icon directly.
Remove containing div and style svg-icon directly.
TypeScript
mit
czeckd/angular-svg-icon,czeckd/angular2-svg-icon,czeckd/angular2-svg-icon,czeckd/angular-svg-icon,czeckd/angular-svg-icon,czeckd/angular2-svg-icon
--- +++ @@ -6,15 +6,9 @@ directives: [ SvgIconComponent ], template: ` <div style="width:100px;"> - <div style="fill:red;"> - <svg-icon src="images/eye.svg"></svg-icon> - </div> - <div style="fill:green;"> - <svg-icon src="images/eye.svg"></svg-icon> - </div> - <div style="fill:blue;"> - <sv...
a71fb3a46ce2b8cf692a5003b591bdc8eae2cc5a
client/Library/Components/EncounterLibraryViewModel.tsx
client/Library/Components/EncounterLibraryViewModel.tsx
import * as React from "react"; import { ListingViewModel } from "./Listing"; import { EncounterLibrary } from "../EncounterLibrary"; import { SavedEncounter, SavedCombatant } from "../../Encounter/SavedEncounter"; import { Listing } from "../Listing"; import { TrackerViewModel } from "../../TrackerViewModel"; import {...
import * as React from "react"; import { ListingViewModel } from "./Listing"; import { EncounterLibrary } from "../EncounterLibrary"; import { SavedEncounter, SavedCombatant } from "../../Encounter/SavedEncounter"; import { Listing, DedupeByRankAndFilterListings } from "../Listing"; import { TrackerViewModel } from ".....
Call DedupeByRankAndFilterListings to apply filter to listings
Call DedupeByRankAndFilterListings to apply filter to listings
TypeScript
mit
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
--- +++ @@ -2,7 +2,7 @@ import { ListingViewModel } from "./Listing"; import { EncounterLibrary } from "../EncounterLibrary"; import { SavedEncounter, SavedCombatant } from "../../Encounter/SavedEncounter"; -import { Listing } from "../Listing"; +import { Listing, DedupeByRankAndFilterListings } from "../Listing";...
af8bbd9d5de7d49a7a3d6c6106e2472bcd5d8659
web/typescript/main/controls.tsx
web/typescript/main/controls.tsx
/// <reference path="react-global.d.ts" /> class ControlsProps { public controls: any; } class ControlsJSX extends React.Component<ControlsProps, any> { constructor(props: ControlsProps) { super(props); this.clickPlay = this.clickPlay.bind(this); this.clickStop = this.clickStop.bind(t...
/// <reference path="react-global.d.ts" /> class ControlsProps { public controls: any; } class ControlsJSX extends React.Component<ControlsProps, any> { private clickPlay; private clickStop; private clickPrev; private clickNext; constructor(props: ControlsProps) { super(props); ...
Replace 'bind' with local access
Replace 'bind' with local access
TypeScript
apache-2.0
jotak/mipod.x,jotak/mipod.x,jotak/mipod.x,jotak/mipod.x
--- +++ @@ -6,28 +6,17 @@ class ControlsJSX extends React.Component<ControlsProps, any> { + private clickPlay; + private clickStop; + private clickPrev; + private clickNext; + constructor(props: ControlsProps) { super(props); - this.clickPlay = this.clickPlay.bind(this); - ...
9074c44233aa4fa506f855a4367d38baadecc644
src/index.ts
src/index.ts
export { TransitionEvent, TimelineType, IAbstractTransitionControllerOptions, ICreateTimelineOptions, } from 'transition-controller'; // Export util classes export { default as FlowManager } from './lib/util/FlowManager'; export { default as AbstractTransitionController, } from './lib/util/AbstractVueTransit...
export { TransitionEvent, TimelineType, TransitionDirection, IAbstractTransitionControllerOptions, ICreateTimelineOptions, } from 'transition-controller'; // Export util classes export { default as FlowManager } from './lib/util/FlowManager'; export { default as AbstractTransitionController, } from './lib/...
Add the transition direction to the exports
Add the transition direction to the exports
TypeScript
mit
larsvanbraam/vue-transition-component,larsvanbraam/vue-transition-component,larsvanbraam/vue-transition-component
--- +++ @@ -1,6 +1,7 @@ export { TransitionEvent, TimelineType, + TransitionDirection, IAbstractTransitionControllerOptions, ICreateTimelineOptions, } from 'transition-controller';
48954be484e41a6720fe4bdf139da4d3d292fd21
test/enum.ts
test/enum.ts
import { types, unprotect } from "../src" import { test } from "ava" test("should support enums", t => { const TrafficLight = types.model({ color: types.enumeration("Color", ["Red", "Orange", "Green"]) }) t.is(TrafficLight.is({ color: "Green" }), true) t.is(TrafficLight.is({ color: "Blue" }), ...
import { types, unprotect } from "../src" import { test } from "ava" test("should support enums", t => { const TrafficLight = types.model({ color: types.enumeration("Color", ["Red", "Orange", "Green"]) }) t.is(TrafficLight.is({ color: "Green" }), true) t.is(TrafficLight.is({ color: "Blue" }), ...
Fix a test written before the rebase
Fix a test written before the rebase
TypeScript
mit
mobxjs/mobx-state-tree,mweststrate/mobx-state-tree,mobxjs/mobx-state-tree,mweststrate/mobx-state-tree,mobxjs/mobx-state-tree,mobxjs/mobx-state-tree
--- +++ @@ -36,6 +36,6 @@ // Note, any cast needed, compiler should correctly error otherwise t.throws( () => (l.color = "Blue" as any), - /Error while converting `"Blue"` to `Orange | Green | Red`/ + /Error while converting `"Blue"` to `"Orange" | "Green" | "Red"`/ ) })
2e609094a51937b588a16b8b131e214f28abf85e
packages/async-hook-context/src/services/PlatformAsyncHookContext.ts
packages/async-hook-context/src/services/PlatformAsyncHookContext.ts
import {Inject, Injectable, PlatformContext, PlatformHandler} from "@tsed/common"; import {Logger} from "@tsed/logger"; import {AsyncLocalStorage} from "async_hooks"; @Injectable() export class PlatformAsyncHookContext { @Inject() protected logger: Logger; @Inject() protected platformHandler: PlatformHandler;...
import {Inject, Injectable, PlatformContext, PlatformHandler, PlatformTest} from "@tsed/common"; import {Logger} from "@tsed/logger"; import {AsyncLocalStorage} from "async_hooks"; let store: AsyncLocalStorage<PlatformContext>; @Injectable() export class PlatformAsyncHookContext { @Inject() protected logger: Logg...
Fix asyncHookContext when running unit test
fix(async-hook-context): Fix asyncHookContext when running unit test
TypeScript
mit
Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators
--- +++ @@ -1,6 +1,8 @@ -import {Inject, Injectable, PlatformContext, PlatformHandler} from "@tsed/common"; +import {Inject, Injectable, PlatformContext, PlatformHandler, PlatformTest} from "@tsed/common"; import {Logger} from "@tsed/logger"; import {AsyncLocalStorage} from "async_hooks"; + +let store: AsyncLocalSt...
5a50e547ad465c0f340cb029a5e4ed0ddb9594fb
aquarium-web/src/app/api.service.ts
aquarium-web/src/app/api.service.ts
import { Injectable } from '@angular/core'; import { Http, Response, RequestOptions, Headers } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/toPromise'; import 'rxjs/add/operator/catch'; import 'rxjs/add/observable/throw'; @Injectable() ex...
import { Injectable } from '@angular/core'; import { Http, Response, RequestOptions, Headers } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/toPromise'; import 'rxjs/add/operator/catch'; import 'rxjs/add/observable/throw'; @Injectable() ex...
Handle error more graceful. Still update state afterwards.
Handle error more graceful. Still update state afterwards.
TypeScript
mit
Bronkoknorb/hm-aquarium,Bronkoknorb/hm-aquarium,Bronkoknorb/hm-aquarium,Bronkoknorb/hm-aquarium
--- +++ @@ -41,7 +41,11 @@ this.http .post(`${this.baseUrl}/updateController`, JSON.stringify(state), options) .toPromise() - .then(() => this.updateState()); + .then(() => this.updateState()) + .catch((e) => { + console.log(e); + this.updateState() + }); } ...
a140aa90159f19f669bcfcf384d8093fc5f41e35
src/components/SearchTable/SortingForm.tsx
src/components/SearchTable/SortingForm.tsx
import * as React from 'react'; import { Card, FormLayout, Select } from '@shopify/polaris'; import { SortingOption } from '../../types'; import SearchTableButtons from './SearchTableButtons'; export interface Props { readonly value: SortingOption; } export interface Handlers { readonly onChange: (optio...
import * as React from 'react'; import { Card, FormLayout, Select } from '@shopify/polaris'; import { SortingOption } from '../../types'; import SearchTableButtons from './SearchTableButtons'; export interface Props { readonly value: SortingOption; } export interface Handlers { readonly onChange: (optio...
Change sorting select field label.
Change sorting select field label.
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
--- +++ @@ -18,7 +18,7 @@ <Card.Section> <FormLayout> <Select - label="Sorting Options" + label="Sort Results By" id="select-sort-option" name="Sorting Options" options={options}
0af86d7309ebc2914564829c8beb02112d0acc0e
app/app.ts
app/app.ts
import command = require("./lib/command"); import common = require("./lib/common"); import errHandler = require("./lib/errorhandler"); import loader = require("./lib/loader"); import path = require("path"); function patchPromisify() { // Monkey-patch promisify if we are NodeJS <8.0 const nodeVersion = process....
import command = require("./lib/command"); import common = require("./lib/common"); import errHandler = require("./lib/errorhandler"); import loader = require("./lib/loader"); import path = require("path"); function patchPromisify() { // Monkey-patch promisify if we are NodeJS <8.0 or Chakra const nodeVersion ...
Work around a bug preventing TFX from running under node backed by chakra-core.
Work around a bug preventing TFX from running under node backed by chakra-core.
TypeScript
mit
Microsoft/tfs-cli,grawcho/tfs-cli,grawcho/tfs-cli,Microsoft/tfs-cli,grawcho/tfs-cli
--- +++ @@ -5,9 +5,18 @@ import path = require("path"); function patchPromisify() { - // Monkey-patch promisify if we are NodeJS <8.0 + // Monkey-patch promisify if we are NodeJS <8.0 or Chakra const nodeVersion = process.version.substr(1); - if (parseInt(nodeVersion.charAt(0)) < 8) { + + // Chak...
1e46a53375e13b73042a5a7796f4204f40858a17
src/ts/model/countersStore.ts
src/ts/model/countersStore.ts
/// <reference path="../core/model" /> namespace YJMCNT { export interface CountersSchema { id: string, value: number, defaltValue: number, } /** * Counter */ export class CountersStore extends Core.Model { storeName = "counters"; constructor() { ...
/// <reference path="../core/model" /> namespace YJMCNT { export interface CountersSchema { id: string, value: number, defaltValue: number, } /** * Counter */ export class CountersStore extends Core.Model { storeName = "counters"; constructor() { ...
Add method: get all counters from store
Add method: get all counters from store
TypeScript
mit
yajamon/chrome-ext-counter,yajamon/chrome-ext-counter,yajamon/chrome-ext-counter
--- +++ @@ -29,5 +29,28 @@ this.notifyObservers(); }; } + + /** + * getAll + */ + public getAll(callback: (counterList: Counter[]) => void) { + var counters: Counter[] = []; + var transaction = this.db.transaction([this.storeNa...
e1facf9e0689d38b7f6747aecc36511c020f2d51
packages/tux/src/components/fields/Dropdown.tsx
packages/tux/src/components/fields/Dropdown.tsx
import React, { Component } from 'react' import { tuxColors, tuxInputStyles } from '../../styles' interface Dropdown { id: string value: string label: string helpText: string dropdownValues: Array<string> onChange: (e: React.FormEvent<any>) => void } export interface State { selectedValue: string | null...
import React, { Component } from 'react' import { tuxColors, tuxInputStyles } from '../../styles' interface Dropdown { id: string value: string label: string helpText: string dropdownValues: Array<string> onChange: (e: React.FormEvent<any>) => void } export interface State { selectedValue: string | unde...
Use 'value' instead of 'defaultValue'
Use 'value' instead of 'defaultValue'
TypeScript
mit
aranja/tux,aranja/tux,aranja/tux
--- +++ @@ -11,17 +11,17 @@ } export interface State { - selectedValue: string | null, + selectedValue: string | undefined, } class Dropdown extends Component<any, State> { state: State = { - selectedValue: null, + selectedValue: undefined, } componentDidMount() { const { value } = thi...
c7f210ff7023d17b788b4fc408878544c94bc99e
app/elements/element.component.ts
app/elements/element.component.ts
import { Component, Input, Output, EventEmitter, OnChanges } from '@angular/core'; import { Element } from './element'; @Component({ moduleId: module.id, selector: 'pt-element', templateUrl: 'element.component.html', styleUrls: ['element.component.css'] }) export class ElementComponent implements OnChang...
import { Component, Input, Output, EventEmitter, DoCheck } from '@angular/core'; import { Element } from './element'; @Component({ moduleId: module.id, selector: 'pt-element', templateUrl: 'element.component.html', styleUrls: ['element.component.css'] }) export class ElementComponent implements DoCheck {...
Add working transition metal highlight
Add working transition metal highlight
TypeScript
mit
joyceky/interactive-periodic-table,joyceky/interactive-periodic-table,joyceky/interactive-periodic-table
--- +++ @@ -1,4 +1,4 @@ -import { Component, Input, Output, EventEmitter, OnChanges } from '@angular/core'; +import { Component, Input, Output, EventEmitter, DoCheck } from '@angular/core'; import { Element } from './element'; @Component({ @@ -9,7 +9,7 @@ }) -export class ElementComponent implements OnChan...
b102312ac99faed18dde95f5b5cca898625398d4
types/htmlbars-inline-precompile/index.d.ts
types/htmlbars-inline-precompile/index.d.ts
// Type definitions for htmlbars-inline-precompile 1.0 // Project: ember-cli-htmlbars-inline-precompile // Definitions by: Chris Krycho <https://github.com/chriskrycho> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // This is a bit of a funky one: it's from a [Babel plugin], but is exported for //...
// Type definitions for htmlbars-inline-precompile 1.0 // Project: https://github.com/ember-cli/ember-cli-htmlbars-inline-precompile // Definitions by: Chris Krycho <https://github.com/chriskrycho> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // This is a bit of a funky one: it's from a [Babel pl...
Change project to URL for htmlbars-inline-precompile.
Change project to URL for htmlbars-inline-precompile.
TypeScript
mit
benishouga/DefinitelyTyped,ashwinr/DefinitelyTyped,georgemarshall/DefinitelyTyped,rolandzwaga/DefinitelyTyped,AgentME/DefinitelyTyped,zuzusik/DefinitelyTyped,nycdotnet/DefinitelyTyped,dsebastien/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,arusakov/DefinitelyTyped,rolandzwaga/DefinitelyTyped,aciccarello/DefinitelyTyped,...
--- +++ @@ -1,5 +1,5 @@ // Type definitions for htmlbars-inline-precompile 1.0 -// Project: ember-cli-htmlbars-inline-precompile +// Project: https://github.com/ember-cli/ember-cli-htmlbars-inline-precompile // Definitions by: Chris Krycho <https://github.com/chriskrycho> // Definitions: https://github.com/Definit...
e3296fbb4c729f61f1a1394ea839412b83cd7269
client/src/queryEditor/DocumentTitle.ts
client/src/queryEditor/DocumentTitle.ts
import { useEffect } from 'react'; import { useSessionQueryName } from '../stores/editor-store'; /** * This component isolates the work of updating the document title on query name changes. * This is a component to prevent the main QueryEditor component from rendering on name change. * @param {object} props */ fun...
import { useSessionQueryName } from '../stores/editor-store'; /** * This component isolates the work of updating the document title on query name changes. * This is a component to prevent the main QueryEditor component from rendering on name change. * @param {object} props */ function DocumentTitle({ queryId }: { ...
Fix document title not changing on sign in
Fix document title not changing on sign in
TypeScript
mit
rickbergfalk/sqlpad,rickbergfalk/sqlpad,rickbergfalk/sqlpad
--- +++ @@ -1,4 +1,3 @@ -import { useEffect } from 'react'; import { useSessionQueryName } from '../stores/editor-store'; /** @@ -10,9 +9,10 @@ const queryName = useSessionQueryName(); const title = queryId === '' ? 'New query' : queryName; - useEffect(() => { + if (document.title !== title) { + cons...
468522f07b6b465fb54c4d718f7892e1c6988875
test/functional/migrations/show-command/command.ts
test/functional/migrations/show-command/command.ts
import "reflect-metadata"; import {createTestingConnections, closeTestingConnections, reloadTestingDatabases} from "../../../utils/test-utils"; import {Connection} from "../../../../src/connection/Connection"; describe("migrations > show command", () => { let connections: Connection[]; before(async () => conne...
import "reflect-metadata"; import {createTestingConnections, closeTestingConnections, reloadTestingDatabases} from "../../../utils/test-utils"; import {Connection} from "../../../../src/connection/Connection"; describe("migrations > show command", () => { let connections: Connection[]; before(async () => conne...
Revert "enable test for all db drivers"
Revert "enable test for all db drivers" This reverts commit ff505cc98c93bb2132571ce23f86af116f8ea43a.
TypeScript
mit
typeorm/typeorm,typeorm/typeorm,typeorm/typeorm,gintsgints/typeorm,gintsgints/typeorm
--- +++ @@ -6,7 +6,7 @@ let connections: Connection[]; before(async () => connections = await createTestingConnections({ migrations: [__dirname + "/migration/*.js"], - enabledDrivers: ["mysql", "mariadb", "oracle", "mssql", "sqljs", "sqlite", "postgres"], + enabledDrivers: ["postgres"...
88a59afc31807fac8a09f8edf89b31b22161ab96
connect-flash/connect-flash-tests.ts
connect-flash/connect-flash-tests.ts
/// <reference path="./connect-flash.d.ts" /> import express = require('express'); import flash = require('connect-flash'); var app = express(); app.use(flash()); app.use(flash({ unsafe: false })); app.use(function(req: Express.Request, res, next) { req.flash('Message'); req.flash('info', 'Message'); })...
/// <reference path="./connect-flash.d.ts" /> import express = require('express'); import flash = require('connect-flash'); var app = express(); app.use(flash()); app.use(flash({ unsafe: false })); app.use(function(req: Express.Request, res: Express.Response, next: Function) { req.flash('Message'); req....
Fix Travis CI failing because of "error TS7006: Parameter 'res' and 'next' implicitly have an 'any' type."
Fix Travis CI failing because of "error TS7006: Parameter 'res' and 'next' implicitly have an 'any' type."
TypeScript
mit
dpsthree/DefinitelyTyped,AGBrown/DefinitelyTyped-ABContrib,GregOnNet/DefinitelyTyped,ajtowf/DefinitelyTyped,Karabur/DefinitelyTyped,forumone/DefinitelyTyped,Deathspike/DefinitelyTyped,billccn/DefinitelyTyped,donnut/DefinitelyTyped,scriby/DefinitelyTyped,gregoryagu/DefinitelyTyped,brainded/DefinitelyTyped,abmohan/Defini...
--- +++ @@ -10,7 +10,7 @@ unsafe: false })); -app.use(function(req: Express.Request, res, next) { +app.use(function(req: Express.Request, res: Express.Response, next: Function) { req.flash('Message'); req.flash('info', 'Message'); });
c05248057e9cbdc48382ecb58ec38e600d178673
packages/shared/lib/authentication/cryptoHelper.ts
packages/shared/lib/authentication/cryptoHelper.ts
import mergeUint8Arrays from '@proton/utils/mergeUint8Arrays'; const IV_LENGTH = 16; const ALGORITHM = 'AES-GCM'; export const getKey = (key: Uint8Array, keyUsage: KeyUsage[] = ['decrypt', 'encrypt']) => { return window.crypto.subtle.importKey('raw', key.buffer, ALGORITHM, false, keyUsage); }; export const encry...
import mergeUint8Arrays from '@proton/utils/mergeUint8Arrays'; const IV_LENGTH = 16; const ALGORITHM = 'AES-GCM'; export const getKey = (key: Uint8Array, keyUsage: KeyUsage[] = ['decrypt', 'encrypt']) => { return crypto.subtle.importKey('raw', key.buffer, ALGORITHM, false, keyUsage); }; export const encryptData ...
Replace window.crypto references in crypto helpers
Replace window.crypto references in crypto helpers - Agnostic global access to crypto (needed for usage in service workers)
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -4,12 +4,12 @@ const ALGORITHM = 'AES-GCM'; export const getKey = (key: Uint8Array, keyUsage: KeyUsage[] = ['decrypt', 'encrypt']) => { - return window.crypto.subtle.importKey('raw', key.buffer, ALGORITHM, false, keyUsage); + return crypto.subtle.importKey('raw', key.buffer, ALGORITHM, false, key...
e45a7268501b63562d9c8591c437212c589716b5
src/index.tsx
src/index.tsx
import "react-app-polyfill/ie9"; import "react-app-polyfill/stable"; import "core-js/es/array/is-array"; import "core-js/es/map"; import "core-js/es/set"; import "core-js/es/object/define-property"; import "core-js/es/object/keys"; import "core-js/es/object/set-prototype-of"; import "./polyfills/classlist"; import R...
import "react-app-polyfill/ie9"; import "react-app-polyfill/stable"; import "core-js/es/array/is-array"; import "core-js/es/map"; import "core-js/es/set"; import "core-js/es/object/define-property"; import "core-js/es/object/keys"; import "core-js/es/object/set-prototype-of"; import "./polyfills/classlist"; import R...
Fix query of widgets to only get direct children
Fix query of widgets to only get direct children
TypeScript
agpl-3.0
ctrlo/GADS,ctrlo/GADS,ctrlo/GADS,ctrlo/GADS,ctrlo/GADS
--- +++ @@ -16,7 +16,6 @@ import ApiClient from "./api"; import "./index.scss"; -// grid configuration const gridConfig = { cols: 12, margin: [10, 10], @@ -28,7 +27,7 @@ if (root) { root.className = ""; - const widgetsEls = Array.prototype.slice.call(root!.querySelectorAll("div")); + const widgetsE...
75b5819d73266e9efbc1d18e2368062900679b66
server/src/client/client-controller.ts
server/src/client/client-controller.ts
import express = require('express'); import path = require('path'); import fs = require('fs'); import edge = require('edge'); const app = require('../application'); const createClientEdge = edge.func(function () {/* async (input) => { return ".NET Welcomes " + input.ToString(); } */}); export function creat...
import express = require('express'); import path = require('path'); import fs = require('fs'); import edge = require('edge'); const app = require('../application'); const createClientEdge = edge.func(function () {/* async (input) => { return ".NET Welcomes " + input.ToString(); } */}); export function creat...
Call the create client edge function
Call the create client edge function
TypeScript
mit
RobertoMSousa/node-api-edge,RobertoMSousa/node-api-edge
--- +++ @@ -17,7 +17,13 @@ export function createNewClient(req: express.Request, res: express.Response): void { - console.log('res body-->', req.body);//roberto - res.status(200).send('New client added'); - return; + createClientEdge(null, function (error, result) { + if (error) { + res.status(500).send('Erro...
17fdb693a1eae0058f56eb5116dade5eca3d4b44
lib/msal-core/test/ScopeSet.spec.ts
lib/msal-core/test/ScopeSet.spec.ts
import { expect } from "chai"; import sinon from "sinon"; import { ScopeSet } from "../src/ScopeSet"; describe("ScopeSet.ts Unit Tests", () => { it("tests trimAndConvertArrayToLowerCase", () => { const scopeSet = ["S1", " S2", " S3 "]; expect(ScopeSet.trimAndConvertArrayToLowerCase(scopeSet)).to.b...
import { expect } from "chai"; import sinon from "sinon"; import { ScopeSet } from "../src/ScopeSet"; describe("ScopeSet.ts Unit Tests", () => { it("tests trimAndConvertArrayToLowerCase", () => { const scopeSet = ["S1", " S2", " S3 "]; expect(ScopeSet.trimAndConvertArrayToLowerCase(scopeSet)).to.b...
Add unit test for trimScopes
Add unit test for trimScopes
TypeScript
mit
AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication...
--- +++ @@ -12,5 +12,10 @@ it("tests trimAndConvertToLowerCase", () => { const scope = " S1 "; expect(ScopeSet.trimAndConvertToLowerCase(scope)).to.be.eq("s1"); - }) + }); + + it("tests trimScopes", () => { + const scopeSet = ["S1", " S2 ", " S3 "]; + expect(ScopeSet.tri...
eae74da28d31bbbceca2e3dfcdfd8c9788bf6683
packages/bitcore-node/test/unit/logger.spec.ts
packages/bitcore-node/test/unit/logger.spec.ts
import { expect } from 'chai'; import { unitAfterHelper, unitBeforeHelper } from '../helpers/unit'; describe('logger', function() { before(unitBeforeHelper); after(unitAfterHelper); it('should have a test which runs', function() { expect(true).to.equal(true); }); });
import { expect } from 'chai'; describe('logger', function() { it('should have a test which runs', function() { expect(true).to.equal(true); }); });
Remove before and after for empty tests
Remove before and after for empty tests
TypeScript
mit
martindale/bitcore,bitpay/bitcore,martindale/bitcore,bitpay/bitcore,bitpay/bitcore,bitpay/bitcore,martindale/bitcore,martindale/bitcore
--- +++ @@ -1,10 +1,6 @@ import { expect } from 'chai'; -import { unitAfterHelper, unitBeforeHelper } from '../helpers/unit'; describe('logger', function() { - before(unitBeforeHelper); - after(unitAfterHelper); - it('should have a test which runs', function() { expect(true).to.equal(true); });
b1ff1b71e5358cef21162f89f5ab3e6b25b4f574
src/app/data.service.ts
src/app/data.service.ts
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { HttpHeaders } from '@angular/common/http'; interface ItemsResponse { name: string; string: string; } @Injectable() export class DataService { url = 'http://localhost/artezian-info-web/src/assets/data.php'; ...
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { HttpHeaders } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/map'; import { MenuItem } from './interfaces/menu-item'; @Injectable() export class DataService...
Add get menu data to data servise
Add get menu data to data servise
TypeScript
mit
KeJSaR/artezian-info-web,KeJSaR/artezian-info-web,KeJSaR/artezian-info-web,KeJSaR/artezian-info-web
--- +++ @@ -1,37 +1,28 @@ -import { Injectable } from '@angular/core'; -import { HttpClient } from '@angular/common/http'; +import { Injectable } from '@angular/core'; +import { HttpClient } from '@angular/common/http'; import { HttpHeaders } from '@angular/common/http'; +import { Observable } from 'rxjs/Observab...
3245edf9ea36f36d6573c6f35dbb0fa3686c235e
tests/main.ts
tests/main.ts
import * as fs from 'fs'; import build from './build'; import * as parseArgs from 'minimist'; for (let arg of parseArgs(process.argv.slice(2))._) { console.log(build(fs.readFileSync(arg, {encoding:'utf8'}))); }
import * as fs from 'fs'; import build from './build'; import * as parseArgs from 'minimist'; for (let inFile of parseArgs(process.argv.slice(2))._) { let outFile = inFile.substring(0, inFile.length - ".in.hledger".length) + ".want"; let converted = build(fs.readFileSync(inFile, {encoding:'utf8'})); fs.writeFile...
Make it possible to convert an entire directory at once
Make it possible to convert an entire directory at once $ ts-node tests/main.ts tests/cases/**.in.hledger
TypeScript
mit
mhansen/hledger-vscode
--- +++ @@ -2,6 +2,8 @@ import build from './build'; import * as parseArgs from 'minimist'; -for (let arg of parseArgs(process.argv.slice(2))._) { - console.log(build(fs.readFileSync(arg, {encoding:'utf8'}))); +for (let inFile of parseArgs(process.argv.slice(2))._) { + let outFile = inFile.substring(0, inFile.l...
5cc1c7d5121c05ae464f585eadf59212743683d2
src/background-script/quick-and-dirty-migrations.ts
src/background-script/quick-and-dirty-migrations.ts
import { Dexie } from 'src/search/types' export interface Migrations { [storageKey: string]: (db: Dexie) => Promise<void> } export const migrations: Migrations = { /** * If lastEdited is undefined, then set it to createdWhen value. */ 'annots-created-when-to-last-edited': async db => { a...
import { Dexie } from 'src/search/types' export interface Migrations { [storageKey: string]: (db: Dexie) => Promise<void> } export const migrations: Migrations = { /** * If lastEdited is undefined, then set it to createdWhen value. */ 'annots-created-when-to-last-edited': async db => { a...
Fix bug with quick and dirty migration on upgrade
Fix bug with quick and dirty migration on upgrade
TypeScript
mit
WorldBrain/WebMemex,WorldBrain/WebMemex
--- +++ @@ -12,7 +12,12 @@ await db .table('annotations') .toCollection() - .filter(annot => annot.lastEdited == null) + .filter( + annot => + annot.lastEdited == null || + (Object.keys(annot.lastEdited).leng...
4a8d4677319d3e65a2bf4435d7e15790faed5548
front_end/ui/components/helpers/component-server-setup.ts
front_end/ui/components/helpers/component-server-setup.ts
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import type * as Common from '../../../core/common/common.js'; import * as Root from '../../../core/root/root.js'; import * as ThemeSupport from '../../le...
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import type * as Common from '../../../core/common/common.js'; import * as Root from '../../../core/root/root.js'; import * as ThemeSupport from '../../le...
Allow component server setup to take a url prefix for resources
Allow component server setup to take a url prefix for resources Bug: none Change-Id: I206766a1ff9bb69c3802671aceb8e5c28545c4cf Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3109530 Commit-Queue: Jack Franklin <993fcadce4d04090da2fefd557a0995e7966c8d5@chromium.org> Commit-Queue: T...
TypeScript
bsd-3-clause
ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend
--- +++ @@ -12,7 +12,7 @@ * Houses any setup required to run the component docs server. Currently this is * only populating the runtime CSS cache but may be extended in the future. */ -export async function setup(): Promise<void> { +export async function setup(resourcesPrefix = ''): Promise<void> { const set...
5a5c3ab58977e0945004dbc7c148a346da4423f8
wegas-app/src/main/webapp/2/src/data/Reducer/reducers.ts
wegas-app/src/main/webapp/2/src/data/Reducer/reducers.ts
import { Immutable } from 'immer'; import games, { GameState } from './game'; import gameModels, { GameModelState } from './gameModel'; import global, { GlobalState } from './globalState'; import pages, { PageState } from './pageState'; import players, { PlayerState } from './player'; import teams, { TeamState } from '...
import gameModels, { GameModelState } from './gameModel'; import variableDescriptors, { VariableDescriptorState, } from './variableDescriptor'; import variableInstances, { VariableInstanceState } from './variableInstance'; import global, { GlobalState } from './globalState'; import pages, { PageState } from './pageSt...
Revert "State Immutable (deep readonly) instead of RO"
Revert "State Immutable (deep readonly) instead of RO" This reverts commit 8bf9bdead9626ef3ce31c82a7e7bc0aec5b3c61a.
TypeScript
mit
Heigvd/Wegas,Heigvd/Wegas,Heigvd/Wegas,Heigvd/Wegas,Heigvd/Wegas
--- +++ @@ -1,22 +1,23 @@ -import { Immutable } from 'immer'; -import games, { GameState } from './game'; import gameModels, { GameModelState } from './gameModel'; +import variableDescriptors, { + VariableDescriptorState, +} from './variableDescriptor'; +import variableInstances, { VariableInstanceState } from './v...
c7172a2a6808e65cf26fb67f63f88523f03be901
test/e2e/animations/animations_test.ts
test/e2e/animations/animations_test.ts
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import {describe, it} from 'mocha'; import {getBrowserAndPages} from '../../shared/helper.js'; import {navigateToSiteWithAnimation, waitForAnimationConte...
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import {describe, it} from 'mocha'; import {getBrowserAndPages} from '../../shared/helper.js'; import {navigateToSiteWithAnimation, waitForAnimationConte...
Disable the flaky Animations Panel test
Disable the flaky Animations Panel test The test is turning the tree red. TBR=dba8716ee7f8d16236046f74d2167cb94410f6ed@chromium.org No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: chromium:1082735 Change-Id: I01454ab9b25a72edf527c1d61b5a46fcda369b79 Reviewed-on: https://chromium-review.googlesource.com/c/d...
TypeScript
bsd-3-clause
ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend
--- +++ @@ -7,7 +7,7 @@ import {getBrowserAndPages} from '../../shared/helper.js'; import {navigateToSiteWithAnimation, waitForAnimationContent, waitForAnimationsPanelToLoad} from '../helpers/animations-helpers.js'; -describe('The Animations Panel', async () => { +describe.skip('[crbug.com/1082735] The Animations...
6100fc175410ba512d81e05c3b9993148bf94b1f
src/behaviors/getSourceContentRelativePaths.ts
src/behaviors/getSourceContentRelativePaths.ts
// Copyright (c) Rotorz Limited. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root. import glob = require("glob"); import {Observable} from "rxjs"; import {Environment} from "../Environment"; export function getSourceContentRelativePaths(env: Environment): Observable<stri...
// Copyright (c) Rotorz Limited. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root. import glob = require("glob"); import {Observable} from "rxjs"; import {Environment} from "../Environment"; export function getSourceContentRelativePaths(env: Environment): Observable<stri...
Update to workaround function removal in beta 4 of 'rxjs'.
Update to workaround function removal in beta 4 of 'rxjs'.
TypeScript
mit
webreed/webreed-core,webreed/webreed-core
--- +++ @@ -19,5 +19,5 @@ nodir: true }); - return Observable.fromArray(results); + return Observable.from<string>(results); }
0ddbd18710a9228ba3a87a3525166c7bd62a948b
lib/util/class_creator.ts
lib/util/class_creator.ts
var _ = require("lodash"); var CreateClass = function(initFunction, memberMap) { _.forOwn(memberMap, function(value, key) { initFunction.prototype[key] = value; }); return initFunction; } var CreateSubClass = function(baseKlass, initFunction, memberMap) { initFunction.prototype = Object.create(baseKlass.p...
var CreateClass = function(initFunction, memberMap) { for (mem in memberMap) { if (memberMap.hasOwnProperty(mem)) { initFunction.prototype[mem] = memberMap[mem]; } } return initFunction; } var CreateSubClass = function(baseKlass, initFunction, memberMap) { initFunction.prototype = Object.create(b...
Revert "Converted memberMap traversal to use lodash"
Revert "Converted memberMap traversal to use lodash" This reverts commit 0335b3960c8e6b9436973d0e8163d549178a179c.
TypeScript
mit
severn-everett/node_university
--- +++ @@ -1,18 +1,20 @@ -var _ = require("lodash"); - var CreateClass = function(initFunction, memberMap) { - _.forOwn(memberMap, function(value, key) { - initFunction.prototype[key] = value; - }); + for (mem in memberMap) { + if (memberMap.hasOwnProperty(mem)) { + initFunction.prototype[mem] = membe...
c1a8f5411121ef21039c4fbede7e624b06a560f0
src/xrm-mock-generator/xrm-mock-generator.ts
src/xrm-mock-generator/xrm-mock-generator.ts
import * as XrmMock from "../xrm-mock/index"; import Attribute from "./attribute"; import Context from "./context"; import Control from "./control"; import Form from "./form"; import Ui from "./ui"; import WebApi from "./webapi"; declare var global: any; export class XrmMockGenerator { public static Attribute: Attr...
import * as XrmMock from "../xrm-mock/index"; import Attribute from "./attribute"; import Context from "./context"; import Control from "./control"; import Form from "./form"; import Ui from "./ui"; import WebApi from "./webapi"; declare var global: any; export class XrmMockGenerator { public static Attribute: Attr...
Add interface for optional parameter for initialize method
Add interface for optional parameter for initialize method
TypeScript
mit
camelCaseDave/xrm-mock,camelCaseDave/xrm-mock
--- +++ @@ -16,13 +16,13 @@ public static Ui: Ui = new Ui(); public static WebApi: WebApi = new WebApi(); - public static initialise(entityName: string): XrmMock.XrmStaticMock { + public static initialise(entity: IEntity = this.defaultEntity): XrmMock.XrmStaticMock { const context = Context.createConte...
6b27b37569645bcdf5ff2346ca92bea103ba6a8d
src/app/shared/services/data.service.ts
src/app/shared/services/data.service.ts
import { Injectable } from 'angular2/core'; import { Http, Response } from 'angular2/http'; //Grab everything with import 'rxjs/Rx'; import {Observable} from 'rxjs/Observable'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/catch'; @Injectable() export class DataService { baseUrl: string = ''; ...
import { Injectable } from 'angular2/core'; import { Http, Response } from 'angular2/http'; //Grab everything with import 'rxjs/Rx'; import {Observable} from 'rxjs/Observable'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/catch'; @Injectable() export class DataService { baseUrl: string = ''; ...
Change private http member to _http
Change private http member to _http
TypeScript
mit
m-williams/Angular2-JumpStart,m-williams/Angular2-JumpStart,DanWahlin/Angular-JumpStart,born2net/ng2-minimal,DanWahlin/Angular2-JumpStart,DanWahlin/Angular2-JumpStart,m-williams/Angular2-JumpStart,DanWahlin/Angular2-JumpStart,DanWahlin/Angular-JumpStart,born2net/ng2-minimal,DanWahlin/Angular-JumpStart,born2net/ng2-mini...
--- +++ @@ -12,16 +12,16 @@ baseUrl: string = ''; - constructor(private http: Http) { } + constructor(private _http: Http) { } getCustomers() { - return this.http.get(this.baseUrl + 'customers.json') + return this._http.get(this.baseUrl + 'customers.json') ...
d7ddf2018c7f1e1f43f1d65ea89368a6a852aa2f
types/filenamify/filenamify-tests.ts
types/filenamify/filenamify-tests.ts
import * as filenamify from 'filenamify'; filenamify('<foo/bar>'); // => 'foo!bar' filenamify('foo:"bar"', {replacement: '🐴'}); // => 'foo🐴bar' filenamify.path('/some/!path'); // => '/some/path'
import filenamify = require('filenamify'); filenamify('<foo/bar>'); // => 'foo!bar' filenamify('foo:"bar"', {replacement: '🐴'}); // => 'foo🐴bar' filenamify.path('/some/!path'); // => '/some/path'
Update import expression in filenamify-test.ts
Update import expression in filenamify-test.ts See here for the futher information : https://github.com/DefinitelyTyped/DefinitelyTyped/pull/19550#discussion_r137169189
TypeScript
mit
georgemarshall/DefinitelyTyped,mcliment/DefinitelyTyped,zuzusik/DefinitelyTyped,AgentME/DefinitelyTyped,rolandzwaga/DefinitelyTyped,AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,one-pieces/DefinitelyTyped,jimthedev/DefinitelyTyped,magny/DefinitelyTyped,aciccarello/DefinitelyTyped,chrootsu/DefinitelyTyped,AbraaoAl...
--- +++ @@ -1,4 +1,4 @@ -import * as filenamify from 'filenamify'; +import filenamify = require('filenamify'); filenamify('<foo/bar>'); // => 'foo!bar'
a9ce6c5f7e7e916e6197927b8bb0b881c2a610e8
src/v2/components/ChannelFollowers/queries/channelFollowers.ts
src/v2/components/ChannelFollowers/queries/channelFollowers.ts
import gql from 'graphql-tag' import identifiableCellFragment from 'v2/components/Cell/components/Identifiable/fragments/identifiableCell' export const channelFollowersQuery = gql` query ChannelFollowers($id: ID!, $page: Int, $per: Int) { channel(id: $id) { followers(page: $page, per: $per) { __ty...
import gql from 'graphql-tag' import identifiableCellFragment from 'v2/components/Cell/components/Identifiable/fragments/identifiableCell' export const channelFollowersQuery = gql` query ChannelFollowers($id: ID!, $page: Int, $per: Int) { channel(id: $id) { id __typename followers(page: $page,...
Add id and typename to channel followers
Add id and typename to channel followers
TypeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
--- +++ @@ -5,6 +5,8 @@ export const channelFollowersQuery = gql` query ChannelFollowers($id: ID!, $page: Int, $per: Int) { channel(id: $id) { + id + __typename followers(page: $page, per: $per) { __typename ...IdentifiableCell
ce79e2875ddc6a21adcab7f1df3e132d7c56be0e
app/scripts/history/view.tsx
app/scripts/history/view.tsx
import * as React from 'react'; import { Table, TableBody, TableRow, TableRowColumn } from 'material-ui'; import { formatDateFull } from '../dates'; import { Reading } from '../model'; export interface ViewProps { data: Reading; } export default (props: ViewProps) => ( <Table> <TableBody displayRowC...
import * as React from 'react'; import { Table, TableBody, TableRow, TableRowColumn } from 'material-ui'; import { formatDateFull } from '../dates'; import { Reading } from '../model'; export interface ViewProps { data: Reading; } export default (props: ViewProps) => ( <Table selectable={ false }> <...
Allow selecting text inside tables
Allow selecting text inside tables
TypeScript
mit
mthmulders/hyperion-web,mthmulders/hyperion-web,mthmulders/hyperion-web
--- +++ @@ -10,7 +10,7 @@ } export default (props: ViewProps) => ( - <Table> + <Table selectable={ false }> <TableBody displayRowCheckbox={ false }> <TableRow> <TableRowColumn>Date recorded</TableRowColumn>
5e77c43f29c3d90055297610099028e73ede11fc
src/components/controls/intent.ts
src/components/controls/intent.ts
import xs from 'xstream'; export interface Actions { currencyChangeAction$: xs<string>; } export default function intent(domSource): Actions { const currencyChangeAction$: xs<string> = domSource .select('.currency-select') .events('change') .map(inputEv => (inputEv.target as HTMLInputElement).value); ...
import xs from 'xstream'; import { styles } from './styles'; export interface Actions { currencyChangeAction$: xs<string>; } export default function intent(domSource): Actions { const currencyChangeAction$: xs<string> = domSource .select(`.${styles.currencySelect}`) .events('change') .map(inputEv => (...
Fix the broken currency-select selector
Fix the broken currency-select selector
TypeScript
mit
olpeh/meeting-price-calculator,olpeh/meeting-price-calculator,olpeh/meeting-price-calculator,olpeh/meeting-price-calculator
--- +++ @@ -1,4 +1,5 @@ import xs from 'xstream'; +import { styles } from './styles'; export interface Actions { currencyChangeAction$: xs<string>; @@ -6,7 +7,7 @@ export default function intent(domSource): Actions { const currencyChangeAction$: xs<string> = domSource - .select('.currency-select') + ...
72c6db1c08777bafe028b78e9a00cd5370fc6486
test/browser/MongoUtil.ts
test/browser/MongoUtil.ts
import mongoose from "mongoose"; import {isProd} from "../server/util" import { IUser, User, LoginType } from "../server/models/User" import bcrypt from "bcryptjs" export async function clearDatabase() { if (isProd()) { throw new Error("How about you stop calling clearDatabase in production!") } console.log...
import mongoose from "mongoose"; import {isProd} from "../../src/server/util" import { IUser, User, LoginType } from "../../src/server/models/User" import bcrypt from "bcryptjs" export async function clearDatabase() { if (isProd()) { throw new Error("How about you stop calling clearDatabase in production!") } ...
Fix build and give a suspicious look at vscode not giving warning for import paths.
Fix build and give a suspicious look at vscode not giving warning for import paths.
TypeScript
mit
Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki
--- +++ @@ -1,6 +1,6 @@ import mongoose from "mongoose"; -import {isProd} from "../server/util" -import { IUser, User, LoginType } from "../server/models/User" +import {isProd} from "../../src/server/util" +import { IUser, User, LoginType } from "../../src/server/models/User" import bcrypt from "bcryptjs" export...