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
833ee9ec0195607d5c4f955a57db1f9034acc304
core/src/index/get-fields-to-index.ts
core/src/index/get-fields-to-index.ts
import {Map} from 'tsfun'; import { Category } from '../model/category'; const defaultFieldsToIndex = ['identifier', 'shortDescription']; export function getFieldsToIndex(categoriesMap: Map<Category>, categoryName: string): string[] { return !categoriesMap[categoryName] ? [] : Category.getField...
import { Map } from 'tsfun'; import { Category } from '../model/category'; const defaultFieldsToIndex = ['identifier', 'shortDescription']; export function getFieldsToIndex(categoriesMap: Map<Category>, categoryName: string): string[] { const fields = !categoriesMap[categoryName] ? [] : Categor...
Make sure default fields are always indexed
Make sure default fields are always indexed
TypeScript
apache-2.0
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
--- +++ @@ -1,4 +1,4 @@ -import {Map} from 'tsfun'; +import { Map } from 'tsfun'; import { Category } from '../model/category'; @@ -7,10 +7,10 @@ export function getFieldsToIndex(categoriesMap: Map<Category>, categoryName: string): string[] { - return !categoriesMap[categoryName] + const fields = !cat...
b106e240fe7b741e3398b0ad58958502295ab530
source/lib/course-search/parse-term.ts
source/lib/course-search/parse-term.ts
export function parseTerm(term: string) { const semester = term.slice(-1) const year = term.slice(0, -1) const currentYear = parseInt(year) const nextYear = (currentYear + 1).toString().slice(-2) switch (semester) { case '0': return `Abroad ${currentYear}/${nextYear}` case '1': return `Fall ${currentYear...
export function parseTerm(term: string): string { const semester = term.slice(-1) const year = term.slice(0, -1) const currentYear = parseInt(year) const nextYear = (currentYear + 1).toString().slice(-2) switch (semester) { case '0': return `Abroad ${currentYear}/${nextYear}` case '1': return `Fall ${cur...
Add missing module boundary function return type
l/course-search: Add missing module boundary function return type Signed-off-by: Kristofer Rye <1ed31cfd0b53bc3d1689a6fee6dbfc9507dffd22@gmail.com>
TypeScript
agpl-3.0
StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native
--- +++ @@ -1,4 +1,4 @@ -export function parseTerm(term: string) { +export function parseTerm(term: string): string { const semester = term.slice(-1) const year = term.slice(0, -1) const currentYear = parseInt(year)
53282161b11a88f7e1862224453f372396ea6960
src/app/default-view.component.spec.ts
src/app/default-view.component.spec.ts
import { ComponentFixture, TestBed, async } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { DebugElement } from '@angular/core'; import { DefaultViewComponent } from './default-view.component'; describe('Default View Component', () => { let comp: DefaultView...
import { ComponentFixture, TestBed, async } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { DebugElement } from '@angular/core'; import { DefaultViewComponent } from './default-view.component'; import { HeartButtonComponent } from './heart-button.component'; impor...
Update Default View tests to stub new dependencies
Update Default View tests to stub new dependencies
TypeScript
unlicense
codechaotic/lizard-love-ui,codechaotic/lizard-love-ui,codechaotic/lizard-love-ui
--- +++ @@ -3,6 +3,8 @@ import { DebugElement } from '@angular/core'; import { DefaultViewComponent } from './default-view.component'; +import { HeartButtonComponent } from './heart-button.component'; +import { LizardMessageComponent } from './lizard-message.component'; describe('Default View Component', ()...
ea4808039c22b54cd83f381b5cf701e157522f2f
src/app/pages/login/login.component.ts
src/app/pages/login/login.component.ts
import { Component } from '@angular/core'; import { Router } from '@angular/router'; import { AuthorizationService } from '../../shared/authorization.service'; import { UserService } from '../../shared/user.service'; @Component({ selector: 'login', styleUrls: [ './login.scss' ], templateUrl: './login.html' }) ...
import { Component, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { AuthorizationService } from '../../shared/authorization.service'; import { UserService } from '../../shared/user.service'; @Component({ selector: 'login', styleUrls: [ './login.scss' ], templateUrl: './login...
Add clearing password field on login fail
Add clearing password field on login fail
TypeScript
mit
yusk90/courses-app,yusk90/courses-app,yusk90/courses-app
--- +++ @@ -1,4 +1,4 @@ -import { Component } from '@angular/core'; +import { Component, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { AuthorizationService } from '../../shared/authorization.service'; @@ -36,5 +36,6 @@ private onLoginFail(): void { this.isLoginData...
094c5e0a4d63cae28a8befe61fca5b282481beae
src/app/public/ts/profile.component.ts
src/app/public/ts/profile.component.ts
import { ActivatedRoute } from '@angular/router' import { Component, OnInit, OnDestroy } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Socket } from '../../../services/socketio.service'; import { Title } from '@angular/platform-browser'; import { TranslateService } from '@ngx-transla...
import { ActivatedRoute } from '@angular/router' import { Component, OnInit, OnDestroy } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Socket } from '../../../services/socketio.service'; import { Title } from '@angular/platform-browser'; import { TranslateService } from '@ngx-transla...
Fix a typo in the profile's title
Fix a typo in the profile's title
TypeScript
agpl-3.0
V-Paranoiaque/Ellas-War,V-Paranoiaque/Ellas-War,V-Paranoiaque/Ellas-War,V-Paranoiaque/Ellas-War
--- +++ @@ -34,7 +34,7 @@ this.profile = player; this.subTitle = this.translate.get('Player profile:').subscribe((res: string) => { - this.titleService.setTitle(res+player.username); + this.titleService.setTitle(res+' '+player.username); }); } });
d84140fb87e186637763cbc2949182160e51bd5e
types/koa-bodyparser/koa-bodyparser-tests.ts
types/koa-bodyparser/koa-bodyparser-tests.ts
import * as Koa from "koa"; import bodyParser = require("koa-bodyparser"); const app = new Koa(); app.use(bodyParser({ strict: false })); app.listen(80)
import * as Koa from "koa"; import * as bodyParser from "koa-bodyparser"; const app = new Koa(); app.use(bodyParser({ strict: false })); app.listen(80)
Use same import style for dependencies
Use same import style for dependencies
TypeScript
mit
magny/DefinitelyTyped,dsebastien/DefinitelyTyped,AgentME/DefinitelyTyped,jimthedev/DefinitelyTyped,one-pieces/DefinitelyTyped,zuzusik/DefinitelyTyped,jimthedev/DefinitelyTyped,rolandzwaga/DefinitelyTyped,arusakov/DefinitelyTyped,borisyankov/DefinitelyTyped,mcliment/DefinitelyTyped,AgentME/DefinitelyTyped,AbraaoAlves/De...
--- +++ @@ -1,5 +1,5 @@ import * as Koa from "koa"; -import bodyParser = require("koa-bodyparser"); +import * as bodyParser from "koa-bodyparser"; const app = new Koa();
6e0bdb2c7ade7c96be8357418736fb39986f49fb
app/src/container/Books.tsx
app/src/container/Books.tsx
import * as React from "react"; import { connect } from "react-redux"; import { Redirect } from "react-router-dom"; import { IBook } from "../lib/books"; import "./style/Books.css"; interface IProps { books: IBook[]; signedIn: boolean; } class Books extends React.Component<IProps> { public render() { ...
import * as React from "react"; import { connect } from "react-redux"; import { Redirect } from "react-router-dom"; import { IBook } from "../lib/books"; import Page from "./Page"; import "./style/Books.css"; interface IProps { books: IBook[]; signedIn: boolean; } class Books extends React.Component<IProps> ...
Use Page component in books page
Use Page component in books page
TypeScript
mit
raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d
--- +++ @@ -3,6 +3,7 @@ import { Redirect } from "react-router-dom"; import { IBook } from "../lib/books"; +import Page from "./Page"; import "./style/Books.css"; interface IProps { @@ -12,19 +13,12 @@ class Books extends React.Component<IProps> { public render() { - if (!this.props.signedIn) {...
78d6266254e25101950cadce62ad70f7285ebb3b
src/components/__tests__/Navbar.spec.tsx
src/components/__tests__/Navbar.spec.tsx
import * as React from 'react' import { Button } from '@blueprintjs/core' import { shallow, mount } from 'enzyme' import { INavbarProps, Navbar } from '../Navbar' describe('Navbar', () => { const mockProps: INavbarProps = { isSidebarToggled: true, toggleSidebar: () => {return} } it('renders the correct...
import * as React from 'react' import { Button } from '@blueprintjs/core' import { mount, shallow } from 'enzyme' import { INavbarProps, Navbar } from '../Navbar' describe('Navbar', () => { const toggleSidebar = jest.fn() const mockProps: INavbarProps = { isSidebarToggled: true, toggleSidebar } it('r...
Test toggle sidebar button click
Test toggle sidebar button click
TypeScript
mit
respace-js/respace,respace-js/respace,evansb/respace,evansb/respace,evansb/respace
--- +++ @@ -1,13 +1,14 @@ import * as React from 'react' import { Button } from '@blueprintjs/core' -import { shallow, mount } from 'enzyme' +import { mount, shallow } from 'enzyme' import { INavbarProps, Navbar } from '../Navbar' describe('Navbar', () => { + const toggleSidebar = jest.fn() const mockProp...
ca9a604192c2435c9ae6add938c81a6670fae26d
app/src/ui/lib/bytes.ts
app/src/ui/lib/bytes.ts
import { round } from './round' /** * Number sign display mode */ export const enum Sign { Normal, Forced, } /** * Display bytes in human readable format like: * 23 GiB * -43 B * It's also possible to force sign in order to get the * plus sign in case of positive numbers like: * +23 GiB * -43 B ...
import { round } from './round' /** * Number sign display mode */ export const enum Sign { Normal, Forced, } /** * Display bytes in human readable format like: * 23 GiB * -43 B * It's also possible to force sign in order to get the * plus sign in case of positive numbers like: * +23 GiB * -43 B ...
Use a good ol' regular function
Use a good ol' regular function
TypeScript
mit
shiftkey/desktop,say25/desktop,say25/desktop,shiftkey/desktop,shiftkey/desktop,desktop/desktop,desktop/desktop,artivilla/desktop,kactus-io/kactus,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,desktop/desktop,kactus-io/kactus,say25/desktop,j-f1/forked-desktop,artivilla/desktop,artivilla/desktop,kactus-io/kactus,kac...
--- +++ @@ -17,11 +17,11 @@ * +23 GiB * -43 B */ -export const formatBytes = ( +export function formatBytes( bytes: number, signType: Sign = Sign.Normal, decimals = 0 -) => { +) { if (!Number.isFinite(bytes)) { return 'Unknown' }
bfa7e87bd41973a941c9e4d354062ee498ad6395
packages/skin-database/api/server.ts
packages/skin-database/api/server.ts
// import Sentry from "@sentry/node"; import { createApp } from "./app"; import DiscordEventHandler from "./DiscordEventHandler"; const port = process.env.PORT ? Number(process.env.PORT) : 3001; const handler = new DiscordEventHandler(); // GO! const app = createApp({ eventHandler: (action) => handler.handle(actio...
// import Sentry from "@sentry/node"; import { createApp } from "./app"; import DiscordEventHandler from "./DiscordEventHandler"; const port = process.env.PORT ? Number(process.env.PORT) : 3001; const handler = new DiscordEventHandler(); // GO! const app = createApp({ eventHandler: (action) => handler.handle(actio...
Improve message to include link
Improve message to include link
TypeScript
mit
captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js
--- +++ @@ -14,7 +14,9 @@ logError: (message, context) => console.error(message, context), }, }); -app.listen(port, () => console.log(`Example app listening on port ${port}!`)); +app.listen(port, () => + console.log(`Example app listening on http://localhost:${port}!`) +); // Initialize Sentry after we s...
c4757db1d8e9540e3386d49d9375dde1d1c924c6
src/components/footer.ts
src/components/footer.ts
import Component from 'inferno-component' import h from 'inferno-hyperscript' interface Props { clearCompleted: () => void clearAll: () => void leftCount: number } interface State {} export default class Footer extends Component<Props, State> { leftCountText(count: number): string { if (count === 1) { ...
import Component from 'inferno-component' import h from 'inferno-hyperscript' interface Props { clearCompleted: () => void clearAll: () => void leftCount: number } interface State {} export default class Footer extends Component<Props, State> { leftCountText(count: number): string { if (count === 1) { ...
Fix typo in Footer component
Fix typo in Footer component
TypeScript
mit
y0za/typescript-inferno-todo,y0za/typescript-inferno-todo,y0za/typescript-inferno-todo
--- +++ @@ -21,7 +21,7 @@ return h('div', [ h('span', this.leftCountText(this.props.leftCount)), h('button', { onClick: this.props.clearCompleted }, 'Clear completed'), - h('button', { onClick: this.props.clearAll }, 'Clear lll') + h('button', { onClick: this.props.clearAll }, 'Clear all'...
d1186c2b36645caa2e7b2087acc70f84d27ec6df
server/src/routes/api/v1/index.ts
server/src/routes/api/v1/index.ts
import { Request, Response, Router } from 'express'; import { ErrorResponse } from '../../../common/responses'; import { RouteModule } from '../../RouteModule'; import { tables } from './tables'; export function v1(): RouteModule { const router = Router(); const modules: Array<() => RouteModule> = [ ...
import { Request, Response, Router } from 'express'; import { ErrorResponse } from '../../../common/responses'; import { RouteModule } from '../../RouteModule'; import { tables } from './tables'; export function v1(): RouteModule { const router = Router(); const modules: Array<() => RouteModule> = [ ...
Make sure the user knows why the API is returning a 404
Make sure the user knows why the API is returning a 404
TypeScript
mit
mattbdean/Helium,mattbdean/Helium,mattbdean/Helium,mattbdean/Helium
--- +++ @@ -21,7 +21,7 @@ // client still receives JSON data router.get('/*', (req: Request, res: Response) => { const resp: ErrorResponse = { - message: 'Not found', + message: 'Route not found', input: {} };
659f3133381751a79df39f62a80290e72ca6741f
src/openstack/OpenStackPluginOptionsForm.tsx
src/openstack/OpenStackPluginOptionsForm.tsx
import * as React from 'react'; import { FormContainer, SelectField } from '@waldur/form-react'; import { translate } from '@waldur/i18n'; export const OpenStackPluginOptionsForm = ({ container, locale }) => { const STORAGE_MODE_OPTIONS = React.useMemo( () => [ { label: translate('Fixed — use comm...
import * as React from 'react'; import { FormContainer, SelectField, NumberField } from '@waldur/form-react'; import { translate } from '@waldur/i18n'; export const OpenStackPluginOptionsForm = ({ container }) => { const STORAGE_MODE_OPTIONS = React.useMemo( () => [ { label: translate('Fixed — use...
Introduce snapshot size limit as plugin option for OpenStack offering
Introduce snapshot size limit as plugin option for OpenStack offering [WAL-2936]
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -1,9 +1,9 @@ import * as React from 'react'; -import { FormContainer, SelectField } from '@waldur/form-react'; +import { FormContainer, SelectField, NumberField } from '@waldur/form-react'; import { translate } from '@waldur/i18n'; -export const OpenStackPluginOptionsForm = ({ container, locale }) =>...
ca6bbf13f6d0603ee39b2c07de0dcacaf3842749
demo/app/app.ts
demo/app/app.ts
import "./bundle-config"; import * as application from 'tns-core-modules/application'; import { StoreUpdate, AlertTypesConstant } from "nativescript-store-update"; new StoreUpdate({ notifyNbDaysAfterRelease: 0, majorUpdateAlertType: AlertTypesConstant.OPTION }); application.start({ moduleName: "main-page" });
import "./bundle-config"; import * as application from "tns-core-modules/application"; import { StoreUpdate, AlertTypesConstant } from "nativescript-store-update"; StoreUpdate.init({ notifyNbDaysAfterRelease: 1, majorUpdateAlertType: AlertTypesConstant.OPTION }) application.start({ moduleName: "main-page" });
Update demo use of plugin
Update demo use of plugin
TypeScript
apache-2.0
chronogolf/nativescript-store-update,chronogolf/nativescript-store-update,chronogolf/nativescript-store-update,chronogolf/nativescript-store-update
--- +++ @@ -1,9 +1,9 @@ import "./bundle-config"; -import * as application from 'tns-core-modules/application'; +import * as application from "tns-core-modules/application"; import { StoreUpdate, AlertTypesConstant } from "nativescript-store-update"; -new StoreUpdate({ - notifyNbDaysAfterRelease: 0, +StoreUpdat...
6c3736e705d71d9dd15a81e27bf23b28119e14fd
src/renderer/app/services/player.service.ts
src/renderer/app/services/player.service.ts
import { Injectable } from '@angular/core'; import { Player } from '../models/player.model'; import { BankService } from './bank.service'; @Injectable({ providedIn: 'root' }) export class PlayerService { private _players: Player[] = []; constructor(private _bankService: BankService) { } public get players()...
import { Injectable } from '@angular/core'; import { Player } from '../models/player.model'; import { BankService } from './bank.service'; @Injectable({ providedIn: 'root' }) export class PlayerService { private _players: Player[] = []; constructor(private _bankService: BankService) { } public get players()...
Sort players array on add
Sort players array on add
TypeScript
apache-2.0
luminousuk/CriminalContact,luminousuk/CriminalContact,luminousuk/CriminalContact
--- +++ @@ -19,6 +19,7 @@ const account = this._bankService.OpenAccount(startingBalance); const player = new Player(firstName, lastName, account); this._players.push(player); + this._players.sort((a, b) => a.name.localeCompare(b.name)); return player; }
fd1a375b3f4c9e14bc6a4b19f10b84340b5f488f
app/scripts/modules/amazon/src/serverGroup/configure/wizard/loadBalancers/loadBalancerSelector.component.ts
app/scripts/modules/amazon/src/serverGroup/configure/wizard/loadBalancers/loadBalancerSelector.component.ts
import { IComponentController, IComponentOptions, module } from 'angular'; import { INFRASTRUCTURE_CACHE_SERVICE, InfrastructureCacheService } from '@spinnaker/core'; class LoadBalancerSelectorController implements IComponentController { public command: any; public refreshTime: number; public refreshing = fals...
import { IComponentController, IComponentOptions, module } from 'angular'; import { INFRASTRUCTURE_CACHE_SERVICE, InfrastructureCacheService } from '@spinnaker/core'; class LoadBalancerSelectorController implements IComponentController { public command: any; public refreshTime: number; public refreshing = fals...
Add originl refresh time back to load balancer selector
fix(provider/amazon): Add originl refresh time back to load balancer selector
TypeScript
apache-2.0
spinnaker/deck,kenzanlabs/deck,spinnaker/deck,spinnaker/deck,icfantv/deck,ajordens/deck,icfantv/deck,ajordens/deck,sgarlick987/deck,sgarlick987/deck,kenzanlabs/deck,ajordens/deck,sgarlick987/deck,ajordens/deck,icfantv/deck,kenzanlabs/deck,duftler/deck,sgarlick987/deck,duftler/deck,duftler/deck,icfantv/deck,duftler/deck...
--- +++ @@ -8,7 +8,11 @@ public refreshTime: number; public refreshing = false; - constructor(private awsServerGroupConfigurationService: any, private infrastructureCaches: InfrastructureCacheService) { 'ngInject'; } + constructor(private awsServerGroupConfigurationService: any, private infrastructureCaches...
6c771f69a62e624e559b53b4c9acef4ea8978016
server/couchdb_connector/db_Connection.ts
server/couchdb_connector/db_Connection.ts
/// <reference path="../../typings/meteor/meteor.d.ts" /> declare var process: any; export function getDbVersion() { console.log(HTTP.get(process.env.HF_COUCH_DB).content); }
/// <reference path="../../typings/meteor/meteor.d.ts" /> declare var process: any; export function getDbVersion() { console.log(HTTP.get(process.env.COUCH_URL).content); }
Fix server env variable name.
Fix server env variable name.
TypeScript
apache-2.0
shmakes/hf_callcenter,shmakes/hf_callcenter
--- +++ @@ -2,5 +2,5 @@ declare var process: any; export function getDbVersion() { - console.log(HTTP.get(process.env.HF_COUCH_DB).content); + console.log(HTTP.get(process.env.COUCH_URL).content); }
e8bbd04a3aa012146deaaeac20d681a7f974e170
src/marketplace/resources/list/ResourceActionsButton.tsx
src/marketplace/resources/list/ResourceActionsButton.tsx
import { FunctionComponent } from 'react'; import { ResourceActionsButton as BaseResourceActionsButton } from '@waldur/marketplace/resources/actions/ResourceActionsButton'; import { ActionButtonResource } from '@waldur/resource/actions/ActionButtonResource'; import { Resource } from '../types'; interface ResourceAct...
import { FunctionComponent } from 'react'; import { ResourceActionsButton as BaseResourceActionsButton } from '@waldur/marketplace/resources/actions/ResourceActionsButton'; import { ActionButtonResource } from '@waldur/resource/actions/ActionButtonResource'; import { Resource } from '../types'; interface ResourceAct...
Fix actions button for request-based items in list view.
Fix actions button for request-based items in list view.
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -14,7 +14,7 @@ row, refreshList, }) => - row.scope === null ? ( + row.scope === null || row.offering_type === 'Support.OfferingTemplate' ? ( <BaseResourceActionsButton resource={ {
3afbfd84c640e2f9cdc196fa2744801d34aa6605
components/Draggable.tsx
components/Draggable.tsx
import * as React from 'react' import * as classnames from 'classnames' export interface DraggableProps { coordinates?: { x: number; y: number } pressed?: boolean rotation?: number size?: number style?: React.CSSProperties } interface DraggableStyle {} const defaultStyle: React.CSSProperties = { cursor: ...
import * as React from 'react' import * as classnames from 'classnames' export interface DraggableProps { coordinates?: { x: number; y: number } pressed?: boolean rotation?: number size?: number style?: React.CSSProperties } interface DraggableStyle {} const defaultStyle: React.CSSProperties = { backgrou...
Make the draggable component more generic
Make the draggable component more generic
TypeScript
mit
programbo/react-circular-slider
--- +++ @@ -12,35 +12,28 @@ interface DraggableStyle {} const defaultStyle: React.CSSProperties = { + backgroundColor: 'black', + borderRadius: 20, + boxSizing: 'border-box', cursor: 'pointer', + height: 40, position: 'absolute', transform: 'translate(-50%, -50%)', transition: 'width 300ms ease, h...
493bcdf7769d6b8ad063fc2cb6b1907d41450bb7
src/SyntaxNodes/NsfwBlockNode.ts
src/SyntaxNodes/NsfwBlockNode.ts
import { OutlineSyntaxNode } from './OutlineSyntaxNode' export class NsfwBlockNode { OUTLINE_SYNTAX_NODE(): void { } constructor(public children: OutlineSyntaxNode[] = []) { } protected NSFW_BLOCK_NODE(): void { } }
import { RichOutlineSyntaxNode } from './RichOutlineSyntaxNode' export class NsfwBlockNode extends RichOutlineSyntaxNode { protected NSFW_BLOCK_NODE(): void { } }
Use RichOutlineSyntaxNode for NSFW blocks
Use RichOutlineSyntaxNode for NSFW blocks
TypeScript
mit
start/up,start/up
--- +++ @@ -1,10 +1,6 @@ -import { OutlineSyntaxNode } from './OutlineSyntaxNode' +import { RichOutlineSyntaxNode } from './RichOutlineSyntaxNode' -export class NsfwBlockNode { - OUTLINE_SYNTAX_NODE(): void { } - - constructor(public children: OutlineSyntaxNode[] = []) { } - +export class NsfwBlockNode extends ...
59479ad66c7e9e6817b123177bb1e26fc088d284
skills/index.ts
skills/index.ts
import { Express } from "express"; import * as Alexa from "alexa-app"; // Skills import StagesSkill from "./stages"; import KMSignalRSkill from "./kmsignalr"; import StreamcheckSkill from "./streamcheck"; export default async function configure(server: Express) { const auntieDot = new Alexa.app("auntie-d...
import { Express } from "express"; import * as Alexa from "alexa-app"; // Skills import StagesSkill from "./stages"; import KMSignalRSkill from "./kmsignalr"; import StreamcheckSkill from "./streamcheck"; export default async function configure(server: Express) { const blackbox = new Alexa.app("blackbox"...
Rename auntie-dot skill to blackbox. Auntie Dot doesn't work with Alexa, it fails to make the request.
Rename auntie-dot skill to blackbox. Auntie Dot doesn't work with Alexa, it fails to make the request.
TypeScript
mit
nozzlegear/alexa-skills
--- +++ @@ -7,12 +7,12 @@ import StreamcheckSkill from "./streamcheck"; export default async function configure(server: Express) { - const auntieDot = new Alexa.app("auntie-dot"); + const blackbox = new Alexa.app("blackbox"); const streamcheck = new Alexa.app("streamcheck"); - [StagesSkill, KMSign...
af37e2e7fdab564121f1b0d87f654a6d69af899c
src/utils/rc.ts
src/utils/rc.ts
import rc = require('rc') import extend = require('xtend') import { PROJECT_NAME, REGISTRY_URL } from './config' export interface RcConfig { proxy?: string httpProxy?: string httpsProxy?: string noProxy?: string rejectUnauthorized?: boolean ca?: string | string[] key?: string cert?: string userAgent?...
import rc = require('rc') import extend = require('xtend') import { PROJECT_NAME, REGISTRY_URL } from './config' import { RcConfig } from '../interfaces' export const DEFAULTS = { userAgent: `${PROJECT_NAME}/{typingsVersion} node/{nodeVersion} {platform} {arch}`, registryURL: REGISTRY_URL, defaultSource: 'npm', ...
Use `RcConfig` interface from "interfaces"
Use `RcConfig` interface from "interfaces"
TypeScript
mit
typings/core,typings/core
--- +++ @@ -1,22 +1,7 @@ import rc = require('rc') import extend = require('xtend') import { PROJECT_NAME, REGISTRY_URL } from './config' - -export interface RcConfig { - proxy?: string - httpProxy?: string - httpsProxy?: string - noProxy?: string - rejectUnauthorized?: boolean - ca?: string | string[] - ke...
1e3abe455e88fa41daee4c231e781269f0fa9cda
client/src/app/users/add-user.component.ts
client/src/app/users/add-user.component.ts
import {Component, Inject} from '@angular/core'; import {MatDialogRef, MAT_DIALOG_DATA} from '@angular/material' import {UserListService} from "./user-list.service"; import {User} from "./user"; @Component({ selector: 'add-user.component', templateUrl: 'add-user.component.html', }) export class AddUserCompone...
import {Component, Inject} from '@angular/core'; import {MatDialogRef, MAT_DIALOG_DATA} from '@angular/material' import {User} from "./user"; @Component({ selector: 'add-user.component', templateUrl: 'add-user.component.html', }) export class AddUserComponent { constructor( public dialogRef: MatDia...
Clean out unused pieces in `AddUserComponent`
Clean out unused pieces in `AddUserComponent` There was a lot of cruft that accumulated in `AddUserComponent`, and this cleans that up a bit.
TypeScript
mit
UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601/3601-lab4_mongo
--- +++ @@ -1,23 +1,13 @@ import {Component, Inject} from '@angular/core'; import {MatDialogRef, MAT_DIALOG_DATA} from '@angular/material' -import {UserListService} from "./user-list.service"; import {User} from "./user"; - @Component({ selector: 'add-user.component', templateUrl: 'add-user.component....
4e9b16ff15624cafcdc1921b79adae222230c6f0
js/ThreeInstrumentable.ts
js/ThreeInstrumentable.ts
// Copyright 2021-2022, University of Colorado Boulder /** * Mixin for THREE.Object3D types that handles instrumentation details. * * @author Jonathan Olson <jonathan.olson@colorado.edu> */ import ThreeObject3DPhetioObject from './ThreeObject3DPhetioObject.js'; import mobius from './mobius.js'; import Constructor...
// Copyright 2021-2022, University of Colorado Boulder /** * Mixin for THREE.Object3D types that handles instrumentation details. * * @author Jonathan Olson <jonathan.olson@colorado.edu> */ import ThreeObject3DPhetioObject from './ThreeObject3DPhetioObject.js'; import mobius from './mobius.js'; import Constructor...
Move phet-core general types to /types
Move phet-core general types to /types
TypeScript
mit
phetsims/mobius,phetsims/mobius,phetsims/mobius
--- +++ @@ -8,7 +8,7 @@ import ThreeObject3DPhetioObject from './ThreeObject3DPhetioObject.js'; import mobius from './mobius.js'; -import Constructor from '../../phet-core/js/Constructor.js'; +import Constructor from '../../phet-core/js/types/Constructor.js'; import memoize from '../../phet-core/js/memoize.js'; ...
db6e2cb5bab28a90cf58ed624064c816e848a090
app/src/lib/stores/helpers/pull-request-updater.ts
app/src/lib/stores/helpers/pull-request-updater.ts
import { PullRequestStore } from '../pull-request-store' import { Account } from '../../../models/account' import { fatalError } from '../../fatal-error' import { GitHubRepository } from '../../../models/github-repository' //** Interval to check for pull requests */ const PullRequestInterval = 1000 * 60 * 10 enum Tim...
import { PullRequestStore } from '../pull-request-store' import { Account } from '../../../models/account' import { GitHubRepository } from '../../../models/github-repository' //** Interval to check for pull requests */ const PullRequestInterval = 1000 * 60 * 10 /** * Acts as a service for downloading the latest pul...
Clean up and use setInterval, not setTimeout
Clean up and use setInterval, not setTimeout
TypeScript
mit
say25/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,kactus-io/kactus,shiftkey/desktop,desktop/desktop,artivilla/desktop,say25/desktop,desktop/desktop,kactus-io/kactus,desktop/desktop,artivilla/desktop,shiftkey/desktop,kactus-io/kactus,j-f1/forked-desktop,kactus-io/kactus,j-f1/forked-desktop,artivilla/desk...
--- +++ @@ -1,24 +1,16 @@ import { PullRequestStore } from '../pull-request-store' import { Account } from '../../../models/account' -import { fatalError } from '../../fatal-error' import { GitHubRepository } from '../../../models/github-repository' //** Interval to check for pull requests */ const PullRequest...
6e07d6b34c6292b03ece1565c191932c56b887dd
src/js/View/Components/AppAlerts/AppAlert.tsx
src/js/View/Components/AppAlerts/AppAlert.tsx
import * as React from 'react'; interface IAppAlertProps { appAlert: IAppAlert; }; class AppAlert extends React.Component<IAppAlertProps, any> { render() { return ( <div className={'app-alert ' + 'app-alert--' + this.props.appAlert.status.toLowerCase() +...
import * as React from 'react'; interface IAppAlertProps { appAlert: IAppAlert; }; class AppAlert extends React.Component<IAppAlertProps, any> { render() { return ( <div className={'app-alert ' + 'app-alert--' + this.props.appAlert.status.toLowerCase() +...
Truncate app alerts if they overflow
Truncate app alerts if they overflow
TypeScript
mit
harksys/HawkEye,harksys/HawkEye,harksys/HawkEye
--- +++ @@ -16,7 +16,9 @@ ? ' app-alert--show' : '')}> <div className="app-alert__inner"> - <p>{this.props.appAlert.message}</p> + <p className="truncate"> + {this.props.appAlert.message} + </p> </div...
2a85b1a8d3ef647707b97989b96981e9f1dbb2cf
src/main/webapp/src/app/files/file.resolve.ts
src/main/webapp/src/app/files/file.resolve.ts
import { Injectable } from '@angular/core'; import { Resolve, ActivatedRouteSnapshot } from '@angular/router'; import { Observable } from 'rxjs/Observable'; import { FileHttpService } from '../util/http/file.http.service'; import { FileForm } from '../util/http/config-file.model'; @Injectable() export class FileReso...
import { Injectable } from '@angular/core'; import { Resolve, ActivatedRouteSnapshot } from '@angular/router'; import { Observable } from 'rxjs/Observable'; import { FileHttpService } from '../util/http/file.http.service'; import { FileForm } from '../util/http/config-file.model'; @Injectable() export class FileReso...
Fix missing file content in file detail view.
Fix missing file content in file detail view.
TypeScript
apache-2.0
cinovo/cloudconductor-server,cinovo/cloudconductor-server,cinovo/cloudconductor-server,cinovo/cloudconductor-server,cinovo/cloudconductor-server
--- +++ @@ -19,7 +19,9 @@ if (fileName && fileName.length > 0) { return this.fileHttpService.getFile(fileName).flatMap((file) => { return this.fileHttpService.getFileData(file.name).map((data) => { - return file.toForm(); + const fileForm = file.toForm(); + fileForm.fil...
5039130fc0818ea29ad22710797aee889d5560fc
src/components/gene/index.tsx
src/components/gene/index.tsx
import * as React from "react" import * as Relay from "react-relay" interface Props extends RelayProps, React.HTMLProps<GeneContents> { gene: any } export class GeneContents extends React.Component<Props, null> { render() { return ( <div> {this.props.gene.name} {this.props.gene.mode} ...
import * as React from "react" import * as Relay from "react-relay" import Artworks from "../artwork_grid" import ArtistRow from "./artist_row" const PageSize = 10 interface Props extends RelayProps, React.HTMLProps<GeneContents> { gene: any } export class GeneContents extends React.Component<Props, null> { re...
Add ArtistRow to GeneContents view
Add ArtistRow to GeneContents view
TypeScript
mit
xtina-starr/reaction,artsy/reaction-force,artsy/reaction,xtina-starr/reaction,craigspaeth/reaction,xtina-starr/reaction,artsy/reaction,artsy/reaction-force,craigspaeth/reaction,craigspaeth/reaction,xtina-starr/reaction,artsy/reaction
--- +++ @@ -1,5 +1,10 @@ import * as React from "react" import * as Relay from "react-relay" + +import Artworks from "../artwork_grid" +import ArtistRow from "./artist_row" + +const PageSize = 10 interface Props extends RelayProps, React.HTMLProps<GeneContents> { gene: any @@ -8,21 +13,54 @@ export class Gen...
f7efdc452d0c159ec0f6c5b25186402a5a32b858
src/entry-options-input/entry-options-input.ts
src/entry-options-input/entry-options-input.ts
import {bindable, bindingMode} from 'aurelia-framework'; import {getLogger} from 'aurelia-logging'; const logger = getLogger('EntryOptionsInputComponent'); export class EntryOptionsInput { @bindable({ defaultBindingMode: bindingMode.twoWay }) public value: string; @bindable() public error: string; @bindable() p...
import {bindable, bindingMode} from 'aurelia-framework'; import {getLogger} from 'aurelia-logging'; const logger = getLogger('EntryOptionsInputComponent'); export class EntryOptionsInput { @bindable({ defaultBindingMode: bindingMode.twoWay }) public value: string; @bindable() public error: string; @bindable() p...
Fix MDL did not pick up change in error state in entry options input
Fix MDL did not pick up change in error state in entry options input
TypeScript
mit
Holi0317/bridge-calc,Holi0317/bridge-calc,Holi0317/bridge-calc
--- +++ @@ -15,5 +15,9 @@ return } this._inputEl.setCustomValidity(newValue); + + // Fire input event to force MDL to check validity + const event = new Event('input', {bubbles: true}); + this._inputEl.dispatchEvent(event); } }
523d4d8603ee6ee43f05834d9e03f33b4e7d3256
pages/api/competitions/[id].ts
pages/api/competitions/[id].ts
import { NextApiRequest, NextApiResponse } from "next"; import { DEFAULT_CACHE_TIME } from "common/config"; import { fetchResources, resourcePatterns } from "common/hyena"; export default async (req: NextApiRequest, res: NextApiResponse) => { const { query: { id }, } = req; const [{ data: competition }] = a...
import { NextApiRequest, NextApiResponse } from "next"; import { DEFAULT_CACHE_TIME } from "common/config"; import { fetchResources, resourcePatterns } from "common/hyena"; export default async (req: NextApiRequest, res: NextApiResponse) => { const { query: { id }, } = req; const [{ data: competition }] = a...
Fix api 502 error when competition id is invalid
Fix api 502 error when competition id is invalid
TypeScript
isc
sobstel/golazon,sobstel/golazon,sobstel/golazon
--- +++ @@ -10,8 +10,9 @@ const [{ data: competition }] = await fetchResources([ () => resourcePatterns.competition(id as string), ]); - // @ts-ignore - const seasonId = competition.season["season_id"]; + + // @ts-expect-error + const seasonId = competition?.season["season_id"] ?? null; const [ ...
4f992081cd4ec662bf5f17d4ba028c271d82fdab
app/src/lib/git/format-patch.ts
app/src/lib/git/format-patch.ts
import { git } from './core' import { revRange } from './rev-list' import { Repository } from '../../models/repository' /** * Generate a patch containing the changes associated with this range of commits * * @param repository where to generate path from * @param base starting commit in range * @param head ending ...
import { git } from './core' import { revRange } from './rev-list' import { Repository } from '../../models/repository' /** * Generate a patch containing the changes associated with this range of commits * * @param repository where to generate path from * @param base starting commit in range * @param head ending ...
Revert "vastly improve performance for formatPatch"
Revert "vastly improve performance for formatPatch" This reverts commit 7c1f7285ae347efe7e47caa40f4634b26ac2fece.
TypeScript
mit
shiftkey/desktop,kactus-io/kactus,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,shiftkey/desktop,artivilla/desktop,j-f1/forked-desktop,desktop/desktop,say25/desktop,say25/desktop,artivilla/desktop,desktop/desktop,kactus-io/kactus,j-f1/forked-desktop,desktop/desktop,artivilla/desktop,artivilla/desktop,say25/desktop...
--- +++ @@ -17,7 +17,7 @@ ): Promise<string> { const range = revRange(base, head) const result = await git( - ['diff', '--unified=1', '--minimal', range], + ['format-patch', '--stdout', range], repository.path, 'formatPatch' )
4be7a18bf84d8e08d3abba0b6862205ce475d7e2
tests/__tests__/use-strict.spec.ts
tests/__tests__/use-strict.spec.ts
import { } from 'jest'; import { } from 'node'; import runJest from '../__helpers__/runJest'; describe('use strict', () => { it('should show the error locations for "use strict" violations', () => { const result = runJest('../use-strict', ['--no-cache', '-t', 'Invalid Strict']); const stderr = result.stde...
import { } from 'jest'; import { } from 'node'; import runJest from '../__helpers__/runJest'; describe('use strict', () => { fit('should show the error locations for "use strict" violations', () => { const result = runJest('../use-strict', ['--no-cache', '-t', 'Invalid Strict']); const stderr = result.std...
Update use strict test to only check for line numbers
Update use strict test to only check for line numbers
TypeScript
mit
kulshekhar/ts-jest,kulshekhar/ts-jest
--- +++ @@ -4,13 +4,12 @@ describe('use strict', () => { - it('should show the error locations for "use strict" violations', () => { + fit('should show the error locations for "use strict" violations', () => { const result = runJest('../use-strict', ['--no-cache', '-t', 'Invalid Strict']); const ...
57b5d058a832e0ae1d7cb770cb7e0d0f12523b7c
app/src/ui/lib/link-button.tsx
app/src/ui/lib/link-button.tsx
import * as React from 'react' import { shell } from 'electron' import * as classNames from 'classnames' interface ILinkButtonProps { /** A URI to open on click. */ readonly uri?: string /** A function to call on click. */ readonly onClick?: () => void /** The title of the button. */ readonly children?: ...
import * as React from 'react' import { shell } from 'electron' import * as classNames from 'classnames' interface ILinkButtonProps extends React.HTMLProps<HTMLAnchorElement> { /** A URI to open on click. */ readonly uri?: string /** A function to call on click. */ readonly onClick?: () => void /** The tit...
Allow any props on <LinkButton>s
Allow any props on <LinkButton>s
TypeScript
mit
desktop/desktop,kactus-io/kactus,j-f1/forked-desktop,artivilla/desktop,say25/desktop,desktop/desktop,say25/desktop,shiftkey/desktop,hjobrien/desktop,say25/desktop,shiftkey/desktop,artivilla/desktop,hjobrien/desktop,j-f1/forked-desktop,artivilla/desktop,gengjiawen/desktop,gengjiawen/desktop,kactus-io/kactus,kactus-io/ka...
--- +++ @@ -2,7 +2,7 @@ import { shell } from 'electron' import * as classNames from 'classnames' -interface ILinkButtonProps { +interface ILinkButtonProps extends React.HTMLProps<HTMLAnchorElement> { /** A URI to open on click. */ readonly uri?: string @@ -27,15 +27,10 @@ public render() { const ...
387449fd9e81ef5ee056b2a310c897bbd10e7f06
src/Test/Parsing/RevisionInsertion.ts
src/Test/Parsing/RevisionInsertion.ts
import { expect } from 'chai' import Up from '../../index' import { insideDocumentAndParagraph } from './Helpers' import { PlainText } from '../../SyntaxNodes/PlainText' import { Emphasis } from '../../SyntaxNodes/Emphasis' import { RevisionInsertion } from '../../SyntaxNodes/RevisionInsertion' describe('markup surro...
import { expect } from 'chai' import Up from '../../index' import { insideDocumentAndParagraph } from './Helpers' import { PlainText } from '../../SyntaxNodes/PlainText' import { Emphasis } from '../../SyntaxNodes/Emphasis' import { RevisionInsertion } from '../../SyntaxNodes/RevisionInsertion' describe('Markup surro...
Fix capitalization in test description
Fix capitalization in test description
TypeScript
mit
start/up,start/up
--- +++ @@ -6,7 +6,7 @@ import { RevisionInsertion } from '../../SyntaxNodes/RevisionInsertion' -describe('markup surrounded by 2 plus signs', () => { +describe('Markup surrounded by 2 plus signs', () => { it('is put inside a revision insertion node', () => { expect(Up.toDocument('I like ++to brush++ my ...
5dea827c9e6b0bdcdb8e90913d0aaec4ce41382b
frontend/src/hacking-instructor/challenges/codingChallenges.ts
frontend/src/hacking-instructor/challenges/codingChallenges.ts
/* * Copyright (c) 2014-2021 Bjoern Kimminich & the OWASP Juice Shop contributors. * SPDX-License-Identifier: MIT */ import { waitInMs, waitForElementToGetClicked } from '../helpers/helpers' import { ChallengeInstruction } from '../' export const CodingChallengesInstruction: ChallengeInstruction = { name: 'Cod...
/* * Copyright (c) 2014-2021 Bjoern Kimminich & the OWASP Juice Shop contributors. * SPDX-License-Identifier: MIT */ import { waitInMs, waitForElementToGetClicked } from '../helpers/helpers' import { ChallengeInstruction } from '../' export const CodingChallengesInstruction: ChallengeInstruction = { name: 'Cod...
Fix hint to actual coding challenge launch button
Fix hint to actual coding challenge launch button
TypeScript
mit
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
--- +++ @@ -20,7 +20,7 @@ { text: 'You can launch a Coding Challenge via the `<>`-button. Click the one for the _Score Board_ challenge now.', - fixture: '#Score\\ Board\\.solved', + fixture: '#codingChallengeTutorialButton', unskippable: true, resolved: waitForElementToGe...
1d95aebf61bdbbf4b0c3f537a6e106e8b3bab256
client/Combatant/linkComponentToObservables.tsx
client/Combatant/linkComponentToObservables.tsx
import * as React from "react"; import * as ko from "knockout"; import { noop } from "lodash"; export function linkComponentToObservables(component: React.Component) { let observableSubscription = ko.observable().subscribe(noop); const oldComponentDidMount = component.componentDidMount || noop; component.compone...
import * as React from "react"; import * as ko from "knockout"; import { noop } from "lodash"; export function linkComponentToObservables(component: React.Component) { let observableSubscription = ko.observable().subscribe(noop); const oldComponentDidMount = component.componentDidMount || noop; component.compone...
Update value when subscribed observable changes
Update value when subscribed observable changes
TypeScript
mit
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
--- +++ @@ -22,6 +22,9 @@ const [value, setValue] = React.useState({ current: observable() }); React.useEffect(() => { + //If the observable itself changed, we want to get its current value as part of this useEffect. + setValue({ current: observable() }); + const subscription = observable.subscribe...
778de3293a26f1affd31f87480045f1ec7b6f55e
src/client/index.ts
src/client/index.ts
import * as command from "./command"; import * as request from "./request"; import * as path from "path"; import * as vscode from "vscode"; import * as client from "vscode-languageclient"; export function launch(context: vscode.ExtensionContext): vscode.Disposable { const module = context.asAbsolutePath(path.join("o...
import * as command from "./command"; import * as request from "./request"; import * as path from "path"; import * as vscode from "vscode"; import * as client from "vscode-languageclient"; class ClientWindow implements vscode.Disposable { readonly merlin: vscode.StatusBarItem; constructor() { this.merlin = vsc...
Create a clickable status bar item for merlin
Create a clickable status bar item for merlin
TypeScript
apache-2.0
freebroccolo/vscode-reasonml,freebroccolo/vscode-reasonml
--- +++ @@ -3,6 +3,20 @@ import * as path from "path"; import * as vscode from "vscode"; import * as client from "vscode-languageclient"; + +class ClientWindow implements vscode.Disposable { + readonly merlin: vscode.StatusBarItem; + constructor() { + this.merlin = vscode.window.createStatusBarItem(vscode.Sta...
2f523e21dd213e6b71e66ffd01f9b8f681c8200b
app/core/datastore/index/index-item.ts
app/core/datastore/index/index-item.ts
import {Document} from 'idai-components-2'; export type TypeName = string; export interface IndexItem { id: string; identifier: string } export interface TypeResourceIndexItem extends IndexItem { instances: { [resourceId: string]: TypeName} } /** * @author Daniel de Oliveira * @author Thomas Klein...
import {Document} from 'idai-components-2'; export type TypeName = string; export interface IndexItem { id: string; identifier: string } export interface TypeResourceIndexItem extends IndexItem { instances: { [resourceId: string]: TypeName} } /** * @author Daniel de Oliveira * @author Thomas Klein...
Throw error instead log warning
Throw error instead log warning
TypeScript
apache-2.0
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
--- +++ @@ -27,12 +27,10 @@ public static from(document: Document, showWarnings: boolean = false): IndexItem|undefined { if (!document.resource) { - if (showWarnings) console.warn('no resource, will not index'); - return undefined; + throw Error('illegal argument - doc...
599619020704218391edc7c4c9ec4d19da205369
src/entities/Dam.ts
src/entities/Dam.ts
/** * Dam names avaiable */ export enum DamName { cantareira = 'Cantareira', altoTiete = 'Alto Tietê', guarapiranga = 'Guarapiranga', cotia = 'Cotia', rioGrande = 'Rio Grande', rioClaro = 'Rio Claro', saoLourenco = 'São Lourenço', } /** * Pluviometry is a measure based on millimeters (mm) */ export i...
/** * Dam names avaiable */ export enum DamName { cantareira = 'Cantareira', altoTiete = 'Alto Tietê', guarapiranga = 'Guarapiranga', cotia = 'Cotia', rioGrande = 'Rio Grande', rioClaro = 'Rio Claro', saoLourenco = 'São Lourenço', } /** * Pluviometry is a measure based on millimeters (mm) */ export i...
Change entity implementation to use only interface instead
Change entity implementation to use only interface instead
TypeScript
mit
rafaell-lycan/sabesp-mananciais-api,rafaell-lycan/sabesp-mananciais-api
--- +++ @@ -29,16 +29,9 @@ average: string | number; } -export class Dam { - public name: DamName; - public volume: string; - public variation: string; - public pluviometry: Pluviometry; - - constructor(name: DamName, volume: string, variation: string, pluviometry: Pluviometry) { - this.name = name; - ...
f0676a1012d9ca5b241af311444bb4310cfa321f
src/app/home/top-page/top-page.component.spec.ts
src/app/home/top-page/top-page.component.spec.ts
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { It, Mock } from 'typemoq'; import { TitleService } from '../../shared/title.service'; import { MockTitleService } from '../../shared/mocks/mock-title.service'; import { Fea...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { It, Mock } from 'typemoq'; import { TitleService } from '../../shared/title.service'; import { FeatureToggleService } from '../../shared/feature-toggle.service'; import { ...
Update mock usage for top page component test
Update mock usage for top page component test
TypeScript
apache-2.0
jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog
--- +++ @@ -4,13 +4,14 @@ import { It, Mock } from 'typemoq'; import { TitleService } from '../../shared/title.service'; -import { MockTitleService } from '../../shared/mocks/mock-title.service'; import { FeatureToggleService } from '../../shared/feature-toggle.service'; import { TopPageComponent } from './to...
f1dfdf9d62613db65392c6eac97d4b367f9f9826
packages/platform-express/src/services/PlatformExpressRouter.ts
packages/platform-express/src/services/PlatformExpressRouter.ts
import {InjectorService, PLATFORM_ROUTER_OPTIONS, PlatformHandler, PlatformRouter, PlatformStaticsOptions} from "@tsed/common"; import {Configuration, Inject} from "@tsed/di"; import * as Express from "express"; import {RouterOptions} from "express"; import {staticsMiddleware} from "../middlewares/staticsMiddleware"; ...
import {PLATFORM_ROUTER_OPTIONS, PlatformHandler, PlatformRouter, PlatformStaticsOptions} from "@tsed/common"; import {Configuration, Inject} from "@tsed/di"; import * as Express from "express"; import {RouterOptions} from "express"; import {staticsMiddleware} from "../middlewares/staticsMiddleware"; declare global { ...
Set mergeStatic to true by default for express
fix(platform-express): Set mergeStatic to true by default for express
TypeScript
mit
Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators
--- +++ @@ -1,4 +1,4 @@ -import {InjectorService, PLATFORM_ROUTER_OPTIONS, PlatformHandler, PlatformRouter, PlatformStaticsOptions} from "@tsed/common"; +import {PLATFORM_ROUTER_OPTIONS, PlatformHandler, PlatformRouter, PlatformStaticsOptions} from "@tsed/common"; import {Configuration, Inject} from "@tsed/di"; imp...
ad6b064063cc37f37b2e3fdb23464fe50bcf53f3
server/src/lib/storage/mongo/MongoCollection.ts
server/src/lib/storage/mongo/MongoCollection.ts
import Bluebird = require("bluebird"); import { ICollection } from "../ICollection"; import MongoDB = require("mongodb"); import { IMongoClient } from "../../connectors/mongo/IMongoClient"; export class MongoCollection implements ICollection { private mongoClient: IMongoClient; private collectionName: string; ...
import Bluebird = require("bluebird"); import { ICollection } from "../ICollection"; import MongoDB = require("mongodb"); import { IMongoClient } from "../../connectors/mongo/IMongoClient"; export class MongoCollection implements ICollection { private mongoClient: IMongoClient; private collectionName: string; ...
Fix typing issue when using Dockerfile.dev.
Fix typing issue when using Dockerfile.dev.
TypeScript
mit
clems4ever/authelia,clems4ever/authelia,clems4ever/authelia,clems4ever/two-factor-auth-server,clems4ever/two-factor-auth-server,clems4ever/authelia,clems4ever/authelia
--- +++ @@ -43,7 +43,7 @@ .then((collection) => collection.insert(document)); } - count(query: any): Bluebird<number> { + count(query: any): Bluebird<any> { return this.collection() .then((collection) => collection.count(query)); }
dbdc2e238d7a8665cf9a8acf000c95098caf1c46
src/config.ts
src/config.ts
import $ from 'jquery'; import {TrackingEventHandler, TrackEventType, TrackingData} from './tracking'; import usersessioncookiepersister from './usersessioncookiepersister'; import {UserAgentInfo} from './useragentinfo'; export interface UserSessionPersister { loadUserSession(): string | null; saveUserSession(...
import $ from 'jquery'; import {TrackingEventHandler, TrackEventType, TrackingData} from './tracking'; import usersessioncookiepersister from './usersessioncookiepersister'; import {UserAgentInfo} from './useragentinfo'; export interface UserSessionPersister { loadUserSession(): string | null; saveUserSession(...
Change the default cookie name
Change the default cookie name
TypeScript
mit
trustpilot/skift,trustpilot/skift
--- +++ @@ -37,12 +37,12 @@ })(); const config: SplitTestConfig = { - cookieName: 'trustpilotABTest', + cookieName: 'skiftABTest', globalCondition: () => true, sessionPersister: usersessioncookiepersister, tracking: defaultTrackingEventHandler, userSessionDaysToLive: 3, - uiCondition:...
1e7c91d9624ac5a0667e8a5c90e7e93a5fa54179
Signum.React.Extensions/Authorization/Login/LoginUserControl.tsx
Signum.React.Extensions/Authorization/Login/LoginUserControl.tsx
import * as React from 'react' import { NavDropdown, MenuItem, NavItem } from 'react-bootstrap' import { LinkContainer } from 'react-router-bootstrap' import { AuthMessage, UserEntity } from '../Signum.Entities.Authorization' import * as AuthClient from '../AuthClient' export default class LoginUserControl exte...
import * as React from 'react' import { NavDropdown, MenuItem, NavItem } from 'react-bootstrap' import { LinkContainer } from 'react-router-bootstrap' import { AuthMessage, UserEntity } from '../Signum.Entities.Authorization' import * as AuthClient from '../AuthClient' export default class LoginUserControl exte...
Move Login Classname due to Updates
Move Login Classname due to Updates
TypeScript
mit
signumsoftware/framework,signumsoftware/extensions,MehdyKarimpour/extensions,signumsoftware/framework,AlejandroCano/extensions,signumsoftware/extensions,MehdyKarimpour/extensions,AlejandroCano/extensions
--- +++ @@ -10,7 +10,7 @@ const user = AuthClient.currentUser(); if (!user) - return <LinkContainer to="~/auth/login"><NavItem className="sf-login">{AuthMessage.Login.niceToString() }</NavItem></LinkContainer>; + return <LinkContainer to="~/auth/login" className="sf-login"><...
a34d7e47cc7c79bf7f776ee9a431c7c1037681f7
src/app/bills/address-view.ts
src/app/bills/address-view.ts
export class AddressView { constructor(private readonly address: string) {} get billName() { return this.firstLinesWithoutLastTwo.join(' ').substring(0, 70) } get billAddress() { return this.secondLastLine.substring(0, 70) } get billZip() { return this.zipAndCity[1] } get billCity() { ...
export class AddressView { constructor(private readonly address: string) {} get billName() { return this.firstLinesWithoutLastTwo.join(' ').substring(0, 70) } get billAddress() { return this.secondLastLine.substring(0, 70) } get billZip() { return this.zipAndCity[0] } get billCity() { ...
Fix qr bill zip code
Fix qr bill zip code
TypeScript
mit
lukaselmer/sanhei-bills2,lukaselmer/sanhei-bills2,lukaselmer/sanhei-bills2,lukaselmer/sanhei-bills2
--- +++ @@ -10,7 +10,7 @@ } get billZip() { - return this.zipAndCity[1] + return this.zipAndCity[0] } get billCity() {
f62ad32b33c8850e7c05e5e77e4c3de2011b1504
src/repeat/index.ts
src/repeat/index.ts
import { Server } from "../server"; import { RethinkDB } from "../rethinkdb"; interface IRepeats { [token: string]: { [command: string]: { command: string; period: number; timeout: number; }; }[]; }; export class Repeat { private activeRepeats: IRepeats...
import { Server } from "../server"; import { RethinkDB } from "../rethinkdb"; interface IRepeats { [token: string]: { [command: string]: { command: string; period: number; timeout: number; }; }[]; }; export class Repeat { private activeRepeats: IRepeats...
Add command to repeat packet
Add command to repeat packet
TypeScript
mit
CactusBot/Sepal,CactusDev/Sepal,CactusDev/Sepal
--- +++ @@ -29,6 +29,13 @@ } repeat.period = repeat.period * 1000 + Promise.resolve(this.rethink.getCommand(repeat.command)).then((data: any) => { + if (data != ([] || null || undefined || {})) { + repeat.command = data[0]; + } else { + re...
74d6c37c8bb4e8a7f5e1606ed9655933162d6fb5
src/testing/testing-module.ts
src/testing/testing-module.ts
import * as optional from 'optional'; import { NestContainer } from '@nestjs/core/injector/container'; import { NestModuleMetatype } from '@nestjs/common/interfaces/modules/module-metatype.interface'; import { NestApplication, NestApplicationContext } from '@nestjs/core'; import { INestApplication, INestMicroservice } ...
import * as express from 'express'; import * as optional from 'optional'; import { NestContainer } from '@nestjs/core/injector/container'; import { NestModuleMetatype } from '@nestjs/common/interfaces/modules/module-metatype.interface'; import { NestApplication, NestApplicationContext } from '@nestjs/core'; import { IN...
Create express server if not provided in testing
Create express server if not provided in testing
TypeScript
mit
kamilmysliwiec/nest,kamilmysliwiec/nest
--- +++ @@ -1,3 +1,4 @@ +import * as express from 'express'; import * as optional from 'optional'; import { NestContainer } from '@nestjs/core/injector/container'; import { NestModuleMetatype } from '@nestjs/common/interfaces/modules/module-metatype.interface'; @@ -18,7 +19,7 @@ super(container, scope, contex...
d3804fb98603b766aeb738db4852b2059ab892c0
src/web/views/ChapterView.tsx
src/web/views/ChapterView.tsx
import * as React from 'react'; import * as mobxReact from 'mobx-react'; import * as mio from '../'; @mobxReact.observer export class ChapterView extends React.Component<{vm: mio.ChapterViewModel}> { // TODO: Inline styles like this are pretty bad, eh. render() { return ( <div onClick={e => this._onClick...
import * as React from 'react'; import * as mobxReact from 'mobx-react'; import * as mio from '../'; @mobxReact.observer export class ChapterView extends React.Component<{vm: mio.ChapterViewModel}> { // TODO: Inline styles like this are pretty bad, eh. render() { return ( <div onClick={e => this._onClick...
Fix image positioning to be absolute centered and scale both w/h
[Client] Fix image positioning to be absolute centered and scale both w/h
TypeScript
mit
Deathspike/mangarack.js,MangaRack/mangarack,MangaRack/mangarack,Deathspike/mangarack.js,MangaRack/mangarack,Deathspike/mangarack.js
--- +++ @@ -10,8 +10,12 @@ <div onClick={e => this._onClick(e)} style={{bottom: 0, left: 0, right: 0, position: 'absolute', top: 0}}> <img src={this.props.vm.img} style={{ display: 'block', - height: '100%', - margin: '0 auto' + maxHeight: '100%', + maxWi...
85f91da4638ce52cf76b520972f634f9ee68dbfe
packages/shared/lib/helpers/cookies.ts
packages/shared/lib/helpers/cookies.ts
import isTruthy from './isTruthy'; export const getCookies = (): string[] => { try { return document.cookie.split(';').map((item) => item.trim()); } catch (e) { return []; } }; export const getCookie = (name: string, cookies = document.cookie) => { return `; ${cookies}`.match(`;\\s*${n...
import isTruthy from './isTruthy'; export const getCookies = (): string[] => { try { return document.cookie.split(';').map((item) => item.trim()); } catch (e) { return []; } }; export const getCookie = (name: string, cookies = document.cookie) => { return `; ${cookies}`.match(`;\\s*${n...
Fix variable typo bug for cookie expiration date
Fix variable typo bug for cookie expiration date
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -31,7 +31,7 @@ path, cookieDomain, }: SetCookieArguments) => { - const expirationDate = maybeCookieValue === undefined ? new Date(0).toUTCString() : maybeExpirationDate; + const expirationDate = maybeExpirationDate === undefined ? new Date(0).toUTCString() : maybeExpirationDate; const...
450a63e2e84a41b868b70588f19d76bd481f80a6
src/app/js/component/button/fetch-button.tsx
src/app/js/component/button/fetch-button.tsx
import * as ReactDOM from "react-dom"; import * as React from "react"; import { ComponentsRefs } from "./../../components-refs"; import { Button } from "./button"; export class FetchButton extends Button<{}, {}> { constructor() { super(); this.state = { isFetching: true }; ...
import * as ReactDOM from "react-dom"; import * as React from "react"; import { ComponentsRefs } from "./../../components-refs"; import { Button } from "./button"; export class FetchButton extends Button<{}, FetchButtonState> { constructor() { super(); this.state = { isFetching: fals...
Fix fetch all button behavior
Fix fetch all button behavior
TypeScript
mit
Xstoudi/alduin,Xstoudi/alduin,Xstoudi/alduin
--- +++ @@ -4,13 +4,13 @@ import { ComponentsRefs } from "./../../components-refs"; import { Button } from "./button"; -export class FetchButton extends Button<{}, {}> { +export class FetchButton extends Button<{}, FetchButtonState> { constructor() { super(); this.state = { - ...
a55269774bfcaf9ed3ecbb972715b23ceaf8e2d2
src/rest-api/login/loginAPI.real.ts
src/rest-api/login/loginAPI.real.ts
import { LoginCredentials } from '../../model/login/loginCredentials'; import { LoginResponse } from '../../model/login/loginResponse'; import { loginMockResponses } from './loginMockData'; import { LoginFunction } from './loginAPI.contract'; // TODO: REPLACE WITH REAL CALL TO API REST WHEN READY export const login: L...
import { LoginCredentials } from '../../model/login/loginCredentials'; import { LoginResponse } from '../../model/login/loginResponse'; import { loginMockResponses } from './loginMockData'; import { LoginFunction } from './loginAPI.contract'; export const login: LoginFunction = (loginInfo: LoginCredentials): Promise<L...
Handle success and fail login
Handle success and fail login
TypeScript
mit
MasterLemon2016/LeanMood,Lemoncode/LeanMood,MasterLemon2016/LeanMood,Lemoncode/LeanMood,Lemoncode/LeanMood,MasterLemon2016/LeanMood
--- +++ @@ -3,46 +3,46 @@ import { loginMockResponses } from './loginMockData'; import { LoginFunction } from './loginAPI.contract'; -// TODO: REPLACE WITH REAL CALL TO API REST WHEN READY export const login: LoginFunction = (loginInfo: LoginCredentials): Promise<LoginResponse> => { + return fetch('http://local...
b2d968d8fddf9442a5e15585e61078da811e124b
app/components/renderForQuestions/answerState.ts
app/components/renderForQuestions/answerState.ts
import {Response} from "quill-marking-logic" interface Attempt { response: Response } function getAnswerState(attempt: Attempt|undefined): boolean { if (attempt) { return (!!attempt.response.optimal && attempt.response.author === undefined) } return false } export default getAnswerState;
import {Response} from "quill-marking-logic" interface Attempt { response: Response } function getAnswerState(attempt: Attempt|undefined): boolean { if (attempt) { return (attempt.response.optimal) } return false } export default getAnswerState;
Update logic for feedback status bar color
Update logic for feedback status bar color
TypeScript
agpl-3.0
empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core
--- +++ @@ -6,7 +6,7 @@ function getAnswerState(attempt: Attempt|undefined): boolean { if (attempt) { - return (!!attempt.response.optimal && attempt.response.author === undefined) + return (attempt.response.optimal) } return false }
2dbd2f937546bab81f7e243c728c18a7dfe197b9
test/typescript.ts
test/typescript.ts
import * as merge from '../'; const x = { foo: 'abc', bar: 'def', } const y = { foo: 'cba', bar: 'fed', } const z = { baz: '123', quux: '456', } let merged1 = merge(x, y); let merged2 = merge(x, z); let merged3 = merge.all([ x, y, z ]); merged1.foo; merged1.bar; merged2.foo; merged2.baz; const options1: mer...
import * as merge from '../'; const x = { foo: 'abc', bar: 'def', } const y = { foo: 'cba', bar: 'fed', } const z = { baz: '123', quux: '456', } let merged1 = merge(x, y); let merged2 = merge(x, z); let merged3 = merge.all([ x, y, z ]); merged1.foo; merged1.bar; merged2.foo; merged2.baz; const options1: mer...
Fix another type test issue
Fix another type test issue
TypeScript
mit
KyleAMathews/deepmerge,KyleAMathews/deepmerge
--- +++ @@ -47,4 +47,4 @@ merged1 = merge(x, y, options1); merged2 = merge(x, z, options2); -merged3 = merge([x, y, z], options1); +merged3 = merge.all([x, y, z], options1);
9abfa4c78ce41493bdc0e6da0d812b1d9aa30344
typings/sweetalert.d.ts
typings/sweetalert.d.ts
import swal, { SweetAlert } from "./core"; declare global { const swal: SweetAlert; const sweetAlert: SweetAlert; } export default swal; export as namespace swal;
import { SweetAlert } from "./core"; declare global { const sweetAlert: SweetAlert; } declare const swal: SweetAlert; export default swal; export as namespace swal;
Fix Error to TypeScript Import
Fix Error to TypeScript Import
TypeScript
mit
t4t5/sweetalert,t4t5/sweetalert
--- +++ @@ -1,9 +1,8 @@ -import swal, { SweetAlert } from "./core"; +import { SweetAlert } from "./core"; declare global { - const swal: SweetAlert; const sweetAlert: SweetAlert; } - +declare const swal: SweetAlert; export default swal; export as namespace swal;
daa33469dbcb1f7295cf4070463a77ba06927f11
scripts/index.ts
scripts/index.ts
import 'app.scss'; // styles import 'vendor'; import 'core'; import 'templates-cache.generated'; // generated by grunt 'ngtemplates' task import 'apps'; import 'external-apps'; /* globals __SUPERDESK_CONFIG__: true */ const appConfig = __SUPERDESK_CONFIG__; if (appConfig.features.useTansaProofing) { require('apps...
import 'app.scss'; // styles import 'vendor'; import 'core'; import 'templates-cache.generated'; // generated by grunt 'ngtemplates' task import 'apps'; import 'external-apps'; /* globals __SUPERDESK_CONFIG__: true */ const appConfig = __SUPERDESK_CONFIG__; if (appConfig.features.useTansaProofing) { // tslint:dis...
Disable tslint error for tansa load.
Disable tslint error for tansa load.
TypeScript
agpl-3.0
superdesk/superdesk-client-core,petrjasek/superdesk-client-core,petrjasek/superdesk-client-core,mdhaman/superdesk-client-core,pavlovicnemanja/superdesk-client-core,superdesk/superdesk-client-core,petrjasek/superdesk-client-core,mdhaman/superdesk-client-core,marwoodandrew/superdesk-client-core,pavlovicnemanja/superdesk-...
--- +++ @@ -9,6 +9,7 @@ const appConfig = __SUPERDESK_CONFIG__; if (appConfig.features.useTansaProofing) { + // tslint:disable-next-line:no-var-requires require('apps/tansa'); }
6edee28b4fdfb5ea212d4f2554e587938fcf408d
applications/mail/src/app/components/conversation/TrashWarning.tsx
applications/mail/src/app/components/conversation/TrashWarning.tsx
import React from 'react'; import { c } from 'ttag'; import { InlineLinkButton, Icon } from 'react-components'; interface Props { inTrash: boolean; filter: boolean; onToggle: () => void; } const TrashWarning = ({ inTrash, filter, onToggle }: Props) => { return ( <div className="bordered-contai...
import React from 'react'; import { c } from 'ttag'; import { InlineLinkButton, Icon } from 'react-components'; interface Props { inTrash: boolean; filter: boolean; onToggle: () => void; } const TrashWarning = ({ inTrash, filter, onToggle }: Props) => { return ( <div className="bordered-contai...
Fix [MAILWEB-950] show trashed message not themed
Fix [MAILWEB-950] show trashed message not themed
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -10,7 +10,7 @@ const TrashWarning = ({ inTrash, filter, onToggle }: Props) => { return ( - <div className="bordered-container m0-5 mb1 p1 flex flex-nowrap flex-items-center flex-spacebetween bg-global-light"> + <div className="bordered-container m0-5 mb1 p1 flex flex-nowrap flex-items...
72657c2b94e4a02d4270546506070bacdb8b7bcc
index.ts
index.ts
import { NgModule, ModuleWithProviders, Optional, SkipSelf } from '@angular/core'; import { JwtInterceptor } from './src/jwt.interceptor'; import { JwtHelperService } from './src/jwthelper.service'; import { HTTP_INTERCEPTORS } from '@angular/common/http'; import { JWT_OPTIONS } from './src/jwtoptions.token'; export *...
import { NgModule, ModuleWithProviders, Optional, SkipSelf } from '@angular/core'; import { JwtInterceptor } from './src/jwt.interceptor'; import { JwtHelperService } from './src/jwthelper.service'; import { HTTP_INTERCEPTORS } from '@angular/common/http'; import { JWT_OPTIONS } from './src/jwtoptions.token'; export *...
Allow RegExp whitelist entries in JwtModuleOptions
Allow RegExp whitelist entries in JwtModuleOptions
TypeScript
mit
auth0/angular2-jwt,hoalex/angular2-jwt,auth0/angular2-jwt,auth0/angular2-jwt,hoalex/angular2-jwt
--- +++ @@ -13,7 +13,7 @@ tokenGetter: () => string; headerName?: string; authScheme?: string; - whitelistedDomains?: Array<string>; + whitelistedDomains?: Array<string | RegExp>; throwNoTokenError?: boolean; skipWhenExpired?: boolean; }
410e111071d48bb5c1b0d7c81d65b7c9e139feea
stories/index.tsx
stories/index.tsx
import * as React from 'react' import { storiesOf, action } from '@kadira/storybook' import InputAutocomplete from '../src/InputAutocomplete' const onChange = (ev: React.FormEvent<HTMLInputElement>) => { return action('input onChange')(ev.currentTarget.value) } const autocompleteValues = [ 'utm_source', 'utm_me...
import * as React from 'react' import { storiesOf, action } from '@kadira/storybook' import InputAutocomplete from '../src/InputAutocomplete' const onChange = (ev: React.FormEvent<HTMLInputElement>) => { return action('input onChange')(ev.currentTarget.value) } const autocompleteValues = [ 'utm_source', 'utm_me...
Make storybook test case more correct
Make storybook test case more correct IRL a component state would not be a single string but an object
TypeScript
mit
kevinjhanna/input-autocomplete,kevinjhanna/input-autocomplete
--- +++ @@ -29,15 +29,18 @@ /> )) .add('Controlled input', () => { - let state = '' + const state = { + value: '' + } + const handleOnChange = (ev: React.FormEvent<HTMLInputElement>) => { onChange(ev) - state = ev.currentTarget.value + state.value = ev.currentTarget.val...
d3e6ec9aea81a3a17ab83f0f96afb5ba062d6ce8
src/vue-plugin/vue-plugin.ts
src/vue-plugin/vue-plugin.ts
/* eslint @typescript-eslint/explicit-function-return-type: 0, @typescript-eslint/no-explicit-any: 0 */ import FeathersVuexFind from '../FeathersVuexFind' import FeathersVuexGet from '../FeathersVuexGet' import FeathersVuexFormWrapper from '../FeathersVuexFormWrapper' import FeathersVuexPagination from '../FeathersVuex...
/* eslint @typescript-eslint/explicit-function-return-type: 0, @typescript-eslint/no-explicit-any: 0 */ import FeathersVuexFind from '../FeathersVuexFind' import FeathersVuexGet from '../FeathersVuexGet' import FeathersVuexFormWrapper from '../FeathersVuexFormWrapper' import FeathersVuexInputWrapper from '../FeathersVu...
Add FeathersVuexInputWrapper to the VuePlugin
fix: Add FeathersVuexInputWrapper to the VuePlugin The Form Wrapper was getting registered, properly, but the Input Wrapper was missing.
TypeScript
mit
feathers-plus/feathers-vuex,feathers-plus/feathers-vuex
--- +++ @@ -6,6 +6,7 @@ import FeathersVuexFind from '../FeathersVuexFind' import FeathersVuexGet from '../FeathersVuexGet' import FeathersVuexFormWrapper from '../FeathersVuexFormWrapper' +import FeathersVuexInputWrapper from '../FeathersVuexInputWrapper' import FeathersVuexPagination from '../FeathersVuexPagina...
cdcf4cece0068387269904b0f69af96b5ac43f9f
src/Harvester.ts
src/Harvester.ts
import * as Hmngr from "./HarvesterManager"; export function run(creep: Creep, src: string): void { if (creep.carry.energy! < creep.carryCapacity) { let source = <Source>Game.getObjectById(src); if(creep.harvest(source) == ERR_NOT_IN_RANGE) { creep.moveTo(source); } } else { // TODO: consumer...
import * as Hmngr from "./HarvesterManager"; export function run(creep: Creep, src: string): void { if (creep.memory.harvesting && creep.carry.energy == creep.carryCapacity) { creep.memory.harvesting = false; } else if (!creep.memory.harvesting && creep.carry.energy == 0) { creep.memory.harvesting = true; ...
Make harvesters a little less stupid
Make harvesters a little less stupid
TypeScript
unlicense
lennytmp/screeps,lennytmp/screeps
--- +++ @@ -1,7 +1,12 @@ import * as Hmngr from "./HarvesterManager"; export function run(creep: Creep, src: string): void { - if (creep.carry.energy! < creep.carryCapacity) { + if (creep.memory.harvesting && creep.carry.energy == creep.carryCapacity) { + creep.memory.harvesting = false; + } else if (!creep...
dcf05bafe7086bffe64aa7aa8d1a8dc2e50b413e
ee_tests/src/specs/login.spec.ts
ee_tests/src/specs/login.spec.ts
import { browser, ExpectedConditions as EC, $, $$ } from 'protractor'; import * as support from './support'; import { HomePage } from './page_objects/home.page'; import { LoginPage } from './page_objects/login.page'; // declare let expect:any describe('HomePage', () => { let homePage: HomePage; beforeEach( asyn...
import { browser, ExpectedConditions as EC, $, $$ } from 'protractor'; import * as support from './support'; import { HomePage } from './page_objects/home.page'; import { LoginPage } from './page_objects/login.page'; // declare let expect:any describe('HomePage', () => { let homePage: HomePage; beforeEach( asyn...
Fix await for browser.getTitle() pointed by typescript
Fix await for browser.getTitle() pointed by typescript
TypeScript
apache-2.0
ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test
--- +++ @@ -16,7 +16,7 @@ }); it('shows the title', async () => { - await expect(browser.getTitle()).toEqual('OpenShift.io'); + await expect(await browser.getTitle()).toEqual('OpenShift.io'); }); it('show login button', async () => {
f2ae27e831f611a798c3fb696c4d06b35bb3bb19
modules/food-menu/lib/choose-meal.ts
modules/food-menu/lib/choose-meal.ts
import type {Moment} from 'moment' import type {ProcessedMealType} from '../types' import type {FilterType} from '@frogpond/filter' import {findMeal} from './find-menu' export function chooseMeal( meals: ProcessedMealType[], filters: FilterType[], now: Moment, ): ProcessedMealType { const mealChooserFilter: Filter...
import type {Moment} from 'moment' import type {ProcessedMealType} from '../types' import type {FilterType, PickerType} from '@frogpond/filter' import {findMeal} from './find-menu' export function chooseMeal( meals: ProcessedMealType[], filters: FilterType[], now: Moment, ): ProcessedMealType { let mealChooserFilt...
Add some type annotations to help TypeScript figure it out
m/food-menu: Add some type annotations to help TypeScript figure it out Signed-off-by: Kristofer Rye <1ed31cfd0b53bc3d1689a6fee6dbfc9507dffd22@gmail.com>
TypeScript
agpl-3.0
StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native
--- +++ @@ -1,6 +1,6 @@ import type {Moment} from 'moment' import type {ProcessedMealType} from '../types' -import type {FilterType} from '@frogpond/filter' +import type {FilterType, PickerType} from '@frogpond/filter' import {findMeal} from './find-menu' export function chooseMeal( @@ -8,11 +8,11 @@ filters:...
52f54b2747565dcb45c8126e513e676b7d2a5133
generators/component/templates/_component.spec.ts
generators/component/templates/_component.spec.ts
/* beautify ignore:start */ import { it, inject, injectAsync, beforeEachProviders, TestComponentBuilder } from 'angular2/testing'; import {<%=componentnameClass%>Component} from './<%=componentnameFile%>.component.ts'; /* beautify ignore:end */ describe('Component: <%=componentnameClass%>Component', () => { l...
/* beautify ignore:start */ import { it, //inject, injectAsync, beforeEachProviders, TestComponentBuilder } from 'angular2/testing'; import {<%=componentnameClass%>Component} from './<%=componentnameFile%>.component.ts'; /* beautify ignore:end */ describe('Component: <%=componentnameClass%>Component', () => { ...
Revert unit test for component
fix(component): Revert unit test for component
TypeScript
mit
mcfly-io/generator-mcfly-ng2,mcfly-io/generator-mcfly-ng2,mcfly-io/generator-mcfly-ng2
--- +++ @@ -1,7 +1,7 @@ /* beautify ignore:start */ import { it, - inject, + //inject, injectAsync, beforeEachProviders, TestComponentBuilder @@ -13,21 +13,15 @@ let builder; beforeEachProviders(() => []); - beforeEach(inject([TestComponentBuilder], (tcb) => { - builder = tcb; + it(...
b319125165f07861c71835a26e85981798c119e3
src/ui/RendererUI.ts
src/ui/RendererUI.ts
/// <reference path="../../typings/threejs/three.d.ts" /> import * as THREE from "three"; export class RendererUI { private renderer: THREE.WebGLRenderer; private camera: THREE.PerspectiveCamera; private scene: THREE.Scene; constructor (container: HTMLElement) { this.renderer = new THREE.WebG...
/// <reference path="../../typings/threejs/three.d.ts" /> import * as THREE from "three"; import {Node} from "../Graph"; import {IActivatableUI} from "../UI"; export class RendererUI implements IActivatableUI { public graphSupport: boolean = true; private renderer: THREE.WebGLRenderer; private camera: TH...
Implement activatable interface in renderer.
Implement activatable interface in renderer.
TypeScript
mit
mapillary/mapillary-js,mapillary/mapillary-js
--- +++ @@ -1,8 +1,12 @@ /// <reference path="../../typings/threejs/three.d.ts" /> import * as THREE from "three"; +import {Node} from "../Graph"; +import {IActivatableUI} from "../UI"; -export class RendererUI { +export class RendererUI implements IActivatableUI { + public graphSupport: boolean = true; + ...
bd89862edeeebaa97adf1a0d85f16a4bdd0f916b
src/ILogger.ts
src/ILogger.ts
import { IBuildLogMessage } from './IBuildLogMessage'; export interface ILogger { Error(logMessageBuilder: (b: IBuildLogMessage) => void, method?: string): void; Warn(logMessageBuilder: (b: IBuildLogMessage) => void, method?: string): void; Debug(logMessageBuilder: (b: IBuildLogMessage) => void, method?: s...
import { IBuildLogMessage } from './IBuildLogMessage'; export interface ILogger { error(logMessageBuilder: (b: IBuildLogMessage) => void, method?: string): void; warn(logMessageBuilder: (b: IBuildLogMessage) => void, method?: string): void; debug(logMessageBuilder: (b: IBuildLogMessage) => void, method?: s...
Change interface to lowercase methods
Change interface to lowercase methods
TypeScript
mit
Supercide/loxium,Supercide/loxium
--- +++ @@ -1,9 +1,9 @@ import { IBuildLogMessage } from './IBuildLogMessage'; export interface ILogger { - Error(logMessageBuilder: (b: IBuildLogMessage) => void, method?: string): void; - Warn(logMessageBuilder: (b: IBuildLogMessage) => void, method?: string): void; - Debug(logMessageBuilder: (b: IBuil...
96a244a317040bde13786e694b8cf8e174d55011
src/app/core/filter.service.ts
src/app/core/filter.service.ts
import { Injectable } from '@angular/core'; @Injectable() export class FilterService { search(array: any[], query: string) { let lQuery = query.toLowerCase(); if (!query) { return array; } else if (array) { let filteredArray = array.filter(item => { for (let key in item) { ...
import { Injectable } from '@angular/core'; @Injectable() export class FilterService { search(array: any[], query: string) { let lQuery = query.toLowerCase(); if (!query) { return array; } else if (array) { let filteredArray = array.filter(item => { for (let key in item) { ...
Remove let in for in
Remove let in for in
TypeScript
mit
auth0-blog/ng2-dinos,kmaida/ng2-dinos,kmaida/ng2-dinos,kmaida/ng2-dinos,auth0-blog/ng2-dinos,auth0-blog/ng2-dinos
--- +++ @@ -10,9 +10,7 @@ } else if (array) { let filteredArray = array.filter(item => { for (let key in item) { - let value = item[key]; - - if ((typeof value === 'string') && (value.toLowerCase().indexOf(lQuery) !== -1)) { + if ((typeof item[key] === 'string') && (ite...
0633e8ff5447d0718ed6a7b6866c3fbd7241540b
examples/sparklineDemo.ts
examples/sparklineDemo.ts
///<reference path="../lib/d3.d.ts" /> ///<reference path="../src/table.ts" /> ///<reference path="../src/renderer.ts" /> ///<reference path="../src/interaction.ts" /> ///<reference path="../src/labelComponent.ts" /> ///<reference path="../src/axis.ts" /> ///<reference path="exampleUtil.ts" /> if ((<any> window).demo...
///<reference path="../lib/d3.d.ts" /> ///<reference path="../src/table.ts" /> ///<reference path="../src/renderer.ts" /> ///<reference path="../src/interaction.ts" /> ///<reference path="../src/labelComponent.ts" /> ///<reference path="../src/axis.ts" /> ///<reference path="exampleUtil.ts" /> if ((<any> window).demo...
Add coordinators to the sparkline demo
Add coordinators to the sparkline demo
TypeScript
mit
gdseller/plottable,NextTuesday/plottable,RobertoMalatesta/plottable,danmane/plottable,palantir/plottable,jacqt/plottable,iobeam/plottable,alyssaq/plottable,palantir/plottable,palantir/plottable,palantir/plottable,NextTuesday/plottable,jacqt/plottable,iobeam/plottable,iobeam/plottable,gdseller/plottable,softwords/plotta...
--- +++ @@ -26,6 +26,11 @@ var chart = new Table([r1, r2, r3]); chart.xMargin = 10; chart.yMargin = 10; + +var brushZoom = new BrushZoomInteraction(sparkline, xScale, ySpark); +var zoomCoordinator = new ScaleDomainCoordinator([yScale, ySpark]); + + var svg = d3.select("#table"); chart.anchor(svg); chart.compute...
be6c8ec0465ab26bc616f2ae11134310dacefb90
src/Parsing/Inline/Token.ts
src/Parsing/Inline/Token.ts
import { TextConsumer } from '../TextConsumer' export enum TokenMeaning { PlainText, EmphasisStart, EmphasisEnd, StressStart, StressEnd, InlineCode, RevisionDeletionStart, RevisionDeletionEnd, RevisionInserionStart, RevisionInsertionEnd, SpoilerStart, SpoilerEnd, InlineAsideStart, InlineAsi...
import { TextConsumer } from '../TextConsumer' export enum TokenMeaning { PlainText, EmphasisStart, EmphasisEnd, StressStart, StressEnd, InlineCode, RevisionDeletionStart, RevisionDeletionEnd, RevisionInserionStart, RevisionInsertionEnd, SpoilerStart, SpoilerEnd, InlineAsideStart, InlineAsi...
Remove special token meanings for stress+emphasis
Remove special token meanings for stress+emphasis
TypeScript
mit
start/up,start/up
--- +++ @@ -16,9 +16,7 @@ InlineAsideStart, InlineAsideEnd, LinkStart, - LinkUrlAndLinkEnd, - EmphasisStartAndStressStart, - EmphasisEndAndStressEnd + LinkUrlAndLinkEnd } export class Token {
0318818d4f5697d5906ce146631f35ef4cf805c3
demo/src/app/components/home.component.ts
demo/src/app/components/home.component.ts
import {Component} from '@angular/core'; import {IOption} from 'ng-select'; import {OptionService} from '../services/option.service'; @Component({ selector: 'home', templateUrl: './home.component.html' }) export class Home { version: string = '1.0.0-rc.1'; countries: Array<IOption> = this.optionServi...
import {Component} from '@angular/core'; import {IOption} from 'ng-select'; import {OptionService} from '../services/option.service'; @Component({ selector: 'home', templateUrl: './home.component.html' }) export class Home { version: string = '1.0.0-rc.2'; countries: Array<IOption> = this.optionServi...
Update version on demo site home page.
Update version on demo site home page.
TypeScript
isc
basvandenberg/ng-select,basvandenberg/angular2-select,basvandenberg/ng-select,basvandenberg/angular2-select,benelliott/angular2-select,basvandenberg/angular2-select,benelliott/angular2-select,benelliott/angular2-select,basvandenberg/ng-select,basvandenberg/ng-select,benelliott/angular2-select
--- +++ @@ -8,7 +8,7 @@ }) export class Home { - version: string = '1.0.0-rc.1'; + version: string = '1.0.0-rc.2'; countries: Array<IOption> = this.optionService.getCountries(); singleSelectValue: string = 'NL';
1ea52564139ce2652c8fca6ba21899d826f336a5
server/src/models/base.model.ts
server/src/models/base.model.ts
import { BaseEntity, Column, CreateDateColumn, Entity, Generated, PrimaryGeneratedColumn, UpdateDateColumn, } from 'typeorm'; @Entity() export class BaseModel extends BaseEntity { public static async deleteAll(): Promise<void> { await this.createQueryBuilder() .dele...
import { BaseEntity, Column, CreateDateColumn, Entity, Generated, PrimaryGeneratedColumn, UpdateDateColumn, } from 'typeorm'; @Entity() export class BaseModel extends BaseEntity { public static async deleteAll(): Promise<void> { await this.createQueryBuilder() .dele...
Hide createdOn/updatedOn columns by default
Hide createdOn/updatedOn columns by default
TypeScript
mit
Ionaru/EVE-Track,Ionaru/EVE-Track,Ionaru/EVE-Track
--- +++ @@ -25,9 +25,13 @@ @Generated('uuid') public uuid!: string; - @CreateDateColumn() + @CreateDateColumn({ + select: false, + }) public createdOn!: Date; - @UpdateDateColumn() + @UpdateDateColumn({ + select: false, + }) public updatedOn!: Date; }
ae30ebc0bb8863c5788135c3407295462c783df6
ts/dashboard/properties.ts
ts/dashboard/properties.ts
/* * Register a bunch of editable properties that are used by many * dashboard items. */ ts.properties.register([ { name: 'query', category: 'base', template: '{{item.query.name}}', edit_options: { type: 'select', source: function() { var queries = ds.manager.current.dashbo...
/* * Register a bunch of editable properties that are used by many * dashboard items. */ ts.properties.register([ { name: 'query', category: 'base', template: '{{item.query.name}}', edit_options: { type: 'select', source: function() { var queries = ds.manager.current.dashbo...
Fix setting queries in the editor
Fix setting queries in the editor
TypeScript
apache-2.0
jmptrader/tessera,urbanairship/tessera,jmptrader/tessera,Slach/tessera,section-io/tessera,aalpern/tessera,tessera-metrics/tessera,aalpern/tessera,tessera-metrics/tessera,Slach/tessera,urbanairship/tessera,jmptrader/tessera,section-io/tessera,aalpern/tessera,urbanairship/tessera,jmptrader/tessera,aalpern/tessera,Slach/t...
--- +++ @@ -18,6 +18,9 @@ }, value: function(item) { return item.query ? item.query.name : undefined + }, + update: function(item, value) { + item.set_query(value) } } },
835b2f4dbd0828fd6f2383a15909a922fb570551
app/app.module.ts
app/app.module.ts
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms' import { AppComponent } from './app.component'; import { HeroDetailComponent } from './hero-detail.component'; @NgModule({ imports: [ BrowserModule, Forms...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms' import { AppComponent } from './app.component'; import { HeroDetailComponent } from './hero-detail.component'; import { HeroesComponent } from './heroes.comp...
Add the supporting import statements for AppComponent
Add the supporting import statements for AppComponent
TypeScript
mit
amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes
--- +++ @@ -1,12 +1,17 @@ import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms' + import { AppComponent } from './app.component'; import { HeroDetailComponent } from './hero-detail.component'; +import { Heroes...
114e1bd93a84b5e2ee7ac91e7304f91860490fbd
.github/actions/issue_template_bot/index.ts
.github/actions/issue_template_bot/index.ts
import * as core from "@actions/core"; import * as github from "@actions/github"; async function run() { console.log("START"); console.log(github.context); if (github.context.eventName !== "issue") { core.setFailed("Can only run on issues!"); return; } const payload = github.contex...
import * as core from "@actions/core"; import * as github from "@actions/github"; async function run() { core.info("START"); core.info(github.context.eventName); if (github.context.eventName !== "issue") { core.setFailed("Can only run on issues!"); return; } const payload = github....
Use core api for console logs
Use core api for console logs
TypeScript
mit
AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication...
--- +++ @@ -2,8 +2,8 @@ import * as github from "@actions/github"; async function run() { - console.log("START"); - console.log(github.context); + core.info("START"); + core.info(github.context.eventName); if (github.context.eventName !== "issue") { core.setFailed("Can only run on issues...
2d7c1ebb4e3e69ae87fb73bded26c5a7a1ef1fb3
src/examples/minimal-example.ts
src/examples/minimal-example.ts
/* Simplest Rimu TypeScript application. npm install rimu # Install Rimu module. tsc --module commonjs minimal-example.ts # Compile example. node minimal-example.js # Run example. */ // Use this in a nodejs application. // Compiles using rimu.d.ts typings from rimu...
/* Simplest Rimu TypeScript application. npm install rimu # Install Rimu module. tsc --module commonjs minimal-example.ts # Compile example. node minimal-example.js # Run example. */ import * as rimu from 'rimu' console.log(rimu.render('Hello *Rimu*!', {safeMode: ...
Simplify minimal example and use import instead or require.
doc: Simplify minimal example and use import instead or require.
TypeScript
mit
srackham/rimu
--- +++ @@ -7,15 +7,7 @@ */ -// Use this in a nodejs application. -// Compiles using rimu.d.ts typings from rimu npm package. +import * as rimu from 'rimu' -import Rimu = require('rimu'); +console.log(rimu.render('Hello *Rimu*!', {safeMode: 1})) -// Use this in a generic application. -// Compiles using rimu...
61abb3fe0c758eb9b9f92630e4ae2f15d2ef01d2
src/app/components/app-header.ts
src/app/components/app-header.ts
import {ChangeDetectionStrategy, Component, EventEmitter, Input, Output} from '@angular/core'; @Component({ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-header', template: ` <nav class="navbar navbar-default"> <div class="container"> <a href="/orders" ...
import {ChangeDetectionStrategy, Component, EventEmitter, Input, Output} from '@angular/core'; @Component({ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-header', template: ` <nav class="navbar navbar-default"> <div class="container-fluid"> <div class="...
Make collasible navbar for mobile
Make collasible navbar for mobile
TypeScript
mit
tchen10/bbrigade,tchen10/bbrigade,tchen10/bbrigade
--- +++ @@ -5,8 +5,17 @@ selector: 'app-header', template: ` <nav class="navbar navbar-default"> - <div class="container"> - <a href="/orders" class="navbar-brand">Bibille Brigade</a> + <div class="container-fluid"> + <div class="navbar-header"> +...
dd7cf273e254d665ae591582b6760102bf0a9358
packages/swagger/src/interfaces/ISwaggerResponses.ts
packages/swagger/src/interfaces/ISwaggerResponses.ts
import {Type} from "@tsed/core"; import {Header} from "swagger-schema-official"; export interface ISwaggerResponses { /** * Use IResponseOptions.type instead of * @deprecated */ use?: Type<any>; type?: Type<any>; collection?: Type<any>; description?: string; examples?: {[exampleName: string]: stri...
import {Type} from "@tsed/core"; import {Header, Schema} from "swagger-schema-official"; export interface ISwaggerResponses { /** * Use IResponseOptions.type instead of * @deprecated */ use?: Type<any>; type?: Type<any>; collection?: Type<any>; description?: string; examples?: {[exampleName: strin...
Add schema on ISwaggerResponse interface
fix(swagger): Add schema on ISwaggerResponse interface Closes: #739
TypeScript
mit
Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators
--- +++ @@ -1,5 +1,5 @@ import {Type} from "@tsed/core"; -import {Header} from "swagger-schema-official"; +import {Header, Schema} from "swagger-schema-official"; export interface ISwaggerResponses { /** @@ -12,4 +12,5 @@ description?: string; examples?: {[exampleName: string]: string}; headers?: {[he...
5b738d79b62f8755a39ed088b1a3d4877ee6a0e0
schedules_web/src/components/Header.tsx
schedules_web/src/components/Header.tsx
import * as React from 'react'; import { Col, Row } from 'reactstrap'; require('../css/iconbadge.css'); const Header = () => ( <div> <Row className="justify-content-end my-5 px-3"> <span className="fa-stack fa-3x has-badge" data-count="0"> <i className="fa fas fa-shopping-bag f...
import * as React from 'react'; import { Col, Row } from 'reactstrap'; require('../css/iconbadge.css'); const Header = () => ( <div> {/* TODO Extract into its own components with state management. */} <Row className="justify-content-end my-5 px-3"> <span className="fa-stack fa-3x has-b...
Add note about icon badge
Add note about icon badge - stateful component coming soon
TypeScript
apache-2.0
srct/schedules,srct/schedules,srct/schedules
--- +++ @@ -5,6 +5,7 @@ const Header = () => ( <div> + {/* TODO Extract into its own components with state management. */} <Row className="justify-content-end my-5 px-3"> <span className="fa-stack fa-3x has-badge" data-count="0"> <i className="fa fas fa-shopping-b...
746450b0fb50fcea67d9d058b202f60443367aed
src/SyntaxNodes/UnorderedListNode.ts
src/SyntaxNodes/UnorderedListNode.ts
import { OutlineSyntaxNode } from './OutlineSyntaxNode' export class UnorderedListNode implements OutlineSyntaxNode { constructor(public items: UnorderedListNode.Item[]) { } OUTLINE_SYNTAX_NODE(): void { } } export module UnorderedListNode { export class Item { constructor(public children: OutlineSyntax...
import { OutlineSyntaxNode } from './OutlineSyntaxNode' import { OutlineSyntaxNodeContainer } from './OutlineSyntaxNodeContainer' export class UnorderedListNode implements OutlineSyntaxNode { constructor(public items: UnorderedListNode.Item[]) { } OUTLINE_SYNTAX_NODE(): void { } } export module UnorderedList...
Make unordered list item extend outline container
Make unordered list item extend outline container
TypeScript
mit
start/up,start/up
--- +++ @@ -1,4 +1,5 @@ import { OutlineSyntaxNode } from './OutlineSyntaxNode' +import { OutlineSyntaxNodeContainer } from './OutlineSyntaxNodeContainer' export class UnorderedListNode implements OutlineSyntaxNode { @@ -7,10 +8,9 @@ OUTLINE_SYNTAX_NODE(): void { } } + export module UnorderedListNode { -...
9071ad4dcd5835dd550aaa4af23faea0b95c02cd
src/app/shared/services/auth.service.ts
src/app/shared/services/auth.service.ts
import {Injectable} from '@angular/core'; import {CanActivate, Router} from '@angular/router'; import {JwtHelperService} from '@auth0/angular-jwt'; import {ProfileService} from '@shared/services/profile.service'; @Injectable() export class AuthService implements CanActivate { helper = new JwtHelperService(); ...
import {Injectable} from '@angular/core'; import {CanActivate, Router} from '@angular/router'; import {JwtHelperService} from '@auth0/angular-jwt'; import {ProfileService} from '@shared/services/profile.service'; @Injectable() export class AuthService implements CanActivate { helper = new JwtHelperService(); ...
Fix login on old system
Fix login on old system
TypeScript
unknown
BD2K-DDI/ddi-web-app,OmicsDI/ddi-web-app,OmicsDI/ddi-web-app,BD2K-DDI/ddi-web-app,OmicsDI/ddi-web-app
--- +++ @@ -17,11 +17,11 @@ const expired = this.helper.decodeToken(token).expires; const isNotExpired = new Date().getMilliseconds() < expired; let profile = this.profileService.getProfileFromLocal(); - if (isNotExpired && profile != null && profile.userId == null) {...
dbfcfb6c300e2d885dd581387b75efd334aef075
ui/common/src/wakeLock.ts
ui/common/src/wakeLock.ts
const supported: boolean = 'wakeLock' in navigator; let sentinel: WakeLockSentinel | null = null; export const request = () => { if (supported) { navigator.wakeLock .request('screen') .then((response: WakeLockSentinel) => { sentinel = response; }) .catch((error: Error) => { ...
const supported: boolean = 'wakeLock' in navigator; let shouldLock: boolean = false; let sentinel: WakeLockSentinel; export const request = () => { if (supported) { navigator.wakeLock .request('screen') .then((response: WakeLockSentinel) => { shouldLock = true; sentinel = response; ...
Use separate var to keep track of persistence
Use separate var to keep track of persistence
TypeScript
agpl-3.0
luanlv/lila,luanlv/lila,luanlv/lila,arex1337/lila,arex1337/lila,arex1337/lila,luanlv/lila,arex1337/lila,luanlv/lila,arex1337/lila,arex1337/lila,arex1337/lila,luanlv/lila,luanlv/lila
--- +++ @@ -1,11 +1,13 @@ const supported: boolean = 'wakeLock' in navigator; -let sentinel: WakeLockSentinel | null = null; +let shouldLock: boolean = false; +let sentinel: WakeLockSentinel; export const request = () => { if (supported) { navigator.wakeLock .request('screen') .then((respons...
385fe9873902d4203f084dd8a8da6f8869156b6e
web-interface/web-interface-client/src/main/ts/services-list.component.ts
web-interface/web-interface-client/src/main/ts/services-list.component.ts
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { Model, Service } from './model'; import { ModelService } from './model.service'; @Component({ selector: 'services-list', template: `<div class="col-md-3"> <div class="panel panel-default"> <div cl...
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { Model, Service } from './model'; import { ModelService } from './model.service'; @Component({ selector: 'services-list', template: `<div class="col-md-3"> <div class="panel panel-default"> <div cl...
Update HTML for the list of services to follow latest Push style guidelines.
Update HTML for the list of services to follow latest Push style guidelines.
TypeScript
apache-2.0
pushtechnology/diffusion-rest-adapter,pushtechnology/diffusion-rest-adapter
--- +++ @@ -8,13 +8,14 @@ selector: 'services-list', template: `<div class="col-md-3"> <div class="panel panel-default"> - <div class="panel-body scroll-panel"> - <div class="list-group"> - <a *ngFor="let service of model.services" (click)="onSelect(service)" class="lis...
62e93b965e4b301527ec5441c40957dfd2f033cd
app/app.module.ts
app/app.module.ts
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { HttpModule } from '@angular/http'; import { AppComponent } from './app.component'; import { HomeComponent } from './home.component'; import { AppRoutingModule, routedComponents } from './app-routing.module'; i...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { HttpModule } from '@angular/http'; import { AppComponent } from './app.component'; import { HomeComponent } from './home.component'; import { AppRoutingModule, routedComponents } from './app-routing.module'; i...
Make home an entry component
Make home an entry component
TypeScript
mit
stvnhrlnd/sh-app,stvnhrlnd/sh-app,stvnhrlnd/sh-app
--- +++ @@ -7,6 +7,8 @@ import { AppRoutingModule, routedComponents } from './app-routing.module'; import { ContentService } from './content.service'; import { StorageService } from './storage.service'; + +export const entryComponents: any[] = [HomeComponent]; @NgModule({ imports: [ @@ -23,7 +25,8 @@ ...
b91830f72f5a229b7376fcfa238ef38c077b2122
types/vfile-location/index.d.ts
types/vfile-location/index.d.ts
// Type definitions for vfile-location 2.0 // Project: https://github.com/vfile/vfile-location // Definitions by: Ika <https://github.com/ikatyang> // Junyoung Choi <https://github.com/rokt33r> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 import * as VFi...
// Type definitions for vfile-location 2.0 // Project: https://github.com/vfile/vfile-location // Definitions by: Ika <https://github.com/ikatyang> // Junyoung Choi <https://github.com/rokt33r> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.0 import * as VFi...
Fix typescript version of vfile-location
Fix typescript version of vfile-location
TypeScript
mit
dsebastien/DefinitelyTyped,magny/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,mcliment/Defin...
--- +++ @@ -3,7 +3,7 @@ // Definitions by: Ika <https://github.com/ikatyang> // Junyoung Choi <https://github.com/rokt33r> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.4 +// TypeScript Version: 3.0 import * as VFile from "vfile";
7e92a3dcd170ef2afebc9f98e7a9c9ff356a2d16
app/src/lib/stores/pull-request-store.ts
app/src/lib/stores/pull-request-store.ts
import { PullRequestDatabase } from '../databases' /** The store for GitHub Pull Requests. */ export class PullRequestStore { private db: PullRequestDatabase public constructor(db: PullRequestDatabase) { this.db = db } }
import { PullRequestDatabase } from '../databases' import { GitHubRepository } from '../../models/github-repository' import { API, IAPIPullRequest } from '../api' /** The store for GitHub Pull Requests. */ export class PullRequestStore { private db: PullRequestDatabase public constructor(db: PullRequestDatabase) ...
Add fetch method; only needed to work from personal computer
Add fetch method; only needed to work from personal computer
TypeScript
mit
desktop/desktop,gengjiawen/desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,say25/desktop,desktop/desktop,kactus-io/kactus,j-f1/forked-desktop,kactus-io/kactus,shiftkey/desktop,say25/desktop,shiftkey/desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,j-f1/forked-desktop,kactus-io/kactus,artivilla/...
--- +++ @@ -1,4 +1,6 @@ import { PullRequestDatabase } from '../databases' +import { GitHubRepository } from '../../models/github-repository' +import { API, IAPIPullRequest } from '../api' /** The store for GitHub Pull Requests. */ export class PullRequestStore { @@ -7,4 +9,17 @@ public constructor(db: PullRe...
e299ab7566bac622fe596e44bced0800f15e6a24
manup-demo/src/app/app.component.ts
manup-demo/src/app/app.component.ts
import { Component } from '@angular/core'; import { Platform } from 'ionic-angular'; import { StatusBar, Splashscreen } from 'ionic-native'; import { TabsPage } from '../pages/tabs/tabs'; import { ManUpService } from 'ionic-manup'; @Component({ templateUrl: 'app.html' }) export class MyApp { rootPage = TabsPage;...
import { Component } from '@angular/core'; import { Platform } from 'ionic-angular'; import { StatusBar, Splashscreen } from 'ionic-native'; import { TabsPage } from '../pages/tabs/tabs'; import { ManUpService } from 'ionic-manup'; import { TranslateService } from 'ng2-translate' @Component({ templateUrl: 'app.htm...
Set default languate to english
Set default languate to english
TypeScript
mit
NextFaze/ionic-manup,NextFaze/ionic-manup,NextFaze/ionic-manup
--- +++ @@ -5,6 +5,7 @@ import { TabsPage } from '../pages/tabs/tabs'; import { ManUpService } from 'ionic-manup'; +import { TranslateService } from 'ng2-translate' @Component({ templateUrl: 'app.html' @@ -12,7 +13,8 @@ export class MyApp { rootPage = TabsPage; - constructor(platform: Platform, priva...
bba7bf48bbc95dfbb320621cbc30e60a855813e6
src/app/modal/modal.component.ts
src/app/modal/modal.component.ts
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; interface ModalConfig extends Object { title?: string; id?: string; } const defaultConfig = <ModalConfig> {}; let id = 0; @Component({ selector: 'app-modal', templateUrl: './modal.component.html', styleUrls: ['./modal.comp...
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; interface ModalConfig extends Object { title?: string; id?: string; } const defaultConfig = <ModalConfig> {}; let id = 0; @Component({ selector: 'app-modal', templateUrl: './modal.component.html', styleUrls: ['./modal.comp...
Use querySelector instead of getElementsByTagName ✍️
Use querySelector instead of getElementsByTagName ✍️
TypeScript
mit
filoxo/an-angular-modal,filoxo/an-angular-modal,filoxo/an-angular-modal
--- +++ @@ -22,7 +22,7 @@ private id: string; private titleId: string; private contentId: string; - private html: HTMLElement = document.getElementsByTagName('html')[0]; + private html: HTMLElement = document.querySelector('html'); constructor() {}
65f8127ceb4382e7635578e122dbd4c45c3fa345
packages/@sanity/base/src/preview/index.ts
packages/@sanity/base/src/preview/index.ts
import observeFields from './observeFields' import resolveRefType from './utils/resolveRefType' import {createPathObserver} from './createPathObserver' import {createPreviewObserver} from './createPreviewObserver' export {default} from './components/SanityDefaultPreview' export {default as SanityDefaultPreview} from '...
import observeFields from './observeFields' import resolveRefType from './utils/resolveRefType' import {createPathObserver} from './createPathObserver' import {createPreviewObserver} from './createPreviewObserver' export {default} from './components/SanityPreview' export {default as SanityDefaultPreview} from './compo...
Fix wrong reexport from base/preview
[base] Fix wrong reexport from base/preview
TypeScript
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
--- +++ @@ -3,7 +3,7 @@ import {createPathObserver} from './createPathObserver' import {createPreviewObserver} from './createPreviewObserver' -export {default} from './components/SanityDefaultPreview' +export {default} from './components/SanityPreview' export {default as SanityDefaultPreview} from './components/...
577c86c807da1b6f8f5783068f18272895cddf42
desktop/src/main/project/index.ts
desktop/src/main/project/index.ts
import { dialog, ipcMain } from 'electron' import fs from 'fs' import { projects } from 'stencila' import { CHANNEL } from '../../preload' import { openProjectWindow, projectWindow } from './window' export const registerProjectHandlers = () => { ipcMain.handle( CHANNEL.SHOW_PROJECT_WINDOW, async (_event, dir...
import { dialog, ipcMain } from 'electron' import { documents, projects } from 'stencila' import { CHANNEL } from '../../preload' import { openProjectWindow, projectWindow } from './window' export const registerProjectHandlers = () => { ipcMain.handle( CHANNEL.SHOW_PROJECT_WINDOW, async (_event, directoryPat...
Use Stencila node bindings to read document contents
refactor(Editor): Use Stencila node bindings to read document contents
TypeScript
apache-2.0
stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila
--- +++ @@ -1,6 +1,5 @@ import { dialog, ipcMain } from 'electron' -import fs from 'fs' -import { projects } from 'stencila' +import { documents, projects } from 'stencila' import { CHANNEL } from '../../preload' import { openProjectWindow, projectWindow } from './window' @@ -41,6 +40,9 @@ ipcMain.handle( ...
f2e0c578cc09b13ebdebf255bf6a4b9340dda246
src/workspace-module-resolver.ts
src/workspace-module-resolver.ts
import * as path from 'path'; import { IWorkspaceModuleProvider } from './workspace-module-provider'; import { matchByWords, stripExtension } from './utils'; import { getConfig } from './config'; export function findWorkspaceModules(moduleProvider: IWorkspaceModuleProvider, currentDocumentPath: string, packageName: s...
import * as path from 'path'; import { IWorkspaceModuleProvider } from './workspace-module-provider'; import { matchByWords, stripExtension } from './utils'; import { getConfig } from './config'; export function findWorkspaceModules(moduleProvider: IWorkspaceModuleProvider, currentDocumentPath: string, packageName: s...
Normalize import path for Windows OS.
Normalize import path for Windows OS.
TypeScript
mit
reflectiondm/vscode-npmsmartimporter
--- +++ @@ -27,5 +27,9 @@ relativePath = stripExtension(relativePath); } - return relativePath; + return normalizeWindowsPath(relativePath); } + +function normalizeWindowsPath(windowsPath: string) { + return windowsPath.replace(/\\/g, "/"); +}
b4c569e3df4ba7fd3402f79968421231dba1086c
javascript/src/createLocation.ts
javascript/src/createLocation.ts
import * as messages from '@cucumber/messages' export default function createLocation(props: { line?: number column?: number }): messages.Location { const location: messages.Location = { ...props } if (location.line === 0) { location.line = undefined } if (location.column === 0) { location.column =...
import * as messages from '@cucumber/messages' export default function createLocation(props: { line: number column?: number }): messages.Location { return { ...props } }
Change schema to make more properties required
Change schema to make more properties required
TypeScript
mit
cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin
--- +++ @@ -1,16 +1,8 @@ import * as messages from '@cucumber/messages' export default function createLocation(props: { - line?: number + line: number column?: number }): messages.Location { - const location: messages.Location = { ...props } - if (location.line === 0) { - location.line = undefined - }...
0ffe24c64b7bfee0bd001e95866c6e4a460db44e
tests/cases/fourslash/findAllRefsForObjectSpread.ts
tests/cases/fourslash/findAllRefsForObjectSpread.ts
/// <reference path='fourslash.ts'/> ////interface A1 { readonly [|{| "isWriteAccess": true, "isDefinition": true |}a|]: string }; ////interface A2 { [|{| "isWriteAccess": true, "isDefinition": true |}a|]?: number }; ////let a1: A1; ////let a2: A2; ////let a12 = { ...a1, ...a2 }; ////a12.[|a|]; ////a1.[|a|]; const ran...
/// <reference path='fourslash.ts'/> ////interface A1 { readonly [|{| "isWriteAccess": true, "isDefinition": true |}a|]: string }; ////interface A2 { [|{| "isWriteAccess": true, "isDefinition": true |}a|]?: number }; ////let a1: A1; ////let a2: A2; ////let a12 = { ...a1, ...a2 }; ////a12.[|a|]; ////a1.[|a|]; const ran...
Expand spread property find-all-ref test
Expand spread property find-all-ref test
TypeScript
apache-2.0
synaptek/TypeScript,Microsoft/TypeScript,nojvek/TypeScript,nojvek/TypeScript,mihailik/TypeScript,SaschaNaz/TypeScript,mihailik/TypeScript,kpreisser/TypeScript,basarat/TypeScript,microsoft/TypeScript,kitsonk/TypeScript,mihailik/TypeScript,RyanCavanaugh/TypeScript,basarat/TypeScript,RyanCavanaugh/TypeScript,basarat/TypeS...
--- +++ @@ -20,3 +20,5 @@ { definition: "(property) A2.a: number", ranges: [r1] }, { definition: "(property) a: string | number", ranges: [r2] } ]); + +verify.referenceGroups(r3, [{ definition: "(property) A1.a: string", ranges: [r0, r2, r3] }]);
0bd21f6ac42c86362706bf04ba367720c5324e8c
app/client/store.ts
app/client/store.ts
import { createStore, applyMiddleware, combineReducers } from 'redux'; import { composeWithDevTools } from 'redux-devtools-extension'; import createSagaMiddleware from 'redux-saga'; import reducers from './reducers'; import rootSaga from './sagas'; let reduxStore = null; const proc = process as any; const sagaMiddlewa...
import { createStore, applyMiddleware, combineReducers } from 'redux'; import { composeWithDevTools } from 'redux-devtools-extension'; import createSagaMiddleware from 'redux-saga'; import reducers from './reducers'; import rootSaga from './sagas'; let reduxStore = null; const proc = process as any; const sagaMiddlewa...
Remove apollo middleware and reducer
Remove apollo middleware and reducer
TypeScript
mit
DashBouquet/react-hipstaplate,DashBouquet/react-hipstaplate
--- +++ @@ -10,15 +10,11 @@ function create(apollo, initialState) { const middlewares = [ - sagaMiddleware, - apollo.middleware() + sagaMiddleware ]; const store: any = createStore( - combineReducers({ - ...reducers, - apollo: apollo.reducer() - }), + combineReducers({...redu...
a5282c59e5a212d6c6212bebe627802612db0136
src/desktop/apps/purchases/server.tsx
src/desktop/apps/purchases/server.tsx
import { buildServerApp } from "reaction/Artsy/Router/server" import { stitch } from "@artsy/stitch" import { routes } from "reaction/Apps/Purchase/routes" import React from "react" import { buildServerAppContext } from "desktop/lib/buildServerAppContext" import express, { Request, Response, NextFunction } from "expres...
import { buildServerApp } from "reaction/Artsy/Router/server" import { stitch } from "@artsy/stitch" import { routes } from "reaction/Apps/Purchase/routes" import React from "react" import { buildServerAppContext } from "desktop/lib/buildServerAppContext" import express, { Request, Response, NextFunction } from "expres...
Remove appShell related code that was causing 404 on staging and prod
Remove appShell related code that was causing 404 on staging and prod
TypeScript
mit
joeyAghion/force,anandaroop/force,artsy/force,erikdstock/force,anandaroop/force,izakp/force,joeyAghion/force,damassi/force,artsy/force,artsy/force-public,yuki24/force,yuki24/force,yuki24/force,oxaudo/force,erikdstock/force,eessex/force,damassi/force,yuki24/force,izakp/force,anandaroop/force,eessex/force,oxaudo/force,da...
--- +++ @@ -4,13 +4,11 @@ import React from "react" import { buildServerAppContext } from "desktop/lib/buildServerAppContext" import express, { Request, Response, NextFunction } from "express" -import { skipIfClientSideRoutingEnabled } from "desktop/components/split_test/skipIfClientSideRoutingEnabled" export c...
024060e87cf85f5742c07b15a029fb84845ef7cd
server/dbconnection.test.ts
server/dbconnection.test.ts
import { MongoClient } from "mongodb"; import MongodbMemoryServer from "mongodb-memory-server"; import { StatBlock } from "../common/StatBlock"; import { probablyUniqueString } from "../common/Toolbox"; import * as DB from "./dbconnection"; describe("User Accounts", () => { let mongod: MongodbMemoryServer; let...
import { MongoClient } from "mongodb"; import MongodbMemoryServer from "mongodb-memory-server"; import { StatBlock } from "../common/StatBlock"; import { probablyUniqueString } from "../common/Toolbox"; import * as DB from "./dbconnection"; describe("User Accounts", () => { let mongod: MongodbMemoryServer; let...
Extend timeout to allow for downloading mongodb-memory-server binary
Extend timeout to allow for downloading mongodb-memory-server binary
TypeScript
mit
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
--- +++ @@ -12,7 +12,7 @@ mongod = new MongodbMemoryServer(); uri = await mongod.getUri(); DB.initialize(uri); - }); + }, 60000); afterAll(async () => { await mongod.stop();
47a0992131fd8c717c3ef09f3eb333044173b0fe
src/api/configuration/db.ts
src/api/configuration/db.ts
import * as db from '../../data' const defaultConfig: Concierge.Configuration = { name: '', conciergePort: 3141, debug: 0, dockerRegistry: undefined, proxyHostname: undefined, registryCredentials: undefined, statsBinSize: 60, statsRetentionDays: 3, maxConcurrentBuilds: 2, gitPollingIntervalSecs: 5 ...
import * as db from '../../data' const defaultConfig: Concierge.Configuration = { name: '', conciergePort: 3141, debug: 0, dockerRegistry: undefined, proxyHostname: undefined, registryCredentials: undefined, statsBinSize: 60, statsRetentionDays: 3, maxConcurrentBuilds: 2, gitPollingIntervalSecs: 5 ...
Implement config validation on update
Implement config validation on update
TypeScript
mit
the-concierge/concierge,the-concierge/concierge,the-concierge/concierge
--- +++ @@ -37,6 +37,25 @@ conciergePort: original.conciergePort } + const keys = Object.keys(config) as Array<keyof Concierge.Configuration> + + const badKeys: string[] = [] + for (const key of keys) { + const validator = validate[key] + if (!validator) { + continue + } + + if (!validat...
d324f57361191e0a2fe68fdc87777db4c77f9f22
src/app/shell/formatters.ts
src/app/shell/formatters.ts
/** * Given a value 0-1, returns a string describing it as a percentage from 0-100 */ export function percent(val: number): string { return `${Math.min(100, Math.floor(100 * val))}%`; } /** * Given a value on (or outside) a 0-100 scale, returns a css color key and value for a react `style` attribute */ export fu...
/** * Given a value 0-1, returns a string describing it as a percentage from 0-100 */ export function percent(val: number): string { return `${Math.min(100, Math.floor(100 * val))}%`; } /** * Given a value on (or outside) a 0-100 scale, returns a css color key and value for a react `style` attribute */ export fu...
Fix color grading for ]99%, 100%[ interval
Fix color grading for ]99%, 100%[ interval
TypeScript
mit
DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM
--- +++ @@ -18,7 +18,7 @@ color = 20; } else if (value <= 95) { color = 60; - } else if (value <= 99) { + } else if (value < 100) { color = 120; } else if (value >= 100) { color = 190;
68d6e57870dd5ea87a03d13adcfcc72786d8348a
server/lib/activitypub/local-video-viewer.ts
server/lib/activitypub/local-video-viewer.ts
import { Transaction } from 'sequelize' import { LocalVideoViewerModel } from '@server/models/view/local-video-viewer' import { LocalVideoViewerWatchSectionModel } from '@server/models/view/local-video-viewer-watch-section' import { MVideo } from '@server/types/models' import { WatchActionObject } from '@shared/models'...
import { Transaction } from 'sequelize' import { LocalVideoViewerModel } from '@server/models/view/local-video-viewer' import { LocalVideoViewerWatchSectionModel } from '@server/models/view/local-video-viewer-watch-section' import { MVideo } from '@server/types/models' import { WatchActionObject } from '@shared/models'...
Fix transaction when processing local viewer
Fix transaction when processing local viewer
TypeScript
agpl-3.0
Chocobozzz/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube
--- +++ @@ -23,7 +23,7 @@ : null, videoId: video.id - }) + }, { transaction: t }) await LocalVideoViewerWatchSectionModel.bulkCreateSections({ localVideoViewerId: localVideoViewer.id, @@ -31,7 +31,9 @@ watchSections: watchAction.watchSections.map(s => ({ start: s.startTimestamp, ...
4ce47293e496e6aa1e4a17fbd9f49eeb3bd06ea5
src/renderer/modules/Tracker/TrackerPage.tsx
src/renderer/modules/Tracker/TrackerPage.tsx
import { NonIdealState } from "@blueprintjs/core"; import { inject, observer } from "mobx-react"; import React from "react"; import { ICommonStoreProps } from "../../common/ICommonStoreProps"; import { WorkItemType } from "../../store/models/WorkItem"; import ActionBar from "./ActionBar"; import WorkItem from "./WorkIt...
import { NonIdealState } from "@blueprintjs/core"; import { inject, observer } from "mobx-react"; import React from "react"; import { ICommonStoreProps } from "../../common/ICommonStoreProps"; import { WorkItemType } from "../../store/models/WorkItem"; import ActionBar from "./ActionBar"; import WorkItem from "./WorkIt...
Fix key property in Tracker Page
Fix key property in Tracker Page
TypeScript
mit
sgaloux/timetrack2,sgaloux/timetrack2
--- +++ @@ -22,7 +22,7 @@ /> ) : ( store!.workDay.allItems.map((i: WorkItemType) => ( - <WorkItem workItem={i} /> + <WorkItem key={i.id.toString()} workItem={i} /> )) )} </div>
6cef96cf59e6e943b990ee3a02e562a67bde5e9b
A2/quickstart/src/app/app.custom.component.ts
A2/quickstart/src/app/app.custom.component.ts
import { Component } from '@angular/core'; @Component({ selector: "my-app-custom-component", templateUrl: "app/app.custom.component.html", styleUrls: [ "app/app.custom.component.css" ] }) export class AppCustomComponent { title = "Ultra Racing Schedule"; races = [{ "id": 1, "name": "Daytona Thunderd...
import { Component } from "@angular/core"; import { RacePart } from "./race-part"; import { RACE_PARTS } from "./mocks"; @Component({ selector: "my-app-custom-component", templateUrl: "app/app.custom.component.html", styleUrls: [ "app/app.custom.component.css" ] }) export class AppCustomComponent { title = "U...
Replace data to separated files
Replace data to separated files
TypeScript
mit
var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training
--- +++ @@ -1,4 +1,6 @@ -import { Component } from '@angular/core'; +import { Component } from "@angular/core"; +import { RacePart } from "./race-part"; +import { RACE_PARTS } from "./mocks"; @Component({ selector: "my-app-custom-component", @@ -8,26 +10,13 @@ export class AppCustomComponent { title = "Ul...
8d6721729bcae2840545e3961bd547a26ccb2577
src/app/dim-ui/bungie-image.tsx
src/app/dim-ui/bungie-image.tsx
import * as React from 'react'; /** * A relative path to a Bungie.net image asset. */ export type BungieImagePath = string; interface BungieImageProps { src: BungieImagePath; } /** * An image tag that links its src to bungie.net. Other props pass through to the underlying image. */ export function BungieImage(...
import * as React from 'react'; /** * A relative path to a Bungie.net image asset. */ export type BungieImagePath = string; interface BungieImageProps { src: BungieImagePath; } /** * An image tag that links its src to bungie.net. Other props pass through to the underlying image. */ export function BungieImage(...
Tweak how bungie image props types work
Tweak how bungie image props types work
TypeScript
mit
delphiactual/DIM,DestinyItemManager/DIM,delphiactual/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,chrisfried/DIM,bhollis/DIM,bhollis/DIM,bhollis/DIM,chrisfried/DIM,DestinyItemManager/DIM,delphiactual/DIM,chrisfried/DIM,chrisfried/DIM,delphiactual/DIM,bhollis/DIM
--- +++ @@ -12,7 +12,7 @@ /** * An image tag that links its src to bungie.net. Other props pass through to the underlying image. */ -export function BungieImage(props: BungieImageProps) { +export function BungieImage(props: BungieImageProps & React.ImgHTMLAttributes<HTMLImageElement>) { const { src, ...otherP...