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 |
|---|---|---|---|---|---|---|---|---|---|---|
daf538099b8ea521adfb7be7b154ae9832fa8686 | src/app/root-component.tsx | src/app/root-component.tsx | import React from "react"
import "../styles/app-layout-grid.css"
import "../styles/uikit.css"
import "../styles/editor.css"
import { PlayerContainer } from "./components/videoContainer"
import { MarkdownPreviewEditor as Editor } from "./components/editor"
interface AppLayoutState {
pathToMedia: string
}
interface A... | import React from "react"
import "../styles/app-layout-grid.css"
import "../styles/uikit.css"
import { PlayerContainer } from "./components/videoContainer"
import { MarkdownPreviewEditor as Editor } from "./components/editor"
interface AppLayoutState {
pathToMedia: string
}
interface AppLayoutProps {}
class AppLay... | Stop importing a stylesheet that doesn't exist | Stop importing a stylesheet that doesn't exist
| TypeScript | agpl-3.0 | briandk/transcriptase,briandk/transcriptase | ---
+++
@@ -1,7 +1,6 @@
import React from "react"
import "../styles/app-layout-grid.css"
import "../styles/uikit.css"
-import "../styles/editor.css"
import { PlayerContainer } from "./components/videoContainer"
import { MarkdownPreviewEditor as Editor } from "./components/editor"
|
3b06c2c72b409957aedfe145257caf030ec55417 | packages/common/src/mvc/registries/ControllerRegistry.ts | packages/common/src/mvc/registries/ControllerRegistry.ts | import {GlobalProviders, ProviderType, TypedProvidersRegistry} from "@tsed/di";
import {ControllerProvider} from "../class/ControllerProvider";
import {ExpressRouter} from "../services/ExpressRouter";
// tslint:disable-next-line: variable-name
export const ControllerRegistry: TypedProvidersRegistry = GlobalProviders.c... | import {GlobalProviders, ProviderType, TypedProvidersRegistry} from "@tsed/di";
import {ControllerProvider} from "../class/ControllerProvider";
import {ExpressRouter} from "../services/ExpressRouter";
// tslint:disable-next-line: variable-name
export const ControllerRegistry: TypedProvidersRegistry = GlobalProviders.c... | Remove precondition when building a controller | fix: Remove precondition when building a controller
| TypeScript | mit | Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators | ---
+++
@@ -7,8 +7,6 @@
injectable: false,
onInvoke(provider: ControllerProvider, locals: any) {
- if (!locals.has(ExpressRouter)) {
- locals.set(ExpressRouter, provider.router);
- }
+ locals.set(ExpressRouter, provider.router);
}
}); |
b67436490e5231fcae8521b475f6bea4f2b80bbd | test/compileToStringSync.ts | test/compileToStringSync.ts | var chai = require("chai");
var path = require("path");
var compiler = require(path.join(__dirname, "../src"));
var expect = chai.expect;
var fixturesDir = path.join(__dirname, "fixtures");
function prependFixturesDir(filename) {
return path.join(fixturesDir, filename);
}
describe("#compileToStringSync", function... | var chai = require("chai");
var path = require("path");
var compiler = require(path.join(__dirname, "../src"));
var expect = chai.expect;
var fixturesDir = path.join(__dirname, "fixtures");
function prependFixturesDir(filename) {
return path.join(fixturesDir, filename);
}
describe("#compileToStringSync", function... | Modify test for sync suffix handling | Modify test for sync suffix handling
| TypeScript | bsd-3-clause | rtfeldman/node-elm-compiler | ---
+++
@@ -19,7 +19,11 @@
});
it('returns html output given "html" output option', function () {
- var opts = { verbose: true, cwd: fixturesDir, output: '.html' };
+ var opts = {
+ verbose: true,
+ cwd: fixturesDir,
+ output: prependFixturesDir('compiled.html'),
+ };
var result =... |
874a920fc5059bfe0a3ad23986e0e745d38d301f | blueprints/app/files/tests/helpers/index.ts | blueprints/app/files/tests/helpers/index.ts | import {
setupApplicationTest as upstreamSetupApplicationTest,
setupRenderingTest as upstreamSetupRenderingTest,
setupTest as upstreamSetupTest,
} from 'ember-qunit';
// This file exists to provide wrappers around ember-qunit's / ember-mocha's
// test setup functions. This way, you can easily extend the setup th... | import {
setupApplicationTest as upstreamSetupApplicationTest,
setupRenderingTest as upstreamSetupRenderingTest,
setupTest as upstreamSetupTest,
SetupTestOptions,
} from 'ember-qunit';
// This file exists to provide wrappers around ember-qunit's / ember-mocha's
// test setup functions. This way, you can easily... | Use new types from ember-qunit | Use new types from ember-qunit
| TypeScript | mit | ember-cli/ember-cli,ember-cli/ember-cli,ember-cli/ember-cli | ---
+++
@@ -2,16 +2,14 @@
setupApplicationTest as upstreamSetupApplicationTest,
setupRenderingTest as upstreamSetupRenderingTest,
setupTest as upstreamSetupTest,
+ SetupTestOptions,
} from 'ember-qunit';
// This file exists to provide wrappers around ember-qunit's / ember-mocha's
// test setup function... |
35c2c0db32fff45f3d7ab1160fad257acee1d289 | test/helpers/make_class.ts | test/helpers/make_class.ts | /**
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /**
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Fix test still referencing allowString. | Fix test still referencing allowString.
| TypeScript | apache-2.0 | google/schema-dts,google/schema-dts | ---
+++
@@ -16,8 +16,8 @@
import {UrlNode} from '../../src/triples/types';
import {Class, ClassMap} from '../../src/ts/class';
-export function makeClass(url: string, allowString = false): Class {
- return new Class(UrlNode.Parse(url), allowString);
+export function makeClass(url: string): Class {
+ return new ... |
4afaabee62e13b6cb1947106e93deb928451f65d | peril/compareReactionSchema.ts | peril/compareReactionSchema.ts | import { buildSchema } from "graphql"
import { readFileSync } from "fs"
const { diff: schemaDiff } = require("@graphql-inspector/core")
import fetch from "node-fetch"
import { warn } from "danger"
// If there is a breaking change between the local schema,
// and the current Reaction one, warn.
export default async () ... | import { buildSchema } from "graphql"
const { diff: schemaDiff } = require("@graphql-inspector/core")
import fetch from "node-fetch"
import { warn, danger } from "danger"
// If there is a breaking change between the local schema,
// and the current Reaction one, warn.
export default async () => {
const forcePackageJ... | Tweak schema check to infer URL to PR schema | [Peril] Tweak schema check to infer URL to PR schema
| TypeScript | mit | artsy/metaphysics,artsy/metaphysics,artsy/metaphysics | ---
+++
@@ -1,8 +1,7 @@
import { buildSchema } from "graphql"
-import { readFileSync } from "fs"
const { diff: schemaDiff } = require("@graphql-inspector/core")
import fetch from "node-fetch"
-import { warn } from "danger"
+import { warn, danger } from "danger"
// If there is a breaking change between the local... |
60c6e295607e6091c679eeef3b8353ce40c99447 | src/components/layout/layout.tsx | src/components/layout/layout.tsx | import * as React from "react";
import {Navbar} from "./navbar"
import { Link } from 'react-router'
export interface LayoutProps {
}
export class Layout extends React.Component<LayoutProps, {}> {
render() {
return <div>
<Navbar title={<img src="/logo.svg"
... | import * as React from "react";
import {Navbar} from "./navbar"
import { Link } from 'react-router'
export interface LayoutProps {
}
export class Layout extends React.Component<LayoutProps, {}> {
render() {
return <div>
<Navbar title={<img src="/logo.svg"
... | Add Link to Add Course | Add Link to Add Course
| TypeScript | mit | goodbye-island/S-Store-Front-End,goodbye-island/S-Store-Front-End,goodbye-island/S-Store-Front-End | ---
+++
@@ -11,8 +11,8 @@
<Navbar title={<img src="/logo.svg"
style={{padding: 2.5, height: "35px"}}/>}
height="40"
- items={[<Link style={{padding: 7, fontSize: 30, color: "white"}} activeStyle={{color: "red"}}... |
0cc8d340388dfd8e2f13026f7cb104ce5d33285a | src/reducers.ts | src/reducers.ts | import { RootState } from './types';
import { combineReducers } from 'redux';
import { reducer as toastr } from 'react-redux-toastr';
import { default as tab } from './reducers/tab';
import { default as searchingActive } from './reducers/searchingActive';
import { default as search } from './reducers/search';
imp... | import { RootState } from './types';
import { combineReducers } from 'redux';
import { reducer as toastr } from 'react-redux-toastr';
import { default as tab } from './reducers/tab';
import { default as searchingActive } from './reducers/searchingActive';
import { default as search } from './reducers/search';
imp... | Add requesterBlockList to root reducer. | Add requesterBlockList to root reducer.
| TypeScript | mit | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | ---
+++
@@ -12,6 +12,7 @@
import { default as hitBlocklist } from './reducers/hitBlocklist';
import { default as timeNextSearch } from './reducers/timeNextSearch';
import { default as waitingForMturk } from './reducers/waitingForMturk';
+import { default as requesterBlockList } from './reducers/requesterBlockList'... |
675b98ba7ee2fd30e2e807b27ec1ed2a7945a8b0 | src/utilities/testing/itAsync.ts | src/utilities/testing/itAsync.ts | const itIsDefined = typeof it === "object";
function wrap<TResult>(
original: ((...args: any[]) => TResult) | false,
) {
return (
message: string,
callback: (
resolve: (result?: any) => void,
reject: (reason?: any) => void,
) => any,
timeout?: number,
) => original && original(message... | function wrap<TResult>(
original: (...args: any[]) => TResult,
) {
return (
message: string,
callback: (
resolve: (result?: any) => void,
reject: (reason?: any) => void,
) => any,
timeout?: number,
) => original(message, function () {
return new Promise(
(resolve, reject) => ... | Revert "Allow importing @apollo/client/testing when global.it undefined." | Revert "Allow importing @apollo/client/testing when global.it undefined."
This reverts commit 458960673148b70051315a4c0e73f9f22d749e2d, because it
was pushed without a PR, and broke a number of tests.
| TypeScript | mit | apollostack/apollo-client,apollographql/apollo-client,apollostack/apollo-client,apollostack/apollo-client,apollographql/apollo-client | ---
+++
@@ -1,7 +1,5 @@
-const itIsDefined = typeof it === "object";
-
function wrap<TResult>(
- original: ((...args: any[]) => TResult) | false,
+ original: (...args: any[]) => TResult,
) {
return (
message: string,
@@ -10,20 +8,20 @@
reject: (reason?: any) => void,
) => any,
timeout?: n... |
e93159c539f39b8f5958dcde63788fcec539676c | src/app/config/constants/apiURL.ts | src/app/config/constants/apiURL.ts | let API_URL: string;
API_URL = "http://localhost:3000/api";
export default API_URL;
| let API_URL: string;
API_URL = `${window.location.protocol}//${window.location.hostname}:3000/api`;
export default API_URL;
| Correct development URL to use port 3000 for api | CONFIG: Correct development URL to use port 3000 for api
| TypeScript | agpl-3.0 | doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web | ---
+++
@@ -1,4 +1,4 @@
let API_URL: string;
-API_URL = "http://localhost:3000/api";
+API_URL = `${window.location.protocol}//${window.location.hostname}:3000/api`;
export default API_URL; |
3aa9330eb0a2b418bf996f8309efaf82950e839d | src/app/services/budget.service.ts | src/app/services/budget.service.ts | import {BudgetItem} from '../budget/budget-item';
export class BudgetService {
private _budgetItems: BudgetItem[];
getItems() {
this._budgetItems = budgetItems;
return this._budgetItems;
}
addItem(new_sum: number, new_description: string) {
var item: BudgetItem = {
... | import {BudgetItem} from '../budget/budget-item';
export class BudgetService {
getItems() {
var budgetItems: BudgetItem[];
if (localStorage.budgetItems) {
budgetItems = JSON.parse(localStorage.budgetItems) || [];
} else {
budgetItems = [];
}
r... | Add localStorage to store data | Add localStorage to store data
| TypeScript | mit | bluebirrrrd/ng2-budget,bluebirrrrd/ng2-budget,bluebirrrrd/ng2-budget | ---
+++
@@ -2,20 +2,39 @@
export class BudgetService {
- private _budgetItems: BudgetItem[];
-
getItems() {
- this._budgetItems = budgetItems;
- return this._budgetItems;
+
+ var budgetItems: BudgetItem[];
+
+ if (localStorage.budgetItems) {
+ budgetItems = ... |
d2369f887a1e269cbf51fd935b2c5a9dbabb3f6f | packages/react-scripts/template/src/App.tsx | packages/react-scripts/template/src/App.tsx | import * as React from 'react';
import './App.css';
const logo = require('./logo.svg');
class App extends React.Component<{}, null> {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</... | import * as React from 'react';
import './App.css';
const logo = require('./logo.svg');
class App extends React.Component<{}, {}> {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2... | Fix bug with new @types/react | Fix bug with new @types/react
| TypeScript | bsd-3-clause | devex-web-frontend/create-react-app-dx,devex-web-frontend/create-react-app-dx,devex-web-frontend/create-react-app-dx,devex-web-frontend/create-react-app-dx | ---
+++
@@ -3,7 +3,7 @@
const logo = require('./logo.svg');
-class App extends React.Component<{}, null> {
+class App extends React.Component<{}, {}> {
render() {
return (
<div className="App"> |
38eb55580326459c53ea4e818ac34099362935fa | src/I18NextTitle.ts | src/I18NextTitle.ts | import { Injectable, Inject } from '@angular/core';
import { Title, DOCUMENT } from '@angular/platform-browser';
import { I18NextPipe } from './I18NextPipe';
@Injectable()
export class I18NextTitle extends Title {
constructor(private i18nextPipe: I18NextPipe, @Inject(DOCUMENT) doc) {
super(doc);
}
setTit... | import { DOCUMENT } from '@angular/common';
import { Inject, Injectable } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { I18NextPipe } from './I18NextPipe';
@Injectable()
export class I18NextTitle extends Title {
constructor(private i18nextPipe: I18NextPipe, @Inject(DOCUMENT) doc)... | Fix deprecated import of DOCUMENT | Fix deprecated import of DOCUMENT
| TypeScript | mit | Romanchuk/angular-i18next,Romanchuk/angular-i18next,Romanchuk/angular-i18next,Romanchuk/angular-i18next | ---
+++
@@ -1,5 +1,6 @@
-import { Injectable, Inject } from '@angular/core';
-import { Title, DOCUMENT } from '@angular/platform-browser';
+import { DOCUMENT } from '@angular/common';
+import { Inject, Injectable } from '@angular/core';
+import { Title } from '@angular/platform-browser';
import { I18NextPipe } from ... |
24b3c7210997216da21aeb2acfcf51b323455976 | src/util/MsgUtils.ts | src/util/MsgUtils.ts | import {
Session,
EntityRecognizer,
} from 'botbuilder';
export class MsgUtils {
public static sendAsSay(session:Session, msg:string) {
session.say(msg, msg);
}
public static onlyAlpha(msg:string) {
}
public static getDateFromUtterance(msg:string) : Date | null {
return EntityRecognizer.parseT... | import {
Session,
EntityRecognizer,
} from 'botbuilder';
export class MsgUtils {
public static sayAsSend(session:Session, msg:string) {
return session.say(msg, msg);
}
public static getDateFromUtterance(msg:string) : Date | null {
return EntityRecognizer.parseTime(msg);
}
public static meanYes(... | Prepare for RegExp helper class | Prepare for RegExp helper class
| TypeScript | mit | yujiahaol68/alfred | ---
+++
@@ -4,16 +4,20 @@
} from 'botbuilder';
export class MsgUtils {
- public static sendAsSay(session:Session, msg:string) {
- session.say(msg, msg);
- }
-
- public static onlyAlpha(msg:string) {
-
+ public static sayAsSend(session:Session, msg:string) {
+ return session.say(msg, msg);
}
publ... |
a935a1fe83cabd28a048f914abff3dbf1c356ff5 | packages/lesswrong/components/comments/CommentsItem/CommentUserName.tsx | packages/lesswrong/components/comments/CommentsItem/CommentUserName.tsx | import { registerComponent, Components } from '../../../lib/vulcan-lib';
import React from 'react';
import classNames from 'classnames';
const styles = (theme: ThemeType): JssStyles => ({
author: {
...theme.typography.body2,
fontWeight: 600,
},
authorAnswer: {
...theme.typography.body2,
fontFamil... | import { registerComponent, Components } from '../../../lib/vulcan-lib';
import React from 'react';
import classNames from 'classnames';
const styles = (theme: ThemeType): JssStyles => ({
author: {
...theme.typography.body2,
fontWeight: 600,
},
authorAnswer: {
...theme.typography.body2,
fontFamil... | Fix coloring of comment usernames in single-line comments | Fix coloring of comment usernames in single-line comments
| TypeScript | mit | Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2 | ---
+++
@@ -41,7 +41,10 @@
}
}
-const CommentUserNameComponent = registerComponent('CommentUserName', CommentUserName, {styles});
+const CommentUserNameComponent = registerComponent('CommentUserName', CommentUserName, {
+ styles,
+ stylePriority: 100, //Higher than Components.UsersName, which gets a className... |
d87c01acc609abb807ba922c458519d420eaa2eb | bemuse/src/previewer/PreviewInfo.tsx | bemuse/src/previewer/PreviewInfo.tsx | import './PreviewInfo.scss'
import React from 'react'
export const PreviewInfo = () => {
return (
<div className='PreviewInfo'>
<h2>No BMS/bmson loaded</h2>
<p>Drop a folder with BMS/bmson files into this window to preview it.</p>
<p className='PreviewInfoのkeyHints'>
<kbd>Space</kbd> Pl... | import './PreviewInfo.scss'
import React from 'react'
export const PreviewInfo = () => {
return (
<div className='PreviewInfo'>
<h2>No BMS/bmson loaded</h2>
<p>Drop a folder with BMS/bmson files into this window to preview it.</p>
<p className='PreviewInfoのkeyHints'>
<kbd>Space</kbd> Pl... | Document R key for reloading | Document R key for reloading
| TypeScript | agpl-3.0 | bemusic/bemuse,bemusic/bemuse,bemusic/bemuse,bemusic/bemuse,bemusic/bemuse | ---
+++
@@ -8,7 +8,7 @@
<p>Drop a folder with BMS/bmson files into this window to preview it.</p>
<p className='PreviewInfoのkeyHints'>
<kbd>Space</kbd> Play/Pause · <kbd>Left/Right</kbd> Seek ·{' '}
- <kbd>Up/Down</kbd> Hi-Speed ·{' '}
+ <kbd>Up/Down</kbd> Hi-... |
015f1c7909f5f554300e933e9b2e948a86b539f0 | extensions/typescript-language-features/src/utils/arrays.ts | extensions/typescript-language-features/src/utils/arrays.ts | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | Use array prototype instead of creating instance | Use array prototype instead of creating instance
| TypeScript | mit | eamodio/vscode,joaomoreno/vscode,the-ress/vscode,eamodio/vscode,Microsoft/vscode,microsoft/vscode,eamodio/vscode,mjbvz/vscode,joaomoreno/vscode,joaomoreno/vscode,the-ress/vscode,joaomoreno/vscode,mjbvz/vscode,the-ress/vscode,mjbvz/vscode,joaomoreno/vscode,hoovercj/vscode,mjbvz/vscode,Krzysztof-Cieslak/vscode,joaomoreno... | ---
+++
@@ -18,5 +18,5 @@
}
export function flatten<T>(arr: ReadonlyArray<T>[]): T[] {
- return ([] as T[]).concat.apply([], arr);
+ return Array.prototype.concat.apply([], arr);
} |
cd6f814fe4f9e223ed1703e825fa56cf15249143 | src/app/views/sessions/session/tools/tools.module.ts | src/app/views/sessions/session/tools/tools.module.ts | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {ToolService} from "./tool.service";
import {ToolTitleComponent} from "./tooltitle.component";
import {ToolListItemComponent} from "./toolsmodal/tool-list-item/tool-list-item.component";
import {ToolBoxComponent} from "./to... | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {ToolService} from "./tool.service";
import {ToolTitleComponent} from "./tooltitle.component";
import {ToolListItemComponent} from "./toolsmodal/tool-list-item/tool-list-item.component";
import {ToolBoxComponent} from "./to... | Remove SourceModalComponent dependency from ToolsModule | Remove SourceModalComponent dependency from ToolsModule
| TypeScript | mit | chipster/chipster-web,chipster/chipster-web,chipster/chipster-web | ---
+++
@@ -8,7 +8,6 @@
import {SharedModule} from "../../../../shared/shared.module";
import {FormsModule} from "@angular/forms";
import { ToolsParameterFormComponent } from './toolsmodal/tools-parameter-form/tools-parameter-form.component';
-import SourceModalComponent from "./sourcemodal/sourcemodal.component";... |
240dd12ac0c5b10816b92535d01107127d385afd | brandings/src/services/exchanges.service.ts | brandings/src/services/exchanges.service.ts | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { ExchangeInfo } from '../interfaces/exchange.interfaces';
@Injectable()
export class ExchangesService {
constructor(private http: HttpClient) {
}
getExchanges() {
return this.http.get<ExchangeInfo[]>('ass... | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { map } from 'rxjs/operators';
import { ExchangeInfo } from '../interfaces/exchange.interfaces';
@Injectable()
export class ExchangesService {
constructor(private http: HttpClient) {
}
getExchanges() {
ret... | Fix images inside exchange details | Fix images inside exchange details
| TypeScript | bsd-3-clause | threefoldfoundation/app_backend,threefoldfoundation/app_backend,threefoldfoundation/app_backend,threefoldfoundation/app_backend | ---
+++
@@ -1,5 +1,6 @@
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
+import { map } from 'rxjs/operators';
import { ExchangeInfo } from '../interfaces/exchange.interfaces';
@Injectable()
@@ -13,6 +14,12 @@
}
getExchangeDescription(exchangeInfo: Exchange... |
1f310c5f323b180b11031ce42a1a9db344a4950f | simple-subscriptions/client/src/modules/patients/sagas/subscribePatients.ts | simple-subscriptions/client/src/modules/patients/sagas/subscribePatients.ts | import { takeLatest } from 'redux-saga/effects';
import { eventChannel } from 'redux-saga';
import { actionsIDs } from '../constants'
import { fetchPatients } from './fetchPatients';
import { createStartHandler } from 'redux-saga-subscriptions';
import socket from '../../../socketIo/socket';
const msgChannel = 'patien... | import { takeLatest, put } from 'redux-saga/effects';
import { eventChannel } from 'redux-saga';
import { actionsIDs } from '../constants'
import { fetchPatients } from './fetchPatients';
import { createStartHandler } from 'redux-saga-subscriptions';
import socket from '../../../socketIo/socket';
const msgChannel = 'p... | Support for socket life-time events. | Support for socket life-time events.
| TypeScript | mit | jaszczw/stomp-redux-subscriptions | ---
+++
@@ -1,4 +1,4 @@
-import { takeLatest } from 'redux-saga/effects';
+import { takeLatest, put } from 'redux-saga/effects';
import { eventChannel } from 'redux-saga';
import { actionsIDs } from '../constants'
import { fetchPatients } from './fetchPatients';
@@ -14,6 +14,8 @@
fetch();
socket.on(msgChan... |
8b8342c1cbaa03e87f2287f42bf660844f3df8ee | src/components/Footer.tsx | src/components/Footer.tsx | import * as React from 'react';
import Track from '../model/Track';
import { clear } from '../service';
import './Footer.css';
interface Props extends React.HTMLProps<HTMLDivElement> {
tracks: Track[];
}
function Footer({ tracks }: Props) {
return (
<div className="Footer">
<button
... | import * as React from 'react';
import Track from '../model/Track';
import { clear } from '../service';
import './Footer.css';
interface Props extends React.HTMLProps<HTMLDivElement> {
tracks: Track[];
}
function Footer({ tracks }: Props) {
return (
<div className="Footer">
<button
... | Save as flag and rename methods. | Save as flag and rename methods.
| TypeScript | mit | soflete/extereo,soflete/extereo | ---
+++
@@ -12,7 +12,7 @@
<div className="Footer">
<button
disabled={!tracks.length}
- onClick={() => allowExportToM3U(tracks)}
+ onClick={() => allowDownload(tracks)}
>Export</button>
<button
disabled={!tr... |
e6e2784595c41299e9ac4d6937efb9ed6d881ca6 | src/schema-form.module.ts | src/schema-form.module.ts | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {
FormsModule,
ReactiveFormsModule
} from '@angular/forms';
import { FormElementComponent } from './formelement.component';
import { FormComponent } from './form.component';
import { WidgetChooserComponent } from './wi... | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {
FormsModule,
ReactiveFormsModule
} from '@angular/forms';
import { FormElementComponent } from './formelement.component';
import { FormComponent } from './form.component';
import { WidgetChooserComponent } from './wi... | Add widget ChooserComponent to exports | Add widget ChooserComponent to exports
| TypeScript | mit | SBats/angular2-schema-form,SBats/angular2-schema-form,SBats/angular2-schema-form | ---
+++
@@ -60,6 +60,7 @@
exports: [
FormComponent,
FormElementComponent,
+ WidgetChooserComponent,
ArrayWidget,
ObjectWidget,
CheckboxWidget, |
a3d4ae1b4ea16721902ab6d53b2d5fc06cab114b | src/utils/hots-commons.ts | src/utils/hots-commons.ts | export enum HeroRoles {
Assassin,
Warrior,
Specialist,
Support
}
export interface Skill {
name: string;
level: number;
description: string;
}
export interface Build {
name: string;
skills: Array<Skill>;
}
export interface Hero {
name: string;
role: HeroRoles|Array<HeroRoles>;
builds: Array<Bu... | export enum HeroRoles {
Assassin,
Warrior,
Specialist,
Support
}
export interface Skill {
name: string;
level: number;
description: string;
}
export interface Build {
name: string;
skills: Array<Skill>;
}
export interface Hero {
name: string;
role: Array<HeroRoles>;
builds: Array<Build>;
}
| Change Hero.role type to Array to avoid later test. | Change Hero.role type to Array to avoid later test. | TypeScript | mit | jchakra/hots-parser | ---
+++
@@ -18,6 +18,6 @@
export interface Hero {
name: string;
- role: HeroRoles|Array<HeroRoles>;
+ role: Array<HeroRoles>;
builds: Array<Build>;
} |
6602b84fc100e52d98f4eab8ee8604518d436896 | packages/most-buffer/src/most-buffer.d.ts | packages/most-buffer/src/most-buffer.d.ts | import { Stream } from 'most';
export function buffer<T>(count: number): (stream: Stream<T>) => Stream<T[]>;
export default buffer;
| import { Stream } from 'most';
export default function buffer<T>(count: number): (stream: Stream<T>) => Stream<T[]>;
| Fix the export for the buffer | Fix the export for the buffer | TypeScript | bsd-3-clause | craft-ai/most-utils,craft-ai/most-utils | ---
+++
@@ -1,4 +1,3 @@
import { Stream } from 'most';
-export function buffer<T>(count: number): (stream: Stream<T>) => Stream<T[]>;
-export default buffer;
+export default function buffer<T>(count: number): (stream: Stream<T>) => Stream<T[]>; |
7df23e7b9249259ca67a131f69eca61f22296557 | js/components/portal-dashboard/questions/iframe-question.tsx | js/components/portal-dashboard/questions/iframe-question.tsx | import React from "react";
import { Map } from "immutable";
import { renderHTML } from "../../../util/render-html";
import css from "../../../../css/portal-dashboard/questions/multiple-choice-question.less";
import ReportItemIframe from "../report-item-iframe";
interface IProps {
question?: Map<string, any>;
useM... | import React from "react";
import { Map } from "immutable";
import { renderHTML } from "../../../util/render-html";
import css from "../../../../css/portal-dashboard/questions/multiple-choice-question.less";
import ReportItemIframe from "../report-item-iframe";
interface IProps {
question?: Map<string, any>;
useM... | Add a key property to `ReportItemIframe` for each question. | Add a key property to `ReportItemIframe` for each question.
Without the key property the Iframe content is not reliably updating when question selection changes.
[#180647562]
https://www.pivotaltracker.com/n/projects/2441249
| TypeScript | mit | concord-consortium/portal-report,concord-consortium/portal-report,concord-consortium/portal-report,concord-consortium/portal-report | ---
+++
@@ -19,7 +19,7 @@
return (
<div className={css.questionText}>
{prompt && renderHTML(promptText)}
- {question && question.get("reportItemUrl") && <ReportItemIframe question={question} view={useMinHeight ? "singleAnswer" : "multipleAnswer"} />}
+ {question && question.get("reportItemUrl... |
830c8fa8c1529d2350814eb954928e913636278e | modules/effects/src/actions.ts | modules/effects/src/actions.ts | import { Inject, Injectable } from '@angular/core';
import { Action, ScannedActionsSubject } from '@ngrx/store';
import { Observable, Operator, OperatorFunction } from 'rxjs';
import { filter } from 'rxjs/operators';
@Injectable()
export class Actions<V = Action> extends Observable<V> {
constructor(@Inject(ScannedAc... | import { Inject, Injectable } from '@angular/core';
import { Action, ScannedActionsSubject } from '@ngrx/store';
import { Observable, Operator, OperatorFunction } from 'rxjs';
import { filter } from 'rxjs/operators';
@Injectable()
export class Actions<V = Action> extends Observable<V> {
constructor(@Inject(ScannedAc... | Add deprecation notice for ofType instance operator | fix(effects): Add deprecation notice for ofType instance operator
| TypeScript | mit | brandonroberts/platform,brandonroberts/platform,brandonroberts/platform,brandonroberts/platform | ---
+++
@@ -20,6 +20,9 @@
return observable;
}
+ /**
+ * @deprecated from 6.1.0. Use the pipeable `ofType` operator instead.
+ */
ofType<V2 extends V = V>(...allowedTypes: string[]): Actions<V2> {
return ofType<any>(...allowedTypes)(this as Actions<any>) as Actions<V2>;
} |
188cdfc35b198859869f06e6d09a01c57d69d919 | src/dnd.service.ts | src/dnd.service.ts | // Copyright (C) 2016 Sergey Akopkokhyants
// This project is licensed under the terms of the MIT license.
// https://github.com/akserg/ng2-dnd
import {Injectable, ElementRef, EventEmitter} from '@angular/core';
import {DragDropConfig} from './dnd.config';
import {isPresent} from './dnd.utils';
import {SortableContai... | // Copyright (C) 2016 Sergey Akopkokhyants
// This project is licensed under the terms of the MIT license.
// https://github.com/akserg/ng2-dnd
import {Injectable, ElementRef, EventEmitter} from '@angular/core';
import {DragDropConfig} from './dnd.config';
import {isPresent} from './dnd.utils';
import {SortableContai... | Fix wrong import (still using old name) | Fix wrong import (still using old name)
| TypeScript | mit | obosha/ng2-dnd,akserg/ng2-dnd,akserg/ng2-dnd,obosha/ng2-dnd | ---
+++
@@ -6,7 +6,7 @@
import {DragDropConfig} from './dnd.config';
import {isPresent} from './dnd.utils';
-import {SortableContainer} from './dnd.sortable';
+import {SortableContainer} from './sortable.component';
export interface DragDropData {
dragData: any; |
c5dc308793ae312f28746f762f3bb62196b71875 | src/v2/Apps/Partner/Components/Overview/SubscriberBanner.tsx | src/v2/Apps/Partner/Components/Overview/SubscriberBanner.tsx | import React from "react"
import { Text, Message } from "@artsy/palette"
import { RouterLink } from "v2/Artsy/Router/RouterLink"
import { createFragmentContainer, graphql } from "react-relay"
import { SubscriberBanner_partner } from "v2/__generated__/SubscriberBanner_partner.graphql"
export interface SubscriberBannerP... | import React from "react"
import { Text, Message } from "@artsy/palette"
import { RouterLink } from "v2/Artsy/Router/RouterLink"
import { createFragmentContainer, graphql } from "react-relay"
import { SubscriberBanner_partner } from "v2/__generated__/SubscriberBanner_partner.graphql"
export interface SubscriberBannerP... | Make a space between banner and about section | Make a space between banner and about section
| TypeScript | mit | artsy/force,artsy/force,artsy/force,joeyAghion/force,joeyAghion/force,artsy/force-public,artsy/force-public,joeyAghion/force,artsy/force,joeyAghion/force | ---
+++
@@ -14,7 +14,7 @@
const fairPartner = `${name} participates in Artsy’s art fair coverage but does not have a full profile.`
const churnedPartner = `${name} is not currently an Artsy partner and does not have a full profile.`
return (
- <Message title={hasFairPartnership ? fairPartner : churnedPart... |
4d09a2497b61e3c1f3a9e63b1180ac680e6a9194 | packages/core/src/core/config-mock.ts | packages/core/src/core/config-mock.ts | import { Config } from './config';
/**
* Mock the Config class when it is used as a service.
*
* @export
* @class ConfigMock
* @implements {Config}
*/
export class ConfigMock implements Config {
private map: Map<string, any> = new Map();
/**
* Set an configuration variable.
*
* @param {string} key... | import { Config } from './config';
/**
* Mock the Config class when it is used as a service.
*
* @export
* @class ConfigMock
* @implements {Config}
*/
export class ConfigMock implements Config {
private map: Map<string, any> = new Map();
/**
* Set an configuration variable.
*
* @param {string} key... | Add return type to ConfigMock.set | Add return type to ConfigMock.set
| TypeScript | mit | FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal | ---
+++
@@ -18,7 +18,7 @@
* @param {*} value - The config value (ex: 36000).
* @memberof ConfigMock
*/
- set(key: string, value: any) {
+ set(key: string, value: any): void {
this.map.set(key, value);
}
|
0de5afb6f3615168e8d1fb61c35cdc8a2378991b | src/entities/workflow/WorkflowRegistry.ts | src/entities/workflow/WorkflowRegistry.ts | import * as path from 'path';
import * as Joi from 'joi';
import { Registry } from '../Registry';
import { WorkflowType } from './WorkflowType';
import { BaseWorkflow, FTLWorkflowDef } from './BaseWorkflow';
const workflowSchema = Joi.object({
decider: Joi.func().arity(1).required(),
output: Joi.func().arity(1).... | import * as path from 'path';
import * as Joi from 'joi';
import { Registry } from '../Registry';
import { WorkflowType } from './WorkflowType';
import { BaseWorkflow, FTLWorkflowDef } from './BaseWorkflow';
const workflowSchema = Joi.object({
decider: Joi.func().arity(1).required(),
output: Joi.func().arity(1).... | Allow unknown props to be provided in workflow module definitions | Allow unknown props to be provided in workflow module definitions
| TypeScript | mit | f5itc/swf-graph,f5itc/swf-graph,f5itc/swf-graph | ---
+++
@@ -12,7 +12,7 @@
schema: Joi.object().required(),
version: Joi.string().min(3).required(),
name: Joi.string()
-}).unknown(false).required();
+}).unknown(true).required();
export class WorkflowRegistry extends Registry<WorkflowType> {
wrapModule(filename: string, workflowDefObj: FTLWorkflowDef ... |
69c9d433d015149c1b4fb7ffc5643f4f2c3de80e | src/Parsing/Inline/Token.ts | src/Parsing/Inline/Token.ts | export enum TokenMeaning {
Text,
EmphasisStart,
EmphasisEnd,
StressStart,
StressEnd,
InlineCode,
InlineCodeStart,
InlineCodeEnd,
RevisionDeletionStart,
RevisionDeletionEnd,
SpoilerStart,
SpoilerEnd,
InlineAsideStart,
InlineAsideEnd
}
export class Token {
constructor(
public meaning: T... | export enum TokenMeaning {
Text,
EmphasisStart,
EmphasisEnd,
StressStart,
StressEnd,
InlineCode,
RevisionDeletionStart,
RevisionDeletionEnd,
SpoilerStart,
SpoilerEnd,
InlineAsideStart,
InlineAsideEnd
}
export class Token {
constructor(
public meaning: TokenMeaning,
public index: numbe... | Remove old inline code token meanings | Remove old inline code token meanings
| TypeScript | mit | start/up,start/up | ---
+++
@@ -5,8 +5,6 @@
StressStart,
StressEnd,
InlineCode,
- InlineCodeStart,
- InlineCodeEnd,
RevisionDeletionStart,
RevisionDeletionEnd,
SpoilerStart, |
0f7af6a4e98004db82d393f3a8ba9f25f75735e3 | src/common/types/objects/settings.ts | src/common/types/objects/settings.ts | import {Memo} from './memos'
export type WeightedSigner = {
address: string,
weight: number
}
export type Signers = {
threshold?: number,
weights: WeightedSigner[]
}
export type FormattedSettings = {
passwordSpent?: boolean,
requireDestinationTag?: boolean,
requireAuthorization?: boolean,
disallowInc... | import {Memo} from './memos'
export type WeightedSigner = {
address: string,
weight: number
}
export type Signers = {
threshold?: number,
weights: WeightedSigner[]
}
export type FormattedSettings = {
defaultRipple?: boolean,
depositAuth?: boolean,
disableMasterKey?: boolean,
disallowIncomingXRP?: boo... | Add depositAuth to FormattedSettings type | Add depositAuth to FormattedSettings type
| TypeScript | isc | ripple/ripple-lib,ripple/ripple-lib,ripple/ripple-lib,ripple/ripple-lib | ---
+++
@@ -11,20 +11,21 @@
}
export type FormattedSettings = {
+ defaultRipple?: boolean,
+ depositAuth?: boolean,
+ disableMasterKey?: boolean,
+ disallowIncomingXRP?: boolean,
+ domain?: string,
+ emailHash?: string|null,
+ enableTransactionIDTracking?: boolean,
+ globalFreeze?: boolean,
+ memos?: Mem... |
9a445d54857a33de5d8a21803f2795cc8aa7791d | apps/docs/src/common/page-wrap.tsx | apps/docs/src/common/page-wrap.tsx | import { FC, createElement as h } from 'react';
import { PageProps } from '@not-govuk/app-composer';
import { Page } from '@hods/components';
import './app.scss';
export const PageWrap: FC<PageProps> = ({ children }) => {
const navigation = [
{ href: '/get-started', text: 'Get started' },
{ href: '/styles',... | import { FC, createElement as h } from 'react';
import { PageProps } from '@not-govuk/app-composer';
import { Page } from '@hods/components';
import './app.scss';
export const PageWrap: FC<PageProps> = ({ children }) => {
const navigation = [
{ href: '/get-started', text: 'Get started' },
{ href: '/styles',... | Remove link to cookies page | docs: Remove link to cookies page
We don't have cookies at the moment and so have no need of a cookies
page.
When we have cookies we can add this back.
| TypeScript | mit | eliothill/home-office-digital-patterns,eliothill/home-office-digital-patterns,eliothill/home-office-digital-patterns | ---
+++
@@ -15,7 +15,6 @@
];
const footerNavigation = [
{ href: 'https://github.com/UKHomeOffice/hods-poc/', text: 'GitHub' },
- { href: '/cookies', text: 'Cookies' },
{ href: 'https://github.com/UKHomeOffice/hods-poc/issues/new', text: 'Feedback' },
{ href: 'https://design-system.service.gov.... |
09f82a7a598b8573f41d5cd2f1803b123133582f | translations/lxqt-openssh-askpass.ts | translations/lxqt-openssh-askpass.ts | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en_US">
<context>
<name>MainWindow</name>
<message>
<location filename="../src/mainwindow.ui" line="14"/>
<source>OpenSSH Authentication Passphrase request</source>
<translation type="unfinished"></translati... | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>MainWindow</name>
<message>
<location filename="../src/mainwindow.ui" line="14"/>
<source>OpenSSH Authentication Passphrase request</source>
<translation type="unfinished"></translation>
</message... | Fix target language in translation file template | Fix target language in translation file template
The translation file template was configured for a target language. This
prevented Linguist from showing the selection dialog when the file was
opened after copying it to a language-specific version. Not explicitly
querying the language then could have led translators t... | TypeScript | lgpl-2.1 | smart2128/lxqt-openssh-askpass,lxde/lxqt-openssh-askpass | ---
+++
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
-<TS version="2.1" language="en_US">
+<TS version="2.1">
<context>
<name>MainWindow</name>
<message> |
1cb93b969f35cadd6f7e746911e8ed2c0a2cba4c | src/marketplace/resources/terminate/TerminateAction.ts | src/marketplace/resources/terminate/TerminateAction.ts | import { translate } from '@waldur/i18n';
import { marketplaceIsVisible } from '@waldur/marketplace/utils';
import { validateState } from '@waldur/resource/actions/base';
import { ResourceAction } from '@waldur/resource/actions/types';
export default function createAction(ctx): ResourceAction {
return {
name: 't... | import { translate } from '@waldur/i18n';
import { marketplaceIsVisible } from '@waldur/marketplace/utils';
import { validateState } from '@waldur/resource/actions/base';
import { ResourceAction } from '@waldur/resource/actions/types';
export default function createAction(ctx): ResourceAction {
return {
name: 't... | Allow to terminate ERRED resources. | Allow to terminate ERRED resources.
| TypeScript | mit | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | ---
+++
@@ -12,6 +12,6 @@
title: translate('Terminate'),
useResolve: true,
isVisible: marketplaceIsVisible() && ctx.resource.marketplace_resource_uuid !== null,
- validators: [validateState('OK')],
+ validators: [validateState('OK', 'Erred')],
};
} |
76df423518780eac802b5e49111fac906b562d42 | 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, 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... | /*
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">
An InfluxDB error has occurred. Please report the issue
<a href="https:... | Change error text and link to point to influxdb | Change error text and link to point to influxdb
| TypeScript | mit | influxdata/influxdb,influxdb/influxdb,nooproblem/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,nooproblem/influxdb,li-ang/influxdb,nooproblem/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influ... | ---
+++
@@ -9,11 +9,8 @@
public render() {
return (
<p className="error">
- A Chronograf error has occurred. Please report the issue
- <a href="https://github.com/influxdata/influxdb/chronograf/issues">
- here
- </a>
- .
+ An InfluxDB error has occurred... |
e6616755214313191235b397f7d8e63c8e645e17 | src/Core/StoreCreator.ts | src/Core/StoreCreator.ts | ///<reference path="./Interfaces/IStoreCreator.ts" />
import {
compose,
createStore,
applyMiddleware,
combineReducers
} from 'redux';
import {
routerReducer,
routerMiddleware
} from 'react-router-redux';
import {
persistStore,
autoRehydrate
} from 'redux-persist';
import thunk from 'redux-thunk';
impo... | ///<reference path="./Interfaces/IStoreCreator.ts" />
import {
compose,
createStore,
applyMiddleware,
combineReducers
} from 'redux';
import {
routerReducer,
routerMiddleware
} from 'react-router-redux';
import {
persistStore,
autoRehydrate
} from 'redux-persist';
import thunk from 'redux-thunk';
impo... | Add Authentication to persistStore blacklist | Add Authentication to persistStore blacklist
| TypeScript | mit | harksys/HawkEye,harksys/HawkEye,harksys/HawkEye | ---
+++
@@ -48,7 +48,10 @@
*/
this.store = createStore(reducers, undefined, enhancer) as Redux.Store<T>;
persistStore(this.store, {
- blacklist : ['routing']
+ blacklist : [
+ 'routing',
+ 'authentication'
+ ]
});
}
|
5bcfd0a3c1ef8d1e379dcf3ab363bd0ed76aa6bb | tools/env/base.ts | tools/env/base.ts | import { EnvConfig } from './env-config.interface';
const BaseConfig: EnvConfig = {
// Sample API url
API: 'https://demo.com',
RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.18.0',
RELEASEVERSION: '0.18.0'
};
export = BaseConfig;
| import { EnvConfig } from './env-config.interface';
const BaseConfig: EnvConfig = {
// Sample API url
API: 'https://demo.com',
RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.18.1',
RELEASEVERSION: '0.18.1'
};
export = BaseConfig;
| Update release version to 0.18.1. | Update release version to 0.18.1.
| TypeScript | mit | nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website | ---
+++
@@ -3,8 +3,8 @@
const BaseConfig: EnvConfig = {
// Sample API url
API: 'https://demo.com',
- RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.18.0',
- RELEASEVERSION: '0.18.0'
+ RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.18.1',
+ RELEASEVERSION: '0.18... |
eb5c176616cbd183b4d984a660b74ef39701cfb3 | web/src/index.tsx | web/src/index.tsx | import React from "react";
import ReactDOM from "react-dom";
import { App } from "./App";
import "./index.css";
import reportWebVitals from "./reportWebVitals";
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById("root")
);
// If you want to start measuring performance i... | import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import { App } from "./App";
import reportWebVitals from "./reportWebVitals";
const root = ReactDOM.createRoot(
document.getElementById("root") as HTMLElement
);
root.render(
<React.StrictMode>
<App />
</React.StrictMod... | Revert "Revert "refactor(ui): ♻️ use new createRoot"" | Revert "Revert "refactor(ui): ♻️ use new createRoot""
This reverts commit 77c53b0b3f8dd75e8d42ad3bf26219ef07a8a3f3.
| TypeScript | mit | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | ---
+++
@@ -1,14 +1,16 @@
import React from "react";
-import ReactDOM from "react-dom";
+import ReactDOM from "react-dom/client";
+import "./index.css";
import { App } from "./App";
-import "./index.css";
import reportWebVitals from "./reportWebVitals";
-ReactDOM.render(
+const root = ReactDOM.createRoot(
+ doc... |
47671367b1c86877e181be9ce30a9fc6d235ab46 | src/SyntaxNodes/OrderedListNode.ts | src/SyntaxNodes/OrderedListNode.ts | import { OutlineSyntaxNode } from './OutlineSyntaxNode'
export class OrderedListNode implements OutlineSyntaxNode {
constructor(public listItems: OrderedListNode.Item[]) { }
start(): number {
return this.listItems[0].ordinal
}
order(): OrderedListNode.Order {
const withExplicitOrdinals =
this.... | import { OutlineSyntaxNode } from './OutlineSyntaxNode'
export class OrderedListNode implements OutlineSyntaxNode {
constructor(public listItems: OrderedListNode.Item[]) { }
start(): number {
return this.listItems[0].ordinal
}
order(): OrderedListNode.Order {
const withExplicitOrdinals =
this.... | Make ordered list's order enum start at 1 | Make ordered list's order enum start at 1
| TypeScript | mit | start/up,start/up | ---
+++
@@ -37,7 +37,7 @@
}
export enum Order {
- Ascending,
+ Ascending = 1,
Descrending
}
} |
808e63d5966d8de6d4d9cdd55283d7def622f04b | packages/components/components/version/AppVersion.tsx | packages/components/components/version/AppVersion.tsx | import React from 'react';
import { APPS_CONFIGURATION } from 'proton-shared/lib/constants';
import { useModals, useConfig } from '../../hooks';
import ChangelogModal from './ChangelogModal';
import { getAppVersion } from '../../helpers';
interface Props {
appName?: string;
appVersion?: string;
changelog?... | import React from 'react';
import { APPS_CONFIGURATION } from 'proton-shared/lib/constants';
import { useModals, useConfig } from '../../hooks';
import ChangelogModal from './ChangelogModal';
import { getAppVersion } from '../../helpers';
interface Props {
appName?: string;
appVersion?: string;
changelog?... | Use span instead of button if no changelog on app version | Use span instead of button if no changelog on app version
| TypeScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | ---
+++
@@ -21,15 +21,25 @@
const appName = maybeAppName || APPS_CONFIGURATION[APP_NAME]?.name;
const appVersion = getAppVersion(maybeAppVersion || APP_VERSION_DISPLAY || APP_VERSION);
+ const className = 'smallest aligncenter opacity-50 mt0 mb0-5';
+ const title = DATE_VERSION;
+ const children ... |
e321e28a28c24b95803b1f991244b8437be0ff19 | www/src/app/components/register/register.component.ts | www/src/app/components/register/register.component.ts | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { CustomerAuthService } from 'app/services/customer-auth.service';
import { Contact} from 'app/components/contact/contact.component'
import { CustomFormsModule } from 'ng2-validation'
@Component({
selector: 'app-regis... | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
//import { Contact} from 'app/components/contact/contact.component'
import { CustomerAuthService } from 'app/services/customer-auth.service';
import { CustomFormsModule } from 'ng2-validation'
export class Contact {
construc... | Remove default values from register page | Remove default values from register page
| TypeScript | mit | petrstehlik/pyngShop,petrstehlik/pyngShop,petrstehlik/pyngShop,petrstehlik/pyngShop | ---
+++
@@ -1,8 +1,24 @@
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
+//import { Contact} from 'app/components/contact/contact.component'
import { CustomerAuthService } from 'app/services/customer-auth.service';
-import { Contact} from 'app/components/contact/contac... |
092d488a7445b691ab61d337650a9f6e0ad09a04 | src/components/StoreProvider.ts | src/components/StoreProvider.ts | import { Component } from 'react';
import { AppStore } from '../services/';
import { loadAndBundleSpec } from '../utils';
interface SpecProps {
specUrl?: string;
spec?: object;
store?: AppStore;
children?: any;
}
interface SpecState {
error?: Error;
loading: boolean;
store?: AppStore;
}
export class S... | import { Component } from 'react';
import { AppStore } from '../services/';
import { loadAndBundleSpec } from '../utils';
interface SpecProps {
specUrl?: string;
spec?: object;
store?: AppStore;
children?: any;
}
interface SpecState {
error?: Error;
loading: boolean;
store?: AppStore;
}
export class S... | Fix setState run before mount | Fix setState run before mount
| TypeScript | mit | Rebilly/ReDoc,Rebilly/ReDoc,Rebilly/ReDoc,Rebilly/ReDoc | ---
+++
@@ -25,7 +25,9 @@
this.state = {
loading: true,
};
+ }
+ componentDidMount() {
this.load();
}
|
d3b113cdf05decdc7b3d94b44f102fe8cfa13a80 | packages/notebook-app-component/src/decorators/undoable-delete.tsx | packages/notebook-app-component/src/decorators/undoable-delete.tsx | import * as React from "react";
interface Props {
secondsDelay: number;
message: string;
isDeleting: boolean;
doDelete: () => void;
doUndo: () => void;
children?: React.ReactNode;
}
class TimedUndoableDelete
extends React.PureComponent<Props> {
timer: NodeJS.Timeout | null = null;
componentDidMoun... | import * as React from "react";
interface Props {
secondsDelay: number;
message: string;
isDeleting: boolean;
doDelete: () => void;
doUndo: () => void;
children?: React.ReactNode;
}
class TimedUndoableDelete
extends React.PureComponent<Props> {
timer: number | null = null;
componentDidMount(): voi... | Fix type in UndoableDelete component | Fix type in UndoableDelete component
| TypeScript | bsd-3-clause | nteract/composition,nteract/composition,nteract/nteract,nteract/composition,nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract | ---
+++
@@ -12,7 +12,7 @@
class TimedUndoableDelete
extends React.PureComponent<Props> {
- timer: NodeJS.Timeout | null = null;
+ timer: number | null = null;
componentDidMount(): void {
this.timer = setTimeout( |
aaf72bf42e197e5cc300a3f722103ad5cedc3a90 | 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 slash before the "node_modules" string in "Require cycle" warn message regex | Remove slash before the "node_modules" string in "Require cycle" warn message regex
Previous regex doesn't match any of "Require cycle" warns as they all contain not absolute warned modules path, but relative to project directory and without starting slash.
Example warn message "Require cycle: node_modules/react-n... | TypeScript | bsd-3-clause | exponentjs/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponentjs/expon... | ---
+++
@@ -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;
} |
85e01a4437e7d64518b7137520368b21262734cc | src/app/data/services/local_storage_service.ts | src/app/data/services/local_storage_service.ts | ///<reference path="../models/content_block.ts"/>
///<reference path="ajax_content_blocks_hash_serializer.ts"/>
class LocalStorageService {
static EXPIRATIONTIME:number = 1000 * 60 * 60; // 1h in ms
private expiryDate:{[key:string]:number} = {};
private serializer:AjaxContentBlocksHashSerializer = new AjaxConten... | ///<reference path="../models/content_block.ts"/>
///<reference path="ajax_content_blocks_hash_serializer.ts"/>
class LocalStorageService {
static EXPIRATIONTIME:number = 1000 * 60 * 60; // 1h in ms
private expiryDate:{[key:string]:number} = {};
private serializer:AjaxContentBlocksHashSerializer = new AjaxConten... | Revert "Don't expose your privates!" | Revert "Don't expose your privates!"
This reverts commit d1be2bb82d7353d66090929e3e02e375638d3774.
| TypeScript | mit | renuo/renuo-cms-client,renuo/renuo-cms-client,renuo/renuo-cms-client,renuo/renuo-cms-client | ---
+++
@@ -33,7 +33,7 @@
this.expiryDate[key] = this.timestamp() + LocalStorageService.EXPIRATIONTIME;
}
- private timestamp():number {
+ public timestamp():number {
return Date.now();
}
} |
a7e5b07203a151741044a12807a12455f45ab77c | src/desktop/components/react/stitch_components/index.tsx | src/desktop/components/react/stitch_components/index.tsx | /**
* Export globally available React components from this file.
*
* Keep in mind that components exported from here (and their dependencies)
* increase the size of our `common.js` bundle, so when the stitched component
* is no longer used be sure to remove it from this list.
*
* To find which components are sti... | /**
* Export globally available React components from this file.
*
* Keep in mind that components exported from here (and their dependencies)
* increase the size of our `common.js` bundle, so when the stitched component
* is no longer used be sure to remove it from this list.
*
* To find which components are sti... | Update stitched UserSettingsTwoFactorAuthentication component import | Update stitched UserSettingsTwoFactorAuthentication component import
| TypeScript | mit | joeyAghion/force,damassi/force,artsy/force-public,eessex/force,joeyAghion/force,yuki24/force,erikdstock/force,joeyAghion/force,izakp/force,erikdstock/force,eessex/force,oxaudo/force,anandaroop/force,damassi/force,artsy/force-public,artsy/force,oxaudo/force,oxaudo/force,oxaudo/force,yuki24/force,erikdstock/force,joeyAgh... | ---
+++
@@ -18,5 +18,5 @@
} from "reaction/Components/Payment/UserSettingsPayments"
export {
UserSettingsTwoFactorAuthenticationQueryRenderer as UserSettingsTwoFactorAuthentication,
-} from "reaction/Components/UserSettingsTwoFactorAuthentication"
+} from "reaction/Components/UserSettingsTwoFactorAuthentication/... |
0dadb1c816ffc2bc51910c267500c8a34164752d | packages/lesswrong/lib/collections/messages/schema.ts | packages/lesswrong/lib/collections/messages/schema.ts | import { foreignKeyField } from '../../utils/schemaUtils'
const schema: SchemaType<DbMessage> = {
userId: {
...foreignKeyField({
idFieldName: "userId",
resolverName: "user",
collectionName: "Users",
type: "User",
nullable: true
}),
viewableBy: ['members'],
insertableBy: ... | import { foreignKeyField } from '../../utils/schemaUtils'
const schema: SchemaType<DbMessage> = {
userId: {
...foreignKeyField({
idFieldName: "userId",
resolverName: "user",
collectionName: "Users",
type: "User",
nullable: true
}),
viewableBy: ['members'],
insertableBy: ... | Hide userId field in PM form | Hide userId field in PM form
| TypeScript | mit | Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2 | ---
+++
@@ -11,6 +11,7 @@
}),
viewableBy: ['members'],
insertableBy: ['members'],
+ hidden: true,
optional: true,
},
createdAt: { |
917144d8f520b4940a299cb2f076c0d18210cf50 | src/lib/plugins/menu/menu-trigger.directive.ts | src/lib/plugins/menu/menu-trigger.directive.ts | import {
Directive,
ContentChild,
EventEmitter,
Output,
Input,
AfterViewInit
} from '@angular/core';
import { ViewChild } from '@angular/core';
import { MatMenuTrigger } from '@angular/material';
@Directive({
selector: '[q-grid-menu-trigger]'
})
export class MenuTriggerDirective implements AfterViewInit {
@Con... | import {
Directive,
ContentChild,
EventEmitter,
Output,
Input,
AfterViewInit
} from '@angular/core';
import { MatMenuTrigger } from '@angular/material';
@Directive({
selector: '[q-grid-menu-trigger]'
})
export class MenuTriggerDirective implements AfterViewInit {
@ContentChild(MatMenuTrigger) public trigger: M... | Fix 'Expression has changed' issue | Fix 'Expression has changed' issue
| TypeScript | mit | azkurban/ng2,azkurban/ng2,qgrid/ng2,azkurban/ng2,qgrid/ng2,qgrid/ng2 | ---
+++
@@ -6,7 +6,6 @@
Input,
AfterViewInit
} from '@angular/core';
-import { ViewChild } from '@angular/core';
import { MatMenuTrigger } from '@angular/material';
@Directive({
@@ -19,7 +18,8 @@
constructor() {}
ngAfterViewInit() {
- this.trigger.openMenu();
+ Promise.resolve(null).then(() => this.t... |
60886fc1f8fc4c34837a5da0dbc32093cfe32153 | src/devices/components/e_stop_btn.tsx | src/devices/components/e_stop_btn.tsx | import * as React from "react";
import { t } from "i18next";
import { emergencyLock, emergencyUnlock } from "../actions";
import { EStopButtonProps } from "../interfaces";
import { SyncStatus } from "farmbot/dist";
// Leave this here. Type checker will notify us if we ever need to change
// this string.
const LOCKED: S... | import * as React from "react";
import { t } from "i18next";
import { emergencyLock, emergencyUnlock } from "../actions";
import { EStopButtonProps } from "../interfaces";
import { SyncStatus } from "farmbot/dist";
import { get } from "lodash";
// Leave this here. Type checker will notify us if we ever need to change
/... | Update to locking button CC @gabriel | Update to locking button CC @gabriel
| TypeScript | mit | RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,MrChristofferson/Farmbot-Web-API,FarmBot/Farmbot-Web-API,MrChristofferson/Farmbot-Web-API,RickCarlino/farmbot-web-app,RickCarlino/farmbot-web-app,gabrielburnwo... | ---
+++
@@ -3,17 +3,22 @@
import { emergencyLock, emergencyUnlock } from "../actions";
import { EStopButtonProps } from "../interfaces";
import { SyncStatus } from "farmbot/dist";
+import { get } from "lodash";
// Leave this here. Type checker will notify us if we ever need to change
// this string.
const LOCKE... |
666760c5f2a2a0cc958579b641b699b32943606a | packages/lesswrong/lib/collections/messages/schema.ts | packages/lesswrong/lib/collections/messages/schema.ts | import { foreignKeyField } from '../../utils/schemaUtils'
const schema: SchemaType<DbMessage> = {
userId: {
...foreignKeyField({
idFieldName: "userId",
resolverName: "user",
collectionName: "Users",
type: "User",
nullable: true
}),
viewableBy: ['members'],
insertableBy: ... | import { foreignKeyField } from '../../utils/schemaUtils'
const schema: SchemaType<DbMessage> = {
userId: {
...foreignKeyField({
idFieldName: "userId",
resolverName: "user",
collectionName: "Users",
type: "User",
nullable: true
}),
viewableBy: ['members'],
insertableBy: ... | Change the permissions, not just visibility | Change the permissions, not just visibility
| TypeScript | mit | Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2 | ---
+++
@@ -10,8 +10,7 @@
nullable: true
}),
viewableBy: ['members'],
- insertableBy: ['members'],
- hidden: true,
+ insertableBy: ['admins'],
optional: true,
},
createdAt: { |
c862095b025576340b236f7790ebf9722c6d5640 | src/app/store/action/action.store.ts | src/app/store/action/action.store.ts | import { Injectable } from '@angular/core';
import { ActionService } from './Action.service';
import { Actions, Action } from '../../model';
import { AbstractStore } from '../entity/entity.store';
import { EventsService } from '../entity/events.service';
@Injectable()
export class ActionStore extends AbstractStore<Ac... | import { Injectable } from '@angular/core';
import { ActionService } from './action.service';
import { Actions, Action } from '../../model';
import { AbstractStore } from '../entity/entity.store';
import { EventsService } from '../entity/events.service';
@Injectable()
export class ActionStore extends AbstractStore<Ac... | Fix obvious typo that has nothing to do with search/replace | Fix obvious typo that has nothing to do with search/replace
| TypeScript | apache-2.0 | kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client | ---
+++
@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
-import { ActionService } from './Action.service';
+import { ActionService } from './action.service';
import { Actions, Action } from '../../model';
import { AbstractStore } from '../entity/entity.store'; |
38fe6b28b8a4b54c1f2f81fa72bccc65ddba5618 | src/com/mendix/widget/carousel/components/Carousel.ts | src/com/mendix/widget/carousel/components/Carousel.ts | import { CarouselItem } from "./CarouselItem";
import { Component, DOM, createElement } from "react";
import "../ui/Carousel.css";
import { CarouselControl } from "./CarouselControl";
export interface Image {
url: string;
}
export interface CarouselProps {
images?: Image[];
}
interface CarouselState {
a... | import { CarouselItem } from "./CarouselItem";
import { Component, DOM, createElement } from "react";
import "../ui/Carousel.css";
import { CarouselControl } from "./CarouselControl";
export interface Image {
url: string;
}
export interface CarouselProps {
images?: Image[];
}
interface CarouselState {
a... | Add function that changes image based on direction | Add function that changes image based on direction
| TypeScript | apache-2.0 | mendixlabs/carousel,mendixlabs/carousel,FlockOfBirds/carousel,FlockOfBirds/carousel | ---
+++
@@ -16,6 +16,8 @@
activeIndex: number;
}
+type Direction = "right" | "left";
+
export class Carousel extends Component<CarouselProps, CarouselState> {
constructor(props: CarouselProps) {
super(props);
@@ -31,8 +33,8 @@
DOM.div({ className: "carousel-inner" },
... |
63d6b865d2822ea2195fe85ddc818d0d96475d48 | docs/examples/CustomIndicatorsContainer.tsx | docs/examples/CustomIndicatorsContainer.tsx | // @flow
import React from 'react';
import Select, { components } from 'react-select';
import { colourOptions } from '../data';
const IndicatorsContainer = props => {
return (
<div style={{ background: colourOptions[2].color }}>
<components.IndicatorsContainer {...props} />
</div>
);
};
export defa... | import React from 'react';
import Select, { components, IndicatorContainerProps } from 'react-select';
import { ColourOption, colourOptions } from '../data';
const IndicatorsContainer = (
props: IndicatorContainerProps<ColourOption, true>
) => {
return (
<div style={{ background: colourOptions[2].color }}>
... | Convert more examples to TypeScript | Convert more examples to TypeScript
| TypeScript | mit | JedWatson/react-select,JedWatson/react-select | ---
+++
@@ -1,10 +1,10 @@
-// @flow
+import React from 'react';
+import Select, { components, IndicatorContainerProps } from 'react-select';
+import { ColourOption, colourOptions } from '../data';
-import React from 'react';
-import Select, { components } from 'react-select';
-import { colourOptions } from '../data... |
0d5355c940377a84ffc780b5b4a86e8043eb650a | src/dashboard-refactor/header/sync-status-menu/util.ts | src/dashboard-refactor/header/sync-status-menu/util.ts | import { RootState } from './types'
export const deriveStatusIconColor = ({
syncState,
backupState,
}: RootState): 'green' | 'red' | 'yellow' => {
if (syncState === 'error' || backupState === 'error') {
return 'red'
}
if (syncState === 'disabled' && backupState === 'disabled') {
re... | import moment from 'moment'
import type { RootState } from './types'
export const deriveStatusIconColor = ({
syncState,
backupState,
lastSuccessfulSyncDate,
}: RootState): 'green' | 'red' | 'yellow' => {
const daysSinceLastSync = moment().diff(
moment(lastSuccessfulSyncDate),
'days',
... | Update sync/backup status indicator conditions | Update sync/backup status indicator conditions
- yellow if last sync > 3 days ago
- red if last sync > 7 days ago
| TypeScript | mit | WorldBrain/WebMemex,WorldBrain/WebMemex | ---
+++
@@ -1,14 +1,29 @@
-import { RootState } from './types'
+import moment from 'moment'
+
+import type { RootState } from './types'
export const deriveStatusIconColor = ({
syncState,
backupState,
+ lastSuccessfulSyncDate,
}: RootState): 'green' | 'red' | 'yellow' => {
- if (syncState === 'erro... |
1e7b867564fd1a8d07b9e78739f8bbb6a4bb3117 | projects/igniteui-angular/src/lib/action-strip/index.ts | projects/igniteui-angular/src/lib/action-strip/index.ts | export * from './action-strip.module';
| export { IgxGridActionsBaseDirective } from './grid-actions/grid-actions-base.directive';
export { IgxGridEditingActionsComponent } from './grid-actions/grid-editing-actions.component';
export { IgxGridPinningActionsComponent } from './grid-actions/grid-pinning-actions.component';
export { IgxActionStripComponent } fro... | Revert - "Remove not needed exports" | chore(*): Revert - "Remove not needed exports"
This reverts commit 200c9dc5bc933910ed72761ec820f06478465e3c.
| TypeScript | mit | Infragistics/zero-blocks,Infragistics/zero-blocks,Infragistics/zero-blocks | ---
+++
@@ -1 +1,5 @@
+export { IgxGridActionsBaseDirective } from './grid-actions/grid-actions-base.directive';
+export { IgxGridEditingActionsComponent } from './grid-actions/grid-editing-actions.component';
+export { IgxGridPinningActionsComponent } from './grid-actions/grid-pinning-actions.component';
+export { I... |
05230d275430dd95393db6f035120fc3e2ad6b6e | src/configuration/model/valuelist-definition.ts | src/configuration/model/valuelist-definition.ts | /**
* @author Daniel de Oliveira
*
*
*/
export interface ValuelistDefinition {
description: { [language: string]: string }
extends?: string; // TODO review
createdBy: string;
creationDate: string;
constraints?: any; // TODO to be defined
values: { [key: string]: ValueDefinition }
}
export... | /**
* @author Daniel de Oliveira
*
*
*/
export interface ValuelistDefinition {
description: { [language: string]: string }
extends?: string; // TODO review
createdBy: string;
creationDate: string;
constraints?: any; // TODO to be defined
values: { [key: string]: ValueDefinition }
order?... | Add order field for valuelists | Add order field for valuelists
| TypeScript | apache-2.0 | dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2 | ---
+++
@@ -11,6 +11,7 @@
creationDate: string;
constraints?: any; // TODO to be defined
values: { [key: string]: ValueDefinition }
+ order?: string[]; // optional, default is alphabetical TODO to be implemented, see #11413
}
|
5a97b88e17aa4b896c993c295ef643786a6a7733 | scripts/uninstall.ts | scripts/uninstall.ts | #! /usr/bin/env node
// Modules
import * as fs from 'fs';
import * as path from 'path';
import * as readline from 'readline';
import * as chalk from 'chalk';
let rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
// Directories
let cwd: string = process.cwd();
let minifyJ... | #! /usr/bin/env node
// Modules
import * as fs from "fs";
import * as path from "path";
import * as readline from "readline";
import * as chalk from "chalk";
let rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
// Directories
let cwd: string = process.cwd();
let minifyJ... | Change single quotes for double quotes | Change single quotes for double quotes | TypeScript | mit | Kurtz1993/ionic-minify,Kurtz1993/ionic-minify | ---
+++
@@ -1,10 +1,10 @@
#! /usr/bin/env node
// Modules
-import * as fs from 'fs';
-import * as path from 'path';
-import * as readline from 'readline';
-import * as chalk from 'chalk';
+import * as fs from "fs";
+import * as path from "path";
+import * as readline from "readline";
+import * as chalk from "chal... |
cee2855c0c031d51a45017f465f75eafa21cb548 | packages/design-studio/structure/index.ts | packages/design-studio/structure/index.ts | import S from '@sanity/desk-tool/structure-builder'
import CogIcon from 'part:@sanity/base/cog-icon'
import {JSONPreviewDocumentView} from '../documentViews/jsonPreview'
const STRUCTURE_CUSTOM_TYPES = ['settings']
const STRUCTURE_LIST_ITEM_DIVIDER = S.divider()
// Add `JSON` tab to the `author` document form
export c... | import S from '@sanity/desk-tool/structure-builder'
import CogIcon from 'part:@sanity/base/cog-icon'
import {JSONPreviewDocumentView} from '../documentViews/jsonPreview'
const STRUCTURE_CUSTOM_TYPES = ['settings']
const STRUCTURE_LIST_ITEM_DIVIDER = S.divider()
// Add `JSON` tab to the `author` document form
export c... | Add JSON tab to allInputs type | [design-studio] Add JSON tab to allInputs type
| TypeScript | mit | sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity | ---
+++
@@ -9,6 +9,13 @@
export const getDefaultDocumentNode = ({schemaType}) => {
// Conditionally return a different configuration based on the schema type
if (schemaType === 'author') {
+ return S.document().views([
+ S.view.form(),
+ S.view.component(JSONPreviewDocumentView).title('JSON')
+ ... |
54d76b8531e70c16f54791c37930a610e6540a7d | src/app/models/workout.ts | src/app/models/workout.ts | import { Tag } from './tag';
import { Sport } from './sport';
import { Address } from './address';
import { Image } from './image';
export class Workout {
public id: number;
public coach: number;
public title: string;
public sport: any;
public startdate: Date;
public enddate: Date;
public d... | import { Tag } from './tag';
import { Sport } from './sport';
import { Address } from './address';
import { Image } from './image';
export class Workout {
public id: number;
public coach: number;
public title: string;
public sport: any;
public startdate: Date;
public enddate: Date;
public d... | Add parameters on constructor to init default values | Add parameters on constructor to init default values
| TypeScript | mit | XavierGuichet/bemoove-front,XavierGuichet/bemoove-front,XavierGuichet/bemoove-front | ---
+++
@@ -23,14 +23,19 @@
public styleTop: string;
public styleHeight: string;
- constructor(
+ constructor(sport = new Sport(), address = new Address(), startdate = new Date(), enddate = new Date(), tags = new Array(), photo = new Image()
) {
- this.sport = new Sport();
- this.... |
02281d435b03156eacfaa7e6ec8413da4b4e888f | src/StringHelpers.ts | src/StringHelpers.ts | import { escapeForRegex } from './PatternHelpers'
// Returns a new string consisting of `count` copies of `text`
export function repeat(text: string, count: number): string {
return new Array(count + 1).join(text)
}
// Returns true if `first` equals `second` (ignoring any capitalization)
export function isEqualIgn... | import { escapeForRegex } from './PatternHelpers'
// Returns a new string consisting of `count` copies of `text`
export function repeat(text: string, count: number): string {
return new Array(count + 1).join(text)
}
// Returns true if `first` equals `second` (ignoring any capitalization)
export function isEqualIgn... | Add missing end-of-file line break | Add missing end-of-file line break
| TypeScript | mit | start/up,start/up | |
511bb05cb987d605f377d97fa4424facb0e14841 | tests/config-tests.ts | tests/config-tests.ts | /**
* @license
* Copyright 2020 Balena Ltd.
*
* 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 o... | /**
* @license
* Copyright 2020 Balena Ltd.
*
* 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 o... | Use a tmp data dir to avoid conflicts/overwriting existing data | Tests: Use a tmp data dir to avoid conflicts/overwriting existing data
Change-type: patch
| TypeScript | apache-2.0 | resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli | ---
+++
@@ -15,6 +15,11 @@
* limitations under the License.
*/
+import * as tmp from 'tmp';
+tmp.setGracefulCleanup();
+// Use a temporary dir for tests data
+process.env.BALENARC_DATA_DIRECTORY = tmp.dirSync().name;
+
import { EventEmitter } from 'events';
EventEmitter.defaultMaxListeners = 35; // it appears... |
07c5ad736c890b480ba7d4372aba0de35c20e041 | spec/Enumerable.DefaultIfEmpty.spec.ts | spec/Enumerable.DefaultIfEmpty.spec.ts | import { Enumerable, ResetableIterator } from '../src/Enumerable';
describe('Enumerable', () => {
describe('DefaultIfEmpty', () => {
it('Should return itself if sequence has items', () => {
const source = Enumerable.Of([1, 2, 3, 4, 5]);
const expected = source;
const r... | import { Enumerable, ResetableIterator } from '../src/Enumerable';
describe('Enumerable', () => {
describe('DefaultIfEmpty', () => {
it('Should return itself if sequence has items', () => {
const originalSource = [1, 2, 3, 4, 5];
const source = Enumerable.Of(originalSource);
... | Add example of incorrect consumption of enumerable. Test here should be passing | Add example of incorrect consumption of enumerable. Test here should be passing
| TypeScript | mit | rjrudman/TSLinq | ---
+++
@@ -3,11 +3,12 @@
describe('Enumerable', () => {
describe('DefaultIfEmpty', () => {
it('Should return itself if sequence has items', () => {
- const source = Enumerable.Of([1, 2, 3, 4, 5]);
+ const originalSource = [1, 2, 3, 4, 5];
+ const source = Enumerable.Of... |
760ff7d9a18b543a31a40b7ceb3fa10bd8c26506 | src/sagas/statusDetail.ts | src/sagas/statusDetail.ts | import { call, put } from 'redux-saga/effects';
import {
FetchStatusDetailFailure,
FetchStatusDetailRequest,
FetchStatusDetailSuccess,
statusDetailRequest,
statusDetailFailure,
statusDetailSuccess
} from '../actions/statusDetail';
import {
fetchStatusDetailPage,
StatusDetailPageInfo
} from '... | import { call, put } from 'redux-saga/effects';
import {
FetchStatusDetailFailure,
FetchStatusDetailRequest,
FetchStatusDetailSuccess,
statusDetailRequest,
statusDetailFailure,
statusDetailSuccess
} from '../actions/statusDetail';
import {
fetchStatusDetailPage,
StatusDetailPageInfo
} from '... | Fix issue with handleStatusDetailRequest calling itself infinitely when additional pages are present. | Fix issue with handleStatusDetailRequest calling itself infinitely when additional pages are present.
| TypeScript | mit | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | ---
+++
@@ -17,7 +17,8 @@
try {
const pageInfo: StatusDetailPageInfo = yield call(
fetchStatusDetailPage,
- action.dateString
+ action.dateString,
+ action.page
);
const { data, morePages } = pageInfo;
|
c9fe24daec32d23ac675f57e3c37854e5ecffbde | packages/webamp/js/components/PlaylistWindow/MiscOptionsContextMenu.tsx | packages/webamp/js/components/PlaylistWindow/MiscOptionsContextMenu.tsx | import { Node } from "../ContextMenu";
import ContextMenuTarget from "../ContextMenuTarget";
import * as Actions from "../../actionCreators";
import { useActionCreator } from "../../hooks";
const MiscOptionsContextMenu = () => {
const downloadHtmlPlaylist = useActionCreator(Actions.downloadHtmlPlaylist);
return (
... | import { Node } from "../ContextMenu";
import ContextMenuTarget from "../ContextMenuTarget";
import * as Actions from "../../actionCreators";
import { useActionCreator } from "../../hooks";
const MiscOptionsContextMenu = () => {
const downloadHtmlPlaylist = useActionCreator(Actions.downloadHtmlPlaylist);
return (
... | Fix menu item for downloading playlist as HTML | Fix menu item for downloading playlist as HTML
| TypeScript | mit | captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js | ---
+++
@@ -7,6 +7,7 @@
const downloadHtmlPlaylist = useActionCreator(Actions.downloadHtmlPlaylist);
return (
<ContextMenuTarget
+ style={{ width: "100%", height: "100%" }}
top
renderMenu={() => (
<Node onClick={downloadHtmlPlaylist} label="Generate HTML playlist" /> |
38c8c9b2d20dd0d875d2d26648f71c7b9301ccff | desktop/app/src/chrome/plugin-manager/PluginManager.tsx | desktop/app/src/chrome/plugin-manager/PluginManager.tsx | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import React from 'react';
import {Tab, Tabs} from 'flipper-plugin';
import PluginDebugger from './PluginDebugger';
... | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import React from 'react';
import {Tab, Tabs} from 'flipper-plugin';
import PluginDebugger from './PluginDebugger';
... | Set required prop for PluginInstaller | Set required prop for PluginInstaller
Summary: TSC is raising this for a missing property.
Reviewed By: timur-valiev
Differential Revision: D29933795
fbshipit-source-id: 2acb3ea3b504f1bce1fb4bd0f7e4b52fd49e00b0
| TypeScript | mit | facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper | ---
+++
@@ -21,7 +21,7 @@
<PluginDebugger />
</Tab>
<Tab tab="Install Plugins">
- <PluginInstaller />
+ <PluginInstaller autoHeight />
</Tab>
</Tabs>
</Modal> |
fbf61714b3e073037084e8fac2968512d167e2b7 | ui/src/idai_field/projects.ts | ui/src/idai_field/projects.ts | import { ResultDocument } from '../api/result';
const MAX_LABEL_LENGTH = 25;
export const getProjectLabel = (projectDocument: ResultDocument): string => {
return projectDocument.resource.shortDescription
&& projectDocument.resource.shortDescription.length <= MAX_LABEL_LENGTH
? projectDocume... | import { ResultDocument } from '../api/result';
const MAX_LABEL_LENGTH = 35;
export const getProjectLabel = (projectDocument: ResultDocument): string => {
return projectDocument.resource.shortDescription
&& projectDocument.resource.shortDescription.length <= MAX_LABEL_LENGTH
? projectDocume... | Set max length for project labels to 35 | Set max length for project labels to 35
| TypeScript | apache-2.0 | dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web | ---
+++
@@ -1,7 +1,7 @@
import { ResultDocument } from '../api/result';
-const MAX_LABEL_LENGTH = 25;
+const MAX_LABEL_LENGTH = 35;
export const getProjectLabel = (projectDocument: ResultDocument): string => { |
95f6cb516cfd8945298263eeb2050a0b0835dd6d | app/src/lib/shells/linux.ts | app/src/lib/shells/linux.ts | import { spawn } from 'child_process'
import { IFoundShell } from './found-shell'
export enum Shell {
Gnome = 'gnome-terminal',
}
export const Default = Shell.Gnome
export function parse(label: string): Shell {
return Default
}
export async function getAvailableShells(): Promise<
ReadonlyArray<IFoundShell<She... | import { spawn } from 'child_process'
import * as fs from 'fs'
import { assertNever, fatalError } from '../fatal-error'
import { IFoundShell } from './found-shell'
export enum Shell {
Gnome = 'gnome-terminal',
Tilix = 'tilix'
}
export const Default = Shell.Gnome
export function parse(label: string): Shell {
if... | Add Tilix as available Shell | Add Tilix as available Shell
| TypeScript | mit | desktop/desktop,kactus-io/kactus,artivilla/desktop,desktop/desktop,j-f1/forked-desktop,say25/desktop,j-f1/forked-desktop,say25/desktop,kactus-io/kactus,artivilla/desktop,j-f1/forked-desktop,shiftkey/desktop,shiftkey/desktop,kactus-io/kactus,artivilla/desktop,shiftkey/desktop,artivilla/desktop,say25/desktop,desktop/desk... | ---
+++
@@ -1,26 +1,81 @@
import { spawn } from 'child_process'
+import * as fs from 'fs'
+import { assertNever, fatalError } from '../fatal-error'
import { IFoundShell } from './found-shell'
export enum Shell {
Gnome = 'gnome-terminal',
+ Tilix = 'tilix'
}
export const Default = Shell.Gnome
export fu... |
229517d7d4300fd4dd1ba87616f253249256a240 | src/dashboard-refactor/search-results/types.ts | src/dashboard-refactor/search-results/types.ts | import { AnnotationsSorter } from 'src/sidebar/annotations-sidebar/sorting'
type Note = any
type Page = any
type NoteType = 'search' | 'user' | 'followed'
interface NewNoteFormState {
inputValue: string
// TODO: work out these states (may re-use from sidebar state)
}
interface NoteState {
id: string
... | import { TaskState } from 'ui-logic-core/lib/types'
import { AnnotationsSorter } from 'src/sidebar/annotations-sidebar/sorting'
export type NotesType = 'search' | 'user' | 'followed'
interface NormalizedState<T> {
allIds: string[]
byId: { [id: string]: T }
}
interface Note {
url: string
comment?: st... | Revise state shape again so it's less nested | Revise state shape again so it's less nested
Really difficult for me to think about this. They last state shape was valid, but it proved to be a major pain to work with, trying to access pages and notes in nested arrays.
Spent some time reading some different ways to deal with similar shaped states, and this really he... | TypeScript | mit | WorldBrain/WebMemex,WorldBrain/WebMemex | ---
+++
@@ -1,37 +1,54 @@
+import { TaskState } from 'ui-logic-core/lib/types'
+
import { AnnotationsSorter } from 'src/sidebar/annotations-sidebar/sorting'
-type Note = any
-type Page = any
-type NoteType = 'search' | 'user' | 'followed'
+export type NotesType = 'search' | 'user' | 'followed'
+
+interface Normali... |
98bd56c028d7ce4a4ee1e5ecee2ab539066f7491 | modules/posts/post-header-image.tsx | modules/posts/post-header-image.tsx | /* eslint-disable @next/next/no-img-element */
import * as React from 'react';
import { Container } from '~/components/layout';
export interface PostHeaderImageProps {
src: string;
alt?: string;
}
export const PostHeaderImage: React.FC<PostHeaderImageProps> = ({ alt, src }) => {
return (
<section className=... | import Image from 'next/image';
import * as React from 'react';
import { Container } from '~/components/layout';
export interface PostHeaderImageProps {
src: string;
alt?: string;
}
export const PostHeaderImage: React.FC<PostHeaderImageProps> = ({ alt, src }) => {
return (
<section className="px-4 lg:px-6 p... | Revert "fix image element in post header" | Revert "fix image element in post header"
This reverts commit 90c28bc053ddf8df01d177de98afc9f04af74a57.
| TypeScript | mit | resir014/resir014.xyz,resir014/resir014.xyz,resir014/resir014.xyz | ---
+++
@@ -1,4 +1,4 @@
-/* eslint-disable @next/next/no-img-element */
+import Image from 'next/image';
import * as React from 'react';
import { Container } from '~/components/layout';
@@ -12,7 +12,7 @@
<section className="px-4 lg:px-6 pt-12">
<Container>
<div className="relative w-full h-fu... |
b02ed6056b0158766949c892b6a7917a5dcc0860 | src/components/TabNavigation/SettingsTab.tsx | src/components/TabNavigation/SettingsTab.tsx | import * as React from 'react';
import TurkopticonSettings from '../TurkopticonSettings/TurkopticonSettings';
import AudioSettings from '../AudioSettings/AudioSettings';
import ToggleNoTO from '../TurkopticonSettings/ToggleNoTO';
import BackupUserSettings from '../BackupUserSettings/BackupUserSettings';
const ... | import * as React from 'react';
import TurkopticonSettings from '../TurkopticonSettings/TurkopticonSettings';
import AudioSettings from '../AudioSettings/AudioSettings';
import ToggleNoTO from '../TurkopticonSettings/ToggleNoTO';
import BackupUserSettings from '../BackupUserSettings/BackupUserSettings';
const ... | Return Fragment instead of wrapping <div> | Return Fragment instead of wrapping <div>
| TypeScript | mit | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | ---
+++
@@ -7,12 +7,12 @@
const SearchTab: React.SFC<{}> = () => {
return (
- <div>
+ <>
<BackupUserSettings />
<AudioSettings />
<ToggleNoTO />
<TurkopticonSettings />
- </div>
+ </>
);
};
|
808572f7e85eff89137a5f98c0bb7315ae118517 | src/ast/import-descriptor.ts | src/ast/import-descriptor.ts | /**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be f... | /**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be f... | Add known values to the type of ImportDesriptor.type as documentation. | Add known values to the type of ImportDesriptor.type as documentation. | TypeScript | bsd-3-clause | Polymer/tools,Polymer/tools,Polymer/tools,Polymer/tools | ---
+++
@@ -7,9 +7,9 @@
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
-
+
export class ImportDescriptor {
- type: string;
+ type: 'html-import' | 'html-script' | 'html-style' | string;
url: s... |
8ddfe04f08d25580e14001cd695b8b4710f56e99 | components/BlogPostPreview.tsx | components/BlogPostPreview.tsx | import Link from 'next/link';
import { FunctionComponent } from 'react';
import TagsList from './TagsList';
import { format } from 'date-fns';
import BlogPost from "../models/BlogPost";
import ReactMarkdown from 'react-markdown';
interface Props {
post: BlogPost
}
const BlogPostPreview: FunctionComponent<Props> = (... | import Link from 'next/link';
import { FunctionComponent } from 'react';
import TagsList from './TagsList';
import { format } from 'date-fns';
import BlogPost from "../models/BlogPost";
import ReactMarkdown from 'react-markdown';
interface Props {
post: BlogPost
}
const BlogPostPreview: FunctionComponent<Props> = (... | Add Read More link to blog posts with exerpts | Add Read More link to blog posts with exerpts
| TypeScript | mit | JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk | ---
+++
@@ -27,6 +27,11 @@
</header>
<div>
<ReactMarkdown source={post.excerpt ?? post.content} />
+ {post.excerpt &&
+ <Link href={post.url}>
+ <a>Read More</a>
+ </Link>
+ }
</div>
</article>
) |
25274cd6005ad8d43b465949b024af17d5cbf2f0 | projects/igniteui-angular/src/lib/grids/watch-changes.ts | projects/igniteui-angular/src/lib/grids/watch-changes.ts | import { SimpleChanges, SimpleChange } from '@angular/core';
/**
* @hidden
*/
export function WatchChanges(): PropertyDecorator {
return (target: any, key: string, propDesc?: PropertyDescriptor) => {
const privateKey = '_' + key.toString();
propDesc = propDesc || {
configurable: true,
... | import { SimpleChanges, SimpleChange } from '@angular/core';
/**
* @hidden
*/
export function WatchChanges(): PropertyDecorator {
return (target: any, key: string, propDesc?: PropertyDescriptor) => {
const privateKey = '_' + key.toString();
propDesc = propDesc || {
configurable: true,
... | Allow @WatchChanges to trigger original setter and ngOnChanges when setting the same object reference. | chore(*): Allow @WatchChanges to trigger original setter and ngOnChanges when setting the same object reference.
| TypeScript | mit | Infragistics/zero-blocks,Infragistics/zero-blocks,Infragistics/zero-blocks | ---
+++
@@ -15,7 +15,7 @@
propDesc.set = function (this: any, val: any) {
const oldValue = this[key];
- if (val !== oldValue) {
+ if (val !== oldValue || (typeof val === 'object' && val === oldValue)) {
originalSetter.call(this, val);
if ... |
66e02e3ea68ed2723547f91e821d709bc6a6ce93 | src/Unosquare.Tubular2.Web/wwwroot/app/form.component.ts | src/Unosquare.Tubular2.Web/wwwroot/app/form.component.ts | import { Component, Output, EventEmitter, } from '@angular/core';
import { Router, ActivatedRoute, Params } from '@angular/router';
import { FormGroup, FormBuilder } from '@angular/forms';
import { TubularDataService } from '@tubular2/tubular2';
@Component({
selector: 'sample-form',
templateUrl: '/app/form.c... | import { Component } from '@angular/core';
import { ActivatedRoute, Params } from '@angular/router';
import { FormGroup, FormBuilder } from '@angular/forms';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import { TubularDataService } from '@tubular2/tubular2';
@Component({
selector: 'sample-form',
... | Add observables to manipulate from data | Add observables to manipulate from data
| TypeScript | mit | unosquare/tubular2,unosquare/tubular2,unosquare/tubular2,unosquare/tubular2 | ---
+++
@@ -1,6 +1,8 @@
-import { Component, Output, EventEmitter, } from '@angular/core';
-import { Router, ActivatedRoute, Params } from '@angular/router';
+import { Component } from '@angular/core';
+import { ActivatedRoute, Params } from '@angular/router';
import { FormGroup, FormBuilder } from '@angular/forms... |
2c271e7302ad13f7dc127717e49a15a982d2e678 | client/StatBlockEditor/SavedEncounterEditor.tsx | client/StatBlockEditor/SavedEncounterEditor.tsx | import { Form, Formik } from "formik";
import React = require("react");
import { SavedEncounter } from "../../common/SavedEncounter";
import { Button } from "../Components/Button";
import { TextField } from "./components/TextField";
export function SavedEncounterEditor(props: {
savedEncounter: SavedEncounter;
onSa... | import { Form, Formik } from "formik";
import React = require("react");
import { SavedEncounter } from "../../common/SavedEncounter";
import { Button } from "../Components/Button";
import { env } from "../Environment";
import { TextField } from "./components/TextField";
export function SavedEncounterEditor(props: {
... | Add Background Image URL field | Add Background Image URL field
| TypeScript | mit | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | ---
+++
@@ -2,6 +2,7 @@
import React = require("react");
import { SavedEncounter } from "../../common/SavedEncounter";
import { Button } from "../Components/Button";
+import { env } from "../Environment";
import { TextField } from "./components/TextField";
export function SavedEncounterEditor(props: {
@@ -23,7... |
5d4e50ebea377986e73d526bac3d10dce8470402 | projects/ng-bootstrap-form-validation/src/lib/ng-bootstrap-form-validation.module.ts | projects/ng-bootstrap-form-validation/src/lib/ng-bootstrap-form-validation.module.ts | import { CommonModule } from "@angular/common";
import { NgModule, ModuleWithProviders } from "@angular/core";
import { FormValidationDirective } from "./Directives/form-validation.directive";
import { MessagesComponent } from "./Components/messages/messages.component";
import { ErrorMessageService } from "./Services/e... | import { CommonModule } from "@angular/common";
import { NgModule, ModuleWithProviders } from "@angular/core";
import { FormValidationDirective } from "./Directives/form-validation.directive";
import { MessagesComponent } from "./Components/messages/messages.component";
import { ErrorMessageService } from "./Services/e... | Add fallthrough empty array for customErrorMessages | Add fallthrough empty array for customErrorMessages
| TypeScript | mit | third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation | ---
+++
@@ -35,7 +35,7 @@
providers: [
{
provide: CUSTOM_ERROR_MESSAGES,
- useValue: userOptions.customErrorMessages,
+ useValue: userOptions.customErrorMessages || [],
multi: true
},
{ |
4636be2b71c87bfb0bfe3c94278b447a5efcc1f1 | extensions/typescript-language-features/src/test/index.ts | extensions/typescript-language-features/src/test/index.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.
*---------------------------------------------------------------... | Remove grep for ts tests | Remove grep for ts tests
| TypeScript | mit | microsoft/vscode,the-ress/vscode,microsoft/vscode,Microsoft/vscode,the-ress/vscode,microsoft/vscode,hoovercj/vscode,Krzysztof-Cieslak/vscode,Krzysztof-Cieslak/vscode,hoovercj/vscode,microsoft/vscode,Microsoft/vscode,eamodio/vscode,Microsoft/vscode,hoovercj/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,microsoft/vsco... | ---
+++
@@ -23,7 +23,6 @@
ui: 'tdd', // the TDD UI is being used in extension.test.ts (suite, test, etc.)
useColors: (!process.env.BUILD_ARTIFACTSTAGINGDIRECTORY && process.platform !== 'win32'), // colored output from test results (only windows cannot handle)
timeout: 60000,
- grep: 'References'
});
expo... |
fc62c22205b4b9e6a4c52a33e60c1377466ce90d | applications/desktop/src/main/prepare-env.ts | applications/desktop/src/main/prepare-env.ts | import shellEnv from "shell-env";
import { from } from "rxjs";
import { first, tap, publishReplay } from "rxjs/operators";
// Bring in the current user's environment variables from running a shell session so that
// launchctl on the mac and the windows process manager propagate the proper values for the
// user
//
// ... | import shellEnv from "shell-env";
import { ConnectableObservable, from } from "rxjs";
import { first, tap, publishReplay } from "rxjs/operators";
// Bring in the current user's environment variables from running a shell session so that
// launchctl on the mac and the windows process manager propagate the proper values... | Add workaround for ConnectableObservable type error | Add workaround for ConnectableObservable type error
| TypeScript | bsd-3-clause | nteract/nteract,nteract/composition,nteract/composition,nteract/nteract,nteract/nteract,nteract/composition,nteract/nteract,nteract/nteract | ---
+++
@@ -1,5 +1,5 @@
import shellEnv from "shell-env";
-import { from } from "rxjs";
+import { ConnectableObservable, from } from "rxjs";
import { first, tap, publishReplay } from "rxjs/operators";
// Bring in the current user's environment variables from running a shell session so that
@@ -22,7 +22,6 @@
p... |
1fb4a65027ca01b4a193090144273d7b5022de68 | src/app/plugins/platform/Docker/installGesso.ts | src/app/plugins/platform/Docker/installGesso.ts | import decompress from 'decompress';
import fetch from 'node-fetch';
import { posix } from 'path';
import { URL } from 'url';
export interface InstallGessoOptions {
repository: string;
branch: string;
targetPath: string;
}
async function installGesso({
branch,
repository,
targetPath: target,
}: InstallGes... | import decompress from 'decompress';
import fetch from 'node-fetch';
import { posix } from 'path';
import { URL } from 'url';
import { existsSync, promises as fs } from 'fs';
export interface InstallGessoOptions {
repository: string;
branch: string;
targetPath: string;
}
async function installGesso({
branch,
... | Remove docker-compose and Buildkite files from Gesso | Remove docker-compose and Buildkite files from Gesso
| TypeScript | mit | forumone/generator-web-starter,forumone/generator-web-starter,forumone/generator-web-starter,forumone/generator-web-starter,forumone/generator-web-starter | ---
+++
@@ -2,6 +2,7 @@
import fetch from 'node-fetch';
import { posix } from 'path';
import { URL } from 'url';
+import { existsSync, promises as fs } from 'fs';
export interface InstallGessoOptions {
repository: string;
@@ -31,7 +32,19 @@
const buffer = await response.buffer();
- await decompress(b... |
276f88c4d54729e2627c33964dc5c81475e3052f | jquery.postMessage/jquery.postMessage-test.ts | jquery.postMessage/jquery.postMessage-test.ts | /// <reference path="jquery.postMessage.d.ts" />
/// <reference path="../jquery/jquery.d.ts" />
function test_postMessage() {
// post plain message
$.postMessage('test message', 'http://dummy.url/', parent);
// post object message
$.postMessage({
'a': '1',
'b': '2'
}, 'http://dumm... | /// <reference path="jquery.postMessage.d.ts" />
/// <reference path="../jquery/jquery.d.ts" />
function test_postMessage() {
// post plain message
$.postMessage('test message', 'http://dummy.url/', parent);
// post object message
$.postMessage({
'a': '1',
'b': '2'
}, 'http://dumm... | Add new line at the end of the test file. | Add new line at the end of the test file.
| TypeScript | mit | panuhorsmalahti/DefinitelyTyped,masonkmeyer/DefinitelyTyped,takfjt/DefinitelyTyped,rerezz/DefinitelyTyped,the41/DefinitelyTyped,opichals/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,pocke/DefinitelyTyped,scsouthw/DefinitelyTyped,rcchen/DefinitelyTyped,psnider/DefinitelyTyped,raijinsetsu/DefinitelyTyped,nakakura/D... | |
429e524b52cf6d015d721b481b6a87d608c75a19 | generators/target/templates/app/components/about/components/ng-react/index.tsx | generators/target/templates/app/components/about/components/ng-react/index.tsx | /// <reference path="../../../../../../typings/tsd.d.ts" />
var React = require('react');
var ReactDOM = require('react-dom');
var NotificationSystem = require('react-notification-system');
var NGReactComponent = React.createClass<any>({
_notificationSystem: null,
_addNotification: function(event) {
... | /// <reference path="../../../../../../typings/tsd.d.ts" />
import * as React from 'react';
import * as ReactDOM from 'react-dom';
// No type definition available quick and dirty require instead
var NotificationSystem = require('react-notification-system');
class NGReactProps {
public message: string;
}
class N... | Use ES6 style classes instead of React.creatClass. | Use ES6 style classes instead of React.creatClass.
| TypeScript | mit | cmelion/generator-ng2-webpack,cmelion/generator-ng2-webpack,cmelion/generator-ng2-webpack,cmelion/generator-ng2-webpack | ---
+++
@@ -1,42 +1,49 @@
/// <reference path="../../../../../../typings/tsd.d.ts" />
-var React = require('react');
-var ReactDOM = require('react-dom');
+import * as React from 'react';
+import * as ReactDOM from 'react-dom';
+
+// No type definition available quick and dirty require instead
var NotificationSys... |
8cdacb77840451089cd9f436ee962ab0e634402a | modules/tinymce/src/plugins/hr/test/ts/browser/HrSanityTest.ts | modules/tinymce/src/plugins/hr/test/ts/browser/HrSanityTest.ts | import { ApproxStructure, Log, Pipeline } from '@ephox/agar';
import { UnitTest } from '@ephox/bedrock-client';
import { TinyApis, TinyLoader, TinyUi } from '@ephox/mcagar';
import HrPlugin from 'tinymce/plugins/hr/Plugin';
import SilverTheme from 'tinymce/themes/silver/Theme';
UnitTest.asynctest('browser.tinymce.plu... | import { ApproxStructure } from '@ephox/agar';
import { describe, it } from '@ephox/bedrock-client';
import { TinyAssertions, TinyHooks, TinyUiActions } from '@ephox/mcagar';
import Editor from 'tinymce/core/api/Editor';
import Plugin from 'tinymce/plugins/hr/Plugin';
import Theme from 'tinymce/themes/silver/Theme';
... | Switch hr plugin to use BDD style tests | TINY-6870: Switch hr plugin to use BDD style tests
| TypeScript | mit | tinymce/tinymce,tinymce/tinymce,tinymce/tinymce,TeamupCom/tinymce,TeamupCom/tinymce | ---
+++
@@ -1,34 +1,28 @@
-import { ApproxStructure, Log, Pipeline } from '@ephox/agar';
-import { UnitTest } from '@ephox/bedrock-client';
-import { TinyApis, TinyLoader, TinyUi } from '@ephox/mcagar';
+import { ApproxStructure } from '@ephox/agar';
+import { describe, it } from '@ephox/bedrock-client';
+import { Ti... |
0bcad4e6537924116f203849846f18a7810169d1 | capstone-project/src/main/angular-webapp/src/app/info-window/info-window.component.ts | capstone-project/src/main/angular-webapp/src/app/info-window/info-window.component.ts | import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { MarkerAction } from '../marker-action';
import { } from 'googlemaps';
import { SocialUser } from "angularx-social-login";
import { UserService } from "../user.service";
@Component({
selector: 'app-info-window',
templateUrl: '.... | import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { MarkerAction } from '../marker-action';
import { } from 'googlemaps';
import { SocialUser } from "angularx-social-login";
import { UserService } from "../user.service";
@Component({
selector: 'app-info-window',
templateUrl: '.... | Add idToken as a field in marker submit event | Add idToken as a field in marker submit event
| TypeScript | apache-2.0 | googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020 | ---
+++
@@ -36,7 +36,7 @@
this.animal = animalValue;
this.description = descriptionValue;
this.reporter = reporterValue;
- this.submitEvent.emit({animal: animalValue, description: descriptionValue, reporter: reporterValue})
+ this.submitEvent.emit({animal: animalValue, description: descriptionVal... |
9fedacdef43854a45733842c1c3d9511835f2bf3 | packages/truffle-db/src/loaders/test/index.ts | packages/truffle-db/src/loaders/test/index.ts | import fs from "fs";
import path from "path";
import gql from "graphql-tag";
import { TruffleDB } from "truffle-db";
const fixturesDirectory = path.join(__dirname, "..", "artifacts", "test");
// minimal config
const config = {
contracts_build_directory: path.join(fixturesDirectory, "build"),
contracts_directory... | import fs from "fs";
import path from "path";
import gql from "graphql-tag";
import { TruffleDB } from "truffle-db";
import * as Contracts from "truffle-workflow-compile";
jest.mock("truffle-workflow-compile", () => ({
compile: function(config, callback) {
const magicSquare= require(path.join(__dirname,"..", "arti... | Add mocking of manual compilation to loader test file | Add mocking of manual compilation to loader test file
| TypeScript | mit | ConsenSys/truffle | ---
+++
@@ -1,22 +1,42 @@
import fs from "fs";
import path from "path";
import gql from "graphql-tag";
+import { TruffleDB } from "truffle-db";
+import * as Contracts from "truffle-workflow-compile";
-import { TruffleDB } from "truffle-db";
-
+jest.mock("truffle-workflow-compile", () => ({
+ compile: function(co... |
6ea17dec9b50d79cbb378fcd0e938c837cc7e0e5 | applications/mail/src/app/components/list/ItemLocation.tsx | applications/mail/src/app/components/list/ItemLocation.tsx | import React from 'react';
import { Icon, useFolders } from 'react-components';
import { MailSettings } from 'proton-shared/lib/interfaces';
import { Message } from '../../models/message';
import { getCurrentFolders } from '../../helpers/labels';
interface Props {
message?: Message;
mailSettings: MailSettings... | import React from 'react';
import { Icon, useFolders, Tooltip } from 'react-components';
import { MailSettings } from 'proton-shared/lib/interfaces';
import { Message } from '../../models/message';
import { getCurrentFolders } from '../../helpers/labels';
interface Props {
message?: Message;
mailSettings: Mai... | Use tooltips instead of title for folder icons in element list | [MAILWEB-1149] Use tooltips instead of title for folder icons in element list
| TypeScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | ---
+++
@@ -1,5 +1,5 @@
import React from 'react';
-import { Icon, useFolders } from 'react-components';
+import { Icon, useFolders, Tooltip } from 'react-components';
import { MailSettings } from 'proton-shared/lib/interfaces';
import { Message } from '../../models/message';
@@ -28,9 +28,11 @@
return (
... |
54ca5939bcb293bad8de2db2b077d7af065c8568 | ui/src/dashboards/components/DashboardEmpty.tsx | ui/src/dashboards/components/DashboardEmpty.tsx | import React, {Component} from 'react'
import {Cell} from 'src/types/dashboard'
import {connect} from 'react-redux'
import {bindActionCreators} from 'redux'
import {addDashboardCellAsync} from 'src/dashboards/actions'
import {GRAPH_TYPES} from 'src/dashboards/graphics/graph'
interface Dashboard {
id: string
cells... | import React, {Component} from 'react'
import {Cell} from 'src/types/dashboard'
import {connect} from 'react-redux'
import {bindActionCreators} from 'redux'
import {addDashboardCellAsync} from 'src/dashboards/actions'
import {ErrorHandling} from 'src/shared/decorators/errors'
import {GRAPH_TYPES} from 'src/dashboards/... | Add error handling decorator to component | Add error handling decorator to component
| TypeScript | mit | li-ang/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdb/influxdb,li-ang/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,nooproblem/influxdb,... | ---
+++
@@ -4,6 +4,7 @@
import {bindActionCreators} from 'redux'
import {addDashboardCellAsync} from 'src/dashboards/actions'
+import {ErrorHandling} from 'src/shared/decorators/errors'
import {GRAPH_TYPES} from 'src/dashboards/graphics/graph'
interface Dashboard {
@@ -20,6 +21,7 @@
addDashboardCell: bindA... |
555d0f5c5f31f7f05621f818cd71400d7946225d | handlebars/handlebars.d.ts | handlebars/handlebars.d.ts | // Type definitions for Handlebars 1.0
// Project: http://handlebarsjs.com/
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface HandlebarsStatic {
registerHelper(name: string, fn: Function, inverse?: bool): void;
re... | // Type definitions for Handlebars 1.0
// Project: http://handlebarsjs.com/
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface HandlebarsStatic {
registerHelper(name: string, fn: Function, inverse?: boolean): void;
... | Replace bool with boolean (for TypeScript 0.9.0+) | Replace bool with boolean (for TypeScript 0.9.0+) | TypeScript | mit | YousefED/DefinitelyTyped,Stephanvs/DefinitelyTyped,Chris380/DefinitelyTyped,bkristensen/DefinitelyTyped,zoetrope/DefinitelyTyped,onecentlin/DefinitelyTyped,robl499/DefinitelyTyped,hellopao/DefinitelyTyped,seikichi/DefinitelyTyped,blittle/DefinitelyTyped,QuatroCode/DefinitelyTyped,kanreisa/DefinitelyTyped,forumone/Defin... | ---
+++
@@ -5,7 +5,7 @@
interface HandlebarsStatic {
- registerHelper(name: string, fn: Function, inverse?: bool): void;
+ registerHelper(name: string, fn: Function, inverse?: boolean): void;
registerPartial(name: string, str): void;
K();
createFrame(object); |
77bb25ae1f43becb7573d36f3bef0ef006f3b563 | src/app/initiative-tracker/initiative-tracker.component.ts | src/app/initiative-tracker/initiative-tracker.component.ts | import { Component, ViewChild } from "@angular/core";
import * as _ from "lodash";
import { InitiativeListComponent } from "./initiative-list/initiative-list.component";
import { CreatureInitiative } from "./models/creature-initiative";
@Component({
selector: "dnd-initiative-tracker",
templateUrl: "./initiative-... | import { Component, ViewChild } from "@angular/core";
import * as _ from "lodash";
import { InitiativeListComponent } from "./initiative-list/initiative-list.component";
import { CreatureInitiative } from "./models/creature-initiative";
@Component({
selector: "dnd-initiative-tracker",
templateUrl: "./initiative-... | Fix initiative when first creature is inactive. | Fix initiative when first creature is inactive.
| TypeScript | mit | trwolfe13/dnd-5e-tools,trwolfe13/dnd-5e-tools,trwolfe13/dnd-5e-npc-gen,trwolfe13/dnd-5e-npc-gen,trwolfe13/dnd-5e-tools,trwolfe13/dnd-5e-npc-gen | ---
+++
@@ -22,16 +22,16 @@
}
onNextClick() {
- const creatures = this.initiativeList.creatures;
+ const activeCreatures = this.initiativeList.creatures.filter(c => c.active);
if (!this.currentInitiative) {
- this.currentInitiative = creatures[0].initiative;
+ this.currentInitiative = act... |
49b17dc8e4553ed3d541f10a01a4c812bacaa2cd | src/app/shared/security/auth.service.ts | src/app/shared/security/auth.service.ts | import { Injectable } from '@angular/core';
import { Router } from '@angular/router';
import { Observable, Subject, BehaviorSubject } from 'rxjs/Rx';
import { FirebaseAuth, FirebaseAuthState } from 'angularfire2';
@Injectable()
export class AuthService {
auth$: BehaviorSubject<FirebaseAuthState> = new BehaviorSubjec... | import { Injectable } from '@angular/core';
import { Router } from '@angular/router';
import { Observable, Subject, BehaviorSubject } from 'rxjs/Rx';
import { AngularFire, FirebaseAuthState } from 'angularfire2';
@Injectable()
export class AuthService {
auth$: BehaviorSubject<FirebaseAuthState> = new BehaviorSubject... | Migrate FirebaseAuth to AngularFire only | Migrate FirebaseAuth to AngularFire only
Angularfire 2 updated
| TypeScript | mit | michaelgira23/Pear-Tutoring,michaelgira23/Pear-Tutoring,michaelgira23/Pear-Tutoring | ---
+++
@@ -1,15 +1,15 @@
import { Injectable } from '@angular/core';
import { Router } from '@angular/router';
import { Observable, Subject, BehaviorSubject } from 'rxjs/Rx';
-import { FirebaseAuth, FirebaseAuthState } from 'angularfire2';
+import { AngularFire, FirebaseAuthState } from 'angularfire2';
@Inject... |
20840d43ac29982bb16408e0c6e35183f693d8cd | src/components/ContactDetails/index.tsx | src/components/ContactDetails/index.tsx | import * as React from 'react';
import {Component} from 'react';
import {observer} from 'mobx-react';
import Contact from '../../interfaces/Contact';
import {ProfilePicture} from './ProfilePicture';
@observer
export class ContactDetails extends Component<{selectedContact: Contact}, {}> {
render() {
return (
... | import * as React from 'react';
import {Component} from 'react';
import {observer} from 'mobx-react';
import Contact from '../../interfaces/Contact';
import {ProfilePicture} from './ProfilePicture';
@observer
export class ContactDetails extends Component<{selectedContact: Contact}, {}> {
render() {
const conta... | Handle no contact in ContactDetails | Handle no contact in ContactDetails
| TypeScript | mit | contacts-mvc/mobx-react-typescript,contacts-mvc/mobx-react-typescript,contacts-mvc/mobx-react-typescript | ---
+++
@@ -9,13 +9,19 @@
@observer
export class ContactDetails extends Component<{selectedContact: Contact}, {}> {
render() {
+ const contact = this.props.selectedContact;
+
+ if (!contact) {
+ return <div className="details"></div>
+ }
+
return (
<div className="details">
<he... |
f7c77c678ec0e2018fd000c1305125fe2a1dd4d6 | src/enums/predefined-strategies.enum.ts | src/enums/predefined-strategies.enum.ts | export enum NgxPermissionsPredefinedStrategies {
REMOVE = 'remove',
SHOW = 'show'
} | export enum NgxPermissionsPredefinedStrategies {
REMOVE = <any>'remove',
SHOW = <any>'show'
} | Add eny for fixing build | Add eny for fixing build
| TypeScript | mit | AlexKhymenko/ngx-permissions,AlexKhymenko/ngx-permissions,AlexKhymenko/ngx-permissions | ---
+++
@@ -1,4 +1,4 @@
export enum NgxPermissionsPredefinedStrategies {
- REMOVE = 'remove',
- SHOW = 'show'
+ REMOVE = <any>'remove',
+ SHOW = <any>'show'
} |
ce6b818683bdebbd0e0ea1c2708612ecd8f03594 | src/app/gallery/gallery.module.ts | src/app/gallery/gallery.module.ts | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { SharedModule } from '../shared/shared.module';
import { AlbumComponent } from './album/album.component';
import { AlbumListComponent } from './album-list/album-lis... | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { SharedModule } from '../shared/shared.module';
import { AlbumComponent } from './album/album.component';
import { AlbumListComponent } from './album-list/album-lis... | Fix issue with gallery album component | Fix issue with gallery album component
Having these `album/:name` route before the `album/:name/page/:pagenumber` caused Angular to throw an error in some cases. | TypeScript | apache-2.0 | jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog | ---
+++
@@ -18,8 +18,8 @@
const galleryRoutes: Routes = [
{path: '', component: AlbumComponent, pathMatch: 'full' },
{path: 'albums', component: AlbumListComponent },
+ {path: 'album/:name/page/:page', component: AlbumComponent },
{path: 'album/:name', component: AlbumComponent },
- {path: 'album/:name/pa... |
5295dc83c8ac3893b4a7b85569d04da891874fd0 | app/javascript/retrospring/features/answerbox/subscribe.ts | app/javascript/retrospring/features/answerbox/subscribe.ts | import Rails from '@rails/ujs';
import I18n from 'retrospring/i18n';
import { showNotification, showErrorNotification } from 'utilities/notifications';
export function answerboxSubscribeHandler(event: Event): void {
const button = event.target as HTMLButtonElement;
const id = button.dataset.aId;
let torpedo = 0... | import { post } from '@rails/request.js';
import I18n from 'retrospring/i18n';
import { showNotification, showErrorNotification } from 'utilities/notifications';
export function answerboxSubscribeHandler(event: Event): void {
const button = event.target as HTMLButtonElement;
const id = button.dataset.aId;
let t... | Refactor answer subscribing to use request.js | Refactor answer subscribing 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 I18n from 'retrospring/i18n';
import { showNotification, showErrorNotification } from 'utilities/notifications';
@@ -20,13 +20,15 @@
targetUrl = '/ajax/unsubscribe';
}
- Rails.ajax({
- url: tar... |
107e6b25ae9dfdd17a9c39a9b34c36a5318ae001 | Rnwood.Smtp4dev/ClientApp/components/hubconnectionstatus.ts | Rnwood.Smtp4dev/ClientApp/components/hubconnectionstatus.ts | import Vue from "vue";
import { Component, Prop } from "vue-property-decorator";
import HubConnectionManager from "../HubConnectionManager";
@Component
export default class HubConnectionStatus extends Vue {
constructor() {
super();
}
@Prop({ default: undefined })
connection: HubConnectionMan... | import Vue from "vue";
import { Component, Prop } from "vue-property-decorator";
import HubConnectionManager from "../HubConnectionManager";
@Component
export default class HubConnectionStatus extends Vue {
constructor() {
super();
}
@Prop({ default: undefined })
connection: HubConnectionMan... | Correct status tooltip when autorefresh is connecting. | Correct status tooltip when autorefresh is connecting.
| TypeScript | bsd-3-clause | rnwood/smtp4dev,rnwood/smtp4dev,rnwood/smtp4dev,rnwood/smtp4dev | ---
+++
@@ -19,7 +19,7 @@
buttonTitle(): string {
var errorText = this.connection && this.connection.error ? "\nError: " + this.connection.error.message : "";
- return (this.connection && this.connection.started ? "Auto refresh enabled - Click to disconnect" : "Auto refresh disabled - click to ... |
b9aef3a9ac9cf0ee9f5f4d18cefbe65725e22af9 | types/npm/npm-tests.ts | types/npm/npm-tests.ts | /**
* Test suite created by Maxime LUCE <https://github.com/SomaticIT>
*
* Created by using code samples from https://github.com/npm/npm#using-npm-programmatically.
*/
import npm = require("npm");
npm.load({}, function (er) {
if (er) {
return console.error(er);
}
npm.commands.install(["some", "ar... | /**
* Test suite created by Maxime LUCE <https://github.com/SomaticIT>
*
* Created by using code samples from https://github.com/npm/npm#using-npm-programmatically.
*/
import npm = require("npm");
npm.load({}, function (er) {
if (er) {
return console.error(er);
}
npm.commands.install(["some", "ar... | Add test for generic setter | Add test for generic setter | TypeScript | mit | georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,dsebastien/DefinitelyTyped,markogresak/DefinitelyTyped,borisyankov/DefinitelyTyped,mcliment/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped | ---
+++
@@ -22,4 +22,6 @@
npm.on("log", function (message: string) {
console.log(message);
});
+
+ npm.config.set('audit', false);
}) |
ef69a806aa4150699169e141370231a524c223cd | src/app/chapter-discussion/chapter-discussion.component.ts | src/app/chapter-discussion/chapter-discussion.component.ts | import {Component, Input, OnInit} from '@angular/core'
import {CommentService} from '../comment.service'
import {Comment} from '../../models/comment'
import {AuthenticationService} from '../authentication.service'
@Component({
selector: 'wn-chapter-discussion',
templateUrl: './chapter-discussion.component.html',
... | import {Component, Input, OnInit} from '@angular/core'
import {CommentService} from '../comment.service'
import {Comment} from '../../models/comment'
import {AuthenticationService} from '../authentication.service'
@Component({
selector: 'wn-chapter-discussion',
templateUrl: './chapter-discussion.component.html',
... | Comment section should be expanded when submitting a comment | Comment section should be expanded when submitting a comment
| TypeScript | mit | oleeskild/WebNovel,oleeskild/WebNovel,oleeskild/WebNovel | ---
+++
@@ -25,6 +25,7 @@
addNewComment(comment: Comment) {
this.comments = [comment].concat(this.comments)
+ this.isExpanded = true
}
toggleExpand() { |
b13efe117ff83556e2fa32a8f1af72b939489d87 | WeaveTSJS/src/weavejs/ui/flexbox/BoxProps.tsx | WeaveTSJS/src/weavejs/ui/flexbox/BoxProps.tsx | namespace weavejs.ui.flexbox
{
export interface BoxProps <T> extends React.HTMLProps<T>
{
padded?:boolean;
overflow?:boolean;
}
export class BoxProps<T>
{
static renderBox<T>(props:BoxProps<T>, options:{flexDirection:string, unpaddedClassName:string, paddedClassName:string}):JSX.Element
{
var attribute... | namespace weavejs.ui.flexbox
{
export interface BoxProps <T> extends React.HTMLProps<T>
{
padded?:boolean;
overflow?:boolean;
}
export class BoxProps<T>
{
static renderBox<T>(props:BoxProps<T>, options:{flexDirection:string, unpaddedClassName:string, paddedClassName:string}):JSX.Element
{
var attribute... | Fix for default overflow for FlexBox | Fix for default overflow for FlexBox
| TypeScript | mpl-2.0 | WeaveTeam/WeaveJS,WeaveTeam/WeaveJS,WeaveTeam/WeaveJS,WeaveTeam/WeaveJS | ---
+++
@@ -22,7 +22,7 @@
);
var className:string = classNames(
props.padded ? options.paddedClassName : options.unpaddedClassName,
- {"weave-auto-overflow": props.overflow},
+ {"weave-auto-overflow": !props.overflow},
props.className
);
return <div {...attributes} style={style} classN... |
55120b994ec429b991181e27278e1f435ea78e1d | app/src/ui/diff/hidden-bidi-chars-warning.tsx | app/src/ui/diff/hidden-bidi-chars-warning.tsx | import React from 'react'
import { Octicon } from '../octicons'
import * as OcticonSymbol from '../octicons/octicons.generated'
import { LinkButton } from '../lib/link-button'
export class HiddenBidiCharsWarning extends React.Component {
public render() {
return (
<div className="hidden-bidi-chars-warning"... | import React from 'react'
import { Octicon } from '../octicons'
import * as OcticonSymbol from '../octicons/octicons.generated'
import { LinkButton } from '../lib/link-button'
export class HiddenBidiCharsWarning extends React.Component {
public render() {
return (
<div className="hidden-bidi-chars-warning"... | Make the bidi chars warning diff specific | Make the bidi chars warning diff specific
Co-Authored-By: tidy-dev <1461e01e04d43338bd0e74c1f0f8ac6b8d625527@users.noreply.github.com>
| TypeScript | mit | j-f1/forked-desktop,say25/desktop,desktop/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,desktop/desktop,j-f1/forked-desktop,say25/desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,artivilla/desktop,say25/desktop,artivilla/desktop,shiftkey/desktop,shiftkey/desktop,j-f1/forked-desktop,artivilla/desk... | ---
+++
@@ -8,7 +8,7 @@
return (
<div className="hidden-bidi-chars-warning">
<Octicon symbol={OcticonSymbol.alert} />
- This file contains bidirectional Unicode text that may be interpreted or
+ This diff contains bidirectional Unicode text that may be interpreted or
compil... |
8022362d6e485504c562f068491ec66e2ead0441 | src/services/rating.service.ts | src/services/rating.service.ts | import {Injectable} from "@angular/core";
@Injectable()
export class RatingService{
private p1NewRating: number;
private p2NewRating: number;
private p1RatingChange: number;
private p2RatingChange: number;
calculateRating(rating1: number, rating2: number, score1: number, score2: number){
let K = ... | import {Injectable} from "@angular/core";
@Injectable()
export class RatingService{
private p1NewRating: number;
private p2NewRating: number;
private p1RatingChange: number;
private p2RatingChange: number;
calculateRating(rating1: number, rating2: number, score1: number, score2: number){
let K = ... | Increase K value for Elo rating | Increase K value for Elo rating
| TypeScript | mit | casperchia/foosmate,casperchia/foosmate,casperchia/foosmate | ---
+++
@@ -8,7 +8,7 @@
private p2RatingChange: number;
calculateRating(rating1: number, rating2: number, score1: number, score2: number){
- let K = 32;
+ let K = 50;
let T1 = Math.pow(10, rating1/400);
let T2 = Math.pow(10, rating2/400);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.