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
90b7936ccf1d60d8f4b9fda0cf035ef42fac6678
app/src/ui/lib/avatar.tsx
app/src/ui/lib/avatar.tsx
import * as React from 'react' const DefaultAvatarURL = 'https://github.com/hubot.png' /** The minimum properties we need in order to display a user's avatar. */ export interface IAvatarUser { /** The user's email. */ readonly email: string /** The user's avatar URL. */ readonly avatarURL: string } interfac...
import * as React from 'react' const DefaultAvatarURL = 'https://github.com/hubot.png' /** The minimum properties we need in order to display a user's avatar. */ export interface IAvatarUser { /** The user's email. */ readonly email: string /** The user's avatar URL. */ readonly avatarURL: string /** The ...
Include the name in the title
Include the name in the title
TypeScript
mit
shiftkey/desktop,hjobrien/desktop,gengjiawen/desktop,BugTesterTest/desktops,kactus-io/kactus,BugTesterTest/desktops,desktop/desktop,gengjiawen/desktop,desktop/desktop,BugTesterTest/desktops,hjobrien/desktop,say25/desktop,hjobrien/desktop,kactus-io/kactus,j-f1/forked-desktop,artivilla/desktop,artivilla/desktop,artivilla...
--- +++ @@ -9,6 +9,9 @@ /** The user's avatar URL. */ readonly avatarURL: string + + /** The user's name. */ + readonly name: string } interface IAvatarProps { @@ -26,8 +29,14 @@ return this.props.title } - if (this.props.user) { - return this.props.user.email + const user = thi...
6f7fcb1775ea77b79447dc874cf7e699dbc1089b
src/IUserApp.d.ts
src/IUserApp.d.ts
import { IUser } from './IUser'; export interface IUserApp { save(user: IUser): Promise<IUser>; find(query: any, options: { limit: number }): Promise<IUser[]>; authenticateUser(userNameOrEmail: string, password: string): Promise<IUser>; getAuthToken(userNameOrEmail: string, password: string): Promise<...
import { IUser, IUserArgs } from './IUser'; export interface IUserApp { save(user: IUserArgs): Promise<IUser>; find(query: any, options: { limit: number }): Promise<IUser[]>; authenticateUser(userNameOrEmail: string, password: string): Promise<IUser>; getAuthToken(userNameOrEmail: string, password: st...
Change IUserApp.save param from IUser to IUser
Change IUserApp.save param from IUser to IUser
TypeScript
mit
polutz/ptz-user-domain
--- +++ @@ -1,7 +1,7 @@ -import { IUser } from './IUser'; +import { IUser, IUserArgs } from './IUser'; export interface IUserApp { - save(user: IUser): Promise<IUser>; + save(user: IUserArgs): Promise<IUser>; find(query: any, options: { limit: number }): Promise<IUser[]>; authenticateUser(userNam...
019525b3d048a31cabd346e7df70cbf17824fdc5
front/src/app/app.component.ts
front/src/app/app.component.ts
/* * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,...
/* * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,...
Test consuming ng-http-loader/pendingRequestsStatus observable outside its own module
Test consuming ng-http-loader/pendingRequestsStatus observable outside its own module
TypeScript
mit
mpalourdio/SpringBootAngularHTML5,mpalourdio/SpringBootAngularHTML5,mpalourdio/SpringBootAngularHTML5,mpalourdio/SpringBootAngularHTML5
--- +++ @@ -9,6 +9,7 @@ import { Component } from '@angular/core'; import { Spinkit } from 'ng-http-loader/spinkits'; +import { PendingInterceptorService } from 'ng-http-loader/pending-interceptor.service'; @Component({ selector: 'app-root', @@ -17,4 +18,12 @@ }) export class AppComponent { public ...
f2c0b268912c081cb2452f632b05093d4a2cc92c
app/renderer/createLogger.ts
app/renderer/createLogger.ts
// tslint:disable-next-line no-implicit-dependencies import { ipcRenderer } from "electron"; import * as toastify from "react-toastify"; import Logger, { ILoggerObj, IMessage } from "../common/Logger"; export default (loggerObj: ILoggerObj): Logger => { const logger = Logger.fromObj(loggerObj); logger.addGlobalL...
// tslint:disable-next-line no-implicit-dependencies import { ipcRenderer } from "electron"; import * as toastify from "react-toastify"; import Logger, { ILoggerObj, IMessage } from "../common/Logger"; export default (loggerObj: ILoggerObj): Logger => { const logger = Logger.fromObj(loggerObj); logger.addGlobalL...
Fix warnings not working with toastify
Fix warnings not working with toastify
TypeScript
mit
ocboogie/action-hub,ocboogie/action-hub,ocboogie/action-hub
--- +++ @@ -15,7 +15,7 @@ ? ". Look at the console for more info ctrl+shift+i" : ""), { - type: category as toastify.ToastType + type: (category === "warn" ? "warning" : category) as toastify.ToastType } ); ipcRenderer.send("clean-history");
bd002d93c9ab291018d333eaae61d066096fcce6
src/cmds/dev/watch.cmd.ts
src/cmds/dev/watch.cmd.ts
import { config, run } from '../../common'; import * as syncWatch from './sync-watch.cmd'; export const group = 'dev'; export const name = 'watch'; export const alias = 'w'; export const description = 'Starts `build:watch` and `sync:watch` in tabs.'; export function cmd() { syncWatch.cmd(); run.execInNewTab(`${co...
import { config, run } from '../../common'; import * as syncWatch from './sync-watch.cmd'; export const group = 'dev'; export const name = 'watch'; export const alias = 'w'; export const description = 'Starts `build:watch` and `sync:watch` in tabs.'; export function cmd() { run.execInNewTab(`${config.SCRIPT_PREFIX...
Update watch command to run syncer in new tab
Update watch command to run syncer in new tab
TypeScript
mit
frederickfogerty/js-cli,frederickfogerty/js-cli,frederickfogerty/js-cli
--- +++ @@ -9,8 +9,6 @@ export function cmd() { - syncWatch.cmd(); + run.execInNewTab(`${config.SCRIPT_PREFIX} sync:watch`); run.execInNewTab(`${config.SCRIPT_PREFIX} build:watch`); } - -;
8d32ec09e33cb833ada36b6004657a024ef32eef
src/input.ts
src/input.ts
import {LEAN_MODE} from './constants' import * as vscode from 'vscode' import {CompletionItemProvider,TextDocument,Position,CancellationToken,CompletionItem,CompletionItemKind,CompletionList,Range} from 'vscode' export class LeanInputCompletionProvider implements CompletionItemProvider { translations: any; pu...
import {LEAN_MODE} from './constants' import * as vscode from 'vscode' import {CompletionItemProvider,TextDocument,Position,CancellationToken,CompletionItem,CompletionItemKind,CompletionList,Range} from 'vscode' export class LeanInputCompletionProvider implements CompletionItemProvider { translations: any; pu...
Complete notation only when prefixed by '\'
Complete notation only when prefixed by '\'
TypeScript
apache-2.0
leanprover/vscode-lean,leanprover/vscode-lean,leanprover/vscode-lean
--- +++ @@ -10,6 +10,13 @@ } public provideCompletionItems(document: TextDocument, position: Position, token: CancellationToken): CompletionList { + const text = document.getText(); + let offset = document.offsetAt(position); + do { + offset--; + } while (/[^\\\s]/.t...
a57a4d755665d3a8046da50bd66e9237201a4143
packages/runtime/src/decorators/response.ts
packages/runtime/src/decorators/response.ts
export function SuccessResponse(name: string | number, description?: string): Function; export function SuccessResponse<T>(name: string | number, description?: string): Function; export function SuccessResponse<T>(name: string | number, description?: string): Function { return () => { return; }; } export fun...
export function SuccessResponse<HeaderType = {}>(name: string | number, description?: string): Function { return () => { return; }; } export function Response<ExampleType, HeaderType = {}>(name: string | number, description?: string, example?: ExampleType): Function { return () => { return; }; } /** ...
Edit decorator generic type more readable
chore: Edit decorator generic type more readable Remove optional overrloading for SuccessResponse & Response type. Edit SuccessResponse & Response type's generic type more readable.
TypeScript
mit
andreasrueedlinger/tsoa,andreasrueedlinger/tsoa,lukeautry/tsoa,lukeautry/tsoa
--- +++ @@ -1,22 +1,10 @@ -export function SuccessResponse(name: string | number, description?: string): Function; - -export function SuccessResponse<T>(name: string | number, description?: string): Function; - -export function SuccessResponse<T>(name: string | number, description?: string): Function { +export functi...
604e1a1da21d44625f094b39a6a3315e4ffaf4f4
mkpath/mkpath-tests.ts
mkpath/mkpath-tests.ts
/// <reference path="mkpath.d.ts" /> import mkpath = require('mkpath'); mkpath('red/green/violet', function (err) { if (err) throw err; console.log('Directory structure red/green/violet created'); }); mkpath.sync('/tmp/blue/orange', 700);
/// <reference path="mkpath.d.ts" /> import mkpath = require('mkpath'); mkpath('red/green/violet', function (err) { if (err) throw err; console.log('Directory structure red/green/violet created'); }); mkpath.sync('/tmp/blue/orange', 700);
Add newline at end of file
Add newline at end of file
TypeScript
mit
benliddicott/DefinitelyTyped,Litee/DefinitelyTyped,gorcz/DefinitelyTyped,mcrawshaw/DefinitelyTyped,nfriend/DefinitelyTyped,arusakov/DefinitelyTyped,robertbaker/DefinitelyTyped,zuzusik/DefinitelyTyped,xica/DefinitelyTyped,goaty92/DefinitelyTyped,brainded/DefinitelyTyped,mszczepaniak/DefinitelyTyped,MarlonFan/DefinitelyT...
33fc14676d09ed7a30dbc3a2968fe5674245136b
src/components/editor/editor.component.ts
src/components/editor/editor.component.ts
import {Component, OnInit, OnDestroy, ElementRef, ViewChild, EventEmitter, Output, Input} from '@angular/core'; import Editor = AceAjax.Editor; (<any>ace).config.set("basePath", "/dist"); @Component({ selector: 'editor', template: `` }) export class EditorComponent implements OnInit, OnDestroy { private ...
import {Component, OnInit, OnDestroy, ElementRef, ViewChild, EventEmitter, Output, Input} from '@angular/core'; import Editor = AceAjax.Editor; (<any>ace).config.set("basePath", "./dist"); @Component({ selector: 'editor', template: `` }) export class EditorComponent implements OnInit, OnDestroy { private...
Fix 404 worker-javascript.js for GitHub pages
Fix 404 worker-javascript.js for GitHub pages
TypeScript
mit
kryops/jsbb,kryops/jsbb,kryops/jsbb
--- +++ @@ -1,7 +1,7 @@ import {Component, OnInit, OnDestroy, ElementRef, ViewChild, EventEmitter, Output, Input} from '@angular/core'; import Editor = AceAjax.Editor; -(<any>ace).config.set("basePath", "/dist"); +(<any>ace).config.set("basePath", "./dist"); @Component({ selector: 'editor',
28685a8761336e85c54633205eba0e3addcd2468
demo/34-floating-tables.ts
demo/34-floating-tables.ts
// Example of how you would create a table with float positions // Import from 'docx' rather than '../build' if you install from npm import * as fs from "fs"; import { Document, OverlapType, Packer, Paragraph, RelativeHorizontalPosition, RelativeVerticalPosition, Table, TableAnchorType, ...
// Example of how you would create a table with float positions // Import from 'docx' rather than '../build' if you install from npm import * as fs from "fs"; import { Document, OverlapType, Packer, Paragraph, RelativeHorizontalPosition, RelativeVerticalPosition, Table, TableAnchorType, ...
Add spacing to table float
Add spacing to table float
TypeScript
mit
dolanmiu/docx,dolanmiu/docx,dolanmiu/docx
--- +++ @@ -45,6 +45,10 @@ relativeHorizontalPosition: RelativeHorizontalPosition.RIGHT, relativeVerticalPosition: RelativeVerticalPosition.BOTTOM, overlap: OverlapType.NEVER, + leftFromText: 1000, + rightFromText: 2000, + topFromText: 1500, + bottomFromText: 30,...
643aba1de85163b6dea972a9dc5324d8dc2065ef
src/renderer/views/Settings/Settings.tsx
src/renderer/views/Settings/Settings.tsx
import React from 'react'; import { Outlet, useMatch } from 'react-router'; import { Navigate } from 'react-router-dom'; import * as Nav from '../../elements/Nav/Nav'; import appStyles from '../../App.module.css'; import styles from './Settings.module.css'; const Settings: React.FC = () => { const match = useMatch...
import React from 'react'; import { Outlet, useMatch } from 'react-router'; import { Navigate } from 'react-router-dom'; import * as Nav from '../../elements/Nav/Nav'; import appStyles from '../../App.module.css'; import styles from './Settings.module.css'; const Settings: React.FC = () => { const match = useMatch...
Fix white flash when navigating to /settings
Fix white flash when navigating to /settings
TypeScript
mit
KeitIG/museeks,KeitIG/museeks,KeitIG/museeks
--- +++ @@ -9,10 +9,6 @@ const Settings: React.FC = () => { const match = useMatch('/settings'); - - if (match) { - return <Navigate to='/settings/library' />; - } return ( <div className={`${appStyles.view} ${styles.viewSettings}`}> @@ -28,6 +24,8 @@ <div className={styles.settings__conte...
edd335779abe9385b8e3167e2331f6ac1512418c
packages/gitgraph-core/src/graph-columns.ts
packages/gitgraph-core/src/graph-columns.ts
import Branch from "./branch"; import Commit from "./commit"; export class GraphColumns<TNode> { private columns: Array<Branch["name"]> = []; /** * Compute the graph columns from commits. * * @param commits List of graph commits */ public constructor(commits: Array<Commit<TNode>>) { this.columns...
import Branch from "./branch"; import Commit from "./commit"; export class GraphColumns<TNode> { private branches: Set<Branch["name"]> = new Set(); public constructor(commits: Array<Commit<TNode>>) { commits.forEach((commit) => this.branches.add(commit.branchToDisplay)); } /** * Return the column inde...
Refactor GraphColumns to use a Set()
Refactor GraphColumns to use a Set()
TypeScript
mit
nicoespeon/gitgraph.js,nicoespeon/gitgraph.js,nicoespeon/gitgraph.js,nicoespeon/gitgraph.js
--- +++ @@ -2,19 +2,10 @@ import Commit from "./commit"; export class GraphColumns<TNode> { - private columns: Array<Branch["name"]> = []; + private branches: Set<Branch["name"]> = new Set(); - /** - * Compute the graph columns from commits. - * - * @param commits List of graph commits - */ public...
461a04d23655a026d303566e831c9cebe1f36cd3
src/cssUtils.ts
src/cssUtils.ts
import { Stylesheet, Rule, Media } from 'css'; import { flatten } from './arrayUtils'; export function findRootRules(cssAST: Stylesheet): Rule[] { return cssAST.stylesheet.rules.filter(node => (<Rule>node).type === 'rule'); } export function findMediaRules(cssAST: Stylesheet): Rule[] { let mediaNodes = <Rule[...
import { Stylesheet, Rule, Media } from 'css'; import { flatten } from './arrayUtils'; export function findRootRules(cssAST: Stylesheet): Rule[] { return cssAST.stylesheet.rules.filter(node => (<Rule>node).type === 'rule'); } export function findMediaRules(cssAST: Stylesheet): Rule[] { let mediaNodes = <Rule[...
Allow class name stop characters to be escaped.
Allow class name stop characters to be escaped.
TypeScript
mit
andersea/HTMLClassSuggestionsVSCode
--- +++ @@ -20,10 +20,10 @@ let classNameStartIndex = selector.lastIndexOf('.'); if (classNameStartIndex >= 0) { let classText = selector.substr(classNameStartIndex + 1); - // Search for one of ' ', '[', ':' or '>' - let classNameEndIndex = classText.search(/[\s\[:>]/); + // Se...
ec47a071951ced53ebdaa214eda19067866d5946
src/app/shared/services/clusters-service.ts
src/app/shared/services/clusters-service.ts
import * as models from '../models'; import requests from './requests'; export class ClustersService { public list(): Promise<models.Cluster[]> { return requests.get('/clusters').then((res) => res.body as models.ClusterList).then(((list) => list.items)); } }
import * as models from '../models'; import requests from './requests'; export class ClustersService { public list(): Promise<models.Cluster[]> { return requests.get('/clusters').then((res) => res.body as models.ClusterList).then(((list) => list.items || [])); } }
Fix npe error in app wizard
Fix npe error in app wizard
TypeScript
apache-2.0
argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd
--- +++ @@ -3,6 +3,6 @@ export class ClustersService { public list(): Promise<models.Cluster[]> { - return requests.get('/clusters').then((res) => res.body as models.ClusterList).then(((list) => list.items)); + return requests.get('/clusters').then((res) => res.body as models.ClusterList).then((...
2076c9400c7d2b327b87a4f47e9593832acf2236
src/components/gifPicker/singleGif.tsx
src/components/gifPicker/singleGif.tsx
import React, {FC} from 'react'; import {Handler} from '../../helpers/typeHelpers'; export interface GifItemProps { previewUrl: string; onClick: Handler; } export const BTDGifItem: FC<GifItemProps> = (props) => { return ( <div className="btd-giphy-block-wrapper" onClick={props.onClick} sty...
import React, {FC} from 'react'; import {Handler} from '../../helpers/typeHelpers'; export interface GifItemProps { previewUrl: string; onClick: Handler; } export const BTDGifItem: FC<GifItemProps> = (props) => { return ( <div className="btd-giphy-block-wrapper" onClick={props.onClick} sty...
Fix gif picker with scrollbar
Fix gif picker with scrollbar
TypeScript
mit
eramdam/BetterTweetDeck,eramdam/BetterTweetDeck,eramdam/BetterTweetDeck,eramdam/BetterTweetDeck
--- +++ @@ -11,7 +11,7 @@ <div className="btd-giphy-block-wrapper" onClick={props.onClick} - style={{height: 100, width: 100, display: 'inline-block'}}> + style={{height: 100, width: `calc(100% / 3)`, display: 'inline-block'}}> <img src={props.previewUrl} classNam...
a2ebea044c8a2b4041e79102d32a8f2cce633b9c
src/RansomTableWidget.ts
src/RansomTableWidget.ts
import {Table} from "./Table"; /** * TODO: Replace all console.error calls with exceptions * TODO: Provide rudimentary column and row manipulation methods * TODO: Provide rudimentary cell styling possibility * TODO: Provide cell edit feature * TODO: Implement paging * */ declare const $: any; (function ($) { ...
import {Table} from "./Table"; /** * TODO: Replace all console.error calls with exceptions * TODO: Provide rudimentary column and row manipulation methods * TODO: Provide rudimentary cell styling possibility * TODO: Provide cell edit feature * TODO: Implement paging * */ import "jquery"; (function ($) { $.wi...
Add passing all options to Table class
Add passing all options to Table class
TypeScript
mit
mwheregroup/RansomTable,mwheregroup/RansomTable,mwheregroup/RansomTable
--- +++ @@ -6,7 +6,7 @@ * TODO: Provide cell edit feature * TODO: Implement paging * */ -declare const $: any; +import "jquery"; (function ($) { $.widget("ransomware.table", { @@ -19,17 +19,12 @@ options: {}, _create: function () { - this.table = new Table({ - ...
e4b0e9a06931562b37debd65a7d0bab23db87a46
app/vue/src/server/framework-preset-vue.ts
app/vue/src/server/framework-preset-vue.ts
/* eslint-disable no-param-reassign */ import VueLoaderPlugin from 'vue-loader/lib/plugin'; import type { Configuration } from 'webpack'; export function webpack(config: Configuration) { config.plugins.push(new VueLoaderPlugin()); config.module.rules.push({ test: /\.vue$/, loader: require.resolve('vue-load...
/* eslint-disable no-param-reassign */ import VueLoaderPlugin from 'vue-loader/lib/plugin'; import type { Configuration } from 'webpack'; import type { Options, TypescriptConfig } from '@storybook/core-common'; export async function webpack(config: Configuration, { presets }: Options) { const typescriptOptions = aw...
Check types when `typescript.check` is true
fix(vue): Check types when `typescript.check` is true https://github.com/storybookjs/storybook/issues/14987 TypeScript checks in `@storybook/vue` has not been enabled. This commit enables users to turn on type checking process powered by ts-loader. From performance perspective, fork-ts-checker-webpack-plugin is bett...
TypeScript
mit
storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook
--- +++ @@ -2,7 +2,11 @@ import VueLoaderPlugin from 'vue-loader/lib/plugin'; import type { Configuration } from 'webpack'; -export function webpack(config: Configuration) { +import type { Options, TypescriptConfig } from '@storybook/core-common'; + +export async function webpack(config: Configuration, { presets ...
da8e02d9055f66471ce7ea30e819d6bae9f9d4aa
block-layout/examples/loadingAnimation.ts
block-layout/examples/loadingAnimation.ts
var circle; var continueAnimating : boolean; var animationProgress : number; function startLoadingAnimation() { var svg = <HTMLElement> document.querySelector('svg'); var svgNS = svg.namespaceURI; circle = document.createElementNS(svgNS,'circle'); circle.setAttribute('cx','320'); circle.setAttribut...
var circle; var circle2; var continueAnimating : boolean; var animationProgress : number; function makeCircle(document, svgNS) { var circle = document.createElementNS(svgNS,'circle'); circle.setAttribute('cx','320'); circle.setAttribute('cy','240'); circle.setAttribute('r','16'); circle.setAttribut...
Add a second circle to the loading animation
Add a second circle to the loading animation
TypeScript
apache-2.0
CodethinkLabs/software-dependency-visualizer,CodethinkLabs/software-dependency-visualizer,CodethinkLabs/software-dependency-visualizer,CodethinkLabs/software-dependency-visualizer
--- +++ @@ -1,17 +1,25 @@ var circle; +var circle2; var continueAnimating : boolean; var animationProgress : number; + +function makeCircle(document, svgNS) +{ + var circle = document.createElementNS(svgNS,'circle'); + circle.setAttribute('cx','320'); + circle.setAttribute('cy','240'); + circle.setAttr...
6fc328d9b709eb298c6d529ac31ced4acda09d96
src/lib/components/container/template.tsx
src/lib/components/container/template.tsx
import * as React from 'react' import {Provider} from 'react-redux' import {Store} from 'redux' const {AppContainer} = require('react-hot-loader') /** Container component properties */ interface Props { /** Redux store instance */ store: Store<any> // tslint:disable-line:no-any /** Component to render */ comp...
import * as React from 'react' import {Provider} from 'react-redux' import {Store} from 'redux' const {AppContainer} = require('react-hot-loader') /** Container component properties */ interface Props<P> { /** Redux store instance */ store: Store<any> // ts-lint:disable-line:no-any /** Component to render */ ...
Reduce use of any further
Reduce use of any further
TypeScript
mit
jupl/astraea,jupl/astraea
--- +++ @@ -4,12 +4,12 @@ const {AppContainer} = require('react-hot-loader') /** Container component properties */ -interface Props { +interface Props<P> { /** Redux store instance */ - store: Store<any> // tslint:disable-line:no-any + store: Store<any> // ts-lint:disable-line:no-any /** Component to re...
69eb96048480e2e0044e9dfa67e8d065af0166cb
src/symbols.ts
src/symbols.ts
// This is currently a string because a Symbol seems to have become broken in // VS Code. We can revert this if it gets fixed. // https://github.com/Microsoft/vscode/issues/57513 export const internalApiSymbol = "private-API"; // Symbol();
export const internalApiSymbol = Symbol();
Switch back to using a symbol
Switch back to using a symbol I believe thie issue is because of https://github.com/Microsoft/vscode/issues/58388 and the previous workaround should fix this.
TypeScript
mit
Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code
--- +++ @@ -1,4 +1 @@ -// This is currently a string because a Symbol seems to have become broken in -// VS Code. We can revert this if it gets fixed. -// https://github.com/Microsoft/vscode/issues/57513 -export const internalApiSymbol = "private-API"; // Symbol(); +export const internalApiSymbol = Symbol();
33b3a5679b46597dc78653fc428e543ec9359ffa
src/Styleguide/Artwork/Banner.tsx
src/Styleguide/Artwork/Banner.tsx
import React from "react" import styled from "styled-components" import { Col, Row } from "../Elements/Grid" const Flex = styled.div` display: flex; flex-direction: row; ` const RoundedImage = styled.img` width: ${props => props.size}; height: ${props => props.size}; border-radius: ${props => props.size}; `...
import React from "react" import styled from "styled-components" import { Col, Row } from "../Elements/Grid" const Flex = styled.div` display: flex; flex-direction: row; ` interface RoundedImageProps { size: string } const RoundedImage = styled.img.attrs<RoundedImageProps>({})` width: ${(props: RoundedImageP...
Update types for RoundedImage component
Update types for RoundedImage component
TypeScript
mit
artsy/reaction,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction-force,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction-force,artsy/reaction
--- +++ @@ -7,8 +7,12 @@ flex-direction: row; ` -const RoundedImage = styled.img` - width: ${props => props.size}; +interface RoundedImageProps { + size: string +} + +const RoundedImage = styled.img.attrs<RoundedImageProps>({})` + width: ${(props: RoundedImageProps) => props.size}; height: ${props => prop...
2376b245dcc6fd44d23f655a46c72c7a9fc51aff
src/scripts/import_languages.ts
src/scripts/import_languages.ts
import Language from '../models/language'; import Version from '../models/version'; import * as mongoose from 'mongoose'; import { log } from '../helpers/logger'; import { readFileSync } from 'fs'; const connect = () => { mongoose.connect('mongodb://localhost:27017/db', { useNewUrlParser: true, useUnifiedTopolo...
import Language from '../models/language'; import Version from '../models/version'; import * as mongoose from 'mongoose'; import { log } from '../helpers/logger'; import { readFileSync } from 'fs'; const connect = () => { mongoose.connect('mongodb://localhost:27017/db', { useNewUrlParser: true, useUnifiedTopolo...
Use version abbrevation for a language's default version.
Use version abbrevation for a language's default version.
TypeScript
mpl-2.0
BibleBot/BibleBot,BibleBot/BibleBot,BibleBot/BibleBot
--- +++ @@ -19,6 +19,8 @@ connect(); mongoose.connection.on('disconnected', connect); +const defaultVersion = 'RSV'; + const importLanguages = () => { const _default = JSON.parse(readFileSync(`${__dirname}/../../../i18n/default/default.json`, 'utf-8')); @@ -26,7 +28,7 @@ name: 'Default', ...
666dfee82f3e4f7c3ce922a1dc10740399ffcfc6
src/main.browser.ts
src/main.browser.ts
import { bootstrap } from '@angular/platform-browser-dynamic'; import { provideStore } from '@ngrx/store'; import { DIRECTIVES, PIPES, PROVIDERS } from './platform/browser'; import { ENV_PROVIDERS } from './platform/environment'; import { App, APP_PROVIDERS } from './app'; import { CURRENT_ASSIGNMENT_REDUCER } from '....
import { bootstrap } from '@angular/platform-browser-dynamic'; import { provideStore } from '@ngrx/store'; import { DIRECTIVES, PIPES, PROVIDERS } from './platform/browser'; import { ENV_PROVIDERS } from './platform/environment'; import { App, APP_PROVIDERS } from './app'; import { CURRENT_ASSIGNMENT_REDUCER } from '....
Fix provider of current assignment reducer to store
feature(assignment-list): Fix provider of current assignment reducer to store
TypeScript
mit
bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder
--- +++ @@ -14,9 +14,7 @@ ...DIRECTIVES, ...PIPES, ...APP_PROVIDERS, - provideStore([ - CURRENT_ASSIGNMENT_REDUCER - ]) + provideStore(CURRENT_ASSIGNMENT_REDUCER) ]) .catch(err => console.error(err));
a993c543b850d980e874ff0d60f978781df50dc4
src/index.ts
src/index.ts
/* * @license * Copyright Hôpitaux Universitaires de Genève. All Rights Reserved. * * Use of this source code is governed by an Apache-2.0 license that can be * found in the LICENSE file at https://github.com/DSI-HUG/dejajs-components/blob/master/LICENSE */ export * from './common/index'; export * from './co...
/* * @license * Copyright Hôpitaux Universitaires de Genève. All Rights Reserved. * * Use of this source code is governed by an Apache-2.0 license that can be * found in the LICENSE file at https://github.com/DSI-HUG/dejajs-components/blob/master/LICENSE */ export * from './common/index'; export * from './co...
Add warning if doctype is not set
feat(Global): Add warning if doctype is not set
TypeScript
apache-2.0
DSI-HUG/dejajs-components,DSI-HUG/dejajs-components,DSI-HUG/dejajs-components,DSI-HUG/dejajs-components
--- +++ @@ -8,3 +8,7 @@ export * from './common/index'; export * from './component/index'; + +if (!document.doctype) { + console.warn('[DejaJS] Current document does not have a doctype. This may cause some components not to behave as expected.'); +}
8169c56fe1c67c3c004f2cce35761cb799347c11
client/app/user-menu-item.component.ts
client/app/user-menu-item.component.ts
import {Component} from 'angular2/core' import {UserService} from './user.service' @Component({ selector: 'user-menu-item', inputs: ['user'], template: ` <div class="vertically fitted item" *ngIf="user"> Hello, {{user.username}}! </div> <a class="vertically fitted icon item" (click)="logout()" *ngIf="...
import {Component} from 'angular2/core' import {UserService} from './user.service' @Component({ selector: 'user-menu-item', inputs: ['user'], template: ` <div class="vertically fitted item" *ngIf="user"> Hello, {{user.username}}! </div> <a class="vertically fitted icon item" (click)="logout()" *ngIf="...
Make logout work correctly (the lazy way).
Make logout work correctly (the lazy way).
TypeScript
mit
leMaik/EduCraft-Editor,leMaik/EduCraft-Editor,leMaik/EduCraft-Editor,leMaik/EduCraft-Editor
--- +++ @@ -22,6 +22,6 @@ } logout() { - this._users.logout(); + this._users.logout().subscribe(() => location.href = '/'); } }
2cab77735574bbd10e790eec16fbb7be3ae8b9e0
ts/app.ts
ts/app.ts
"use strict"; import * as http from "http"; import * as express from "express"; const app = express(); app.use(express.static("public")); app.get("/", (req, res) => { res.send("Hello Boss!"); }); const server = app.listen(8888, () =>{ const port = server.address().port; console.log(`Boss is listening at port:...
"use strict"; import * as express from "express"; const app = express(); app.use(express.static("public")); const server = app.listen(process.env.PORT || 1337, () =>{ console.log(`Boss is listening at port: ${server.address().port}`); });
Read port number from environment variable
Read port number from environment variable Azure passes in the port number through the PORT environment variable. This is the port number the Azure load balancer forwards traffic to. I.e. Browser -------> LB (port 80) ---------> Node.js (PORT EV) If the EV is not specified we default to 1337. See https://azure.micr...
TypeScript
mit
navi2601/bosstalk,navi2601/bosstalk,navi2601/bosstalk
--- +++ @@ -1,19 +1,9 @@ "use strict"; - -import * as http from "http"; import * as express from "express"; const app = express(); - app.use(express.static("public")); -app.get("/", (req, res) => { - res.send("Hello Boss!"); +const server = app.listen(process.env.PORT || 1337, () =>{ + console.log(`Boss is li...
29785b7398abe2763857ff151d36267f4b3a2952
src/app/shared/reducers/teacher.reducer.ts
src/app/shared/reducers/teacher.reducer.ts
import { ActionReducer } from '@ngrx/store'; import { Teacher } from '../models'; export const TEACHER = 'TEACHER'; export const SET_TEACHER = 'SET_TEACHER'; let initialState = new Teacher.Builder().build(); export const teacherReducer: ActionReducer<Teacher> = (state = initialState, {type, payload}) => { switch...
import { ActionReducer } from '@ngrx/store'; import { Teacher } from '../models'; export const TEACHER = 'TEACHER'; export const SET_TEACHER = 'SET_TEACHER'; let initialState = new Teacher.Builder() .withId('1') .withClasses(['AM', 'PM']) .build(); export const teacherReducer: ActionReducer<Teacher> = (state...
Add more attributes to initial teacher state
Add more attributes to initial teacher state
TypeScript
mit
bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder
--- +++ @@ -6,7 +6,10 @@ export const SET_TEACHER = 'SET_TEACHER'; -let initialState = new Teacher.Builder().build(); +let initialState = new Teacher.Builder() + .withId('1') + .withClasses(['AM', 'PM']) + .build(); export const teacherReducer: ActionReducer<Teacher> = (state = initialState, {type, payload...
ac675e5c047668d128272f8b39c6029b42579862
nojoin/index.ts
nojoin/index.ts
// Automatically removes join/leave messages in sandbox import {WebClient, RTMClient} from '@slack/client'; interface SlackInterface { rtmClient: RTMClient, webClient: WebClient, } export default async ({rtmClient: rtm, webClient: slack}: SlackInterface) => { rtm.on('message', async (message) => { if (message.c...
import {SlackInterface} from '../lib/slack'; export default async ({rtmClient: rtm, webClient: slack}: SlackInterface) => { rtm.on('message', async (message: any) => { if (message.subtype === 'channel_join' || message.subtype === 'channel_leave') { await slack.chat.delete({ token: process.env.HAKATASHI_TOKEN...
Remove limitation to limit nojoin bot target to sandbox
nojoin: Remove limitation to limit nojoin bot target to sandbox
TypeScript
mit
tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot
--- +++ @@ -1,22 +1,13 @@ -// Automatically removes join/leave messages in sandbox - -import {WebClient, RTMClient} from '@slack/client'; - -interface SlackInterface { - rtmClient: RTMClient, - webClient: WebClient, -} +import {SlackInterface} from '../lib/slack'; export default async ({rtmClient: rtm, webClient: ...
81af969c276c950814a0ee4398b8a657a49acf52
src/extended-schema/merge-extended-schemas.ts
src/extended-schema/merge-extended-schemas.ts
import { ExtendedSchema, FieldMetadata, SchemaMetadata } from './extended-schema'; import { flatMap } from '../utils/utils'; import { mergeSchemas } from '../graphql/merge-schemas'; /** * Merges multiple GraphQL schemas by merging the fields of root types (query, mutation, subscription). * Also takes care of extende...
import { ExtendedSchema, FieldMetadata, SchemaMetadata } from './extended-schema'; import { flatMap } from '../utils/utils'; import { mergeSchemas } from '../graphql/merge-schemas'; /** * Merges multiple GraphQL schemas by merging the fields of root types (query, mutation, subscription). * Also takes care of extende...
Add type information to flatMap/Array.from
Add type information to flatMap/Array.from
TypeScript
mit
AEB-labs/graphql-weaver,AEB-labs/graphql-weaver
--- +++ @@ -12,5 +12,5 @@ } export function mergeFieldMetadata(...metadatas: Map<string, FieldMetadata>[]) { - return new Map(flatMap(metadatas, map => Array.from(map))); + return new Map<string, FieldMetadata>(flatMap(metadatas, map => Array.from(map))); }
5407fd3caee297355dee588dace9d92163301de2
packages/ream/src/webpack/blocks/bundle-for-node.ts
packages/ream/src/webpack/blocks/bundle-for-node.ts
import WebpackChain from 'webpack-chain' export function bundleForNode(chain: WebpackChain, isClient: boolean) { if (isClient) { return } chain.output.libraryTarget('commonjs2') chain.target('node') chain.externals([ require('webpack-node-externals')({ whitelist: [ /\.(?!(?:jsx?|json...
import WebpackChain from 'webpack-chain' export function bundleForNode(chain: WebpackChain, isClient: boolean) { if (isClient) { return } chain.output.libraryTarget('commonjs2') chain.target('node') chain.externals([ require('webpack-node-externals')({ whitelist: [ /\.(?!(?:jsx?|json)$...
Make webpack compile ream plugins
Make webpack compile ream plugins
TypeScript
mit
ream/ream
--- +++ @@ -4,7 +4,7 @@ if (isClient) { return } - + chain.output.libraryTarget('commonjs2') chain.target('node') chain.externals([ @@ -13,6 +13,18 @@ /\.(?!(?:jsx?|json)$).{1,5}$/i, // Bundle Ream server 'ream-server', + (name: string) => { + // Don't ...
0527bc3489bd1a4f1e33de059690f1b3551a25dd
types/htmlbars-inline-precompile/index.d.ts
types/htmlbars-inline-precompile/index.d.ts
// Type definitions for htmlbars-inline-precompile 1.0 // Project: ember-cli-htmlbars-inline-precompile // Definitions by: Chris Krycho <https://github.com/chriskrycho> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // This is a bit of a funky one: it's from a [Babel plugin], but is exported for //...
// Type definitions for htmlbars-inline-precompile 1.0 // Project: ember-cli-htmlbars-inline-precompile // Definitions by: Chris Krycho <https://github.com/chriskrycho> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // This is a bit of a funky one: it's from a [Babel plugin], but is exported for //...
Fix typo in htmlbars-inline-precompile comments.
Fix typo in htmlbars-inline-precompile comments.
TypeScript
mit
benishouga/DefinitelyTyped,rolandzwaga/DefinitelyTyped,alexdresko/DefinitelyTyped,nycdotnet/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,abbasmhd/DefinitelyTyped,arusakov/DefinitelyTyped,aciccarello/DefinitelyTyped,ashwinr/DefinitelyTyped,benliddicott/DefinitelyTyped,chrootsu/DefinitelyTyped,zuzusik/DefinitelyTyped,arus...
--- +++ @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // This is a bit of a funky one: it's from a [Babel plugin], but is exported for -// Ember applications as the module `"htmlbars-incline-precompile"`. It acts +// Ember applications as the module `"htmlbars-inline-precompil...
0338175916034f9d64658df0220076be556cefcf
AirTrafficControl.Web/App/AirplaneState.ts
AirTrafficControl.Web/App/AirplaneState.ts
 module AirTrafficControl { export class AirplaneState { constructor(ID: string, StateDescription: string) { } } }
 module AirTrafficControl { export class AirplaneState { constructor(public ID: string, public StateDescription: string) { } } }
Make sure the airplane data is available in the UI
Make sure the airplane data is available in the UI
TypeScript
mit
karolz-ms/diagnostics-eventflow
--- +++ @@ -1,6 +1,6 @@  module AirTrafficControl { export class AirplaneState { - constructor(ID: string, StateDescription: string) { } + constructor(public ID: string, public StateDescription: string) { } } }
dac7c80cb2ed6ef82462d1ec3dc3cfaebaa2760c
src/server/network/handlers/ChunkHandler.ts
src/server/network/handlers/ChunkHandler.ts
import { SocketHandler } from './SocketHandler' import { Vokkit } from '../../Vokkit' import { ChunkPosition } from '../../world/Chunk' export interface ChunkData { worldName: string, position: ChunkPosition } export class ChunkHandler extends SocketHandler { onConnection (socket: SocketIO.Socket) { socket....
import { SocketHandler } from './SocketHandler' import { Vokkit } from '../../Vokkit' import { ChunkPosition } from '../../world/Chunk' export interface ChunkData { worldName: string, position: ChunkPosition } export class ChunkHandler extends SocketHandler { onConnection (socket: SocketIO.Socket) { socket....
Check world and player before server sends chunk
Check world and player before server sends chunk
TypeScript
apache-2.0
Vokkit/Vokkit,Vokkit/Vokkit,Vokkit/Vokkit
--- +++ @@ -9,13 +9,23 @@ export class ChunkHandler extends SocketHandler { onConnection (socket: SocketIO.Socket) { - socket.on('chunk', (data: ChunkData) => this.onChunkLoad(socket, data)) // todo: send chunk without getting request (dangerous) + socket.on('chunk', (data: ChunkData) => this.onChunkLoad(...
8122701a4b8cd7e362a62a1bc1e2deda4925f34e
src/utils/KeyValueCache.ts
src/utils/KeyValueCache.ts
interface KeyValueCacheItem<T, U> { key: T; value: U; } export class KeyValueCache<T, U> { private readonly cacheItems: KeyValueCacheItem<T, U>[] = []; getOrCreate(key: T, createFunc: () => U) { let item = this.get(key); if (item == null) { item = createFunc(); ...
interface KeyValueCacheItem<T, U> { key: T; value: U; } export class KeyValueCache<T, U> { private readonly cacheItems: KeyValueCacheItem<T, U>[] = []; getOrCreate(key: T, createFunc: () => U) { let item = this.get(key); if (item == null) { item = createFunc(); ...
Add todo about making it faster.
Add todo about making it faster.
TypeScript
mit
dsherret/type-info-ts,dsherret/ts-type-info,dsherret/type-info-ts,dsherret/ts-type-info
--- +++ @@ -18,6 +18,7 @@ } get(key: T) { + // todo: make this O(1) somehow for (let cacheItem of this.cacheItems) { if (cacheItem.key === key) { return cacheItem.value;
a81bb6303d1d6908d19a6bd04b68d9091753502b
src/thememanagerutility.ts
src/thememanagerutility.ts
/* * Copyright 2014-2016 Simon Edwards <simon@simonzone.com> * * This source code is licensed under the MIT license which is detailed in the LICENSE.txt file. */ import ThemeManager = require('./thememanager'); import ThemeTypes = require('./theme'); import Logger = require('./logger'); const print = console.log...
/* * Copyright 2014-2016 Simon Edwards <simon@simonzone.com> * * This source code is licensed under the MIT license which is detailed in the LICENSE.txt file. */ import ThemeManager = require('./thememanager'); import ThemeTypes = require('./theme'); import Logger = require('./logger'); const print = console.log...
Fix up the theme utility which recently broke.
Fix up the theme utility which recently broke.
TypeScript
mit
sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm
--- +++ @@ -23,7 +23,11 @@ ThemeTypes.cssFileEnumItems.forEach( (item) => { print("CSS " + ThemeTypes.cssFileNameBase(item) + "----"); - print(contents.cssFiles[ThemeTypes.cssFileNameBase(item)]); + if (contents.success) { + print(contents.themeContents.cssFiles[ThemeTyp...
3fe979d66dbc78c3b3c37f8bf1223a7945a493b2
app/src/ui/tutorial/confirm-exit-tutorial.tsx
app/src/ui/tutorial/confirm-exit-tutorial.tsx
import * as React from 'react' import { Button } from '../lib/button' import { ButtonGroup } from '../lib/button-group' import { DialogFooter, DialogContent, Dialog } from '../dialog' interface IConfirmExitTutorialProps { readonly onDismissed: () => void readonly onContinue: () => void } export class ConfirmExi...
import * as React from 'react' import { Button } from '../lib/button' import { ButtonGroup } from '../lib/button-group' import { DialogFooter, DialogContent, Dialog } from '../dialog' interface IConfirmExitTutorialProps { readonly onDismissed: () => void readonly onContinue: () => void } export class ConfirmExi...
Change dialog type from warning to normal
Change dialog type from warning to normal
TypeScript
mit
kactus-io/kactus,desktop/desktop,artivilla/desktop,shiftkey/desktop,shiftkey/desktop,artivilla/desktop,kactus-io/kactus,kactus-io/kactus,j-f1/forked-desktop,j-f1/forked-desktop,say25/desktop,shiftkey/desktop,artivilla/desktop,desktop/desktop,say25/desktop,shiftkey/desktop,j-f1/forked-desktop,kactus-io/kactus,j-f1/forke...
--- +++ @@ -20,7 +20,7 @@ title="Exit tutorial" onDismissed={this.props.onDismissed} onSubmit={this.props.onContinue} - type="warning" + type="normal" > <DialogContent> <p>
eaa2f56e8d3dfe71bdd7373d6dd189256df45ad8
src/app/contact.service.ts
src/app/contact.service.ts
import { Injectable } from '@angular/core'; @Injectable() export class contactSerivce { }
import { Injectable } from '@angular/core'; @Injectable() export class contactSerivce { getContacts(): void {} //stub }
Add 'getContacts' method stub to 'ContactService'
refactor: Add 'getContacts' method stub to 'ContactService' [ticket: #3]
TypeScript
mit
armin-es/contact-list-angular-2,armin-es/contact-list-angular-2,armin-es/contact-list-angular-2
--- +++ @@ -2,5 +2,5 @@ @Injectable() export class contactSerivce { - + getContacts(): void {} //stub }
1717ba1d948e24b7442d65888e6ea4fb44ffac30
src/sentry-connection/sentry-connection.ts
src/sentry-connection/sentry-connection.ts
import { subscribeToUncaughtExceptions, } from '../utils/error-handling'; import * as Raven from 'raven-js'; declare const SENTRY_KEY: string; if (SENTRY_KEY && SENTRY_KEY.length > 0) { Raven .config(SENTRY_KEY) .install(); subscribeToUncaughtExceptions(err => { const e = new Error(err.name); e...
import { subscribeToUncaughtExceptions, } from '../utils/error-handling'; import * as Raven from 'raven-js'; declare const SENTRY_KEY: string; if (SENTRY_KEY && SENTRY_KEY.length > 0) { Raven .config(SENTRY_KEY, { release: chrome.runtime.getManifest().version }) .install(); subscribeToUncaughtException...
Tag error report with Augury version (as “release”)
Tag error report with Augury version (as “release”)
TypeScript
mit
rangle/augury,rangle/augury,rangle/augury,rangle/batarangle,rangle/augury,rangle/batarangle,rangle/batarangle,rangle/batarangle
--- +++ @@ -7,7 +7,7 @@ declare const SENTRY_KEY: string; if (SENTRY_KEY && SENTRY_KEY.length > 0) { Raven - .config(SENTRY_KEY) + .config(SENTRY_KEY, { release: chrome.runtime.getManifest().version }) .install(); subscribeToUncaughtExceptions(err => {
03cebecac36726889d8d72ad5562d0f84b83ea4a
public/app/core/components/PageLoader/PageLoader.tsx
public/app/core/components/PageLoader/PageLoader.tsx
import React, { FC } from 'react'; interface Props { pageName?: string; } const PageLoader: FC<Props> = ({ pageName }) => { const loadingText = `Loading ${pageName}...`; return ( <div className="page-loader-wrapper"> <i className="page-loader-wrapper__spinner fa fa-spinner fa-spin" /> <div class...
import React, { FC } from 'react'; interface Props { pageName?: string; } const PageLoader: FC<Props> = ({ pageName = '' }) => { const loadingText = `Loading ${pageName}...`; return ( <div className="page-loader-wrapper"> <i className="page-loader-wrapper__spinner fa fa-spinner fa-spin" /> <div ...
Add pageName default to avoid "Loading undefined..."
fix: Add pageName default to avoid "Loading undefined..."
TypeScript
agpl-3.0
grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana
--- +++ @@ -4,7 +4,7 @@ pageName?: string; } -const PageLoader: FC<Props> = ({ pageName }) => { +const PageLoader: FC<Props> = ({ pageName = '' }) => { const loadingText = `Loading ${pageName}...`; return ( <div className="page-loader-wrapper">
aecf33b8111b0dd437d8dfbaaca550bd5ed14c4f
src/index.ts
src/index.ts
export { DEFAULT_BRANCH_NAME } from './constants'; export { StateProps, DispatchProps, Props, ExportedComponentDispatchProps, ExportedComponentStateProps, UIStateBranch, DefaultStateShape, defaultBranchSelector, defaultMapStateToProps, defaultMapDispatchToProps, createConnectWrapper, } from './utils'; ...
export { DEFAULT_BRANCH_NAME } from './constants'; export { StateProps, DispatchProps, Props, ExportedComponentDispatchProps, ExportedComponentStateProps, UIStateBranch, DefaultStateShape, defaultBranchSelector, defaultMapStateToProps, defaultMapDispatchToProps, createConnectWrapper, } from './utils'; ...
Remove references to old destroy UI state functionality
Remove references to old destroy UI state functionality
TypeScript
mit
jamiecopeland/redux-ui-state,jamiecopeland/redux-ui-state
--- +++ @@ -13,10 +13,8 @@ export { SET_UI_STATE, REPLACE_UI_STATE, - DESTROY_UI_STATE, setUIState, replaceUIState, - destroyUIState, } from './actions'; export { createReducer } from './pojoReducer';
6a0921a52d530089b4cd1746884570348235c2c1
src/index.ts
src/index.ts
import { OpaqueToken, Inject } from '@angular/core'; export const CONFIG_INITIALIZER = new OpaqueToken('Config initializer'); export function ConfigInitializer<T>(config: T) { type ConfigInitializerType = (config: T) => void; const reflect: any = (window as any)['Reflect']; const getOwnMetadata: Function = reflec...
import { OpaqueToken, Inject } from '@angular/core'; export const CONFIG_INITIALIZER = new OpaqueToken('Config initializer'); export function ConfigInitializer<T>(config: T) { type ConfigInitializerType = (config: T) => void; const reflect: any = (window as any)['Reflect']; const getOwnMetadata: Function = reflec...
Clone the propMetadata key as well
Clone the propMetadata key as well
TypeScript
mit
efidiles/ng2-config-initializer-decorator,efidiles/ng2-config-initializer-decorator,efidiles/ng2-config-initializer-decorator
--- +++ @@ -11,6 +11,7 @@ return function ConfigInitializerDecorator(targetConstructor: any) { const metaInformation = getOwnMetadata('annotations', targetConstructor); + const propMetaInformation = getOwnMetadata('propMetadata', targetConstructor); const designParamtypesInformation = getOwnMetadata('desig...
e1a4f17bbd98b46052551e011ab824c0d33ee994
public/javascripts/Timer.ts
public/javascripts/Timer.ts
/// <reference path="../../typings/jquery/jquery.d.ts" /> class Timer { time: number; running: boolean; element: JQuery; /** * Takes the element to update every second */ constructor(element: JQuery) { this.element = element; this.running = false; } start...
/// <reference path="../../typings/jquery/jquery.d.ts" /> class Timer { time: number; running: boolean; element: JQuery; /** * Takes the element to update every second */ constructor(element: JQuery) { this.element = element; this.running = false; } start...
Update timer DOM element at start
Update timer DOM element at start
TypeScript
mit
takumif/pokesweeper,takumif/pokesweeper
--- +++ @@ -15,6 +15,7 @@ start(): void { this.time = 0; + this.element.text(0); this.running = true; setTimeout(() => this.update(), 1000); }
6e8d1115a32f6ebc52a48d70d985b34319aa1b85
frontend/src/pages/admin/members/index.tsx
frontend/src/pages/admin/members/index.tsx
import * as React from 'react'; import { RouteComponentProps } from '@reach/router'; import { Title } from '../../../components/title/index'; export const Members = (props: RouteComponentProps) => ( <Title>Members list</Title> );
import * as React from 'react'; import { RouteComponentProps } from '@reach/router'; import { Title } from '../../../components/title/index'; export const Members = (props: RouteComponentProps) => ( <> <Title>Members list</Title> <table> <thead> <tr> <th>Nome</th> <th>Stat...
Add stub table for members
Add stub table for members
TypeScript
mit
patrick91/pycon,patrick91/pycon
--- +++ @@ -4,5 +4,26 @@ import { Title } from '../../../components/title/index'; export const Members = (props: RouteComponentProps) => ( - <Title>Members list</Title> + <> + <Title>Members list</Title> + + <table> + <thead> + <tr> + <th>Nome</th> + <th>Stato</th> + ...
cb1346b0b602d76797f11f0be7904c88a144a1d1
lib/client-api/src/hooks.ts
lib/client-api/src/hooks.ts
import { ADDON_STATE_CHANGED, ADDON_STATE_SET } from '@storybook/core-events'; import { HooksContext, applyHooks, useMemo, useCallback, useRef, useState, useReducer, useEffect, useChannel, useStoryContext, useParameter, } from '@storybook/addons'; export { HooksContext, applyHooks, useMemo...
import { ADDON_STATE_CHANGED, ADDON_STATE_SET } from '@storybook/core-events'; import { HooksContext, applyHooks, useMemo, useCallback, useRef, useState, useReducer, useEffect, useChannel, useStoryContext, useParameter, } from '@storybook/addons'; export { HooksContext, applyHooks, useMemo...
ADD memoization for eventHandlers object & ADD a addonState cache for HMR compat
ADD memoization for eventHandlers object & ADD a addonState cache for HMR compat
TypeScript
mit
storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook
--- +++ @@ -28,19 +28,28 @@ useParameter, }; +// We keep this store, because when stories are edited by the user, and HMR, state is lost. +// This allows us to restore instantly. +const addonStateCache: Record<string, any> = {}; + export function useAddonState<S>(addonId: string, defaultState?: S): [S, (s: S) ...
f0f79025565de946931488573ec3ca96ed17913a
src/reducers.ts
src/reducers.ts
import { RootState } from './types'; import { combineReducers } from 'redux'; import { reducer as toastr } from 'react-redux-toastr'; import { default as tab } from './reducers/tab'; import { default as searchingActive } from './reducers/searchingActive'; import { default as search } from './reducers/search'; imp...
import { RootState } from './types'; import { combineReducers } from 'redux'; import { reducer as toastr } from 'react-redux-toastr'; import { default as tab } from './reducers/tab'; import { default as searchingActive } from './reducers/searchingActive'; import { default as account } from './reducers/account'; i...
Add account reducer to root reducer.
Add account reducer to root reducer.
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
--- +++ @@ -3,6 +3,7 @@ import { reducer as toastr } from 'react-redux-toastr'; import { default as tab } from './reducers/tab'; import { default as searchingActive } from './reducers/searchingActive'; +import { default as account } from './reducers/account'; import { default as search } from './reducers/search';...
c53692cefd7cd871c253985b02458e758d123032
packages/stryker-webpack/test/index.spec.ts
packages/stryker-webpack/test/index.spec.ts
import { expect } from "chai"; import Main from "../src/index"; describe("index.js", () => { let main: Main; beforeEach(() => { main = new Main(); }); it("Should return \"Hello world\" when the hello function is called", () => { expect(main.hello()).to.equal("Hello World"); }); }...
import { expect } from "chai"; import Main from "../src/index"; describe("index.js", () => { let main: Main; beforeEach(() => { main = new Main(); }); it("Should return \"Hello world\" when the hello function is called", () => { expect(main.hello()).to.equal("Hello World!"); }); ...
Revert "Feat(fail): Add failing test"
Revert "Feat(fail): Add failing test" This reverts commit 80fc5bd242d8b182440381d44c9ed3404eee005c.
TypeScript
apache-2.0
stryker-mutator/stryker,stryker-mutator/stryker,stryker-mutator/stryker
--- +++ @@ -9,6 +9,6 @@ }); it("Should return \"Hello world\" when the hello function is called", () => { - expect(main.hello()).to.equal("Hello World"); + expect(main.hello()).to.equal("Hello World!"); }); });
6b7ec83de2c61e0a571bcb6b04f77b6035ffd338
logged-in-router-outlet.ts
logged-in-router-outlet.ts
import {Inject, Directive, Attribute, ElementRef, DynamicComponentLoader} from 'angular2/core'; import {Router, RouterOutlet, ComponentInstruction} from 'angular2/router'; import IAuthenticationService from './services/authentication/interface'; @Directive({ selector: 'router-outlet' }) export default class LoggedIn...
import {Inject, Directive, Attribute, ElementRef, DynamicComponentLoader} from 'angular2/core'; import {Router, RouterOutlet, ComponentInstruction} from 'angular2/router'; import IAuthenticationService from './services/authentication/interface'; @Directive({ selector: 'router-outlet' }) export default class LoggedIn...
Use navigate instead of navigateByUrl
Use navigate instead of navigateByUrl
TypeScript
mit
timdp/angular2-sub-bay,timdp/angular2-sub-bay,timdp/angular2-sub-bay
--- +++ @@ -25,7 +25,7 @@ activate (instruction: ComponentInstruction): Promise<any> { const url: string = this._parentRouter0.lastNavigationAttempt; if (!this._publicRoutes[url] && !this._authService.authenticated) { - this._parentRouter0.navigateByUrl('/login'); + this._parentRouter0.navigate...
3437e530d9ed260d2b0a3aab495fe0d91c594ed4
types/electron-store/electron-store-tests.ts
types/electron-store/electron-store-tests.ts
import ElectronStore = require('electron-store'); new ElectronStore({ defaults: {} }); new ElectronStore({ name: 'myConfiguration', cwd: 'unicorn' }); const electronStore = new ElectronStore(); electronStore.set('foo', 'bar'); electronStore.set({ foo: 'bar', foo2: 'bar2' }); electronStore.delete('foo'); e...
import ElectronStore = require('electron-store'); new ElectronStore({ defaults: {} }); new ElectronStore({ name: 'myConfiguration', cwd: 'unicorn' }); const electronStore = new ElectronStore(); electronStore.set('foo', 'bar'); electronStore.set({ foo: 'bar', foo2: 'bar2' }); electronStore.delete...
Add tests for typed store
Add tests for typed store
TypeScript
mit
georgemarshall/DefinitelyTyped,arusakov/DefinitelyTyped,AgentME/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,magny/DefinitelyTyped,borisyankov/DefinitelyTyped,chrootsu/DefinitelyTyped,one-pieces/DefinitelyTyped,rolandzwaga/DefinitelyTyped,markogresak/DefinitelyTyped,Ag...
--- +++ @@ -1,20 +1,20 @@ import ElectronStore = require('electron-store'); new ElectronStore({ - defaults: {} + defaults: {} }); new ElectronStore({ - name: 'myConfiguration', - cwd: 'unicorn' + name: 'myConfiguration', + cwd: 'unicorn' }); const electronStore = new ElectronStore(); electr...
71bce16a00f0bc4fe7c067277053f09773b0e554
addons/contexts/src/preview/frameworks/vue.ts
addons/contexts/src/preview/frameworks/vue.ts
import Vue from 'vue'; import { createAddonDecorator, Render } from '../../index'; import { ContextsPreviewAPI } from '../ContextsPreviewAPI'; import { ID } from '../../shared/constants'; /** * This is the framework specific bindings for Vue. * '@storybook/vue' expects the returning object from a decorator to be a '...
import Vue from 'vue'; import { createAddonDecorator, Render } from '../../index'; import { ContextsPreviewAPI } from '../ContextsPreviewAPI'; import { ID } from '../../shared/constants'; /** * This is the framework specific bindings for Vue. * '@storybook/vue' expects the returning object from a decorator to be a '...
FIX addon-contexts: allow `props` to map on VueComponent contexts
FIX addon-contexts: allow `props` to map on VueComponent contexts
TypeScript
mit
storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook
--- +++ @@ -14,9 +14,14 @@ name: ID, data: () => reactiveProps, render: createElement => - getRendererFrom((component, props, children) => - createElement(component, { props }, [children]) - )(contextNodes, reactiveProps, () => createElement(getStoryVNode())), + getRendererFrom((C...
899b9f07b28ec5735586d4bec0b2c3e475f82132
public_api.ts
public_api.ts
export * from './src/app/ng-intercom'
export { Intercom } from './src/app/ng-intercom/intercom/intercom' export { IntercomConfig } from './src/app/ng-intercom/shared/intercom-config' export { IntercomHideDirective } from './src/app/ng-intercom/directives/hide.directive' export { IntercomModule } from './src/app/ng-intercom/intercom.module' export { Interco...
Fix import metadata issue (see links below)
Fix import metadata issue (see links below) https://github.com/MurhafSousli/ngx-progressbar/issues/160 https://github.com/MurhafSousli/ngx-progressbar/pull/168/files
TypeScript
mit
CaliStyle/angular2-intercom
--- +++ @@ -1 +1,9 @@ -export * from './src/app/ng-intercom' +export { Intercom } from './src/app/ng-intercom/intercom/intercom' +export { IntercomConfig } from './src/app/ng-intercom/shared/intercom-config' +export { IntercomHideDirective } from './src/app/ng-intercom/directives/hide.directive' +export { IntercomMod...
1d52f1356a6d72096ada2e3812ddae9fd7345346
src/app/comparisons/shared/package.service.ts
src/app/comparisons/shared/package.service.ts
import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/merge'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/catch'; import 'rxjs/add/observable/throw'; import { PypiPackage } from './package.mo...
import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/merge'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/catch'; import 'rxjs/add/observable/throw'; import { PypiPackage } from './package.mo...
Set https on API fetching.
Set https on API fetching.
TypeScript
mit
gabrielaraujof/pypicompare,gabrielaraujof/pypicompare,gabrielaraujof/pypicompare
--- +++ @@ -12,7 +12,7 @@ @Injectable() export class PackageService { - private pypiUrl = 'http://pypi.python.org/pypi'; + private pypiUrl = 'https://pypi.python.org/pypi'; constructor(private http: Http) { }
a91037fb50ade3f5063c3147bfbb78c81a4f8c47
public/app/core/utils/scrollbar.ts
public/app/core/utils/scrollbar.ts
// Slightly modified: https://raw.githubusercontent.com/malte-wessel/react-custom-scrollbars/master/src/utils/getScrollbarWidth.js // No "dom-css" dependancy let scrollbarWidth = null; export default function getScrollbarWidth() { if (scrollbarWidth !== null) { return scrollbarWidth; } /* istanbul ignore el...
// Slightly modified: https://raw.githubusercontent.com/malte-wessel/react-custom-scrollbars/master/src/utils/getScrollbarWidth.js // No "dom-css" dependancy let scrollbarWidth = null; export default function getScrollbarWidth() { if (scrollbarWidth !== null) { return scrollbarWidth; } if (typeof document ...
Remove comment and unneeded export
chore: Remove comment and unneeded export
TypeScript
agpl-3.0
grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana
--- +++ @@ -6,7 +6,7 @@ if (scrollbarWidth !== null) { return scrollbarWidth; } - /* istanbul ignore else */ + if (typeof document !== 'undefined') { const div = document.createElement('div'); const newStyles = { @@ -31,7 +31,7 @@ return scrollbarWidth || 0; } -export const hasNoOverlay...
9c18f44028cbb7d9322ece535d2528d60f78d367
src/marketplace/offerings/plan/PriceField.tsx
src/marketplace/offerings/plan/PriceField.tsx
import * as React from 'react'; import { defaultCurrency } from '@waldur/core/services'; import { connectPlanComponents } from './utils'; export const PriceField = connectPlanComponents(props => ( <div className="form-control-static"> {defaultCurrency(props.total)} </div> ));
import * as React from 'react'; import { defaultCurrency } from '@waldur/core/services'; import { connectPlanComponents } from './utils'; export const PriceField = connectPlanComponents((props: {total: number}) => ( <div className="form-control-static"> {defaultCurrency(props.total)} </div> ));
Fix typing for price field component.
Fix typing for price field component.
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -4,7 +4,7 @@ import { connectPlanComponents } from './utils'; -export const PriceField = connectPlanComponents(props => ( +export const PriceField = connectPlanComponents((props: {total: number}) => ( <div className="form-control-static"> {defaultCurrency(props.total)} </div>
d2fd059490ef88001942ad0347811b0390ce691a
src/components/SearchCard/TOpticonButton.tsx
src/components/SearchCard/TOpticonButton.tsx
import * as React from 'react'; import { Button, Stack, TextContainer } from '@shopify/polaris'; import { Tooltip } from '@blueprintjs/core'; import { RequesterInfo } from '../../types'; import { turkopticonBaseUrl } from '../../constants/urls'; export interface Props { readonly requesterId: string; readon...
import * as React from 'react'; import { Button, Stack, TextContainer } from '@shopify/polaris'; import { Tooltip } from '@blueprintjs/core'; import { RequesterInfo } from '../../types'; import { turkopticonBaseUrl } from '../../constants/urls'; export interface Props { readonly requesterId: string; readon...
Add fallback value for Topticon Tooltip.
Add fallback value for Topticon Tooltip.
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
--- +++ @@ -17,7 +17,8 @@ <Stack vertical> <TextContainer>{numTosFlags} reported TOS violations.</TextContainer> <TextContainer> - Pay: {pay}. Comm: {comm}. Fair: {fair}. Fast: {fast}. + Pay: {pay || 'No reviews'}. Comm: {comm || 'No reviews'}. Fair:{' '} + {fair ||...
e89da275d77be5af9f42b3763562b5fcc2b2ff90
src/api/image-api.ts
src/api/image-api.ts
import * as request from 'superagent'; import * as Promise from 'bluebird'; import { Response } from 'superagent'; import { apiBaseUrl, end, Options} from './shared' function buildPath(machineName: string): string { return `${apiBaseUrl}/machines/${machineName}/images`; } export default { fetchMachineImageList: f...
import * as request from 'superagent'; import * as Promise from 'bluebird'; import { Response } from 'superagent'; import { apiBaseUrl, end, Options} from './shared' function buildMachinePath(machineName: string): string { return `${apiBaseUrl}/machines/${machineName}/images`; } function buildLocalPath(): string { ...
Update image API for support local docker
Update image API for support local docker
TypeScript
apache-2.0
lawrence0819/neptune-front,lawrence0819/neptune-front
--- +++ @@ -3,18 +3,33 @@ import { Response } from 'superagent'; import { apiBaseUrl, end, Options} from './shared' -function buildPath(machineName: string): string { +function buildMachinePath(machineName: string): string { return `${apiBaseUrl}/machines/${machineName}/images`; +} + +function buildLocalPath()...
f664836eb0f13643433c0cdb93c1b1687c67412d
scripts/postbuild.ts
scripts/postbuild.ts
const fs = require('fs') const definitionsFile = 'dist/myra.d.ts' // dts-bundle is removing 'declare' so this is an ugly way to bring it back // again fs.readFile(definitionsFile, 'utf8', (err, data) => { if (err) { throw err } const result = data.replace('global {', 'declare global {') f...
const fs = require('fs') const definitionsFile = 'dist/myra.d.ts' // dts-bundle is removing 'declare' so this is an ugly way to bring it back // again fs.readFile(definitionsFile, 'utf8', (err, data) => { if (err) { throw err } const result = data.replace('global {', 'declare global {') fs...
Fix post build "declare global"-fix
Fix post build "declare global"-fix
TypeScript
mit
jhdrn/myra,jhdrn/myra
--- +++ @@ -11,7 +11,7 @@ throw err } - const result = data.replace('global {', 'declare global {') + const result = data.replace('global {', 'declare global {') fs.writeFile(definitionsFile, result, 'utf8', err => { if (err) {
2bae53a7169e80503d42f19cbc0e1d67421df835
src/service/nginx.ts
src/service/nginx.ts
import {ChildProcess, spawn} from 'child_process'; import {EventEmitter} from 'events'; import {dirname} from 'path'; import * as log4js from 'log4js'; const logger = log4js.getLogger(); import * as repository from './repository'; export default class Nginx extends EventEmitter { private exePath: string; priva...
import {ChildProcess, spawn} from 'child_process'; import {EventEmitter} from 'events'; import {dirname} from 'path'; import * as log4js from 'log4js'; const logger = log4js.getLogger(); import * as repository from './repository'; export default class Nginx extends EventEmitter { private exePath: string; priva...
Fix error on first time
Fix error on first time
TypeScript
mit
progre/nginx-rtmp-frontend,progre/nginx-rtmp-frontend,progre/nginx-rtmp-frontend
--- +++ @@ -10,22 +10,29 @@ private process: ChildProcess; start(exePath: string) { - logger.info('start server: ', exePath, '-c', repository.NGINX_CONFIG_PATH); + logger.info('Server starting: ', exePath, '-c', repository.NGINX_CONFIG_PATH); this.exePath = exePath; if (exe...
20a02230b65c33c8e898173f6598886661d2e0f4
src/utils/hitItem.ts
src/utils/hitItem.ts
import { Hit, Requester } from '../types'; import { generateBadges } from './badges'; import { truncate } from './formatting'; type ExceptionStatus = 'neutral' | 'warning' | 'critical'; export interface ExceptionDescriptor { status?: ExceptionStatus; title?: string; description?: string; } const gene...
import { Hit, Requester } from '../types'; import { generateBadges } from './badges'; import { truncate } from './formatting'; type ExceptionStatus = 'neutral' | 'warning' | 'critical'; export interface ExceptionDescriptor { status?: ExceptionStatus; title?: string; description?: string; } const gene...
Truncate requester names to 40 characters.
Truncate requester names to 40 characters.
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
--- +++ @@ -35,7 +35,7 @@ ]; return { - attributeOne: requesterName, + attributeOne: truncate(requesterName, 40), attributeTwo: truncate(title, 80), badges: generateBadges(requester), actions,
aa1f8fb5e611d2090914ffbbefaaf960d5ead45e
src/js/components/Shortcut/HotkeyDialog.tsx
src/js/components/Shortcut/HotkeyDialog.tsx
import React from 'react' import { observer } from 'mobx-react' import Dialog from '@material-ui/core/Dialog' import DialogTitle from '@material-ui/core/DialogTitle' import DialogContent from '@material-ui/core/DialogContent' import Help from './Help' import Fade from '@material-ui/core/Fade' import { useStore } from '...
import React from 'react' import useMediaQuery from '@material-ui/core/useMediaQuery' import { observer } from 'mobx-react' import Dialog from '@material-ui/core/Dialog' import DialogTitle from '@material-ui/core/DialogTitle' import DialogContent from '@material-ui/core/DialogContent' import Help from './Help' import F...
Make hotkey dialog responsive and add close button
fix: Make hotkey dialog responsive and add close button
TypeScript
mit
xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2
--- +++ @@ -1,32 +1,52 @@ import React from 'react' +import useMediaQuery from '@material-ui/core/useMediaQuery' import { observer } from 'mobx-react' import Dialog from '@material-ui/core/Dialog' import DialogTitle from '@material-ui/core/DialogTitle' import DialogContent from '@material-ui/core/DialogContent' ...
f4ad3c8fe1311acede16cf17bb4074adceaa97b3
templates/module/_name.config.ts
templates/module/_name.config.ts
import { Inject } from "<%= decoratorPath %>"; import { <%= pName %>Controller } from "./<%= hName %>.controller"; @Inject("$stateProvider") export class <%= pName %>Config { constructor(stateProvider: ng.ui.IStateProvider) { stateProvider .state("<%= appName %>.<%= name %>", { ...
import { Inject } from "<%= decoratorPath %>"; @Inject("$stateProvider") export class <%= pName %>Config { constructor(stateProvider: ng.ui.IStateProvider) { stateProvider .state("<%= appName %>.<%= name %>", { url: "/<%= pName %>", views: { <...
Use controller name instead of function
Use controller name instead of function
TypeScript
mit
Kurtz1993/ngts-cli,Kurtz1993/ngts-cli,Kurtz1993/ngts-cli
--- +++ @@ -1,5 +1,4 @@ import { Inject } from "<%= decoratorPath %>"; -import { <%= pName %>Controller } from "./<%= hName %>.controller"; @Inject("$stateProvider") export class <%= pName %>Config { @@ -10,7 +9,7 @@ views: { <%= viewName %>: { templ...
23235826067be76bdbea742451a4c25c2e595ff1
src/app/components/about/about.component.ts
src/app/components/about/about.component.ts
import { Component, OnInit, AfterViewChecked } from '@angular/core'; import { Title } from '@angular/platform-browser'; import { DocumentRef } from '../../services/documentRef.service'; import { UserConfig } from '../../config/user.config'; @Component({ selector: 'about-component', templateUrl: './about.component....
import { Component, OnInit, AfterViewChecked } from '@angular/core'; import { Title } from '@angular/platform-browser'; import { DocumentRef } from '../../services/documentRef.service'; import { UserConfig } from '../../config/user.config'; @Component({ selector: 'about-component', templateUrl: './about.component....
Change AboutComponent member variables to 'public'
Change AboutComponent member variables to 'public'
TypeScript
mit
bjoberg/brettoberg.com,bjoberg/brettoberg.com,bjoberg/brettoberg.com
--- +++ @@ -10,15 +10,15 @@ }) export class AboutComponent implements OnInit, AfterViewChecked { - private avatar: String = UserConfig.about.avatar; - private descriptionLong: String = UserConfig.about.description_long; - private descriptionShort: String = UserConfig.about.description_short; - private email: ...
0434e64a3cd8be68fc498fa1eec35298d0386582
src/app/file-store/file-store.service.ts
src/app/file-store/file-store.service.ts
import { Injectable } from '@angular/core'; import { AudioPlayerService } from '../audio-player/audio-player.service'; import { ChartFileImporterService } from '../chart-file/importer/chart-file-importer.service'; @Injectable() export class FileStoreService { private $audioFileName: string; private $chartFil...
import { Injectable } from '@angular/core'; import { AudioPlayerService } from '../audio-player/audio-player.service'; import { ChartFileImporterService } from '../chart-file/importer/chart-file-importer.service'; @Injectable() export class FileStoreService { private $audioFileName: string; private $chartFil...
Stop audio when new files are loaded
fix: Stop audio when new files are loaded
TypeScript
mit
nb48/chart-hero,nb48/chart-hero,nb48/chart-hero
--- +++ @@ -19,6 +19,9 @@ } set audioFile(file: File) { + if (this.audioPlayer.playing) { + this.audioPlayer.stop(); + } this.$audioFileName = file.name; this.audioPlayer.audio = URL.createObjectURL(file); } @@ -28,6 +31,9 @@ } set chartFile(file...
48125589a3bb2f4ddac9d5b80cdbd63fcb49543f
tests/SharedElementTransitionGroup.test.tsx
tests/SharedElementTransitionGroup.test.tsx
import {mount} from 'enzyme'; import jasmineEnzyme from 'jasmine-enzyme'; import * as React from 'react'; import {SharedElementTransitionGroup} from '../src'; describe('SharedElementTransitionGroup', () => { const Foo = () => ( <div>Foo</div> ); const Bar = () => ( <div>Bar</div> ); ...
import {mount} from 'enzyme'; import jasmineEnzyme from 'jasmine-enzyme'; import * as React from 'react'; import {SharedElementTransitionGroup} from '../src'; describe('SharedElementTransitionGroup', () => { class Foo extends React.Component { public render() { return <div>Foo</div>; }...
Make child components class components
Make child components class components Stateless components will not work
TypeScript
mit
bkazi/react-layout-transition,bkazi/react-layout-transition,bkazi/react-layout-transition
--- +++ @@ -5,12 +5,17 @@ import {SharedElementTransitionGroup} from '../src'; describe('SharedElementTransitionGroup', () => { - const Foo = () => ( - <div>Foo</div> - ); - const Bar = () => ( - <div>Bar</div> - ); + class Foo extends React.Component { + public render() { + ...
b326b81d845f1adbe5a05370fd840bd21942ea0c
src/dependument.manager.ts
src/dependument.manager.ts
import { IFileSystem } from './filesystem/filesystem.i'; import { ITemplateFileSystem } from './templates/templatefilesystem.i'; import * as Path from 'path'; export class DependumentManager { private _fileSystem : IFileSystem; private _templateFileSystem : ITemplateFileSystem; constructor(fileSystem: IFileSyst...
import { IFileSystem } from './filesystem/filesystem.i'; import { ITemplateFileSystem } from './templates/templatefilesystem.i'; import { IOptions } from './options/options.i'; import * as Path from 'path'; export class DependumentManager { private _fileSystem : IFileSystem; private _templateFileSystem : ITemplate...
Create options object in DependumentManager constructor
Create options object in DependumentManager constructor
TypeScript
unlicense
dependument/dependument,Jameskmonger/dependument,Jameskmonger/dependument,dependument/dependument
--- +++ @@ -1,13 +1,22 @@ import { IFileSystem } from './filesystem/filesystem.i'; import { ITemplateFileSystem } from './templates/templatefilesystem.i'; +import { IOptions } from './options/options.i'; import * as Path from 'path'; export class DependumentManager { private _fileSystem : IFileSystem; pri...
435719f8e8a71218bcae1c1775ab1d080a1a1b99
src/ui/RendererUI.ts
src/ui/RendererUI.ts
/// <reference path="../../typings/threejs/three.d.ts" /> import * as THREE from "three"; import {Node} from "../Graph"; import {IActivatableUI} from "../UI"; export class RendererUI implements IActivatableUI { public graphSupport: boolean = true; private renderer: THREE.WebGLRenderer; private camera: TH...
/// <reference path="../../typings/threejs/three.d.ts" /> import * as THREE from "three"; import {Node} from "../Graph"; import {IActivatableUI} from "../UI"; export class RendererUI implements IActivatableUI { public graphSupport: boolean = true; private renderer: THREE.WebGLRenderer; private camera: TH...
Set renderer size based on container width.
Set renderer size based on container width.
TypeScript
mit
mapillary/mapillary-js,mapillary/mapillary-js
--- +++ @@ -13,8 +13,10 @@ constructor (container: HTMLElement) { this.renderer = new THREE.WebGLRenderer(); - this.renderer.setSize(640, 480); - this.renderer.setClearColor(new THREE.Color(0x202020), 1.0); + + let width: number = container.offsetWidth; + this.renderer.setS...
c3dbfd95306af19d3e296af407766bc29ed33deb
src/parallel/static/partitionParallel.ts
src/parallel/static/partitionParallel.ts
import { IParallelEnumerable } from "../../types" /** * Paritions the Iterable<T> into a tuple of failing and passing arrays * based on the predicate. * @param source Elements to Partition * @param predicate Pass / Fail condition * @returns [pass, fail] */ export const partitionParallel = async <TSource>( so...
import { IParallelEnumerable } from "../../types" /** * Paritions the IParallelEnumerable<T> into a tuple of failing and passing arrays * based on the predicate. * @param source Elements to Partition * @param predicate Pass / Fail condition * @returns [pass, fail] */ export const partitionParallel = async <TSour...
Improve typing for partial parallel
Improve typing for partial parallel
TypeScript
mit
arogozine/LinqToTypeScript,arogozine/LinqToTypeScript
--- +++ @@ -1,14 +1,14 @@ import { IParallelEnumerable } from "../../types" /** - * Paritions the Iterable<T> into a tuple of failing and passing arrays + * Paritions the IParallelEnumerable<T> into a tuple of failing and passing arrays * based on the predicate. * @param source Elements to Partition * @para...
e2e2d808e2c900eef265274a20bc806f9f096c8f
app/src/lib/stores/helpers/onboarding-tutorial.ts
app/src/lib/stores/helpers/onboarding-tutorial.ts
export class OnboardingTutorial { public constructor({ resolveEditor, getEditor }) { this.skipInstallEditor = false this.skipCreatePR = false this.resolveEditor = resolveEditor this.getEditor = getEditor } public getCurrentStep() { // call all other methods to check where we're at } priv...
export class OnboardingTutorial { public constructor({ resolveEditor, getEditor }) { this.skipInstallEditor = false this.skipCreatePR = false this.resolveEditor = resolveEditor this.getEditor = getEditor } public getCurrentStep(repository) { if (!repository.isTutorialRepository) { retur...
Check if repo is tutorial repo
Check if repo is tutorial repo
TypeScript
mit
j-f1/forked-desktop,say25/desktop,say25/desktop,kactus-io/kactus,shiftkey/desktop,shiftkey/desktop,desktop/desktop,artivilla/desktop,desktop/desktop,kactus-io/kactus,desktop/desktop,desktop/desktop,kactus-io/kactus,j-f1/forked-desktop,artivilla/desktop,say25/desktop,kactus-io/kactus,say25/desktop,j-f1/forked-desktop,sh...
--- +++ @@ -6,7 +6,10 @@ this.getEditor = getEditor } - public getCurrentStep() { + public getCurrentStep(repository) { + if (!repository.isTutorialRepository) { + return null + } // call all other methods to check where we're at }
26dce28bf03c337556595e25e79104d8c12796d3
src/renderer/pages/PreferencesPage/Checkbox.tsx
src/renderer/pages/PreferencesPage/Checkbox.tsx
import { actions } from "common/actions"; import { Dispatch, PreferencesState } from "common/types"; import React from "react"; import { hookWithProps } from "renderer/hocs/hook"; import Label from "renderer/pages/PreferencesPage/Label"; class Checkbox extends React.PureComponent<Props> { render() { const { name...
import { actions } from "common/actions"; import { Dispatch, PreferencesState } from "common/types"; import React from "react"; import { hookWithProps } from "renderer/hocs/hook"; import Label from "renderer/pages/PreferencesPage/Label"; class Checkbox extends React.PureComponent<Props> { render() { const { acti...
Fix checkbox in preferences (regression from react-lint spree)
Fix checkbox in preferences (regression from react-lint spree)
TypeScript
mit
itchio/itchio-app,itchio/itch,itchio/itchio-app,leafo/itchio-app,itchio/itchio-app,itchio/itch,itchio/itch,itchio/itch,leafo/itchio-app,itchio/itch,leafo/itchio-app,itchio/itch
--- +++ @@ -6,7 +6,7 @@ class Checkbox extends React.PureComponent<Props> { render() { - const { name, active, children, dispatch, label } = this.props; + const { active, children, label } = this.props; return ( <Label active={active}> @@ -18,7 +18,7 @@ } onChange = (e: React.ChangeE...
aeec996ac9afc43c32b7e13ee12eb4ab072f9727
client/app/account/account.component.spec.ts
client/app/account/account.component.spec.ts
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { AccountComponent } from './account.component'; describe('AccountComponent', () => { let component: AccountComponent; let fixture: ComponentFixture<AccountComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ ...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { AccountComponent } from './account.component'; import { AuthService } from '../services/auth.service'; import { UserService } from '../service...
Add unit test to account component
Add unit test to account component
TypeScript
mit
DavideViolante/Angular-Full-Stack,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular-Full-Stack,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular-Full-Stack,DavideViolante/Angular-Full-Stack
--- +++ @@ -1,14 +1,39 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { By } from '@angular/platform-browser'; +import { FormsModule } from '@angular/forms'; import { AccountComponent } from './account.component'; +import { AuthService } from '../services/auth.service'; +impo...
440dd109a005659be7340a96a2b9203e1c66939c
src/renderer/visualizer/circle-visualizer.ts
src/renderer/visualizer/circle-visualizer.ts
import { setTimeout } from "timers"; import { Visualizer } from "./visualizer"; export default class CircleVisualizer extends Visualizer { constructor(canvas: HTMLCanvasElement) { super(canvas, 32); } public start(): void { super.start(); this.drawFunction = (freqs, times, drawCon...
import { Visualizer } from "./visualizer"; export default class CircleVisualizer extends Visualizer { constructor(canvas: HTMLCanvasElement) { super(canvas, 32); } public start(): void { super.start(); this.drawFunction = (freqs, times, drawContext, canvas) => { const f...
Remove un-nessesary import + prettier
Remove un-nessesary import + prettier
TypeScript
mit
dolanmiu/MMM-awesome-alexa,dolanmiu/MMM-awesome-alexa
--- +++ @@ -1,8 +1,6 @@ -import { setTimeout } from "timers"; import { Visualizer } from "./visualizer"; export default class CircleVisualizer extends Visualizer { - constructor(canvas: HTMLCanvasElement) { super(canvas, 32); }
ee6f5b3312d72d5dc4861feaf32f0900f649a0f3
packages/components/containers/api/DelinquentModal.tsx
packages/components/containers/api/DelinquentModal.tsx
import { c } from 'ttag'; import { getInvoicesPathname } from '@proton/shared/lib/apps/helper'; import { AlertModal, ButtonLike, ModalProps, SettingsLink } from '../../components'; import { useConfig } from '../../hooks'; const DelinquentModal = (props: ModalProps) => { const { APP_NAME } = useConfig(); const...
import { c } from 'ttag'; import { getInvoicesPathname } from '@proton/shared/lib/apps/helper'; import { AlertModal, ButtonLike, ModalProps, SettingsLink } from '../../components'; import { useConfig } from '../../hooks'; const DelinquentModal = (props: ModalProps) => { const { APP_NAME } = useConfig(); const...
Allow to close the delinquent modal
Allow to close the delinquent modal It may be triggered from API handlers in account
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -12,7 +12,7 @@ <AlertModal title={title} buttons={[ - <ButtonLike color="norm" as={SettingsLink} path={getInvoicesPathname(APP_NAME)}> + <ButtonLike color="norm" as={SettingsLink} path={getInvoicesPathname(APP_NAME)} onClick={props.onClose}> ...
ee12b1fa3f7e66ca5e6fe2e804525de8a1725363
packages/xlucene-parser/src/functions/index.ts
packages/xlucene-parser/src/functions/index.ts
import { xLuceneTypeConfig, xLuceneVariables } from '@terascope/types'; import geoBoxFn from './geo/box'; import geoDistanceFn from './geo/distance'; import geoPolygonFn from './geo/polygon'; import geoContainsPointFn from './geo/contains-point'; import { FunctionDefinition, FunctionMethods, FunctionNode } from '../int...
import { xLuceneTypeConfig, xLuceneVariables } from '@terascope/types'; import geoBoxFn from './geo/box'; import geoDistanceFn from './geo/distance'; import geoPolygonFn from './geo/polygon'; import geoContainsPointFn from './geo/contains-point'; import { FunctionDefinition, FunctionMethods, FunctionNode } from '../int...
Fix unknown xLucene function error
Fix unknown xLucene function error
TypeScript
apache-2.0
terascope/teraslice,terascope/teraslice,terascope/teraslice,terascope/teraslice
--- +++ @@ -26,7 +26,7 @@ }): FunctionMethods { const fnType = xLuceneFunctions[node.name] as FunctionDefinition|undefined; if (fnType == null) { - throw new Error(`Could not find an xLucene function with name "${name}"`); + throw new TypeError(`Unknown xLucene function "${node.name}"`); ...
a985dda35dc605e345656bd0db6aa3413c79bd82
src/app/editor/modal-maps-list/filtermaps.pipe.ts
src/app/editor/modal-maps-list/filtermaps.pipe.ts
import { Pipe, PipeTransform } from '@angular/core'; import { OptionMap } from "../../map/map"; @Pipe({name: 'filterMaps'}) export class FilterMapsPipe implements PipeTransform { transform(maps: OptionMap[], query: string, activePage: number): OptionMap[] { const filteredMaps = maps .filter( m => ...
import { Pipe, PipeTransform } from '@angular/core'; import { OptionMap } from "../../map/map"; @Pipe({name: 'filterMaps'}) export class FilterMapsPipe implements PipeTransform { transform(maps: OptionMap[], query: string, activePage: number): OptionMap[] { const filteredMaps = maps .filter( m => ...
Fix if title is numeric
Fix if title is numeric
TypeScript
mit
ABAPlan/abaplan-core,ABAPlan/abaplan-core,ABAPlan/abaplan-core
--- +++ @@ -14,7 +14,7 @@ if (m.uid === undefined){ m.uid = -1; } - return m.title.toLowerCase().includes(query.toLowerCase()) || m.uid.toString().includes(query); + return m.title.toString().toLowerCase().includes(query.toLowerCase()) || m.uid.toString().includes(...
0dcd6d314bc4849983e21ae835c967d952dbcb9e
src/lib/log.ts
src/lib/log.ts
/** * Simple logging system */ import { format } from 'util'; export function debug(...args: any[]) { return _debug(...args); } export function die(...args: any[]) { error(...args).then(() => { process.exit(1); }); } export function error(...args: any[]) { return log(...args); } export function log(...args...
/** * Simple logging system */ import { format } from 'util'; export function debug(...args: any[]) { return _debug(...args); } export function die(...args: any[]) { error(...args).then(() => { process.exit(1); }); } export function error(...args: any[]) { return log('Error:', ...args); } export function l...
Add 'Error:' to CLI error messages
Add 'Error:' to CLI error messages
TypeScript
mit
jason0x43/vim-tss
--- +++ @@ -15,7 +15,7 @@ } export function error(...args: any[]) { - return log(...args); + return log('Error:', ...args); } export function log(...args: any[]) {
d7be8867581c6582e54f911073a65a362b7f4ece
src/navigation/breadcrumbs/breadcrumbs-service.ts
src/navigation/breadcrumbs/breadcrumbs-service.ts
export default class BreadcrumbsService { constructor() { this._handlers = []; this._items = []; this._activeItem = ''; } listen(handler) { this._handlers.push(handler); return () => { this._handlers.splice(this._handlers.indexOf(handler), 1); }; } _notify() { this._handler...
export default class BreadcrumbsService { private _handlers = []; private _items = []; private _activeItem = ''; listen(handler) { this._handlers.push(handler); return () => { this._handlers.splice(this._handlers.indexOf(handler), 1); }; } _notify() { this._handlers.forEach(handler =...
Fix TypeScript compilation error in BreadcrumbsService.
Fix TypeScript compilation error in BreadcrumbsService.
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -1,9 +1,7 @@ export default class BreadcrumbsService { - constructor() { - this._handlers = []; - this._items = []; - this._activeItem = ''; - } + private _handlers = []; + private _items = []; + private _activeItem = ''; listen(handler) { this._handlers.push(handler);
65d2d8bb6734c22270de847f6ba6f838879de931
vscode/init.ts
vscode/init.ts
// @ts-ignore: ignore vscode module import import { extensions, ExtensionContext } from 'vscode'; // @ts-ignore: ignore Path module import import * as path from 'path'; // @ts-ignore: ignore child_process module import import { exec } from 'child_process'; // Export full list of installed extensions function exportExt...
// @ts-ignore: ignore vscode import import { ExtensionContext } from 'vscode'; export function init(context: ExtensionContext): void { // Do nothing for now }
Undo broken extension sync functionality
Undo broken extension sync functionality
TypeScript
mit
caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles
--- +++ @@ -1,23 +1,6 @@ -// @ts-ignore: ignore vscode module import -import { extensions, ExtensionContext } from 'vscode'; -// @ts-ignore: ignore Path module import -import * as path from 'path'; -// @ts-ignore: ignore child_process module import -import { exec } from 'child_process'; - -// Export full list of inst...
1cecdfe5b4bd211967f2fe28c0194190e1317978
ui/src/components/Footer.tsx
ui/src/components/Footer.tsx
import React, {FunctionComponent} from 'react' export const Footer: FunctionComponent = () => { return ( <div id="footer"> <hr /> Lovingly crafted by{' '} <a href="http://github.com/coddingtonbear">Adam Coddington</a> and others. See our <a href="/privacy-policy">Privacy Policy</a> and{' ...
import React, {FunctionComponent} from 'react' import {Link} from 'react-router-dom' export const Footer: FunctionComponent = () => { return ( <div id="footer"> <hr /> Lovingly crafted by{' '} <a href="http://github.com/coddingtonbear">Adam Coddington</a> and others. See our <Link to="/pr...
Use in-page linking to get to TOS and PP.
Use in-page linking to get to TOS and PP.
TypeScript
agpl-3.0
coddingtonbear/inthe.am,coddingtonbear/inthe.am,coddingtonbear/inthe.am,coddingtonbear/inthe.am,coddingtonbear/inthe.am
--- +++ @@ -1,4 +1,5 @@ import React, {FunctionComponent} from 'react' +import {Link} from 'react-router-dom' export const Footer: FunctionComponent = () => { return ( @@ -6,8 +7,8 @@ <hr /> Lovingly crafted by{' '} <a href="http://github.com/coddingtonbear">Adam Coddington</a> and others....
8421e7800feff33466426920807893d38b52c77b
lib/core-server/src/utils/get-manager-builder.ts
lib/core-server/src/utils/get-manager-builder.ts
import path from 'path'; import { getInterpretedFile, serverRequire, Options } from '@storybook/core-common'; export async function getManagerBuilder(configDir: Options['configDir']) { const main = path.resolve(configDir, 'main'); const mainFile = getInterpretedFile(main); const { core } = mainFile ? serverRequi...
import path from 'path'; import { getInterpretedFile, serverRequire, Options } from '@storybook/core-common'; export async function getManagerBuilder(configDir: Options['configDir']) { const main = path.resolve(configDir, 'main'); const mainFile = getInterpretedFile(main); const { core } = mainFile ? serverRequi...
Resolve configured manager builder relative to user's project
Resolve configured manager builder relative to user's project
TypeScript
mit
storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook
--- +++ @@ -7,7 +7,9 @@ const { core } = mainFile ? serverRequire(mainFile) : { core: null }; const builderPackage = - core?.builder === 'webpack5' ? '@storybook/manager-webpack5' : '@storybook/manager-webpack4'; + core?.builder === 'webpack5' + ? require.resolve('@storybook/manager-webpack5', { pa...
84255a5d1cb94d38e3ac1ce47ede5e276f8b381c
src/reactors/launch/launch-type-for-action.ts
src/reactors/launch/launch-type-for-action.ts
import { join } from "path"; import butler from "../../util/butler"; import { devNull } from "../../logger"; import Context from "../../context"; export type LaunchType = "native" | "html" | "external" | "native" | "shell"; export default async function launchTypeForAction( ctx: Context, appPath: string, action...
import butler from "../../util/butler"; import { devNull } from "../../logger"; import Context from "../../context"; import expandManifestPath from "./expand-manifest-path"; export type LaunchType = "native" | "html" | "external" | "native" | "shell"; export default async function launchTypeForAction( ctx: Context,...
Fix {{EXT}} usage in manifests
Fix {{EXT}} usage in manifests
TypeScript
mit
itchio/itch,itchio/itch,itchio/itchio-app,itchio/itch,itchio/itch,leafo/itchio-app,itchio/itchio-app,leafo/itchio-app,itchio/itch,leafo/itchio-app,itchio/itchio-app,itchio/itch
--- +++ @@ -1,7 +1,7 @@ -import { join } from "path"; import butler from "../../util/butler"; import { devNull } from "../../logger"; import Context from "../../context"; +import expandManifestPath from "./expand-manifest-path"; export type LaunchType = "native" | "html" | "external" | "native" | "shell"; @@ ...
99597bdce5e5c4ddf5abc330bdd7d2b58fb7aabf
packages/delir/domain/Renderer/operations.ts
packages/delir/domain/Renderer/operations.ts
import { operation } from '@ragg/fleur' import { remote } from 'electron' import { join } from 'path' import * as EditorOps from '../Editor/operations' import { RendererActions } from './actions' import FSPluginLoader from './FSPluginLoader' export const loadPlugins = operation(async (context) => { const userDir ...
import { operation } from '@ragg/fleur' import { remote } from 'electron' import { join } from 'path' import * as EditorOps from '../Editor/operations' import { RendererActions } from './actions' import FSPluginLoader from './FSPluginLoader' export const loadPlugins = operation(async (context) => { const userDir ...
Enable to load plugin in development
Enable to load plugin in development
TypeScript
mit
Ragg-/Delir,Ragg-/Delir,Ragg-/Delir,Ragg-/Delir
--- +++ @@ -11,7 +11,7 @@ const loader = new FSPluginLoader() const loaded = [ - // await loader.loadPackageDir(join(remote.app.getAppPath(), '/plugins')), + await (__DEV__ ? loader.loadPackageDir(join((global as any).__dirname, '../plugins')) : []), await loader.loadPackageDir(join...
5d6a98827d8676deee126d757b08b3dbeae7526b
test/setup.ts
test/setup.ts
import * as jsdom from "jsdom"; declare var global: any; const exposedProperties = ["window", "navigator", "document"]; const doc = jsdom.jsdom("<!doctype html><html><body></body></html>"); global.document = doc; global.window = doc.defaultView; Object.keys(document.defaultView).forEach((property: string) => { ...
import * as jsdom from "jsdom"; import { XMLHttpRequest } from "xmlhttprequest"; declare var global: any; const exposedProperties = ["window", "navigator", "document"]; const doc = jsdom.jsdom("<!doctype html><html><body></body></html>", { virtualConsole: jsdom.createVirtualConsole().sendTo(console), }); global...
Replace jsdom XMLHttpRequest implementation and link Node and jsdom consoles.
Replace jsdom XMLHttpRequest implementation and link Node and jsdom consoles.
TypeScript
mit
Josh-ES/react-here-maps,Josh-ES/react-here-maps
--- +++ @@ -1,13 +1,19 @@ import * as jsdom from "jsdom"; +import { XMLHttpRequest } from "xmlhttprequest"; declare var global: any; const exposedProperties = ["window", "navigator", "document"]; -const doc = jsdom.jsdom("<!doctype html><html><body></body></html>"); +const doc = jsdom.jsdom("<!doctype html><...
78e93a3a0fe6a7b2b722deb1ade83cfa424db681
public/app/core/components/Tooltip/Popper.tsx
public/app/core/components/Tooltip/Popper.tsx
import React, { PureComponent } from 'react'; import { Manager, Popper as ReactPopper, Reference } from 'react-popper'; interface Props { renderContent: (content: any) => any; show: boolean; placement?: any; content: string | ((props: any) => JSX.Element); refClassName?: string; } class Popper extends Pure...
import React, { PureComponent } from 'react'; import { Manager, Popper as ReactPopper, Reference } from 'react-popper'; import Transition from 'react-transition-group/Transition'; const defaultTransitionStyles = { transition: 'opacity 200ms linear', opacity: 0, }; const transitionStyles = { exited: { opacity: ...
Add fade in transition to tooltip
panel-header: Add fade in transition to tooltip
TypeScript
agpl-3.0
grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana
--- +++ @@ -1,5 +1,18 @@ import React, { PureComponent } from 'react'; import { Manager, Popper as ReactPopper, Reference } from 'react-popper'; +import Transition from 'react-transition-group/Transition'; + +const defaultTransitionStyles = { + transition: 'opacity 200ms linear', + opacity: 0, +}; + +const trans...
715a3359c7ed33ec17f2bc1ca2a7698cce1315d5
APM/src/app/app.component.ts
APM/src/app/app.component.ts
import { Component } from '@angular/core'; @Component({ selector: 'pm-root', template: ` <div> <h1>{{pageTitle}}</h1> <pm-products></pm-products> </div> ` }) export class AppComponent { pageTitle: string = 'Acme Product Management'; }
import { Component } from '@angular/core'; @Component({ selector: 'pm-root', template: ` <div> <h1>{{pageTitle}}</h1> <pm-products></pm-products> </div> ` }) export class AppComponent { pageTitle: string = 'Acmeh Product Management'; }
Test commit for new username
Test commit for new username
TypeScript
mit
GugaGongadze/Angular-GettingStarted,GugaGongadze/Angular-GettingStarted,GugaGongadze/Angular-GettingStarted
--- +++ @@ -11,5 +11,5 @@ }) export class AppComponent { - pageTitle: string = 'Acme Product Management'; + pageTitle: string = 'Acmeh Product Management'; }
6678a73ea74d0cea54ad50f4b9e82ecf8535f639
app/src/lib/feature-flag.ts
app/src/lib/feature-flag.ts
const Disable = false /** * Enables the application to opt-in for preview features based on runtime * checks. This is backed by the GITHUB_DESKTOP_PREVIEW_FEATURES environment * variable, which is checked for non-development environments. */ function enableDevelopmentFeatures(): boolean { if (Disable) { retu...
const Disable = false /** * Enables the application to opt-in for preview features based on runtime * checks. This is backed by the GITHUB_DESKTOP_PREVIEW_FEATURES environment * variable, which is checked for non-development environments. */ function enableDevelopmentFeatures(): boolean { if (Disable) { retu...
Document the function that does the same thing the last one did
Document the function that does the same thing the last one did
TypeScript
mit
kactus-io/kactus,desktop/desktop,shiftkey/desktop,kactus-io/kactus,say25/desktop,shiftkey/desktop,shiftkey/desktop,artivilla/desktop,kactus-io/kactus,say25/desktop,artivilla/desktop,desktop/desktop,shiftkey/desktop,artivilla/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,kactus-io/kactus,j-f1/forked-deskto...
--- +++ @@ -31,6 +31,7 @@ return enableDevelopmentFeatures() } +/** Should the new Compare view be enabled? */ export function enableCompareSidebar(): boolean { return true }
c66d734667d5c5eb911469f70b665c4434f9c92b
app/src/services/EnvService.ts
app/src/services/EnvService.ts
/* * The MIT License (MIT) * Copyright (c) 2016 Heat Ledger Ltd. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use...
/* * The MIT License (MIT) * Copyright (c) 2016 Heat Ledger Ltd. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use...
Load ssl root certs on nodejs detection
Load ssl root certs on nodejs detection
TypeScript
mit
Heat-Ledger-Ltd/heat-ui,Heat-Ledger-Ltd/heat-ui,Heat-Ledger-Ltd/heat-ui
--- +++ @@ -30,6 +30,7 @@ constructor() { try { if (typeof window['require'] == 'function' && window['require']('child_process')) { + require('ssl-root-cas').inject(); this.type = EnvType.NODEJS; } else {
87a841e7c77f0ebf42ab161540290b0b873f8074
app/src/ui/notification/new-commits-banner.tsx
app/src/ui/notification/new-commits-banner.tsx
import * as React from 'react' import { ButtonGroup } from '../lib/button-group' import { Button } from '../lib/button' import { Ref } from '../lib/ref' import { Octicon, OcticonSymbol } from '../octicons' import { Branch } from '../../models/branch' interface INewCommitsBannerProps { /** * The number of commits ...
import * as React from 'react' import { ButtonGroup } from '../lib/button-group' import { Button } from '../lib/button' import { Ref } from '../lib/ref' import { Octicon, OcticonSymbol } from '../octicons' import { Branch } from '../../models/branch' interface INewCommitsBannerProps { /** * The number of commits ...
Add just a bit more context to the prop name
Add just a bit more context to the prop name
TypeScript
mit
artivilla/desktop,say25/desktop,j-f1/forked-desktop,say25/desktop,say25/desktop,shiftkey/desktop,j-f1/forked-desktop,kactus-io/kactus,desktop/desktop,kactus-io/kactus,artivilla/desktop,j-f1/forked-desktop,shiftkey/desktop,j-f1/forked-desktop,artivilla/desktop,shiftkey/desktop,desktop/desktop,kactus-io/kactus,desktop/de...
--- +++ @@ -9,7 +9,7 @@ /** * The number of commits behind `branch` */ - readonly commitsBehind: number + readonly commitsBehindBaseBranch: number /** * The target branch that will accept commits @@ -33,7 +33,7 @@ <div className="notification-banner diverge-banner"> <div classNam...
07d3e2e31e70ec533ff2a0e176aebda6484a7b59
adapter/adapter-ts.ts
adapter/adapter-ts.ts
// Target interface Print { printWeak(): string; printStrong(): string; } // Adaptee class Banner { private banner: string; constructor(banner: string) { this.banner = banner; } printWithParen(): string { return `(${this.banner})`; } printWithAster(): string { return `*${this.banner}*`; ...
// Target interface Print { printWeak(): string; printStrong(): string; } // Adaptee class Banner { private banner: string; constructor(banner: string) { this.banner = banner; } printWithParen(): string { return `(${this.banner})`; } printWithAster(): string { return `*${this.banner}*`; ...
Add one more implementation for adapter pattern
Add one more implementation for adapter pattern
TypeScript
mit
Erichain/design-patterns-in-typescript,Erichain/design-patterns-in-typescript
--- +++ @@ -36,6 +36,22 @@ } } +/*class PrintBanner implements Print { + private banner: Banner; + + constructor(banner: Banner) { + this.banner = banner; + } + + printWeak(): string { + return this.banner.printWithParen(); + } + + printStrong(): string { + return this.banner.printWithParen(); + ...
178516d06f507a2bf7f2c97af41e1e64fb000ff4
packages/ivi-test/src/dom.ts
packages/ivi-test/src/dom.ts
import { VNode, render, update } from "ivi"; import { triggerNextTick, triggerNextFrame } from "./scheduler"; import { reset } from "./reset"; import { VNodeWrapper } from "./vdom"; let _container: HTMLDivElement | null = null; export class DOMRenderer { private container: HTMLDivElement; constructor(container: ...
import { VNode, render, update } from "ivi"; import { triggerNextTick, triggerNextFrame } from "./scheduler"; import { reset } from "./reset"; import { VNodeWrapper } from "./vdom"; let _container: HTMLDivElement | null = null; /** * DOMRenderer is a helper object for testing Virtual DOM in a real DOM. */ export cl...
Add comments in ivi-test package
Add comments in ivi-test package
TypeScript
mit
ivijs/ivi,ivijs/ivi
--- +++ @@ -5,6 +5,9 @@ let _container: HTMLDivElement | null = null; +/** + * DOMRenderer is a helper object for testing Virtual DOM in a real DOM. + */ export class DOMRenderer { private container: HTMLDivElement; @@ -12,24 +15,46 @@ this.container = container; } + /** + * render renders a V...
4fe9e9368ad35b205038ccf4836fc4319975dd98
app/util/list-util.ts
app/util/list-util.ts
/** * @author Daniel de Oliveira */ export class ListUtil { /** * Generate a new list with elements which are contained in l but not in r */ public static subtract(l: string[], r: string[]): string[] { return l.filter(item => r.indexOf(item) === -1); } public static add(list: str...
/** * @author Daniel de Oliveira */ export class ListUtil { /** * Generate a new list with elements which are contained in l but not in r */ public static subtract(l: string[], r: string[]): string[] { return l.filter(item => r.indexOf(item) === -1); } public static add(list: str...
Make short and side effect free
Make short and side effect free
TypeScript
apache-2.0
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
--- +++ @@ -20,10 +20,6 @@ public static remove(list: string[], item: string): string[] { - const _list = list.slice(0); - const index: number = _list.indexOf(item); - if (index == -1) return _list; - _list.splice(index, 1); - return _list; + return list.filter(itm =...
acb3b52acf600cd127a068f00b62386134c0ab2f
applications/mail/src/app/components/message/extras/calendar/ExtraEventSummary.tsx
applications/mail/src/app/components/message/extras/calendar/ExtraEventSummary.tsx
import { RequireSome } from '@proton/shared/lib/interfaces/utils'; import { InvitationModel } from '../../../../helpers/calendar/invite'; import { getAttendeeSummaryText, getHasBeenUpdatedText, getOrganizerSummaryText, } from '../../../../helpers/calendar/summary'; export const getSummaryContent = (firstLi...
import { RequireSome } from '@proton/shared/lib/interfaces/utils'; import { InvitationModel } from '../../../../helpers/calendar/invite'; import { getAttendeeSummaryText, getHasBeenUpdatedText, getOrganizerSummaryText, } from '../../../../helpers/calendar/summary'; export const getSummaryContent = (firstLi...
Add text-break class to the ics widget summary to handle long contact names
Add text-break class to the ics widget summary to handle long contact names CALWEB-2880
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -20,7 +20,7 @@ <span>{firstLine || secondLine}</span> ); - return <div className="mt0-5 mb0-5 rounded bordered bg-weak p0-5 flex flex-column">{content}</div>; + return <div className="mt0-5 mb0-5 rounded bordered bg-weak p0-5 flex flex-column text-break">{content}</div>; }; ...
095c26b18ce0038a5893637dd7222b149e5641dd
test/setup.ts
test/setup.ts
/// <reference path="./types/index.d.ts" /> import expect = require('expect.js'); import * as assert from 'assert'; import * as tsr from '../src/index'; import * as util from './util'; global.expect = expect; global.assert = assert; global.tsr = tsr; global.util = util;
/// <reference path="./types/globals.d.ts" /> import expect = require('expect.js'); import * as assert from 'assert'; import * as tsr from '../src/index'; import * as util from './util'; global.expect = expect; global.assert = assert; global.tsr = tsr; global.util = util;
Fix loading types in test environment
Fix loading types in test environment
TypeScript
mit
fabiandev/ts-runtime,fabiandev/ts-runtime,fabiandev/ts-runtime
--- +++ @@ -1,4 +1,4 @@ -/// <reference path="./types/index.d.ts" /> +/// <reference path="./types/globals.d.ts" /> import expect = require('expect.js'); import * as assert from 'assert';
3270f35ffb5241c2af5dd13bb413bfae2c63bdef
src/v2/Apps/Consign/Components/ConsignMeta.tsx
src/v2/Apps/Consign/Components/ConsignMeta.tsx
import React from "react" import { Link, Meta, Title } from "react-head" import { getENV } from "v2/Utils/getENV" export const ConsignMeta: React.FC = () => { const title = `WIP Consign Title | Artsy` // FIXME: Need real title const href = `${getENV("APP_URL")}/consign2` // FIXME: consign2 const metaDescription ...
import React from "react" import { Link, Meta, Title } from "react-head" import { getENV } from "v2/Utils/getENV" export const ConsignMeta: React.FC = () => { const title = `Sell Artwork with Artsy | Art Consignment | Artsy` const href = `${getENV("APP_URL")}/consign2` // FIXME: consign2 const metaDescription = ...
Update title and meta description for /consign2
Update title and meta description for /consign2
TypeScript
mit
joeyAghion/force,artsy/force,joeyAghion/force,joeyAghion/force,joeyAghion/force,artsy/force-public,artsy/force,artsy/force-public,artsy/force,artsy/force
--- +++ @@ -3,9 +3,10 @@ import { getENV } from "v2/Utils/getENV" export const ConsignMeta: React.FC = () => { - const title = `WIP Consign Title | Artsy` // FIXME: Need real title + const title = `Sell Artwork with Artsy | Art Consignment | Artsy` const href = `${getENV("APP_URL")}/consign2` // FIXME: consi...
99c4c75dfc396ca4aae26c16ea977e1765c25a89
react-redux-todos/src/containers/FilterLink.ts
react-redux-todos/src/containers/FilterLink.ts
import { connect } from 'react-redux' import { Dispatch } from 'redux' import { createSetVisibilityFilter } from '../actions/createSetVisibilityFilter' import { Filter } from '../model/Filter' import { Link } from '../components/Link' import { RootStore } from '../model/RootStore' interface StateProps { active: boo...
import { connect } from 'react-redux' import { Dispatch } from 'redux' import { createSetVisibilityFilter } from '../actions/createSetVisibilityFilter' import { Filter } from '../model/Filter' import { Link } from '../components/Link' import { RootStore } from '../model/RootStore' interface StateProps { active: boo...
Fix the build and clean up
Fix the build and clean up
TypeScript
unlicense
janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations
--- +++ @@ -18,18 +18,6 @@ filter: Filter } -interface LinkPropTypes { - active: boolean, - children: React.ReactChildren, - onClick: () => void -} - -interface MergedProps { - active: boolean, - filter: Filter, - onClick: () => void -} - const mapStateToProps = (state: RootStore, ownProps: OwnProps): St...
ca7d4d6c176b7c52ff0c224d3baf804c6e047b6a
react-redux-todos/src/containers/FilterLink.ts
react-redux-todos/src/containers/FilterLink.ts
import { connect } from 'react-redux' import { Dispatch } from 'redux' import { createSetVisibilityFilter } from '../actions/createSetVisibilityFilter' import { Filter } from '../model/Filter' import { Link } from '../components/Link' import { RootStore } from '../model/RootStore' interface OwnProps { filter: Filte...
import { connect } from 'react-redux' import { Dispatch } from 'redux' import { createSetVisibilityFilter } from '../actions/createSetVisibilityFilter' import { Filter } from '../model/Filter' import { Link } from '../components/Link' import { RootStore } from '../model/RootStore' interface FilterLinkProps { filter...
Use more explicit name for properties
Use more explicit name for properties
TypeScript
unlicense
janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations
--- +++ @@ -6,17 +6,17 @@ import { Link } from '../components/Link' import { RootStore } from '../model/RootStore' -interface OwnProps { +interface FilterLinkProps { filter: Filter } -const mapStateToProps = (state: RootStore, ownProps: OwnProps) => { +const mapStateToProps = (state: RootStore, ownProps: Fi...
4f75e0306d28d91c1d2dda36a6dd286862a61be2
src/property-decorators/logger.ts
src/property-decorators/logger.ts
export interface LoggerPropertyOptions { getter?: boolean; prefix?: string; setter?: boolean; } export function LoggerProperty(loggerOptions?: LoggerPropertyOptions) { const getter = (loggerOptions && 'getter' in loggerOptions) ? !!loggerOptions.getter : true; const prefix = (loggerOptions && logge...
export interface LoggerPropertyOptions { /** Flag to log property accesses (getter) */ getter?: boolean; /** String to prepend to the log trace */ prefix?: string; /** Flag to log property assignments (setter) */ setter?: boolean; } /** * Decorator to log property accesses (getters and/or se...
Update decorator comments (interface and function)
Update decorator comments (interface and function)
TypeScript
mit
semagarcia/typescript-decorators,semagarcia/typescript-decorators
--- +++ @@ -1,9 +1,21 @@ export interface LoggerPropertyOptions { + /** Flag to log property accesses (getter) */ getter?: boolean; + + /** String to prepend to the log trace */ prefix?: string; + + /** Flag to log property assignments (setter) */ setter?: boolean; } +/** + * Decorator to ...
f492d18cf2fe51d7615ecaea65b98b4b068e4780
src/pages/groupComparison/ClinicalDataUtils.ts
src/pages/groupComparison/ClinicalDataUtils.ts
import { getServerConfig } from 'config/config'; export function getComparisonCategoricalNaValue(): string[] { const rawString = getServerConfig().comparison_categorical_na_values; const naValues = rawString.split(','); return naValues; }
import { getServerConfig } from 'config/config'; const NA_VALUES_DELIMITER = '|'; export function getComparisonCategoricalNaValue(): string[] { const rawString = getServerConfig().comparison_categorical_na_values; const naValues = rawString.split(NA_VALUES_DELIMITER); return naValues; }
Change comparison page na category delimiter
Change comparison page na category delimiter
TypeScript
agpl-3.0
cBioPortal/cbioportal-frontend,cBioPortal/cbioportal-frontend,cBioPortal/cbioportal-frontend,cBioPortal/cbioportal-frontend,alisman/cbioportal-frontend,alisman/cbioportal-frontend,alisman/cbioportal-frontend,alisman/cbioportal-frontend,alisman/cbioportal-frontend,cBioPortal/cbioportal-frontend,cBioPortal/cbioportal-fro...
--- +++ @@ -1,7 +1,9 @@ import { getServerConfig } from 'config/config'; + +const NA_VALUES_DELIMITER = '|'; export function getComparisonCategoricalNaValue(): string[] { const rawString = getServerConfig().comparison_categorical_na_values; - const naValues = rawString.split(','); + const naValues = ra...
423483b825a2505384f2c18a251d787eaf6534fd
packages/common/modules/i18n/index.native.ts
packages/common/modules/i18n/index.native.ts
import i18n from 'i18next'; import * as Expo from 'expo'; import { reactI18nextModule } from 'react-i18next'; import settings from '../../../../settings'; import { addResourcesI18n } from '../../utils'; import modules from '..'; const languageDetector = { type: 'languageDetector', async: true, // flags below dete...
import i18n from 'i18next'; import * as Expo from 'expo'; import { reactI18nextModule } from 'react-i18next'; import settings from '../../../../settings'; import { addResourcesI18n } from '../../utils'; import modules from '..'; const languageDetector = { type: 'languageDetector', async: true, // flags below dete...
Use new Expo API to get current locale
Use new Expo API to get current locale Fixes: #904
TypeScript
mit
sysgears/apollo-fullstack-starter-kit,sysgears/apollo-universal-starter-kit,sysgears/apollo-universal-starter-kit,sysgears/apollo-universal-starter-kit,sysgears/apollo-universal-starter-kit
--- +++ @@ -11,7 +11,7 @@ async: true, // flags below detection to be async detect: async (callback: (lang: string) => string) => { const lng = await Expo.SecureStore.getItemAsync('i18nextLng'); - return callback(lng || (await (Expo as any).Localization.getCurrentLocaleAsync()).replace('_', '-')); + ...
f779d76ed73db107c45271ff1ee12f6a62a636bf
react-json-pretty/index.d.ts
react-json-pretty/index.d.ts
// Type definitions for react-json-pretty 1.3 // Project: https://github.com/chenckang/react-json-pretty // Definitions by: Karol Janyst <https://github.com/LKay> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { ComponentClass, HTMLProps } from "react"; export as namespace JSONPretty; expo...
// Type definitions for react-json-pretty 1.3 // Project: https://github.com/chenckang/react-json-pretty // Definitions by: Karol Janyst <https://github.com/LKay> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 import { ComponentClass, HTMLProps } from "react"; export as ...
Set target compiler to 2.1
Set target compiler to 2.1
TypeScript
mit
aciccarello/DefinitelyTyped,AgentME/DefinitelyTyped,YousefED/DefinitelyTyped,minodisk/DefinitelyTyped,magny/DefinitelyTyped,johan-gorter/DefinitelyTyped,dsebastien/DefinitelyTyped,johan-gorter/DefinitelyTyped,aciccarello/DefinitelyTyped,minodisk/DefinitelyTyped,AgentME/DefinitelyTyped,abbasmhd/DefinitelyTyped,YousefED/...
--- +++ @@ -2,6 +2,7 @@ // Project: https://github.com/chenckang/react-json-pretty // Definitions by: Karol Janyst <https://github.com/LKay> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { ComponentClass, HTMLProps } from "react";
a7c0819fcc14e82b5d43a9a41a946d6ec5ff6627
test/interactions/theme_colors/theme_colors_test.ts
test/interactions/theme_colors/theme_colors_test.ts
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import {assert} from 'chai'; import {$$, waitFor} from '../../shared/helper.js'; import {loadComponentDocExample} from '../helpers/shared.js'; async func...
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import {assert} from 'chai'; import {$$, waitFor} from '../../shared/helper.js'; import {loadComponentDocExample} from '../helpers/shared.js'; async func...
Fix failing theme_color interaction test
Fix failing theme_color interaction test This test was failing as we have added more colors. This doesn't yet matter as these tests are yet to run on CQ, but they will soon! TBR=aerotwist@chromium.org Change-Id: I7f1d709a0fbdc3c2d8b23f345a720cad9eb2d8d9 Reviewed-on: https://chromium-review.googlesource.com/c/devtool...
TypeScript
bsd-3-clause
ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend
--- +++ @@ -21,7 +21,7 @@ await loadComponentDocExample('theme_colors/basic.html'); const lightModeVariables = await getListOfColorsFromList('.light-mode'); const darkModeVariables = await getListOfColorsFromList('.dark-mode'); - assert.lengthOf(lightModeVariables, 18); + assert.strictEqual(light...
e7296892fed3ac93ea8ffe9f9680c78427563375
src/logger.ts
src/logger.ts
import chalk from 'chalk' export interface ILogger { log(...args: any[]): void warn(...args: any[]): void error(...args: any[]): void } export class Logger implements ILogger { public title(...args: any[]) { console.log(chalk.bold(...args)) } public log(...args: any[]) { console.log(...args) } ...
import chalk from 'chalk' export interface ILogger { log(...args: any[]): void warn(...args: any[]): void error(...args: any[]): void } export class Logger implements ILogger { public log(...args: any[]) { console.log(...args) } public warn(...args: any[]) { console.warn(chalk.yellow(...args)) }...
Remove title method from Logger
Remove title method from Logger
TypeScript
mit
pawelgalazka/microcli,pawelgalazka/microcli
--- +++ @@ -7,9 +7,6 @@ } export class Logger implements ILogger { - public title(...args: any[]) { - console.log(chalk.bold(...args)) - } public log(...args: any[]) { console.log(...args) }