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 |
|---|---|---|---|---|---|---|---|---|---|---|
e178e7852c209b362d4e3105c12d0cefa6e1d199 | tests/cases/fourslash/completionListInObjectLiteral.ts | tests/cases/fourslash/completionListInObjectLiteral.ts | /// <reference path="fourslash.ts" />
////interface point {
//// x: number;
//// y: number;
////}
////interface thing {
//// name: string;
//// pos: point;
////}
////var t: thing;
////t.pos = { x: 4, y: 3 + t./**/ };
// Bug 548885: Incorrect member listing in object literal
goTo.marker();
v... | Add regression test for object literal member list | Add regression test for object literal member list
| TypeScript | apache-2.0 | tarruda/typescript,rbirkby/typescript,mbrowne/typescript-dci,fdecampredon/jsx-typescript-old-version,mbebenita/shumway.ts,tarruda/typescript,popravich/typescript,hippich/typescript,guidobouman/typescript,guidobouman/typescript,mbrowne/typescript-dci,mbrowne/typescript-dci,rbirkby/typescript,vcsjones/typescript,turbulen... | ---
+++
@@ -0,0 +1,19 @@
+/// <reference path="fourslash.ts" />
+
+////interface point {
+//// x: number;
+//// y: number;
+////}
+////interface thing {
+//// name: string;
+//// pos: point;
+////}
+////var t: thing;
+////t.pos = { x: 4, y: 3 + t./**/ };
+
+// Bug 548885: Incorrect member listing in objec... | |
cf2889c63f16d36079eaa15d8d3cbe9459d70d3f | src/functions/alphabets.ts | src/functions/alphabets.ts | import { Alphabet, Letter } from './types'
import alphabets from '!!raw-loader!./alphabets.toml'
export function getLetter(alphabets: string[], letter: string): Letter {
/**
* Finds the entry with value `letter` and returns it.
*
* @param alphabets: the alphabets from which to search. They will be
* comb... | Create function for letter retrieval | Create function for letter retrieval
| TypeScript | mit | rossjrw/gallifreyo,rossjrw/gallifreyo,rossjrw/gallifreyo | ---
+++
@@ -0,0 +1,14 @@
+import { Alphabet, Letter } from './types'
+import alphabets from '!!raw-loader!./alphabets.toml'
+
+export function getLetter(alphabets: string[], letter: string): Letter {
+ /**
+ * Finds the entry with value `letter` and returns it.
+ *
+ * @param alphabets: the alphabets from whic... | |
80a23effefd61a98d1a4a5e2bd46a5829c2bd61d | test/reducers/slides/actions/updateCurrentPlugin-spec.ts | test/reducers/slides/actions/updateCurrentPlugin-spec.ts | import { expect } from 'chai';
import { UPDATE_CURRENT_PLUGIN } from '../../../../app/constants/slides.constants';
export default function(initialState: any, reducer: any, slide: any) {
const _initialState = [
{
plugins: [
{ state: {} }
]
}
];
describe('UPDATE_CURRENT_PLUGIN', () =>... | Add test for UPDATE_CURRENT_PLUGIN for slides reducer | test: Add test for UPDATE_CURRENT_PLUGIN for slides reducer
| TypeScript | mit | DevDecks/devdecks,DevDecks/devdecks,Team-CHAD/DevDecks,DevDecks/devdecks,Team-CHAD/DevDecks,chengsieuly/devdecks,Team-CHAD/DevDecks,chengsieuly/devdecks,chengsieuly/devdecks | ---
+++
@@ -0,0 +1,87 @@
+import { expect } from 'chai';
+import { UPDATE_CURRENT_PLUGIN } from '../../../../app/constants/slides.constants';
+
+export default function(initialState: any, reducer: any, slide: any) {
+ const _initialState = [
+ {
+ plugins: [
+ { state: {} }
+ ]
+ }
+ ];
+
+ ... | |
1c8307fd8d4c97c81d1d3417d948f7101d901aeb | source/data/US/SD/SiouxFalls_.ts | source/data/US/SD/SiouxFalls_.ts | import CSVParse = require('csv-parse/lib/sync');
import { Download } from '../../Download'
import { Picnic } from '../../../models/Picnic';
// From https://stackoverflow.com/a/2332821
function capitalize(s: string) {
return s.toLowerCase().replace(/\b./g, function (a: string) { return a.toUpperCase(); });
};
// Im... | Add data for Sioux Falls | Add data for Sioux Falls
| TypeScript | mit | earthiverse/picknic,earthiverse/picknic | ---
+++
@@ -0,0 +1,66 @@
+import CSVParse = require('csv-parse/lib/sync');
+
+import { Download } from '../../Download'
+import { Picnic } from '../../../models/Picnic';
+
+// From https://stackoverflow.com/a/2332821
+function capitalize(s: string) {
+ return s.toLowerCase().replace(/\b./g, function (a: string) { re... | |
8cf29658baad9941267f44b51941cffb57598d7e | src/components/DatabaseFilter/DatabaseFilterPagination.tsx | src/components/DatabaseFilter/DatabaseFilterPagination.tsx | import * as React from 'react';
import { Pagination } from '@shopify/polaris';
export interface DatabaseFilterPaginationProps {
readonly shouldRender: boolean;
readonly hasNext: boolean;
readonly hasPrevious: boolean;
readonly onNext: () => void;
readonly onPrevious: () => void;
}
class DatabaseFilterPagina... | Add pagination component for DatabaseFilter. | Add pagination component for DatabaseFilter.
| TypeScript | mit | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | ---
+++
@@ -0,0 +1,35 @@
+import * as React from 'react';
+import { Pagination } from '@shopify/polaris';
+
+export interface DatabaseFilterPaginationProps {
+ readonly shouldRender: boolean;
+ readonly hasNext: boolean;
+ readonly hasPrevious: boolean;
+ readonly onNext: () => void;
+ readonly onPrevious: () =>... | |
3d0b74a97b43d942d40742e80c01562291994460 | src/utils/hitItem.ts | src/utils/hitItem.ts | import { Hit, Requester } from '../types';
import { calculateAllBadges } from './badges';
import { truncate } from './formatting';
type ExceptionStatus = 'neutral' | 'warning' | 'critical';
export interface ExceptionDescriptor {
status?: ExceptionStatus;
title?: string;
description?: string;
}
const ... | Move generating ResourceList.Item props to separate utility file. | Move generating ResourceList.Item props to separate utility file.
| TypeScript | mit | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | ---
+++
@@ -0,0 +1,44 @@
+import { Hit, Requester } from '../types';
+import { calculateAllBadges } from './badges';
+import { truncate } from './formatting';
+
+type ExceptionStatus = 'neutral' | 'warning' | 'critical';
+export interface ExceptionDescriptor {
+ status?: ExceptionStatus;
+ title?: string;
+ descri... | |
2bdebbf2bee19ab64a6b6f20d5c51177997b2667 | client/script/output/view/ToggleItem.d.ts | client/script/output/view/ToggleItem.d.ts | /**
* @license MIT License
*
* Copyright (c) 2015 Tetsuharu OHZEKI <saneyuki.snyk@gmail.com>
* Copyright (c) 2015 Yusuke Suzuki <utatane.tea@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
... | Fix the typescript compiler error | Fix the typescript compiler error
| TypeScript | mit | karen-irc/karen,karen-irc/karen | ---
+++
@@ -0,0 +1,35 @@
+/**
+ * @license MIT License
+ *
+ * Copyright (c) 2015 Tetsuharu OHZEKI <saneyuki.snyk@gmail.com>
+ * Copyright (c) 2015 Yusuke Suzuki <utatane.tea@gmail.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentati... | |
9b237b98c049ffcd10162cc63d79871cabef1d7a | app/src/lib/repository-remote-parsing.ts | app/src/lib/repository-remote-parsing.ts | interface IGitRemoteURL {
readonly hostname: string
readonly owner: string | null
readonly repositoryName: string | null
}
export function parseRemote(remote: string): IGitRemoteURL | null {
// Examples:
// https://github.com/octocat/Hello-World.git
// git@github.com:octocat/Hello-World.git
// git:github... | Split remote parsing into its own thing | Split remote parsing into its own thing
| TypeScript | mit | j-f1/forked-desktop,kactus-io/kactus,hjobrien/desktop,hjobrien/desktop,j-f1/forked-desktop,hjobrien/desktop,desktop/desktop,hjobrien/desktop,kactus-io/kactus,BugTesterTest/desktops,shiftkey/desktop,desktop/desktop,BugTesterTest/desktops,gengjiawen/desktop,artivilla/desktop,kactus-io/kactus,artivilla/desktop,artivilla/d... | ---
+++
@@ -0,0 +1,32 @@
+interface IGitRemoteURL {
+ readonly hostname: string
+ readonly owner: string | null
+ readonly repositoryName: string | null
+}
+
+export function parseRemote(remote: string): IGitRemoteURL | null {
+ // Examples:
+ // https://github.com/octocat/Hello-World.git
+ // git@github.com:oc... | |
91d3286a1d08d1c39272ba7376fb649eb6deb38d | src/transformers/TypeInjectorTransformer.ts | src/transformers/TypeInjectorTransformer.ts | import { transform as transformInternal, TransformerFactory, SourceFile, TypeChecker, visitEachChild, visitNode, Node, SyntaxKind, VariableDeclaration, createTypeReferenceNode } from 'typescript';
import { Transformer } from './types';
export class TypeInjectorTransformer implements Transformer {
private _typeChecke... | Add a Type Injector Transformer | Add a Type Injector Transformer
| TypeScript | mit | AmnisIO/typewriter,AmnisIO/typewriter,AmnisIO/typewriter | ---
+++
@@ -0,0 +1,22 @@
+import { transform as transformInternal, TransformerFactory, SourceFile, TypeChecker, visitEachChild, visitNode, Node, SyntaxKind, VariableDeclaration, createTypeReferenceNode } from 'typescript';
+import { Transformer } from './types';
+
+export class TypeInjectorTransformer implements Tran... | |
77b7bc9833b0ca1ca02709003e2875837bb4bff8 | src/lib/hooks.ts | src/lib/hooks.ts | /*
* Copyright (C) 2012-2022 Online-Go.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This pr... | Add useUser hook to simplify having an auto-updating user reference in components | Add useUser hook to simplify having an auto-updating user reference in components
| TypeScript | agpl-3.0 | online-go/online-go.com,online-go/online-go.com,online-go/online-go.com,online-go/online-go.com,online-go/online-go.com | ---
+++
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2012-2022 Online-Go.com
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option... | |
4e705c79fcd3cda0d1c1a2f9ed7dee93271d20ab | app/test/grouped-and-filtered-branches-test.ts | app/test/grouped-and-filtered-branches-test.ts | import * as chai from 'chai'
const expect = chai.expect
import { groupedAndFilteredBranches } from '../src/ui/branches/grouped-and-filtered-branches'
import { Branch } from '../src/lib/local-git-operations'
describe('Branches grouping', () => {
const currentBranch = new Branch('master', null)
const defaultBranch ... | Test branch grouping and filtering | Test branch grouping and filtering
| TypeScript | mit | shiftkey/desktop,shiftkey/desktop,say25/desktop,artivilla/desktop,kactus-io/kactus,j-f1/forked-desktop,hjobrien/desktop,kactus-io/kactus,BugTesterTest/desktops,hjobrien/desktop,BugTesterTest/desktops,artivilla/desktop,artivilla/desktop,kactus-io/kactus,gengjiawen/desktop,desktop/desktop,say25/desktop,artivilla/desktop,... | ---
+++
@@ -0,0 +1,58 @@
+import * as chai from 'chai'
+const expect = chai.expect
+
+import { groupedAndFilteredBranches } from '../src/ui/branches/grouped-and-filtered-branches'
+import { Branch } from '../src/lib/local-git-operations'
+
+describe('Branches grouping', () => {
+ const currentBranch = new Branch('ma... | |
85108de728a86ef871ee1d76599ef6c94d07c4c9 | saleor/static/dashboard-next/storybook/Decorator.tsx | saleor/static/dashboard-next/storybook/Decorator.tsx | import CssBaseline from "@material-ui/core/CssBaseline";
import MuiThemeProvider from "@material-ui/core/styles/MuiThemeProvider";
import * as React from "react";
import { Provider as DateProvider } from "../components/Date/DateContext";
import { FormProvider } from "../components/Form";
import { MessageManager } from... | import CssBaseline from "@material-ui/core/CssBaseline";
import MuiThemeProvider from "@material-ui/core/styles/MuiThemeProvider";
import * as React from "react";
import { Provider as DateProvider } from "../components/Date/DateContext";
import { FormProvider } from "../components/Form";
import { MessageManager } from... | Add padding to the story decorator | Add padding to the story decorator
| TypeScript | bsd-3-clause | UITools/saleor,mociepka/saleor,maferelo/saleor,maferelo/saleor,UITools/saleor,mociepka/saleor,UITools/saleor,mociepka/saleor,UITools/saleor,maferelo/saleor,UITools/saleor | ---
+++
@@ -15,7 +15,13 @@
<MuiThemeProvider theme={theme}>
<CssBaseline />
<MessageManager>
- <div>{storyFn()}</div>
+ <div
+ style={{
+ padding: 24
+ }}
+ >
+ {storyFn()}
+ </div>
... |
41a2670e16c1ae9e870807bec656406fbbff0862 | src/com/mendix/widget/carousel/components/__tests__/Control.spec.ts | src/com/mendix/widget/carousel/components/__tests__/Control.spec.ts | describe("Control", () => {
xit("renders the structure correctly", () => {
//
});
xit("renders with class carousel-control", () => {
//
});
xit("renders direction css class", () => {
//
});
xit("renders direction icon", () => {
//
});
xit("respond... | Add Control component tests outline | Add Control component tests outline
| TypeScript | apache-2.0 | FlockOfBirds/carousel,FlockOfBirds/carousel,mendixlabs/carousel,mendixlabs/carousel | ---
+++
@@ -0,0 +1,22 @@
+describe("Control", () => {
+
+ xit("renders the structure correctly", () => {
+ //
+ });
+
+ xit("renders with class carousel-control", () => {
+ //
+ });
+
+ xit("renders direction css class", () => {
+ //
+ });
+
+ xit("renders direction icon", ()... | |
5604ed0c49b74124b66df979183a1045046b9f93 | src/reducers/databaseFilterSettings.ts | src/reducers/databaseFilterSettings.ts | import { UPDATE_DB_SEARCH_TERM } from '../constants';
import { DatabaseFilterSettings } from 'types';
import { UpdateDatabaseSearchTerm } from 'actions/databaseFilterSettings';
const initial: DatabaseFilterSettings = {
searchTerm: ''
};
export default (
state = initial,
action: UpdateDatabaseSearchTerm
): Datab... | Add reducer to respond to UPDATE_DB_SEARCH_TERM. | Add reducer to respond to UPDATE_DB_SEARCH_TERM.
| TypeScript | mit | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | ---
+++
@@ -0,0 +1,22 @@
+import { UPDATE_DB_SEARCH_TERM } from '../constants';
+import { DatabaseFilterSettings } from 'types';
+import { UpdateDatabaseSearchTerm } from 'actions/databaseFilterSettings';
+
+const initial: DatabaseFilterSettings = {
+ searchTerm: ''
+};
+
+export default (
+ state = initial,
+ act... | |
e95bb8197f695159a55e65d980d09124e084148d | components/render-template/render-template.ts | components/render-template/render-template.ts | import {
Directive, Input, AfterContentInit,
TemplateRef, ViewContainerRef, EmbeddedViewRef
} from 'angular2/core';
// Renders the specified template on this element's host
// Also assigns the given model as an implicit local
@Directive({
selector: 'conf-render',
})
export class RenderTemplate implements AfterConte... | Add a component for rendering template references | Add a component for rendering template references
| TypeScript | mit | SonofNun15/conf-template-components,SonofNun15/conf-template-components,SonofNun15/conf-template-components | ---
+++
@@ -0,0 +1,46 @@
+import {
+ Directive, Input, AfterContentInit,
+ TemplateRef, ViewContainerRef, EmbeddedViewRef
+} from 'angular2/core';
+
+// Renders the specified template on this element's host
+// Also assigns the given model as an implicit local
+@Directive({
+ selector: 'conf-render',
+})
+export clas... | |
2db90dbe629587965620b4b8e02f4f12f0efa08f | src/components/Watchers/AddWatcherToast.tsx | src/components/Watchers/AddWatcherToast.tsx | import { connect, Dispatch } from 'react-redux';
import { TextContainer } from '@shopify/polaris';
import { AddWatcher, addWatcher } from '../../actions/watcher';
import * as React from 'react';
import { Watcher, SearchResult } from '../../types';
export interface OwnProps {
readonly hit: SearchResult;
}
... | Add a connected component to add watchers from a toast. | Add a connected component to add watchers from a toast.
| TypeScript | mit | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | ---
+++
@@ -0,0 +1,25 @@
+import { connect, Dispatch } from 'react-redux';
+import { TextContainer } from '@shopify/polaris';
+import { AddWatcher, addWatcher } from '../../actions/watcher';
+import * as React from 'react';
+import { Watcher, SearchResult } from '../../types';
+
+export interface OwnProps {
+ readon... | |
1a77458cf33b99cb3822526e5db8452837bcaf05 | app/components/renderForQuestions/answerState.ts | app/components/renderForQuestions/answerState.ts | import {Response} from "quill-marking-logic"
interface Attempt {
response: Response
}
function getAnswerState(attempt): boolean {
return (attempt.found && attempt.response.optimal && attempt.response.author === undefined && attempt.author === undefined)
}
export default getAnswerState; | Add a function for checking if an answer is correct. | Add a function for checking if an answer is correct.
| TypeScript | agpl-3.0 | empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core | ---
+++
@@ -0,0 +1,11 @@
+import {Response} from "quill-marking-logic"
+
+interface Attempt {
+ response: Response
+}
+
+function getAnswerState(attempt): boolean {
+ return (attempt.found && attempt.response.optimal && attempt.response.author === undefined && attempt.author === undefined)
+}
+
+export default getA... | |
c5f778754f9e32fb59a1777dc2457e709c86b0fa | app/src/lib/markdown-filters/node-filter.ts | app/src/lib/markdown-filters/node-filter.ts | export interface INodeFilter {
/**
* Creates a document tree walker filtered to the nodes relevant to the node filter.
*
* Examples:
* 1) An Emoji filter operates on all text nodes.
* 2) The issue mention filter operates on all text nodes, but not inside pre, code, or anchor tags
*/
createFilterTr... | Create the base node filter interface | Create the base node filter interface
| TypeScript | mit | shiftkey/desktop,desktop/desktop,desktop/desktop,j-f1/forked-desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,j-f1/forked-desktop,j-f1/forked-desktop,desktop/desktop,j-f1/forked-desktop,shiftkey/desktop | ---
+++
@@ -0,0 +1,23 @@
+export interface INodeFilter {
+ /**
+ * Creates a document tree walker filtered to the nodes relevant to the node filter.
+ *
+ * Examples:
+ * 1) An Emoji filter operates on all text nodes.
+ * 2) The issue mention filter operates on all text nodes, but not inside pre, code, or ... | |
4f46ad0c1ed3e6702cc372c28b92ed84a59af648 | saleor/static/dashboard-next/storybook/stories/navigation/MenuDetailsPage.tsx | saleor/static/dashboard-next/storybook/stories/navigation/MenuDetailsPage.tsx | import { storiesOf } from "@storybook/react";
import * as React from "react";
import MenuDetailsPage, {
MenuDetailsPageProps
} from "../../../navigation/components/MenuDetailsPage";
import { menu } from "../../../navigation/fixtures";
import Decorator from "../../Decorator";
const props: MenuDetailsPageProps = {
... | import { storiesOf } from "@storybook/react";
import * as React from "react";
import MenuDetailsPage, {
MenuDetailsPageProps
} from "../../../navigation/components/MenuDetailsPage";
import { menu } from "../../../navigation/fixtures";
import Decorator from "../../Decorator";
const props: MenuDetailsPageProps = {
... | Add story with empty menu | Add story with empty menu
| TypeScript | bsd-3-clause | maferelo/saleor,maferelo/saleor,maferelo/saleor,mociepka/saleor,mociepka/saleor,mociepka/saleor | ---
+++
@@ -22,4 +22,13 @@
.add("default", () => <MenuDetailsPage {...props} />)
.add("loading", () => (
<MenuDetailsPage {...props} disabled={true} menu={undefined} />
+ ))
+ .add("no data", () => (
+ <MenuDetailsPage
+ {...props}
+ menu={{
+ ...props.menu,
+ items: []
+ ... |
1308cb80915d13724ad38b6178a1b3b924beb944 | resources/assets/lib/interfaces/beatmapset-extended-json.ts | resources/assets/lib/interfaces/beatmapset-extended-json.ts | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.
import { BeatmapsetJson } from 'beatmapsets/beatmapset-json';
interface AvailabilityInterface {
download_disabled: boolean;
download_disab... | Add interface for beatmapset extended | Add interface for beatmapset extended
| TypeScript | agpl-3.0 | nanaya/osu-web,nanaya/osu-web,notbakaneko/osu-web,notbakaneko/osu-web,ppy/osu-web,ppy/osu-web,notbakaneko/osu-web,nanaya/osu-web,ppy/osu-web,notbakaneko/osu-web,nanaya/osu-web,ppy/osu-web,LiquidPL/osu-web,LiquidPL/osu-web,LiquidPL/osu-web,LiquidPL/osu-web,nanaya/osu-web,LiquidPL/osu-web,notbakaneko/osu-web,ppy/osu-web | ---
+++
@@ -0,0 +1,21 @@
+// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
+// See the LICENCE file in the repository root for full licence text.
+
+import { BeatmapsetJson } from 'beatmapsets/beatmapset-json';
+
+interface AvailabilityInterface {
+ download_d... | |
d411fa34a7b771b9682ff6b39bec96f61ff16588 | tests/cases/fourslash/codeFixUnusedIdentifier_parameter_modifier.ts | tests/cases/fourslash/codeFixUnusedIdentifier_parameter_modifier.ts | /// <reference path='fourslash.ts' />
// @noUnusedLocals: true
// @noUnusedParameters: true
////export class Example {
//// prop: any;
//// constructor(private arg: any) {
//// this.prop = arg;
//// }
////}
verify.codeFix({
description: "Remove declaration for: 'arg'",
newFileCo... | Add test case for codeFix | Add test case for codeFix
| TypeScript | apache-2.0 | SaschaNaz/TypeScript,RyanCavanaugh/TypeScript,kitsonk/TypeScript,weswigham/TypeScript,SaschaNaz/TypeScript,donaldpipowitch/TypeScript,kitsonk/TypeScript,weswigham/TypeScript,kpreisser/TypeScript,minestarks/TypeScript,minestarks/TypeScript,Microsoft/TypeScript,nojvek/TypeScript,nojvek/TypeScript,microsoft/TypeScript,wes... | ---
+++
@@ -0,0 +1,22 @@
+/// <reference path='fourslash.ts' />
+
+// @noUnusedLocals: true
+// @noUnusedParameters: true
+
+////export class Example {
+//// prop: any;
+//// constructor(private arg: any) {
+//// this.prop = arg;
+//// }
+////}
+
+verify.codeFix({
+ description: "Remove declaration... | |
ea6c293726e54c72f53f51708e9b1f2c22cb9c2e | desktop/flipper-frontend-core/src/globalObject.tsx | desktop/flipper-frontend-core/src/globalObject.tsx | /**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
// this list should match `replace-flipper-requires.tsx` and the `builtInModules` in `desktop/.eslintrc`
export in... | Set global replacements in flipper-frontend-core | Set global replacements in flipper-frontend-core
Summary: Extract setting global replacements from plugin initialization
Reviewed By: mweststrate
Differential Revision: D36129749
fbshipit-source-id: 6f5b3e27c1b798124b5f2772e9099899ce521d0a
| TypeScript | mit | facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper | ---
+++
@@ -0,0 +1,31 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ * @format
+ */
+
+// this list should match `replace-flipper-requires.tsx` and the `builtInModu... | |
16457e2adbfddaa1bc445df331a77f75b419b7a6 | src/utils/typeUtils.tsx | src/utils/typeUtils.tsx | /**
* Copyright 2018-present Facebook.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* @format
*/
// Typescript doesn't know Array.filter(Boolean) won't contain nulls.
// So use Array.filter(notNull) instead.
export function notNull<T>(... | Add notNull filter with type guard | Add notNull filter with type guard
Summary: You need to use a type guard when narrowing types in a filter.
Reviewed By: danielbuechele
Differential Revision: D17163782
fbshipit-source-id: aa78bdd392653ebf1080a04e62e131b607e5181b
| TypeScript | mit | facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper | ---
+++
@@ -0,0 +1,12 @@
+/**
+ * Copyright 2018-present Facebook.
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ * @format
+ */
+
+// Typescript doesn't know Array.filter(Boolean) won't contain nulls.
+// So use Array.filter(notNull) ... | |
eeec775da0f3dabe9c73254c02b5254bab84c882 | tests/cases/fourslash/server/completionEntryDetailAcrossFiles02.ts | tests/cases/fourslash/server/completionEntryDetailAcrossFiles02.ts | /// <reference path="../fourslash.ts"/>
// @allowNonTsExtensions: true
// @Filename: a.js
//// /**
//// * Modify the parameter
//// * @param {string} p1
//// */
//// var foo = function (p1) { }
//// module.exports.foo = foo;
//// fo/*1*/
// @Filename: b.ts
//// import a = require("./a");
//// a.fo/*2... | Add more test for 10426 | Add more test for 10426
| TypeScript | apache-2.0 | jwbay/TypeScript,donaldpipowitch/TypeScript,weswigham/TypeScript,kitsonk/TypeScript,nojvek/TypeScript,donaldpipowitch/TypeScript,nojvek/TypeScript,basarat/TypeScript,DLehenbauer/TypeScript,basarat/TypeScript,SaschaNaz/TypeScript,microsoft/TypeScript,vilic/TypeScript,erikmcc/TypeScript,jeremyepling/TypeScript,Eyas/TypeS... | ---
+++
@@ -0,0 +1,20 @@
+/// <reference path="../fourslash.ts"/>
+
+// @allowNonTsExtensions: true
+// @Filename: a.js
+//// /**
+//// * Modify the parameter
+//// * @param {string} p1
+//// */
+//// var foo = function (p1) { }
+//// module.exports.foo = foo;
+//// fo/*1*/
+
+// @Filename: b.ts
+//// import a = r... | |
34ba173e92924d7584700f38265bac709501c7be | src/app/shared/formatted-text/formatted-text.component.stories.ts | src/app/shared/formatted-text/formatted-text.component.stories.ts | import { NgxMdModule } from 'ngx-md';
import { HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { text } from '@storybook/addon-knobs';
import { storiesOf } from '@storybook/angular';
import { FormattedTextComponent } from './formatted-text.component';
const moduleMeta... | Add story for formatted text component | Add story for formatted text component
| TypeScript | apache-2.0 | jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog | ---
+++
@@ -0,0 +1,28 @@
+import { NgxMdModule } from 'ngx-md';
+
+import { HttpClientModule } from '@angular/common/http';
+import { NgModule } from '@angular/core';
+import { text } from '@storybook/addon-knobs';
+import { storiesOf } from '@storybook/angular';
+
+import { FormattedTextComponent } from './formatted... | |
0707350c7bcd41a7b0b30b1d71aaf43d8bfc2718 | tests/cases/fourslash/formatConflictMarker1.ts | tests/cases/fourslash/formatConflictMarker1.ts | /// <reference path='fourslash.ts' />
////class C {
////<<<<<<< HEAD
//// v = 1;
////=======
////v = 2;
////>>>>>>> Branch - a
////}
format.document();
verify.currentFileContentIs("class C {\r\n\
<<<<<<< HEAD\r\n\
v = 1;\r\n\
=======\r\n\
v = 2;\r\n\
>>>>>>> Branch - a\r\n\
}"); | /// <reference path='fourslash.ts' />
////class C {
////<<<<<<< HEAD
////v = 1;
////=======
////v = 2;
////>>>>>>> Branch - a
////}
format.document();
verify.currentFileContentIs("class C {\r\n\
<<<<<<< HEAD\r\n\
v = 1;\r\n\
=======\r\n\
v = 2;\r\n\
>>>>>>> Branch - a\r\n\
}"); | Update conflict marker formatting test. We now no longer format the second branch of hte merge. | Update conflict marker formatting test. We now no longer format the second branch of hte merge.
| TypeScript | apache-2.0 | RyanCavanaugh/TypeScript,yortus/TypeScript,shiftkey/TypeScript,kumikumi/TypeScript,Raynos/TypeScript,nagyistoce/TypeScript,mihailik/TypeScript,thr0w/Thr0wScript,billti/TypeScript,nycdotnet/TypeScript,mszczepaniak/TypeScript,JohnZ622/TypeScript,mmoskal/TypeScript,blakeembrey/TypeScript,minestarks/TypeScript,MartyIX/Type... | ---
+++
@@ -2,7 +2,7 @@
////class C {
////<<<<<<< HEAD
-//// v = 1;
+////v = 1;
////=======
////v = 2;
////>>>>>>> Branch - a
@@ -13,6 +13,6 @@
<<<<<<< HEAD\r\n\
v = 1;\r\n\
=======\r\n\
- v = 2;\r\n\
+v = 2;\r\n\
>>>>>>> Branch - a\r\n\
}"); |
5f1349ed0d7a13d9927cc3e8f1463d718e862b66 | src/framework/collect_garbage.ts | src/framework/collect_garbage.ts | // tslint:disable-next-line: no-any
declare const Components: any;
export function attemptGarbageCollection(): void {
// tslint:disable-next-line: no-any
const w: any = window;
if (w.GCController) {
w.GCController.collect();
return;
}
if (w.opera && w.opera.collect) {
w.opera.collect();
retu... | Add garbage collect function from WebGL CTS | Add garbage collect function from WebGL CTS
| TypeScript | bsd-3-clause | gpuweb/cts,gpuweb/cts,gpuweb/cts | ---
+++
@@ -0,0 +1,45 @@
+// tslint:disable-next-line: no-any
+declare const Components: any;
+
+export function attemptGarbageCollection(): void {
+ // tslint:disable-next-line: no-any
+ const w: any = window;
+ if (w.GCController) {
+ w.GCController.collect();
+ return;
+ }
+
+ if (w.opera && w.opera.col... | |
763fe3ba33bbea919864bd765c3238f912a9d598 | server/test/chokidar-test.ts | server/test/chokidar-test.ts | import * as path from 'path';
import { tmpdir } from 'os';
import { expect } from 'chai';
const fs = require('fs-extra');
const chokidar = require('chokidar');
describe('chokidar', function() {
let workDir = path.join(tmpdir(), 'chokidar-test');
beforeEach(function() {
fs.emptyDirSync(workDir);
});
aft... | Add basic integration tests for chokidar | server: Add basic integration tests for chokidar
| TypeScript | mit | emberwatch/ember-language-server,emberwatch/ember-language-server | ---
+++
@@ -0,0 +1,68 @@
+import * as path from 'path';
+import { tmpdir } from 'os';
+
+import { expect } from 'chai';
+
+const fs = require('fs-extra');
+const chokidar = require('chokidar');
+
+describe('chokidar', function() {
+ let workDir = path.join(tmpdir(), 'chokidar-test');
+
+ beforeEach(function() {
+ ... | |
c029aa6a051f47296137110114dc5d7dd527530c | src/datasets/summarizations/utils/time-series.spec.ts | src/datasets/summarizations/utils/time-series.spec.ts | import { groupPointsByXWeek } from './time-series';
describe('groupPointsByXWeek', () => {
let points;
let groupedPoints;
beforeEach(() => {
points = [];
for (let i = 1; i <= 31; i++) {
points.push({
x: new Date(2020, 6, i),
y: i,
});
}
for (let i = 31; ... | Add tests for time-series summarization utils | Add tests for time-series summarization utils
| TypeScript | apache-2.0 | googleinterns/guide-doge,googleinterns/guide-doge,googleinterns/guide-doge | ---
+++
@@ -0,0 +1,64 @@
+import { groupPointsByXWeek } from './time-series';
+
+describe('groupPointsByXWeek', () => {
+ let points;
+ let groupedPoints;
+
+ beforeEach(() => {
+ points = [];
+ for (let i = 1; i <= 31; i++) {
+ points.push({
+ x: new Date(2020, 6, i),
+ y: i,
+ });
+... | |
d9556d5d7d3516bfdcf58a2621481ee47a71a448 | test/specs/expressions/jsCodegen/compare.tests.ts | test/specs/expressions/jsCodegen/compare.tests.ts | import * as chai from 'chai';
import { evaluateXPathToBoolean, ReturnType } from 'fontoxpath';
import * as slimdom from 'slimdom';
import jsonMlMapper from 'test-helpers/jsonMlMapper';
import evaluateXPathWithJsCodegen from '../../parsing/jsCodegen/evaluateXPathWithJsCodegen';
describe('compare tests', () => {
let do... | Add unit test does not generate compare function for nodes | Add unit test does not generate compare function for nodes
| TypeScript | mit | FontoXML/fontoxpath,FontoXML/fontoxpath,FontoXML/fontoxpath | ---
+++
@@ -0,0 +1,25 @@
+import * as chai from 'chai';
+import { evaluateXPathToBoolean, ReturnType } from 'fontoxpath';
+import * as slimdom from 'slimdom';
+import jsonMlMapper from 'test-helpers/jsonMlMapper';
+import evaluateXPathWithJsCodegen from '../../parsing/jsCodegen/evaluateXPathWithJsCodegen';
+
+describ... | |
8aa56c1ccedb4070a8d6d8f3f703cd80b9841317 | tests/cases/fourslash/memberListOnContextualThis.ts | tests/cases/fourslash/memberListOnContextualThis.ts | /// <reference path='fourslash.ts'/>
////interface A {
//// a: string;
////}
////declare function ctx(callback: (this: A) => string): string;
////ctx(function () { return th/*1*/is./*2*/a });
goTo.marker('1');
verify.quickInfoIs("this: A");
goTo.marker('2');
verify.memberListContains('a', '(property) A.a: string');... | Add fourslash test for contextually-typed `this` | Add fourslash test for contextually-typed `this`
Regression test for #10972
| TypeScript | apache-2.0 | thr0w/Thr0wScript,SaschaNaz/TypeScript,minestarks/TypeScript,jwbay/TypeScript,RyanCavanaugh/TypeScript,microsoft/TypeScript,kitsonk/TypeScript,TukekeSoft/TypeScript,donaldpipowitch/TypeScript,alexeagle/TypeScript,Microsoft/TypeScript,weswigham/TypeScript,SaschaNaz/TypeScript,alexeagle/TypeScript,minestarks/TypeScript,E... | ---
+++
@@ -0,0 +1,12 @@
+/// <reference path='fourslash.ts'/>
+////interface A {
+//// a: string;
+////}
+////declare function ctx(callback: (this: A) => string): string;
+////ctx(function () { return th/*1*/is./*2*/a });
+
+goTo.marker('1');
+verify.quickInfoIs("this: A");
+goTo.marker('2');
+verify.memberListCo... | |
beff83d3e8a414665ce9c582ef3eaf159a59e8b1 | test/MethodStubCollection.spec.ts | test/MethodStubCollection.spec.ts | import {MethodStubCollection} from "../src/MethodStubCollection";
describe("MethodStubCollection", () => {
describe("empty stub collection", () => {
it("returns -1 if doesn't find method stub", () => {
// given
const methodStubCollection = new MethodStubCollection();
//... | Add unit test for MethodStubCollection | Add unit test for MethodStubCollection
| TypeScript | mit | NagRock/ts-mockito,viman/ts-mockito,NagRock/ts-mockito,viman/ts-mockito | ---
+++
@@ -0,0 +1,16 @@
+import {MethodStubCollection} from "../src/MethodStubCollection";
+
+describe("MethodStubCollection", () => {
+ describe("empty stub collection", () => {
+ it("returns -1 if doesn't find method stub", () => {
+ // given
+ const methodStubCollection = new Metho... | |
deb10803380f79326653f3cb6fd17d8d43a938ad | app/src/lib/helpers/default-branch.ts | app/src/lib/helpers/default-branch.ts | import { getGlobalConfigValue, setGlobalConfigValue } from '../git'
const DefaultBranchInGit = 'master'
const DefaultBranchSettingName = 'init.defaultBranch'
/**
* The branch names that Desktop shows by default as radio buttons on the
* form that allows users to change default branch name.
*/
export const Suggest... | Add helper to get/set the git default branch | Add helper to get/set the git default branch
We store that information in the global git config.
| TypeScript | mit | desktop/desktop,j-f1/forked-desktop,kactus-io/kactus,shiftkey/desktop,desktop/desktop,j-f1/forked-desktop,kactus-io/kactus,artivilla/desktop,kactus-io/kactus,say25/desktop,shiftkey/desktop,j-f1/forked-desktop,say25/desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,say25/desktop,desktop/desktop,artivilla/desktop... | ---
+++
@@ -0,0 +1,29 @@
+import { getGlobalConfigValue, setGlobalConfigValue } from '../git'
+
+const DefaultBranchInGit = 'master'
+
+const DefaultBranchSettingName = 'init.defaultBranch'
+
+/**
+ * The branch names that Desktop shows by default as radio buttons on the
+ * form that allows users to change default b... | |
70a57bf937ce382dd5afa799a578ef5e1c50fcdf | packages/@glimmer/node/lib/node-dom-helper.ts | packages/@glimmer/node/lib/node-dom-helper.ts | import * as SimpleDOM from 'simple-dom';
import { DOMTreeConstruction, Bounds, Simple, ConcreteBounds } from '@glimmer/runtime';
export default class NodeDOMTreeConstruction extends DOMTreeConstruction {
protected document: SimpleDOM.Document;
constructor(doc: Simple.Document) {
super(doc);
}
// override ... | import * as SimpleDOM from 'simple-dom';
import { DOMTreeConstruction, Bounds, Simple, ConcreteBounds } from '@glimmer/runtime';
export default class NodeDOMTreeConstruction extends DOMTreeConstruction {
protected document: SimpleDOM.Document;
constructor(doc: Simple.Document) {
super(doc);
}
// override ... | Update NodeDOMTreeConstruction to match arg signature of `insertHTMLBefore`. | Update NodeDOMTreeConstruction to match arg signature of `insertHTMLBefore`.
The signature was changed in a recent refactor, but since the node tests were not
running this was not caught during that refactors CI.
| TypeScript | mit | lbdm44/glimmer-vm,tildeio/glimmer,lbdm44/glimmer-vm,tildeio/glimmer,glimmerjs/glimmer-vm,glimmerjs/glimmer-vm,glimmerjs/glimmer-vm,lbdm44/glimmer-vm,tildeio/glimmer | ---
+++
@@ -10,7 +10,7 @@
// override to prevent usage of `this.document` until after the constructor
protected setupUselessElement() { }
- insertHTMLBefore(parent: Simple.Element, html: string, reference: Simple.Node): Bounds {
+ insertHTMLBefore(parent: Simple.Element, reference: Simple.Node, html: string... |
027cd34855f10762a7000089313a3d229e07ceab | app/services/help/commands.component.spec.ts | app/services/help/commands.component.spec.ts | /// <reference path="./../../../typings/index.d.ts" />
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
import { CommandsComponent } from './commands.component';
let comp: CommandsComponent;
let fixture: Co... | Add unit test for commans component | Add unit test for commans component
| TypeScript | mit | alvinmvbt/mirror-mirror,alvinmvbt/mirror-mirror,alvinmvbt/mirror-mirror | ---
+++
@@ -0,0 +1,28 @@
+/// <reference path="./../../../typings/index.d.ts" />
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+import { By } from '@angular/platform-browser';
+import { DebugElement } from '@angular/core';
+
+import { CommandsComponent } from './commands.component';
+
+let comp:... | |
6ce7b8df29501b35125f5909384872b402c80e63 | src/app/app.product.service.ts | src/app/app.product.service.ts | import { Injectable } from '@angular/core';
import {Subject} from "rxjs/Rx";
import 'marked';
import * as marked from 'marked';
import {DrupalService} from "./app.drupal.service";
@Injectable()
export class ProductService {
private taxonomyTerms;
constructor(private drupalService:DrupalService)
{
marked.se... | Add ProductService, which contains all logic for formatting products from the Drupal database. | Add ProductService, which contains all logic for formatting products from the Drupal database.
| TypeScript | bsd-3-clause | UoA-eResearch/research-hub,UoA-eResearch/research-hub,UoA-eResearch/research-hub | ---
+++
@@ -0,0 +1,95 @@
+import { Injectable } from '@angular/core';
+import {Subject} from "rxjs/Rx";
+import 'marked';
+import * as marked from 'marked';
+import {DrupalService} from "./app.drupal.service";
+
+@Injectable()
+export class ProductService {
+
+ private taxonomyTerms;
+
+ constructor(private drupalS... | |
c15f82e7210e657fc94d0d3257fc22c6fbde634e | src/app/alveo/oauth-callback/oauth-callback.component.ts | src/app/alveo/oauth-callback/oauth-callback.component.ts | import { Component, OnInit, OnDestroy } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { AuthService } from '../shared/auth.service';
import { SessionService } from '../shared/session.service';
import { Paths } from '../shared/paths';
/* Component for handling OAuth callback routes */... | Move oauth-callback to its own folder | Move oauth-callback to its own folder
| TypeScript | bsd-3-clause | Alveo/alveo-transcriber,Alveo/alveo-transcriber,Alveo/alveo-transcriber,Alveo/alveo-transcriber | ---
+++
@@ -0,0 +1,48 @@
+import { Component, OnInit, OnDestroy } from '@angular/core';
+import { ActivatedRoute } from '@angular/router';
+
+import { AuthService } from '../shared/auth.service';
+import { SessionService } from '../shared/session.service';
+
+import { Paths } from '../shared/paths';
+
+/* Component f... | |
2e1e6eced75ed73bcb4671fb270df5f72da29ecf | ui/src/reusable_ui/components/slide_toggle/SlideToggle.tsx | ui/src/reusable_ui/components/slide_toggle/SlideToggle.tsx | import React, {Component} from 'react'
import classnames from 'classnames'
import {ErrorHandling} from 'src/shared/decorators/errors'
import './slide-toggle.scss'
import {ComponentColor, ComponentSize} from 'src/reusable_ui/types'
interface Props {
onChange: () => void
active: boolean
size?: ComponentSize
col... | import React, {Component} from 'react'
import classnames from 'classnames'
import {ErrorHandling} from 'src/shared/decorators/errors'
import './slide-toggle.scss'
import {ComponentColor, ComponentSize} from 'src/reusable_ui/types'
interface Props {
onChange: () => void
active: boolean
size?: ComponentSize
col... | Make default value more explicit | Make default value more explicit
| TypeScript | mit | mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,noopro... | ---
+++
@@ -20,6 +20,7 @@
size: ComponentSize.Small,
color: ComponentColor.Primary,
tooltipText: '',
+ disabled: false,
}
public render() { |
ff5210a891950c1a43e3b01740d9f19b008cbfa6 | app/javascript/retrospring/controllers/character_count_controller.ts | app/javascript/retrospring/controllers/character_count_controller.ts | import { Controller } from '@hotwired/stimulus';
export default class extends Controller {
static targets = ['input', 'counter', 'action'];
declare readonly inputTarget: HTMLInputElement;
declare readonly counterTarget: HTMLElement;
declare readonly actionTarget: HTMLInputElement;
static values = {
max... | Implement character count as Stimulus controller | Implement character count as Stimulus controller
| TypeScript | agpl-3.0 | Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring | ---
+++
@@ -0,0 +1,36 @@
+import { Controller } from '@hotwired/stimulus';
+
+export default class extends Controller {
+ static targets = ['input', 'counter', 'action'];
+
+ declare readonly inputTarget: HTMLInputElement;
+ declare readonly counterTarget: HTMLElement;
+ declare readonly actionTarget: HTMLInputEl... | |
8323b2ee4878437229045e8464137b2aaa9f57ee | src/app/gallery/insights/insights.component.stories.ts | src/app/gallery/insights/insights.component.stories.ts | import { Component, Input, NgModule } from '@angular/core';
import { storiesOf } from '@storybook/angular';
import { InsightsComponent } from './insights.component';
@Component({
selector: 'jblog-image-container',
template: `
<div class="mock-images">
<strong>{{ imageCount }}</strong>
images from ... | Add story for art insights | Add story for art insights
| TypeScript | apache-2.0 | jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog | ---
+++
@@ -0,0 +1,33 @@
+import { Component, Input, NgModule } from '@angular/core';
+import { storiesOf } from '@storybook/angular';
+
+import { InsightsComponent } from './insights.component';
+
+@Component({
+ selector: 'jblog-image-container',
+ template: `
+ <div class="mock-images">
+ <strong>{{ imag... | |
0cc01b430ff912e09e09afca1cf4f949df43bdaf | demo/src/app/shared/services/githubapi.ts | demo/src/app/shared/services/githubapi.ts | /*
MIT License
Copyright (c) 2017 Temainfo Sistemas
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, copy, modify, merge,... | Create a service to get data dynamic from github. | docs(showcase): Create a service to get data dynamic from github.
| TypeScript | mit | TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui | ---
+++
@@ -0,0 +1,34 @@
+/*
+ MIT License
+
+ Copyright (c) 2017 Temainfo Sistemas
+
+ 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 r... | |
c79fde462e5d4e252dd42e25d3f9403e3ac4e7ab | src/app/packages/open-layers-map/open-layers-projection.service.ts | src/app/packages/open-layers-map/open-layers-projection.service.ts | import { Injectable } from '@angular/core';
import { ProjectionService } from '@ansyn/imagery/projection-service/projection.service';
import { IMap } from '@ansyn/imagery';
import { Observable } from 'rxjs/Observable';
import { FeatureCollection, GeometryObject, Point, Position } from 'geojson';
import proj from 'ol/pr... | Implement the ProjectionService API for OpenLayers | Implement the ProjectionService API for OpenLayers
| TypeScript | mit | AnSyn/ansyn,AnSyn/ansyn,AnSyn/ansyn,AnSyn/ansyn | ---
+++
@@ -0,0 +1,61 @@
+import { Injectable } from '@angular/core';
+import { ProjectionService } from '@ansyn/imagery/projection-service/projection.service';
+import { IMap } from '@ansyn/imagery';
+import { Observable } from 'rxjs/Observable';
+import { FeatureCollection, GeometryObject, Point, Position } from 'g... | |
132097e70b986b7b4ca39adc1072f047c66a4a23 | package/src/browser/note/note-list-tools/note-list-sorting-menu.ts | package/src/browser/note/note-list-tools/note-list-sorting-menu.ts | import { Injectable } from '@angular/core';
import { select, Store } from '@ngrx/store';
import { MenuItemConstructorOptions } from 'electron';
import { switchMap, take } from 'rxjs/operators';
import { SortDirection } from '../../../libs/sorting';
import { Menu } from '../../ui/menu/menu';
import {
ChangeSortDirec... | Add note list sorting menu | Add note list sorting menu
| TypeScript | mit | seokju-na/geeks-diary,seokju-na/geeks-diary,seokju-na/geeks-diary | ---
+++
@@ -0,0 +1,94 @@
+import { Injectable } from '@angular/core';
+import { select, Store } from '@ngrx/store';
+import { MenuItemConstructorOptions } from 'electron';
+import { switchMap, take } from 'rxjs/operators';
+import { SortDirection } from '../../../libs/sorting';
+import { Menu } from '../../ui/menu/me... | |
63e2f47c2cb6141fdfa2977f30f5423e706c0d63 | front_end/src/app/shared/pipes/phoneNumber.pipe.spec.ts | front_end/src/app/shared/pipes/phoneNumber.pipe.spec.ts | import { PhoneNumberPipe } from './phoneNumber.pipe';
describe('PhoneNumberPipe', () => {
// This pipe is a pure, stateless function so no need for BeforeEach
let pipe = new PhoneNumberPipe();
it('transforms "8128128123" to "(812) 812-8123"', () => {
expect(pipe.transform('8128128123')).toBe('(812) 812-8123'... | Add test for phone number pipe on front end. | Add test for phone number pipe on front end.
| TypeScript | bsd-2-clause | crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin | ---
+++
@@ -0,0 +1,9 @@
+import { PhoneNumberPipe } from './phoneNumber.pipe';
+
+describe('PhoneNumberPipe', () => {
+ // This pipe is a pure, stateless function so no need for BeforeEach
+ let pipe = new PhoneNumberPipe();
+ it('transforms "8128128123" to "(812) 812-8123"', () => {
+ expect(pipe.transform('81... | |
367518d5048993b3f640930f9271fa22b91eb3c2 | src/file/table/table-column.spec.ts | src/file/table/table-column.spec.ts | import { expect } from "chai";
import { Formatter } from "export/formatter";
import { TableCell } from "./table-cell";
import { TableColumn } from "./table-column";
describe("TableColumn", () => {
let cells: TableCell[];
beforeEach(() => {
cells = [new TableCell(), new TableCell(), new TableCell()];
... | Add tests for table column | Add tests for table column
| TypeScript | mit | dolanmiu/docx,dolanmiu/docx,dolanmiu/docx | ---
+++
@@ -0,0 +1,46 @@
+import { expect } from "chai";
+
+import { Formatter } from "export/formatter";
+
+import { TableCell } from "./table-cell";
+import { TableColumn } from "./table-column";
+
+describe("TableColumn", () => {
+ let cells: TableCell[];
+ beforeEach(() => {
+ cells = [new TableCell(... | |
8dfe537377f5dfd7068720ea7522d983d7374b32 | angular-dropdown-control.directive.ts | angular-dropdown-control.directive.ts | import {
Directive,
ElementRef,
Inject,
forwardRef,
Input,
Host,
HostListener
} from '@angular/core';
import { AngularDropdownDirective }
from './angular-dropdown.directive';
@Directive({
selector: '[ng-dropdown-control],[ngDropdownControl]',
host: {
'[attr.aria-haspopup]': 'true',
'[attr.... | import {
Directive,
ElementRef,
Inject,
forwardRef,
Input,
Host,
HostListener
} from '@angular/core';
import { AngularDropdownDirective }
from './angular-dropdown.directive';
@Directive({
selector: '[ng-dropdown-control],[ngDropdownControl]',
host: {
'[attr.aria-haspopup]': 'true',
'[attr.... | Add active class on control if dropdown is open | Add active class on control if dropdown is open
| TypeScript | mit | topaxi/angular-dropdown,topaxi/angular-dropdown,topaxi/angular-dropdown | ---
+++
@@ -16,7 +16,8 @@
host: {
'[attr.aria-haspopup]': 'true',
'[attr.aria-controls]': 'dropdown.id',
- '[class.ng-dropdown-control]': 'true'
+ '[class.ng-dropdown-control]': 'true',
+ '[class.active]': 'dropdown.isOpen'
}
})
export class AngularDropdownControlDirective { |
fbd7ed7d66d104f5f005d14e575dfdfe114eb076 | app/test/unit/name-of-test.ts | app/test/unit/name-of-test.ts | import { expect } from 'chai'
import { Repository, nameOf } from '../../src/models/repository'
import { GitHubRepository } from '../../src/models/github-repository'
import { Owner } from '../../src/models/owner'
const repoPath = '/some/cool/path'
describe('nameOf', () => {
it.only('Returns the repo base path if th... | Add a test or two | Add a test or two
| TypeScript | mit | j-f1/forked-desktop,j-f1/forked-desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,kactus-io/kactus,kactus-io/kactus,shiftkey/desktop,shiftkey/desktop,shiftkey/desktop,artivilla/desktop,j-f1/forked-desktop,say25/desktop,desktop/desktop,desktop/desktop,artivilla/desktop,j-f1/forked-desktop,artivilla/desktop,kact... | ---
+++
@@ -0,0 +1,30 @@
+import { expect } from 'chai'
+
+import { Repository, nameOf } from '../../src/models/repository'
+import { GitHubRepository } from '../../src/models/github-repository'
+import { Owner } from '../../src/models/owner'
+
+const repoPath = '/some/cool/path'
+
+describe('nameOf', () => {
+ it.o... | |
44f4e038f2c4ca80c9985a029b8fa592510b2cdf | danger/regressions.ts | danger/regressions.ts | import { schedule, danger } from "danger";
import { IncomingWebhook } from "@slack/client";
import { Issues } from "github-webhook-event-types"
declare const peril: any // danger/danger#351
const gh = danger.github as any as Issues
const issue = gh.issue
const text = (issue.title + issue.body).toLowerCase()
const api ... | import { schedule, danger } from "danger";
import { IncomingWebhook } from "@slack/client";
import { Issues } from "github-webhook-event-types"
declare const peril: any // danger/danger#351
const gh = danger.github as any as Issues
const issue = gh.issue
const repo = gh.repository
const text = (issue.title + issue.bod... | Change from PR to issue | Change from PR to issue
| TypeScript | mit | fastlane/peril-settings | ---
+++
@@ -5,6 +5,7 @@
declare const peril: any // danger/danger#351
const gh = danger.github as any as Issues
const issue = gh.issue
+const repo = gh.repository
const text = (issue.title + issue.body).toLowerCase()
const api = danger.github.api
@@ -25,8 +26,8 @@
})
await api.issues.addLabels({
- ... |
649361b1d4d963e301ae561dacf9906efd0af76a | lib/omnisharp-atom/views/tooltip-view.ts | lib/omnisharp-atom/views/tooltip-view.ts | import spacePen = require("atom-space-pen-views");
import $ = require('jquery');
interface Rect {
left: number;
right: number;
top: number;
bottom: number;
}
class TooltipView extends spacePen.View {
constructor(public rect: Rect) {
super();
$(document.body).append(this[0]);
... | import spacePen = require('atom-space-pen-views');
var $ = spacePen.jQuery;
interface Rect {
left: number;
right: number;
top: number;
bottom: number;
}
class TooltipView extends spacePen.View {
constructor(public rect: Rect) {
super();
$(document.body).append(this[0]);
th... | Fix issue where space pen would throw when it shouldnt (require was getting eatin by compiler?) | Fix issue where space pen would throw when it shouldnt (require was getting eatin by compiler?)
| TypeScript | mit | hitesh97/omnisharp-atom,hitesh97/omnisharp-atom,joerter/omnisharp-atom,OmniSharp/omnisharp-atom,rambocoder/omnisharp-atom,RichiCoder1/omnisharp-atom,tmunro/omnisharp-atom,joerter/omnisharp-atom,RichiCoder1/omnisharp-atom,tmunro/omnisharp-atom,joerter/omnisharp-atom,joerter/omnisharp-atom,rambocoder/omnisharp-atom,OmniS... | ---
+++
@@ -1,5 +1,5 @@
-import spacePen = require("atom-space-pen-views");
-import $ = require('jquery');
+import spacePen = require('atom-space-pen-views');
+var $ = spacePen.jQuery;
interface Rect {
left: number;
@@ -17,6 +17,7 @@
}
private inner: JQuery;
+
static content() {
retu... |
e9adbe8f1929b8360f496df8afd13dfc177156cf | lib/components/src/Loader/Loader.tsx | lib/components/src/Loader/Loader.tsx | import React from 'react';
import { styled } from '@storybook/theming';
import { transparentize, opacify } from 'polished';
import { rotate360 } from '../shared/animation';
const LoaderWrapper = styled.div(({ theme }) => ({
borderRadius: '3em',
cursor: 'progress',
display: 'inline-block',
overflow: 'hidden',
... | import React from 'react';
import { styled } from '@storybook/theming';
import { rotate360 } from '../shared/animation';
const LoaderWrapper = styled.div(({ theme }) => ({
borderRadius: '3em',
cursor: 'progress',
display: 'inline-block',
overflow: 'hidden',
position: 'absolute',
transition: 'all 200ms ease... | FIX loader being invisible on light background or dark ones | FIX loader being invisible on light background or dark ones
| TypeScript | mit | storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook | ---
+++
@@ -1,6 +1,5 @@
import React from 'react';
import { styled } from '@storybook/theming';
-import { transparentize, opacify } from 'polished';
import { rotate360 } from '../shared/animation';
const LoaderWrapper = styled.div(({ theme }) => ({
@@ -20,10 +19,11 @@
zIndex: 4,
borderWidth: 2,
borderS... |
faa8f06c72d778afef9074757c937f2dba52c581 | src/avm2/global.ts | src/avm2/global.ts | /*
* Copyright 2014 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | /*
* Copyright 2014 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | Make performance.now shim work in shells lacking dateNow | Make performance.now shim work in shells lacking dateNow
| TypeScript | apache-2.0 | mozilla/shumway,tschneidereit/shumway,tschneidereit/shumway,yurydelendik/shumway,mbebenita/shumway,yurydelendik/shumway,tschneidereit/shumway,mbebenita/shumway,yurydelendik/shumway,mozilla/shumway,mbebenita/shumway,tschneidereit/shumway,tschneidereit/shumway,yurydelendik/shumway,mbebenita/shumway,mbebenita/shumway,tsch... | ---
+++
@@ -48,5 +48,5 @@
}
if (!jsGlobal.performance.now) {
- jsGlobal.performance.now = dateNow;
+ jsGlobal.performance.now = typeof dateNow !== 'undefined' ? dateNow : Date.now;
} |
f0852dbb589b2a99146d360e55a23ee5b942b622 | src/clojureDefinition.ts | src/clojureDefinition.ts | 'use strict';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import * as vscode from 'vscode';
import {
nREPLClient
} from './nreplClient';
import {
ClojureProvider
} from './clojureProvider'
export class ClojureDefinitionProvider extends ClojureProvider implements vscode.D... | 'use strict';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import * as vscode from 'vscode';
import {
nREPLClient
} from './nreplClient';
import {
ClojureProvider
} from './clojureProvider'
export class ClojureDefinitionProvider extends ClojureProvider implements vscode.D... | Fix possible bug with missing return | Fix possible bug with missing return
| TypeScript | mit | avli/clojureVSCode,avli/clojureVSCode,anyayunli/clojureVSCode,alessandrod/clojureVSCode,fasfsfgs/clojureVSCode | ---
+++
@@ -28,7 +28,7 @@
nrepl.info(currentWord, ns, (info) => {
if (!info.file) {
// vscode.window.showInformationMessage(`Can't find definition for ${currentWord}.`);
- reject();
+ return reject();
}
... |
9301bbd7fce13eeff4261f28318f1d09fc119d52 | web/src/views/Guilds.tsx | web/src/views/Guilds.tsx | import React, { Component } from 'react'
import { Link } from 'react-router-dom'
import './Guilds.scss'
import API from '../api'
import Guild from './Guild'
import { Guild as GuildT } from '../types'
type State = {
guilds: GuildT[] | null
}
export default class Guilds extends Component<{}, State> {
state: State ... | import React, { Component } from 'react'
import { Link } from 'react-router-dom'
import './Guilds.scss'
import API from '../api'
import Guild from './Guild'
import { Guild as GuildT } from '../types'
type State = {
guilds: GuildT[] | null
}
export default class Guilds extends Component<{}, State> {
state: State ... | Add key properly on guild listing | Add key properly on guild listing
| TypeScript | mit | slice/dogbot,slice/dogbot,sliceofcode/dogbot,slice/dogbot,sliceofcode/dogbot | ---
+++
@@ -27,9 +27,9 @@
content = <p>Loading servers...</p>
} else if (guilds.length !== 0) {
const guildNodes = guilds.map((guild: GuildT) => (
- <li>
+ <li key={guild.id}>
<Link to={`/guild/${guild.id}`}>
- <Guild key={guild.id} guild={guild} />
+ ... |
39f9ea32ac9abc594ce0c3a89a6813ab857076e0 | packages/expo/src/environment/logging.ts | packages/expo/src/environment/logging.ts | import { Constants } from 'expo-constants';
import Logs from '../logs/Logs';
import RemoteLogging from '../logs/RemoteLogging';
if (Constants.manifest && Constants.manifest.logUrl) {
// Enable logging to the Expo dev tools only if this JS is not running in a web browser (ex: the
// remote debugger)
if (!navigat... | import { Constants } from 'expo-constants';
import Logs from '../logs/Logs';
import RemoteLogging from '../logs/RemoteLogging';
if (Constants.manifest && Constants.manifest.logUrl) {
// Enable logging to the Expo dev tools only if this JS is not running in a web browser (ex: the
// remote debugger)
if (!navigat... | Remove extra slash after node_modules regex for Windows paths | [expo] Remove extra slash after node_modules regex for Windows paths
Make the regex to match node_modules paths work on Windows where there are backslashes. (Normally we should make the regex more correct instead of looser but this heuristic is a quick patch for an issue we should fix at the root by moving to a better... | TypeScript | bsd-3-clause | exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponen... | ---
+++
@@ -22,7 +22,7 @@
if (
args.length > 0 &&
typeof args[0] === 'string' &&
- /^Require cycle: .*node_modules\//.test(args[0])
+ /^Require cycle: .*node_modules/.test(args[0])
) {
return;
} |
0b30811f14d62c1e6d8acf462d8aa8a0aa6d4c4b | src/main.ts | src/main.ts | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2019-2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | Add instructions for enabling debugging tools | Add instructions for enabling debugging tools
| TypeScript | apache-2.0 | google/peoplemath,google/peoplemath,google/peoplemath,google/peoplemath,google/peoplemath | ---
+++
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC
+// Copyright 2019-2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -12,15 +12,22 @@
// See the License for the specific language governing permissions ... |
9c9f56e2319bcd030f46c0934adc850fea00cc65 | app/javascript/retrospring/features/questionbox/all.ts | app/javascript/retrospring/features/questionbox/all.ts | import Rails from '@rails/ujs';
import { showErrorNotification, showNotification } from 'utilities/notifications';
import I18n from 'retrospring/i18n';
export function questionboxAllHandler(event: Event): void {
const button = event.target as HTMLButtonElement;
button.disabled = true;
document.querySelector<HTM... | import { post } from '@rails/request.js';
import { showErrorNotification, showNotification } from 'utilities/notifications';
import I18n from 'retrospring/i18n';
export function questionboxAllHandler(event: Event): void {
const button = event.target as HTMLButtonElement;
button.disabled = true;
document.querySe... | Refactor question asking to use request.js | Refactor question asking to use request.js
| TypeScript | agpl-3.0 | Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring | ---
+++
@@ -1,4 +1,4 @@
-import Rails from '@rails/ujs';
+import { post } from '@rails/request.js';
import { showErrorNotification, showNotification } from 'utilities/notifications';
import I18n from 'retrospring/i18n';
@@ -8,31 +8,32 @@
button.disabled = true;
document.querySelector<HTMLInputElement>('text... |
1722a8479cb0c181454563c4e2d2eed8285f39b9 | src/environments/environment.ts | src/environments/environment.ts | export const environment = {
production: false,
APP_NAME_VERSION: 'OpenRadiation app 2.0.0-beta.2',
API_KEY: '50adef3bdec466edc25f40c8fedccbce',
API_URI: 'https://submit.open-radiation.net/measurements',
IN_APP_BROWSER_URI: {
base: 'https://request.open-radiation.net',
suffix: 'openradiation'
}
};
| export const environment = {
production: false,
APP_NAME_VERSION: 'OpenRadiation app 2.0.0-beta.2 dev',
API_KEY: '50adef3bdec466edc25f40c8fedccbce',
API_URI: 'https://submit.open-radiation.net/measurements',
IN_APP_BROWSER_URI: {
base: 'https://request.open-radiation.net',
suffix: 'openradiation'
}
... | Add distinctive name between beta app and dev app | Add distinctive name between beta app and dev app
| TypeScript | apache-2.0 | openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile | ---
+++
@@ -1,6 +1,6 @@
export const environment = {
production: false,
- APP_NAME_VERSION: 'OpenRadiation app 2.0.0-beta.2',
+ APP_NAME_VERSION: 'OpenRadiation app 2.0.0-beta.2 dev',
API_KEY: '50adef3bdec466edc25f40c8fedccbce',
API_URI: 'https://submit.open-radiation.net/measurements',
IN_APP_BROWSER_... |
e22157b4470843882e3d1879306b39dd9a66cd7c | examples/typescript/06_core/hello-world/src/app.ts | examples/typescript/06_core/hello-world/src/app.ts | import { FileDb } from 'jovo-db-filedb';
import { App } from 'jovo-framework';
import { CorePlatform } from 'jovo-platform-core';
import { JovoDebugger } from 'jovo-plugin-debugger';
import { AmazonCredentials, LexSlu } from 'jovo-slu-lex';
const app = new App();
const corePlatform = new CorePlatform();
const creden... | import { FileDb } from 'jovo-db-filedb';
import { App } from 'jovo-framework';
import { CorePlatform } from 'jovo-platform-core';
import { JovoDebugger } from 'jovo-plugin-debugger';
import { AmazonCredentials, LexSlu } from 'jovo-slu-lex';
const app = new App();
const corePlatform = new CorePlatform();
const creden... | Fix QuickReply value in example | :bug: Fix QuickReply value in example
| TypeScript | apache-2.0 | jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs | ---
+++
@@ -30,7 +30,7 @@
},
HelloWorldIntent() {
- this.$corePlatformApp?.$actions.addQuickReplies(['John', 'Jack', 'Max']);
+ this.$corePlatformApp?.$actions.addQuickReplies(['Joe', 'Jane', 'Max']);
this.ask("Hello World! What's your name?", 'Please tell me your name.');
},
|
ee35f5dc968c699f2b3481cf91041bdf632fbba5 | front/src/app/component/page-footer/page-footer.component.spec.ts | front/src/app/component/page-footer/page-footer.component.spec.ts | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { PageFooterComponent } from './page-footer.component';
describe('PageFooterComponent', () => {
let component: PageFooterComponent;
let fixture: ComponentFixture<PageFooterComponent>;
beforeEach(async(() => {
TestBed.configure... | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { PageFooterComponent } from './page-footer.component';
describe('PageFooterComponent', () => {
let pageFooterComponent: PageFooterComponent;
let pageFooterFixture: ComponentFixture<Pag... | Add page footer component test | test(front): Add page footer component test
| TypeScript | bsd-3-clause | Saka7/word-kombat,Saka7/word-kombat,Saka7/word-kombat,Saka7/word-kombat | ---
+++
@@ -1,22 +1,33 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+import { By } from '@angular/platform-browser';
import { PageFooterComponent } from './page-footer.component';
describe('PageFooterComponent', () => {
- let component: PageFooterComponent;
- let fixture: Comp... |
101945a15be76647885da6d37bd78a9833871151 | packages/glimmer-util/lib/assert.ts | packages/glimmer-util/lib/assert.ts | import Logger from './logger';
let alreadyWarned = false;
export function debugAssert(test, msg) {
// if (!alreadyWarned) {
// alreadyWarned = true;
// Logger.warn("Don't leave debug assertions on in public builds");
// }
if (!test) {
throw new Error(msg || "assertion failure");
}
}
export functi... | import Logger from './logger';
// let alreadyWarned = false;
export function debugAssert(test, msg) {
// if (!alreadyWarned) {
// alreadyWarned = true;
// Logger.warn("Don't leave debug assertions on in public builds");
// }
if (!test) {
throw new Error(msg || "assertion failure");
}
}
export fu... | Comment out (now) unused variable | Comment out (now) unused variable
| TypeScript | mit | chadhietala/glimmer,glimmerjs/glimmer-vm,chadhietala/glimmer,tildeio/glimmer,tildeio/glimmer,tildeio/glimmer,lbdm44/glimmer-vm,glimmerjs/glimmer-vm,lbdm44/glimmer-vm,glimmerjs/glimmer-vm,chadhietala/glimmer,lbdm44/glimmer-vm,chadhietala/glimmer | ---
+++
@@ -1,6 +1,7 @@
import Logger from './logger';
-let alreadyWarned = false;
+// let alreadyWarned = false;
+
export function debugAssert(test, msg) {
// if (!alreadyWarned) {
// alreadyWarned = true; |
d3fe167ba7b7eb37ca180a485bec223d8f86ce80 | addon-test-support/index.ts | addon-test-support/index.ts | export { default as a11yAudit } from './audit';
export { default as a11yAuditIf } from './audit-if';
export { setRunOptions, getRunOptions } from './run-options';
export { setEnableA11yAudit, shouldForceAudit } from './should-force-audit';
export { useMiddlewareReporter } from './use-middleware-reporter';
export {
se... | export { default as a11yAudit } from './audit';
export { default as a11yAuditIf } from './audit-if';
export { setRunOptions, getRunOptions } from './run-options';
export { setEnableA11yAudit, shouldForceAudit } from './should-force-audit';
export { useMiddlewareReporter } from './use-middleware-reporter';
export {
se... | Use type-only export for types re-export | Use type-only export for types re-export
| TypeScript | mit | ember-a11y/ember-a11y-testing,ember-a11y/ember-a11y-testing,ember-a11y/ember-a11y-testing | ---
+++
@@ -18,4 +18,4 @@
export { storeResults, printResults } from './logger';
export { setupConsoleLogger } from './setup-console-logger';
-export { InvocationStrategy, A11yAuditReporter } from './types';
+export type { InvocationStrategy, A11yAuditReporter } from './types'; |
4a5386e46a7006f3708a9c6c81bb87d673099823 | src/dialog/dialog-info/info-options.ts | src/dialog/dialog-info/info-options.ts | /*
MIT License
Copyright (c) 2017 Temainfo Sistemas
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, copy, modify, merge,... | /*
MIT License
Copyright (c) 2017 Temainfo Sistemas
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, copy, modify, merge,... | Add property draggable to info dialog | feat(dialog): Add property draggable to info dialog
| TypeScript | mit | TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui | ---
+++
@@ -22,4 +22,5 @@
export interface InfoOptions {
title?: string;
textOk?: string;
+ draggable?: boolean;
} |
3af114db7aad0e17a5fcfed747a0285cc14eb511 | source/api/graphql/api.ts | source/api/graphql/api.ts | import { fetch } from "../../api/fetch"
export const graphqlAPI = (url: string, query: string) =>
fetch(`${url}/api/graphql`, {
method: "POST",
body: JSON.stringify({ query }),
})
.then(res => {
if (!res.ok) {
return res.json()
} else {
throw new Error("HTTP error\n" + JSON.... | import { fetch } from "../../api/fetch"
export const graphqlAPI = (url: string, query: string) =>
fetch(`${url}/api/graphql`, {
method: "POST",
body: JSON.stringify({ query }),
})
.then(res => {
if (res.ok) {
return res.json()
} else {
throw new Error("HTTP error\n" + JSON.s... | Fix booleab logic in the error handling | Fix booleab logic in the error handling
| TypeScript | mit | danger/peril,danger/peril,danger/peril,danger/peril,danger/peril | ---
+++
@@ -6,7 +6,7 @@
body: JSON.stringify({ query }),
})
.then(res => {
- if (!res.ok) {
+ if (res.ok) {
return res.json()
} else {
throw new Error("HTTP error\n" + JSON.stringify(res, null, " ")) |
1e5f0390250b2d2069afe6becff7d99d61a8a695 | src/components/createTestForm/createTestForm.component.ts | src/components/createTestForm/createTestForm.component.ts | import { Component, OnInit } from '@angular/core';
@Component({
selector: 'llta-create-test-form',
templateUrl: './createTestForm.component.html',
styleUrls: ['./createTestForm.component.scss']
})
export class CreateTestFormComponent {
getNumbersRange(): number[] {
return Array(answersQuantity).fill().map(... | import { Component, OnInit } from '@angular/core';
import { range } from 'lodash.range';
@Component({
selector: 'llta-create-test-form',
templateUrl: './createTestForm.component.html',
styleUrls: ['./createTestForm.component.scss']
})
export class CreateTestFormComponent {
question: string;
matching: boolea... | Add variables defining, refactor function | Add variables defining, refactor function
| TypeScript | mit | ivanna-ostrovets/language-and-literature-admin,ivanna-ostrovets/language-and-literature-admin,ivanna-ostrovets/language-and-literature-admin | ---
+++
@@ -1,4 +1,6 @@
import { Component, OnInit } from '@angular/core';
+
+import { range } from 'lodash.range';
@Component({
selector: 'llta-create-test-form',
@@ -6,8 +8,16 @@
styleUrls: ['./createTestForm.component.scss']
})
export class CreateTestFormComponent {
+ question: string;
+ matching: bo... |
8cd5087b9dd2e34ef074fd843fff4043ff39421a | src/extension/decorations/flutter_icon_decorations_lsp.ts | src/extension/decorations/flutter_icon_decorations_lsp.ts | import { FlutterOutline } from "../../shared/analysis/lsp/custom_protocol";
import { Logger } from "../../shared/interfaces";
import { fsPath } from "../../shared/utils/fs";
import { IconRangeComputerLsp } from "../../shared/vscode/icon_range_computer";
import { LspAnalyzer } from "../analysis/analyzer_lsp";
import { F... | import * as vs from "vscode";
import { FlutterOutline } from "../../shared/analysis/lsp/custom_protocol";
import { Logger } from "../../shared/interfaces";
import { fsPath } from "../../shared/utils/fs";
import { IconRangeComputerLsp } from "../../shared/vscode/icon_range_computer";
import { LspAnalyzer } from "../anal... | Fix Flutter icon previews not detecting incoming outlines correctly due to URI in string | Fix Flutter icon previews not detecting incoming outlines correctly due to URI in string
Fixes #3081.
| TypeScript | mit | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code | ---
+++
@@ -1,3 +1,4 @@
+import * as vs from "vscode";
import { FlutterOutline } from "../../shared/analysis/lsp/custom_protocol";
import { Logger } from "../../shared/interfaces";
import { fsPath } from "../../shared/utils/fs";
@@ -12,7 +13,7 @@
this.computer = new IconRangeComputerLsp(logger);
this.subsc... |
c62b82a98dd71e96a94e4c997a3dba15b49d2070 | pofile.d.ts | pofile.d.ts | declare interface IHeaders {
'Project-Id-Version': string;
'Report-Msgid-Bugs-To': string;
'POT-Creation-Date': string;
'PO-Revision-Date': string;
'Last-Translator': string;
'Language': string;
'Language-Team': string;
'Content-Type': string;
'Content-Transfer-Encoding': string;
... | declare interface IHeaders {
'Project-Id-Version': string;
'Report-Msgid-Bugs-To': string;
'POT-Creation-Date': string;
'PO-Revision-Date': string;
'Last-Translator': string;
'Language': string;
'Language-Team': string;
'Content-Type': string;
'Content-Transfer-Encoding': string;
... | Revert "Fix type of PO.Item" | Revert "Fix type of PO.Item"
| TypeScript | mit | rubenv/pofile | ---
+++
@@ -36,7 +36,7 @@
public static parse(data: string): PO;
public static parsePluralForms(forms: string): PO;
public static load(fileName: string, callback: (err: NodeJS.ErrnoException, po: PO) => void): void;
- public static Item: Item;
+ public static Item: typeof Item;
public save... |
17bbed90f19ff2c47f2aa01d95fe20532a158a4a | app/src/ui/lib/avatar.tsx | app/src/ui/lib/avatar.tsx | import * as React from 'react'
import { IGitHubUser } from '../../lib/dispatcher'
interface IAvatarProps {
readonly gitHubUser: IGitHubUser | null
readonly title: string | null
}
const DefaultAvatarURL = 'https://github.com/hubot.png'
export class Avatar extends React.Component<IAvatarProps, void> {
private g... | 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... | Generalize Avatar to only require the properties we need | Generalize Avatar to only require the properties we need
| TypeScript | mit | gengjiawen/desktop,shiftkey/desktop,desktop/desktop,artivilla/desktop,BugTesterTest/desktops,j-f1/forked-desktop,shiftkey/desktop,BugTesterTest/desktops,desktop/desktop,kactus-io/kactus,j-f1/forked-desktop,gengjiawen/desktop,j-f1/forked-desktop,BugTesterTest/desktops,say25/desktop,desktop/desktop,shiftkey/desktop,artiv... | ---
+++
@@ -1,29 +1,44 @@
import * as React from 'react'
-import { IGitHubUser } from '../../lib/dispatcher'
-
-interface IAvatarProps {
- readonly gitHubUser: IGitHubUser | null
- readonly title: string | null
-}
const DefaultAvatarURL = 'https://github.com/hubot.png'
+/** The minimum properties we need in o... |
0042f268b9ee8ccb2e1cfe75c32e93e19af7f4a7 | src/components/donation/Donation.tsx | src/components/donation/Donation.tsx | import * as React from 'react';
import { formatNumber } from '../shared/utils';
interface Props {
total: number;
goal: number;
}
interface State {}
export class Donation extends React.Component<Props, State> {
render () {
// if goal is zero, percent = 100 to avoid divide by zero error
const pctDone = t... | import * as React from 'react';
import { formatNumber } from '../shared/utils';
interface Props {
total: number;
goal: number;
}
interface State {}
export class Donation extends React.Component<Props, State> {
render () {
// if goal is zero, percent = 100 to avoid divide by zero error
const pctDone = t... | Remove the goal for now. | Remove the goal for now.
| TypeScript | mit | 5calls/react-dev,5calls/5calls,5calls/5calls,5calls/5calls,5calls/5calls,5calls/react-dev,5calls/react-dev | ---
+++
@@ -20,7 +20,7 @@
<span style={pctDoneStyle} className="logo__header__donatebar__total">
{`\$${formatNumber(this.props.total)}`}
</span>
- <span className="logo__header__donatebar__goal">{`\$${formatNumber(this.props.goal)}`}</span>
+ {/* <span ... |
c3033312581fe023a66bf3b60c1b80abf5e4b80d | examples/arduino-uno/multiple-blinks.ts | examples/arduino-uno/multiple-blinks.ts | import { Byte, periodic } from '@amnisio/rivulet';
import { Sources, HIGH, LOW, run, createSinks } from '@amnisio/arduino-uno';
const invert = (value: Byte) => value == LOW ? HIGH : LOW;
// Sample application that will blink multiple LEDs attached to the arduino UNO at various cycles.
// Requires an LED to be connect... | import { Int, periodic } from '@amnisio/rivulet';
import { Sources, HIGH, LOW, run, createSinks } from '@amnisio/arduino-uno';
const invert = (value: Int) => value == LOW ? HIGH : LOW;
// Sample application that will blink multiple LEDs attached to the arduino UNO at various cycles.
// Requires an LED to be connected... | Use Int instead of Byte | Use Int instead of Byte
| TypeScript | mit | artfuldev/RIoT | ---
+++
@@ -1,7 +1,7 @@
-import { Byte, periodic } from '@amnisio/rivulet';
+import { Int, periodic } from '@amnisio/rivulet';
import { Sources, HIGH, LOW, run, createSinks } from '@amnisio/arduino-uno';
-const invert = (value: Byte) => value == LOW ? HIGH : LOW;
+const invert = (value: Int) => value == LOW ? HIGH... |
841271843d8969197683c10ae75ed7bf6e76f68f | src/desktop/apps/search2/client.tsx | src/desktop/apps/search2/client.tsx | import { buildClientApp } from "reaction/Artsy/Router/client"
import { routes } from "reaction/Apps/Search/routes"
import { data as sd } from "sharify"
import React from "react"
import ReactDOM from "react-dom"
const mediator = require("desktop/lib/mediator.coffee")
buildClientApp({
routes,
context: {
user: s... | import { buildClientApp } from "reaction/Artsy/Router/client"
import { routes } from "reaction/Apps/Search/routes"
import { data as sd } from "sharify"
import React from "react"
import ReactDOM from "react-dom"
const mediator = require("desktop/lib/mediator.coffee")
buildClientApp({
routes,
context: {
user: s... | Update identifer of loading container | Update identifer of loading container
Follow up to https://github.com/artsy/force/pull/3910
The identifier was updated following review feedback, but the
client-side callback which removes the loading container still
referenced the old value. This commit makes that update.
| TypeScript | mit | cavvia/force-1,anandaroop/force,cavvia/force-1,anandaroop/force,joeyAghion/force,oxaudo/force,erikdstock/force,artsy/force,eessex/force,damassi/force,yuki24/force,izakp/force,eessex/force,artsy/force-public,artsy/force-public,damassi/force,yuki24/force,oxaudo/force,oxaudo/force,erikdstock/force,artsy/force,izakp/force,... | ---
+++
@@ -15,7 +15,7 @@
})
.then(({ ClientApp }) => {
ReactDOM.hydrate(<ClientApp />, document.getElementById("react-root"))
- document.getElementById("search-results-skeleton").remove()
+ document.getElementById("loading-container").remove()
})
.catch(error => {
console.error(error) |
5882591e288b37f752451ac27682dac075ddc3eb | tests/__tests__/ts-diagnostics.spec.ts | tests/__tests__/ts-diagnostics.spec.ts | import runJest from '../__helpers__/runJest';
describe('TypeScript Diagnostics errors', () => {
it('should show the correct error locations in the typescript files', () => {
const result = runJest('../ts-diagnostics', ['--no-cache']);
expect(result.stderr).toContain(
`Hello.ts(2,10): error TS2339: Prop... | import runJest from '../__helpers__/runJest';
describe('TypeScript Diagnostics errors', () => {
it('should show the correct error locations in the typescript files', () => {
const result = runJest('../ts-diagnostics', ['--no-cache']);
expect(result.stderr).toContain(
`Hello.ts(2,10): error TS2339: Prop... | Add test for the previous change | Add test for the previous change
| TypeScript | mit | kulshekhar/ts-jest,kulshekhar/ts-jest | ---
+++
@@ -10,4 +10,16 @@
`Hello.ts(13,10): error TS2339: Property 'unexcuted' does not exist on type 'Hello`,
);
});
+
+ it('should only show errors for the file which matches the enableTsDiagnostics regex', () => {
+ const result = runJest('../ts-diagnostics-regex', ['--no-cache']);
+ expect(... |
07425d786a6ee1425c55cee28b5f7294477aa62f | DeezerToolBar/content_scripts/actions.ts | DeezerToolBar/content_scripts/actions.ts | "use strict";
browser.runtime.onMessage.addListener(execute);
function execute(request, sender, callback) {
switch (request.execute) {
case 'Play':
case "PlayPause":
let pp = document.querySelector('.player-controls .svg-icon-play, .player-controls .svg-icon-pause');
pp.pa... | "use strict";
browser.runtime.onMessage.addListener(execute);
function execute(request, sender, callback) {
switch (request.execute) {
case 'Play':
case "PlayPause":
let pp = document.querySelector('.player-controls').childNodes[0];
pp.childNodes[2].childNodes[0].click();
... | Update action.ts to adapt current deezer layout. | Update action.ts to adapt current deezer layout.
Like status not any more accessible | TypeScript | mit | Chowbi/DeeToolBar,Chowbi/DeeToolBar | ---
+++
@@ -7,8 +7,8 @@
switch (request.execute) {
case 'Play':
case "PlayPause":
- let pp = document.querySelector('.player-controls .svg-icon-play, .player-controls .svg-icon-pause');
- pp.parentElement.click();
+ let pp = document.querySelector('.player-contr... |
f81cd287bd71c6b4bb693d7a6fa523824deeffcf | ui/src/shared/decorators/errors.tsx | ui/src/shared/decorators/errors.tsx | /*
tslint:disable no-console
tslint:disable max-classes-per-file
*/
import React, {ComponentClass, PureComponent, Component} from 'react'
class DefaultError extends PureComponent {
public render() {
return (
<p className="error">
A Chronograf error has occurred. Please report the issue
... | /*
tslint:disable no-console
tslint:disable max-classes-per-file
*/
import React, {ComponentClass, Component} from 'react'
class DefaultError extends Component {
public render() {
return (
<p className="error">
A Chronograf error has occurred. Please report the issue
<a href="https... | Swap default error to be a Component instead of PureComponent | Swap default error to be a Component instead of PureComponent
| TypeScript | mit | influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdata/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,li-ang/influxdb,nooproblem/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdb/influxdb,mark... | ---
+++
@@ -3,9 +3,9 @@
tslint:disable max-classes-per-file
*/
-import React, {ComponentClass, PureComponent, Component} from 'react'
+import React, {ComponentClass, Component} from 'react'
-class DefaultError extends PureComponent {
+class DefaultError extends Component {
public render() {
return (
... |
d0578030e8fce16edc11734dc2a0f9a64b21516e | src/components/type/type.mapper.ts | src/components/type/type.mapper.ts | import { Type } from './type.model';
import { ItemTemplate } from '@core/game_master/gameMaster';
import { Util } from '@util';
import APP_SETTINGS from '@settings/app';
export class TypeMapper {
public static Map(rawType: ItemTemplate): Type {
let type: Type = new Type();
type.id = rawType.templa... | import { Type } from './type.model';
import { ItemTemplate } from '@core/game_master/gameMaster';
import { Util } from '@util';
import APP_SETTINGS from '@settings/app';
export class TypeMapper {
public static Map(rawType: ItemTemplate): Type {
let type: Type = new Type();
type.id = rawType.templa... | Add type.json - Code style changes | Add type.json - Code style changes
| TypeScript | mit | BrunnerLivio/pokemongo-json-pokedex,vfcp/pokemongo-json-pokedex,BrunnerLivio/pokemongo-data-normalizer,BrunnerLivio/pokemongo-json-pokedex,BrunnerLivio/pokemongo-data-normalizer,vfcp/pokemongo-json-pokedex | ---
+++
@@ -10,10 +10,10 @@
type.id = rawType.templateId;
type.name = Util.SnakeCase2HumanReadable(rawType.templateId.replace('POKEMON_TYPE_', ''));
- type.damage = APP_SETTINGS.POKEMON_TYPES.map((pokemonType, index) => { return {
+ type.damage = APP_SETTINGS.POKEMON_TYPES.map((pokem... |
447796daeacbe99c3cfe0cae19fbc658f7ebfaf4 | source/platforms/git/_tests/local_dangerfile_example.ts | source/platforms/git/_tests/local_dangerfile_example.ts | // This dangerfile is for running as an integration test on CI
import { DangerDSLType } from "../../../dsl/DangerDSL"
declare var danger: DangerDSLType
declare function markdown(params: string): void
const showArray = (array: any[], mapFunc?: (any) => any) => {
const defaultMap = (a: any) => a
const mapper = mapF... | // This dangerfile is for running as an integration test on CI
import { DangerDSLType } from "../../../dsl/DangerDSL"
declare var danger: DangerDSLType
declare function markdown(params: string): void
const showArray = (array: any[], mapFunc?: (any) => any) => {
const defaultMap = (a: any) => a
const mapper = mapF... | Fix the example dangerfile to not crash if no JSON files are in the PR | Fix the example dangerfile to not crash if no JSON files are in the PR
| TypeScript | mit | danger/danger-js,danger/danger-js,danger/danger-js,danger/danger-js | ---
+++
@@ -16,6 +16,7 @@
const firstFileDiff = await git.diffForFile(git.modified_files[0])
const firstJSONFile = git.modified_files.find(f => f.endsWith("json"))
const jsonDiff = firstJSONFile && (await git.JSONDiffForFile(firstJSONFile))
+ const jsonDiffKeys = jsonDiff && showArray(Object.keys(jsonDiff))... |
dbc0050a9218034e47dae38a72747c4bd270cd32 | Presentation.Web/Tests/home.e2e.spec.ts | Presentation.Web/Tests/home.e2e.spec.ts | module Kitos.Tests.e2e.Home {
class KitosHomePage {
emailInput;
constructor() {
this.emailInput = element(by.model('email'));
}
get(): void {
browser.get('https://localhost:44300');
}
get email(): string {
return this.emailInput... | module Kitos.Tests.e2e.Home {
class KitosHomePage {
emailInput;
constructor() {
this.emailInput = element(by.model('email'));
}
get(): void {
browser.get('https://localhost:44300');
}
get email(): string {
return this.emailInput... | Set jasmine timeout to 90 seconds. | Set jasmine timeout to 90 seconds.
| TypeScript | mpl-2.0 | os2kitos/kitos,miracle-as/kitos,os2kitos/kitos,os2kitos/kitos,miracle-as/kitos,miracle-as/kitos,miracle-as/kitos,os2kitos/kitos | ---
+++
@@ -20,6 +20,9 @@
}
describe('home view', () => {
+ jasmine.DEFAULT_TIMEOUT_INTERVAL = 90000;
+ console.log("jasmine timeout: " + jasmine.DEFAULT_TIMEOUT_INTERVAL);
+
var homePage;
beforeEach(() => { |
397ff23a3038c1acd339e4ff23963574b037c1a9 | console/src/app/core/mongoose-run-status.ts | console/src/app/core/mongoose-run-status.ts | export enum MongooseRunStatus {
// NOTE: "All" status is used to match every existing Mongoose Run Record.
// It's being used in filter purposes.
All = "All",
Finished = "Finished",
Unavailable = "Unavailable",
Running = "Running",
} | export enum MongooseRunStatus {
// NOTE: "All" status is used to match every existing Mongoose Run Record.
// It's being used in filter purposes.
All = "All",
Undefined = "Undefined",
Finished = "Finished",
Unavailable = "Unavailable",
Running = "Running",
} | Add 'undefined' options for Mongose run status. | Add 'undefined' options for Mongose run status.
| TypeScript | mit | emc-mongoose/console,emc-mongoose/console,emc-mongoose/console | ---
+++
@@ -3,7 +3,7 @@
// NOTE: "All" status is used to match every existing Mongoose Run Record.
// It's being used in filter purposes.
All = "All",
-
+ Undefined = "Undefined",
Finished = "Finished",
Unavailable = "Unavailable",
Running = "Running", |
f054dfed3df3eeb2e89163266fe78cafa4edc810 | src/lib/Components/Inbox/Bids/index.tsx | src/lib/Components/Inbox/Bids/index.tsx | import * as React from "react"
import * as Relay from "react-relay"
import styled from "styled-components/native"
import { View } from "react-native"
import { LargeHeadline } from "../Typography"
import ActiveBid from "./ActiveBid"
const Container = styled.View`margin: 20px 0 40px;`
class ActiveBids extends React.Co... | import * as React from "react"
import * as Relay from "react-relay"
import styled from "styled-components/native"
import { View } from "react-native"
import { LargeHeadline } from "../Typography"
import ActiveBid from "./ActiveBid"
const Container = styled.View`margin: 20px 0 40px;`
class ActiveBids extends React.Co... | Remove code that deals with staging details. | [Bids] Remove code that deals with staging details.
Guards around the user possibly having been removed after the weekly
sync.
| TypeScript | mit | artsy/eigen,artsy/emission,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/emission,artsy/emission,artsy/emission,artsy/eigen,artsy/emission,artsy/emission,artsy/emission,artsy/eigen | ---
+++
@@ -10,15 +10,11 @@
class ActiveBids extends React.Component<RelayProps, null> {
hasContent() {
- if (!this.props.me) {
- return false
- }
return this.props.me.lot_standings.length > 0
}
renderRows() {
- const me = this.props.me || { lot_standings: [] }
- const bids = me.lo... |
647a0d83ce9404ac2cda3a11916aba3b0c408cf0 | packages/rev-ui-materialui/src/index.ts | packages/rev-ui-materialui/src/index.ts |
import { UI_COMPONENTS } from 'rev-ui/lib/config';
import { MUIListView } from './views/MUIListView';
import { MUIDetailView } from './views/MUIDetailView';
import { MUITextField } from './fields/MUITextField';
import { MUIActionButton } from './actions/MUIActionButton';
export function registerComponents() {
UI... |
import { UI_COMPONENTS } from 'rev-ui/lib/config';
import { MUIListView } from './views/MUIListView';
import { MUIDetailView } from './views/MUIDetailView';
import { MUITextField } from './fields/MUITextField';
import { MUIActionButton } from './actions/MUIActionButton';
export function registerComponents() {
UI... | Add <RemoveAction /> MUI component | Add <RemoveAction /> MUI component
| TypeScript | mit | RevFramework/rev-framework,RevFramework/rev-framework | ---
+++
@@ -12,6 +12,7 @@
UI_COMPONENTS.actions.PostAction = MUIActionButton;
UI_COMPONENTS.actions.SaveAction = MUIActionButton;
+ UI_COMPONENTS.actions.RemoveAction = MUIActionButton;
UI_COMPONENTS.fields.DateField = MUITextField;
UI_COMPONENTS.fields.TimeField = MUITextField; |
f9ead9582e75b95710f188a0d71415c7a248f712 | src/core/base/value-accessor-provider.ts | src/core/base/value-accessor-provider.ts | /*
MIT License
Copyright (c) 2017 Temainfo Sistemas
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, copy, modify, merge,... | /*
MIT License
Copyright (c) 2017 Temainfo Sistemas
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, copy, modify, merge,... | Fix return of the function MakeProvider broking build. | fix(value-acessor-provider): Fix return of the function MakeProvider broking build.
| TypeScript | mit | TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui | ---
+++
@@ -22,7 +22,7 @@
import { NG_VALUE_ACCESSOR } from '@angular/forms';
import { forwardRef } from '@angular/core';
-export function MakeProvider( type: any) {
+export function MakeProvider( type: any): any {
return {
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => type), |
c6cb5040770ca4f93ab88667e874190b19dbd8ed | lib/components/Layout.tsx | lib/components/Layout.tsx | import React from "react";
import Head from "./Head";
import Header from "./Header";
import Footer from "./Footer";
import Cookiescript from "./Cookiescript";
const Layout = ({
title = "drublic - Engineering Management & Software Architecture - Hans Christian Reinl, Cologne",
description = `Engineering Management ... | import React from "react";
import Head from "./Head";
import Header from "./Header";
import Footer from "./Footer";
import Cookiescript from "./Cookiescript";
const Layout = ({
title = "drublic - Engineering Management & Software Architecture - Hans Christian Reinl, Cologne",
description = `Engineering Management ... | Fix default image in layout | Fix default image in layout
| TypeScript | mit | drublic/vc,drublic/vc,drublic/vc | ---
+++
@@ -7,7 +7,7 @@
const Layout = ({
title = "drublic - Engineering Management & Software Architecture - Hans Christian Reinl, Cologne",
description = `Engineering Management & Software Architecture, Hans Christian Reinl - Working Draft, Node.js, React, CSS, JavaScript & Agile`,
- image,
+ image = undef... |
748fb92d4a23890717af4375f83a787391dc09f2 | angular-typescript-webpack-jasmine/src/modules/tweets/angular/components/tweetSidebar/TweetSidebarComponent.ts | angular-typescript-webpack-jasmine/src/modules/tweets/angular/components/tweetSidebar/TweetSidebarComponent.ts | import {SidebarModel} from "../../../core/models/impl/SidebarModel";
import {SharedModel} from "../../../core/models/impl/SharedModel";
export class TweetSidebarComponent implements ng.IComponentOptions {
public template: string = `
<div ng-class="{'sidebar-collapsed': $ctrl.sharedModel.sidebarCollapsed}">
... | import {SidebarModel} from "../../../core/models/impl/SidebarModel";
import {SharedModel} from "../../../core/models/impl/SharedModel";
export class TweetSidebarComponent implements ng.IComponentOptions {
public template: string = `
<div ng-class="{'sidebar-collapsed': $ctrl.sharedModel.sidebarCollapsed}">
... | Delete useless trailing white spaces | Delete useless trailing white spaces
| TypeScript | mit | var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training | ---
+++
@@ -5,7 +5,7 @@
<div ng-class="{'sidebar-collapsed': $ctrl.sharedModel.sidebarCollapsed}">
<div>
<i ng-click="$ctrl.toggleCollapsed()" class="fa dp-collapse dp-collapse-right"
- ng-class="{'fa-chevron-left': !$ctrl.sharedModel.sidebarCollapsed,
+ ... |
6bd61885e45f54c62be8a45171ffba4154873f1e | app/src/main-process/menu/menu-event.ts | app/src/main-process/menu/menu-event.ts | export type MenuEvent =
'push' |
'pull' |
'select-changes' |
'select-history' |
'add-local-repository' |
'create-branch' |
'show-branches' |
'remove-repository' |
'add-repository' |
'rename-branch' |
'delete-branch' |
'check-for-updates' |
'quit-and-install-update' |
'show-preferences' |
'... | export type MenuEvent =
'push' |
'pull' |
'select-changes' |
'select-history' |
'add-local-repository' |
'create-branch' |
'show-branches' |
'remove-repository' |
'add-repository' |
'rename-branch' |
'delete-branch' |
'check-for-updates' |
'quit-and-install-update' |
'show-preferences' |
'... | Add show repo settings menu event | Add show repo settings menu event
| TypeScript | mit | kactus-io/kactus,BugTesterTest/desktops,say25/desktop,kactus-io/kactus,hjobrien/desktop,BugTesterTest/desktops,artivilla/desktop,gengjiawen/desktop,artivilla/desktop,j-f1/forked-desktop,desktop/desktop,kactus-io/kactus,BugTesterTest/desktops,BugTesterTest/desktops,artivilla/desktop,shiftkey/desktop,artivilla/desktop,de... | ---
+++
@@ -16,4 +16,5 @@
'choose-repository' |
'open-working-directory' |
'update-branch' |
- 'merge-branch'
+ 'merge-branch' |
+ 'show-repository-settings' |
4a94f9148f04d299433a2e72e1633fa0fbb76150 | src/vs/languages/php/common/php.contribution.ts | src/vs/languages/php/common/php.contribution.ts | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | Add `.php4` and `.php5` as extensions | Languages: Add `.php4` and `.php5` as extensions
I am not responsible of this stup*d*t* but unfortunately these extensions are very common… | TypeScript | mit | DustinCampbell/vscode,eklavyamirani/vscode,microlv/vscode,radshit/vscode,0xmohit/vscode,williamcspace/vscode,veeramarni/vscode,DustinCampbell/vscode,ioklo/vscode,gagangupt16/vscode,gagangupt16/vscode,charlespierce/vscode,williamcspace/vscode,veeramarni/vscode,ioklo/vscode,Krzysztof-Cieslak/vscode,landonepps/vscode,sifu... | ---
+++
@@ -8,7 +8,7 @@
ModesRegistry.registerCompatMode({
id: 'php',
- extensions: ['.php', '.phtml', '.ctp'],
+ extensions: ['.php', '.php4', '.php5', '.phtml', '.ctp'],
aliases: ['PHP', 'php'],
mimetypes: ['application/x-php'],
moduleId: 'vs/languages/php/common/php', |
ef199bb2f2bfa6f1da4e486035c511abfe653136 | src/config/configSpec.ts | src/config/configSpec.ts | export type ProjectConfig =
| string
| {
path: string;
watch?: boolean;
compiler?: string;
};
export type MtscConfig = {
debug?: boolean;
watch?: boolean;
compiler?: string;
projects: ProjectConfig[];
};
| // Tsconfig is only allowed for project tslint settings
export type TslintCfg =
| boolean // Enable tslint? Will search in project specific folder or global tslint file (will search to tslint.json if not provided)
| string // Rules file
| TslintCfgObject & {
// Will search in project specific fold... | Add tslint options to config + explaination comments | Add tslint options to config + explaination comments
| TypeScript | apache-2.0 | guidojo/multipleTypescriptCompilers,guidojo/multipleTypescriptCompilers | ---
+++
@@ -1,14 +1,42 @@
+// Tsconfig is only allowed for project tslint settings
+export type TslintCfg =
+ | boolean // Enable tslint? Will search in project specific folder or global tslint file (will search to tslint.json if not provided)
+ | string // Rules file
+ | TslintCfgObject & {
+ // Wi... |
31e43ef0a838fb057579b8dbd9f998aa53c1a4b8 | modules/viewport/index.ts | modules/viewport/index.ts | import * as React from 'react'
import {Dimensions} from 'react-native'
type WindowDimensions = {width: number; height: number}
type Props = {
render: (dimensions: WindowDimensions) => React.Node
}
type State = {
viewport: WindowDimensions
}
export class Viewport extends React.PureComponent<Props, State> {
state ... | import * as React from 'react'
import {Dimensions} from 'react-native'
type WindowDimensions = {width: number; height: number}
type Props = {
render: (dimensions: WindowDimensions) => React.ReactNode
}
type State = {
viewport: WindowDimensions
}
export class Viewport extends React.PureComponent<Props, State> {
s... | Fix up return type (Node -> ReactNode) | m/viewport: Fix up return type (Node -> ReactNode)
Signed-off-by: Kristofer Rye <1ed31cfd0b53bc3d1689a6fee6dbfc9507dffd22@gmail.com>
| TypeScript | agpl-3.0 | StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native | ---
+++
@@ -4,7 +4,7 @@
type WindowDimensions = {width: number; height: number}
type Props = {
- render: (dimensions: WindowDimensions) => React.Node
+ render: (dimensions: WindowDimensions) => React.ReactNode
}
type State = { |
933d9445996926338a901db6226d33950fff3176 | src/decorators/root-module.ts | src/decorators/root-module.ts | import * as http from 'http';
import { ListenOptions } from 'net';
import { makeDecorator, Provider, ReflectiveInjector, Injector } from '@ts-stack/di';
import { Router as RestifyRouter } from '@ts-stack/router';
import { PreRequest } from '../services/pre-request';
import { ModuleDecorator } from './module';
import {... | import * as http from 'http';
import { ListenOptions } from 'net';
import { makeDecorator, Provider, ReflectiveInjector, Injector } from '@ts-stack/di';
import { Router as KoaTreeRouter } from '@ts-stack/router';
import { PreRequest } from '../services/pre-request';
import { ModuleDecorator } from './module';
import {... | Fix typo in description defaultProvidersPerApp | Fix typo in description defaultProvidersPerApp
| TypeScript | mit | restify-ts/core,restify-ts/core,restify-ts/core,restify-ts/core | ---
+++
@@ -1,7 +1,7 @@
import * as http from 'http';
import { ListenOptions } from 'net';
import { makeDecorator, Provider, ReflectiveInjector, Injector } from '@ts-stack/di';
-import { Router as RestifyRouter } from '@ts-stack/router';
+import { Router as KoaTreeRouter } from '@ts-stack/router';
import { PreR... |
2970cf2aabe2035b8d11494d761b46af61078936 | client/app/services/data.service.ts | client/app/services/data.service.ts | import { Injectable } from '@angular/core';
import { Http, Headers, RequestOptions } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';
@Injectable()
export class DataService {
private headers = new Headers({ 'Content-Type': 'application/json', 'charset': 'UTF-8' })... | import { Injectable } from '@angular/core';
import { Http, Headers, RequestOptions } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';
@Injectable()
export class DataService {
private headers = new Headers({ 'Content-Type': 'application/json', 'charset': 'UTF-8' })... | Fix get cat api on frontend | Fix get cat api on frontend
| TypeScript | mit | hasman16/rent-a-ref,alitriki/TO52_Angular4,DavideViolante/Angular2-Express-Mongoose,amirkatzster/Neurimos,amirkatzster/Neurimos,nigel-smk/av-elab,DavideViolante/Angular-Full-Stack,alitriki/TO52_Angular4,DavideViolante/Angular-Full-Stack,amirkatzster/Neurimos,hasman16/rent-a-ref,amirkatzster/Neurimos,DavideViolante/Angu... | ---
+++
@@ -25,7 +25,7 @@
}
getCat(cat): Observable<any> {
- return this.http.get(`/api/cat/${cat._id}`, this.options);
+ return this.http.get(`/api/cat/${cat._id}`).map(res => res.json());
}
editCat(cat): Observable<any> { |
7b9111e7faa24635cdc496608fee1c23433e55ae | packages/data-access/src/query-access.ts | packages/data-access/src/query-access.ts | import { DataAccessConfig } from './acl-manager';
import { LuceneQueryAccess } from 'xlucene-evaluator';
/**
* Using a DataAccess ACL, limit queries to
* specific fields and records
*
* @todo should be able to translate to a full elasticsearch query
*/
export class QueryAccess {
acl: DataAccessConfig;
priv... | import { SearchParams } from 'elasticsearch';
import { Omit } from '@terascope/utils';
import { LuceneQueryAccess, Translator, TypeConfig } from 'xlucene-evaluator';
import { DataAccessConfig } from './acl-manager';
/**
* Using a DataAccess ACL, limit queries to
* specific fields and records
*/
export class QueryAcc... | Add support for restricting to full elasticsearch dsl | Add support for restricting to full elasticsearch dsl
| TypeScript | apache-2.0 | terascope/teraslice,terascope/teraslice,terascope/teraslice,terascope/teraslice | ---
+++
@@ -1,24 +1,27 @@
+import { SearchParams } from 'elasticsearch';
+import { Omit } from '@terascope/utils';
+import { LuceneQueryAccess, Translator, TypeConfig } from 'xlucene-evaluator';
import { DataAccessConfig } from './acl-manager';
-import { LuceneQueryAccess } from 'xlucene-evaluator';
/**
* Using... |
fe49a94eef3f02e54fe75f5ae99b16088d0028a6 | src/app/main/sidebar/sidebar.component.ts | src/app/main/sidebar/sidebar.component.ts | import {Component, OnInit} from '@angular/core';
import {Http, URLSearchParams} from '@angular/http';
@Component({
selector: 'app-sidebar',
templateUrl: './sidebar.component.html',
styleUrls: ['./sidebar.component.scss']
})
export class SidebarComponent implements OnInit {
public links = [
{
title: '... | import {Component, OnInit} from '@angular/core';
import {Http, URLSearchParams} from '@angular/http';
@Component({
selector: 'app-sidebar',
templateUrl: './sidebar.component.html',
styleUrls: ['./sidebar.component.scss']
})
export class SidebarComponent implements OnInit {
public links = [
{
title: '... | Make Login Redirect Uri dynamic for prod and dev environments | Make Login Redirect Uri dynamic for prod and dev environments
| TypeScript | mit | prabh-62/skills-ontario-2017,prabh-62/skills-ontario-2017,prabh-62/skills-ontario-2017 | ---
+++
@@ -27,7 +27,7 @@
register() {
const MLHapi = new URL('https://my.mlh.io/oauth/authorize');
- const redirect_uri = new URL('http://localhost:4200/oauth/callback');
+ const redirect_uri = new URL(`${location.hostname}oauth/callback`);
const params = new URLSearchParams();
params.appen... |
e711b702bfbc0f080992ca3d452883fe56c65388 | types/koa/koa-tests.ts | types/koa/koa-tests.ts | import Koa = require("koa");
declare module 'koa' {
export interface Context {
db(): void;
}
}
const app = new Koa();
app.context.db = () => {};
app.use(async ctx => {
console.log(ctx.db);
});
app.use((ctx, next) => {
const start: any = new Date();
return next().then(() => {
con... | import Koa = require("koa");
declare module 'koa' {
export interface BaseContext {
db(): void;
}
export interface Context {
user: {};
}
}
const app = new Koa();
app.context.db = () => {};
app.use(async ctx => {
console.log(ctx.db);
ctx.user = {};
});
app.use((ctx, next) => {... | Add tests for BaseContext as well as Context | Add tests for BaseContext as well as Context | TypeScript | mit | rolandzwaga/DefinitelyTyped,georgemarshall/DefinitelyTyped,one-pieces/DefinitelyTyped,borisyankov/DefinitelyTyped,mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,rolandzwaga/DefinitelyTyped,magny/Definitel... | ---
+++
@@ -1,8 +1,11 @@
import Koa = require("koa");
declare module 'koa' {
+ export interface BaseContext {
+ db(): void;
+ }
export interface Context {
- db(): void;
+ user: {};
}
}
@@ -12,6 +15,7 @@
app.use(async ctx => {
console.log(ctx.db);
+ ctx.user = {};... |
01cfbaafcb20abf374997d23a9b8099f448a4ade | polygerrit-ui/app/services/flags/flags.ts | polygerrit-ui/app/services/flags/flags.ts | /**
* @license
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | /**
* @license
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | Add experiment ID for new context controls | Add experiment ID for new context controls
Change-Id: I18c5560ff6d36f347a8ec9e5117b10ccd7337fa3
| TypeScript | apache-2.0 | GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit | ---
+++
@@ -26,4 +26,5 @@
export enum KnownExperimentId {
PATCHSET_COMMENTS = 'UiFeature__patchset_comments',
PATCHSET_CHOICE_FOR_COMMENT_LINKS = 'UiFeature__patchset_choice_for_comment_links',
+ NEW_CONTEXT_CONTROLS = 'UiFeature__new_context_controls',
} |
59068afcca478b4ca5bb1c29f07b920845fe362e | app/src/cli/main.ts | app/src/cli/main.ts | import * as ChildProcess from 'child_process'
import * as Path from 'path'
const args = process.argv.slice(2)
// At some point we may have other command line options, but for now we assume
// the first arg is the path to open.
const pathArg = args.length > 0 ? args[0] : ''
const repositoryPath = Path.resolve(process.... | console.log('hi everyone')
| Revert "Invoke the URL protocol" | Revert "Invoke the URL protocol"
This reverts commit 4e9980224093f6e1b14d03b889da2d16278f533f.
| TypeScript | mit | artivilla/desktop,hjobrien/desktop,artivilla/desktop,gengjiawen/desktop,desktop/desktop,hjobrien/desktop,artivilla/desktop,say25/desktop,say25/desktop,shiftkey/desktop,kactus-io/kactus,shiftkey/desktop,j-f1/forked-desktop,hjobrien/desktop,artivilla/desktop,j-f1/forked-desktop,j-f1/forked-desktop,kactus-io/kactus,hjobri... | ---
+++
@@ -1,15 +1 @@
-import * as ChildProcess from 'child_process'
-import * as Path from 'path'
-
-const args = process.argv.slice(2)
-
-// At some point we may have other command line options, but for now we assume
-// the first arg is the path to open.
-const pathArg = args.length > 0 ? args[0] : ''
-const repo... |
55270ad512d8632dbdff0f54607f6100e47a8a6b | source/ci_source/providers/index.ts | source/ci_source/providers/index.ts | import { BuddyBuild } from "./BuddyBuild"
import { Buildkite } from "./Buildkite"
import { Circle } from "./Circle"
import { Codeship } from "./Codeship"
import { DockerCloud } from "./DockerCloud"
import { Drone } from "./Drone"
import { FakeCI } from "./Fake"
import { Jenkins } from "./Jenkins"
import { Nevercode } f... | import { BuddyBuild } from "./BuddyBuild"
import { Buildkite } from "./Buildkite"
import { Circle } from "./Circle"
import { Codeship } from "./Codeship"
import { DockerCloud } from "./DockerCloud"
import { Drone } from "./Drone"
import { FakeCI } from "./Fake"
import { Jenkins } from "./Jenkins"
import { Nevercode } f... | Revert "Alphasort ci-source providers for easier additions" | Revert "Alphasort ci-source providers for easier additions"
This reverts commit 9bf75701e8268914484f9f409dcda04f41a43558.
Sort order was important, actually :-/
| TypeScript | mit | danger/danger-js,danger/danger-js,danger/danger-js,danger/danger-js | ---
+++
@@ -13,34 +13,34 @@
import { VSTS } from "./VSTS"
const providers = [
+ Travis,
+ Circle,
+ Semaphore,
+ Nevercode,
+ Jenkins,
+ FakeCI,
+ Surf,
+ DockerCloud,
+ Codeship,
+ Drone,
+ Buildkite,
BuddyBuild,
- Buildkite,
- Circle,
- Codeship,
- DockerCloud,
- Drone,
- FakeCI,
- Jenkins,... |
331a2515a4e9dc84accbfb34313425d88c7a9139 | rules/rewrite/w3c.ts | rules/rewrite/w3c.ts | 'use strict'; // XXX
import { Url } from 'url';
import { RedirectInfo, ExtendedRedirectInfo } from '../';
//
// Entry Point
//
export function rewrite(url: Url): ExtendedRedirectInfo {
const host = '.w3.org';
if (('.' + url.host).endsWith(host)) {
if (url.protocol === 'http:') {
const rea... | 'use strict'; // XXX
import { Url } from 'url';
import { RedirectInfo, ExtendedRedirectInfo } from '../';
//
// dev.w3.org
//
const REDIRECT_MAP: Map<string, string> = new Map([
['/csswg/', 'drafts.csswg.org'],
['/fxtf/', 'drafts.fxtf.org'],
['/houdini/', 'drafts.css-houdini.org'],
]);
function rewriteDe... | Bring back redirecting dev.w3.org to drafts.csswg.org and so on. | Bring back redirecting dev.w3.org to drafts.csswg.org and so on.
| TypeScript | mit | takenspc/ps-url-normalizer | ---
+++
@@ -4,17 +4,30 @@
//
-// Entry Point
+// dev.w3.org
//
-export function rewrite(url: Url): ExtendedRedirectInfo {
- const host = '.w3.org';
+const REDIRECT_MAP: Map<string, string> = new Map([
+ ['/csswg/', 'drafts.csswg.org'],
+ ['/fxtf/', 'drafts.fxtf.org'],
+ ['/houdini/', 'drafts.css-hou... |
23dfb41ea866ebe465e7d66b82f89ddf7f10042d | src/project/ProjectLink.tsx | src/project/ProjectLink.tsx | import { FunctionComponent } from 'react';
import { Link } from '@waldur/core/Link';
interface ProjectLinkProps {
row: {
project_name: string;
project_uuid: string;
};
}
export const ProjectLink: FunctionComponent<ProjectLinkProps> = ({ row }) => (
<Link
state="project"
params={{ uuid: row.proj... | import { FunctionComponent } from 'react';
import { Link } from '@waldur/core/Link';
interface ProjectLinkProps {
row: {
project_name: string;
project_uuid: string;
};
}
export const ProjectLink: FunctionComponent<ProjectLinkProps> = ({ row }) => (
<Link
state="project.details"
params={{ uuid: ... | Fix project link component: use concrete state instead of abstract. | Fix project link component: use concrete state instead of abstract.
| TypeScript | mit | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | ---
+++
@@ -11,7 +11,7 @@
export const ProjectLink: FunctionComponent<ProjectLinkProps> = ({ row }) => (
<Link
- state="project"
+ state="project.details"
params={{ uuid: row.project_uuid }}
label={row.project_name}
/> |
a1a6242eb0e4bcb0ae783a572b4406567a91e21b | src/components/HitTable/HitItem.tsx | src/components/HitTable/HitItem.tsx | import * as React from 'react';
import { Hit, Requester } from '../../types';
import { ResourceList } from '@shopify/polaris';
import UnqualifiedCard from './UnqualifiedCard';
import { calculateAllBadges } from '../../utils/badges';
export interface Props {
readonly hit: Hit;
readonly requester?: Requester... | import * as React from 'react';
import { Hit, Requester } from '../../types';
import { ResourceList } from '@shopify/polaris';
import { calculateAllBadges } from '../../utils/badges';
export interface Props {
readonly hit: Hit;
readonly requester?: Requester;
}
const HitCard = ({ hit, requester }: Props... | Remove UnqualifiedCard as a conditional render when groupId is invalid | Remove UnqualifiedCard as a conditional render when groupId is invalid
| TypeScript | mit | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | ---
+++
@@ -1,7 +1,6 @@
import * as React from 'react';
import { Hit, Requester } from '../../types';
import { ResourceList } from '@shopify/polaris';
-import UnqualifiedCard from './UnqualifiedCard';
import { calculateAllBadges } from '../../utils/badges';
export interface Props {
@@ -17,15 +16,16 @@
att... |
374022f12d1d9ee211787e550ef9dd250ce461d4 | src/app/user/shared/user.service.spec.ts | src/app/user/shared/user.service.spec.ts | import { inject, TestBed } from '@angular/core/testing';
import { UserService } from './user.service';
import { User } from './user';
import { Observable, of } from 'rxjs';
import { HttpClient } from '@angular/common/http';
import { ProgressService } from '../../shared/providers/progress.service';
import { Notificatio... | import { inject, TestBed, async } from '@angular/core/testing';
import { UserService } from './user.service';
import { User } from './user';
import { Observable, of } from 'rxjs';
import { HttpClient } from '@angular/common/http';
import { ProgressService } from '../../shared/providers/progress.service';
import { Noti... | Fix UserService test to use async to properly verify after an observable resolves. | Fix UserService test to use async to properly verify after an observable resolves. | TypeScript | apache-2.0 | uw-it-edm/content-services-ui,uw-it-edm/content-services-ui,uw-it-edm/content-services-ui | ---
+++
@@ -1,4 +1,4 @@
-import { inject, TestBed } from '@angular/core/testing';
+import { inject, TestBed, async } from '@angular/core/testing';
import { UserService } from './user.service';
import { User } from './user';
@@ -25,9 +25,8 @@
expect(service).toBeTruthy();
}));
- it('should return a user... |
63fa6895b22c55f4e77b950c35fb66162f3c5c07 | src/app/embed/adapters/adapter.properties.ts | src/app/embed/adapters/adapter.properties.ts | import { Observable } from 'rxjs/Observable';
export const PropNames = [
'audioUrl',
'title',
'subtitle',
'subscribeUrl',
'subscribeTarget',
'artworkUrl',
'feedArtworkUrl',
'episodes'
];
export interface AdapterProperties {
audioUrl?: string;
duration?: number;
title?: string;
subtitle?: strin... | import { Observable } from 'rxjs/Observable';
export const PropNames = [
'audioUrl',
'duration',
'title',
'subtitle',
'subscribeUrl',
'subscribeTarget',
'artworkUrl',
'feedArtworkUrl',
'episodes'
];
export interface AdapterProperties {
audioUrl?: string;
duration?: number;
title?: string;
su... | Make sure duration is passed through merge adapter | Make sure duration is passed through merge adapter
| TypeScript | mit | PRX/play.prx.org,PRX/play.prx.org,PRX/play.prx.org,PRX/play.prx.org | ---
+++
@@ -2,6 +2,7 @@
export const PropNames = [
'audioUrl',
+ 'duration',
'title',
'subtitle',
'subscribeUrl', |
51879d8fdbc80b8f72c5d0540dda189ae0be3a36 | packages/cspell-tools/src/fileWriter.test.ts | packages/cspell-tools/src/fileWriter.test.ts | import { expect } from 'chai';
import * as fileWriter from './fileWriter';
import * as fileReader from './fileReader';
import * as Rx from 'rxjs/Rx';
import * as loremIpsum from 'lorem-ipsum';
import * as path from 'path';
describe('Validate the writer', () => {
it('tests writing an Rx.Observable and reading it ba... | import { expect } from 'chai';
import * as fileWriter from './fileWriter';
import * as fileReader from './fileReader';
import * as Rx from 'rxjs/Rx';
import * as loremIpsum from 'lorem-ipsum';
import * as path from 'path';
import { mkdirp } from 'fs-promise';
describe('Validate the writer', () => {
it('tests writi... | Make sure the temp dir exists. | Make sure the temp dir exists.
| TypeScript | mit | Jason3S/cspell,Jason3S/cspell,Jason3S/cspell,Jason3S/cspell,Jason3S/cspell | ---
+++
@@ -4,6 +4,7 @@
import * as Rx from 'rxjs/Rx';
import * as loremIpsum from 'lorem-ipsum';
import * as path from 'path';
+import { mkdirp } from 'fs-promise';
describe('Validate the writer', () => {
it('tests writing an Rx.Observable and reading it back.', () => {
@@ -11,9 +12,11 @@
const d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.