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
63d48c4f6ddc391fe7c3f972714af01ebb6f41be
app/src/cli/load-commands.ts
app/src/cli/load-commands.ts
import { IArgv as mriArgv } from 'mri' import { TypeName } from './util' type StringArray = ReadonlyArray<string> const files: StringArray = require('./command-list.json') export type CommandHandler = (args: mriArgv, argv: StringArray) => void export { mriArgv } export interface IOption { readonly type: TypeName...
import { IArgv as mriArgv } from 'mri' import { TypeName } from './util' type StringArray = ReadonlyArray<string> const files: StringArray = require('./command-list.json') export type CommandHandler = (args: mriArgv, argv: StringArray) => void export { mriArgv } export interface IOption { readonly type: TypeName...
Make `loadModule` into a normal function
Make `loadModule` into a normal function
TypeScript
mit
shiftkey/desktop,j-f1/forked-desktop,shiftkey/desktop,artivilla/desktop,kactus-io/kactus,j-f1/forked-desktop,kactus-io/kactus,kactus-io/kactus,say25/desktop,artivilla/desktop,artivilla/desktop,say25/desktop,artivilla/desktop,desktop/desktop,shiftkey/desktop,say25/desktop,kactus-io/kactus,say25/desktop,j-f1/forked-deskt...
--- +++ @@ -34,8 +34,9 @@ readonly unknownOptionHandler?: (flag: string) => void } -const loadModule: (name: string) => ICommandModule = name => - require(`./commands/${name}.ts`) +function loadModule(name: string): ICommandModule { + return require(`./commands/${name}.ts`) +} interface ICommands { [com...
9c92104cffbb38dc43d60895a36a259c9f2756c8
source/services/date/dateTimeFormatStrings.ts
source/services/date/dateTimeFormatStrings.ts
'use strict'; export var dateTimeFormatServiceName: string = 'dateTimeFormatStrings'; export interface IDateFormatStrings { isoFormat: string; dateTimeFormat: string; dateFormat: string; timeFormat: string; } export var defaultFormats: IDateFormatStrings = { isoFormat: 'YYYY-MM-DDTHH:mm:ssZ', dateTimeFormat: '...
'use strict'; export var dateTimeFormatServiceName: string = 'dateTimeFormatStrings'; export interface IDateFormatStrings { isoFormat: string; dateTimeFormat: string; dateFormat: string; timeFormat: string; } export var defaultFormats: IDateFormatStrings = { isoFormat: 'YYYY-MM-DDTHH:mm:ssZ', dateTimeFormat: '...
Use two Ms and Ds
Use two Ms and Ds
TypeScript
mit
SamGraber/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities
--- +++ @@ -11,7 +11,7 @@ export var defaultFormats: IDateFormatStrings = { isoFormat: 'YYYY-MM-DDTHH:mm:ssZ', - dateTimeFormat: 'M/D/YYYY h:mm A', + dateTimeFormat: 'MM/DD/YYYY h:mm A', dateFormat: 'MM/DD/YYYY', timeFormat: 'h:mmA', };
58a9cb2f9485f4958ac755d481f0d7491073e231
src/mobile/lib/model/MstGoal.ts
src/mobile/lib/model/MstGoal.ts
import {MstSvt} from "../../../model/master/Master"; import {MstSkillContainer, MstSvtSkillContainer} from "../../../model/impl/MstContainer"; export interface MstGoal { appVer: string; svtRawData: Array<MstSvt>; svtSkillData: MstSvtSkillContainer; skillData: MstSkillContainer; current: Goal; g...
import {MstSvt} from "../../../model/master/Master"; import {MstSkillContainer, MstSvtSkillContainer} from "../../../model/impl/MstContainer"; export interface MstGoal { appVer: string; svtRawData: Array<MstSvt>; svtSkillData: MstSvtSkillContainer; skillData: MstSkillContainer; current: Goal; g...
Add default player current state obj.
Add default player current state obj.
TypeScript
mit
agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook
--- +++ @@ -26,6 +26,12 @@ level: number; } +export const defaultCurrentGoal = { + id: "current", + name: "current", + servants: [], +} as Goal; + export const defaultMstGoal = { appVer: undefined, current: undefined,
4a7bf3e5de77731fa2c4d9d362a3fa967138cd94
app/src/components/Column/Post.tsx
app/src/components/Column/Post.tsx
import * as React from 'react'; interface Props { userName: string; text: string; channelName: string; } export default class Post extends React.Component < any, any > { constructor(props) { super(props); this.props = props; } render() { return <div style={{ margin: '20px', border: '5px soli...
import * as React from 'react'; import Card from 'material-ui/Card'; import { withStyles } from 'material-ui/styles'; interface Props { userName: string; text: string; channelName: string; } const styles = theme => ({ card: { minWidth: 275, }, bullet: { display: 'inline-block', margin: '0 2px...
Change Card component to cool ui
Change Card component to cool ui
TypeScript
mit
tanishi/Slackker,tanishi/Slackker,tanishi/Slackker
--- +++ @@ -1,4 +1,6 @@ import * as React from 'react'; +import Card from 'material-ui/Card'; +import { withStyles } from 'material-ui/styles'; interface Props { @@ -7,13 +9,41 @@ channelName: string; } -export default class Post extends React.Component < any, any > { +const styles = theme => ({ + card: ...
0b51b9d3a6edf923b328ff1bf0f5ea935d77765b
src/datasets/summarizations/utils/time-series.ts
src/datasets/summarizations/utils/time-series.ts
import { TimeSeriesPoint } from '../../queries/time-series.query'; import { DAY, WEEK } from '../../../utils/timeUnits'; /** * Group time-series points by the week number of their x-values (date). * The first day of the week is Monday when computing the week number of * a date. * * @param points The array...
import { TimeSeriesPoint } from '../../queries/time-series.query'; import { DAY, WEEK } from '../../../utils/timeUnits'; /** * Group time-series points by the week number of their x-values (date). * The first day of the week is Monday when computing the week number of * a date. * * @param points The array...
Add comments for week number computation
Add comments for week number computation
TypeScript
apache-2.0
googleinterns/guide-doge,googleinterns/guide-doge,googleinterns/guide-doge
--- +++ @@ -13,12 +13,16 @@ * are sorted by the x-value (date) in ascending order. */ export function groupPointsByXWeek(points: TimeSeriesPoint[]): TimeSeriesPoint[][] { - const weekStartOffset = 4 * DAY; const weekPoints: Record<string, TimeSeriesPoint[]> = {}; points.sort(({ x: a }, { x: b }) => a.getT...
3f085db5c340251930d9ca89cbc2250c55f493f5
angular/src/tests/attribute-tests.ts
angular/src/tests/attribute-tests.ts
import {Order} from "../app/lod/Order"; import { Observable } from 'rxjs/Observable'; import {Product} from "../app/lod/Product"; describe('Attributes', function() { it( "should be flagged as created", function() { let newOrder = new Order(); let now = new Date(); newOrder.Order.create( { O...
import {Order} from "../app/lod/Order"; import { Observable } from 'rxjs/Observable'; import {Product} from "../app/lod/Product"; describe('Attributes', function() { it( "should be flagged as created", function() { let newOrder = new Order(); let now = new Date(); newOrder.Order.create( { O...
Update tests to check for date
Update tests to check for date
TypeScript
apache-2.0
DeegC/Zeidon-Northwind,DeegC/Zeidon-Northwind,DeegC/Zeidon-Northwind,DeegC/Zeidon-Northwind,DeegC/Zeidon-Northwind,DeegC/Zeidon-Northwind
--- +++ @@ -7,9 +7,9 @@ let newOrder = new Order(); let now = new Date(); newOrder.Order.create( { OrderDate: now }); - newOrder.logOi(); expect( newOrder.Order$.OrderDate.getTime()).toBe( now.getTime() ); - //newOrder.Order$.ShipName = "John Smith"; - //newOrd...
487d3f2853918937e26312be4e25a2fc6118e41b
src/devices/incoming_bot_notification.ts
src/devices/incoming_bot_notification.ts
import { beep } from "../util"; import { Notification } from "farmbot/dist/jsonrpc"; import { HardwareState, RpcBotLog } from "../devices/interfaces"; import { error, success, warning } from "../ui"; import { t } from "i18next"; export function handleIncomingBotNotification(msg: Notification<any>, dispatch...
import { beep } from "../util"; import { Notification } from "farmbot/dist/jsonrpc"; import { HardwareState, RpcBotLog } from "../devices/interfaces"; import { error, success, warning } from "../ui"; import { t } from "i18next"; export function handleIncomingBotNotification(msg: Notification<any>, dispatch...
Remove unneeded LOG_DUMP switch branch
Remove unneeded LOG_DUMP switch branch
TypeScript
mit
MrChristofferson/farmbot-web-frontend,MrChristofferson/farmbot-web-frontend,FarmBot/farmbot-web-frontend,RickCarlino/farmbot-web-frontend,RickCarlino/farmbot-web-frontend,FarmBot/farmbot-web-frontend
--- +++ @@ -15,17 +15,9 @@ beep(); break; case "log_message": - handleLogMessage(dispatch, (msg as Notification<[RpcBotLog]>)); - break; - case "log_dump": - dispatch(logDump(msg as Notification<RpcBotLog[]>)); + dispatch(logNotific...
2020188fa05ae159619b229eaff9141bcf6d1813
src/__mocks__/next_model.ts
src/__mocks__/next_model.ts
import faker from 'faker'; export class Faker { private static get positiveInteger(): number { return faker.random.number({ min: 0, max: Number.MAX_SAFE_INTEGER, precision: 1, }); } private static get className(): string { return faker.lorem.word(); } static get modelName(): s...
Add mocks for some base types
Add mocks for some base types
TypeScript
mit
tamino-martinius/node-next-model
--- +++ @@ -0,0 +1,27 @@ +import faker from 'faker'; + +export class Faker { + private static get positiveInteger(): number { + return faker.random.number({ + min: 0, + max: Number.MAX_SAFE_INTEGER, + precision: 1, + }); + } + + private static get className(): string { + return faker.lorem....
78cd5fc1d6d54de0972f843b04242db89893c680
src/app/utilities/browser-detection.service.ts
src/app/utilities/browser-detection.service.ts
import { Injectable } from '@angular/core'; declare var document: any; declare var InstallTrigger: any; declare var isIE: any; declare var opr: any; declare var safari: any; declare var window: any; @Injectable() export class BrowserDetectionService { constructor() { } isOpera(): boolean { return (!!window....
import { Injectable } from '@angular/core'; declare var document: any; declare var InstallTrigger: any; declare var isIE: any; declare var opr: any; declare var safari: any; declare var window: any; @Injectable() export class BrowserDetectionService { constructor() { } isOpera(): boolean { return (!!window....
Add methods to detect operating system
update(BrowserDetectionService): Add methods to detect operating system
TypeScript
mit
coryshaw1/DubPlus-Site,coryshaw1/DubPlus-Site,coryshaw1/DubPlus-Site,DubPlus/DubPlus-Site,DubPlus/DubPlus-Site,DubPlus/DubPlus-Site
--- +++ @@ -37,4 +37,16 @@ (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || safari.pushNotification); } + isLinux(): boolean { + return window.navigator && window.navigator.userAgent.indexOf("Linux") !== -1 + } + + isOsx(): boolean { + return wi...
4823372d8814097600db9fa4152b875fdd72bba7
lib/config.d.ts
lib/config.d.ts
import { Actions } from "./actions"; import { NextUpdate } from "./nextUpdate"; import { PostRender } from "./postRender"; import { Ready } from "./ready"; import { ReceiveUpdate } from "./receiveUpdate"; import { View } from "./view"; interface Config<M, V, U> { initialModel?: M; view?: View<M, V>; postRen...
import { Actions } from "./actions"; import { NextUpdate } from "./nextUpdate"; import { PostRender } from "./postRender"; import { Ready } from "./ready"; import { ReceiveUpdate } from "./receiveUpdate"; import { View } from "./view"; interface Config<M, V, U> { initialModel?: M; actions?: Actions<U>; view...
Fix components each having own actions.
Fix components each having own actions.
TypeScript
mit
foxdonut/meiosis,foxdonut/meiosis,foxdonut/meiosis
--- +++ @@ -6,10 +6,10 @@ import { View } from "./view"; interface Config<M, V, U> { initialModel?: M; + actions?: Actions<U>; view?: View<M, V>; postRender?: PostRender<V>; ready?: Ready<U>; - actions?: Actions<U>; receiveUpdate?: ReceiveUpdate<M, U>; nextUpdate?: NextUpdate<M, ...
53a3fef29bb62b66cbba2b9b3776f69b25f3b4aa
src/ts/uiutils.ts
src/ts/uiutils.ts
import {Component, ComponentConfig} from './components/component'; import {Container} from './components/container'; export namespace UIUtils { export interface TreeTraversalCallback { (component: Component<ComponentConfig>, parent?: Component<ComponentConfig>): void; } export function traverseTree(componen...
import {Component, ComponentConfig} from './components/component'; import {Container} from './components/container'; export namespace UIUtils { export interface TreeTraversalCallback { (component: Component<ComponentConfig>, parent?: Component<ComponentConfig>): void; } export function traverseTree(componen...
Add end and home key controls
Add end and home key controls
TypeScript
mit
bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui
--- +++ @@ -28,6 +28,9 @@ UpArrow = 38, RightArrow = 39, DownArrow = 40, + Space = 32, + End = 35, + Home = 36, } }
a01ef1404ada3ca1904d3daaca2951370f0011b3
src/pages/pid/dataprocess.ts
src/pages/pid/dataprocess.ts
export class PidDataProcess{ //Default function private static defaultFunc(data, unit : string) : any{ return (parseInt(data, 16)) + unit; } //Vehicle RPM private static _010C(data: string) : any { console.log("Called this method, data was: " + data); return (parseInt(data.replace(" ", ""), 16...
export class PidDataProcess{ public static useImperialUnits: boolean; //Default function private static defaultFunc(data) : any{ return (parseInt(data.replace(" ", ""), 16)); } //Vehicle RPM private static _010C(data: string) : any { return (parseInt(data.replace(" ", ""), 16) / 4); } public...
Add support for Imperial Units aka dumb units
Add support for Imperial Units aka dumb units
TypeScript
agpl-3.0
odseco/eco,odseco/eco,odseco/eco
--- +++ @@ -1,24 +1,28 @@ - export class PidDataProcess{ + public static useImperialUnits: boolean; + //Default function - private static defaultFunc(data, unit : string) : any{ - return (parseInt(data, 16)) + unit; + private static defaultFunc(data) : any{ + return (parseInt(data.replace(" ", ""), 16)...
b91d14fd6cc0d4be8611451813ee7ecbea85f713
tests/cases/fourslash/declarationExpressions.ts
tests/cases/fourslash/declarationExpressions.ts
/// <reference path="fourslash.ts"/> ////class A {} ////const B = class C { //// public x; ////}; ////function D() {} ////const E = function F() {} ////console.log(function inner() {}) ////String(function fun() { class cls { public prop; } })) function navExact(name: string, kind: string) { verify.nav...
/// <reference path="fourslash.ts"/> ////class A {} ////const B = class C { //// public x; ////}; ////function D() {} ////const E = function F() {} ////console.log(function() {}, class {}); // Expression with no name should have no effect. ////console.log(function inner() {}); ////String(function fun() { ...
Test expressions with no name
Test expressions with no name
TypeScript
apache-2.0
erikmcc/TypeScript,minestarks/TypeScript,kitsonk/TypeScript,jwbay/TypeScript,RyanCavanaugh/TypeScript,DLehenbauer/TypeScript,thr0w/Thr0wScript,Eyas/TypeScript,alexeagle/TypeScript,nojvek/TypeScript,TukekeSoft/TypeScript,plantain-00/TypeScript,kpreisser/TypeScript,chuckjaz/TypeScript,SaschaNaz/TypeScript,DLehenbauer/Typ...
--- +++ @@ -6,8 +6,9 @@ ////}; ////function D() {} ////const E = function F() {} -////console.log(function inner() {}) -////String(function fun() { class cls { public prop; } })) +////console.log(function() {}, class {}); // Expression with no name should have no effect. +////console.log(function inner() {}); +///...
213369e6d0fbc26e524f3f8e28bd39241ab8054b
client/StatBlockEditor/StatBlockEditorComponent.tsx
client/StatBlockEditor/StatBlockEditorComponent.tsx
import React = require("react"); import { StatBlock } from "../../common/StatBlock"; export class StatBlockEditor extends React.Component<StatBlockEditorProps, StatBlockEditorState> { public saveAndClose = () => { this.props.onSave(this.props.statBlock); } public render() { return ""; ...
import React = require("react"); import { Form, Text, } from "react-form"; import { StatBlock } from "../../common/StatBlock"; export class StatBlockEditor extends React.Component<StatBlockEditorProps, StatBlockEditorState> { public saveAndClose = (submittedValues?) => { const editedStatBlock = { ...
Add name field and submit button
Add name field and submit button
TypeScript
mit
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
--- +++ @@ -1,13 +1,26 @@ import React = require("react"); +import { Form, Text, } from "react-form"; import { StatBlock } from "../../common/StatBlock"; export class StatBlockEditor extends React.Component<StatBlockEditorProps, StatBlockEditorState> { - public saveAndClose = () => { - this.props.onSa...
487a4c14ea934b20a48bd8d99175a244572662a7
src/Bibliotheca.Client.Web/app/components/projects/projects.component.ts
src/Bibliotheca.Client.Web/app/components/projects/projects.component.ts
import { Component, Input } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Project } from '../../model/project'; import { Branch } from '../../model/branch'; import { Router } from '@angular/router'; import { HttpClientService } from '../../services/httpClient.service'; @Component({ ...
import { Component, Input } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Project } from '../../model/project'; import { Branch } from '../../model/branch'; import { Router } from '@angular/router'; import { HttpClientService } from '../../services/httpClient.service'; import { ToasterS...
Add warning message when there is no branch.
Add warning message when there is no branch.
TypeScript
mit
BibliothecaTeam/Bibliotheca.Client,BibliothecaTeam/Bibliotheca.Client,BibliothecaTeam/Bibliotheca.Client
--- +++ @@ -4,6 +4,7 @@ import { Branch } from '../../model/branch'; import { Router } from '@angular/router'; import { HttpClientService } from '../../services/httpClient.service'; +import { ToasterService } from 'angular2-toaster'; @Component({ selector: 'projects', @@ -17,17 +18,22 @@ @Input() ...
28b2b777ddbab19066704f386d07f2851e1b94c0
src/app/core/routing/app-name-guard.service.ts
src/app/core/routing/app-name-guard.service.ts
import { Injectable } from "@angular/core"; import { CanActivate, Router } from "@angular/router"; import { ActivatedRouteSnapshot } from "@angular/router"; import { RouterStateSnapshot } from "@angular/router"; import log from "loglevel"; /** * */ @Injectable() export class AppNameGuard implements CanActivate { c...
import { Injectable } from "@angular/core"; import { CanActivate, Router } from "@angular/router"; import { ActivatedRouteSnapshot } from "@angular/router"; import { RouterStateSnapshot } from "@angular/router"; import log from "loglevel"; import { RouteService } from "../../shared/services/route.service"; /** * */ ...
Add setBackupAppName to app name guard
Add setBackupAppName to app name guard
TypeScript
mit
chipster/chipster-web,chipster/chipster-web,chipster/chipster-web
--- +++ @@ -3,13 +3,14 @@ import { ActivatedRouteSnapshot } from "@angular/router"; import { RouterStateSnapshot } from "@angular/router"; import log from "loglevel"; +import { RouteService } from "../../shared/services/route.service"; /** * */ @Injectable() export class AppNameGuard implements CanActivat...
2b5eaa764fc226a87b2d302f6803e1f31faf2bc3
packages/purgecss/__tests__/performance.test.ts
packages/purgecss/__tests__/performance.test.ts
import PurgeCSS from "../src/index"; describe("performance", () => { it("should not suffer from tons of content and css", function () { // TODO Remove this excessive timeout once performance is better. jest.setTimeout(60000); const start = Date.now(); return new PurgeCSS() .purge({ // U...
import PurgeCSS from "../src/index"; describe("performance", () => { it("should not suffer from tons of content and css", function () { const start = Date.now(); return new PurgeCSS() .purge({ // Use all of the .js files in node_modules to purge all of the .css // files in __tests__/tes...
Remove excessive jest.setTimeout(60000) now that perf is better.
perf: Remove excessive jest.setTimeout(60000) now that perf is better.
TypeScript
mit
FullHuman/purgecss,FullHuman/purgecss,FullHuman/purgecss,FullHuman/purgecss
--- +++ @@ -2,8 +2,6 @@ describe("performance", () => { it("should not suffer from tons of content and css", function () { - // TODO Remove this excessive timeout once performance is better. - jest.setTimeout(60000); const start = Date.now(); return new PurgeCSS() .purge({
1e21cdbf1e9c3f634af5b15e242727054c0fa9f4
tools/env/base.ts
tools/env/base.ts
import { EnvConfig } from './env-config.interface'; const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.3.0', RELEASEVERSION: '0.3.0' }; export = BaseConfig;
import { EnvConfig } from './env-config.interface'; const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.4.0', RELEASEVERSION: '0.4.0' }; export = BaseConfig;
Update release version to 0.4.0
Update release version to 0.4.0
TypeScript
mit
nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website
--- +++ @@ -3,8 +3,8 @@ const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', - RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.3.0', - RELEASEVERSION: '0.3.0' + RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.4.0', + RELEASEVERSION: '0.4.0' ...
e9404b0d0d8c173b39c9fe664745cb910dcb2ad1
tools/env/base.ts
tools/env/base.ts
import { EnvConfig } from './env-config.interface'; const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.2.0', RELEASEVERSION: '0.2.0' }; export = BaseConfig;
import { EnvConfig } from './env-config.interface'; const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.3.0', RELEASEVERSION: '0.3.0' }; export = BaseConfig;
Update release version and url
Update release version and url
TypeScript
mit
nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website
--- +++ @@ -3,8 +3,8 @@ const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', - RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.2.0', - RELEASEVERSION: '0.2.0' + RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.3.0', + RELEASEVERSION: '0.3.0' ...
260c4c00b3f39452739578d685466eb0029a7e43
src/elements/declarations/variable-declaration.ts
src/elements/declarations/variable-declaration.ts
import {Container} from '../../collections'; import {any_type} from '../../constants'; import {emit_declaration_name} from '../../helpers/emit-declaration-name'; import {emit_declare} from '../../helpers/emit-declare'; import {emit_optional} from '../../helpers/emit-optional'; import {Declaration, IDeclarationOptionalP...
import {Container} from '../../collections'; import {any_type} from '../../constants'; import {emit_declaration_name} from '../../helpers/emit-declaration-name'; import {emit_declare} from '../../helpers/emit-declare'; import {emit_optional} from '../../helpers/emit-optional'; import {Declaration, IDeclarationOptionalP...
Update VariableDeclaration name should be a string
Update VariableDeclaration name should be a string
TypeScript
mit
ikatyang/dts-element,ikatyang/dts-element
--- +++ @@ -8,8 +8,9 @@ export type VariableKind = 'var' | 'let' | 'const'; -// tslint:disable-next-line no-empty-interface -export interface IVariableDeclarationRequiredParameters {} +export interface IVariableDeclarationRequiredParameters { + name: string; +} export interface IVariableDeclarationOptionalPa...
681d6f4a31d6a6ee21b4b46a50aca500323448f1
test/conditional-as-property-decorator.spec.ts
test/conditional-as-property-decorator.spec.ts
import * as assert from 'power-assert'; import * as sinon from 'sinon'; import { conditional } from '../src/index'; class TargetClass { } xdescribe('conditional', () => { describe('as a property decorator', () => { describe('(test: boolean, decorator: PropertyDecorator): PropertyDecorator', () => { it('de...
import * as assert from 'power-assert'; import * as sinon from 'sinon'; import { conditional } from '../src/index'; function createPropertyDecorator(spy: Sinon.SinonSpy): PropertyDecorator { return (target?: Object, key?: string|symbol) => spy.apply(spy, arguments); } const spy1 = sinon.spy(); const decor1 = create...
Add test for property decorator
Add test for property decorator
TypeScript
mit
tkqubo/conditional-decorator
--- +++ @@ -2,22 +2,57 @@ import * as sinon from 'sinon'; import { conditional } from '../src/index'; -class TargetClass { +function createPropertyDecorator(spy: Sinon.SinonSpy): PropertyDecorator { + return (target?: Object, key?: string|symbol) => spy.apply(spy, arguments); } -xdescribe('conditional', () =>...
194b444457935a5a9cd65f91f2c897697667f386
options.ts
options.ts
///<reference path="../.d.ts"/> import path = require("path"); import helpers = require("./../common/helpers"); var knownOpts:any = { "log" : String, "verbose" : Boolean, "path" : String, "version": Boolean, "help": Boolean, "json": Boolean, "watch": Boolean }, shorthands = { "v" : "verbose", "p" ...
///<reference path="../.d.ts"/> "use strict"; import path = require("path"); import helpers = require("./../common/helpers"); var knownOpts:any = { "log" : String, "verbose" : Boolean, "path" : String, "version": Boolean, "help": Boolean, "json": Boolean, "watch": Boolean, "avd": String }, shorthands...
Add ability to select a particular avd for $appbuilder emulate android
Add ability to select a particular avd for $appbuilder emulate android Needed to implement http://teampulse.telerik.com/view#item/276157
TypeScript
apache-2.0
telerik/mobile-cli-lib,telerik/mobile-cli-lib
--- +++ @@ -1,5 +1,5 @@ ///<reference path="../.d.ts"/> - +"use strict"; import path = require("path"); import helpers = require("./../common/helpers"); @@ -10,7 +10,8 @@ "version": Boolean, "help": Boolean, "json": Boolean, - "watch": Boolean + "watch": Boolean, + "avd": String }, shorthands = {...
68595fe7dc4ba095da9deb627437b0b351400794
test/test-no-metadata.ts
test/test-no-metadata.ts
import {assert} from 'chai'; import * as mm from '../src'; import * as path from 'path'; const t = assert; it("should reject files that can't be parsed", () => { const filePath = path.join(__dirname, 'samples', __filename); // Run with default options return mm.parseFile(filePath).then(result => { throw n...
import {assert} from 'chai'; import * as mm from '../src'; import * as path from 'path'; const t = assert; it("should reject files that can't be parsed", async () => { const filePath = path.join(__dirname, 'samples', __filename); // Run with default options try { await mm.parseFile(filePath); assert.f...
Remove unused variable, rewrote test case with async/await.
Remove unused variable, rewrote test case with async/await.
TypeScript
mit
Borewit/music-metadata,Borewit/music-metadata
--- +++ @@ -4,12 +4,16 @@ const t = assert; -it("should reject files that can't be parsed", () => { +it("should reject files that can't be parsed", async () => { const filePath = path.join(__dirname, 'samples', __filename); // Run with default options - return mm.parseFile(filePath).then(result => { -...
0c92b1a772017a55349e6bf7429863aa0fac968d
src/app/common/directives/drag-drop.directive.ts
src/app/common/directives/drag-drop.directive.ts
import { Directive, Output, EventEmitter, HostBinding, HostListener } from '@angular/core'; @Directive({ selector: '[appDragDrop]', }) export class DragDropDirective { @Output() onFileDropped = new EventEmitter<any>(); // @HostBinding('style.background-color') private background = '#f5fcff'; // @HostBinding('...
import { Directive, Output, EventEmitter, HostBinding, HostListener } from '@angular/core'; /** * The "appDragDrop" directive can be added to angular components to allow them to act as * a file drag and drop source. This will emit a `onFileDrop` event when files are dropped * onto the component. While a file is bei...
Correct issue with drag and drop not showing in comments
FIX: Correct issue with drag and drop not showing in comments
TypeScript
agpl-3.0
doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web
--- +++ @@ -1,5 +1,11 @@ import { Directive, Output, EventEmitter, HostBinding, HostListener } from '@angular/core'; +/** + * The "appDragDrop" directive can be added to angular components to allow them to act as + * a file drag and drop source. This will emit a `onFileDrop` event when files are dropped + * onto t...
83225a48bbc08d8c0df14c066b8a46b8654c9faa
src/app/marketplace/plugins/plugins.module.ts
src/app/marketplace/plugins/plugins.module.ts
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { ReactiveFormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { LayoutModule } from '../../shared/layout.module'; import { UbuntuConfigCompo...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { ReactiveFormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { LayoutModule } from '../../shared/layout.module'; import { UbuntuConfigCompo...
Fix to prevent removal of dynamic components during production builds
Fix to prevent removal of dynamic components during production builds
TypeScript
mit
galaxyproject/cloudlaunch-ui,galaxyproject/cloudlaunch-ui,galaxyproject/cloudlaunch-ui
--- +++ @@ -26,6 +26,8 @@ declarations: [UbuntuConfigComponent, CloudManConfigComponent, GVLConfigComponent, DockerConfigComponent, DockerFileEditorComponent], exports: [UbuntuConfigComponent, CloudManConfigComponent, GVLConfigComponent, - DockerConfigComponent] + ...
f98a2299d66d972dbc824a24881a6d89f880b378
src/lib/src/simple-select/component/simple-select.component.ts
src/lib/src/simple-select/component/simple-select.component.ts
import { Component } from '@angular/core'; @Component({ selector: 'ng-simple-select', templateUrl: './simple-select.component.html', styleUrls: ['./simple-select.component.css'] }) export class SimpleSelectComponent { }
import { Component, forwardRef } from '@angular/core'; import { NG_VALUE_ACCESSOR } from '@angular/forms'; const SIMPLE_SELECT_VALUE_ACCESSOR = { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SimpleSelectComponent), multi: true, }; @Component({ selector: 'ng-simple-select', templateUrl: './simpl...
Add value accessor to simple select
Add value accessor to simple select
TypeScript
mit
FriOne/ng-selectable,FriOne/ng-selectable,FriOne/ng-selectable
--- +++ @@ -1,10 +1,45 @@ -import { Component } from '@angular/core'; +import { Component, forwardRef } from '@angular/core'; +import { NG_VALUE_ACCESSOR } from '@angular/forms'; + +const SIMPLE_SELECT_VALUE_ACCESSOR = { + provide: NG_VALUE_ACCESSOR, + useExisting: forwardRef(() => SimpleSelectComponent), + multi:...
8ea6bd35665dd958768c133dd5d4fc5d3db292ee
src/app.ts
src/app.ts
import * as errorHandler from './error_handler'; import * as machine from './machine'; var r = require('koa-route'); var bodyParser = require('koa-bodyparser'); var koa = require('koa'); var app = koa(); app.use(errorHandler.handle); app.use(bodyParser()); app.use(require('koa-trie-router')(app)); app.route('/machin...
import * as errorHandler from './error_handler'; import * as machine from './machine'; var router = require('koa-trie-router'); var bodyParser = require('koa-bodyparser'); var koa = require('koa'); var app = koa(); app.use(errorHandler.handle); app.use(bodyParser()); app.use(router(app)); app.route('/machines') .g...
Fix koa-router not found bug
Fix koa-router not found bug
TypeScript
apache-2.0
lawrence0819/neptune-back
--- +++ @@ -1,14 +1,14 @@ import * as errorHandler from './error_handler'; import * as machine from './machine'; -var r = require('koa-route'); +var router = require('koa-trie-router'); var bodyParser = require('koa-bodyparser'); var koa = require('koa'); var app = koa(); app.use(errorHandler.handle); app....
b9f651f39805766a5c6415049a4d4a9ff68b0547
src/app/views/sessions/session/session.resolve.ts
src/app/views/sessions/session/session.resolve.ts
import { Injectable } from '@angular/core'; import { Resolve, ActivatedRouteSnapshot } from '@angular/router'; import {SessionData} from "../../../model/session/session-data"; import SessionResource from "../../../shared/resources/session.resource"; @Injectable() export class SessionResolve implements Resolve<SessionD...
import { Injectable } from '@angular/core'; import { Resolve, ActivatedRouteSnapshot } from '@angular/router'; import {SessionData} from "../../../model/session/session-data"; import SessionResource from "../../../shared/resources/session.resource"; import SelectionService from "./selection.service"; @Injectable() exp...
Clear dataset selection when opening session
Clear dataset selection when opening session
TypeScript
mit
chipster/chipster-web,chipster/chipster-web,chipster/chipster-web
--- +++ @@ -2,13 +2,16 @@ import { Resolve, ActivatedRouteSnapshot } from '@angular/router'; import {SessionData} from "../../../model/session/session-data"; import SessionResource from "../../../shared/resources/session.resource"; +import SelectionService from "./selection.service"; @Injectable() export class...
c111cf32d216180573393bbed82fc91383b3635e
kspRemoteTechPlannerTest/objects/antennaEdit.ts
kspRemoteTechPlannerTest/objects/antennaEdit.ts
/// <reference path="../references.ts" />
/// <reference path="../references.ts" /> class AntennaEdit { 'use strict'; form: protractor.ElementFinder = element(by.xpath("//form[@name='antennaEditForm']")); name: protractor.ElementFinder = this.form.element(by.xpath(".//input[@name='name']")); typeOmni: protractor.ElementFinder = this.form.ele...
Implement Antenna Edit page object.
Implement Antenna Edit page object.
TypeScript
mit
ryohpops/kspRemoteTechPlanner,ryohpops/kspRemoteTechPlanner,ryohpops/kspRemoteTechPlanner
--- +++ @@ -1 +1,28 @@ /// <reference path="../references.ts" /> + +class AntennaEdit { + 'use strict'; + + form: protractor.ElementFinder = element(by.xpath("//form[@name='antennaEditForm']")); + name: protractor.ElementFinder = this.form.element(by.xpath(".//input[@name='name']")); + typeOmni: protrac...
36af9bfa506262b0dc934e0b4cb1a071862fc287
src/components/occurrence.tsx
src/components/occurrence.tsx
import * as React from 'react' export interface OccurrenceProps { isWriteAccess: boolean, width: number, height: number, top: number, left: number, } const Occurrence = (props: OccurrenceProps) => ( <div style={{ position: 'absolute', background: props.isWriteAccess ? 'rgba(14,99,156,.25)'...
import * as React from 'react' export interface OccurrenceProps { isWriteAccess: boolean, width: number, height: number, top: number, left: number, } const Occurrence = (props: OccurrenceProps) => ( <div style={{ position: 'absolute', background: props.isWriteAccess ? 'rgba(14,99,156,.4)' ...
Fix colors to make it more highlighted
Fix colors to make it more highlighted
TypeScript
mit
pd4d10/intelli-octo,pd4d10/intelli-octo,pd4d10/intelli-octo
--- +++ @@ -12,7 +12,7 @@ <div style={{ position: 'absolute', - background: props.isWriteAccess ? 'rgba(14,99,156,.25)' : 'rgba(173,214,255,.3)', + background: props.isWriteAccess ? 'rgba(14,99,156,.4)' : 'rgba(173,214,255,.7)', width: props.width, height: props.height, t...
9e6ae487814a4c8e911b1f4ead25a6357ba4b386
src/browser/ui/dialog/dialog-title.directive.ts
src/browser/ui/dialog/dialog-title.directive.ts
import { Directive, Input, OnInit, Optional } from '@angular/core'; import { DialogRef } from './dialog-ref'; let uniqueId = 0; @Directive({ selector: '[gdDialogTitle]', host: { 'class': 'DialogTitle', }, }) export class DialogTitleDirective implements OnInit { @Input() id = `gd-dialog-title...
import { Directive, Input, OnInit, Optional } from '@angular/core'; import { DialogRef } from './dialog-ref'; let uniqueId = 0; @Directive({ selector: '[gdDialogTitle]', host: { 'class': 'DialogTitle', '[id]': 'id', }, }) export class DialogTitleDirective implements OnInit { @Input()...
Fix host attribute not assigned
Fix host attribute not assigned
TypeScript
mit
seokju-na/geeks-diary,seokju-na/geeks-diary,seokju-na/geeks-diary
--- +++ @@ -9,6 +9,7 @@ selector: '[gdDialogTitle]', host: { 'class': 'DialogTitle', + '[id]': 'id', }, }) export class DialogTitleDirective implements OnInit {
b08b3d84ba68e26b3c8e5ed310680d57b2bc2e73
extensions/typescript/src/utils/commandManager.ts
extensions/typescript/src/utils/commandManager.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 map to hold command registrations
Use map to hold command registrations
TypeScript
mit
mjbvz/vscode,rishii7/vscode,Zalastax/vscode,hoovercj/vscode,Zalastax/vscode,rishii7/vscode,microsoft/vscode,the-ress/vscode,Zalastax/vscode,hoovercj/vscode,rishii7/vscode,DustinCampbell/vscode,microlv/vscode,mjbvz/vscode,rishii7/vscode,DustinCampbell/vscode,the-ress/vscode,eamodio/vscode,landonepps/vscode,DustinCampbel...
--- +++ @@ -12,19 +12,21 @@ } export class CommandManager { - private readonly commands: vscode.Disposable[] = []; + private readonly commands = new Map<string, vscode.Disposable>(); public dispose() { - while (this.commands.length) { - const obj = this.commands.pop(); - if (obj) { - obj.dispose(); - ...
9a4dfbb1a871a3ece32717fe3d33227d4d5d2569
test/in-memory-dispatcher.ts
test/in-memory-dispatcher.ts
import {Disposable} from 'event-kit' import Dispatcher from '../src/dispatcher' import User from '../src/models/user' import Repository from '../src/models/repository' type State = {users: User[], repositories: Repository[]} export default class InMemoryDispatcher extends Dispatcher { public getUsers(): Promise<Use...
import {Disposable} from 'event-kit' import {Dispatcher} from '../src/lib/dispatcher' import User from '../src/models/user' import Repository from '../src/models/repository' type State = {users: User[], repositories: Repository[]} export default class InMemoryDispatcher extends Dispatcher { public getUsers(): Promi...
Fix test dispatcher after rename
Fix test dispatcher after rename
TypeScript
mit
say25/desktop,BugTesterTest/desktops,BugTesterTest/desktops,BugTesterTest/desktops,artivilla/desktop,gengjiawen/desktop,desktop/desktop,gengjiawen/desktop,desktop/desktop,desktop/desktop,say25/desktop,j-f1/forked-desktop,desktop/desktop,hjobrien/desktop,BugTesterTest/desktops,hjobrien/desktop,j-f1/forked-desktop,artivi...
--- +++ @@ -1,5 +1,5 @@ import {Disposable} from 'event-kit' -import Dispatcher from '../src/dispatcher' +import {Dispatcher} from '../src/lib/dispatcher' import User from '../src/models/user' import Repository from '../src/models/repository'
bf0d95270c0b21eaa9a32a821a7c0e0a9a6c8147
ts/UIUtil/requestAnimationFrame.ts
ts/UIUtil/requestAnimationFrame.ts
/* * Copyright (c) 2015 ARATA Mizuki * This software is released under the MIT license. * See LICENSE.txt. */ module UIUtil { interface RAFWithVendorPrefix extends Window { mozRequestAnimationFrame(callback: FrameRequestCallback): number; webkitRequestAnimationFrame(callback: FrameRequestCallba...
/* * Copyright (c) 2015 ARATA Mizuki * This software is released under the MIT license. * See LICENSE.txt. */ module UIUtil { interface RAFWithVendorPrefix extends Window { mozRequestAnimationFrame(callback: FrameRequestCallback): number; webkitRequestAnimationFrame(callback: FrameRequestCallba...
Add type definition for msRequestAnimationFrame
Add type definition for msRequestAnimationFrame
TypeScript
mit
minoki/singularity
--- +++ @@ -9,6 +9,7 @@ interface RAFWithVendorPrefix extends Window { mozRequestAnimationFrame(callback: FrameRequestCallback): number; webkitRequestAnimationFrame(callback: FrameRequestCallback): number; + msRequestAnimationFrame(callback: FrameRequestCallback): number; } if ...
5882ff4328bb7ba6a38a89dc3a83bf7e8142f7a4
test/example.mocha.ts
test/example.mocha.ts
/// <reference path="../node_modules/@types/mocha/index.d.ts" /> /// <reference path="../node_modules/@types/chai/index.d.ts" /> /// <reference path="../node_modules/@types/sinon/index.d.ts" /> /** * Module dependencies. */ import * as chai from 'chai'; /** * Globals */ var expect = chai.expect; /** * Unit tes...
/** * Module dependencies. */ import * as chai from 'chai'; /** * Globals */ var expect = chai.expect; /** * Unit tests */ describe('User Model Unit Tests:', () => { describe('2 + 4', () => { it('should be 6', (done) => { expect(2+4).to.equals(6); done(); }); ...
Remove reference to sinon causing the tests to fail
Remove reference to sinon causing the tests to fail
TypeScript
mit
robertmain/jukebox,robertmain/jukebox
--- +++ @@ -1,7 +1,3 @@ -/// <reference path="../node_modules/@types/mocha/index.d.ts" /> -/// <reference path="../node_modules/@types/chai/index.d.ts" /> -/// <reference path="../node_modules/@types/sinon/index.d.ts" /> - /** * Module dependencies. */
265f0dce760942fa746a5cc9eb60f56e0fc1cc39
packages/@sanity/structure/src/SerializeError.ts
packages/@sanity/structure/src/SerializeError.ts
import {SerializePath} from './StructureNodes' export class SerializeError extends Error { public readonly path: SerializePath public helpId?: HELP_URL constructor( message: string, parentPath: SerializePath, pathSegment: string | number | undefined, hint?: string ) { super(message) co...
import {SerializePath} from './StructureNodes' export class SerializeError extends Error { public readonly path: SerializePath public helpId?: HELP_URL constructor( message: string, parentPath: SerializePath, pathSegment: string | number | undefined, hint?: string ) { super(message) co...
Fix serialization error when parent path is not set
[structure] Fix serialization error when parent path is not set
TypeScript
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
--- +++ @@ -12,7 +12,7 @@ ) { super(message) const segment = typeof pathSegment === 'undefined' ? '<unknown>' : `${pathSegment}` - this.path = parentPath.concat(hint ? `${segment} (${hint})` : segment) + this.path = (parentPath || []).concat(hint ? `${segment} (${hint})` : segment) } withHe...
3ccf5afba6637a4df3237176581b3757c0a7545a
app/src/ui/confirm-dialog.tsx
app/src/ui/confirm-dialog.tsx
import * as React from 'react' import { Dispatcher } from '../lib/dispatcher' import { ButtonGroup } from '../ui/lib/button-group' import { Button } from '../ui/lib/button' import { Dialog, DialogContent, DialogFooter } from '../ui/dialog' interface IConfirmDialogProps { readonly dispatcher: Dispatcher readonly ti...
import * as React from 'react' import { ButtonGroup } from '../ui/lib/button-group' import { Button } from '../ui/lib/button' import { Dialog, DialogContent, DialogFooter } from '../ui/dialog' interface IConfirmDialogProps { readonly title: string readonly message: string readonly onConfirmation: () => void re...
Remove dependency on dispatcher in favor of event handler
Remove dependency on dispatcher in favor of event handler
TypeScript
mit
BugTesterTest/desktops,say25/desktop,j-f1/forked-desktop,BugTesterTest/desktops,BugTesterTest/desktops,artivilla/desktop,kactus-io/kactus,gengjiawen/desktop,gengjiawen/desktop,shiftkey/desktop,shiftkey/desktop,hjobrien/desktop,hjobrien/desktop,say25/desktop,shiftkey/desktop,artivilla/desktop,BugTesterTest/desktops,desk...
--- +++ @@ -1,14 +1,13 @@ import * as React from 'react' -import { Dispatcher } from '../lib/dispatcher' import { ButtonGroup } from '../ui/lib/button-group' import { Button } from '../ui/lib/button' import { Dialog, DialogContent, DialogFooter } from '../ui/dialog' interface IConfirmDialogProps { - readonly ...
65c70eec98424b7a79f03655d5f7b9a4723191bc
ts/gulpbrowser.browserify.ts
ts/gulpbrowser.browserify.ts
/// <reference path="./typings/main.d.ts" /> import plugins = require("./gulpbrowser.plugins"); let browserify = function(transforms) { transforms = transforms || []; if (typeof transforms === 'function') { transforms = [transforms]; } let forEach = function(file, enc, cb){ // do this with ...
/// <reference path="./typings/main.d.ts" /> import plugins = require("./gulpbrowser.plugins"); let browserify = function(transforms) { transforms = transforms || []; if (!Array.isArray(transforms)) { transforms = [transforms]; } let forEach = function(file, enc, cb){ // do this with every ...
Fix bug where passing an object with transform options causes an exception.
Fix bug where passing an object with transform options causes an exception.
TypeScript
mit
pushrocks/gulp-browser,pushrocks/gulp-browser
--- +++ @@ -5,7 +5,7 @@ let browserify = function(transforms) { transforms = transforms || []; - if (typeof transforms === 'function') { + if (!Array.isArray(transforms)) { transforms = [transforms]; }
caadf4f3840bf24b3c5c83dc34f570058ef06457
nodetest/index.ts
nodetest/index.ts
import { range } from "linq-to-typescript" const primeNumbers = range(2, 10000) .select((i) => [i, Math.floor(Math.sqrt(i))]) .where(([i, iSq]) => range(2, iSq).all((j) => i % j !== 0)) .select(([prime]) => prime) .toArray() console.log(primeNumbers)
import { range } from "linq-to-typescript" const primeNumbers = range(2, 10000) .select((i) => [i, Math.floor(Math.sqrt(i))]) .where(([i, iSq]) => range(2, iSq).all((j) => i % j !== 0)) .select(([prime]) => prime) .toArray() async function asyncIterable() { for await (const i of range(0, ...
Test async iterable with node test
Test async iterable with node test
TypeScript
mit
arogozine/LinqToTypeScript,arogozine/LinqToTypeScript
--- +++ @@ -7,4 +7,11 @@ .select(([prime]) => prime) .toArray() +async function asyncIterable() { + for await (const i of range(0, 10).selectAsync(async (x) => x * 2)) { + console.log(i) + } +} + +asyncIterable() console.log(primeNumbers)
165dabd09bafcffac50ab33035cc7978feba57d5
source/commands/danger-local.ts
source/commands/danger-local.ts
#! /usr/bin/env node import program from "commander" import setSharedArgs, { SharedCLI } from "./utils/sharedDangerfileArgs" import { runRunner } from "./ci/runner" import { LocalGit } from "../platforms/LocalGit" import { FakeCI } from "../ci_source/providers/Fake" interface App extends SharedCLI { /** What shoul...
#! /usr/bin/env node import program from "commander" import setSharedArgs, { SharedCLI } from "./utils/sharedDangerfileArgs" import { runRunner } from "./ci/runner" import { LocalGit } from "../platforms/LocalGit" import { FakeCI } from "../ci_source/providers/Fake" interface App extends SharedCLI { /** What shoul...
Fix danger local message when branch is not master
Fix danger local message when branch is not master The message when there are no changes had a hardcoded value of `master` instead of using the value of `base`, which coudl have been changed with the command line options.
TypeScript
mit
danger/danger-js,danger/danger-js,danger/danger-js,danger/danger-js
--- +++ @@ -33,6 +33,6 @@ // try to find the CI danger is running on and use that. runRunner(app, { source: fakeSource, platform: localPlatform, additionalEnvVars: { DANGER_LOCAL_NO_CI: "yep" } }) } else { - console.log("No git changes detected between head and master.") + console.log(`No git chang...
585c7686abd759d2a24a52aeaec4119b3865dd0c
ui/src/shared/documents/DocumentHierarchyHeader.tsx
ui/src/shared/documents/DocumentHierarchyHeader.tsx
import React, { ReactElement } from 'react'; import { Card } from 'react-bootstrap'; import { ResultDocument } from '../../api/result'; import DocumentTeaser from '../document/DocumentTeaser'; export default function DocumentHierarchyHeader({ documents, searchParams } : { documents: ResultDocument[], searchPa...
import React, { ReactElement } from 'react'; import { Card } from 'react-bootstrap'; import { ResultDocument } from '../../api/result'; import DocumentTeaser from '../document/DocumentTeaser'; export default function DocumentHierarchyHeader({ documents, searchParams } : { documents: ResultDocument[], searchPa...
Fix bug in document hierarchy header
Fix bug in document hierarchy header
TypeScript
apache-2.0
dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web
--- +++ @@ -21,4 +21,4 @@ const getParentDocument = (doc: ResultDocument): ResultDocument | undefined => - doc.resource.relations?.isChildOf[0]; + doc.resource.relations?.isChildOf?.[0];
86424db6bd38fa5f200434a3c1a13b8ce5f66181
saleor/static/dashboard-next/components/Money/Money.tsx
saleor/static/dashboard-next/components/Money/Money.tsx
import Typography, { TypographyProps } from "@material-ui/core/Typography"; import * as React from "react"; import { LocaleConsumer } from "../Locale"; export interface MoneyProp { amount: number; currency: string; } interface MoneyProps { moneyDetalis: MoneyProp; typographyProps?: TypographyProps; } export ...
import Typography, { TypographyProps } from "@material-ui/core/Typography"; import * as React from "react"; import { LocaleConsumer } from "../Locale"; export interface MoneyProp { amount: number; currency: string; } interface MoneyProps { moneyDetalis: MoneyProp; typographyProps?: TypographyProps; inline?;...
Add inline prop for money component
Add inline prop for money component
TypeScript
bsd-3-clause
UITools/saleor,mociepka/saleor,UITools/saleor,mociepka/saleor,maferelo/saleor,mociepka/saleor,maferelo/saleor,UITools/saleor,maferelo/saleor,UITools/saleor,UITools/saleor
--- +++ @@ -10,11 +10,13 @@ interface MoneyProps { moneyDetalis: MoneyProp; typographyProps?: TypographyProps; + inline?; } export const Money: React.StatelessComponent<MoneyProps> = ({ moneyDetalis, - typographyProps + typographyProps, + inline }) => ( <LocaleConsumer> {locale => { @@ -25,...
fc3238a5051e093671232b2ea01a348e654d49e4
app/src/cors.ts
app/src/cors.ts
/**  * @file CORS middleware  * @author Dave Ross <dave@davidmichaelross.com>  */ import { Application, Request, Response } from "polka" export default function corsAllowAll(server: Application) { server.use("/graphql", function (req: Request, res: Response, next: Function) { res.setHeader('Access-Control-Allow-O...
/**  * @file CORS middleware  * @author Dave Ross <dave@davidmichaelross.com>  */ import { Application, Request, Response } from "polka" export default function corsAllowAll(server: Application) { server.use("/*", function (req: Request, res: Response, next: Function) { res.setHeader('Access-Control-Allow-Origin'...
Apply CORS to all API URLs
Apply CORS to all API URLs
TypeScript
mit
daveross/catalogopolis-api,daveross/catalogopolis-api
--- +++ @@ -7,7 +7,7 @@ export default function corsAllowAll(server: Application) { - server.use("/graphql", function (req: Request, res: Response, next: Function) { + server.use("/*", function (req: Request, res: Response, next: Function) { res.setHeader('Access-Control-Allow-Origin', '*') res.setHeader('...
d2b184b0b1f6da24f944c04e0b8291119d9c5f68
app-frontend/app/src/root.tsx
app-frontend/app/src/root.tsx
import * as React from "react"; import {Home} from "./pages/home/home"; import {Route, BrowserRouter} from "react-router-dom"; import {Switch} from "react-router"; import {Kugs} from "./pages/kugs/Kugs"; import {Articles} from "./pages/articles/articles"; export function Root() { return ( <BrowserRouter> <...
import * as React from "react"; import {Home} from "./pages/home/home"; import {Route, BrowserRouter} from "react-router-dom"; import {Switch} from "react-router"; import {Kugs} from "./pages/kugs/kugs"; import {Articles} from "./pages/articles/articles"; export function Root() { return ( <BrowserRouter> <...
Fix broken build because of macOS case-insensitive FS :(
Fix broken build because of macOS case-insensitive FS :(
TypeScript
apache-2.0
KotlinBy/awesome-kotlin,KotlinBy/awesome-kotlin,KotlinBy/awesome-kotlin,KotlinBy/awesome-kotlin
--- +++ @@ -2,7 +2,7 @@ import {Home} from "./pages/home/home"; import {Route, BrowserRouter} from "react-router-dom"; import {Switch} from "react-router"; -import {Kugs} from "./pages/kugs/Kugs"; +import {Kugs} from "./pages/kugs/kugs"; import {Articles} from "./pages/articles/articles"; export function Root(...
3d9804844291b30584d9b7a0791df762fe3d1ae5
packages/core/src/helperFunctions/KnownValues.ts
packages/core/src/helperFunctions/KnownValues.ts
export default class KnownValues { _knownValues: any = {}; _knownValuesMap = new Map(); constructor() { Object.assign(this._knownValues, { "String.prototype.slice": String.prototype.slice, "String.prototype.substr": String.prototype.substr, "String.prototype.replace": String.prototype.repla...
export default class KnownValues { _knownValues: any = {}; _knownValuesMap = new Map(); constructor() { Object.assign(this._knownValues, { "String.prototype.slice": String.prototype.slice, "String.prototype.substr": String.prototype.substr, "String.prototype.replace": String.prototype.repla...
Add more known values so their names show up alongside call expressions
Add more known values so their names show up alongside call expressions
TypeScript
mit
mattzeunert/FromJS,mattzeunert/FromJS,mattzeunert/FromJS,mattzeunert/FromJS
--- +++ @@ -12,6 +12,12 @@ "Array.prototype.join": Array.prototype.join, "JSON.parse": JSON.parse, "Object.keys": Object.keys, + "Number.prototype.toString": Number.prototype.toString, + "Boolean.prototype.toString": Boolean.prototype.toString, + "Object.prototype.toString": Object...
54a93f288fa75e80c33b5d113db224aa6df5891b
tools/env/base.ts
tools/env/base.ts
import { EnvConfig } from './env-config.interface'; const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.16.0', RELEASEVERSION: '0.16.0' }; export = BaseConfig;
import { EnvConfig } from './env-config.interface'; const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.17.0', RELEASEVERSION: '0.17.0' }; export = BaseConfig;
Update release version to 0.17.0.
Update release version to 0.17.0.
TypeScript
mit
nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website
--- +++ @@ -3,8 +3,8 @@ const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', - RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.16.0', - RELEASEVERSION: '0.16.0' + RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.17.0', + RELEASEVERSION: '0.17...
0db0aa32f7ec73317db11ab996765db9619f8633
tests/usage.ts
tests/usage.ts
// File for testing typescript usage import { Jomini, toArray } from ".."; (async function () { const jomini = await Jomini.initialize(); let actual = jomini.parseText("a=b"); if (actual["a"] != "b") { throw new Error("unexpected result"); } actual = jomini.parseText("a=b", { encoding: "utf8" }); actu...
// File for testing typescript usage import { Jomini, toArray } from ".."; (async function () { const jomini = await Jomini.initialize(); let actual = jomini.parseText("a=b"); if (actual["a"] != "b") { throw new Error("unexpected result"); } actual = jomini.parseText("a=b", { encoding: "utf8" }); actu...
Add wasm initialization test case
Add wasm initialization test case
TypeScript
mit
nickbabcock/jomini,nickbabcock/jomini,nickbabcock/jomini
--- +++ @@ -19,4 +19,11 @@ writer.write_unquoted("foo"); writer.write_quoted("bar"); }); + + Jomini.resetModule(); + + const wasmModule = null as unknown as WebAssembly.Module; + await Jomini.initialize({ + wasm: wasmModule, + }); })();
1351967a9949829ecd25c2a9daa7e6d773ee5dc9
packages/delir-core/src/helper/ProjectMigrator.ts
packages/delir-core/src/helper/ProjectMigrator.ts
import * as _ from 'lodash' export default { isMigratable: (project: ProjectScheme) => { return false }, migrate: (project: ProjectScheme) => { return project } }
import * as _ from 'lodash' export default { isMigratable: (project: any) => { return false }, migrate: (project: any) => { return project } }
Remove old version project migration support
Remove old version project migration support
TypeScript
mit
Ragg-/Delir,Ragg-/Delir,Ragg-/Delir,Ragg-/Delir
--- +++ @@ -1,11 +1,11 @@ import * as _ from 'lodash' export default { - isMigratable: (project: ProjectScheme) => { + isMigratable: (project: any) => { return false }, - migrate: (project: ProjectScheme) => { + migrate: (project: any) => { return project } }
c48c7201adba45af5d72922e0aa5dda455548a84
src/background/completion/impl/BookmarkRepositoryImpl.ts
src/background/completion/impl/BookmarkRepositoryImpl.ts
import BookmarkRepository, {BookmarkItem} from "../BookmarkRepository"; import {HistoryItem} from "../HistoryRepository"; import PrefetchAndCache from "./PrefetchAndCache"; const COMPLETION_ITEM_LIMIT = 10; export default class CachedBookmarkRepository implements BookmarkRepository { private bookmarkCache: Prefetch...
import BookmarkRepository, {BookmarkItem} from "../BookmarkRepository"; import {HistoryItem} from "../HistoryRepository"; import PrefetchAndCache from "./PrefetchAndCache"; const COMPLETION_ITEM_LIMIT = 10; export default class CachedBookmarkRepository implements BookmarkRepository { private bookmarkCache: Prefetch...
Fix bookmark completion on open command
Fix bookmark completion on open command
TypeScript
mit
ueokande/vim-vixen,ueokande/vim-vixen,ueokande/vim-vixen
--- +++ @@ -38,8 +38,8 @@ private filter(items: HistoryItem[], query: string) { return items.filter(item => { - return query.split(' ').some(keyword => { - return item.title.toLowerCase().includes(keyword.toLowerCase()) || item.url.includes(keyword) + return query.split(' ').every(keyword =...
449e62059e9cf6a8391190fdf8103bf044475371
src/components/formComponents/LimitationForm.tsx
src/components/formComponents/LimitationForm.tsx
import React from "react"; import { observer } from "mobx-react"; import { Limitation, Item, LimitFlag } from "../../stores/model"; import Select from "./Select"; import MultiSelect from "./MultiSelect"; interface LimitationProps { label: string; limitation: Limitation; items: Item[]; } class LimitationF...
import React from "react"; import { observer } from "mobx-react"; import { Limitation, Item, LimitFlag } from "../../stores/model"; import Select from "./Select"; import MultiSelect from "./MultiSelect"; interface LimitationProps { label: string; limitation: Limitation; items: Item[]; } class LimitationF...
Remove labels of select and multiselect in LimitaionForm
Remove labels of select and multiselect in LimitaionForm
TypeScript
mit
TheIndifferent/jenkins-scm-koji-plugin,judovana/jenkins-scm-koji-plugin,TheIndifferent/jenkins-scm-koji-plugin,judovana/jenkins-scm-koji-plugin,judovana/jenkins-scm-koji-plugin
--- +++ @@ -38,15 +38,13 @@ </div> <div className="value-container"> <Select - label={"flag"} onChange={this.onFlagChange} options={["NONE", "WHITELIST", "BLACKLIST"]} ...
d5a427f3c0460ab7fd181e1920affb65d014b9f5
src/services/DeviceService.ts
src/services/DeviceService.ts
import winston from 'winston'; import DeviceModel from '@/models/device'; export default class DeviceService { // region public static methods public static async addDevice(platform: string, mail: string, token: string) { let device = await DeviceModel.findOne({ platform, mail }); if (!device) { devi...
import winston from 'winston'; import DeviceModel from '@/models/device'; export default class DeviceService { // region public static methods public static async addDevice(platform: string, mail: string, token: string): Promise<string> { let device = await DeviceModel.findOne({ platform, mail }); if (!dev...
Return device id in device service
Return device id in device service
TypeScript
mit
schulcloud/node-notification-service,schulcloud/node-notification-service,schulcloud/node-notification-service
--- +++ @@ -3,7 +3,7 @@ export default class DeviceService { // region public static methods - public static async addDevice(platform: string, mail: string, token: string) { + public static async addDevice(platform: string, mail: string, token: string): Promise<string> { let device = await DeviceModel.fi...
abd547b29e9e746e6e33d88aa36a63da4850d067
packages/@sanity/field/src/diff/resolve/diffResolver.ts
packages/@sanity/field/src/diff/resolve/diffResolver.ts
import {DatetimeFieldDiff} from '../components/datetime' import {UrlFieldDiff} from '../components/url' import {SlugFieldDiff} from '../components/slug' import {DiffComponentResolver} from '../types' export const diffResolver: DiffComponentResolver = function diffResolver({schemaType}) { // datetime or date if (['...
import {DatetimeFieldDiff} from '../components/datetime' import {UrlFieldDiff} from '../components/url' import {SlugFieldDiff} from '../components/slug' import {isPTSchemaType, PTDiff} from '../components/portableText' import {DiffComponentResolver} from '../types' export const diffResolver: DiffComponentResolver = fu...
Add portable text diff resolver
[field] Add portable text diff resolver
TypeScript
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
--- +++ @@ -1,6 +1,7 @@ import {DatetimeFieldDiff} from '../components/datetime' import {UrlFieldDiff} from '../components/url' import {SlugFieldDiff} from '../components/slug' +import {isPTSchemaType, PTDiff} from '../components/portableText' import {DiffComponentResolver} from '../types' export const diffRes...
f7b4c490dfa4d930649a97ca0eaa550dc5da589d
src/app/modules/wallet/components/components/transactions-table/transactions-table.component.ts
src/app/modules/wallet/components/components/transactions-table/transactions-table.component.ts
import { Component, Input } from '@angular/core'; @Component({ selector: 'm-walletTransactionsTable', templateUrl: './transactions-table.component.html', }) export class WalletTransactionsTableComponent { @Input() currency: string; @Input() transactions: any; @Input() filterApplied: boolean = false; typeL...
import { Component, Input } from '@angular/core'; @Component({ selector: 'm-walletTransactionsTable', templateUrl: './transactions-table.component.html', }) export class WalletTransactionsTableComponent { @Input() currency: string; @Input() transactions: any; @Input() filterApplied: boolean = false; typeL...
Add offchain pro payouts to transactions table
Add offchain pro payouts to transactions table
TypeScript
agpl-3.0
Minds/front,Minds/front,Minds/front,Minds/front
--- +++ @@ -16,6 +16,7 @@ token: 'Purchase', withdraw: 'On-Chain Transfer', 'offchain:boost': 'Off-Chain Boost', + 'offchain:Pro Payout': 'Earnings Payout', boost: 'On-Chain Boost', pro_earning: 'Pro Earnings', payout: 'Transfer to Bank Account',
ec19cfaaac32cec93f1b9ead9a6febcf3813a153
packages/lesswrong/lib/collections/posts/constants.ts
packages/lesswrong/lib/collections/posts/constants.ts
import React from 'react'; import { DatabasePublicSetting } from "../../publicSettings"; import QuestionAnswerIcon from '@material-ui/icons/QuestionAnswer'; import PlayCircleOutlineIcon from '@material-ui/icons/PlayCircleOutline'; import AllInclusiveIcon from '@material-ui/icons/AllInclusive'; import SVGIconProps from ...
import React from 'react'; import { DatabasePublicSetting } from "../../publicSettings"; import QuestionAnswerIcon from '@material-ui/icons/QuestionAnswer'; import PlayCircleOutlineIcon from '@material-ui/icons/PlayCircleOutline'; import AllInclusiveIcon from '@material-ui/icons/AllInclusive'; export const postStatuse...
Replace SVGIconProps with generic React.SVGProps
Replace SVGIconProps with generic React.SVGProps
TypeScript
mit
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2
--- +++ @@ -3,7 +3,6 @@ import QuestionAnswerIcon from '@material-ui/icons/QuestionAnswer'; import PlayCircleOutlineIcon from '@material-ui/icons/PlayCircleOutline'; import AllInclusiveIcon from '@material-ui/icons/AllInclusive'; -import SVGIconProps from '@material-ui/icons' export const postStatuses = { ST...
785e2a017bca4a18e142c511e528cdd713b70e2f
app/services/events.service.ts
app/services/events.service.ts
import { Injectable } from "@angular/core"; import { Event } from "./../models/event.model"; import { Http, Response } from "@angular/http"; import { Observable } from "rxjs/Observable"; import "rxjs/add/operator/map"; @Injectable() export class EventsService { baseURLPort: string = "3000"; baseURL: string = "ht...
import { Injectable } from "@angular/core"; import { Event } from "./../models/event.model"; import { Http, Response } from "@angular/http"; import { Observable } from "rxjs/Observable"; import "rxjs/add/operator/map"; @Injectable() export class EventsService { baseURLPort: string = "3000"; baseURL: string = "ht...
Add example of pre-processing of data
Add example of pre-processing of data
TypeScript
mit
alex-arriaga/angular-conference-sgvirtual-2016,alex-arriaga/angular-conference-sgvirtual-2016,alex-arriaga/angular-conference-sgvirtual-2016
--- +++ @@ -9,17 +9,23 @@ baseURLPort: string = "3000"; baseURL: string = "http://cosasextraordinarias.com"; + baseUrlAPI : string = ""; constructor(private _http: Http) { - this.baseURL = `${this.baseURL}:${this.baseURLPort}`; + this.baseUrlAPI = `${this.baseURL}:${this.baseURLPort}`; } p...
2230360e7ea01b97b2a46a545500f7b582c3c768
src/api/models/drive-file.ts
src/api/models/drive-file.ts
import db from '../../db/mongodb'; export default db.get('drive_files') as any; // fuck type definition export function validateFileName(name: string): boolean { return ( (name.trim().length > 0) && (name.length <= 200) && (name.indexOf('\\') === -1) && (name.indexOf('/') === -1) && (name.indexOf('..') ===...
import db from '../../db/mongodb'; const collection = db.get('drive_files'); (collection as any).index('hash'); // fuck type definition export default collection as any; // fuck type definition export function validateFileName(name: string): boolean { return ( (name.trim().length > 0) && (name.length <= 200) &...
Add 'hash' index to the drive_files collection
[Server] Add 'hash' index to the drive_files collection
TypeScript
mit
Tosuke/misskey,Tosuke/misskey,Tosuke/misskey,syuilo/Misskey,armchair-philosophy/misskey,Tosuke/misskey,armchair-philosophy/misskey,ha-dai/Misskey,armchair-philosophy/misskey,Tosuke/misskey,syuilo/Misskey,armchair-philosophy/misskey,ha-dai/Misskey
--- +++ @@ -1,6 +1,10 @@ import db from '../../db/mongodb'; -export default db.get('drive_files') as any; // fuck type definition +const collection = db.get('drive_files'); + +(collection as any).index('hash'); // fuck type definition + +export default collection as any; // fuck type definition export function ...
d6702e8c84be23f753f4321e40cf76e1b5d6de7f
src/npm-client.ts
src/npm-client.ts
import axios from 'axios' const client = axios.create({ baseURL: 'https://registry.npmjs.org', }) /** * Simple wrapper around the NPM API. */ export const npmClient = { getPackageManifest: async (name: string) => client.get(name).then((r) => r.data), }
import axios from 'axios' import child from 'child_process' import { promisify } from 'util' import { memoizeAsync } from './util' const execAsync = promisify(child.exec) /** * Read registry from npm config. */ export async function getNpmRegistry() { const { stdout } = await execAsync('npm config get registry') ...
Read registry from npm config
feat: Read registry from npm config
TypeScript
mit
jeffijoe/typesync,jeffijoe/typesync
--- +++ @@ -1,13 +1,30 @@ import axios from 'axios' +import child from 'child_process' +import { promisify } from 'util' +import { memoizeAsync } from './util' -const client = axios.create({ - baseURL: 'https://registry.npmjs.org', +const execAsync = promisify(child.exec) + +/** + * Read registry from npm config....
19458f9bab3d5e303f074a7bd641ef90491795e6
src/sortablejs-options.ts
src/sortablejs-options.ts
export interface SortablejsOptions { group?: string | { name?: string; pull?: boolean | 'clone' | Function; put?: boolean | string[] | Function; revertClone?: boolean; }; sort?: boolean; delay?: number; disabled?: boolean; store?: { get: (sortable: any) => any[]; set: (sortable: any)...
export interface SortablejsOptions { group?: string | { name?: string; pull?: boolean | 'clone' | Function; put?: boolean | string[] | Function; revertClone?: boolean; }; sort?: boolean; delay?: number; disabled?: boolean; store?: { get: (sortable: any) => any[]; set: (sortable: any)...
Add onUnchoose method to options interface.
Add onUnchoose method to options interface. Related PR: https://github.com/RubaXa/Sortable/pull/1033
TypeScript
mit
SortableJS/angular-sortablejs
--- +++ @@ -40,5 +40,6 @@ onMove?: (event: any) => boolean; scrollFn?: (offsetX: any, offsetY: any, originalEvent: any) => any; onChoose?: (event: any) => any; + onUnchoose?: (event: any) => any; onClone?: (event: any) => any; }
d2f47826315dbeb9f8fc712f41bb18599e5d5caf
src/utils/index.ts
src/utils/index.ts
import { Grid, Row, Column, Diagonal } from '../definitions'; export function getRows(grid: Grid): Row[] { const length = Math.sqrt(grid.length); const copy = grid.concat([]); return getArray(length).map(() => copy.splice(0, length)); } export function getColumns(grid: Grid): Column[] { return getRows(transpo...
import { Grid, Row, Column, Diagonal } from '../definitions'; export function getRows(grid: Grid): Row[] { const length = Math.sqrt(grid.length); const copy = grid.concat([]); return getArray(length).map(() => copy.splice(0, length)); } export function getColumns(grid: Grid): Column[] { return getRows(transpo...
Use const instead of var
Use const instead of var
TypeScript
mit
artfuldev/tictactoe-ai,artfuldev/tictactoe-ai
--- +++ @@ -21,7 +21,7 @@ export function transpose<T>(grid: Array<T>): Array<T> { const size = Math.sqrt(grid.length); - var transposed = grid.filter(() => false); + const transposed = grid.filter(() => false); for (let j = 0; j < size; ++j) { for (let i = 0; i < size; ++i) { trans...
cf508c10d2e682230600f1d97d05c4054b8959e4
src/Parsing/Outline/isLineFancyOutlineConvention.ts
src/Parsing/Outline/isLineFancyOutlineConvention.ts
import { tryToParseUnorderedList } from './tryToParseUnorderedList' import { trytoParseOrderedList } from './tryToParseOrderedList' import { tryToParseThematicBreakStreak } from './tryToParseThematicBreakStreak' import { tryToParseBlockquote } from './tryToParseBlockquote' import { tryToParseCodeBlock } from './tryToPa...
import { tryToParseUnorderedList } from './tryToParseUnorderedList' import { trytoParseOrderedList } from './tryToParseOrderedList' import { tryToParseThematicBreakStreak } from './tryToParseThematicBreakStreak' import { tryToParseBlockquote } from './tryToParseBlockquote' import { tryToParseCodeBlock } from './tryToPa...
Update argument name in comment
Update argument name in comment
TypeScript
mit
start/up,start/up
--- +++ @@ -22,7 +22,7 @@ const DUMMY_SOURCE_LINE_NUMBER = 1 -// If `line` would be considered anything but a regular paragraph, it's considered fancy. +// If `markupLine` would be considered anything but a regular paragraph, it's considered fancy. export function isLineFancyOutlineConvention(markupLine: stri...
2687111bfccfeef1086578d39698fa22726324a0
app/src/ui/diff/image-diffs/render-image.tsx
app/src/ui/diff/image-diffs/render-image.tsx
import * as React from 'react' import { Image } from '../../../models/diff' export function renderImage( image: Image | undefined, props?: { style?: {} onLoad?: (e: React.SyntheticEvent<HTMLImageElement>) => void } ) { if (!image) { return null } const imageSource = `data:${image.mediaType};b...
import * as React from 'react' import { Image } from '../../../models/diff' interface IRenderImageOptions { readonly style?: {} readonly onLoad?: (e: React.SyntheticEvent<HTMLImageElement>) => void } export function renderImage( image: Image | undefined, options?: IRenderImageOptions ) { if (!image) { ...
Split these out into their own type
Split these out into their own type
TypeScript
mit
gengjiawen/desktop,hjobrien/desktop,kactus-io/kactus,artivilla/desktop,desktop/desktop,hjobrien/desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,say25/desktop,shiftkey/desktop,shiftkey/desktop,say25/desktop,gengjiawen/desktop,kactus-io/kactus,gengjiawen/desktop,artivilla/desktop,shiftkey/desktop,desktop/desk...
--- +++ @@ -2,12 +2,14 @@ import { Image } from '../../../models/diff' +interface IRenderImageOptions { + readonly style?: {} + readonly onLoad?: (e: React.SyntheticEvent<HTMLImageElement>) => void +} + export function renderImage( image: Image | undefined, - props?: { - style?: {} - onLoad?: (e: Re...
404b3a03eb1f343db4040f160fefe91d94f79930
app/factory-virtualmachine/model/virtual-machine.ts
app/factory-virtualmachine/model/virtual-machine.ts
export class VirtualMachine { }
export class VirtualMachine { id: number; code: string; ipAddress: string; dns: string; osPlatform: string; ram: number; diskSpace: number; manufacturer: string; model: string; yearOfService : number; condition: string; constructor (id: number, code: string, ipAddress: string, dns: string, ...
Add properties to virtual machine class
Add properties to virtual machine class
TypeScript
mit
railsstudent/angular2-appcheck,railsstudent/angular2-appcheck,railsstudent/angular2-appcheck
--- +++ @@ -1,5 +1,33 @@ - export class VirtualMachine { + id: number; + code: string; + ipAddress: string; + dns: string; + osPlatform: string; + ram: number; + diskSpace: number; + manufacturer: string; + model: string; + yearOfService : number; + condition: string; + + constructor (id: number, co...
6013bd6f9de17f35884e59eade39fbdc6e766f55
types/gulp-jsonmin/index.d.ts
types/gulp-jsonmin/index.d.ts
// Type definitions for gulp-jsonmin 1.1 // Project: https://github.com/englercj/gulp-jsonmin // Definitions by: Romain Faust <https://github.com/romain-faust> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="node" /> import { Transform } from 'stream'; declare function GulpJs...
// Type definitions for gulp-jsonmin 1.1 // Project: https://github.com/englercj/gulp-jsonmin // Definitions by: Romain Faust <https://github.com/romain-faust> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="node" /> import { Transform } from 'stream'; declare function gulpJs...
Change the export case to be more semantically correct
Change the export case to be more semantically correct
TypeScript
mit
dsebastien/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,mcliment/DefinitelyTyped,AgentME/DefinitelyTyped,magny/DefinitelyTyped,borisyankov/DefinitelyTyped,...
--- +++ @@ -7,12 +7,12 @@ import { Transform } from 'stream'; -declare function GulpJsonmin(options?: GulpJsonmin.Options): Transform; +declare function gulpJsonmin(options?: gulpJsonmin.Options): Transform; -declare namespace GulpJsonmin { +declare namespace gulpJsonmin { interface Options { ver...
bdbcd6081e633de18a68919ee75fa382940043ec
src/app/partner/coach/view/coach-view.component.ts
src/app/partner/coach/view/coach-view.component.ts
import { Component } from '@angular/core'; import { ActivatedRoute, Params, Router } from '@angular/router'; import { Coach } from '../../../models/index'; import { CoachService } from '../../../_services/index'; @Component({ selector: 'coach-view', templateUrl: 'coach-view.component.html' }) export class Coach...
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Params, Router } from '@angular/router'; import { Coach } from '../../../models/index'; import { CoachService } from '../../../_services/index'; @Component({ selector: 'coach-view', templateUrl: 'coach-view.component.html' }) export cla...
Move service call in OnInit
Move service call in OnInit
TypeScript
mit
XavierGuichet/bemoove-front,XavierGuichet/bemoove-front,XavierGuichet/bemoove-front
--- +++ @@ -1,4 +1,4 @@ -import { Component } from '@angular/core'; +import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Params, Router } from '@angular/router'; import { Coach } from '../../../models/index'; @@ -10,19 +10,21 @@ templateUrl: 'coach-view.component.html' }) -export cla...
26f099e882d9216bfaf666f22f8c433fb72039b0
demo/client.tsx
demo/client.tsx
import * as React from "react"; import { render } from "react-dom"; import { App } from "./App"; import "../node_modules/normalize.css/normalize.css"; import "../node_modules/draft-js/dist/Draft.css"; import "../src/styles/react-mde-all.scss"; import "./styles/demo.scss"; import "./styles/variables.scss"; render( ...
import * as React from "react"; import { render } from "react-dom"; import { App } from "./App"; import "../node_modules/normalize.css/normalize.css"; import "../src/styles/react-mde-all.scss"; import "./styles/demo.scss"; import "./styles/variables.scss"; render( <App />, document.getElementById("#app_contai...
Remove draft.css from the demo
Remove draft.css from the demo
TypeScript
mit
andrerpena/react-mde,andrerpena/react-mde,andrerpena/react-mde
--- +++ @@ -3,7 +3,6 @@ import { App } from "./App"; import "../node_modules/normalize.css/normalize.css"; -import "../node_modules/draft-js/dist/Draft.css"; import "../src/styles/react-mde-all.scss"; import "./styles/demo.scss"; import "./styles/variables.scss";
bf8410fc6cd55c5816bf478e5c31c967fc70ebbf
build/azure-pipelines/publish-types/check-version.ts
build/azure-pipelines/publish-types/check-version.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 isNaN instead of === NaN
Use isNaN instead of === NaN
TypeScript
mit
hoovercj/vscode,eamodio/vscode,joaomoreno/vscode,microsoft/vscode,microsoft/vscode,hoovercj/vscode,the-ress/vscode,eamodio/vscode,joaomoreno/vscode,hoovercj/vscode,hoovercj/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,microsoft/vscode,hoovercj/vscode,Microsoft/vscode,the-ress/vscode,joaomoreno/vscode,Krzysztof-Cies...
--- +++ @@ -35,7 +35,7 @@ return false; } - if (parseInt(major, 10) === NaN || parseInt(minor, 10) === NaN) { + if (isNaN(parseInt(major, 10)) || isNaN(parseInt(minor, 10))) { return false; }
441474b9118279902eda690ea31b491b7a2a12ed
packages/universal-cookie/src/types.ts
packages/universal-cookie/src/types.ts
export type Cookie = any; export interface CookieGetOptions { doNotParse?: boolean; } export interface CookieSetOptions { path?: string; expires?: Date; maxAge?: number; domain?: string; secure?: boolean; httpOnly?: boolean; } export interface CookieChangeOptions { name: string; value?: any, optio...
export type Cookie = any; export interface CookieGetOptions { doNotParse?: boolean; } export interface CookieSetOptions { path?: string; expires?: Date; maxAge?: number; domain?: string; secure?: boolean; httpOnly?: boolean; sameSite?: boolean | string; } export interface CookieChangeOptions { name:...
Add sameSite attribute for cookies
Add sameSite attribute for cookies
TypeScript
mit
reactivestack/cookies,reactivestack/cookies,reactivestack/cookies,eXon/react-cookie
--- +++ @@ -11,6 +11,7 @@ domain?: string; secure?: boolean; httpOnly?: boolean; + sameSite?: boolean | string; } export interface CookieChangeOptions { name: string;
a516ff81c97259dd19b48ceb037a7896f4624c9e
public/app/features/panel/GeneralTabCtrl.ts
public/app/features/panel/GeneralTabCtrl.ts
import coreModule from 'app/core/core_module'; const obj2string = obj => { return Object.keys(obj) .reduce((acc, curr) => acc.concat(curr + '=' + obj[curr]), []) .join(); }; export class GeneralTabCtrl { panelCtrl: any; /** @ngInject */ constructor($scope) { this.panelCtrl = $scope.ctrl; con...
import coreModule from 'app/core/core_module'; const obj2string = obj => { return Object.keys(obj) .reduce((acc, curr) => acc.concat(curr + '=' + obj[curr]), []) .join(); }; export class GeneralTabCtrl { panelCtrl: any; /** @ngInject */ constructor($scope) { this.panelCtrl = $scope.ctrl; con...
Add prop key to panelPropsString to avoid a bug when changing another value and the render doesnt trigger
Add prop key to panelPropsString to avoid a bug when changing another value and the render doesnt trigger
TypeScript
agpl-3.0
grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana
--- +++ @@ -22,7 +22,7 @@ const { panel } = scope.ctrl; const panelPropsToTrack = ['title', 'description', 'transparent', 'repeat', 'repeatDirection', 'minSpan']; const panelPropsString = panelPropsToTrack - .map(prop => (panel[prop] && panel[prop].toString ? panel[prop].toString() : panel...
f6ce230fb40f6a7d6fa312d49f92d3c79b9ba73f
src/hooks/api/getters/useStrategies/useStrategies.ts
src/hooks/api/getters/useStrategies/useStrategies.ts
import useSWR, { mutate } from 'swr'; import { useEffect, useState } from 'react'; import { formatApiPath } from '../../../../utils/format-path'; import { IStrategy } from '../../../../interfaces/strategy'; import handleErrorResponses from '../httpErrorResponseHandler'; export const STRATEGIES_CACHE_KEY = 'api/admin/s...
import useSWR, { mutate } from 'swr'; import { useEffect, useState } from 'react'; import { formatApiPath } from '../../../../utils/format-path'; import { IStrategy } from '../../../../interfaces/strategy'; import handleErrorResponses from '../httpErrorResponseHandler'; export const STRATEGIES_CACHE_KEY = 'api/admin/s...
Add default strategy type to strategy hook
Add default strategy type to strategy hook - Fixes the missing sidebar while loading the strategy types Trello: https://trello.com/c/WJk8bI8l/490-feature-strategies-loading-state
TypeScript
apache-2.0
Unleash/unleash-frontend,Unleash/unleash-frontend,Unleash/unleash-frontend,Unleash/unleash-frontend
--- +++ @@ -6,13 +6,29 @@ export const STRATEGIES_CACHE_KEY = 'api/admin/strategies'; +const flexibleRolloutStrategy: IStrategy = { + deprecated: false, + name: 'flexibleRollout', + displayName: 'Gradual rollout', + editable: false, + description: 'Roll out to a percentage of your userbase, and en...
2c0b34f4e740e7d26d26d38298fc2e685d46d286
client/Reducers/EncounterActions.tsx
client/Reducers/EncounterActions.tsx
import { CombatantState } from "../../common/CombatantState"; import { StatBlock } from "../../common/StatBlock"; export type Action = | AddCombatantFromState | AddCombatantFromStatBlock | RemoveCombatant | StartEncounter | EndEncounter; type AddCombatantFromState = { type: "AddCombatantFromState"; payl...
import { CombatantState } from "../../common/CombatantState"; import { StatBlock } from "../../common/StatBlock"; export type Action = | AddCombatantFromState | AddCombatantFromStatBlock | RemoveCombatant | StartEncounter | EndEncounter | NextTurn | PreviousTurn; type AddCombatantFromState = { type: "...
Add NextTurn and PreviousTurn actions
Add NextTurn and PreviousTurn actions
TypeScript
mit
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
--- +++ @@ -6,7 +6,9 @@ | AddCombatantFromStatBlock | RemoveCombatant | StartEncounter - | EndEncounter; + | EndEncounter + | NextTurn + | PreviousTurn; type AddCombatantFromState = { type: "AddCombatantFromState"; @@ -42,6 +44,14 @@ type: "EndEncounter"; }; +type NextTurn = { + type: "NextT...
964ebdeaf942bf9d0e107f5655aa3df25b696683
src/app/core/app.component.ts
src/app/core/app.component.ts
import { Component, OnInit } from '@angular/core'; import { Router, NavigationStart } from '@angular/router'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent implements OnInit { navOpen: boolean = false; constructor(private router: Router) { } ngOnInit() ...
import { Component, OnInit } from '@angular/core'; import { Router, NavigationStart } from '@angular/router'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent implements OnInit { navOpen: boolean; constructor(private router: Router) { } ngOnInit() { th...
Use event on navToggleHandler for value instead of toggling local member.
Use event on navToggleHandler for value instead of toggling local member.
TypeScript
mit
auth0-blog/ng2-dinos,kmaida/ng2-dinos,auth0-blog/ng2-dinos,kmaida/ng2-dinos,auth0-blog/ng2-dinos,kmaida/ng2-dinos
--- +++ @@ -6,7 +6,7 @@ templateUrl: './app.component.html' }) export class AppComponent implements OnInit { - navOpen: boolean = false; + navOpen: boolean; constructor(private router: Router) { } @@ -18,7 +18,7 @@ }); } - navToggleHandler() { - this.navOpen = !this.navOpen; + navToggleHa...
a9e9b061600aae14ac902dc9dad4f2fb58b20503
projects/core/src/lib/interfaces/wp-user.interface.ts
projects/core/src/lib/interfaces/wp-user.interface.ts
export interface WpUser { id?: string; name?: string; url?: string; description?: string; slug?: string; avatar_urls?: { 24?: string, 48?: string, 96?: string }; _links?: any; }
export interface WpUser { id?: string | number; name?: string; url?: string; link?: string; description?: string; slug?: string; avatar_urls?: { 24?: string, 48?: string, 96?: string }; meta?: any[]; _links?: any; }
Add link and meta properties
core: Add link and meta properties
TypeScript
mit
MurhafSousli/ng2-wp-api,MurhafSousli/ng2-wp-api
--- +++ @@ -1,7 +1,8 @@ export interface WpUser { - id?: string; + id?: string | number; name?: string; url?: string; + link?: string; description?: string; slug?: string; avatar_urls?: { @@ -9,5 +10,6 @@ 48?: string, 96?: string }; + meta?: any[]; _links?: any; }
276afa826b7328ae8ebc2fb096aa87963318ae87
SSHServerNodeJS/SSHServerNodeJS/Ciphers/TripleDESCBC.ts
SSHServerNodeJS/SSHServerNodeJS/Ciphers/TripleDESCBC.ts
import { ICipher } from "./ICipher"; import crypto = require("crypto"); export class TripleDESCBC implements ICipher { private m_3DES: crypto.Cipher; public getName(): string { return "3des-cbc"; } public getBlockSize(): number { return 8; } public getKeySize(): number { ...
import { ICipher } from "./ICipher"; import crypto = require("crypto"); export class TripleDESCBC implements ICipher { private m_Encryptor: crypto.Cipher; private m_Decryptor: crypto.Decipher; public getName(): string { return "3des-cbc"; } public getBlockSize(): number { return...
Fix Triple DES to use decryptor for NodeJS
Fix Triple DES to use decryptor for NodeJS
TypeScript
mit
TyrenDe/SSHServer,TyrenDe/SSHServer
--- +++ @@ -3,7 +3,8 @@ import crypto = require("crypto"); export class TripleDESCBC implements ICipher { - private m_3DES: crypto.Cipher; + private m_Encryptor: crypto.Cipher; + private m_Decryptor: crypto.Decipher; public getName(): string { return "3des-cbc"; @@ -18,14 +19,18 @@ }...
171ef8a0970555e942250036e7c03234c215ff9f
bids-validator/src/fulltest.ts
bids-validator/src/fulltest.ts
/** Adapter to run Node.js bids-validator fullTest with minimal changes from Deno */ import { ValidatorOptions } from './setup/options.ts' import { FileTree, BIDSFile } from './files/filetree.ts' import { walkFileTree } from './schema/walk.ts' import { Issue } from './types/issues.ts' import validate from '../dist/esm/...
/** Adapter to run Node.js bids-validator fullTest with minimal changes from Deno */ import { ValidatorOptions } from './setup/options.ts' import { FileTree, BIDSFile } from './files/filetree.ts' import { walkFileTree } from './schema/walk.ts' import { Issue } from './types/issues.ts' import validate from '../dist/esm/...
Add dataset dir prefix to AdapterFile mapping
Add dataset dir prefix to AdapterFile mapping
TypeScript
mit
nellh/bids-validator,nellh/bids-validator,nellh/bids-validator
--- +++ @@ -6,13 +6,12 @@ import validate from '../dist/esm/index.js' class AdapterFile { - private _file: BIDSFile - path: string + name: string webkitRelativePath: string - constructor(file: BIDSFile) { - this._file = file - this.path = file.name - this.webkitRelativePath = file.name + construc...
d66250f0700a4e641836e25ce286828e032d72ce
src/sanitizer/index.ts
src/sanitizer/index.ts
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import * as sanitize from 'sanitize-html'; /** * A class to sanitize HTML strings. * * #### Notes * This class should not ordinarily need to be instantiated by user code. * Instead, the `defaultSanitizer` insta...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import * as sanitize from 'sanitize-html'; /** * A class to sanitize HTML strings. * * #### Notes * This class should not ordinarily need to be instantiated by user code. * Instead, the `defaultSanitizer` insta...
Allow "src" attribute for <img> tags.
Allow "src" attribute for <img> tags.
TypeScript
bsd-3-clause
charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab,TypeFox/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,TypeFox/jupyterlab,charnpreetsingh185/jupyterlab,jupyter/jupyterlab,charnpreetsingh185/jupyterlab,TypeFox/jupyt...
--- +++ @@ -23,7 +23,9 @@ allowedTags: sanitize.defaults.allowedTags.concat('img'), allowedAttributes: { // Allow the "rel" attribute for <a> tags. - 'a': sanitize.defaults.allowedAttributes['a'].concat('rel') + 'a': sanitize.defaults.allowedAttributes['a'].concat('rel'), + // Allow th...
0ea3e3343b136d5ca1dca3afec1dc628379c72ba
src/utils/telemetry.ts
src/utils/telemetry.ts
'use strict'; import * as appInsights from "applicationinsights"; import packageLockJson from '../../package-lock.json'; import packageJson from '../../package.json'; import * as Constants from '../common/constants'; import { RestClientSettings } from '../models/configurationSettings'; appInsights.setup(Const...
'use strict'; import * as appInsights from "applicationinsights"; import packageLockJson from '../../package-lock.json'; import packageJson from '../../package.json'; import * as Constants from '../common/constants'; import { RestClientSettings } from '../models/configurationSettings'; appInsights.setup(Const...
Use default client initialized in Telemetry
Use default client initialized in Telemetry
TypeScript
mit
Huachao/vscode-restclient,Huachao/vscode-restclient
--- +++ @@ -31,7 +31,7 @@ public static sendEvent(eventName: string, properties?: { [key: string]: string }) { try { if (Telemetry.restClientSettings.enableTelemetry) { - appInsights.defaultClient.trackEvent({name: eventName, properties}); + Telemetry.defaultCl...
e74c03aca3e44419c301b526b8b7a0277cc6811b
tests/cases/fourslash/tsxCompletionNonTagLessThan.ts
tests/cases/fourslash/tsxCompletionNonTagLessThan.ts
/// <reference path='fourslash.ts'/> ////var x: Array<numb/*a*/; ////[].map<numb/*b*/; ////1 < Infini/*c*/; for (const marker of ["a", "b"]) { goTo.marker(marker); verify.completionListContains("number"); verify.not.completionListContains("SVGNumber"); }; goTo.marker("c"); verify.completionListContains("...
/// <reference path='fourslash.ts'/> // @Filename: /a.tsx ////var x: Array<numb/*a*/; ////[].map<numb/*b*/; ////1 < Infini/*c*/; for (const marker of ["a", "b"]) { goTo.marker(marker); verify.completionListContains("number"); verify.not.completionListContains("SVGNumber"); }; goTo.marker("c"); verify.com...
Add missing filename to tsx test
Add missing filename to tsx test
TypeScript
apache-2.0
kpreisser/TypeScript,TukekeSoft/TypeScript,mihailik/TypeScript,DLehenbauer/TypeScript,TukekeSoft/TypeScript,weswigham/TypeScript,minestarks/TypeScript,jwbay/TypeScript,TukekeSoft/TypeScript,minestarks/TypeScript,mihailik/TypeScript,RyanCavanaugh/TypeScript,erikmcc/TypeScript,SaschaNaz/TypeScript,DLehenbauer/TypeScript,...
--- +++ @@ -1,5 +1,6 @@ /// <reference path='fourslash.ts'/> +// @Filename: /a.tsx ////var x: Array<numb/*a*/; ////[].map<numb/*b*/; ////1 < Infini/*c*/;
5ca5c1f7dbb6a1bf85a3aa6f61352af49d3c784a
test/run-test.ts
test/run-test.ts
import * as path from 'path'; import { runTests } from 'vscode-test'; async function main() { try { const extensionDevelopmentPath = path.resolve(__dirname, '../../'); const extensionTestsPath = path.resolve(__dirname, './test-main'); const testWorkspacePath = path.resolve(__dirname, "../../templates")...
import * as path from 'path'; import { runTests } from 'vscode-test'; async function main() { try { const extensionDevelopmentPath = path.resolve(__dirname, '../../'); const extensionTestsPath = path.resolve(__dirname, './test-main'); const testWorkspacePath = path.resolve(__dirname, "../../templates")...
Add more logging when running tests
Add more logging when running tests
TypeScript
mpl-2.0
hashicorp/vscode-terraform,mauve/vscode-terraform,hashicorp/vscode-terraform,mauve/vscode-terraform,mauve/vscode-terraform,mauve/vscode-terraform,hashicorp/vscode-terraform
--- +++ @@ -22,7 +22,7 @@ // Download VS Code, unzip it and run the integration test await runTests(options); } catch (err) { - console.error('Failed to run tests'); + console.error('Failed to run tests', err); process.exit(1); } }
8fec88ffa8b4728f833d9d112bff58726e62bf0a
packages/components/components/pagination/usePagination.ts
packages/components/components/pagination/usePagination.ts
import { useState, useEffect } from 'react'; const usePagination = <T>(initialList: T[] = [], initialPage = 1, limit = 10) => { const [page, setPage] = useState(initialPage); const onNext = () => setPage(page + 1); const onPrevious = () => setPage(page - 1); const onSelect = (p: number) => setPage(p); ...
import { useState, useEffect } from 'react'; const usePagination = <T>(initialList: T[] = [], initialPage = 1, limit = 10) => { const [page, setPage] = useState(initialPage); const onNext = () => setPage(page + 1); const onPrevious = () => setPage(page - 1); const onSelect = (p: number) => setPage(p); ...
Use sorted list for next item
Use sorted list for next item
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -6,9 +6,10 @@ const onPrevious = () => setPage(page - 1); const onSelect = (p: number) => setPage(p); const list = [...initialList].splice((page - 1) * limit, limit); + const lastPage = Math.ceil(initialList.length / limit); + const isLastPage = page === lastPage; useEffect(() =...
af2c9720b2d623af313a15ce03e72ab8c58c1590
src/app/shared/http.service.ts
src/app/shared/http.service.ts
import { Injectable } from '@angular/core'; import { Http, Headers } from '@angular/http'; import { environment } from '../index'; @Injectable() export class HttpService { protected headers: Headers = new Headers(); constructor(private http: Http) { this.headers.append('Content-Type', 'application/json'); ...
import { Injectable } from '@angular/core'; import { Http, Headers } from '@angular/http'; import { environment } from '../index'; import { Observable } from 'rxjs/Rx'; @Injectable() export class HttpService { protected headers: Headers = new Headers(); protected $observables: {[id: string]: Observable<any>} = {}...
Add cache to prevent multiple server requests
[TASK] Add cache to prevent multiple server requests
TypeScript
mit
t3dd/T3DD16.Frontend,t3dd/T3DD16.Frontend,t3dd/T3DD16.Frontend
--- +++ @@ -1,11 +1,14 @@ import { Injectable } from '@angular/core'; import { Http, Headers } from '@angular/http'; import { environment } from '../index'; +import { Observable } from 'rxjs/Rx'; @Injectable() export class HttpService { protected headers: Headers = new Headers(); + protected $observables...
65641bffe84ad6ed10428401d3ae0de48c53546d
packages/@glimmer/application/src/helpers/user-helper.ts
packages/@glimmer/application/src/helpers/user-helper.ts
import { Dict, Opaque } from '@glimmer/util'; import { PathReference, TagWrapper, RevisionTag } from "@glimmer/reference"; import { Arguments, CapturedArguments, Helper as GlimmerHelper, VM } from "@glimmer/runtime"; import { RootReference } from '@glimmer/component'; export type UserHelper = (a...
import { Dict, Opaque } from '@glimmer/util'; import { TagWrapper, RevisionTag } from "@glimmer/reference"; import { Arguments, CapturedArguments, Helper as GlimmerHelper, VM } from "@glimmer/runtime"; import { CachedReference } from '@glimmer/component'; export type UserHelper = (args: ReadonlyAr...
Make user helper references cached
Make user helper references cached Recent changes in the Glimmer VM cause references to be reified (i.e. have their value() method called) multiple times per invocation, which is potentially expensive as well as very surprising to users. Users have an intuition that helper calls are functions calls, and a single invoc...
TypeScript
mit
glimmerjs/glimmer.js,glimmerjs/glimmer.js,glimmerjs/glimmer.js,glimmerjs/glimmer.js
--- +++ @@ -4,7 +4,6 @@ } from '@glimmer/util'; import { - PathReference, TagWrapper, RevisionTag } from "@glimmer/reference"; @@ -17,7 +16,7 @@ } from "@glimmer/runtime"; import { - RootReference + CachedReference } from '@glimmer/component'; export type UserHelper = (args: ReadonlyArray<Opaque...
168aaad17fb630fca6ccb23f5fee3e2c3adc5d98
functions/index.ts
functions/index.ts
import * as functions from "firebase-functions"; import * as _ from "lodash"; const maxTasks = 64; interface ITask { key?: string; updatedAt: number; } export const truncateTasks = functions.database.ref("users/{userId}/tasks/{state}/{taskId}").onCreate( async ({ data: { ref: { parent } } }) => { ...
import * as functions from "firebase-functions"; import * as _ from "lodash"; const maxTasks = 64; interface ITask { key?: string; updatedAt: number; } export const truncateTasks = functions.database.ref("users/{userId}/tasks/{state}/{taskId}").onCreate( async ({ data: { ref: { parent } } }) => { ...
Fix check of number of tasks
Fix check of number of tasks
TypeScript
mit
raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d
--- +++ @@ -12,7 +12,7 @@ async ({ data: { ref: { parent } } }) => { const snapshot = await parent.once("value"); - if (snapshot.numChildren() >= maxTasks) { + if (snapshot.numChildren() > maxTasks) { const tasks = snapshot.val(); for (const task of extractOld...
e8b471ea65e3f58a77333dcd8685f74033f4ce74
test/e2e/assertion/assertion_test.ts
test/e2e/assertion/assertion_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 {assert} from 'chai'; import {expectedErrors} from '../../conductor/hooks.js'; import {getBrowserAndPages, goToResource, step} from '../../shared/...
// 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 {assert} from 'chai'; import {expectedErrors} from '../../conductor/hooks.js'; import {getBrowserAndPages, goToResource, step} from '../../shared/...
Disable flaky console.error assertion test
Disable flaky console.error assertion test This is a revival of https://crrev.com/c/2520821 because we are still seeing the same build failures. Bug: 1145969 Change-Id: I999682502dbda10c515c6339078a43c8b1ce7dcd Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2529349 Reviewed-by: Y...
TypeScript
bsd-3-clause
ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend
--- +++ @@ -21,7 +21,8 @@ assert.ok(expectedErrors[0].includes('expected failure 1')); }); - it('console.error', async () => { + // Suspected flaky console.errors are persisting from previous e2e-tests + it.skip('[crbug.com/1145969]: console.error', async () => { const {frontend} = getBrowserAndPage...
fe3a7d8dfa3e3ea014aeade51587f0d848f54f92
src/client/app/watchlist/sidebar/search/search-api.service.ts
src/client/app/watchlist/sidebar/search/search-api.service.ts
import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import { Config, CoreApiResponseService } from '../../../core/index'; import { SearchStateService } from './state/index'; import { WatchlistStateService } from '../../state/watchlist-state.service'; declare let _:any; @Injectable() e...
import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import { Config, CoreApiResponseService } from '../../../core/index'; import { SearchStateService } from './state/index'; import { WatchlistStateService } from '../../state/watchlist-state.service'; declare let _:any; @Injectable() e...
Remove filter logic from the search results.
Remove filter logic from the search results.
TypeScript
mit
mpetkov/ng2-finance,mpetkov/ng2-finance,mpetkov/ng2-finance
--- +++ @@ -44,8 +44,6 @@ } private transform(data:any):any[] { - return _.get(data, 'data.items', []).filter((item:any) => { - return this.favorites.indexOf(item.symbol) === -1; - }); + return _.get(data, 'data.items', []); } }
5a32f27d66d871af5ab111fd03b34ecdef42576e
test/syntax/eval-pipe-spec.ts
test/syntax/eval-pipe-spec.ts
import { expect } from "chai"; import * as frame from "../../src/frames"; import * as lex from "../../src/syntax/lex-pipe"; import * as parse from "../../src/syntax/parse"; import { EvalPipe } from "../../src/syntax/eval-pipe"; describe("EvalPipe", () => { let out: frame.FrameArray; let pipe: EvalPipe; beforeE...
import { expect } from "chai"; import * as frame from "../../src/frames"; import * as lex from "../../src/syntax/lex-pipe"; import * as parse from "../../src/syntax/parse"; import { EvalPipe } from "../../src/syntax/eval-pipe"; describe("EvalPipe", () => { const strA = new frame.FrameString("A"); const strB = new...
Check array out on EvalPipe
Check array out on EvalPipe
TypeScript
mit
TheSwanFactory/hclang,TheSwanFactory/maml,TheSwanFactory/hclang,TheSwanFactory/maml
--- +++ @@ -6,6 +6,9 @@ import { EvalPipe } from "../../src/syntax/eval-pipe"; describe("EvalPipe", () => { + const strA = new frame.FrameString("A"); + const strB = new frame.FrameString("B"); + const expr = new frame.FrameExpr([strA, strB]); let out: frame.FrameArray; let pipe: EvalPipe; @@ -23,10 +2...
153c954b5d1013759134d03a688435fe57e5e84b
packages/rev-forms-redux-mui/src/fields/BooleanField.tsx
packages/rev-forms-redux-mui/src/fields/BooleanField.tsx
import * as React from 'react'; import MUICheckbox from 'material-ui/Checkbox'; import { IRevFieldTypeProps } from './types'; export default function BooleanField(props: IRevFieldTypeProps) { const onCheck = (event: any, isInputChecked: boolean) => { props.input.onChange(isInputChecked); }; le...
import * as React from 'react'; import MUICheckbox from 'material-ui/Checkbox'; import { IRevFieldTypeProps } from './types'; export default function BooleanField(props: IRevFieldTypeProps) { const onCheck = (event: any, isInputChecked: boolean) => { props.input.onChange(isInputChecked); }; le...
Fix layout issue with checkbox control (text-align)
Fix layout issue with checkbox control (text-align)
TypeScript
mit
RevFramework/rev-framework,RevFramework/rev-framework
--- +++ @@ -13,16 +13,26 @@ let checked = props.input.value ? true : false; + const styles = { + checkbox: { + marginTop: 16, + marginBottom: 5, + textAlign: 'left' + }, + label: { + } + }; + return ( - <div style={{width: 250, pa...
e1ba7432bc929fed4087b992c7906b380867d314
src/marketplace/offerings/actions/ActionsDropdown.tsx
src/marketplace/offerings/actions/ActionsDropdown.tsx
import * as React from 'react'; import * as Dropdown from 'react-bootstrap/lib/Dropdown'; import { translate } from '@waldur/i18n'; import { OfferingAction } from './types'; interface ActionsDropdownProps { actions?: OfferingAction[]; } export const ActionsDropdown = ({ actions }: ActionsDropdownProps) => ( <Dr...
import * as React from 'react'; import * as Dropdown from 'react-bootstrap/lib/Dropdown'; import { translate } from '@waldur/i18n'; import { OfferingAction } from './types'; interface ActionsDropdownProps { actions: OfferingAction[]; } export const ActionsDropdown = ({ actions }: ActionsDropdownProps) => ( <Dro...
Improve typing for offering actions.
Improve typing for offering actions.
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -6,7 +6,7 @@ import { OfferingAction } from './types'; interface ActionsDropdownProps { - actions?: OfferingAction[]; + actions: OfferingAction[]; } export const ActionsDropdown = ({ actions }: ActionsDropdownProps) => (
db603354921de7360a1d27bf406c37790c439d34
examples/parties/client/party-details/party-details.ts
examples/parties/client/party-details/party-details.ts
/// <reference path="../../typings/all.d.ts" /> import {Component, View, Inject} from 'angular2/angular2'; import {ROUTER_DIRECTIVES, RouteParams} from 'angular2/router'; import {MeteorComponent} from 'angular2-meteor'; import {Parties} from 'collections/parties'; @Component({ selector: 'party-details' }) @View(...
/// <reference path="../../typings/all.d.ts" /> import {Component, View, Inject} from 'angular2/angular2'; import {ROUTER_DIRECTIVES, RouteParams} from 'angular2/router'; import {MeteorComponent} from 'angular2-meteor'; import {Parties} from 'collections/parties'; @Component({ selector: 'party-details' }) @View(...
Update example with new subscribtion overloading
Update example with new subscribtion overloading
TypeScript
mit
DAB0mB/angular-meteor,davidyaha/angular-meteor,sebakerckhof/angular-meteor,sebakerckhof/angular-meteor,barbatus/angular-meteor,kamilkisiela/angular-meteor,sebakerckhof/angular-meteor,davidyaha/angular-meteor,Urigo/angular-meteor,davidyaha/angular-meteor,barbatus/angular-meteor,kamilkisiela/angular-meteor,DAB0mB/angular...
--- +++ @@ -23,6 +23,6 @@ var partyId = routeParams.params['partyId']; this.subscribe('party', partyId, () => { this.party = Parties.findOne(partyId); - }); + }, true); } }
4fe755eb776835e01eaa279b0ef53294493d715a
src/containers/About/index.tsx
src/containers/About/index.tsx
import * as React from 'react'; import { Headline, Markdown, Image, Paragraph, Avatar, Anchor, Article, } from 'components'; const { Container, AboutSection, AboutSectionInner, StyledHr, AvatarContainer, Div, Divider, Github, Card, CardFooter, } = require('./styles'); const about = req...
import * as React from 'react'; import { Headline, Markdown, Image, Paragraph, Avatar, Anchor, Article, } from 'components'; const { Container, AboutSection, AboutSectionInner, StyledHr, AvatarContainer, Div, Divider, Github, Card, CardFooter, } = require('./styles'); const about = req...
Add key to the map function
Fix: Add key to the map function
TypeScript
mit
scalable-react/scalable-react-typescript-boilerplate,scalable-react/scalable-react-typescript-boilerplate,scalable-react/scalable-react-typescript-boilerplate
--- +++ @@ -44,8 +44,8 @@ <StyledHr/> </Headline> <AboutSectionInner> - {contributors.map(contributor => - <Card> + {contributors.map((contributor, index) => + <Card key = {index}> <AvatarContainer> ...
c23d19a5ce307725533b4c6296ca54ba7082c802
web-ng/src/app/services/router/router.service.spec.ts
web-ng/src/app/services/router/router.service.spec.ts
/** * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/** * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Add project in firestub test
Add project in firestub test
TypeScript
apache-2.0
google/ground-platform,google/ground-platform,google/ground-platform,google/ground-platform
--- +++ @@ -25,7 +25,7 @@ beforeEach(() => { TestBed.configureTestingModule({ - imports: [AngularFireModule.initializeApp({})], + imports: [AngularFireModule.initializeApp({ projectId: '' })], providers: [{ provide: Router, useValue: {} }], }); service = TestBed.inject(RouterServi...
9ec3aebc65a10b5664afbbb99c226009edd14856
front_end/component_docs/linear_memory_inspector/basic.ts
front_end/component_docs/linear_memory_inspector/basic.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. // TODO(crbug.com/1146002): Replace this import as soon as // we are able to use `import as * ...` across the codebase // in the following files: // Linea...
// 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 * as ComponentHelpers from '../../component_helpers/component_helpers.js'; import * as LinearMemoryInspector from '../../linear_memory_inspector/li...
Remove old TODO from linear_memory_inspector example
Remove old TODO from linear_memory_inspector example This TODO is not required any more; the source files do declare a dep on the UI Components folder which house the icon. The associated bug should remain open as there is more work to do to make declaring component dependencies easier (LitHtml 2 should help here). ...
TypeScript
bsd-3-clause
ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend
--- +++ @@ -2,12 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// TODO(crbug.com/1146002): Replace this import as soon as -// we are able to use `import as * ...` across the codebase -// in the following files: -// LinearMemoryNavigator.ts -// Lin...
261f57be7d7dff0a213ad2af3cfd3757cfefe9d1
src/app/config/constants/constants.ts
src/app/config/constants/constants.ts
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import apiURL from 'src/app/config/constants/apiURL'; interface externalNameResponseFormat { externalName: String; }; @Injectable({ providedIn: 'root', }) export class DoubtfireConstants { constructor(private httpClie...
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import apiURL from 'src/app/config/constants/apiURL'; interface externalNameResponseFormat { externalName: String; }; @Injectable({ providedIn: 'root', }) export class DoubtfireConstants { constructor(private httpClie...
Remove log and fix type of array
ENHANCE: Remove log and fix type of array
TypeScript
agpl-3.0
doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web
--- +++ @@ -11,15 +11,14 @@ }) export class DoubtfireConstants { constructor(private httpClient: HttpClient) { - console.log("getting api url"); httpClient.get(`${this.apiURL}/settings`).toPromise().then((response: externalNameResponseFormat) => { this.externalName = response.externalName; })...
459b8ffcff638967c9254b4d958620f1c9f166c0
html-formatter/javascript/src/main.tsx
html-formatter/javascript/src/main.tsx
import { messages } from '@cucumber/messages' import { GherkinDocumentList, QueriesWrapper } from '@cucumber/react' import { Query as GherkinQuery } from '@cucumber/gherkin' import { Query as CucumberQuery } from '@cucumber/query' import React from 'react' import ReactDOM from 'react-dom' declare global { interface ...
import { messages } from '@cucumber/messages' import { GherkinDocumentList, QueriesWrapper, EnvelopesQuery, } from '@cucumber/react' import { Query as GherkinQuery } from '@cucumber/gherkin' import { Query as CucumberQuery } from '@cucumber/query' import React from 'react' import ReactDOM from 'react-dom' declar...
Update after react API update
Update after react API update
TypeScript
mit
cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber
--- +++ @@ -1,5 +1,9 @@ import { messages } from '@cucumber/messages' -import { GherkinDocumentList, QueriesWrapper } from '@cucumber/react' +import { + GherkinDocumentList, + QueriesWrapper, + EnvelopesQuery, +} from '@cucumber/react' import { Query as GherkinQuery } from '@cucumber/gherkin' import { Query as ...
a0f1aab048462a96861697013097eff47ba0b473
cypress/integration/shows.spec.ts
cypress/integration/shows.spec.ts
/* eslint-disable jest/expect-expect */ import { visitWithStatusRetries } from "../helpers/visitWithStatusRetries" describe("Shows", () => { it("/shows", () => { visitWithStatusRetries("shows") cy.get("h1").should("contain", "Featured Shows") cy.title().should("eq", "Art Gallery Shows and Museum Exhibiti...
/* eslint-disable jest/expect-expect */ import { visitWithStatusRetries } from "../helpers/visitWithStatusRetries" describe("Shows", () => { it("/shows", () => { visitWithStatusRetries("shows") cy.get("h1").should("contain", "Featured Shows") cy.title().should("eq", "Art Gallery Shows and Museum Exhibiti...
Add assertion about visiting individual show page
Add assertion about visiting individual show page
TypeScript
mit
artsy/force,artsy/force,artsy/force-public,artsy/force-public,artsy/force,artsy/force
--- +++ @@ -10,5 +10,11 @@ visitWithStatusRetries("shows2") cy.get("h1").should("contain", "Featured Shows") cy.title().should("eq", "Art Gallery Shows and Museum Exhibitions | Artsy") + + // follow link to individual show + const showLink = cy.get('a[href*="/show/"]:first') + showLink.click()...
4a450786f119a9819ed3186a400b3d997672d043
showcase/setup/setup.module.ts
showcase/setup/setup.module.ts
import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {SetupComponent} from './setup.component'; import {SetupRoutingModule} from './setup-routing.module'; @NgModule({ imports: [ CommonModule, SetupRoutingModule ], declarations: [ SetupComponent ] }) export cl...
import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {SetupComponent} from './setup.component'; import {SetupRoutingModule} from './setup-routing.module'; import {CodeHighlighterModule} from '../../components/codehighlighter/codehighlighter'; @NgModule({ imports: [ CommonM...
Add codehighlight to setup doc
Add codehighlight to setup doc
TypeScript
mit
donriver/primeng,pauly815/primeng,donriver/primeng,sourabh8003/ultimate-primeNg,sourabh8003/ultimate-primeNg,ConradSchmidt/primeng,WebRota/primeng,kcjonesevans/primeng,311devs/primeng,carlosearaujo/primeng,sourabh8003/ultimate-primeNg,aaraggornn/primeng,donriver/primeng,sourabh8003/ultimate-primeNg,davidkirolos/primeng...
--- +++ @@ -2,10 +2,12 @@ import {CommonModule} from '@angular/common'; import {SetupComponent} from './setup.component'; import {SetupRoutingModule} from './setup-routing.module'; +import {CodeHighlighterModule} from '../../components/codehighlighter/codehighlighter'; @NgModule({ imports: [ CommonModul...
36470bce52fb29eb63c516653cbb835a27b86655
components/Board/IconButton.tsx
components/Board/IconButton.tsx
import { IconDefinition } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { ButtonHTMLAttributes, DetailedHTMLProps } from "react"; type Props = DetailedHTMLProps< ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement > & { icon: IconDefinit...
import type { IconDefinition } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { ButtonHTMLAttributes, DetailedHTMLProps } from "react"; type Props = DetailedHTMLProps< ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement > & { icon: IconDe...
Use 'import type' to import type
Use 'import type' to import type
TypeScript
mit
nownabe/brainfuck-board,nownabe/brainfuck-board
--- +++ @@ -1,4 +1,4 @@ -import { IconDefinition } from "@fortawesome/free-solid-svg-icons"; +import type { IconDefinition } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { ButtonHTMLAttributes, DetailedHTMLProps } from "react";
e361e655ce913a175b6cf4234f509b0f22ed6e44
packages/@sanity/field/src/diff/changes/GroupChange.tsx
packages/@sanity/field/src/diff/changes/GroupChange.tsx
import * as React from 'react' import {GroupChangeNode} from '../types' import {ChangeBreadcrumb} from './ChangeBreadcrumb' import {ChangeResolver} from './ChangeResolver' import {RevertChangesButton} from './RevertChangesButton' import styles from './GroupChange.css' export function GroupChange({change: group}: {cha...
import * as React from 'react' import {GroupChangeNode} from '../types' import {ChangeBreadcrumb} from './ChangeBreadcrumb' import {ChangeResolver} from './ChangeResolver' import styles from './GroupChange.css' export function GroupChange({change: group}: {change: GroupChangeNode}) { const {titlePath, changes} = gr...
Remove revert changes button from groups
[field] Remove revert changes button from groups
TypeScript
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
--- +++ @@ -2,7 +2,6 @@ import {GroupChangeNode} from '../types' import {ChangeBreadcrumb} from './ChangeBreadcrumb' import {ChangeResolver} from './ChangeResolver' -import {RevertChangesButton} from './RevertChangesButton' import styles from './GroupChange.css' @@ -19,10 +18,6 @@ <ChangeResolver k...
9fcc084bb3508ee09f946f23f85d1108b305282f
packages/components/components/sidebar/SidebarBackButton.tsx
packages/components/components/sidebar/SidebarBackButton.tsx
import React from 'react'; import SidebarPrimaryButton from './SidebarPrimaryButton'; import { Props as ButtonProps } from '../button/Button'; const SidebarBackButton = ({ children, ...rest }: ButtonProps) => { return <SidebarPrimaryButton {...rest}>{children}</SidebarPrimaryButton>; }; export default SidebarBac...
import React from 'react'; import Button, { Props as ButtonProps } from '../button/Button'; const SidebarBackButton = ({ children, ...rest }: ButtonProps) => { return ( <Button className="pm-button--primaryborder-dark pm-button--large bold mt0-25 w100" {...rest}> {children} </Button> ...
Update sidebar back button style
Update sidebar back button style
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -1,10 +1,13 @@ import React from 'react'; -import SidebarPrimaryButton from './SidebarPrimaryButton'; -import { Props as ButtonProps } from '../button/Button'; +import Button, { Props as ButtonProps } from '../button/Button'; const SidebarBackButton = ({ children, ...rest }: ButtonProps) => { - re...
d57b8183bf347392208d2f5eda45179273340efd
projects/hslayers/src/components/sidebar/button.interface.ts
projects/hslayers/src/components/sidebar/button.interface.ts
export interface HsButton { fits: boolean; panel?; module?: string; order?: number; title?; description?; icon?: string; condition?: boolean; content?; important?: boolean; click?; visible?: boolean; }
export interface HsButton { fits?: boolean; panel?; module?: string; order?: number; title?; description?; icon?: string; condition?: boolean; content?; important?: boolean; click?; visible?: boolean; }
Make button fits property optional
Make button fits property optional
TypeScript
mit
hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng
--- +++ @@ -1,5 +1,5 @@ export interface HsButton { - fits: boolean; + fits?: boolean; panel?; module?: string; order?: number;
71430a5211300ef132d86fd093b8d8147168083a
src/SyntaxNodes/HeadingNode.ts
src/SyntaxNodes/HeadingNode.ts
import { InlineSyntaxNode } from './InlineSyntaxNode' import { OutlineSyntaxNode } from './OutlineSyntaxNode' import { InlineSyntaxNodeContainer } from './InlineSyntaxNodeContainer' export class HeadingNode extends InlineSyntaxNodeContainer implements OutlineSyntaxNode { constructor(public children: InlineSyntaxNod...
import { InlineSyntaxNode } from './InlineSyntaxNode' import { OutlineSyntaxNode } from './OutlineSyntaxNode' import { InlineSyntaxNodeContainer } from './InlineSyntaxNodeContainer' export class HeadingNode extends InlineSyntaxNodeContainer implements OutlineSyntaxNode { constructor(public children: InlineSyntaxNod...
Make heading constructor require level
Make heading constructor require level
TypeScript
mit
start/up,start/up
--- +++ @@ -4,7 +4,7 @@ export class HeadingNode extends InlineSyntaxNodeContainer implements OutlineSyntaxNode { - constructor(public children: InlineSyntaxNode[], public level?: number) { + constructor(public children: InlineSyntaxNode[], public level: number) { super(children) }