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
d4be0888033df8452efa031cd29876084986b090
app/shared/utility.service.ts
app/shared/utility.service.ts
import { Injectable } from '@angular/core'; @Injectable() export class UtilityService{ constructor(){} groupBy(collection: any[], prop: string){ let propertiesUniqueArray: any[] = []; collection.forEach((item)=> { let val = item[prop]; if(propertiesUniqueArray.indexOf(va...
import { Injectable } from '@angular/core'; @Injectable() export class UtilityService{ constructor(){} groupBy(collection: any[], prop: string){ let propertiesUniqueArray: any[] = []; collection.forEach((item)=> { let val = item[prop]; if(propertiesUniqueArray.indexOf(va...
Insert into keys array when element isn't present
Insert into keys array when element isn't present
TypeScript
mit
pankajparkar/bug-tracker,pankajparkar/bug-tracker,pankajparkar/bug-tracker
--- +++ @@ -7,7 +7,7 @@ let propertiesUniqueArray: any[] = []; collection.forEach((item)=> { let val = item[prop]; - if(propertiesUniqueArray.indexOf(val) > -1) + if(propertiesUniqueArray.indexOf(val) === -1) propertiesUniqueArray.push(val); ...
5eaa85c9232daf0d946299a8dd481fef4da61719
src/ts/template/counterList.ts
src/ts/template/counterList.ts
/// <reference path="../core/template" /> /// <reference path="../model/counter" /> /// <reference path="counter" /> namespace YJMCNT { /** * CounterTemplate */ export class CounterListTemplate extends Core.Template{ constructor() { super(); } counters: Counter[];...
/// <reference path="../core/template" /> /// <reference path="../model/counter" /> /// <reference path="counter" /> namespace YJMCNT { /** * CounterTemplate */ export class CounterListTemplate extends Core.Template{ constructor() { super(); } counters: Counter[];...
Add counter id into counterTemplate
Add counter id into counterTemplate
TypeScript
mit
yajamon/chrome-ext-counter,yajamon/chrome-ext-counter,yajamon/chrome-ext-counter
--- +++ @@ -20,6 +20,7 @@ var counter = this.counters[index]; var template = new CounterTemplate(); template.count = counter.show(); + template.id = counter.id; context.append(template.render()); }
eef85a650a8267ce6b9a035f3568bc05a6286cfb
src/use-authors/use-authors.ts
src/use-authors/use-authors.ts
import { Author } from './authors-frontmatter-query-result' import { useAuthorsAvatars64 } from './use-authors-avatar-64' import { useAuthorsAvatarsDefault } from './use-authors-avatar-default' type UseAuthorsParams = { authorId?: string avatarSize?: { width: 64 } } function toAuthorsFilter(props: UseAuthorsParam...
import { Author } from './authors-frontmatter-query-result' import { useAuthorsAvatars64 } from './use-authors-avatar-64' import { useAuthorsAvatarsDefault } from './use-authors-avatar-default' type UseAuthorsParams = { authorId?: string avatarSize?: { width: 64 } } function toAuthorsFilter(props: UseAuthorsParam...
Refactor authors loading - by default list all
Refactor authors loading - by default list all #292
TypeScript
mit
bright/new-www,bright/new-www
--- +++ @@ -11,7 +11,7 @@ if (props.authorId) { return (author: Author) => props.authorId === author.authorId } - return () => false + return () => true } export const useAuthors = (props: UseAuthorsParams = {}) => {
3dafeb24a898a5f0b5068f8b9d936bb8c6573bbf
todomvc-react-mobx-typescript/src/components/TodoItem.tsx
todomvc-react-mobx-typescript/src/components/TodoItem.tsx
import * as classNames from 'classnames' import * as React from 'react' import { Component } from 'react' import { observer } from 'mobx-react' import { Todo } from './Todo' interface Props { todo: Todo } @observer export class TodoItem extends Component<Props, void> { public render() { return ( <li ...
import * as classNames from 'classnames' import * as React from 'react' import { Component } from 'react' import { observer } from 'mobx-react' import { Todo } from './Todo' interface Props { todo: Todo } interface State { mode: 'edit' | 'view' } @observer export class TodoItem extends Component<Props, State> {...
Switch beetween edit and view mode
Switch beetween edit and view mode
TypeScript
unlicense
janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations
--- +++ @@ -9,14 +9,27 @@ todo: Todo } +interface State { + mode: 'edit' | 'view' +} + @observer -export class TodoItem extends Component<Props, void> { +export class TodoItem extends Component<Props, State> { + constructor(props: Props, context?: any) { + super(props, context) + + this.state = { + ...
2a91e74991f213737518a078bb0eb05ec72942d4
src/server/src/rollbar/rollbar-exception.filter.ts
src/server/src/rollbar/rollbar-exception.filter.ts
import { ArgumentsHost, Catch, HttpException } from "@nestjs/common"; import { BaseExceptionFilter } from "@nestjs/core"; import { Request } from "express"; import { RollbarService } from "./rollbar.service"; @Catch() export class RollbarExceptionFilter extends BaseExceptionFilter { constructor(private rollbar: Roll...
import { ArgumentsHost, Catch, HttpException, NotFoundException, ServiceUnavailableException, UnauthorizedException } from "@nestjs/common"; import { BaseExceptionFilter } from "@nestjs/core"; import { Request } from "express"; import { RollbarService } from "./rollbar.service"; function isWhitelisted(exce...
Whitelist a few exception types from being reported to Rollbar
Whitelist a few exception types from being reported to Rollbar These are "normal" exceptions that don't necessarily indicate an error with the website, and as such it would be wasteful to report them to Rollbar Closes #388
TypeScript
apache-2.0
PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder
--- +++ @@ -1,7 +1,24 @@ -import { ArgumentsHost, Catch, HttpException } from "@nestjs/common"; +import { + ArgumentsHost, + Catch, + HttpException, + NotFoundException, + ServiceUnavailableException, + UnauthorizedException +} from "@nestjs/common"; import { BaseExceptionFilter } from "@nestjs/core"; import ...
4c0e83405b43c3da72e2a48bfc84c29f4d3b78ad
server/dbconnection.ts
server/dbconnection.ts
import mongo = require("mongodb"); const client = mongo.MongoClient; interface Db extends mongo.Db { users: mongo.Collection; } export const initialize = () => { if (!process.env.DB_CONNECTION_STRING) { console.error("No connection string found."); return; } client.connect(process...
import mongo = require("mongodb"); const client = mongo.MongoClient; export const initialize = () => { if (!process.env.DB_CONNECTION_STRING) { console.error("No connection string found."); return; } client.connect(process.env.DB_CONNECTION_STRING, function (err, db: Db) { if (err)...
Correct mongodb api collection access
Correct mongodb api collection access
TypeScript
mit
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
--- +++ @@ -1,10 +1,6 @@ import mongo = require("mongodb"); const client = mongo.MongoClient; -interface Db extends mongo.Db { - users: mongo.Collection; -} - export const initialize = () => { if (!process.env.DB_CONNECTION_STRING) { console.error("No connection string found."); @@ -28,12 +2...
d9208fa1c51e90e637ec38ba64fd2e975f20c427
app/app.component.ts
app/app.component.ts
import { Component, ViewChild } from '@angular/core'; import { LayerType } from './core/layer'; import { CityMapComponent } from './city-map/city-map.component' @Component({ selector: 'aba-plan', templateUrl: 'app.component.html' }) export class AppComponent { title = "AbaPlan"; @ViewChild(CityMapComponent)...
import { Component, ViewChild } from '@angular/core'; import { LayerType } from './core/layer'; import { CityMapComponent } from './city-map/city-map.component' @Component({ selector: 'aba-plan', templateUrl: 'app.component.html' }) export class AppComponent { title = "AbaPlan"; @ViewChild(CityMapComponent)...
Add default tab to first
Add default tab to first
TypeScript
mit
ABAPlan/abaplan-core,ABAPlan/abaplan-core,ABAPlan/abaplan-core
--- +++ @@ -39,9 +39,12 @@ this.mapComponent.setLayerType(tab); } + ngAfterViewInit() { + // Init first tab + this.onSelect(this.tabs[0]); + } + constructor() { - // Select first tab - // this.onSelect(this.tabs[0]); } }
3ec86215aa444ca34f19e1a7dba434e0c46791a0
rest/rest-tests.ts
rest/rest-tests.ts
/// <reference path="./rest.d.ts" /> import rest = require('rest'); import mime = require('rest/interceptor/mime'); import errorCode = require('rest/interceptor/errorCode'); import registry = require('rest/mime/registry'); rest('/').then(function(response) { console.log('response: ', response); }); var client =...
/// <reference path="./rest.d.ts" /> import rest = require('rest'); import mime = require('rest/interceptor/mime'); import errorCode = require('rest/interceptor/errorCode'); import registry = require('rest/mime/registry'); rest('/').then(function(response) { console.log('response: ', response); }); var client =...
Fix tests to check config from base `rest.wrap`
Fix tests to check config from base `rest.wrap`
TypeScript
mit
rcchen/DefinitelyTyped,olemp/DefinitelyTyped,shlomiassaf/DefinitelyTyped,CodeZombieCH/DefinitelyTyped,PopSugar/DefinitelyTyped,Karabur/DefinitelyTyped,gandjustas/DefinitelyTyped,nycdotnet/DefinitelyTyped,acepoblete/DefinitelyTyped,pocke/DefinitelyTyped,tomtheisen/DefinitelyTyped,QuatroCode/DefinitelyTyped,frogcjn/Defin...
--- +++ @@ -15,7 +15,7 @@ console.log('response: ', response); }); -client = rest.wrap(mime).wrap(errorCode, { code: 500 }); +client = rest.wrap(mime, { mime: 'application/json' }).wrap(errorCode, { code: 500 }); client({ path: '/data.json' }).then( function(response) { console.log('response: '...
4546d92e40a253047d9648c0749578429dce1c3f
client/src/app/shared/shared-main/misc/channels-setup-message.component.ts
client/src/app/shared/shared-main/misc/channels-setup-message.component.ts
import { Component, Input, OnInit } from '@angular/core' import { AuthService, User } from '@app/core' import { VideoChannel } from '@app/shared/shared-main' @Component({ selector: 'my-channels-setup-message', templateUrl: './channels-setup-message.component.html', styleUrls: [ './channels-setup-message.componen...
import { Component, Input, OnInit } from '@angular/core' import { AuthService, User } from '@app/core' import { VideoChannel } from '@app/shared/shared-main' @Component({ selector: 'my-channels-setup-message', templateUrl: './channels-setup-message.component.html', styleUrls: [ './channels-setup-message.componen...
Fix undefined this.user.videoChannels on production build
Fix undefined this.user.videoChannels on production build
TypeScript
agpl-3.0
Chocobozzz/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube
--- +++ @@ -16,14 +16,10 @@ private authService: AuthService ) {} - get userInformationLoaded () { - return this.authService.userInformationLoaded - } + get hasChannelNotConfigured () { + if (!this.user.videoChannels) return - get hasChannelNotConfigured () { - return this.user.videoChannels ...
fd87743f5454dfd4747674d32dd18bf7ad4f99fc
analysis/monkwindwalker/src/modules/resources/SpellChiCost.ts
analysis/monkwindwalker/src/modules/resources/SpellChiCost.ts
import SPELLS from 'common/SPELLS'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import { CastEvent } from 'parser/core/Events'; import SpellResourceCost from 'parser/shared/modules/SpellResourceCost'; class SpellChiCost extends SpellResourceCost { static resourceType = RESOURCE_TYPES.CHI; protected getRawRe...
import SPELLS from 'common/SPELLS'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import { CastEvent } from 'parser/core/Events'; import SpellResourceCost from 'parser/shared/modules/SpellResourceCost'; class SpellChiCost extends SpellResourceCost { static resourceType = RESOURCE_TYPES.CHI; protected getRawRe...
Add example of WOO chi reduction
Add example of WOO chi reduction
TypeScript
agpl-3.0
sMteX/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,sMteX/WoWAnalyzer,sMteX/WoWAnalyzer
--- +++ @@ -20,6 +20,8 @@ protected getResourceCost(event: CastEvent) { let cost = super.getResourceCost(event); + // Example + // https://www.warcraftlogs.com/reports/GDqkTZ9JVr7AjH4X/#fight=33&source=4&type=damage-done if (this.selectedCombatant.hasBuff(SPELLS.WEAPONS_OF_ORDER_CHI_DISCOUNT.id))...
559e8f85fdbe28686e6d9095db38440964d9d203
lib/commands/prop/prop-set.ts
lib/commands/prop/prop-set.ts
///<reference path="../../.d.ts"/> "use strict"; import projectPropertyCommandBaseLib = require("./prop-command-base"); export class SetProjectPropertyCommand extends projectPropertyCommandBaseLib.ProjectPropertyCommandBase implements ICommand { constructor($staticConfig: IStaticConfig, $injector: IInjector) { su...
///<reference path="../../.d.ts"/> "use strict"; import projectPropertyCommandBaseLib = require("./prop-command-base"); export class SetProjectPropertyCommand extends projectPropertyCommandBaseLib.ProjectPropertyCommandBase implements ICommand { constructor($staticConfig: IStaticConfig, $injector: IInjector) { su...
Allow setting of multiple values with prop set
Allow setting of multiple values with prop set `$ appbuilder prop set` should work for setting array values. Remove incorrect validation logic which was allowing only singe value to be used. Fixes http://teampulse.telerik.com/view#item/289487
TypeScript
apache-2.0
Icenium/icenium-cli,Icenium/icenium-cli
--- +++ @@ -10,17 +10,9 @@ } canExecute(args: string[]): IFuture<boolean> { - return (() => { var property = args[0]; var propertyValues = _.rest(args, 1); - if(this.$project.validateProjectProperty(property, propertyValues, "set").wait()) { - if(propertyValues.length === 1 && propertyValues[0]) {...
2d3df0d6d9e7d173b2990c9f62ec923a000a9036
app/components/docedit/widgets/relationspick/relation-picker-group.component.ts
app/components/docedit/widgets/relationspick/relation-picker-group.component.ts
import {Component, Input, OnChanges} from '@angular/core'; import {isEmpty} from 'tsfun'; /** * @author Thomas Kleinke */ @Component({ moduleId: module.id, selector: 'relation-picker-group', templateUrl: './relation-picker-group.html' }) export class RelationPickerGroupComponent implements OnChanges { ...
import {Component, Input, OnChanges} from '@angular/core'; import {isEmpty} from 'tsfun'; /** * @author Thomas Kleinke */ @Component({ moduleId: module.id, selector: 'relation-picker-group', templateUrl: './relation-picker-group.html' }) export class RelationPickerGroupComponent implements OnChanges { ...
Fix spacing to account for code style
Fix spacing to account for code style
TypeScript
apache-2.0
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
--- +++ @@ -23,7 +23,8 @@ if (this.document) this.relations = this.document.resource.relations; } - + + public createRelation() { if (!this.relations[this.relationDefinition.name]) @@ -41,6 +42,7 @@ && this.relations[this.relationDefinition.name][index].length ...
199cc12a78e749e0b78f711006ff2c02f6eb555b
src/app/shared/courses.service.ts
src/app/shared/courses.service.ts
import { Injectable } from '@angular/core'; import { Course } from './course-interface'; const courses: Course[] = [{ id: 1, name: 'Name 1', duration: 45, date: 'date', description: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit.' }, { id: 2, name: 'Name 2', duration: 75, date: 'ame', d...
import { Injectable } from '@angular/core'; import { Course } from './course-interface'; const courses: Course[] = [{ id: 1, name: 'Name 1', duration: 45, date: 'date', description: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit.' }, { id: 2, name: 'Name 2', duration: 75, date: 'ame', d...
Add method for updating course
Add method for updating course
TypeScript
mit
yusk90/courses-app,yusk90/courses-app,yusk90/courses-app
--- +++ @@ -35,4 +35,9 @@ console.log('Deleted course:', id); return courses; } + + public updateCourse(course: Course): Course { + console.log('Updated course:', course); + return course; + } }
688ff42a1141529049db39694eaf09feaa3829e8
src/getResource.ts
src/getResource.ts
import cachedFetch, { type CachedFetchOptions } from './cachedFetch'; export let apiUrl = 'https://pokeapi.co/api/'; export let apiVersion = 'v2'; export async function getResource(resource: string, options: CachedFetchOptions) { let resourceSplit = resource.split('/'); resourceSplit[1] = resourceSplit[1].replace...
import cachedFetch, { type CachedFetchOptions } from './cachedFetch'; export let apiUrl = 'https://pokeapi.co/api/'; export let apiVersion = 'v2'; export async function getResource(resource: string, options: CachedFetchOptions) { let resourceSplit = resource.split('/'); resourceSplit[1] = resourceSplit[1].replace...
Stop catching just to throw again
Stop catching just to throw again
TypeScript
apache-2.0
16patsle/pokeapi.js,16patsle/pokeapi.js
--- +++ @@ -8,20 +8,15 @@ resourceSplit[1] = resourceSplit[1].replace('undefined', ''); resource = resourceSplit.join('/'); - try { - const response = await cachedFetch( - apiUrl + apiVersion + '/' + resource, - options - ); - // handle HTTP response - if (response.ok) { - return a...
662b9e228c4d7ca0aa8e2f0e15386c59df937d0c
medtimeline/src/app/data-selector-element/data-selector-element.component.ts
medtimeline/src/app/data-selector-element/data-selector-element.component.ts
// Copyright 2018 Verily Life Sciences Inc. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. import {Component, Input} from '@angular/core'; import {APP_TIMESPAN} from 'src/constants'; import {DisplayGrouping} from '../clinicalconcepts/display-grouping'; impor...
// Copyright 2018 Verily Life Sciences Inc. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. import {Component, Input} from '@angular/core'; import {APP_TIMESPAN} from 'src/constants'; import {DisplayGrouping} from '../clinicalconcepts/display-grouping'; impor...
Fix bad date formatting for menu buttons
b/123535294: Fix bad date formatting for menu buttons Change-Id: Icb90c754a40c0446437eb1a114c5165e083309c1 GitOrigin-RevId: 4679bca337ed7e918133e0a13aca579effc04c97
TypeScript
bsd-3-clause
verilylifesciences/medtimeline,verilylifesciences/medtimeline,verilylifesciences/medtimeline,verilylifesciences/medtimeline,verilylifesciences/medtimeline
--- +++ @@ -23,6 +23,6 @@ // The DisplayGrouping for the card represented by this DataSelectorElement. @Input() conceptGroupKey: DisplayGrouping; // Hold an instance of the app time interval so we can display it in the HTML - readonly appTimeIntervalString = APP_TIMESPAN.start.toFormat('dd/MM/yyyy') + - ...
32f062f1c5fd7800ad7a8fddc18339244a6d6e1e
packages/@sanity/util/src/reduceConfig.ts
packages/@sanity/util/src/reduceConfig.ts
/* eslint-disable no-process-env */ import {mergeWith} from 'lodash' const sanityEnv = process.env.SANITY_ENV || 'production' const apiHosts = { staging: 'https://api.sanity.work', development: 'http://api.sanity.wtf' } const processEnvConfig = { project: process.env.STUDIO_BASEPATH ? {basePath: process.env.STU...
/* eslint-disable no-process-env */ import {mergeWith} from 'lodash' const sanityEnv = process.env.SANITY_ENV || 'production' const basePath = process.env.SANITY_STUDIO_BASEPATH || process.env.STUDIO_BASEPATH const apiHosts = { staging: 'https://api.sanity.work', development: 'http://api.sanity.wtf' } const proje...
Allow setting projectId/dataset through environment variables
[util] Allow setting projectId/dataset through environment variables
TypeScript
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
--- +++ @@ -2,13 +2,21 @@ import {mergeWith} from 'lodash' const sanityEnv = process.env.SANITY_ENV || 'production' +const basePath = process.env.SANITY_STUDIO_BASEPATH || process.env.STUDIO_BASEPATH const apiHosts = { staging: 'https://api.sanity.work', development: 'http://api.sanity.wtf' } +const pro...
c6bd8acbc878e8168e4f75caf520f439eecbf453
src/mercator/mercator/static/js/Packages/Mercator/Module.ts
src/mercator/mercator/static/js/Packages/Mercator/Module.ts
import * as AdhMercator2015Module from "./2015/Module"; import * as AdhMercator2016Module from "./2016/Module"; export var moduleName = "adhMercator"; export var register = (angular) => { AdhMercator2015Module.register(angular); AdhMercator2016Module.register(angular); angular .module(moduleName...
import * as AdhMercator2016Module from "./2016/Module"; export var moduleName = "adhMercator"; export var register = (angular) => { AdhMercator2016Module.register(angular); angular .module(moduleName, [ AdhMercator2016Module.moduleName ]); };
Use just the new controller
Use just the new controller
TypeScript
agpl-3.0
liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator
--- +++ @@ -1,16 +1,13 @@ -import * as AdhMercator2015Module from "./2015/Module"; import * as AdhMercator2016Module from "./2016/Module"; export var moduleName = "adhMercator"; export var register = (angular) => { - AdhMercator2015Module.register(angular); AdhMercator2016Module.register(angular); ...
1dea898acfdb12e37f905024573f0e76de859df1
src/search.ts
src/search.ts
import { getMoves } from './moves'; import { evaluate } from './evaluation'; import { makeMove } from './game'; export function getBestMove(grid: boolean[], forX: boolean, depth?: number): number { if (depth == undefined) depth = grid.length; const moves = getMoves(grid); const movesWithScores = moves.map(mo...
import { getMoves } from './moves'; import { evaluate } from './evaluation'; import { makeMove } from './game'; export function getBestMove(grid: boolean[], forX: boolean, depth?: number): number { if (depth == undefined) depth = grid.length; const moves = getMoves(grid); const movesWithScores = moves.map(mo...
Fix sort to be descending instead of ascending
Fix sort to be descending instead of ascending
TypeScript
mit
artfuldev/tictactoe-ai,artfuldev/tictactoe-ai
--- +++ @@ -14,7 +14,7 @@ score: forX ? evaluation : -evaluation }; }); - const sortedMovesWithScores = movesWithScores.sort((x, y) => x.score - y.score); + const sortedMovesWithScores = movesWithScores.sort((a, b) => b.score - a.score); const sortedMoves = sortedMovesWithScores.map(x => x.move);...
1c8828975ab778dba8acee66014b6347c48b5eef
test/unitTests/Fakes/FakeOptions.ts
test/unitTests/Fakes/FakeOptions.ts
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
Fix 'npm run compile' after merge with latest
Fix 'npm run compile' after merge with latest
TypeScript
mit
OmniSharp/omnisharp-vscode,gregg-miskelly/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,gregg-miskelly/omnisharp-vscode,gregg-miskelly/omnisharp-vscode,gregg-miskelly/omnisharp-vscode
--- +++ @@ -6,5 +6,5 @@ import { Options } from "../../../src/omnisharp/options"; export function getEmptyOptions(): Options { - return new Options("", "", false, "", false, 0, 0, false, false, false, false, false, false, "", ""); + return new Options("", "", false, "", false, 0, 0, false, false, false, fal...
53a6bb46b83d60dcd035079524e62ddb0843796b
ui/src/api/document.ts
ui/src/api/document.ts
import { Geometry } from 'geojson'; import { ResultDocument } from './result'; export interface Document { created: ChangeEvent; modified: ChangeEvent[]; project: string; resource: Resource; } export interface ChangeEvent { user: string; date: string; } export interface Resource { cate...
import { Geometry } from 'geojson'; import { ResultDocument } from './result'; export interface Document { created: ChangeEvent; modified: ChangeEvent[]; project: string; resource: Resource; } export interface ChangeEvent { user: string; date: string; } export interface Resource { cate...
Rename parent to parentId in Resource interface
Rename parent to parentId in Resource interface
TypeScript
apache-2.0
dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web
--- +++ @@ -24,7 +24,7 @@ groups: FieldGroup[]; geometry: Geometry; childrenCount: number; - parent: string; + parentId: string; }
a0815316b126acef0ad6cee058b6129400c55909
src/entry/collapsed-entry-options.tsx
src/entry/collapsed-entry-options.tsx
import * as React from 'react' import {bindActionCreators} from 'redux' import flowRight from 'lodash-es/flowRight' import {translate} from 'react-i18next' import {connect} from 'react-redux' import Button from '@material-ui/core/Button' import {EntryOptions} from './entry-options' import {toggleOptionOpenAction} from ...
import * as React from 'react' import {translate} from 'react-i18next' import Button from '@material-ui/core/Button' import {EntryOptions} from './entry-options' import {ITranslateMixin} from '../types' import style from './entry.css' import Collapse from '@material-ui/core/Collapse/Collapse' interface ICollapsedEntry...
Use collapse component from material-ui for entry options
Use collapse component from material-ui for entry options
TypeScript
mit
Holi0317/bridge-calc,Holi0317/bridge-calc,Holi0317/bridge-calc
--- +++ @@ -1,45 +1,39 @@ import * as React from 'react' -import {bindActionCreators} from 'redux' -import flowRight from 'lodash-es/flowRight' import {translate} from 'react-i18next' -import {connect} from 'react-redux' import Button from '@material-ui/core/Button' import {EntryOptions} from './entry-options' -i...
fdc612bbdeca195bf95f6c210772ce9dc6355991
src/parser/priest/shadow/constants.ts
src/parser/priest/shadow/constants.ts
import SPELLS from 'common/SPELLS'; export const DISPERSION_BASE_CD = 90; export const DISPERSION_UPTIME_MS = 6000; export const MINDBENDER_UPTIME_MS = 15000; export const MS_BUFFER = 100; export const SPIRIT_DAMAGE_MULTIPLIER = 1.3; export const SPIRIT_INSANITY_GENERATION = 1; export const TWIST_OF_FATE_INCREASE = 1....
import SPELLS from 'common/SPELLS'; export const DISPERSION_BASE_CD = 90; export const DISPERSION_UPTIME_MS = 6000; export const MINDBENDER_UPTIME_MS = 15000; export const MS_BUFFER = 100; export const SPIRIT_DAMAGE_MULTIPLIER = 1.3; export const SPIRIT_INSANITY_GENERATION = 1; export const TWIST_OF_FATE_INCREASE = 1....
Fix void torrent duration 4s -> 3s
Fix void torrent duration 4s -> 3s
TypeScript
agpl-3.0
anom0ly/WoWAnalyzer,yajinni/WoWAnalyzer,anom0ly/WoWAnalyzer,yajinni/WoWAnalyzer,yajinni/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,sMteX/WoWAnalyzer,sMteX/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,Juko8/WoWAnalyzer,anom0ly/WoWAnalyzer,yajinni/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,Juko8/WoWAnalyzer,sMteX/WoWAnalyzer,anom0ly/WoWAnalyze...
--- +++ @@ -7,10 +7,9 @@ export const SPIRIT_DAMAGE_MULTIPLIER = 1.3; export const SPIRIT_INSANITY_GENERATION = 1; export const TWIST_OF_FATE_INCREASE = 1.1; -export const VOID_TORRENT_MAX_TIME = 4000; +export const VOID_TORRENT_MAX_TIME = 3000; export const VOID_FORM_ACTIVATORS = [ SPELLS.VOID_ERUPTION.id, ...
b3c6ec748b87e5d142a2efc1c6eeb6626844412d
src/adhocracy/adhocracy/frontend/static/js/Adhocracy/Services/CrossWindowMessaging.ts
src/adhocracy/adhocracy/frontend/static/js/Adhocracy/Services/CrossWindowMessaging.ts
export interface IMessage { data: {}; name: string; sender: string; } export class Service { private uid : number; constructor(public _postMessage) { var _self = this; } private postMessage(name: string, data: {}) : void { var _self = this; var message : IMessag...
export interface IMessage { data: {}; name: string; sender: string; } export class Service { private uid : number; constructor(public _postMessage) { var _self = this; } private postMessage(name: string, data: {}) : void { var _self = this; var message : IMessag...
Send message to all windows (for now)
Send message to all windows (for now)
TypeScript
agpl-3.0
fhartwig/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,fhartwig/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,liqd/adhocracy3.mercator,fhartwig/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,fhartwig/adhocracy3.mercator,liqd/adhocracy3.mercator,fhartwig...
--- +++ @@ -22,7 +22,7 @@ sender: _self.uid }; - _self._postMessage(JSON.stringify(message)); + _self._postMessage(JSON.stringify(message), "*"); } postResize(height: number) : void {
37f9090435d5529f9de5497a265a2fa6b40c171d
client/app/not-found/not-found.component.spec.ts
client/app/not-found/not-found.component.spec.ts
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { NotFoundComponent } from './not-found.component'; describe('Component: NotFound', () => { let component: NotFoundComponent; let fixture: ComponentFixture<NotFoundComponent>; before...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { NotFoundComponent } from './not-found.component'; describe('Component: NotFound', () => { let component: NotFoundComponent; let fixture: ComponentFixture<NotFoundComponent>; before...
Add one more unit test in not found component
Add one more unit test in not found component
TypeScript
mit
DavideViolante/Angular-Full-Stack,DavideViolante/Angular-Full-Stack,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular-Full-Stack,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular-Full-Stack
--- +++ @@ -28,4 +28,10 @@ const el = fixture.debugElement.query(By.css('h4')).nativeElement; expect(el.textContent).toContain('404 Not Found'); }); + + it('should display the link for homepage', () => { + const el = fixture.debugElement.query(By.css('a')).nativeElement; + expect(el.getAttribute('...
6807a610c6b964d44cdcfe89ab4ab56e4310aa28
src/diagram.tsx
src/diagram.tsx
import * as React from 'react'; import * as d3 from 'd3'; export class Diagram extends React.Component<{}, {}> { static displayName = 'Diagram'; static propTypes = { title: React.PropTypes.string, }; constructor () { super(); } getDefaultProps () { return { title: "Unknown diagram", ...
import * as React from 'react'; import * as d3 from 'd3'; export class Diagram extends React.Component<{}, {}> { static displayName = 'Diagram'; static propTypes = { title: React.PropTypes.string, }; constructor (props) { super(props); } render () { return ( <div> Like Foo ...
Remove getDefaultProps and fix constructor.
Remove getDefaultProps and fix constructor.
TypeScript
mit
hodgestar/rrd-hacky,hodgestar/rrd-hacky,hodgestar/rrd-hacky
--- +++ @@ -9,14 +9,8 @@ title: React.PropTypes.string, }; - constructor () { - super(); - } - - getDefaultProps () { - return { - title: "Unknown diagram", - }; + constructor (props) { + super(props); } render () {
b6ad38c0e666508196118b150c62578296b6f8bb
source/services/dataContracts/converters/aliasConverter/aliasConverter.ts
source/services/dataContracts/converters/aliasConverter/aliasConverter.ts
import * as _ from 'lodash'; import { IConverter } from '../converters'; export class AliasConverter<TDataType> implements IConverter<TDataType> { constructor(private alias: string , private composedConverter?: IConverter<TDataType>) { } fromServer: { (raw: any, parent: any): TDataType } = (raw: any, parent: an...
import * as _ from 'lodash'; import { IConverter } from '../converters'; export class AliasConverter<TDataType> implements IConverter<TDataType> { constructor(private alias: string , private composedConverter?: IConverter<TDataType>) { } fromServer: { (raw: any, parent: any): TDataType } = (raw: any, parent: an...
Delete the property instead of setting it to null.
Delete the property instead of setting it to null.
TypeScript
mit
RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities
--- +++ @@ -12,7 +12,7 @@ } raw = parent[this.alias]; - parent[this.alias] = null; + delete parent[this.alias]; if (this.composedConverter != null) { return this.composedConverter.fromServer(raw, parent);
0f011e4c92c64347c3dae634bbb58eaac900ee84
src/client/src/rt-util/getAppName.ts
src/client/src/rt-util/getAppName.ts
import { getEnvironment } from 'rt-util' import { currencyFormatter } from './' const name = 'Reactive Trader' const prodEnvs = ['demo'] export const APP_PATHS = { LAUNCHER: '/launcher', TRADER: '/', STYLEGUIDE: '/styleguide', BLOTTER: '/blotter', ANALYTICS: '/analytics', TILES: '/tiles', } export const ...
import { getEnvironment } from 'rt-util' import { currencyFormatter } from './' const name = 'Reactive Trader' const prodEnvs = ['demo'] export const APP_PATHS = { LAUNCHER: '/launcher', TRADER: '/', STYLEGUIDE: '/styleguide', BLOTTER: '/blotter', ANALYTICS: '/analytics', TILES: '/tiles', } export const ...
Fix title on popped out ccy pair tile
Fix title on popped out ccy pair tile
TypeScript
apache-2.0
AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud
--- +++ @@ -40,7 +40,7 @@ const ccy = pathname ? pathname.slice(6, 12) : `` const areaTitle = currencyPairs.includes(ccy) - ? currencyFormatter(ccy) + ? `- ${currencyFormatter(ccy)}` : pathname && pathname !== '/' ? ` - ${appTitles[pathname]}` : ``
233a88eea11c71005aa03d8ffb6097520bf8a190
src/js/Actions/UIActions/Settings.ts
src/js/Actions/UIActions/Settings.ts
import { updatePollPeriod } from 'Actions/Settings'; /** * @param {string} pollPeriod */ export function configurePollPeriod(pollPeriod: string) { return dispatch => { dispatch(updatePollPeriod(pollPeriod)); }; };
import InstanceCache from 'Core/InstanceCache'; import { updatePollPeriod } from 'Actions/Settings'; import { configurePollingScheduler } from 'Helpers/System/Scheduler'; /** * @param {string} pollPeriod */ export function configurePollPeriod(pollPeriod: string) { let scheduler = InstanceCache.getInstance<ISched...
Configure scheduling when the value is updated
Configure scheduling when the value is updated
TypeScript
mit
harksys/HawkEye,harksys/HawkEye,harksys/HawkEye
--- +++ @@ -1,12 +1,18 @@ +import InstanceCache from 'Core/InstanceCache'; + import { updatePollPeriod } from 'Actions/Settings'; +import { configurePollingScheduler } from 'Helpers/System/Scheduler'; /** * @param {string} pollPeriod */ export function configurePollPeriod(pollPeriod: string) { + let sched...
69a01949b04827fcdae38b2bbea81420362755d5
src/xrm-mock/attributes/stringattribute/stringattribute.mock.ts
src/xrm-mock/attributes/stringattribute/stringattribute.mock.ts
import { ItemCollectionMock } from "../../collection/itemcollection/itemcollection.mock"; import { ControlMock } from "../../controls/control/control.mock"; import { StringControlMock } from "../../controls/stringcontrol/stringcontrol.mock"; import { AttributeMock, IAttributeComponents } from "../attribute/attribute.mo...
import { ItemCollectionMock } from "../../collection/itemcollection/itemcollection.mock"; import { ControlMock } from "../../controls/control/control.mock"; import { StringControlMock } from "../../controls/stringcontrol/stringcontrol.mock"; import { AttributeMock, IAttributeComponents } from "../attribute/attribute.mo...
Allow for Strings being set to null
Allow for Strings being set to null
TypeScript
mit
camelCaseDave/xrm-mock,camelCaseDave/xrm-mock
--- +++ @@ -32,7 +32,7 @@ } public setValue(value: string): void { - if (this.maxLength && value.length > this.maxLength) { + if (value && this.maxLength && value.length > this.maxLength) { throw new Error(("value cannot be greater than " + this.maxLength)); } else { ...
890361dff04f652f24da3ed3611bf123053ba3e6
typescript-react/src/interfaces.d.ts
typescript-react/src/interfaces.d.ts
import NowShowingFilter from "./NowShowingFilter"; export type ChangeFunction = () => any; export interface IAppProps { model: ITodoModel; } export interface IAppState { editing?: string; nowShowing?: NowShowingFilter; } export interface ITodo { id: string; title: string; completed: boolean; } export i...
import NowShowingFilter from "./NowShowingFilter"; export type ChangeFunction = () => any; export interface IAppProps { model: ITodoModel; } export interface IAppState { editing?: string; nowShowing?: NowShowingFilter; } export interface ITodoFooterProps { completedCount: number; onClearCompleted: any; ...
Move IFooterProps out of the way
Move IFooterProps out of the way
TypeScript
unlicense
janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations
--- +++ @@ -9,6 +9,13 @@ export interface IAppState { editing?: string; nowShowing?: NowShowingFilter; +} + +export interface ITodoFooterProps { + completedCount: number; + onClearCompleted: any; + nowShowing: NowShowingFilter; + count: number; } export interface ITodo { @@ -32,13 +39,6 @@ editText:...
617e929e1af5b949da3caacd6df281a8fc99303d
server/src/lib/utils/RequestUrlGetter.ts
server/src/lib/utils/RequestUrlGetter.ts
import Constants = require("../../../../../shared/constants"); import Express = require("express"); import GetHeader from "../../utils/GetHeader"; import HasHeader from "../..//utils/HasHeader"; export class RequestUrlGetter { static getOriginalUrl(req: Express.Request): string { if (HasHeader(req, Constants.HE...
import Constants = require("../../../../shared/constants"); import Express = require("express"); import GetHeader from "./GetHeader"; import HasHeader from "./HasHeader"; export class RequestUrlGetter { static getOriginalUrl(req: Express.Request): string { if (HasHeader(req, Constants.HEADER_X_ORIGINAL_URL)) { ...
Fix relative paths and add error handling
Fix relative paths and add error handling
TypeScript
mit
clems4ever/authelia,clems4ever/two-factor-auth-server,clems4ever/authelia,clems4ever/two-factor-auth-server,clems4ever/authelia,clems4ever/authelia,clems4ever/authelia
--- +++ @@ -1,7 +1,7 @@ -import Constants = require("../../../../../shared/constants"); +import Constants = require("../../../../shared/constants"); import Express = require("express"); -import GetHeader from "../../utils/GetHeader"; -import HasHeader from "../..//utils/HasHeader"; +import GetHeader from "./GetHeade...
b6709a2153d0be4410963917392ad6ab914f2179
src/aws-token-helper/aws-token-helper.ts
src/aws-token-helper/aws-token-helper.ts
// tslint:disable-next-line:no-require-imports import open = require("open"); const generateQuery = (params: { [key: string]: string }) => Object.keys(params) .map((key: string) => key + "=" + params[key]) .join("&"); function prompt(question: string): Promise<string> { return new Promise((res...
// tslint:disable-next-line:no-require-imports import open = require("open"); const generateQuery = (params: { [key: string]: string }) => Object.keys(params) .map((key: string) => key + "=" + params[key]) .join("&"); function prompt(question: string): Promise<string> { return new Promise((res...
Make script easier to understand
Make script easier to understand
TypeScript
mit
dolanmiu/MMM-awesome-alexa,dolanmiu/MMM-awesome-alexa
--- +++ @@ -20,29 +20,41 @@ }); } -prompt("Client ID?").then(clientId => { - prompt("Product Id?").then(productId => { - prompt("Redirect URI (allowed return URL)?").then(redirectURI => { - const scopeData = { - "alexa:all": { - productID: productId, - ...
b7411dd3a2fca8db7370bad802263b02f0908c16
src/Icon.tsx
src/Icon.tsx
import * as React from 'react'; export enum ActionType { zoomIn = 1, zoomOut = 2, prev = 3, next = 4, rotateLeft = 5, rotateRight = 6, reset = 7, close = 8, scaleX = 9, scaleY = 10, download = 11, } export interface IconProps { type: ActionType; } export default class Icon extends React.Compo...
import * as React from 'react'; export enum ActionType { zoomIn = 1, zoomOut = 2, prev = 3, next = 4, rotateLeft = 5, rotateRight = 6, reset = 7, close = 8, scaleX = 9, scaleY = 10, download = 11, } export interface IconProps { type: ActionType; } export default function Icon(props: IconProps...
Fix "TypeError: Super expression must either be null or a function"
Fix "TypeError: Super expression must either be null or a function"
TypeScript
mit
infeng/react-viewer,infeng/react-viewer
--- +++ @@ -18,12 +18,10 @@ type: ActionType; } -export default class Icon extends React.Component<IconProps, any> { - render() { - let prefixCls = 'react-viewer-icon'; +export default function Icon(props: IconProps) { + let prefixCls = 'react-viewer-icon'; - return ( - <i className={`${prefixCls...
e3afa9992b81c7de03d9d9a7827ee39358a17484
src/index.ts
src/index.ts
export default null;
export type NodeId = number | string; export interface Graph { nodes: Node[]; edges: Edge[]; } export interface Node { id: NodeId; location: Point; } export interface Edge { startNode: NodeId; endNode: NodeId; innerPoints?: Point[]; } export interface Point { x: number; y: numbe...
Make some initial type definitions
Make some initial type definitions
TypeScript
mit
dphilipson/graphs-and-paths
--- +++ @@ -1 +1,32 @@ -export default null; +export type NodeId = number | string; + + +export interface Graph { + nodes: Node[]; + edges: Edge[]; +} + +export interface Node { + id: NodeId; + location: Point; +} + +export interface Edge { + startNode: NodeId; + endNode: NodeId; + innerPoints?: ...
c71ff5707a9f543551d705d4f261448329063e51
src/utils.ts
src/utils.ts
import { commands } from "vscode"; export function setContext(key: string, value: any) { return commands.executeCommand("setContext", key, value); } export function executeCommand(cmd: string, args: any) { if (Array.isArray(args)) { const arr = args as any[]; return commands.executeCommand(cmd...
import { commands } from "vscode"; export function setContext(key: string, value: any) { return commands.executeCommand("setContext", key, value); } export function executeCommand(cmd: string, args: any) { if (Array.isArray(args)) { const arr = args as any[]; return commands.executeCommand(cmd...
Implement to full width key
Implement to full width key
TypeScript
mit
VSpaceCode/vscode-which-key,VSpaceCode/vscode-which-key
--- +++ @@ -25,6 +25,43 @@ } } +// https://en.wikipedia.org/wiki/Halfwidth_and_Fullwidth_Forms_(Unicode_block) +export function toFullWidthKey(s: string) { + let key = ""; + for (const symbol of s) { + const codePoint = symbol.codePointAt(0); + if (s.length === 1 && codePoint && codePoint ...
e8b85f0f4875496c710a5d4bc4ccad388d21915c
ftp/ftp-tests.ts
ftp/ftp-tests.ts
/// <reference path="ftp.d.ts" /> /// <reference path="../node/node.d.ts" /> import Client = require("ftp"); import fs = require("fs"); var c = new Client(); c.on('ready', (): void => { c.get('foo.txt', function(err: Error, stream: NodeJS.ReadableStream): void { if (err) throw err; stream.once('close',...
/// <reference path="ftp.d.ts" /> /// <reference path="../node/node.d.ts" /> import Client = require("ftp"); import fs = require("fs"); var c = new Client(); c.on('ready', (): void => { c.get('foo.txt', function(err: Error, stream: NodeJS.ReadableStream): void { if (err) throw err; stream.once('close',...
Normalize to tabs even though they're awful in 'ftp'.
Normalize to tabs even though they're awful in 'ftp'.
TypeScript
mit
TrabacchinLuigi/DefinitelyTyped,olivierlemasle/DefinitelyTyped,RX14/DefinitelyTyped,nakakura/DefinitelyTyped,jesseschalken/DefinitelyTyped,Gmulti/DefinitelyTyped,scriby/DefinitelyTyped,rockclimber90/DefinitelyTyped,zuzusik/DefinitelyTyped,igorsechyn/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,Zenorbi/DefinitelyTyped,lb...
--- +++ @@ -19,8 +19,8 @@ c.connect({ host: "127.0.0.1", - port: 21, - user: "Boo", + port: 21, + user: "Boo", password: "secret" });
bc0bbbce9c58f37f9a4fc9c49e8f97a4816719ee
source/types/itemList.ts
source/types/itemList.ts
import * as _ from 'lodash'; export interface IItem { value: number; name: string; display: string; } export interface IItemList<TItemType extends IItem> { get(value: number | string): TItemType; all(): TItemType[]; } export class ItemList<TItemType extends IItem> implements IItemList<TItemType> { pri...
import * as _ from 'lodash'; export interface IItem { value: number; name: string; display: string; } export interface IItemList<TItemType extends IItem> { get(value: number | string): TItemType; all(): TItemType[]; } export class ItemList<TItemType extends IItem> implements IItemList<TItemType> { pri...
Use lodash sort instead of native one.
Use lodash sort instead of native one. This is a bit easier to read.
TypeScript
mit
RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities
--- +++ @@ -41,8 +41,6 @@ export class SortedItemList<TItemType extends IItem> extends ItemList<TItemType> { setItems(items: TItemType[]): void { - super.setItems(items.sort((i1, i2) => { - return i1.display.localeCompare(i2.display); - })); + super.setItems(_.sortBy(items, x => x.display)); } }
d765b09a5b71d361e2bb7ea4be31b4f15b6e2053
src/Test/Ast/NakedUrl.ts
src/Test/Ast/NakedUrl.ts
import { expect } from 'chai' import * as Up from '../../index' import { insideDocumentAndParagraph } from './Helpers' import { LinkNode } from '../../SyntaxNodes/LinkNode' import { DocumentNode } from '../../SyntaxNodes/DocumentNode' import { PlainTextNode } from '../../SyntaxNodes/PlainTextNode' import { EmphasisNod...
import { expect } from 'chai' import * as Up from '../../index' import { insideDocumentAndParagraph } from './Helpers' import { LinkNode } from '../../SyntaxNodes/LinkNode' import { DocumentNode } from '../../SyntaxNodes/DocumentNode' import { PlainTextNode } from '../../SyntaxNodes/PlainTextNode' import { EmphasisNod...
Add passing naked URL test
Add passing naked URL test
TypeScript
mit
start/up,start/up
--- +++ @@ -24,5 +24,13 @@ ], 'https://archive.org') ])) }) + + it('is terminated by a space', () => { + expect(Up.toAst('https://archive.org ')).to.be.eql( + insideDocumentAndParagraph([ + new LinkNode([ + new PlainTextNode('archive.org') + ], 'https://archive.org...
a26ff5411cff6383bd00186d3321e6e1d911af92
packages/lesswrong/components/posts/PostsCompareRevisions.tsx
packages/lesswrong/components/posts/PostsCompareRevisions.tsx
import React from 'react'; import { Components, registerComponent } from '../../lib/vulcan-lib'; import { Posts } from '../../lib/collections/posts'; import { useLocation } from '../../lib/routeUtil'; import { useSingle } from '../../lib/crud/withSingle'; import { styles } from './PostsPage/PostsPage'; const PostsComp...
import React from 'react'; import { Components, registerComponent } from '../../lib/vulcan-lib'; import { Posts } from '../../lib/collections/posts'; import { useLocation } from '../../lib/routeUtil'; import { useSingle } from '../../lib/crud/withSingle'; import { styles } from './PostsPage/PostsPage'; const PostsComp...
Fix a crash on the post revision-comparison page
Fix a crash on the post revision-comparison page
TypeScript
mit
Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope
--- +++ @@ -18,6 +18,8 @@ documentId: postId, collection: Posts, fragmentName: "PostsWithNavigation", + extraVariables: { sequenceId: 'String' }, + extraVariablesValues: { sequenceId: null }, }); const { CompareRevisions, PostsPagePostHeader, RevisionComparisonNotice, Loading } = Compon...
486a33c886ebd022682737ef86fcf8f12910004d
src/app/shell/Destiny.tsx
src/app/shell/Destiny.tsx
import * as React from 'react'; import { UIView } from "@uirouter/react"; import ManifestProgress from './ManifestProgress'; import { $rootScope } from 'ngimport'; import { hotkeys } from '../ngimport-more'; import { t } from 'i18next'; import { itemTags } from '../settings/settings'; import { DestinyAccount } from '.....
import * as React from 'react'; import { UIView } from "@uirouter/react"; import ManifestProgress from './ManifestProgress'; import { $rootScope } from 'ngimport'; import { hotkeys } from '../ngimport-more'; import { t } from 'i18next'; import { itemTags } from '../settings/settings'; import { DestinyAccount } from '.....
Fix iOS layout thrashing bug
Fix iOS layout thrashing bug
TypeScript
mit
bhollis/DIM,bhollis/DIM,chrisfried/DIM,delphiactual/DIM,chrisfried/DIM,chrisfried/DIM,delphiactual/DIM,DestinyItemManager/DIM,bhollis/DIM,DestinyItemManager/DIM,delphiactual/DIM,bhollis/DIM,delphiactual/DIM,DestinyItemManager/DIM,chrisfried/DIM,DestinyItemManager/DIM
--- +++ @@ -49,10 +49,10 @@ render() { return ( <> + <div className="store-bounds"/> <div id="content"> <UIView/> </div> - <div className="store-bounds"/> <ManifestProgress destinyVersion={this.props.account.destinyVersion} /> </> );
35ce084572b3da9103949de464c81a5c4cc348e5
packages/hint-performance-budget/src/meta.ts
packages/hint-performance-budget/src/meta.ts
import { Category } from 'hint/dist/src/lib/enums/category'; import { HintScope } from 'hint/dist/src/lib/enums/hintscope'; import { HintMetadata } from 'hint/dist/src/lib/types'; import * as Connections from './connections'; const meta: HintMetadata = { docs: { category: Category.performance, des...
import { Category } from 'hint/dist/src/lib/enums/category'; import { HintScope } from 'hint/dist/src/lib/enums/hintscope'; import { HintMetadata } from 'hint/dist/src/lib/types'; import * as Connections from './connections'; const meta: HintMetadata = { docs: { category: Category.performance, des...
Use `enum` instead of `oneOf` in schema
Fix: Use `enum` instead of `oneOf` in schema
TypeScript
apache-2.0
sonarwhal/sonar,sonarwhal/sonar,sonarwhal/sonar
--- +++ @@ -15,7 +15,7 @@ additionalProperties: false, properties: { connectionType: { - oneOf: [{ enum: Connections.ids }], + enum: Connections.ids, type: 'string' }, loadTime: {
1815ad7a1858625b543bc3f0bae9f1b4eb624d85
developer/js/tests/test-parse-wordlist.ts
developer/js/tests/test-parse-wordlist.ts
import {parseWordList} from '../lexical-model-compiler/build-trie'; import {assert} from 'chai'; import 'mocha'; import path = require('path'); const BOM = '\ufeff'; describe('parseWordList', function () { it('should remove the UTF-8 byte order mark from files', function () { let word = 'hello'; let count ...
import {parseWordList} from '../dist/lexical-model-compiler/build-trie'; import {assert} from 'chai'; import 'mocha'; const BOM = '\ufeff'; describe('parseWordList', function () { it('should remove the UTF-8 byte order mark from files', function () { let word = 'hello'; let count = 1; let expected = [ ...
Fix paths issue from merge.
Fix paths issue from merge.
TypeScript
apache-2.0
tavultesoft/keymanweb,tavultesoft/keymanweb
--- +++ @@ -1,8 +1,6 @@ -import {parseWordList} from '../lexical-model-compiler/build-trie'; +import {parseWordList} from '../dist/lexical-model-compiler/build-trie'; import {assert} from 'chai'; import 'mocha'; - -import path = require('path'); const BOM = '\ufeff';
c9b380771adf25308913eab670740731be28c155
src/messages.component.ts
src/messages.component.ts
import { Component, Input, Optional, OnInit } from '@angular/core'; import { AbstractControl } from '@angular/forms'; import { ValidationMessagesConfiguration, defaultConfig } from './config'; import { MessageProvider } from './message-provider'; @Component({ selector: 'ng2-mdf-validation-message', template:...
import { Component, Input, Optional, OnInit } from '@angular/core'; import { AbstractControl } from '@angular/forms'; import { ValidationMessagesConfiguration, defaultConfig } from './config'; import { MessageProvider } from './message-provider'; @Component({ selector: 'ng2-mdf-validation-message', template:...
Change to be able to override a single error message instead of having to override all of them
Change to be able to override a single error message instead of having to override all of them
TypeScript
mit
d-kostov-dev/ng2-mdf-validation-messages,d-kostov-dev/ng2-mdf-validation-messages,d-kostov-dev/ng2-mdf-validation-messages
--- +++ @@ -22,7 +22,8 @@ this.config = Object.assign({}, defaultConfig, customConfig); } - this.messageProvider = new MessageProvider(this.config.defaultErrorMessages); + const errorMessages = Object.assign({}, defaultConfig.defaultErrorMessages, this.config.defaultErrorMessages...
5ad1ba260be6eaee38c2b4a6e22b1db938ddbbf9
src/node/NodeUtilities.ts
src/node/NodeUtilities.ts
/// <reference path="../../typedefinitions/node.d.ts" /> /// <reference path="../core/JSUtilities.ts" /> const fs = require("fs"); class NodeUtilities { static argvWithoutProcessName() { return process.argv.slice(2); } static parseArguments(argumentsWithValues: Array<string>, optionCallback: (opt...
/// <reference path="../../typedefinitions/node.d.ts" /> /// <reference path="../core/JSUtilities.ts" /> const fs = require("fs"); const path = require("path"); class NodeUtilities { static argvWithoutProcessName() { return process.argv.slice(2); } static parseArguments(argumentsWithValues: Array...
Add a method that recurses through a directory and returns a list of all files. This will be used by the test driver to seek out all test files in a directory.
Add a method that recurses through a directory and returns a list of all files. This will be used by the test driver to seek out all test files in a directory.
TypeScript
mit
paulymer/CRISP-8
--- +++ @@ -2,6 +2,7 @@ /// <reference path="../core/JSUtilities.ts" /> const fs = require("fs"); +const path = require("path"); class NodeUtilities { static argvWithoutProcessName() { @@ -31,4 +32,24 @@ return remainingArguments; } + + static recursiveReadPathSync(currentPath: string) ...
66d8b0568e1f6e91fcc2914239f5385c58759f88
src/lib/commitTypes.ts
src/lib/commitTypes.ts
import { SelectOption } from '../dependencies/cliffy.ts'; import { stoyle, theme } from '../dependencies/stoyle.ts'; export const COMMIT_TYPES: Record<string, SelectOption> = { FEAT: { value: 'feat', name: stoyle`${'feat'} when working on a feature`({ nodes: [ theme.strong ] }) }, FIX: { value: 'fix', name: stoyle...
import { SelectOption } from '../dependencies/cliffy.ts'; import { stoyle, theme } from '../dependencies/stoyle.ts'; export const COMMIT_TYPES: Record<string, SelectOption> = { FEAT: { value: 'feat', name: stoyle`${'feat'} when working on a feature`({ nodes: [ theme.strong ] }) }, FIX: { value: 'fix', name: stoyle...
Add doc commit type for angular message format
:new: Add doc commit type for angular message format
TypeScript
apache-2.0
quilicicf/Gut,quilicicf/Gut
--- +++ @@ -4,6 +4,7 @@ export const COMMIT_TYPES: Record<string, SelectOption> = { FEAT: { value: 'feat', name: stoyle`${'feat'} when working on a feature`({ nodes: [ theme.strong ] }) }, FIX: { value: 'fix', name: stoyle`${'fix'} when working on a bug fix`({ nodes: [ theme.strong ] }) }, + DOC: { value: 'do...
88b4ec57704662a9d422aa3558890bd1751e9749
tether/tether.d.ts
tether/tether.d.ts
// Type definitions for Tether v0.6 // Project: http://github.hubspot.com/tether/ // Definitions by: Adi Dahiya <https://github.com/adidahiya> // Definitions: https://github.com/borisyankov/DefinitelyTyped declare module tether { interface TetherStatic { new(options: ITetherOptions): Tether; } in...
// Type definitions for Tether v0.6 // Project: http://github.hubspot.com/tether/ // Definitions by: Adi Dahiya <https://github.com/adidahiya> // Definitions: https://github.com/borisyankov/DefinitelyTyped declare module tether { interface TetherStatic { new(options: ITetherOptions): Tether; } in...
Use stricter Element type in tether options
Use stricter Element type in tether options
TypeScript
mit
paxibay/DefinitelyTyped,NCARalph/DefinitelyTyped,muenchdo/DefinitelyTyped,acepoblete/DefinitelyTyped,dmoonfire/DefinitelyTyped,michalczukm/DefinitelyTyped,sclausen/DefinitelyTyped,jacqt/DefinitelyTyped,AyaMorisawa/DefinitelyTyped,darkl/DefinitelyTyped,ecramer89/DefinitelyTyped,rcchen/DefinitelyTyped,QuatroCode/Definite...
--- +++ @@ -14,11 +14,11 @@ classes?: {[className: string]: boolean}; classPrefix?: string; constraints?: ITetherConstraint[]; - element?: Element | string | any /* JQuery */; + element?: HTMLElement | string | any /* JQuery */; enabled?: boolean; offset?: st...
a0c2221847d97b3ed3e8ed604c319acff5b83c47
packages/components/components/sidebar/SidebarListItemHeaderLink.tsx
packages/components/components/sidebar/SidebarListItemHeaderLink.tsx
import React from 'react'; import Icon from '../icon/Icon'; import AppLink, { Props as LinkProps } from '../link/AppLink'; interface Props extends LinkProps { icon: string; info: string; } export const SidebarListItemHeaderLinkButton = ({ info, icon, ...rest }: Props) => { return ( <AppLink classNa...
import React from 'react'; import Icon from '../icon/Icon'; import AppLink, { Props as LinkProps } from '../link/AppLink'; interface Props extends LinkProps { icon: string; info: string; } export const SidebarListItemHeaderLinkButton = ({ info, icon, ...rest }: Props) => { return ( <AppLink classNa...
Add flex to align items
Add flex to align items
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -8,7 +8,7 @@ } export const SidebarListItemHeaderLinkButton = ({ info, icon, ...rest }: Props) => { return ( - <AppLink className="navigation-link-header-group-link flex-item-noshrink" type="button" {...rest}> + <AppLink className="flex navigation-link-header-group-link flex-item-noshr...
b976adc747d62253e923ba1c658222425954468a
tests/dummy/app/helpers/typed-help.ts
tests/dummy/app/helpers/typed-help.ts
import { helper } from '@ember/component/helper'; export function typedHelp(/*params, hash*/) { return 'my type of help'; } export default helper(typedHelp);
import Ember from 'ember'; import { helper } from '@ember/component/helper'; export function typedHelp(/*params, hash*/) { return 'my type of help'; } export default helper(typedHelp);
Make the declaration emitter happy with our Helper usage
Make the declaration emitter happy with our Helper usage
TypeScript
mit
emberwatch/ember-cli-typescript,emberwatch/ember-cli-typescript,emberwatch/ember-cli-typescript,emberwatch/ember-cli-typescript
--- +++ @@ -1,3 +1,4 @@ +import Ember from 'ember'; import { helper } from '@ember/component/helper'; export function typedHelp(/*params, hash*/) {
0d9bf3ccc55f4d643f8aed95065bb435ca91fa0c
frontend/sequences/step_tiles/__tests__/tile_toggle_pin_test.tsx
frontend/sequences/step_tiles/__tests__/tile_toggle_pin_test.tsx
import * as React from "react"; import { TileTogglePin } from "../tile_toggle_pin"; import { mount } from "enzyme"; import { fakeSequence } from "../../../__test_support__/fake_state/resources"; import { TogglePin } from "farmbot"; import { emptyState } from "../../../resources/reducer"; import { StepParams } from "../...
import * as React from "react"; import { TileTogglePin } from "../tile_toggle_pin"; import { mount } from "enzyme"; import { fakeSequence } from "../../../__test_support__/fake_state/resources"; import { TogglePin } from "farmbot"; import { emptyState } from "../../../resources/reducer"; import { StepParams } from "../...
Fix test breakage due to refactoring
Fix test breakage due to refactoring
TypeScript
mit
gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,FarmBot/Farmbot-Web-API,FarmBot/Farmbot-Web-API,FarmBot/Far...
--- +++ @@ -27,10 +27,9 @@ const block = mount(<TileTogglePin {...fakeProps()} />); const inputs = block.find("input"); const labels = block.find("label"); - expect(inputs.length).toEqual(2); + expect(inputs.length).toEqual(1); expect(labels.length).toEqual(1); expect(inputs.first().pro...
271dd88a09b65c7947a64d6f575847aedd0b5529
modules/katamari/src/test/ts/atomic/api/option/OptionGetOrTest.ts
modules/katamari/src/test/ts/atomic/api/option/OptionGetOrTest.ts
import { Option } from 'ephox/katamari/api/Option'; import * as Fun from 'ephox/katamari/api/Fun'; import { Assert, UnitTest } from '@ephox/bedrock-client'; import fc from 'fast-check'; UnitTest.test('Option.getOr', () => { fc.assert(fc.property(fc.anything(), (x) => { Assert.eq('none', x, Option.none().getOr(x)...
import { Option } from 'ephox/katamari/api/Option'; import * as Fun from 'ephox/katamari/api/Fun'; import { Assert, UnitTest } from '@ephox/bedrock-client'; import fc from 'fast-check'; UnitTest.test('Option.getOr', () => { fc.assert(fc.property(fc.integer(), (x) => { Assert.eq('none', x, Option.none().getOr(x))...
Test failed on NaN, so just use an integer.
Test failed on NaN, so just use an integer.
TypeScript
lgpl-2.1
FernCreek/tinymce,TeamupCom/tinymce,FernCreek/tinymce,tinymce/tinymce,TeamupCom/tinymce,tinymce/tinymce,FernCreek/tinymce,tinymce/tinymce
--- +++ @@ -4,11 +4,11 @@ import fc from 'fast-check'; UnitTest.test('Option.getOr', () => { - fc.assert(fc.property(fc.anything(), (x) => { + fc.assert(fc.property(fc.integer(), (x) => { Assert.eq('none', x, Option.none().getOr(x)); Assert.eq('none', x, Option.none().getOrThunk(() => x)); })); - ...
36d1df8c383002cdc75b66808e1b135607bd4883
cli.ts
cli.ts
#!/usr/bin/env node /** * Entry point for CLI. * Validate args and kick off electron process so user doesn't have to invoke * electron directly. */ import * as Child from "child_process"; import * as Path from "path"; import * as Yargs from "yargs"; import * as Args from "./arg-parsing"; // Parse cli args before...
#!/usr/bin/env node /** * Entry point for CLI. * Validate args and kick off electron process so user doesn't have to invoke * electron directly. */ import * as Child from "child_process"; import * as Path from "path"; import * as Yargs from "yargs"; import * as Args from "./arg-parsing"; // Parse cli args before...
Use local version of electron
Use local version of electron
TypeScript
mit
trodi/peer-review-cli,trodi/peer-review-cli
--- +++ @@ -14,7 +14,7 @@ // Parse cli args before requiring running electron. const argv: Yargs.Arguments = Args.parse(); -Child.exec(`electron ${Path.join(__dirname, "cli-electron.js")} ` + process.argv.slice(2), +Child.exec(`./node_modules/.bin/electron ${Path.join(__dirname, "cli-electron.js")} ` + process.ar...
b06f2510c00d064f5549fab9b735e36e3b4e2dbf
docs/docs/snippets/providers/getting-started-serverloader.ts
docs/docs/snippets/providers/getting-started-serverloader.ts
import {Configuration} from "@tsed/common"; import {CalendarsCtrl} from "./controllers/CalendarsCtrl"; import {CalendarsService} from "./services/CalendarsService"; @Configuration({ mount: { "/rest": [CalendarsCtrl] }, componentsScan: [ CalendarsService ] }) export class Server { }
import {Configuration} from "@tsed/common"; import {CalendarsCtrl} from "./controllers/CalendarsCtrl"; @Configuration({ mount: { "/rest": [CalendarsCtrl] } }) export class Server { }
Update example to import controller
docs: Update example to import controller
TypeScript
mit
Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators
--- +++ @@ -1,14 +1,10 @@ import {Configuration} from "@tsed/common"; import {CalendarsCtrl} from "./controllers/CalendarsCtrl"; -import {CalendarsService} from "./services/CalendarsService"; @Configuration({ mount: { "/rest": [CalendarsCtrl] - }, - componentsScan: [ - CalendarsService - ] + } })...
9636a6cacfbd6fc79ff8890878ba62fd1712e8f8
backend/common/src/entities/nominator.ts
backend/common/src/entities/nominator.ts
import { Affiliation, Household } from 'cmpd-common-api'; import { BaseEntity, Column, Entity, JoinColumn, OneToMany, OneToOne, PrimaryColumn } from 'typeorm'; @Entity('nominators') export class Nominator extends BaseEntity { private constructor(props) { super(); Object.assign(this, props); } @PrimaryCo...
import { Affiliation, Household } from 'cmpd-common-api'; import { BaseEntity, Column, Entity, JoinColumn, OneToMany, OneToOne, PrimaryColumn } from 'typeorm'; @Entity('nominators') export class Nominator extends BaseEntity { private constructor(props) { super(); Object.assign(this, props); } @PrimaryCo...
Remove roles from our entity model
Remove roles from our entity model
TypeScript
mit
CodeForCharlotte/cmpd-holiday-gift-backend,CodeForCharlotte/cmpd-holiday-gift-backend,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/cmpd-holiday-gift-backend,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/CMPD-Holiday-Gift
--- +++ @@ -17,8 +17,8 @@ @Column('text', { nullable: true }) rank: string; - @Column('text', { nullable: true }) - role: string; + // @Column('text', { nullable: true }) + // role: string; @Column('text', { nullable: true }) phone: string;
6f20ef281fa9384ac93f94ca23f6cc79dda290a0
app/src/ui/toolbar/revert-progress.tsx
app/src/ui/toolbar/revert-progress.tsx
import * as React from 'react' import { ToolbarButton, ToolbarButtonStyle } from './button' import { OcticonSymbol } from '../octicons' import { IRevertProgress } from '../../lib/app-state' interface IRevertProgressProps { /** Progress information associated with the current operation */ readonly progress: IRevert...
import * as React from 'react' import { ToolbarButton, ToolbarButtonStyle } from './button' import { OcticonSymbol } from '../octicons' import { IRevertProgress } from '../../lib/app-state' interface IRevertProgressProps { /** Progress information associated with the current operation */ readonly progress: IRevert...
Use the title, not the description
Use the title, not the description
TypeScript
mit
shiftkey/desktop,artivilla/desktop,kactus-io/kactus,desktop/desktop,kactus-io/kactus,say25/desktop,say25/desktop,say25/desktop,desktop/desktop,shiftkey/desktop,j-f1/forked-desktop,shiftkey/desktop,shiftkey/desktop,kactus-io/kactus,j-f1/forked-desktop,j-f1/forked-desktop,artivilla/desktop,artivilla/desktop,kactus-io/kac...
--- +++ @@ -12,11 +12,11 @@ export class RevertProgress extends React.Component<IRevertProgressProps, {}> { public render() { const progress = this.props.progress - const description = progress.description || 'Hang on…' + const title = progress.title || 'Hang on…' return ( <ToolbarButton ...
0fb3786c132dffed970fa087f2958eca127caf84
packages/lesswrong/server/migrations/2020-09-19-afVoteMigration.ts
packages/lesswrong/server/migrations/2020-09-19-afVoteMigration.ts
import { registerMigration } from './migrationUtils'; import { Votes } from '../../lib/collections/votes'; import { Posts } from '../../lib/collections/posts'; import { Comments } from '../../lib/collections/comments'; registerMigration({ name: "afVoteMigration", dateWritten: "2020-09-19", idempotent: true, a...
import { fillDefaultValues, registerMigration } from './migrationUtils'; import { Votes } from '../../lib/collections/votes'; import { Posts } from '../../lib/collections/posts'; import { Comments } from '../../lib/collections/comments'; registerMigration({ name: "afVoteMigration", dateWritten: "2020-09-19", id...
Add a default value fill
Add a default value fill
TypeScript
mit
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2
--- +++ @@ -1,5 +1,5 @@ -import { registerMigration } from './migrationUtils'; +import { fillDefaultValues, registerMigration } from './migrationUtils'; import { Votes } from '../../lib/collections/votes'; import { Posts } from '../../lib/collections/posts'; import { Comments } from '../../lib/collections/commen...
cad9294821828288ee00721c3e371be58e633b9e
src/parser/warrior/protection/modules/features/AlwaysBeCasting.tsx
src/parser/warrior/protection/modules/features/AlwaysBeCasting.tsx
import React from 'react'; import { formatPercentage } from 'common/format'; import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting'; import { When } from 'parser/core/ParseResults'; class AlwaysBeCasting extends CoreAlwaysBeCasting { suggestions(when: When) { const deadTimePercentage = this.tota...
import React from 'react'; import { formatPercentage } from 'common/format'; import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting'; import { When } from 'parser/core/ParseResults'; class AlwaysBeCasting extends CoreAlwaysBeCasting { suggestions(when: When) { const deadTimePercentage = this.tota...
Allow type inference for Prot ABC suggestion
Allow type inference for Prot ABC suggestion
TypeScript
agpl-3.0
sMteX/WoWAnalyzer,yajinni/WoWAnalyzer,anom0ly/WoWAnalyzer,anom0ly/WoWAnalyzer,Juko8/WoWAnalyzer,yajinni/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,sMteX/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,Juko8/WoWAnalyzer,yajinni/WoWAnalyzer,anom0ly/WoWAnalyzer,yajinni/WoWAnalyzer,sMteX/WoWAnalyzer,anom0ly/WoWAnalyze...
--- +++ @@ -8,7 +8,7 @@ const deadTimePercentage = this.totalTimeWasted / this.owner.fightDuration; when(deadTimePercentage).isGreaterThan(0.2) - .addSuggestion((suggest, actual: number, recommended: number) => { + .addSuggestion((suggest, actual, recommended) => { return suggest(<span>...
4cbec0b06ad7f1f2e02eeab16b3e6b7c972b4316
src/lib/utils.ts
src/lib/utils.ts
export type Pair<K, V> = { Key: K, Value: V }; export function captureStack() { try { throw new Error(); } catch (e) { return e.stack; } }
export type Pair<K, V> = { Key: K, Value: V }; export function captureStack(): string { try { throw new Error(); } catch (e) { return e.stack; } } export function detectTestRunner() { let stack = captureStack(); return stack.split('\n').find(x => !!x.match(/[\\\/](enzyme|mocha)[\\\/]/i)) !== null; }
Check to see if we're in a test runner via dodgy af means
Check to see if we're in a test runner via dodgy af means
TypeScript
bsd-3-clause
paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline
--- +++ @@ -1,5 +1,10 @@ export type Pair<K, V> = { Key: K, Value: V }; -export function captureStack() { +export function captureStack(): string { try { throw new Error(); } catch (e) { return e.stack; } } + +export function detectTestRunner() { + let stack = captureStack(); + return stack.split('\n').find(...
f3b59f939524708155930f17ba619185eb9bbb83
src/functions/poll.ts
src/functions/poll.ts
import * as rq from 'request-promise-native' const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)) export default function poll (bot) { return bot.api('messages.getLongPollServer') .then(res => { return request(`https://${res.server}?act=a_check&key=${res.key}` + `&wait=25&mode=2&ver...
import * as rq from 'request-promise-native' const DEFAULT_DELAY = 334 // 1/3 of a second const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)) export default function poll (bot) { return bot.api('messages.getLongPollServer') .then(res => { return request(`https://${res.server}?act=a_check&...
Increase a delay before a restart of the Long Poll client
Increase a delay before a restart of the Long Poll client
TypeScript
mit
vitalyavolyn/node-vk-bot,vitalyavolyn/node-vk-bot
--- +++ @@ -1,4 +1,6 @@ import * as rq from 'request-promise-native' + +const DEFAULT_DELAY = 334 // 1/3 of a second const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)) @@ -31,7 +33,7 @@ } if (bot._stop) return null - return sleep(300).then(() => request(url)) + ...
23dedfcbd1b8aa94437078115604dabdd8efa563
lib/components/src/blocks/IFrame.tsx
lib/components/src/blocks/IFrame.tsx
import React, { Component } from 'react'; import window from 'global'; interface IFrameProps { id: string; key?: string; title: string; src: string; allowFullScreen: boolean; scale: number; style?: any; } interface BodyStyle { width: string; height: string; transform: string; transformOrigin: st...
import React, { Component } from 'react'; import window from 'global'; interface IFrameProps { id: string; key?: string; title: string; src: string; allowFullScreen: boolean; scale: number; style?: any; } interface BodyStyle { width: string; height: string; transform: string; transformOrigin: st...
Fix typescript for lazy-loaded iframes
Fix typescript for lazy-loaded iframes
TypeScript
mit
storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook
--- +++ @@ -46,6 +46,16 @@ render() { const { id, title, src, allowFullScreen, scale, ...rest } = this.props; - return <iframe id={id} title={title} src={src} allowFullScreen={allowFullScreen} {...rest} loading="lazy"/>; + return ( + <iframe + id={id} + title={title} + src={s...
5cc9cb9da1ece1497309f151b2789d9f5c300afc
lib/crypto_worker_test.ts
lib/crypto_worker_test.ts
import Q = require('q'); import crypto_worker = require('./crypto_worker'); import env = require('./base/env'); import rpc = require('./net/rpc'); import testLib = require('./test'); if (env.isNodeJS()) { Worker = require('./node_worker').Worker; } testLib.addAsyncTest('worker test', (assert) => { let done = Q.def...
import Q = require('q'); import crypto_worker = require('./crypto_worker'); import env = require('./base/env'); import rpc = require('./net/rpc'); import testLib = require('./test'); if (env.isNodeJS()) { global.Worker = require('./node_worker').Worker; } testLib.addAsyncTest('worker test', (assert) => { let done ...
Fix crypto test under current versions of Node
Fix crypto test under current versions of Node TypeScript >= 1.8.x adds "use strict" at the top of modules, making the implicit assignment to global.Worker fail.
TypeScript
bsd-3-clause
robertknight/passcards,robertknight/passcards,robertknight/passcards,robertknight/passcards
--- +++ @@ -6,7 +6,7 @@ import testLib = require('./test'); if (env.isNodeJS()) { - Worker = require('./node_worker').Worker; + global.Worker = require('./node_worker').Worker; } testLib.addAsyncTest('worker test', (assert) => {
886e31a451ac5b8659289c3bea5b88a6950b4866
generators/client/templates/angular/src/main/webapp/app/admin/configuration/_configuration.service.ts
generators/client/templates/angular/src/main/webapp/app/admin/configuration/_configuration.service.ts
import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs/Rx'; @Injectable() export class <%=jhiPrefixCapitalized%>ConfigurationService { constructor(private http: Http) { } get(): Observable<any> { return this.http.get('managemen...
import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs/Rx'; @Injectable() export class <%=jhiPrefixCapitalized%>ConfigurationService { constructor(private http: Http) { } get(): Observable<any> { return this.http.get('managemen...
Fix tslint error: for (... in ...) statements must be filtered with an if statement
Fix tslint error: for (... in ...) statements must be filtered with an if statement
TypeScript
apache-2.0
wmarques/generator-jhipster,PierreBesson/generator-jhipster,mraible/generator-jhipster,eosimosu/generator-jhipster,baskeboler/generator-jhipster,ruddell/generator-jhipster,JulienMrgrd/generator-jhipster,Tcharl/generator-jhipster,gmarziou/generator-jhipster,cbornet/generator-jhipster,liseri/generator-jhipster,nkolosnjaj...
--- +++ @@ -15,7 +15,9 @@ const propertiesObject = res.json(); for (let key in propertiesObject) { - properties.push(propertiesObject[key]); + if (propertiesObject.hasOwnProperty(key)) { + properties.push(propertiesObject[key]); + ...
a1711158f3d3815c78f1b56ac133fe62efc489cb
angular-rest-services/src/app/app.component.ts
angular-rest-services/src/app/app.component.ts
import { Component } from '@angular/core'; import { Http } from '@angular/http'; import { BooksService } from './books.service'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent { books: string[] = []; constructor(private http: Http, private service:...
import { Component } from '@angular/core'; import { BooksService } from './books.service'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent { books: string[] = []; constructor(private service: BooksService) { } search(title: string) { th...
Remove unused code in angular-rest-service books service
Remove unused code in angular-rest-service books service
TypeScript
apache-2.0
bonigarcia/web-programming-examples,bonigarcia/web-programming-examples,bonigarcia/web-programming-examples,bonigarcia/web-programming-examples
--- +++ @@ -1,5 +1,4 @@ import { Component } from '@angular/core'; -import { Http } from '@angular/http'; import { BooksService } from './books.service'; @@ -10,12 +9,12 @@ export class AppComponent { books: string[] = []; - constructor(private http: Http, private service: BooksService) { } + cons...
af02b004c90edba0c4e037f9bcdffcb23b0dd316
app/javascript/lca/ducks/entities/character.ts
app/javascript/lca/ducks/entities/character.ts
// @flow import { createApiActions, createEntityReducer, mergeEntity } from './_entity' import { crudAction, standardTypes } from './_lib' import { callApi } from 'utils/api.js' const CHARACTER = 'character' export default createEntityReducer(CHARACTER, { [crudAction(CHARACTER, 'CHANGE_TYPE').success.toString()]: ...
import createCachedSelector from 're-reselect' import { ICharacter } from 'types' import { callApi } from 'utils/api.js' import { createApiActions, createEntityReducer, mergeEntity } from './_entity' import { crudAction, standardTypes } from './_lib' import { EntityState, WrappedEntityState } from './_types' const un...
Fix broken build (still v76)
Fix broken build (still v76)
TypeScript
agpl-3.0
makzu/lotcastingatemi,makzu/lotcastingatemi,makzu/lotcastingatemi,makzu/lotcastingatemi,makzu/lotcastingatemi
--- +++ @@ -1,8 +1,13 @@ -// @flow +import createCachedSelector from 're-reselect' + +import { ICharacter } from 'types' +import { callApi } from 'utils/api.js' import { createApiActions, createEntityReducer, mergeEntity } from './_entity' import { crudAction, standardTypes } from './_lib' +import { EntityState, Wr...
5eea4756be6c9b44880b34e446832ffc3f5c4186
src/index.tsx
src/index.tsx
import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import store from './store'; import { API_URL } from './constants'; import { clearDom, createRootDiv, importBlueprintStyleSheet, importNormalizrStyleSheet, attachPolarisStyleSheet, attachToastrStyl...
import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import store from './store'; import { API_URL } from './constants'; import { clearDom, createRootDiv, importNormalizrStyleSheet, attachPolarisStyleSheet, attachToastrStylesSheet } from './utils/confi...
Move importing stylesheets to CustomHead
Move importing stylesheets to CustomHead
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
--- +++ @@ -6,7 +6,6 @@ import { clearDom, createRootDiv, - importBlueprintStyleSheet, importNormalizrStyleSheet, attachPolarisStyleSheet, attachToastrStylesSheet @@ -20,7 +19,6 @@ createRootDiv(); } -importBlueprintStyleSheet(); importNormalizrStyleSheet(); attachPolarisStyleSheet();
7d3b9a5e92bfffdcd05a258935bc863d43dd3116
client/src/app/_services/permission.service.ts
client/src/app/_services/permission.service.ts
import {Injectable} from '@angular/core'; import {HttpClient} from '@angular/common/http'; import {Permission} from '../_models'; import 'rxjs/add/observable/throw'; import 'rxjs/add/operator/catch'; import {Observable} from 'rxjs'; import {NgxPermissionsService} from 'ngx-permissions'; @Injectable() export class Per...
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Permission } from '../_models'; import 'rxjs/add/observable/throw'; import 'rxjs/add/operator/catch'; import { Observable } from 'rxjs'; import { NgxPermissionsService } from 'ngx-permissions'; @Injectable() export...
Add space in ES6 imports
[tslint]: Add space in ES6 imports
TypeScript
apache-2.0
K-Fet/K-App,K-Fet/K-App,K-Fet/K-App,K-Fet/K-App
--- +++ @@ -1,18 +1,17 @@ -import {Injectable} from '@angular/core'; -import {HttpClient} from '@angular/common/http'; -import {Permission} from '../_models'; +import { Injectable } from '@angular/core'; +import { HttpClient } from '@angular/common/http'; +import { Permission } from '../_models'; import 'rxjs/add/...
c7734dc035db4624b3919672546ce0829dd1e329
src/structurePrinters/base/ModifierableNodeStructurePrinter.ts
src/structurePrinters/base/ModifierableNodeStructurePrinter.ts
import { CodeBlockWriter } from "../../codeBlockWriter"; import { AbstractableNodeStructure, AmbientableNodeStructure, AsyncableNodeStructure, ExportableNodeStructure, ReadonlyableNodeStructure, ScopeableNodeStructure, ScopedNodeStructure, StaticableNodeStructure } from "../../structures"; import { Printer } from "...
import { CodeBlockWriter } from "../../codeBlockWriter"; import { AbstractableNodeStructure, AmbientableNodeStructure, AsyncableNodeStructure, ExportableNodeStructure, ReadonlyableNodeStructure, ScopeableNodeStructure, ScopedNodeStructure, StaticableNodeStructure } from "../../structures"; import { Printer } from "...
Fix abstract keyword accidentally being printed before scope.
fix: Fix abstract keyword accidentally being printed before scope. There are tests for this coming...
TypeScript
mit
dsherret/ts-simple-ast
--- +++ @@ -15,10 +15,10 @@ writer.write("export "); if ((structure as AmbientableNodeStructure).hasDeclareKeyword) writer.write("declare "); + if (scope != null) + writer.write(`${scope} `); if ((structure as AbstractableNodeStructure).isAbstract) ...
d2785ea12fbece9c2e50af1885f8f6021f5a9701
components/page/Button.tsx
components/page/Button.tsx
import { FC } from 'react'; import { Icon } from '@mdi/react'; type ButtonProps = { text: string; title?: string; icon?: string; size?: string | number; className?: string; onClick?: () => void; href?: string; }; export const Button: FC<ButtonProps> = ({ onClick, href, text, title, icon, s...
import { AnchorHTMLAttributes, ButtonHTMLAttributes, FC } from 'react'; import { Icon } from '@mdi/react'; type ButtonProps = { text: string; icon?: string; size?: string | number; className?: string; }; const iconClassNames = 'p-2 rounded-8 hover:bg-neutral'; const textClassNames = 'px-8 py-6 border ...
Rewrite and improve common button components
Rewrite and improve common button components
TypeScript
mit
benct/tomlin-web,benct/tomlin-web
--- +++ @@ -1,31 +1,36 @@ -import { FC } from 'react'; +import { AnchorHTMLAttributes, ButtonHTMLAttributes, FC } from 'react'; import { Icon } from '@mdi/react'; type ButtonProps = { text: string; - title?: string; icon?: string; size?: string | number; className?: string; - onClick?: (...
e12e40763503407c03c2face630afe70c24acf32
src/client/src/shell/GlobalScrollbarStyle.tsx
src/client/src/shell/GlobalScrollbarStyle.tsx
import React from 'react' import Helmet from 'react-helmet' export const css = ` body, #root { overflow: hidden; } ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-thumb { border-radius: 2px; background-color: rgba(212, 221, 232, .4); } ::-webkit-scrollbar-corner ...
import React from 'react' import Helmet from 'react-helmet' export const css = ` body, #root { overflow: hidden; } body ::-webkit-scrollbar { width: 6px; height: 6px; } body ::-webkit-scrollbar-thumb { border-radius: 2px; background-color: rgba(212, 221, 232, .4); } body ::-webki...
Isolate scroll style to elements within body
Isolate scroll style to elements within body
TypeScript
apache-2.0
AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud
--- +++ @@ -6,15 +6,17 @@ overflow: hidden; } - ::-webkit-scrollbar { + body ::-webkit-scrollbar { width: 6px; height: 6px; } - ::-webkit-scrollbar-thumb { + + body ::-webkit-scrollbar-thumb { border-radius: 2px; background-color: rgba(212, 221, 232, .4); } - ::-webkit-scrollb...
84bf2db47ea1537471e3914db00d7f5ab6e3e337
src/dependument.ts
src/dependument.ts
export class Dependument { private package: string; private templates: string; constructor(options: any) { } }
export class Dependument { private package: string; private templates: string; constructor(options: any) { if (!options.path) { throw new Error("No path specified in options"); } } }
Throw error if no path
Throw error if no path
TypeScript
unlicense
dependument/dependument,Jameskmonger/dependument,dependument/dependument,Jameskmonger/dependument
--- +++ @@ -3,6 +3,8 @@ private templates: string; constructor(options: any) { - + if (!options.path) { + throw new Error("No path specified in options"); + } } }
7adfba39f5239453c680ded5efbe2d6fc3f4b851
eslint/extension.ts
eslint/extension.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. * -------------------------------------------------------------...
Add support for eslintrc.json, yaml, yml and js
Add support for eslintrc.json, yaml, yml and js
TypeScript
mit
chenxsan/vscode-standardjs
--- +++ @@ -23,7 +23,7 @@ documentSelector: ['javascript', 'javascriptreact'], synchronize: { configurationSection: 'eslint', - fileEvents: workspace.createFileSystemWatcher('**/.eslintrc') + fileEvents: workspace.createFileSystemWatcher('**/.eslintr{c.js,c.yaml,c.yml,c,c.json}') } }
7837031fef54443651fe82dd533ecf91dbc422dc
src/lib/default-errors.ts
src/lib/default-errors.ts
import {ErrorMessage} from "./Models/ErrorMessage"; export const DEFAULT_ERRORS: ErrorMessage[] = [ { error: 'required', format: label => `${label} is required` }, { error: 'pattern', format: label => `${label} is invalid` }, { error: 'minlength', format: (label, error) => `${label} m...
import {ErrorMessage} from "./Models/ErrorMessage"; export const DEFAULT_ERRORS: ErrorMessage[] = [ { error: 'required', format: label => `${label} is required` }, { error: 'pattern', format: label => `${label} is invalid` }, { error: 'minlength', format: (label, error) => `${label} m...
Add requiredTrue and email to default errors
Add requiredTrue and email to default errors
TypeScript
mit
third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation
--- +++ @@ -16,5 +16,13 @@ { error: 'maxlength', format: (label, error) => `${label} must be no longer than ${error.requiredLength} characters` + }, + { + error: 'requiredTrue', + format: (label, error) => `${label} is required` + }, + { + error: 'email', + format: (label, error) => `Inva...
5f0b62aa02972445938b24dc8f9f6855ee1af594
src/v2/pages/rss/components/RssItem/index.tsx
src/v2/pages/rss/components/RssItem/index.tsx
import React from 'react' import { ReactElement } from 'react' const rssElement = (name: string) => p => { const { children, ...props } = p return React.createElement(name, props, children) } const Item = rssElement('item') interface RssItemProps { title?: string link?: string pubDate?: string guid?: str...
import React from 'react' import { ReactElement } from 'react' const rssElement = (name: string) => p => { const { children, ...props } = p return React.createElement(name, props, children) } const Item = rssElement('item') interface RssItemProps { title?: string link?: string pubDate?: string guid?: str...
Add RSS source tag for items
Add RSS source tag for items
TypeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
--- +++ @@ -22,6 +22,7 @@ link, pubDate, guid, + source, description, }) => { const html = ` @@ -29,6 +30,7 @@ <link>${link}</link> <pubDate>${new Date(pubDate).toUTCString()}</pubDate> <guid>${guid}</guid> + <source url="${source.split('?')[0]}" /> <description> <![CDAT...
dffded8e9360f0ff16e654fecc305f3825a44346
src/lib/src/parser/parser.ts
src/lib/src/parser/parser.ts
import { Resource as HalfredResource, parse as halfredParse } from 'halfred'; import { Resource } from '../hal'; import { InternalResourceWrapper } from './internal-resource-wrapper'; /** * Parser offers validation and normalization of HAL resources represented as object literals. * * <p>It performs normalization...
import { Resource as HalfredResource, parse as halfredParse } from 'halfred'; import { Resource } from '../hal'; import { InternalResourceWrapper } from './internal-resource-wrapper'; /** * Parser offers validation and normalization of HAL resources represented as object literals. * * <p>It performs normalization...
Return empty object on empty 204s
Return empty object on empty 204s
TypeScript
mit
dherges/ng-hal,dherges/ng-hal
--- +++ @@ -15,7 +15,7 @@ export class Parser { public parse(input: any): Resource { - return new InternalResourceWrapper(halfredParse(input)); + return new InternalResourceWrapper(halfredParse(input) || {}); } }
357b44172be511b760024709080b61a4ea769569
src/containers/HitTable.ts
src/containers/HitTable.ts
import { RootState, Hit } from '../types'; import { connect, Dispatch } from 'react-redux'; import * as actions from '../actions/turkopticon'; import HitTable, { Props, Handlers } from '../components/HitTable/HitTable'; import { batchFetchTOpticon, selectRequesterIds } from '../utils/turkopticon'; const mapS...
import { RootState } from '../types'; import { connect } from 'react-redux'; import HitTable, { Props } from '../components/HitTable/HitTable'; // import { batchFetchTOpticon, selectRequesterId } from '../utils/turkopticon'; const mapState = (state: RootState): Props => ({ hits: state.hits }); export d...
Refactor for use as callbacks to be passed to .map and .filter
Refactor for use as callbacks to be passed to .map and .filter
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
--- +++ @@ -1,24 +1,12 @@ -import { RootState, Hit } from '../types'; +import { RootState } from '../types'; -import { connect, Dispatch } from 'react-redux'; -import * as actions from '../actions/turkopticon'; -import HitTable, { Props, Handlers } from '../components/HitTable/HitTable'; +import { connect } from 'r...
e86194367f7d8e15acbc14ae254a0257c4340c4d
src/lib/list/list-divider.component.ts
src/lib/list/list-divider.component.ts
import { Component, ElementRef, Input, Renderer2, ViewChild, ViewEncapsulation, } from '@angular/core'; import { toBoolean } from '../common/boolean-property'; @Component({ selector: '[mdc-list-divider], mdc-list-divider', template: `<div #divider class="mdc-list-divider" role="seperator"> <ng-co...
import { Component, ElementRef, Input, Renderer2, ViewChild, ViewEncapsulation, } from '@angular/core'; import { toBoolean } from '../common/boolean-property'; @Component({ selector: '[mdc-list-divider], mdc-list-divider', template: `<div #divider class="mdc-list-divider" role="seperator"></div>`, ...
Simplify html template for list divider
refactor(list): Simplify html template for list divider
TypeScript
mit
trimox/angular-mdc-web,trimox/angular-mdc-web
--- +++ @@ -11,10 +11,7 @@ @Component({ selector: '[mdc-list-divider], mdc-list-divider', template: - `<div #divider class="mdc-list-divider" role="seperator"> - <ng-content></ng-content> - </div> - `, + `<div #divider class="mdc-list-divider" role="seperator"></div>`, encapsulation: ViewEncapsulati...
5943a3f32bf6779c36dc611c5ec2bd2140e46f10
src/middleware/index.ts
src/middleware/index.ts
export { default as matchTestFiles } from "./matchTestFiles"; export { default as globals } from "./globals"; export { default as specSyntax } from "./specSyntax"; export { default as suiteSyntax } from "./suiteSyntax"; export { default as runner } from "./runner"; export { default as resultsReporter } from "./resultsR...
export { default as matchTestFiles } from "./matchTestFiles"; export { default as globals } from "./globals"; export { default as specSyntax } from "./specSyntax"; export { default as suiteSyntax } from "./suiteSyntax"; export { default as runner } from "./runner"; export { default as resultsReporter } from "./resultsR...
Add tapReporter to package export
Add tapReporter to package export
TypeScript
mit
testingrequired/tf,testingrequired/tf
--- +++ @@ -6,6 +6,7 @@ export { default as resultsReporter } from "./resultsReporter"; export { default as tableReporter } from "./tableReporter"; export { default as dotReporter } from "./dotReporter"; +export { default as tapReporter } from "./tapReporter"; export { default as setupReporter } from "./setupRepo...
4b74dfb769633072c1bd7a3f7bdf4571535790b9
console/src/app/core/services/monitoring-api/MongooseApi.model.ts
console/src/app/core/services/monitoring-api/MongooseApi.model.ts
export namespace MongooseApi { export class RunApi { public static readonly RUN = "/run"; } export class LogsApi { public static readonly LOGS = "/logs"; } }
// A class that describes endpoints for Mongoose API. // See Mongoose API (as for 27.03.2019): ... // ... https://github.com/emc-mongoose/mongoose-base/tree/master/doc/interfaces/api/remote export namespace MongooseApi { export class RunApi { public static readonly RUN = "/run"; } export class...
Add link to Mongoose API.
Add link to Mongoose API.
TypeScript
mit
emc-mongoose/console,emc-mongoose/console,emc-mongoose/console
--- +++ @@ -1,4 +1,9 @@ +// A class that describes endpoints for Mongoose API. +// See Mongoose API (as for 27.03.2019): ... +// ... https://github.com/emc-mongoose/mongoose-base/tree/master/doc/interfaces/api/remote + export namespace MongooseApi { + export class RunApi { public static readonly RUN...
c76fdd2026edbfc0b565b0f73e24aa0c9a61171b
docs/src/global.css.ts
docs/src/global.css.ts
export default { body: { margin: "0", }, };
export default { body: { margin: "0", /* Support for all WebKit browsers. */ WebkitFontSmoothing: "antialiased", /* Support for Firefox. */ MozOsxFontSmoothing: "grayscale", }, };
Add font smoothing to docs
Add font smoothing to docs
TypeScript
mit
wikiwi/react-css-transition,wikiwi/react-css-transition
--- +++ @@ -1,5 +1,10 @@ export default { body: { margin: "0", + + /* Support for all WebKit browsers. */ + WebkitFontSmoothing: "antialiased", + /* Support for Firefox. */ + MozOsxFontSmoothing: "grayscale", }, };
061b3b7cb068a9928e18aedf696956a8231ef1c0
templates/app/src/_name.ts
templates/app/src/_name.ts
import * as angular from 'angular'; import { <%= pAppName %>Config } from './<%= hAppName %>.config'; import { <%= pAppName %>Run } from './<%= hAppName %>.run'; import { ServicesModule } from './services/services.module'; angular.module('<%= appName %>', [ // Uncomment to use your app templates. // '<%= appNa...
import * as angular from 'angular'; import { <%= pAppName %>Config } from './<%= hAppName %>.config'; import { <%= pAppName %>Run } from './<%= hAppName %>.run'; import { ServicesModule } from './services/services.module'; angular .module('<%= appName %>', [ // Uncomment to use your app templates. ...
Adjust formating for entry module
Adjust formating for entry module
TypeScript
mit
Kurtz1993/ngts-cli,Kurtz1993/ngts-cli,Kurtz1993/ngts-cli
--- +++ @@ -3,11 +3,12 @@ import { <%= pAppName %>Run } from './<%= hAppName %>.run'; import { ServicesModule } from './services/services.module'; -angular.module('<%= appName %>', [ - // Uncomment to use your app templates. - // '<%= appName %>.tpls', - 'ui.router', - ServicesModule -]) -.config(<%= ...
587e038831a107c6013e3e48237eb94b7388aeb3
generators/init-app/templates/sample_plain/src/index.ts
generators/init-app/templates/sample_plain/src/index.ts
/** * Created by Caleydo Team on 31.08.2016. */ import 'file-loader?name=index.html!extract-loader!html-loader?interpolate!./index.html'; import 'file-loader?name=404.html-loader!./404.html'; import 'file-loader?name=robots.txt!./robots.txt'; import 'phovea_ui/src/_bootstrap'; import './style.scss'; import {create a...
/** * Created by Caleydo Team on 31.08.2016. */ import 'file-loader?name=index.html!extract-loader!html-loader?interpolate!./index.html'; import 'file-loader?name=404.html!./404.html'; import 'file-loader?name=robots.txt!./robots.txt'; import 'phovea_ui/src/_bootstrap'; import './style.scss'; import {create as creat...
Fix 404.html import in app template
Fix 404.html import in app template
TypeScript
bsd-3-clause
phovea/generator-phovea,phovea/generator-phovea,phovea/generator-phovea,phovea/generator-phovea,phovea/generator-phovea
--- +++ @@ -3,7 +3,7 @@ */ import 'file-loader?name=index.html!extract-loader!html-loader?interpolate!./index.html'; -import 'file-loader?name=404.html-loader!./404.html'; +import 'file-loader?name=404.html!./404.html'; import 'file-loader?name=robots.txt!./robots.txt'; import 'phovea_ui/src/_bootstrap'; impo...
6d5e21db305efbf31b9f888cf4168c2c4a90dd74
src/Entities/Spawner.ts
src/Entities/Spawner.ts
import Entity, {EntityState, EntityStateOptions} from "../Engine/Entity" /** * Spawns stuff. */ export default class Spawner extends Entity { static type = "Nanoshooter/Entities/Spawner" private mesh: BABYLON.Mesh private keybindCallback protected initialize() { this.keybindCallback = (e...
import Entity, {EntityState, EntityStateOptions} from "../Engine/Entity" /** * Spawns stuff. */ export default class Spawner extends Entity { static type = "Nanoshooter/Entities/Spawner" private mesh: BABYLON.Mesh private keyupAction: (event: KeyboardEvent) => void protected initialize() { ...
Tweak spawner semantics slightly for almost no reason.
Tweak spawner semantics slightly for almost no reason.
TypeScript
mit
ChaseMoskal/Nanoshooter,ChaseMoskal/Nanoshooter
--- +++ @@ -10,10 +10,10 @@ private mesh: BABYLON.Mesh - private keybindCallback + private keyupAction: (event: KeyboardEvent) => void protected initialize() { - this.keybindCallback = (event: KeyboardEvent) => { + this.keyupAction = (event: KeyboardEvent) => { if (eve...
4670f02918f700aa375e69ddb3624602a6e5e4e1
A2/quickstart/src/app/components/app-custom/app.custom.component.ts
A2/quickstart/src/app/components/app-custom/app.custom.component.ts
import { Component } from "@angular/core"; import { RacePart } from "../../models/race-part.model"; import { RACE_PARTS } from "../../models/mocks"; @Component({ selector: "my-app-custom-component", templateUrl: "./app/components/app-custom/app.custom.component.html", styleUrls: [ "./app/components/app-custom/ap...
import { Component } from "@angular/core"; import { RacePart } from "../../models/race-part.model"; import { RACE_PARTS } from "../../models/mocks"; @Component({ selector: "my-app-custom-component", templateUrl: "./app/components/app-custom/app.custom.component.html", styleUrls: [ "./app/components/app-custom/ap...
Add cash key. Add totalCost, cashLeft methods
Add cash key. Add totalCost, cashLeft methods
TypeScript
mit
var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training
--- +++ @@ -11,6 +11,7 @@ export class AppCustomComponent { title = "Ultra Racing Schedule"; races: RacePart[]; + cash = 10000; getDate(currentDate: Date) { return currentDate; @@ -19,4 +20,20 @@ ngOnInit() { this.races = RACE_PARTS; }; + + totalCost() { + let sum = 0; + + for (let...
ca921ef955ee1c80f8d521bd14af0fdafbb250c9
wegas-app/src/main/webapp/2/src/Editor/EntitiesConfig/QuestionInstance.ts
wegas-app/src/main/webapp/2/src/Editor/EntitiesConfig/QuestionInstance.ts
import { ConfigurationSchema } from '../editionConfig'; import { config as variableInstanceConfig } from './VariableInstance'; export const config: ConfigurationSchema<IQuestionInstance> = { ...variableInstanceConfig, active: { type: 'boolean', view: { label: 'Active' }, }, validated: { type: 'boole...
import { ConfigurationSchema } from '../editionConfig'; import { config as variableInstanceConfig } from './VariableInstance'; export const config: ConfigurationSchema<IQuestionInstance> = { ...variableInstanceConfig, '@class': { type: 'string', value: 'QuestionInstance', view: { type: 'hidden' }, }, ...
Fix missing instance from questions
Fix missing instance from questions
TypeScript
mit
Heigvd/Wegas,Heigvd/Wegas,Heigvd/Wegas,Heigvd/Wegas,Heigvd/Wegas
--- +++ @@ -2,6 +2,11 @@ import { config as variableInstanceConfig } from './VariableInstance'; export const config: ConfigurationSchema<IQuestionInstance> = { ...variableInstanceConfig, + '@class': { + type: 'string', + value: 'QuestionInstance', + view: { type: 'hidden' }, + }, active: { typ...
2de88ea3ad992097563f449ed5dc0a8c6fdcfdc4
src/components/App.tsx
src/components/App.tsx
import * as React from 'react'; import { Page, Tabs, Stack, Banner } from '@shopify/polaris'; import { HitMap, RequesterMap, SearchOptions } from '../types'; import HitTable from './HitTable/HitTable'; import Search from '../containers/Search'; import { tabs } from '../utils/tabs'; export interface Props { readonly ...
import * as React from 'react'; import { Page, Tabs, Stack, Banner } from '@shopify/polaris'; import { HitMap, RequesterMap, SearchOptions } from '../types'; import HitTable from './HitTable/HitTable'; import Search from '../containers/Search'; import { tabs } from '../utils/tabs'; export interface Props { readonly ...
Add padding between search form and hit table.
Add padding between search form and hit table.
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
--- +++ @@ -30,12 +30,14 @@ <Stack vertical> <Banner status="info">Scanned {hits.size} hits.</Banner> <Tabs selected={selected} tabs={tabs} onSelect={onSelectTab}> - <Search /> - <HitTable - hits={hits} - requesters={requesters} - ...
c9e5c8a42ceb67787d060b8bc1e0235214c70891
src/bin/typings-list.ts
src/bin/typings-list.ts
#!/usr/bin/env node import minimist = require('minimist') import extend = require('xtend') import { loader, archifyDependencyTree } from '../utils/cli' import { PROJECT_NAME } from '../utils/config' import { resolveTypeDependencies } from '../lib/dependencies' interface Args { verbose: boolean help: boolean amb...
#!/usr/bin/env node import minimist = require('minimist') import extend = require('xtend') import { loader, archifyDependencyTree } from '../utils/cli' import { PROJECT_NAME } from '../utils/config' import { resolveTypeDependencies } from '../lib/dependencies' interface Args { verbose: boolean help: boolean amb...
Add `production` flag to `ls`
Add `production` flag to `ls`
TypeScript
mit
typings/typings,typings/typings
--- +++ @@ -10,10 +10,11 @@ verbose: boolean help: boolean ambient: boolean + production: boolean } const args = minimist<Args>(process.argv.slice(2), { - boolean: ['verbose', 'help', 'ambient'], + boolean: ['verbose', 'help', 'ambient', 'production'], alias: { verbose: ['v'], ambient: ['...
80cad23dd09235470e80fdeb48db67b9bdd3b29b
arity.d.ts
arity.d.ts
declare function arity (arity: number, fn: Function): Function; export = arity;
declare function arity (arity: number, fn: (...args: any[]) => any): (...args: any[]) => any; export = arity;
Use function signatures with typings
Use function signatures with typings
TypeScript
mit
blakeembrey/arity
--- +++ @@ -1,3 +1,3 @@ -declare function arity (arity: number, fn: Function): Function; +declare function arity (arity: number, fn: (...args: any[]) => any): (...args: any[]) => any; export = arity;
807b8248fe41002632becb84277fe361d1f44972
packages/components/containers/calendar/shareURL/EditLinkModal.tsx
packages/components/containers/calendar/shareURL/EditLinkModal.tsx
import React, { useState } from 'react'; import { Nullable } from 'proton-shared/lib/interfaces/utils'; import { c } from 'ttag'; import { Alert, FormModal, Input } from '../../../components'; import { useLoading } from '../../../hooks'; interface Props { decryptedPurpose: Nullable<string>; onClose: () => voi...
import React, { useState } from 'react'; import { Nullable } from 'proton-shared/lib/interfaces/utils'; import { c } from 'ttag'; import { Alert, FormModal, Input } from '../../../components'; import { useLoading } from '../../../hooks'; interface Props { decryptedPurpose: Nullable<string>; onClose: () => voi...
Fix modal heading copy capitalization
Fix modal heading copy capitalization
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -22,7 +22,7 @@ return ( <FormModal - title={decryptedPurpose ? c('Info').t`Edit Label` : c('Info').t`Add Label`} + title={decryptedPurpose ? c('Info').t`Edit label` : c('Info').t`Add label`} onSubmit={() => withLoading(handleSubmit())} submit=...
b3fbdeff4ad2f343ed3244e6223c7ba676989f53
src/idbStorage.ts
src/idbStorage.ts
import { openDB, type IDBPDatabase } from 'idb'; export async function getDB() { const db = await openDB('pokeapi.js', 1, { async upgrade(db) { const objectStore = db.createObjectStore('cachedResources', { keyPath: 'cacheKey', }); objectStore.createIndex('whenCached', 'whenCached', { ...
import { openDB, type IDBPDatabase, type DBSchema } from 'idb'; interface CacheDBSchema extends DBSchema { cachedResources: { key: string; value: { cacheKey: string; whenCached: number; data: string; }; indexes: { whenCached: number } }; } export async function getDB() ...
Add more strict types to DB methods
Add more strict types to DB methods
TypeScript
apache-2.0
16patsle/pokeapi.js,16patsle/pokeapi.js
--- +++ @@ -1,7 +1,21 @@ -import { openDB, type IDBPDatabase } from 'idb'; +import { openDB, type IDBPDatabase, type DBSchema } from 'idb'; + +interface CacheDBSchema extends DBSchema { + cachedResources: { + key: string; + value: { + cacheKey: string; + whenCached: number; + data: string; + ...
c7ca44a26878157abec91fc7989239c14117382e
test/ts/basics.ts
test/ts/basics.ts
import Cron from "croner"; // Test basic const test1 : Cron = new Cron("* * * * * *", () => { console.log("This will run every second."); }); // With options const test2 : Cron = new Cron("* * * * * *", { timezone: "Europe/Stockholm"}, () => { console.log("This will run every second."); }); // ISO string with opti...
import Cron from "../../"; // Test basic const test1 : Cron = new Cron("* * * * * *", () => { console.log("This will run every second."); }); // With options const test2 : Cron = new Cron("* * * * * *", { timezone: "Europe/Stockholm"}, () => { console.log("This will run every second."); }); // ISO string with opti...
Fix ts test self include
Fix ts test self include
TypeScript
mit
Hexagon/croner,Hexagon/croner
--- +++ @@ -1,4 +1,4 @@ -import Cron from "croner"; +import Cron from "../../"; // Test basic const test1 : Cron = new Cron("* * * * * *", () => {
0cd18df0b6d8a1109592efe1a535c5bafa0ca5bc
tools/env/test.ts
tools/env/test.ts
import {EnvConfig} from './env-config.interface'; const TestConfig: EnvConfig = { ENV: 'TEST', API: 'http://localhost:3000/api/n/songs' }; export = TestConfig;
import {EnvConfig} from './env-config.interface'; const TestConfig: EnvConfig = { ENV: 'TEST', API: 'http://localhost:3000/api/n/songs' // API: 'http://localhost:8080/namesandsongs/api/song' }; export = TestConfig;
Add path to java backend
Add path to java backend
TypeScript
mit
rweekers/voornameninliedjes-frontend,rweekers/voornameninliedjes-frontend
--- +++ @@ -3,6 +3,7 @@ const TestConfig: EnvConfig = { ENV: 'TEST', API: 'http://localhost:3000/api/n/songs' + // API: 'http://localhost:8080/namesandsongs/api/song' }; export = TestConfig;
a314254dca646c1108221b1a611a84e39b84943d
view/dom/dom.ts
view/dom/dom.ts
declare class WeakMap< Key , Value > { get( key : Key ) : Value set( key : Key , value : Value ) : this } namespace $ { export class $mol_view_dom extends $mol_object { static nodes = new ( WeakMap || $mol_dict )< $mol_view , Element >() static node( view : $mol_view ) { let node = $mol_view_dom.node...
declare class WeakMap< Key , Value > { get( key : Key ) : Value set( key : Key , value : Value ) : this } namespace $ { export class $mol_view_dom extends $mol_object { static nodes = new ( WeakMap || $mol_dict )< $mol_view , Element >() static node( view : $mol_view ) { let node = $mol_view_dom.node...
Disable atom task wrapping of all event handlers.
Disable atom task wrapping of all event handlers.
TypeScript
mit
nin-jin/mol,eigenmethod/mol,nin-jin/mol,eigenmethod/mol,nin-jin/mol,eigenmethod/mol
--- +++ @@ -30,7 +30,7 @@ node , { id : view.toString() , attributes : view.attr_static() , - events : view.event_wrapped() , + events : view.event() , } ) @@ -39,7 +39,7 @@ $mol_dom_render( node , { attributes : plugin.attr_static() , - events : plugin.ev...
7f61513fed2b3dd2e653c76743fce4afa526dc24
src/datastore/constraint.ts
src/datastore/constraint.ts
export interface Constraint { value: string|string[]; type: string; // add | subtract } /** * Companion object */ export class Constraint { public static convertTo(constraint: Constraint|string|string[]): Constraint { return (Array.isArray(constraint) || typeof(constraint) == 'string') ...
export interface Constraint { value: string|string[]; type: string; // add | subtract searchRecursively?: boolean; } export class Constraint { public static convertTo(constraint: Constraint|string|string[]): Constraint { return (Array.isArray(constraint) || typeof(constraint) == 'string')...
Extend Contraint with searchRecursively boolean
Extend Contraint with searchRecursively boolean
TypeScript
apache-2.0
dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2
--- +++ @@ -1,18 +1,17 @@ export interface Constraint { + value: string|string[]; type: string; // add | subtract + searchRecursively?: boolean; } -/** - * Companion object - */ export class Constraint { public static convertTo(constraint: Constraint|string|string[]): Constraint { ...
d176a11222e1d650c848704c4c30d50ef3799f3c
modules/effects/src/actions.ts
modules/effects/src/actions.ts
import { Injectable, Inject } from '@angular/core'; import { Action, ScannedActionsSubject } from '@ngrx/store'; import { Observable } from 'rxjs/Observable'; import { Operator } from 'rxjs/Operator'; import { filter } from 'rxjs/operator/filter'; @Injectable() export class Actions<V = Action> extends Observable<V> { ...
import { Injectable, Inject } from '@angular/core'; import { Action, ScannedActionsSubject } from '@ngrx/store'; import { Observable } from 'rxjs/Observable'; import { Operator } from 'rxjs/Operator'; import { filter } from 'rxjs/operator/filter'; @Injectable() export class Actions<V = Action> extends Observable<V> { ...
Use Actions generic type for the return of the ofType operator
fix(Effects): Use Actions generic type for the return of the ofType operator
TypeScript
mit
brandonroberts/platform,brandonroberts/platform,brandonroberts/platform,brandonroberts/platform
--- +++ @@ -21,7 +21,7 @@ return observable; } - ofType(...allowedTypes: string[]): Actions { + ofType(...allowedTypes: string[]): Actions<V> { return filter.call(this, (action: Action) => allowedTypes.some(type => type === action.type), );
244682c2b385fc94d316c31a3fa7a77b3aeb324d
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.10.0', RELEASEVERSION: '0.10.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.11.0', RELEASEVERSION: '0.11.0' }; export = BaseConfig;
Update release version to 0.11.0.
Update release version to 0.11.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.10.0', - RELEASEVERSION: '0.10.0' + RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.11.0', + RELEASEVERSION: '0.11...
a30f15021b73cee8e4b12dafb114798533f4e2f4
src/user/UsersService.ts
src/user/UsersService.ts
import { getFirst } from '@waldur/core/api'; import { $rootScope, ENV, $q } from '@waldur/core/services'; class UsersServiceClass { public currentUser; setCurrentUser(user) { // TODO: Migrate to Redux and make code DRY this.currentUser = user; return $rootScope.$broadcast('CURRENT_USER_UPDATED', { use...
import { getFirst, getById, patch } from '@waldur/core/api'; import { $rootScope, ENV, $q } from '@waldur/core/services'; class UsersServiceClass { public currentUser; get(userId) { return $q.when(getById('/users/', userId)); } update(user) { return $q.when(patch(`/users/${user.uuid}/`, user)); } ...
Add missing methods to users service.
Add missing methods to users service.
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -1,8 +1,16 @@ -import { getFirst } from '@waldur/core/api'; +import { getFirst, getById, patch } from '@waldur/core/api'; import { $rootScope, ENV, $q } from '@waldur/core/services'; class UsersServiceClass { public currentUser; + + get(userId) { + return $q.when(getById('/users/', userId)); + ...
bb396ca1ac6843cec22ad2310b2575fe63eac959
src/main/io/settings-io.ts
src/main/io/settings-io.ts
// Copyright 2016 underdolphin(masato sueda) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless require...
// Copyright 2016 underdolphin(masato sueda) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless require...
Change references to Settings Schema
Change references to Settings Schema
TypeScript
apache-2.0
underdolphin/SoundRebuild,underdolphin/SoundRebuild,underdolphin/SoundRebuild
--- +++ @@ -13,7 +13,7 @@ // limitations under the License. import * as fs from 'fs'; -import SettingsSchema = Schemas.Settings; +import {SettingsSchema} from '../../schemas/settings-schema'; export class Settings { public defaultReader() {
31bab7edb0fdb6fd1598294a6dac637e6191cc43
app/src/ui/dialog/error.tsx
app/src/ui/dialog/error.tsx
import * as React from 'react' import * as classNames from 'classnames' import { Octicon, OcticonSymbol } from '../octicons' interface IDialogErrorProps { readonly className?: string } /** * A component used for displaying short error messages inline * in a dialog. These error messages (there can be more than one...
import * as React from 'react' import * as classNames from 'classnames' import { Octicon, OcticonSymbol } from '../octicons' interface IDialogErrorProps {} /** * A component used for displaying short error messages inline * in a dialog. These error messages (there can be more than one) * should be rendered as the ...
Revert "Let DialogErrors have custom class names"
Revert "Let DialogErrors have custom class names" This reverts commit b9068f8e60f7b9d24097b5d3c0c495f5bba73f99.
TypeScript
mit
kactus-io/kactus,j-f1/forked-desktop,shiftkey/desktop,shiftkey/desktop,shiftkey/desktop,kactus-io/kactus,say25/desktop,artivilla/desktop,j-f1/forked-desktop,desktop/desktop,shiftkey/desktop,desktop/desktop,kactus-io/kactus,artivilla/desktop,desktop/desktop,kactus-io/kactus,say25/desktop,artivilla/desktop,j-f1/forked-de...
--- +++ @@ -2,9 +2,7 @@ import * as classNames from 'classnames' import { Octicon, OcticonSymbol } from '../octicons' -interface IDialogErrorProps { - readonly className?: string -} +interface IDialogErrorProps {} /** * A component used for displaying short error messages inline @@ -19,9 +17,8 @@ */ expo...
9e39b09203e25ee391783329ffa9eb442c248784
src/config/environment.dev.ts
src/config/environment.dev.ts
import { LanguageType } from 'store/reducers/locale/langugeType' export const environment = { firebase: { apiKey: 'AIzaSyDzFdZteXViq65uzFp4sAmesXk43uW_VfU', authDomain: 'react-social-86ea9.firebaseapp.com', databaseURL: 'https://react-social-86ea9.firebaseio.com', projectId: 'react-soc...
import { LanguageType } from 'store/reducers/locale/langugeType' export const environment = { firebase: { apiKey: 'AIzaSyAHOZ7rWGDODCwJMB3WIt63CAIa90qI-jg', authDomain: 'test-4515a.firebaseapp.com', databaseURL: 'https://test-4515a.firebaseio.com', projectId: 'test-4515a', storageBucket: ...
Revert back to original settings
Revert back to original settings
TypeScript
mit
Qolzam/react-social-network,Qolzam/react-social-network,Qolzam/react-social-network
--- +++ @@ -2,16 +2,15 @@ export const environment = { firebase: { - apiKey: 'AIzaSyDzFdZteXViq65uzFp4sAmesXk43uW_VfU', - authDomain: 'react-social-86ea9.firebaseapp.com', - databaseURL: 'https://react-social-86ea9.firebaseio.com', - projectId: 'react-social-86ea9', - storageBucket: 're...
f452e806b7bb1e8d776f95b8531cb598841e3bd0
src/rest-api/trainer/trainerMockData.ts
src/rest-api/trainer/trainerMockData.ts
import {EditTrainingSummary} from '../../model/editTrainingSummary'; export const trainingContentMockData: EditTrainingSummary[] = [ { id: 1, content: 'This is a test markdown sample using # H1', }, { id: 2, content: 'This is a test markdown sample using a **bold text**', }, ];
import {EditTrainingSummary} from '../../model/editTrainingSummary'; export const trainingContentMockData: EditTrainingSummary[] = [ { id: 1, content: ` ## Login ![login](https://raw.githubusercontent.com/wiki/MasterLemon2016/LeanMood/blob/leLogin.png) ## Lecturers trainings ![trainings](https://github.co...
Replace mock training content by big one readme
Replace mock training content by big one readme
TypeScript
mit
MasterLemon2016/LeanMood,Lemoncode/LeanMood,Lemoncode/LeanMood,Lemoncode/LeanMood,MasterLemon2016/LeanMood,MasterLemon2016/LeanMood
--- +++ @@ -3,7 +3,48 @@ export const trainingContentMockData: EditTrainingSummary[] = [ { id: 1, - content: 'This is a test markdown sample using # H1', + content: ` +## Login + +![login](https://raw.githubusercontent.com/wiki/MasterLemon2016/LeanMood/blob/leLogin.png) + +## Lecturers trainings + +![t...
e99f2bcd8b3c091af57aeaf615c7cfff39c02f43
src/ui/components/Link.tsx
src/ui/components/Link.tsx
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import styled from 'react-emotion'; import {colors} from './colors'; import {Component} from 'react'; import {shell}...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import styled from 'react-emotion'; import {colors} from './colors'; import {Component} from 'react'; import {shell}...
Apply styling to support details form
Apply styling to support details form Summary: Applies some additional styling to the support details form, and implemented the screenshot / video styling. Probably needs some more fixes in the future, once we have a real report to import :) Reviewed By: jknoxville Differential Revision: D18658388 fbshipit-source-...
TypeScript
mit
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
--- +++ @@ -32,7 +32,9 @@ render() { return ( - <StyledLink onClick={this.onClick}>{this.props.children}</StyledLink> + <StyledLink onClick={this.onClick}> + {this.props.children || this.props.href} + </StyledLink> ); } }