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
9041c559ba0244efde0b8829963b9723130740e6
src/parser/hunter/survival/modules/resources/SurvivalFocusUsage.tsx
src/parser/hunter/survival/modules/resources/SurvivalFocusUsage.tsx
import SharedHunterFocusUsage from 'parser/hunter/shared/modules/resources/FocusUsage'; import { LIST_OF_FOCUS_SPENDERS_SV } from 'parser/hunter/survival/constants'; import SPELLS from 'common/SPELLS'; import Spell from 'common/SPELLS/Spell'; import { Ability } from 'parser/core/Events'; class SurvivalFocusUsage exten...
import SharedHunterFocusUsage from 'parser/hunter/shared/modules/resources/FocusUsage'; import { LIST_OF_FOCUS_SPENDERS_SV } from 'parser/hunter/survival/constants'; import SPELLS from 'common/SPELLS'; import Spell from 'common/SPELLS/Spell'; class SurvivalFocusUsage extends SharedHunterFocusUsage { static listOfRe...
Fix a crash in Survival when viewing the timeline
[Hunter] Fix a crash in Survival when viewing the timeline
TypeScript
agpl-3.0
anom0ly/WoWAnalyzer,Juko8/WoWAnalyzer,anom0ly/WoWAnalyzer,sMteX/WoWAnalyzer,anom0ly/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,yajinni/WoWAnalyzer,Juko8/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,yajinni/WoWAnalyzer,yajinni/WoWAnalyzer,sMteX/WoWAnalyzer,sMteX/WoWAnalyzer,yajinni/WoWAnalyzer,Juko8/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,...
--- +++ @@ -2,7 +2,6 @@ import { LIST_OF_FOCUS_SPENDERS_SV } from 'parser/hunter/survival/constants'; import SPELLS from 'common/SPELLS'; import Spell from 'common/SPELLS/Spell'; -import { Ability } from 'parser/core/Events'; class SurvivalFocusUsage extends SharedHunterFocusUsage { @@ -10,7 +9,7 @@ ...L...
3b5c81d82ff6835a5a4d5d98a4c382ccb5898607
src/lib/entry/TestFixture.tsx
src/lib/entry/TestFixture.tsx
import * as React from 'react' import { filter } from 'lodash' import { mount, ReactWrapper } from 'enzyme' import { PluginConstructor, PluginConfig } from '../core/PluginConfig' import { ApplicationContext } from '../core/ApplicationContext' import { ContextProvider } from '../core/ContextProvider' export interface T...
import * as React from 'react' import { filter } from 'lodash' import { mount, ReactWrapper } from 'enzyme' import { PluginConstructor, PluginConfig } from '../core/PluginConfig' import { ApplicationContext } from '../core/ApplicationContext' import { ContextProvider } from '../core/ContextProvider' export interface T...
Add helper for getting component instance to TestFIxture
Add helper for getting component instance to TestFIxture
TypeScript
mit
brightinteractive/bright-js-framework,brightinteractive/bright-js-framework,brightinteractive/bright-js-framework
--- +++ @@ -38,4 +38,8 @@ return this } + + getInstance<T>() { + return this.render().childAt(0).instance() as any as T + } }
cd87279f44661cb390bb68b7e989667606b5e728
web-ng/src/test.ts
web-ng/src/test.ts
/** * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/** * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Switch back to any type for require as it has no typing
Switch back to any type for require as it has no typing
TypeScript
apache-2.0
google/ground-platform,google/ground-platform,google/ground-platform,google/ground-platform
--- +++ @@ -23,7 +23,7 @@ platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; -declare const require: NodeRequire; +declare const require: any; // First, initialize the Angular testing environment. getTestBed().initTestEnvironment(
d5829b679759e429605217387fb8bc0feca0fecf
controllers/user.controller.ts
controllers/user.controller.ts
import { Request, Response } from "express" import { IUser } from "../models/user.model" import { notFound } from "Boom" import { userModel } from "../models/user.model" class UserController { public infoUser(req: Request, res: Response) { const id = req.body.id userModel.findById(id) ...
import { Request, Response } from "express" import { IUser } from "../models/user.model" import { notFound } from "Boom" import { userModel } from "../models/user.model" class UserController { public async infoUser(req: Request, res: Response) { const id = req.body.id const user = await userMode...
Switch from Promises to Async Await
Switch from Promises to Async Await
TypeScript
mit
xeoneux/TypeMonPress
--- +++ @@ -6,16 +6,11 @@ class UserController { - public infoUser(req: Request, res: Response) { + public async infoUser(req: Request, res: Response) { const id = req.body.id - userModel.findById(id) - .then((user: IUser) => { - res.json(user) - }) - ...
32d4f0e1245fa44728623dc6a04e05d3144dad63
src/utils/handleResponse.ts
src/utils/handleResponse.ts
export async function handleResponse(res : Response) : Promise<any> { const data = await res.json(); if (res.status < 300) { return data; } if (data.error) { throw new Error(data.error); } throw new Error(res.status.toString()); }
export function handleResponse(res : Response) : Promise<any> { return res.json().then(data => { if (res.status < 300) { return data; } if (data.error) { throw new Error(data.error); } throw new Error(res.status.toString()); }); }
Replace async function with Promise
Replace async function with Promise
TypeScript
mit
woubuc/node-updown,woubuc/node-updown
--- +++ @@ -1,13 +1,13 @@ -export async function handleResponse(res : Response) : Promise<any> { - const data = await res.json(); - - if (res.status < 300) { - return data; - } - - if (data.error) { - throw new Error(data.error); - } - - throw new Error(res.status.toString()); +export function handleResponse(res : ...
e2099c0a3a8cbb568797066a7374fffcdd3412ed
ui/src/Navbar.tsx
ui/src/Navbar.tsx
import React, { CSSProperties, useContext } from 'react'; import { Navbar, Nav } from 'react-bootstrap'; import { useLocation, Link } from 'react-router-dom'; import { JwtContext } from './App'; export default () => { const location = useLocation(); const jwtContext = useContext(JwtContext); return ( ...
import React, { CSSProperties, useContext } from 'react'; import { Navbar, Nav } from 'react-bootstrap'; import { useLocation, Link } from 'react-router-dom'; import { JwtContext } from './App'; export default () => { const location = useLocation(); const jwtContext = useContext(JwtContext); return ( ...
Add Login button to navbar
Add Login button to navbar
TypeScript
apache-2.0
dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web
--- +++ @@ -11,7 +11,7 @@ return ( <Navbar variant="dark" style={ navbarStyle }> <Navbar.Brand href="/">iDAI.<strong>field</strong></Navbar.Brand> - <Nav activeKey={ location.pathname }> + <Nav activeKey={ location.pathname } className="mr-auto"> <Nav....
772c35fcee84d3b95fcd7dc800003ad95a0419a0
src/SyntaxNodes/OrderedListNode.ts
src/SyntaxNodes/OrderedListNode.ts
import { SyntaxNode } from '../SyntaxNodes/SyntaxNode' import { RichSyntaxNode } from '../SyntaxNodes/RichSyntaxNode' export enum ListOrder { Ascending, Descrending } export class OrderedListNode extends RichSyntaxNode { constructor( parentOrChildren?: RichSyntaxNode | SyntaxNode[], public order = ListO...
import { SyntaxNode } from '../SyntaxNodes/SyntaxNode' import { RichSyntaxNode } from '../SyntaxNodes/RichSyntaxNode' import { OrderedListItemNode } from '../SyntaxNodes/OrderedListItemNode' export enum ListOrder { Ascending, Descrending } export class OrderedListNode extends RichSyntaxNode { constructor(parent...
Change ordered list node's start field to a method
Change ordered list node's start field to a method
TypeScript
mit
start/up,start/up
--- +++ @@ -1,5 +1,6 @@ import { SyntaxNode } from '../SyntaxNodes/SyntaxNode' import { RichSyntaxNode } from '../SyntaxNodes/RichSyntaxNode' +import { OrderedListItemNode } from '../SyntaxNodes/OrderedListItemNode' export enum ListOrder { Ascending, @@ -7,12 +8,12 @@ } export class OrderedListNode extend...
842ec912ac6ea531009dfa97db1025f76ae8e23a
src/app/browse/browse.component.ts
src/app/browse/browse.component.ts
import {Component, OnInit} from '@angular/core'; import {NavigationService} from "../navigation.service"; import {ActivatedRoute} from "@angular/router"; @Component({ selector: 'app-results', templateUrl: './browse.component.html', styleUrls: ['./browse.component.scss'] }) export class BrowseComponent implements...
import {Component, OnInit} from '@angular/core'; import {NavigationService} from "../navigation.service"; import {ActivatedRoute} from "@angular/router"; @Component({ selector: 'app-results', templateUrl: './browse.component.html', styleUrls: ['./browse.component.scss'] }) export class BrowseComponent implements...
Remove 'all' category when root category is requested
Remove 'all' category when root category is requested
TypeScript
bsd-3-clause
UoA-eResearch/research-hub,UoA-eResearch/research-hub,UoA-eResearch/research-hub
--- +++ @@ -21,7 +21,13 @@ const category = this.navigation.getCategory(categoryId); if (!category.isLeaf()) { - this.categories = category.categories; + // Remove 'all' category when root category is requested + let start = 0; + if (categoryId === '/') { + start =...
c98176a2120adc18bdf1020864da1323e1ea9d00
src/app/header/header.component.ts
src/app/header/header.component.ts
import { Component, OnInit, Output, EventEmitter } from '@angular/core'; import { Router, NavigationStart } from '@angular/router'; @Component({ selector: 'app-header', templateUrl: './header.component.html', styleUrls: ['./header.component.scss'] }) export class HeaderComponent implements OnInit { @Output() n...
import { Component, OnInit, Output, EventEmitter } from '@angular/core'; import { Router, NavigationStart } from '@angular/router'; @Component({ selector: 'app-header', templateUrl: './header.component.html', styleUrls: ['./header.component.scss'] }) export class HeaderComponent implements OnInit { @Output() n...
Improve router events subscription in header.
Improve router events subscription in header.
TypeScript
mit
kmaida/ng2-dinos,kmaida/ng2-dinos,auth0-blog/ng2-dinos,auth0-blog/ng2-dinos,kmaida/ng2-dinos,auth0-blog/ng2-dinos
--- +++ @@ -13,11 +13,9 @@ constructor(private router: Router) { } ngOnInit() { - this.router.events.subscribe(event => { - if (event instanceof NavigationStart && this.navOpen) { - this.toggleNav(); - } - }); + this.router.events + .filter(event => event instanceof NavigationSt...
0dafcfd44bce0edd261d3dfa1428cfef61587492
pages/posts/index.tsx
pages/posts/index.tsx
import { NextPage } from "next" import Page from "../../layouts/main" import postsLoader from "../../data/loaders/PostsLoader" import BlogPost from "../../models/BlogPost" import BlogPostPreview from "../../components/BlogPostPreview" interface Props { posts: BlogPost[] } const PostPage: NextPage<Props> = props => ...
import { NextPage } from "next" import Page from "../../layouts/main" import postsLoader from "../../data/loaders/PostsLoader" import BlogPost from "../../models/BlogPost" import EntryPreviews from "../../components/EntryPreviews" interface Props { posts: BlogPost[] } const PostPage: NextPage<Props> = props => { ...
Update /posts to use `EntryPreviews`
Update /posts to use `EntryPreviews`
TypeScript
mit
JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk
--- +++ @@ -2,7 +2,7 @@ import Page from "../../layouts/main" import postsLoader from "../../data/loaders/PostsLoader" import BlogPost from "../../models/BlogPost" -import BlogPostPreview from "../../components/BlogPostPreview" +import EntryPreviews from "../../components/EntryPreviews" interface Props { pos...
207a54238614da20e2deb570b4fa3b7f3b5834b2
resources/app/dashboard/components/parking/receipt/receipt.component.ts
resources/app/dashboard/components/parking/receipt/receipt.component.ts
import { Transition, StateService } from "@uirouter/angularjs"; import { ParkingService } from './../parking.service'; import './receipt.component.scss'; export class ParkingReceiptComponent implements ng.IComponentOptions { static NAME = 'parkingReceiptComponent'; public bindings; public controller; p...
import { Transition, StateService } from "@uirouter/angularjs"; import { ParkingService } from './../parking.service'; import './receipt.component.scss'; export class ParkingReceiptComponent implements ng.IComponentOptions { static NAME = 'parkingReceiptComponent'; public bindings; public controller; p...
Fix $transition$ error placed in controller param
Fix $transition$ error placed in controller param $transition$ is not a dependency injection, thus it will spit out an error. But it is passed as binding.
TypeScript
mit
ibnumalik/ibnumalik.github.io,ibnumalik/ibnumalik.github.io,ibnumalik/ibnumalik.github.io
--- +++ @@ -19,11 +19,11 @@ export class ParkingReceiptController implements ng.IComponentController { private receipt; + private $transition$: Transition; constructor( private ParkingService, private $state: StateService, - private $transition$: Transition, private...
3b3050e11da73aed4b2d393141e2568fa133b740
app/hero.service.ts
app/hero.service.ts
import { Injectable } from '@angular/core'; @Injectable() export class HeroService { }
import { Injectable } from '@angular/core'; @Injectable() export class HeroService { getHeroes(): void {} // stub }
Add a getHeroes method stub.
Add a getHeroes method stub.
TypeScript
mit
amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes
--- +++ @@ -2,4 +2,5 @@ @Injectable() export class HeroService { + getHeroes(): void {} // stub }
b64567d738db70b5663330d2a407c228224ca057
src/main.ts
src/main.ts
import * as DomUtils from './utils/dom' import * as PathUtils from './utils/path' import {dispatch} from './dispatch' import {log} from './utils/log' import {DictionaryService} from './utils/dict' import {Sidebar} from './dom/sidebar' import {ControlPanel} from './dom/controlPanel' import {MiniTranslationModal} from...
import * as DomUtils from './utils/dom' import * as PathUtils from './utils/path' import {dispatch} from './dispatch' import {log} from './utils/log' import {DictionaryService} from './utils/dict' import {Sidebar} from './dom/sidebar' import {ControlPanel} from './dom/controlPanel' import {MiniTranslationModal} from...
Add translation mini modal now closes after item is added
Add translation mini modal now closes after item is added
TypeScript
mit
paarthenon/pixiv-assistant,paarthenon/pixiv-assistant,paarthk/pixiv-assistant,paarthk/pixiv-assistant
--- +++ @@ -23,6 +23,7 @@ let translationModal = new MiniTranslationModal(DictionaryService.userDictionary); translationModal.listen(MiniTranslationModal.events.addedTranslation, () => { page.translateTagsOnPage(); + translationModal.toggleVisibility(); }); let togglePanel = {
f65036ffcd8e26581cf3585d20f647633c97d572
polygerrit-ui/app/elements/gr-app-init.ts
polygerrit-ui/app/elements/gr-app-init.ts
/** * @license * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
/** * @license * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
Remove obsolete setting of lazyRegister
Remove obsolete setting of lazyRegister This is always true anyway since Polymer 2. Change-Id: I5948a888a366b6efad5426b66f12d89ede11df04
TypeScript
apache-2.0
GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit
--- +++ @@ -22,17 +22,6 @@ } from '../services/gr-reporting/gr-reporting_impl'; import {appContext} from '../services/app-context'; -interface UninitializedPolymer { - lazyRegister: boolean; -} - -if (!window.Polymer) { - // Without as... it violates internal google rules. - ((window.Polymer as unknown) as Uni...
e808ef5f244b210077601165b05775c83b9c62d9
packages/selenium-ide/src/main/session/controllers/Menu/menus/application.ts
packages/selenium-ide/src/main/session/controllers/Menu/menus/application.ts
import { Menu } from 'electron' import { Session } from 'main/types' import { editBasicsCommands } from './editBasics' import { projectEditorCommands } from './projectEditor' import { testEditorCommands } from './testEditor' import { projectViewCommands } from './projectView' const applicationMenu = (session: Session)...
import { Menu } from 'electron' import { Session } from 'main/types' import { editBasicsCommands } from './editBasics' import { projectEditorCommands } from './projectEditor' import { testEditorCommands } from './testEditor' import { projectViewCommands } from './projectView' import { platform } from 'os' const applic...
Make quit control feel better on Windows
Make quit control feel better on Windows
TypeScript
apache-2.0
SeleniumHQ/selenium-ide,SeleniumHQ/selenium-ide,SeleniumHQ/selenium-ide
--- +++ @@ -4,6 +4,7 @@ import { projectEditorCommands } from './projectEditor' import { testEditorCommands } from './testEditor' import { projectViewCommands } from './projectView' +import { platform } from 'os' const applicationMenu = (session: Session) => async () => Menu.buildFromTemplate([ @@ -19,7 +20,...
d9e6d03e769ee7013bee70e4f73c8e59d932d91d
globalize/globalize-0.1.3.d.ts
globalize/globalize-0.1.3.d.ts
// Type definitions for Globalize v?.? NuGet package v0.1.3 // Project: https://github.com/jquery/globalize // Definitions by: Aram Taieb <https://github.com/afromogli/> // Definitions: https://github.com/afromogli/DefinitelyTyped interface GlobalizeStatic { addCultureInfo(cultureName: string, baseCultureName: str...
// Type definitions for Globalize v0.1.3 (NuGet package version) // Project: https://github.com/jquery/globalize // Definitions by: Aram Taieb <https://github.com/afromogli/> // Definitions: https://github.com/afromogli/DefinitelyTyped interface GlobalizeStatic { addCultureInfo(cultureName: string, baseCultureName...
Set NuGet version 0.1.3 as Globalize version.
Set NuGet version 0.1.3 as Globalize version.
TypeScript
mit
chrootsu/DefinitelyTyped,slavomirvojacek/DefinitelyTyped,alexdresko/DefinitelyTyped,psnider/DefinitelyTyped,arma-gast/DefinitelyTyped,mattblang/DefinitelyTyped,Penryn/DefinitelyTyped,martinduparc/DefinitelyTyped,DzmitryDulko/DefinitelyTyped,gcastre/DefinitelyTyped,AgentME/DefinitelyTyped,paulmorphy/DefinitelyTyped,Enab...
--- +++ @@ -1,4 +1,4 @@ -// Type definitions for Globalize v?.? NuGet package v0.1.3 +// Type definitions for Globalize v0.1.3 (NuGet package version) // Project: https://github.com/jquery/globalize // Definitions by: Aram Taieb <https://github.com/afromogli/> // Definitions: https://github.com/afromogli/Definitel...
83a4dd26be88eaa3733d1a1f128f11c31a968cf5
packages/vanilla/example/index.ts
packages/vanilla/example/index.ts
/* The MIT License Copyright (c) 2017-2019 EclipseSource Munich https://github.com/eclipsesource/jsonforms Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, inc...
/* The MIT License Copyright (c) 2017-2019 EclipseSource Munich https://github.com/eclipsesource/jsonforms Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, inc...
Fix Vanilla example app crash
Fix Vanilla example app crash The Vanilla example app wasn't adapted when the 'renderExample' API was extended. This lead to a crash on app startup. This is now fixed.
TypeScript
mit
qb-project/jsonforms,qb-project/jsonforms,qb-project/jsonforms
--- +++ @@ -31,7 +31,7 @@ } from '../src'; import { renderExample } from '../../example/src/index'; -renderExample(vanillaRenderers, vanillaCells, { +renderExample(vanillaRenderers, vanillaCells, undefined, { name: 'styles', reducer: stylingReducer, state: vanillaStyles
6c434c9c63934e2c5944e7361d8be3348cb3907e
coffee-chats/src/main/webapp/src/components/ListItemLink.tsx
coffee-chats/src/main/webapp/src/components/ListItemLink.tsx
import React from "react"; import {Link, useRouteMatch} from "react-router-dom"; import {ListItem, ListItemText} from "@material-ui/core"; export function ListItemLink(props: {to: string, primary: string}) { const {to, primary} = props; const match = useRouteMatch(to)?.isExact; const renderLink = React.useMemo...
import React from "react"; import {Link, useRouteMatch} from "react-router-dom"; import {ListItem, ListItemText} from "@material-ui/core"; interface ListItemLinkProps { to: string primary: string } export function ListItemLink({to, primary}: ListItemLinkProps) { const match = useRouteMatch(to)?.isExact; cons...
Use destructuring function parameters for props
Use destructuring function parameters for props
TypeScript
apache-2.0
googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020
--- +++ @@ -2,9 +2,12 @@ import {Link, useRouteMatch} from "react-router-dom"; import {ListItem, ListItemText} from "@material-ui/core"; -export function ListItemLink(props: {to: string, primary: string}) { - const {to, primary} = props; +interface ListItemLinkProps { + to: string + primary: string +} +expor...
65faaa35fc42a1c00bd5ef7e7ba1d5676727a45d
src/app/shared/models/index.ts
src/app/shared/models/index.ts
export * from './question.model'; export * from './question.model'; export * from './class.model'; export * from './student.model';
export * from './question.model'; export * from './assignment.model'; export * from './class.model'; export * from './student.model';
Fix models barrel for Assignment
Fix models barrel for Assignment
TypeScript
mit
bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder
--- +++ @@ -1,4 +1,4 @@ export * from './question.model'; -export * from './question.model'; +export * from './assignment.model'; export * from './class.model'; export * from './student.model';
d7e2b2094f7bfd31be72f8e20a2c106aae246576
source/features/set-default-repositories-type-to-sources.tsx
source/features/set-default-repositories-type-to-sources.tsx
import select from 'select-dom'; import features from '../libs/features'; function init() { // Get repositories link from user profile navigation const link = select<HTMLAnchorElement>('.user-profile-nav a[href*="tab=repositories"]'); if (!link) { return false; } link.search += '&type=source'; } features.add...
import select from 'select-dom'; import features from '../libs/features'; function init() { const links = select.all<HTMLAnchorElement>([ '.user-profile-nav [href$="tab=repositories"]', // "Your repositories" in header dropdown '#user-links [href$="tab=repositories"]' // "Repositories" tab on profile ].join()); ...
Include "Your repositories" link in `...repositories...-to-sources`
Include "Your repositories" link in `...repositories...-to-sources`
TypeScript
mit
sindresorhus/refined-github,busches/refined-github,busches/refined-github,sindresorhus/refined-github
--- +++ @@ -2,21 +2,18 @@ import features from '../libs/features'; function init() { - // Get repositories link from user profile navigation - const link = select<HTMLAnchorElement>('.user-profile-nav a[href*="tab=repositories"]'); + const links = select.all<HTMLAnchorElement>([ + '.user-profile-nav [href$="tab=...
984fd64c95789b2826ca2adeee0830b131eb2755
public/app/models/game.ts
public/app/models/game.ts
export class Game { _id: string; pgn: string; analysis: { moves: [ { bestMove: string, score: string } ], status: string, progress: number }; white: string; black: string; whiteElo: string...
export class Game { _id: string; pgn: string; analysis: { moves: [ { bestMove: string, score: { cp: string, mate: string } } ], status: string, ...
Update the front end model with new score model
Update the front end model with new score model
TypeScript
mit
revov/uci-gui,revov/uci-gui
--- +++ @@ -5,7 +5,10 @@ moves: [ { bestMove: string, - score: string + score: { + cp: string, + mate: string + } } ], status: string...
acbcca11021f1c79254ff8744b36206830efacc9
public/app/types/store.ts
public/app/types/store.ts
import { NavIndex } from './navModel'; import { LocationState } from './location'; import { AlertRulesState } from './alerting'; import { TeamsState, TeamState } from './teams'; import { FolderState } from './folders'; import { DashboardState } from './dashboard'; import { DataSourcesState } from './datasources'; impor...
import { NavIndex } from './navModel'; import { LocationState } from './location'; import { AlertRulesState } from './alerting'; import { TeamsState, TeamState } from './teams'; import { FolderState } from './folders'; import { DashboardState } from './dashboard'; import { DataSourcesState } from './datasources'; impor...
Add plugins to StoreState interface
fix: Add plugins to StoreState interface
TypeScript
agpl-3.0
grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana
--- +++ @@ -9,6 +9,7 @@ import { UsersState, UserState } from './user'; import { OrganizationState } from './organization'; import { AppNotificationsState } from './appNotifications'; +import { PluginsState } from './plugins'; export interface StoreState { navIndex: NavIndex; @@ -24,4 +25,5 @@ organizatio...
7cafb66e02390fb55b1201414b99e0324322a71a
source/game/objects/gameFeatureObject.ts
source/game/objects/gameFeatureObject.ts
/** Copyright (C) 2013 by Justin DuJardin Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
/** Copyright (C) 2013 by Justin DuJardin Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
Fix issue where Ship didn't render in map because GameFeatureObject.frame was undefined.
Fix issue where Ship didn't render in map because GameFeatureObject.frame was undefined.
TypeScript
apache-2.0
justindujardin/pow2,justindujardin/pow2,justindujardin/pow2
--- +++ @@ -24,12 +24,14 @@ type: string; // TODO: enum? passable:boolean; groups:any; + frame:number; constructor(options:any) { super(_.omit(options || {},["x","y","type"])); this.feature = options; this.point.x = options.x; this.point.y = opt...
321d8a012539dadc4169dd6305aeafdaa66b5424
src/schema/MemberRef.ts
src/schema/MemberRef.ts
// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {Namespace} from './Namespace'; import {Member} from './Member'; import {Type} from './Type'; export class MemberRef { constructor(member: Member, min: number, max: number) { this.member = member;...
// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. import * as cxml from 'cxml'; import {Member} from './Member'; export class MemberRef extends cxml.MemberRefBase<Member> { prefix: string; }
Use member reference base class from cxml.
Use member reference base class from cxml.
TypeScript
mit
charto/cxsd,charto/fast-xml,charto/fast-xml,charto/cxsd
--- +++ @@ -1,24 +1,10 @@ // This file is part of cxsd, copyright (c) 2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. -import {Namespace} from './Namespace'; +import * as cxml from 'cxml'; + import {Member} from './Member'; -import {Type} from './Type'; -export class MemberRef { - construct...
e66f6a0409b511851e6051d6defb9b1349f9d90c
front-end/src/app/common/constants/constants.ts
front-end/src/app/common/constants/constants.ts
const NAVBAR = [ { title : 'Про нас', state : 'about' }, { title : 'Головна', state : 'home' }, { title : 'Судді', state : 'list' } ]; const SOURCE = '/source'; const URLS = { listUrl : `${SOURCE}/judges.json`, dictionaryUrl : `${SOURCE}/dictionary.json`, dictionaryTimeStamp...
const NAVBAR = [ { title : 'Про нас', state : 'about' }, { title : 'Головна', state : 'home' }, { title : 'Судді', state : 'list' } ]; const SOURCE = '/source'; const URLS = { listUrl : `${SOURCE}/judges.json`, dictionaryUrl : `${SOURCE}/dictionary.json`, dictionaryTimeStamp...
Move judges info to separate folder Judges JSON contains not only declarations
Move judges info to separate folder Judges JSON contains not only declarations
TypeScript
mit
automaidan/judges,automaidan/judges,automaidan/judges,automaidan/judges
--- +++ @@ -22,7 +22,7 @@ dictionaryTimeStamp : `${SOURCE}/dictionary.json.timestamp`, textUrl : `${SOURCE}/texts.json`, textTimeStamp : `${SOURCE}/dictionary.json.timestamp`, - details : `/declarations/:key.json` + details : `/judges/:key.json` };
8d7f0f35439327065e8cdeb8169609df5edba340
src/ts/Framework/Logging/ErrorLogging.ts
src/ts/Framework/Logging/ErrorLogging.ts
/* Copyright 2016 James Craig Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
/* Copyright 2016 James Craig Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
Change to error logging for EcmaScript 5.
Change to error logging for EcmaScript 5.
TypeScript
apache-2.0
JaCraig/clarity.js,JaCraig/clarity.js,JaCraig/clarity.js
--- +++ @@ -24,15 +24,15 @@ } //Logs the error message. Includes the message and stack trace information. - public logError: (message: string, stack: any[]) => void; + public logError: (message: string, stack: string) => void; //Sets the logging function that the system uses - public setLo...
552c6e9e3c1ab8415916eee2b52b2c5fe792a246
harness/client.ts
harness/client.ts
/** * Decode the window's hash component as if it were a query string. Return a * key--value map. */ function decode_hash(s: string): { [key: string]: string } { if (s[0] === "#") { s = s.slice(1); } let out: { [key: string]: string } = {}; for (let part of s.split('&')) { let [key, value] = part.sp...
// Eventually, it would be nice to import the .d.ts for the dingus, but it's // not currently possible to emit those definitions. declare function sscDingus(el: any, config: any): any; /** * Decode the window's hash component as if it were a query string. Return a * key--value map. */ function decode_hash(s: string...
Send the FPS back to the server
Send the FPS back to the server
TypeScript
mit
guoyiteng/braid,guoyiteng/braid,guoyiteng/braid,cucapra/braid,cucapra/braid,cucapra/braid,guoyiteng/braid,cucapra/braid,guoyiteng/braid,cucapra/braid,guoyiteng/braid,cucapra/braid
--- +++ @@ -1,3 +1,7 @@ +// Eventually, it would be nice to import the .d.ts for the dingus, but it's +// not currently possible to emit those definitions. +declare function sscDingus(el: any, config: any): any; + /** * Decode the window's hash component as if it were a query string. Return a * key--value map. @...
1e7f4c26875cf6957085b44b14790b9c6318a9cc
src/lib/EventPhase.ts
src/lib/EventPhase.ts
/** * An enum for possible event phases that an event can be in */ const enum EventPhase { /** * Indicates that the event is currently not being dispatched */ NONE = 0, /** * Indicates that the event is in the capturing phase, moving down from the top-most EventDispatcher * instance to the parent of the ta...
/** * An enum for possible event phases that an event can be in */ const enum EventPhase { /** * Indicates that the event is currently not being dispatched */ NONE, /** * Indicates that the event is in the capturing phase, moving down from the top-most EventDispatcher * instance to the parent of the target...
Remove self assigned values of the eventPhase enum
Remove self assigned values of the eventPhase enum
TypeScript
mit
mediamonks/seng-event,mediamonks/seng-event
--- +++ @@ -5,21 +5,21 @@ /** * Indicates that the event is currently not being dispatched */ - NONE = 0, + NONE, /** * Indicates that the event is in the capturing phase, moving down from the top-most EventDispatcher * instance to the parent of the target EventDispatcher */ - CAPTURING_PHASE = 1, ...
69b89cdf15c827376d20aa75dfb89abcc514892f
src/app/store/auth/reducers.ts
src/app/store/auth/reducers.ts
import { Action, ActionReducer } from '@ngrx/store'; import { isType } from 'typescript-fsa'; import { environment } from '../../../environments/environment'; import { login, loginSuccess, loginRedirect, logout } from '../actions'; import { AuthState, State } from '../state'; const initialState = { config: environ...
import { Action, ActionReducer } from '@ngrx/store'; import { isType } from 'typescript-fsa'; import { environment } from '../../../environments/environment'; import { login, loginSuccess, loginRedirect, logout } from '../actions'; import { AuthState, State } from '../state'; const initialState = { config: { ...en...
Copy environment config to initial state of authReducer
Copy environment config to initial state of authReducer This change makes the initial state immutable (as long as it is a simple dictionary) in an unlikely case that environment is modified.
TypeScript
bsd-3-clause
cumulous/web,cumulous/web,cumulous/web,cumulous/web
--- +++ @@ -7,7 +7,7 @@ import { AuthState, State } from '../state'; const initialState = { - config: environment.auth, + config: { ...environment.auth }, }; export function loginReducer(state: AuthState = initialState, action: Action) {
71ae78672effcd6bc33f56302d61a48e346ad569
lib/tasks/Test.ts
lib/tasks/Test.ts
import {buildHelper as helper, taskRunner} from "../Container"; import Util from "../Util"; const gulp = require("gulp4"); const mocha = require("gulp-mocha"); export default function Test() { return gulp.src(helper.getSettings().test, {read: false}) .pipe(mocha({ reporter: 'spec', ...
import {buildHelper as helper, taskRunner} from "../Container"; import Util from "../Util"; const gulp = require("gulp4"); const mocha = require("gulp-mocha"); export default function Test() { return gulp.src(helper.getSettings().test, {read: false}) .pipe(mocha({ reporter: 'spec', ...
Exit karma on test end to fix hanging tests
Exit karma on test end to fix hanging tests
TypeScript
mit
mtfranchetto/smild,mtfranchetto/smild,mtfranchetto/smild
--- +++ @@ -11,6 +11,9 @@ ts: require('ts-node/register') } })) + .once('end', function () { + process.exit(); + }) .on("error", (error) => { console.error(Util.formatError(error)); process.exit(1)
9347ee8d78cb1c2080edb987b76d8ddf42361e5e
resources/scripts/plugins/usePermissions.ts
resources/scripts/plugins/usePermissions.ts
import { ServerContext } from '@/state/server'; import { useDeepMemo } from '@/plugins/useDeepMemo'; export const usePermissions = (action: string | string[]): boolean[] => { const userPermissions = ServerContext.useStoreState(state => state.server.permissions); return useDeepMemo(() => { return (Arra...
import { ServerContext } from '@/state/server'; import { useDeepMemo } from '@/plugins/useDeepMemo'; export const usePermissions = (action: string | string[]): boolean[] => { const userPermissions = ServerContext.useStoreState(state => state.server.permissions); return useDeepMemo(() => { if (userPerm...
Fix permissions handling logic for admins/owners
Fix permissions handling logic for admins/owners
TypeScript
mit
Pterodactyl/Panel,Pterodactyl/Panel,Pterodactyl/Panel,Pterodactyl/Panel
--- +++ @@ -5,18 +5,23 @@ const userPermissions = ServerContext.useStoreState(state => state.server.permissions); return useDeepMemo(() => { + if (userPermissions[0] === '*') { + return ([] as boolean[]).fill( + true, 0, Array.isArray(action) ? action.length : 1, + ...
e5fc6b598325c861a7696e320b8de0eecb856cc7
server/helpers/custom-validators/servers.ts
server/helpers/custom-validators/servers.ts
import validator from 'validator' import { CONSTRAINTS_FIELDS } from '../../initializers/constants' import { isTestOrDevInstance } from '../core-utils' import { exists, isArray } from './misc' function isHostValid (host: string) { const isURLOptions = { require_host: true, require_tld: true } // We vali...
import validator from 'validator' import { CONFIG } from '@server/initializers/config' import { CONSTRAINTS_FIELDS } from '../../initializers/constants' import { exists, isArray } from './misc' function isHostValid (host: string) { const isURLOptions = { require_host: true, require_tld: true } // We val...
Fix host validation on locahost
Fix host validation on locahost
TypeScript
agpl-3.0
Chocobozzz/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube
--- +++ @@ -1,6 +1,6 @@ import validator from 'validator' +import { CONFIG } from '@server/initializers/config' import { CONSTRAINTS_FIELDS } from '../../initializers/constants' -import { isTestOrDevInstance } from '../core-utils' import { exists, isArray } from './misc' function isHostValid (host: string) { @@...
20f5e9b6de4e86a6d179b107553bb1a3ef0a4698
dangerfile.ts
dangerfile.ts
/* eslint-disable jest/no-jasmine-globals */ import { danger } from "danger" import * as fs from "fs" /** * Helpers */ const filesOnly = (file: string) => fs.existsSync(file) && fs.lstatSync(file).isFile() // Modified or Created can be treated the same a lot of the time const getCreatedFiles = (createdFiles: stri...
/* eslint-disable jest/no-jasmine-globals */ import { danger, warn } from "danger" import * as fs from "fs" /** * Helpers */ const filesOnly = (file: string) => fs.existsSync(file) && fs.lstatSync(file).isFile() // Modified or Created can be treated the same a lot of the time const getCreatedFiles = (createdFiles...
Add danger rule warning about routes smoke test
toolchain: Add danger rule warning about routes smoke test
TypeScript
mit
artsy/force,joeyAghion/force,joeyAghion/force,joeyAghion/force,artsy/force-public,joeyAghion/force,artsy/force,artsy/force-public,artsy/force,artsy/force
--- +++ @@ -1,5 +1,5 @@ /* eslint-disable jest/no-jasmine-globals */ -import { danger } from "danger" +import { danger, warn } from "danger" import * as fs from "fs" /** @@ -29,6 +29,18 @@ } } +function warnCreateSmokeTestIfRoutesFileChanged() { + const modified = danger.git.modified_files + console.log(...
77ebe87ec8683651001f041c947d642994cbdfea
scripts/build-watch.ts
scripts/build-watch.ts
import buildTypings from './utils/buildTypings'; import generateTypings, { Logger } from './utils/generateTypings'; import clearCache from './utils/clearCache'; const nodemon = require('nodemon'); const configsFile = 'src/configs.ts'; nodemon({ script: './scripts/nothing.js', ext: 'ts md', watch: ['templates/',...
import buildTypings from './utils/buildTypings'; import generateTypings, { Logger } from './utils/generateTypings'; import clearCache from './utils/clearCache'; import * as path from 'path'; const configs = require('./configs.json'); const nodemon = require('nodemon'); const configsFile = 'src/configs.ts'; const cwd...
Update scripts generate index.d.ts after other d.ts
Update scripts generate index.d.ts after other d.ts
TypeScript
mit
ikatyang/types-ramda,ikatyang/types-ramda
--- +++ @@ -1,14 +1,22 @@ import buildTypings from './utils/buildTypings'; import generateTypings, { Logger } from './utils/generateTypings'; import clearCache from './utils/clearCache'; +import * as path from 'path'; + +const configs = require('./configs.json'); const nodemon = require('nodemon'); const confi...
7dc95bb73ec4ea1ebece027d9f78610b4c750c65
server/model.config.ts
server/model.config.ts
/// <reference path="../typings/tsd.d.ts" /> import mongoose = require('mongoose'); export var dbUri = process.env.MONGODB_URI || 'mongodb://localhost:27017/vimfika'; export var dbConnection = mongoose.createConnection(dbUri); export function isUniqueKeyConstraint(error: any) { return error && error.name == 'Mon...
/// <reference path="../typings/tsd.d.ts" /> import mongoose = require('mongoose'); export var dbUri = process.env.VIMFIKA_MONGODB_URI || process.env.MONGODB_URI || 'mongodb://localhost:27017/vimfika'; export var dbConnection = mongoose.createConnection(dbUri); export function isUniqueKeyConstraint(error: any) { ...
Add new environment variable for mongodb url
Add new environment variable for mongodb url
TypeScript
mit
pgrm/vimfika,pgrm/vimfika
--- +++ @@ -2,7 +2,7 @@ import mongoose = require('mongoose'); -export var dbUri = process.env.MONGODB_URI || 'mongodb://localhost:27017/vimfika'; +export var dbUri = process.env.VIMFIKA_MONGODB_URI || process.env.MONGODB_URI || 'mongodb://localhost:27017/vimfika'; export var dbConnection = mongoose.createConne...
7a8c7f4925b18cf1ee5df8fdc0be83bb6de28170
ui/ui-app/src/main/resources/static/js/repository/ng5-import-template.component.ts
ui/ui-app/src/main/resources/static/js/repository/ng5-import-template.component.ts
import {Component, Directive, ElementRef, Injector, Input} from "@angular/core"; import {UpgradeComponent} from "@angular/upgrade/static"; import * as angular from 'angular'; /** * Angular 5 entry component for Import Template page. */ @Component({ template: ` <ng5-import-template [template]="template"></...
import {Component, Directive, ElementRef, Injector, Input} from "@angular/core"; import {UpgradeComponent} from "@angular/upgrade/static"; /** * Angular 5 entry component for Import Template page. */ @Component({ template: ` <ng5-import-template [template]="template"></ng5-import-template> ` }) export...
Revert "Added missing import, fix build failure"
Revert "Added missing import, fix build failure" This reverts commit 9e3cb4b4a1a79e297d34472c2ee2645c6dab8ff9.
TypeScript
apache-2.0
Teradata/kylo,Teradata/kylo,Teradata/kylo,Teradata/kylo,Teradata/kylo
--- +++ @@ -1,6 +1,5 @@ import {Component, Directive, ElementRef, Injector, Input} from "@angular/core"; import {UpgradeComponent} from "@angular/upgrade/static"; -import * as angular from 'angular'; /**
2b8f0470dc08bc29e0e52dc549b2a33498d38887
src/v2/pages/channel/components/ChannelPageMetaTags/fragments/channelPageMetaTags.ts
src/v2/pages/channel/components/ChannelPageMetaTags/fragments/channelPageMetaTags.ts
import { gql } from '@apollo/client' export const channelPageMetaTagsFragment = gql` fragment ChannelPageMetaTags on Channel { __typename id meta_title: title meta_description: description(format: MARKDOWN) canonical: href(absolute: true) is_nsfw image_url(size: DISPLAY) } `
import { gql } from '@apollo/client' export const channelPageMetaTagsFragment = gql` fragment ChannelPageMetaTags on Channel { __typename id meta_title: title meta_description: description(format: MARKDOWN) canonical: href(absolute: true) is_nsfw image_url(size: DISPLAY) visibility ...
Add RSS meta tag to channel
Add RSS meta tag to channel
TypeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
--- +++ @@ -9,5 +9,6 @@ canonical: href(absolute: true) is_nsfw image_url(size: DISPLAY) + visibility } `
dc2215787a3ce11035e8ebfe58e1bc66499aedbb
e2e/steps/app.ts
e2e/steps/app.ts
import { $, location, locationOf, navigateTo, steps } from '../support/world'; steps(({When, Then}) => { When(/^I open our app$/, () => { navigateTo('/'); }); Then(/^I should see a message saying that the app works$/, () => { $('app-root h1').getText().should.become('app works!'); }); Then(/^I should...
import { $, location, locationOf, navigateTo, steps } from '../support/world'; steps(({Given, When, Then}) => { Given(/^I am on the "(.*)" page$/, page => navigateTo((locationOf(page)))); When(/^I open our app$/, () => navigateTo('/')); Then(/^I should see a message saying that the app works$/, () => ...
Fix async e2e tests and shorten their syntax
Fix async e2e tests and shorten their syntax It turns out that to properly support async tests, we need to RETURN their output (as Promise) instead of just calling them. We now use the shorthand return syntax (() => ...), which also renders the steps more succinct.
TypeScript
bsd-3-clause
cumulous/web,cumulous/web,cumulous/web,cumulous/web
--- +++ @@ -1,13 +1,12 @@ import { $, location, locationOf, navigateTo, steps } from '../support/world'; -steps(({When, Then}) => { - When(/^I open our app$/, () => { - navigateTo('/'); - }); - Then(/^I should see a message saying that the app works$/, () => { - $('app-root h1').getText().should.become('a...
0e3204fc14ce6fce37af45a2357c60b182d9f5f6
src/components/list-bullet/list-bullet.ts
src/components/list-bullet/list-bullet.ts
import Vue from 'vue'; import { PluginObject } from 'vue'; import Component from 'vue-class-component'; import { Prop } from 'vue-property-decorator'; import WithRender from './list-bullet.html?style=./list-bullet.scss'; import { LIST_BULLET_NAME } from '../component-names'; @WithRender @Component export class MList e...
import Vue from 'vue'; import { PluginObject } from 'vue'; import Component from 'vue-class-component'; import { Prop } from 'vue-property-decorator'; import WithRender from './list-bullet.html?style=./list-bullet.scss'; import { LIST_BULLET_NAME } from '../component-names'; @WithRender @Component export class MListBu...
Change name of list bullet component
Change name of list bullet component
TypeScript
apache-2.0
ulaval/modul-components,ulaval/modul-components,ulaval/modul-components
--- +++ @@ -7,16 +7,16 @@ @WithRender @Component -export class MList extends Vue { +export class MListBullet extends Vue { @Prop({ default: ['Element 1', 'Element 2', 'Element 3'] }) public values: string[]; private componentName = LIST_BULLET_NAME; } -const ListPlugin: PluginObject<any> = { +co...
c1b97e5d1f8c97fdf2d35d95f2a34e3a52662369
desktop/app/src/utils/getDefaultPluginsIndex.tsx
desktop/app/src/utils/getDefaultPluginsIndex.tsx
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ export default function () { // eslint-disable-next-line import/no-unresolved return require('../defaultPlugins'...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ export default function () { // eslint-disable-next-line import/no-unresolved const index = require('../defaultP...
Fix loading plugins in dev mode
Fix loading plugins in dev mode Summary: Fixed loading plugins in dev mode Reviewed By: timur-valiev Differential Revision: D21262894 fbshipit-source-id: c4ab6902d3153c3580c71f27df91290122627fae
TypeScript
mit
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
--- +++ @@ -9,5 +9,6 @@ export default function () { // eslint-disable-next-line import/no-unresolved - return require('../defaultPlugins'); + const index = require('../defaultPlugins'); + return index.default || index; }
bb19cabf25e3bfff0f82876fce7c987f28fa5942
frontend/src/app/private-route/private-route.tsx
frontend/src/app/private-route/private-route.tsx
import { Redirect } from "@reach/router"; import React, { Component } from "react"; import { useLoginState } from "../profile/hooks"; export const PrivateRoute = ({ component: PrivateComponent, lang, ...rest }: any) => { const [loggedIn, _] = useLoginState(false); const loginUrl = `${lang}/login`; if (!l...
import { Redirect } from "@reach/router"; import React, { Component } from "react"; import { useLoginState } from "../profile/hooks"; export const PrivateRoute = ({ component: PrivateComponent, lang, ...rest }: any) => { const [loggedIn, _] = useLoginState(false); const loginUrl = `${lang}/login`; if (!l...
Fix PrivateRoute pass lang prop
Fix PrivateRoute pass lang prop
TypeScript
mit
patrick91/pycon,patrick91/pycon
--- +++ @@ -15,5 +15,5 @@ return <Redirect to={loginUrl} noThrow={true} />; } - return <PrivateComponent {...rest} />; + return <PrivateComponent lang={lang} {...rest} />; };
6af5520c3f48b944f56e78f386c1001012665931
source/danger/peril_platform.ts
source/danger/peril_platform.ts
import { GitHub } from "danger/distribution/platforms/GitHub" import { Platform } from "danger/distribution/platforms/platform" import { dsl } from "./danger_run" /** * When Peril is running a dangerfile for a PR we can use the default GitHub from Danger * however, an event like an issue comment or a user creation h...
import { GitHub } from "danger/distribution/platforms/GitHub" import { Platform } from "danger/distribution/platforms/platform" import { dsl } from "./danger_run" /** * When Peril is running a dangerfile for a PR we can use the default GitHub from Danger * however, an event like an issue comment or a user creation h...
REmove the updateStatus function from non-PR runs
REmove the updateStatus function from non-PR runs
TypeScript
mit
danger/peril,danger/peril,danger/peril,danger/peril,danger/peril
--- +++ @@ -25,7 +25,7 @@ }, name: "", updateOrCreateComment: github ? github.updateOrCreateComment : nullFunc, - updateStatus: github ? github.updateStatus : nullFunc, + updateStatus: nullFunc, } return platform }
a0db190fa3526919f15a1eb410f96c7406f793e4
jquery.are-you-sure/jquery.are-you-sure.d.ts
jquery.are-you-sure/jquery.are-you-sure.d.ts
// Type definitions for jquery.are-you-sure.js // Project: https://github.com/codedance/jquery.AreYouSure // Definitions by: Jon Egerton <https://github.com/jonegerton> // Definitions: https://github.com/borisyankov/DefinitelyTyped /// <reference path="../jquery/jquery.d.ts" /> /**Options available to control dirty ...
// Type definitions for jquery.are-you-sure.js // Project: https://github.com/codedance/jquery.AreYouSure // Definitions by: Jon Egerton <https://github.com/jonegerton> // Definitions: https://github.com/borisyankov/DefinitelyTyped /// <reference path="../jquery/jquery.d.ts" /> /**Options available to control dirty ...
Make silent option on AreYouSureOptions optional
Make silent option on AreYouSureOptions optional Make silent option on AreYouSureOptions optional
TypeScript
mit
igorraush/DefinitelyTyped,nitintutlani/DefinitelyTyped,jsaelhof/DefinitelyTyped,thSoft/DefinitelyTyped,panuhorsmalahti/DefinitelyTyped,44ka28ta/DefinitelyTyped,chrismbarr/DefinitelyTyped,aroder/DefinitelyTyped,davidpricedev/DefinitelyTyped,lightswitch05/DefinitelyTyped,scriby/DefinitelyTyped,pocesar/DefinitelyTyped,Age...
--- +++ @@ -21,7 +21,7 @@ fieldSelector?: string; /**Make Are-You-Sure "silent" by disabling the warning message*/ - silent: boolean; + silent?: boolean; } interface AreYouSure {
da084cb560d0e4053249e72d842623166afa16c0
src/app/common/forms.service.ts
src/app/common/forms.service.ts
import { Injectable } from '@angular/core'; import { DynamicFormControlModel, DynamicInputModel } from '@ng2-dynamic-forms/core'; @Injectable() export class FormFactoryService { createFormModel(properties: Map<string, any>): DynamicFormControlModel[] { const answer = <DynamicFormControlModel[]>[]; for (cons...
import { Injectable } from '@angular/core'; import { DynamicFormControlModel, DynamicInputModel } from '@ng2-dynamic-forms/core'; @Injectable() export class FormFactoryService { createFormModel(properties: Map<string, any>): DynamicFormControlModel[] { const answer = <DynamicFormControlModel[]>[]; for (cons...
Use best option for form labels
Use best option for form labels
TypeScript
apache-2.0
kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client
--- +++ @@ -25,7 +25,7 @@ } formField = new DynamicInputModel({ id: value.name || key, - label: value.title || value.label, + label: value.title || value.displayName || value.name || key, hint: value.description, inputType: type, ...
3904733823a9da50033708d6badb7508348650b5
packages/@glimmer/util/lib/platform-utils.ts
packages/@glimmer/util/lib/platform-utils.ts
export type Option<T> = T | null; export type Maybe<T> = Option<T> | undefined | void; export type Factory<T> = new (...args: unknown[]) => T; export function keys<T>(obj: T): Array<keyof T> { return Object.keys(obj) as Array<keyof T>; } export function unwrap<T>(val: Maybe<T>): T { if (val === null || val === u...
export type Option<T> = T | null; export type Maybe<T> = Option<T> | undefined | void; export type Factory<T> = new (...args: unknown[]) => T; export const HAS_NATIVE_SYMBOL = (function () { if (typeof Symbol !== 'function') { return false; } // eslint-disable-next-line symbol-description return typeof S...
Use custom symbol whenever native is not present
[BUGFIX] Use custom symbol whenever native is not present Uses the custom symbol logic whenever native is not present, preventing us from using polyfills. This ensures that our polyfilled symbols have the same assignment semantics as native symbols, specifically Object.assign.
TypeScript
mit
tildeio/glimmer,glimmerjs/glimmer-vm,glimmerjs/glimmer-vm,tildeio/glimmer,glimmerjs/glimmer-vm,tildeio/glimmer
--- +++ @@ -2,6 +2,15 @@ export type Maybe<T> = Option<T> | undefined | void; export type Factory<T> = new (...args: unknown[]) => T; + +export const HAS_NATIVE_SYMBOL = (function () { + if (typeof Symbol !== 'function') { + return false; + } + + // eslint-disable-next-line symbol-description + return type...
efd95a8b7a86184c93f5a27595d0594b356d0db3
src/types/components/controller.d.ts
src/types/components/controller.d.ts
import Swiper from '../swiper-class'; export interface ControllerMethods { /** * Pass here another Swiper instance or array with Swiper instances that should be controlled * by this Swiper */ control?: Swiper; } export interface ControllerEvents {} export interface ControllerOptions { /** * Pass he...
import Swiper from '../swiper-class'; export interface ControllerMethods { /** * Pass here another Swiper instance or array with Swiper instances that should be controlled * by this Swiper */ control?: Swiper; } export interface ControllerEvents {} export interface ControllerOptions { /** * Pass he...
Fix control type in ControllerOptions interface
Fix control type in ControllerOptions interface Regarding the documentation `control` could be Swiper instance or array with Swiper instances. Read more - https://swiperjs.com/swiper-api#controller-methods.
TypeScript
mit
nolimits4web/Swiper,nolimits4web/Swiper
--- +++ @@ -15,7 +15,7 @@ * Pass here another Swiper instance or array with Swiper instances that should be controlled * by this Swiper */ - control?: Swiper; + control?: Swiper | Swiper[]; /** * Set to `true` and controlling will be in inverse direction
f740459678fdb7458338cfb3396edfb317d4fb03
packages/tux/src/components/AlertBar/index.tsx
packages/tux/src/components/AlertBar/index.tsx
import React from 'react' import classNames from 'classnames' import { tuxColors } from '../../styles' const AlertBar = () => ( <div className="AlertBar"> <p>You are in edit mode. Any changes you make will be published.</p> <style jsx>{` .AlertBar { background: ${tuxColors.colorPink}; c...
import React, { Component } from 'react' import classNames from 'classnames' import { tuxColors } from '../../styles' class AlertBar extends Component { hideDelay = 1500 state = { isHidden: false, } componentDidMount() { this.timer = setTimeout(() => { this.setState({ isHidden: true ...
Make AlertBar hide after X ms. Appear on hover.
Make AlertBar hide after X ms. Appear on hover.
TypeScript
mit
aranja/tux,aranja/tux,aranja/tux
--- +++ @@ -1,25 +1,65 @@ -import React from 'react' +import React, { Component } from 'react' import classNames from 'classnames' import { tuxColors } from '../../styles' -const AlertBar = () => ( - <div className="AlertBar"> - <p>You are in edit mode. Any changes you make will be published.</p> - <style ...
58b5927fa5680c23be45d46d792cbd3f6e7e67c8
packages/mugshot/src/interfaces/screenshotter.ts
packages/mugshot/src/interfaces/screenshotter.ts
import { MugshotSelector } from '../lib/mugshot'; export interface ScreenshotOptions { /** * All elements identified by this selector will be painted black * before taking the screenshot. * TODO: support rects * TODO: configure the color */ ignore?: string; } /** * Thrown when the selector passed ...
import { MugshotSelector } from '../lib/mugshot'; export interface ScreenshotOptions { /** * All elements identified by this selector will be painted black * before taking the screenshot. * TODO: configure the color */ ignore?: MugshotSelector; } /** * Thrown when the selector passed to [[Mugshot.che...
Change ignore type to be MugshotSelector
Change ignore type to be MugshotSelector
TypeScript
mit
uberVU/mugshot,uberVU/mugshot
--- +++ @@ -4,10 +4,9 @@ /** * All elements identified by this selector will be painted black * before taking the screenshot. - * TODO: support rects * TODO: configure the color */ - ignore?: string; + ignore?: MugshotSelector; } /**
739cea11323ea2efe26ab6c3fa2631eccb1de1af
assets/components/tsx/Header.tsx
assets/components/tsx/Header.tsx
import h from '../../../lib/tsx/TsxParser'; export interface LinkProps { href: string; title: string; } function Link(props: Partial<LinkProps>): JSX.Element { const { href, title } = props as LinkProps; return ( <a href={href} title={title} target="_blank" rel="noopener"> {title}...
import h from '../../../lib/tsx/TsxParser'; export interface LinkProps { href: string; title: string; } function Link(props: Partial<LinkProps>): JSX.Element { const { href, title } = props as LinkProps; return ( <a href={href} title={title} target="_blank" rel="noopener"> {title}...
Fix links being comma seperated.
Fix links being comma seperated.
TypeScript
mit
birkett/a-birkett.co.uk
--- +++ @@ -36,7 +36,7 @@ {firstName} <strong>{lastName}</strong> </h1> - <nav>{linkElements}</nav> + <nav>{linkElements.join('')}</nav> </header> ); }
5938a872641614d7f4a6af8505791f2aa68df701
packages/components/containers/filePreview/UnsupportedPreview.tsx
packages/components/containers/filePreview/UnsupportedPreview.tsx
import React from 'react'; import { c } from 'ttag'; import unsupportedPreviewSvg from 'design-system/assets/img/errors/broken-file.svg'; import corruptedPreviewSvg from 'design-system/assets/img/errors/broken-image.svg'; import { PrimaryButton } from '../../components'; import { useActiveBreakpoint } from '../../hooks...
import React from 'react'; import { c } from 'ttag'; import unsupportedPreviewSvg from 'design-system/assets/img/errors/preview-unavailable.svg'; import corruptedPreviewSvg from 'design-system/assets/img/errors/broken-image.svg'; import { PrimaryButton } from '../../components'; import { useActiveBreakpoint } from '../...
Replace illustration for unavailable preview
Replace illustration for unavailable preview
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -1,6 +1,6 @@ import React from 'react'; import { c } from 'ttag'; -import unsupportedPreviewSvg from 'design-system/assets/img/errors/broken-file.svg'; +import unsupportedPreviewSvg from 'design-system/assets/img/errors/preview-unavailable.svg'; import corruptedPreviewSvg from 'design-system/assets/img/...
49eec36c2b336446a30b0c80fcebe53bba3079d2
src/logger/index.ts
src/logger/index.ts
import chalk from 'chalk'; import { RuleToRuleApplicationResult } from './../types'; import logToConsole from './console'; import { compactProjectLogs } from './flatten'; export const consoleLogger = (projectResult: RuleToRuleApplicationResult): number => { const projectLogs = compactProjectLogs(projectResult); ...
import chalk from 'chalk'; import { RuleToRuleApplicationResult } from './../types'; import logToConsole from './console'; import { compactProjectLogs } from './flatten'; export const consoleLogger = (projectResult: RuleToRuleApplicationResult): number => { const projectLogs = compactProjectLogs(projectResult); ...
Return an error code equal to the number of errors found
Return an error code equal to the number of errors found
TypeScript
mit
stricter/stricter,stricter/stricter
--- +++ @@ -5,10 +5,16 @@ export const consoleLogger = (projectResult: RuleToRuleApplicationResult): number => { const projectLogs = compactProjectLogs(projectResult); + if (projectLogs.length) { console.log(chalk.bgBlackBright('Project')); logToConsole(projectLogs); } - retur...
a24594d7912b686d8f8df1c3db542a6a948ff4bd
test/app/settings/settings.component.spec.ts
test/app/settings/settings.component.spec.ts
import { TestBed, ComponentFixture } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { FormsModule } from '@angular/forms'; import { Title } from '@angular/platform-browser'; import { DragulaServ...
import { TestBed, ComponentFixture } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { FormsModule } from '@angular/forms'; import { Title } from '@angular/platform-browser'; import { SettingsCom...
Remove Dragula from tests as well
Remove Dragula from tests as well
TypeScript
mit
kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard
--- +++ @@ -3,8 +3,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { FormsModule } from '@angular/forms'; import { Title } from '@angular/platform-browser'; - -import { DragulaService } from 'ng2-dragula'; import { SettingsComponent } from '../../../src/app/settings/settings....
8cce17ecad84efc17cc2ebaf6ffc0bfced237aaf
packages/components/containers/autoReply/AutoReplyForm/fields/DaysOfWeekField.tsx
packages/components/containers/autoReply/AutoReplyForm/fields/DaysOfWeekField.tsx
import { c } from 'ttag'; import { getFormattedWeekdays } from '@proton/shared/lib/date/date'; import { dateLocale } from '@proton/shared/lib/i18n'; import { Checkbox } from '../../../../components'; import SettingsLayout from '../../../account/SettingsLayout'; import SettingsLayoutRight from '../../../account/Settin...
import { c } from 'ttag'; import { getFormattedWeekdays } from '@proton/shared/lib/date/date'; import { dateLocale } from '@proton/shared/lib/i18n'; import { Checkbox } from '../../../../components'; import SettingsLayout from '../../../account/SettingsLayout'; import SettingsLayoutRight from '../../../account/Settin...
Fix auto-reply daily option display
Fix auto-reply daily option display - added some margin - fix vocalization "because we worth it"
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -20,12 +20,19 @@ return ( <SettingsLayout> <SettingsLayoutLeft> - <label className="text-semibold">{c('Label').t`Days of the week`}</label> + <span id="label-days-of-week" className="label text-semibold">{c('Label').t`Days of the week`}</span> ...
870757470473a692eb09947ea6ed2e3d45e4027f
src/extension.ts
src/extension.ts
'use strict'; import * as net from 'net'; import { workspace, ExtensionContext, Uri } from 'vscode'; import { ServerOptions, Executable, LanguageClient, LanguageClientOptions, TransportKind } from 'vscode-languageclient'; // this method is called when your extension is activated // your extension is activated the ve...
'use strict'; import * as net from 'net'; import { workspace, ExtensionContext, Uri } from 'vscode'; import { ServerOptions, Executable, LanguageClient, LanguageClientOptions, TransportKind } from 'vscode-languageclient'; // this method is called when your extension is activated // your extension is activated the ve...
Watch for changes to SwiftPM llbuild configurations
Watch for changes to SwiftPM llbuild configurations
TypeScript
mit
RLovelett/vscode-swift
--- +++ @@ -24,7 +24,10 @@ documentSelector: ['swift'], synchronize: { configurationSection: 'swift', - fileEvents: workspace.createFileSystemWatcher('**/*.swift', false, true, false) + fileEvents: [ + workspace.createFileSystemWatcher('**/*.swift', ...
f5daff0d00407cc9d57b780f2d6fd33a16ab65b7
projects/library/drawer/src/drawer-animations.ts
projects/library/drawer/src/drawer-animations.ts
import { animate, AnimationTriggerMetadata, state, style, transition, trigger, } from '@angular/animations'; /** * Animations used by the {@link TsDrawerComponent}. */ export const tsDrawerAnimations: { readonly transformDrawer: AnimationTriggerMetadata; } = { // Animation that expands and collapses ...
import { animate, AnimationTriggerMetadata, state, style, transition, trigger, } from '@angular/animations'; /** * Animations used by the {@link TsDrawerComponent}. */ export const tsDrawerAnimations: { readonly transformDrawer: AnimationTriggerMetadata; } = { // Animation that expands and collapses ...
Fix missing animation when shadow is always visible
fix(Drawer): Fix missing animation when shadow is always visible
TypeScript
mit
GetTerminus/terminus-ui,GetTerminus/terminus-ui,GetTerminus/terminus-ui,GetTerminus/terminus-ui
--- +++ @@ -30,7 +30,7 @@ width: '{{ collapsedSize }}', }), { params: { collapsedSize: '3.75rem' } }), transition('void => open-instant', animate('0ms')), - transition('void <=> open, open-instant => void, left-close <=> open, right-close <=> open', + transition('void <=> open, open-instant => ...
f70989b38ecfc6c94ce9567394f39f2acea185bb
src/index.ts
src/index.ts
import TBufferedTransport = require('thrift/lib/nodejs/lib/thrift/buffered_transport') import TJSONProtocol = require('thrift/lib/nodejs/lib/thrift/json_protocol') import InputBufferUnderrunError = require('thrift/lib/nodejs/lib/thrift/input_buffer_underrun_error') function handleBody(processor, buffer) { const tran...
import TBufferedTransport = require('thrift/lib/nodejs/lib/thrift/buffered_transport') import InputBufferUnderrunError = require('thrift/lib/nodejs/lib/thrift/input_buffer_underrun_error') import TJSONProtocol = require('thrift/lib/nodejs/lib/thrift/json_protocol') function handleBody(processor, buffer) { const tran...
Fix a couple things with plugin resolution
Fix a couple things with plugin resolution
TypeScript
apache-2.0
creditkarma/thrift-server,creditkarma/thrift-server
--- +++ @@ -1,6 +1,6 @@ import TBufferedTransport = require('thrift/lib/nodejs/lib/thrift/buffered_transport') +import InputBufferUnderrunError = require('thrift/lib/nodejs/lib/thrift/input_buffer_underrun_error') import TJSONProtocol = require('thrift/lib/nodejs/lib/thrift/json_protocol') -import InputBufferUnderr...
96e712b399998437309ab11c2864b3bf30ae9c2c
src/index.ts
src/index.ts
import { getAST } from './ast'; import { emit } from './emitter'; declare function require(name: string); declare var process: any; (function () { if (typeof process !== 'undefined' && process.nextTick && !process.browser && typeof require !== "undefined") { var fs = require('fs'); if (process.argv.length <...
import { getAST } from './ast'; import { emit } from './emitter'; declare function require(name: string); declare var process: any; const util = require('util'); (function () { if (typeof process !== 'undefined' && process.nextTick && !process.browser && typeof require !== "undefined") { var fs = require('fs');...
Use process.stdout.write instead of console.log
Use process.stdout.write instead of console.log
TypeScript
mit
AmnisIO/typewriter,AmnisIO/typewriter,AmnisIO/typewriter
--- +++ @@ -3,6 +3,7 @@ declare function require(name: string); declare var process: any; +const util = require('util'); (function () { if (typeof process !== 'undefined' && process.nextTick && !process.browser && typeof require !== "undefined") { @@ -12,7 +13,7 @@ var fileNames = process.argv.slice(2)...
96d2479d4cb4c0350ea81699469096d94257dd8c
src/queue.ts
src/queue.ts
class Queue { private _running = false; private _queue: Function[] = []; public push(f: Function) { this._queue.push(f); if (!this._running) { // if nothing is running, then start the engines! this._next(); } return this; // for chaining fun! } private _next() { this._runn...
class Queue { private _running = false; private _queue: Function[] = []; public push(f: Function) { this._queue.push(f); if (!this._running) { // if nothing is running, then start the engines! this._next(); } return this; // for chaining fun! } private _next() { this._runn...
Fix ' Cannot find name 'shift'' eror
Fix ' Cannot find name 'shift'' eror
TypeScript
apache-2.0
KamiKillertO/vscode-colorize,KamiKillertO/vscode-colorize
--- +++ @@ -16,13 +16,14 @@ } private _next() { this._running = false; - if(shift) { - this._running = true; - shift(()=> { - this._next(); - }); // get the first element off the queue let action = this._queue.shift(); + if (action) { + this._running = t...
df870f4e363e0d3df9afc9d44f7aaf2d3451a9b7
applications/account/src/app/content/AccountPublicLayoutWrapper.tsx
applications/account/src/app/content/AccountPublicLayoutWrapper.tsx
import * as React from 'react'; import { c } from 'ttag'; import locales from 'proton-shared/lib/i18n/locales'; import { ProtonLogo, AccountSupportDropdown } from 'react-components'; import AccountPublicLayout, { Props as AccountProps } from 'react-components/containers/signup/AccountPublicLayout'; const AccountPublic...
import * as React from 'react'; import { c } from 'ttag'; import locales from 'proton-shared/lib/i18n/locales'; import { ProtonLogo, AccountSupportDropdown } from 'react-components'; import AccountPublicLayout, { Props as AccountProps } from 'react-components/containers/signup/AccountPublicLayout'; const AccountPublic...
Fix - link without decoration
Fix - link without decoration
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -10,7 +10,7 @@ locales={locales} center={<ProtonLogo />} right={ - <AccountSupportDropdown noCaret className="link"> + <AccountSupportDropdown noCaret className="link nodecoration"> {c('Action').t`Need help?`} ...
a433e28800718998eae856ae352bf6ab97155612
src/home/components/games-table.component.ts
src/home/components/games-table.component.ts
import {Component, Input} from 'angular2/core'; import {ROUTER_DIRECTIVES} from 'angular2/router'; import {Game} from '../../shared/models/game.model'; import {FactionBadgeComponent} from '../../shared/components/faction-badge.component'; import {AgendaBadgeComponent} from '../../shared/components/agenda-badge.compone...
import {Component, Input, ChangeDetectionStrategy} from 'angular2/core'; import {ROUTER_DIRECTIVES} from 'angular2/router'; import {Game} from '../../shared/models/game.model'; import {FactionBadgeComponent} from '../../shared/components/faction-badge.component'; import {AgendaBadgeComponent} from '../../shared/compon...
Enforce onPush for games table, no changed-after-render
Enforce onPush for games table, no changed-after-render
TypeScript
mit
davewragg/agot-spa,davewragg/agot-spa,davewragg/agot-spa
--- +++ @@ -1,4 +1,4 @@ -import {Component, Input} from 'angular2/core'; +import {Component, Input, ChangeDetectionStrategy} from 'angular2/core'; import {ROUTER_DIRECTIVES} from 'angular2/router'; import {Game} from '../../shared/models/game.model'; @@ -13,6 +13,7 @@ moduleId: module.id, templateUrl: './ga...
56bb5e56e0c666457a1e19d22d3c73aaa8780161
src/app/collections/Metrics.tsx
src/app/collections/Metrics.tsx
import { D2ManifestDefinitions } from 'app/destiny2/d2-definitions'; import BungieImage from 'app/dim-ui/BungieImage'; import { ALL_TRAIT } from 'app/search/d2-known-values'; import _ from 'lodash'; import React from 'react'; import Metric from './Metric'; import styles from './Metrics.m.scss'; import { DimMetric } fro...
import { D2ManifestDefinitions } from 'app/destiny2/d2-definitions'; import BungieImage from 'app/dim-ui/BungieImage'; import { ALL_TRAIT } from 'app/search/d2-known-values'; import _ from 'lodash'; import React from 'react'; import Metric from './Metric'; import styles from './Metrics.m.scss'; import { DimMetric } fro...
Add a key to metrics
Add a key to metrics
TypeScript
mit
DestinyItemManager/DIM,DestinyItemManager/DIM,delphiactual/DIM,delphiactual/DIM,delphiactual/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,delphiactual/DIM
--- +++ @@ -27,7 +27,7 @@ return ( <div className={styles.metrics}> {_.map(groupedMetrics, (metrics, traitHash) => ( - <div> + <div key={traitHash}> <div className={styles.title}> <BungieImage src={traits[traitHash].displayProperties.icon} /> {traits[t...
430945d064450ec0e59477b3b4a49b3ba50f7b70
src/shared/lib/getOverlappingStudies.spec.ts
src/shared/lib/getOverlappingStudies.spec.ts
// import { assert } from 'chai'; // import getOverlappingStudies from "./getOverlappingStudies"; // // describe('',()=>{ // // it('', ()=>{ // const ret = getOverlappingStudies() // }) // // })
import { assert } from 'chai'; import getOverlappingStudies from "./getOverlappingStudies"; import {CancerStudy} from "../api/generated/CBioPortalAPI"; describe('getOverlappingStudies',()=>{ it('finds overlapping studies based on pub/nonpub signature in studyId', ()=>{ let studies = [ { study...
Add some tests for getOverlappingStudies
Add some tests for getOverlappingStudies Former-commit-id: 09cbdd2b41fd6701bee5cc59799fe69afee1b240
TypeScript
agpl-3.0
alisman/cbioportal-frontend,cBioPortal/cbioportal-frontend,cBioPortal/cbioportal-frontend,cBioPortal/cbioportal-frontend,cBioPortal/cbioportal-frontend,alisman/cbioportal-frontend,cBioPortal/cbioportal-frontend,alisman/cbioportal-frontend,alisman/cbioportal-frontend,alisman/cbioportal-frontend,alisman/cbioportal-fronte...
--- +++ @@ -1,10 +1,31 @@ -// import { assert } from 'chai'; -// import getOverlappingStudies from "./getOverlappingStudies"; -// -// describe('',()=>{ -// -// it('', ()=>{ -// const ret = getOverlappingStudies() -// }) -// -// }) +import { assert } from 'chai'; +import getOverlappingStudies from "./g...
fe6b37dfd0eba9df711d28f0ffa81e2b2b72ee61
src/store.ts
src/store.ts
import { createStore, compose, applyMiddleware } from 'redux'; import createSagaMiddleware from 'redux-saga'; import * as immutableTransform from 'redux-persist-transform-immutable'; import { autoRehydrate, persistStore } from 'redux-persist'; import * as localForage from 'localforage'; import { rootReducer } fr...
import { createStore, compose, applyMiddleware } from 'redux'; import createSagaMiddleware from 'redux-saga'; import * as immutableTransform from 'redux-persist-transform-immutable'; import { autoRehydrate, persistStore } from 'redux-persist'; import * as localForage from 'localforage'; import { rootReducer } fr...
Add watchers to persistated state.
Add watchers to persistated state.
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
--- +++ @@ -31,12 +31,13 @@ 'queue', 'sortingOption', 'searchOptions', - 'topticonSettings' + 'topticonSettings', + 'watchers' ], storage: localForage, transforms: [ immutableTransform({ - whitelist: [ 'hitBlocklist', 'requesterBlocklist', 'queue' ] + whitelist: [ 'hitB...
9b31d8325e5cc8833b9eb93b1cee7cc71350ebbc
src/graph/edge/EdgeDirection.ts
src/graph/edge/EdgeDirection.ts
/** Enumeration for directions * @enum string * @readonly */ export enum EdgeDirection { /** * Next photo in the sequence */ NEXT = 0, /** * Previous photo in the sequence */ PREV = 3, /** * Step to the photo on the left */ STEP_LEFT, /** * Step to th...
/** * Enumeration for edge directions * @enum {number} * @readonly * @description Directions for edges in node graph describing * sequence, spatial and node type relations between nodes. */ export enum EdgeDirection { /** * Next node in the sequence */ NEXT = 0, /** * Previous node in...
Comment all edge directions and remove unused.
Comment all edge directions and remove unused.
TypeScript
mit
mapillary/mapillary-js,mapillary/mapillary-js
--- +++ @@ -1,55 +1,69 @@ -/** Enumeration for directions - * @enum string +/** + * Enumeration for edge directions + * @enum {number} * @readonly + * @description Directions for edges in node graph describing + * sequence, spatial and node type relations between nodes. */ export enum EdgeDirection { + /** ...
5af0ccb73971eb5699f94a46db1132a5b4a6ba8f
AntSharesApp/scripts/AntShares/UI/TabBase.ts
AntSharesApp/scripts/AntShares/UI/TabBase.ts
namespace AntShares.UI { export abstract class TabBase { private static _tabs = new Object(); protected target: Element; protected oncreate(): void { } protected onload(args: any[]): void { } public static showTab(id: string, ...args): void { $('.co...
namespace AntShares.UI { export abstract class TabBase { private static _tabs = new Object(); protected target: Element; protected oncreate(): void { } protected onload(args: any[]): void { } public static showTab(id: string, ...args): void { $('.co...
Modify the menu style is "selected" when page jumps via TS code.
Modify the menu style is "selected" when page jumps via TS code.
TypeScript
mit
AntShares/AntSharesApp,AntShares/AntSharesApp,AntShares/AntSharesApp,AntShares/AntSharesApp,AntShares/AntSharesApp,AntShares/AntSharesApp,AntShares/AntSharesApp
--- +++ @@ -28,6 +28,16 @@ { tab = TabBase._tabs[className]; } + $("#menu").find("li").removeClass("mm-selected"); + let menuList = $("#menu").find("li"); + for (let i = 0; i < menuList.length; i++) + { + if ($(menuL...
8f691ebc40df0a6b14c74be0bec64e2dfb2dcff0
src/regimens/list/__tests__/add_button_test.tsx
src/regimens/list/__tests__/add_button_test.tsx
jest.unmock("../../actions"); import * as React from "react"; import { AddRegimen } from "../add_button"; import { AddRegimenProps } from "../../interfaces"; import { shallow } from "enzyme"; describe("<AddRegimen/>", () => { function btn(props: AddRegimenProps) { return shallow(React.createElement(AddRegimen, p...
jest.unmock("../../actions"); let mockPush = jest.fn(); jest.mock("../../../history", () => ({ push: mockPush })); import * as React from "react"; import { AddRegimen } from "../add_button"; import { AddRegimenProps } from "../../interfaces"; import { shallow } from "enzyme"; describe("<AddRegimen/>", () => { functi...
Fix security exception error in a test
Fix security exception error in a test
TypeScript
mit
gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,MrChristofferson/Farmbot-Web-API,MrChristofferson/Farmbot-Web-API,gabrielburnworth/Farmbot-Web-App,FarmBot/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,MrChristofferson/Farmbot-Web-API,RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/Farmbot-Web-AP...
--- +++ @@ -1,4 +1,6 @@ jest.unmock("../../actions"); +let mockPush = jest.fn(); +jest.mock("../../../history", () => ({ push: mockPush })); import * as React from "react"; import { AddRegimen } from "../add_button"; import { AddRegimenProps } from "../../interfaces"; @@ -6,7 +8,7 @@ describe("<AddRegimen/>", ...
8eedc2823bda12adb08a022cf606d14ac4b49d21
src/dispatch/fetchQueue.ts
src/dispatch/fetchQueue.ts
// import { Dispatch } from 'react-redux'; import { SearchItem } from '../types'; import { Map } from 'immutable'; // import { fetchQueueSuccess, fetchQueueFailure, QueueAction } from '../actions/queue'; import { getQueuePage } from '../utils/fetchQueue'; // import { generateQueueToast, failedQueueToast } from '.....
// import { Dispatch } from 'react-redux'; import { QueueItem } from '../types'; import { Map } from 'immutable'; // import { fetchQueueSuccess, fetchQueueFailure, QueueAction } from '../actions/queue'; import { getQueuePage } from '../utils/fetchQueue'; // import { generateQueueToast, failedQueueToast } from '../...
Simplify function signature and fix incorrect interface usage.
Simplify function signature and fix incorrect interface usage.
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
--- +++ @@ -1,5 +1,5 @@ // import { Dispatch } from 'react-redux'; -import { SearchItem } from '../types'; +import { QueueItem } from '../types'; import { Map } from 'immutable'; // import { fetchQueueSuccess, fetchQueueFailure, QueueAction } from '../actions/queue'; import { getQueuePage } from '../utils/fetchQu...
56ef83799af789d8a3e9b14659fe5a5c4af0b226
lib/index.ts
lib/index.ts
import * as debug from 'debug'; import { Client } from './client'; import { BasiqAPIOptions } from './interfaces'; import { Account } from './resources/accounts'; import { Connection } from './resources/connections'; import { Institution } from './resources/institutions'; import { Transaction } from './resources/trans...
import * as debug from 'debug'; import { Client } from './client'; import { BasiqAPIOptions } from './interfaces'; import { Account } from './resources/accounts'; import { Connection } from './resources/connections'; import { Institution } from './resources/institutions'; import { Transaction } from './resources/trans...
Change scope of resources object
Change scope of resources object
TypeScript
bsd-2-clause
FluentDevelopment/basiq-api
--- +++ @@ -8,13 +8,6 @@ import { Transaction } from './resources/transactions'; const log = debug('basiq-api'); - -const resources = { - connections: Connection, - accounts: Account, - transactions: Transaction, - institutions: Institution, -}; export class BasiqAPI { @@ -30,6 +23,13 @@ constructor...
2a66e3e5cf17ced23f8e50c5ea0dc8dc8cce4546
src/effects/local_storage.ts
src/effects/local_storage.ts
import { always, merge, objOf, pipe } from 'ramda'; import { Clear, Delete, Read, Write } from '../commands/local_storage'; import { constructMessage, safeParse, safeStringify } from '../util'; const get = (() => ( typeof window === 'undefined' ? always('<running outside browser context>') : window && window.loc...
import { always, merge, objOf, pipe } from 'ramda'; import { Clear, Delete, Read, Write } from '../commands/local_storage'; import { constructMessage, safeParse, safeStringify } from '../util'; const get = (() => ( typeof window === 'undefined' ? always('<running outside browser context>') : window && window.loc...
Fix syntax for factorying local storage function
Fix syntax for factorying local storage function
TypeScript
apache-2.0
ai-labs-team/architecture,ai-labs-team/architecture
--- +++ @@ -5,7 +5,7 @@ const get = (() => ( typeof window === 'undefined' ? always('<running outside browser context>') : window && window.localStorage && window.localStorage.getItem.bind(window.localStorage) -)()); +))(); export default new Map([ [Read, ({ key, result }, dispatch) => pipe(
6e8abee9cb9e256f4e195faea4252a38c80cd369
app/src/ui/preferences/advanced.tsx
app/src/ui/preferences/advanced.tsx
import * as React from 'react' import { Dispatcher } from '../../lib/dispatcher' import { DialogContent } from '../dialog' import { Checkbox, CheckboxValue } from '../lib/checkbox' import { LinkButton } from '../lib/link-button' interface IAdvancedPreferencesProps { readonly dispatcher: Dispatcher } interface IAdva...
import * as React from 'react' import { Dispatcher } from '../../lib/dispatcher' import { DialogContent } from '../dialog' import { Checkbox, CheckboxValue } from '../lib/checkbox' import { LinkButton } from '../lib/link-button' interface IAdvancedPreferencesProps { readonly dispatcher: Dispatcher } interface IAdva...
Add space between content and input
Add space between content and input
TypeScript
mit
artivilla/desktop,BugTesterTest/desktops,hjobrien/desktop,hjobrien/desktop,say25/desktop,hjobrien/desktop,kactus-io/kactus,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,kactus-io/kactus,artivilla/desktop,gengjiawen/desktop,desktop/desktop,BugTesterTest/desktops,j-f1/forked-desktop,shiftkey/desktop,say25/desktop,Bu...
--- +++ @@ -48,6 +48,8 @@ Would you like to help us improve GitHub Desktop by periodically submitting <LinkButton uri={SamplesURL}>anonymous usage data</LinkButton>? </div> + <br /> + <Checkbox label='Yes, submit anonymized usage data' value={this.state.repo...
e86f41c6d9cf9296e51b13cc3dbfe4b2f75cd5a8
tools/env/base.ts
tools/env/base.ts
import { EnvConfig } from './env-config.interface'; const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.14.1', RELEASEVERSION: '0.14.1' }; export = BaseConfig;
import { EnvConfig } from './env-config.interface'; const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.15.0', RELEASEVERSION: '0.15.0' }; export = BaseConfig;
Update release version to 0.15.0.
Update release version to 0.15.0.
TypeScript
mit
nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website
--- +++ @@ -3,8 +3,8 @@ const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', - RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.14.1', - RELEASEVERSION: '0.14.1' + RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.15.0', + RELEASEVERSION: '0.15...
9454a664a3e92820cac3a8435eb591dd4cbfc275
src/lib/moneyHelper.ts
src/lib/moneyHelper.ts
interface MoneyField { amount: number currencyCode: String } export const moneyFieldToUnit = (moneyField: MoneyField) => { switch (moneyField.currencyCode) { case "USD": return moneyField.amount * 100 default: throw new Error("Unknown currency, cannot process.") } }
interface MoneyField { amount: number currencyCode: String } export const moneyFieldToUnit = (moneyField: MoneyField) => { // this currently only supports currencies with cents // and multiply the major value to 100 to get cent value return moneyField.amount * 100 }
Switch to always multiply by 100
Switch to always multiply by 100
TypeScript
mit
mzikherman/metaphysics-1,artsy/metaphysics,mzikherman/metaphysics-1,mzikherman/metaphysics-1,artsy/metaphysics,mzikherman/metaphysics-1,artsy/metaphysics
--- +++ @@ -4,10 +4,7 @@ } export const moneyFieldToUnit = (moneyField: MoneyField) => { - switch (moneyField.currencyCode) { - case "USD": - return moneyField.amount * 100 - default: - throw new Error("Unknown currency, cannot process.") - } + // this currently only supports currencies with ce...
b58237f4fc2ba6112fda02f7d09c6470560806a2
client/src/app/app.routing.ts
client/src/app/app.routing.ts
import { Routes, RouterModule } from '@angular/router'; import { ListPageComponent } from './list-page/list-page.component'; import { DetailPageComponent } from './detail-page/detail-page.component'; const isariRoutes: Routes = [ { path: '', redirectTo: '/people', pathMatch: 'full' }, { path: ...
import { Routes, RouterModule } from '@angular/router'; import { ListPageComponent } from './list-page/list-page.component'; import { DetailPageComponent } from './detail-page/detail-page.component'; const isariRoutes: Routes = [ { path: '', redirectTo: '/people/1', pathMatch: 'full' }, { path...
Change default route to people/1 for dev simplification
Change default route to people/1 for dev simplification
TypeScript
agpl-3.0
SciencesPo/isari,SciencesPo/isari,SciencesPo/isari,SciencesPo/isari
--- +++ @@ -6,7 +6,7 @@ const isariRoutes: Routes = [ { path: '', - redirectTo: '/people', + redirectTo: '/people/1', pathMatch: 'full' }, {
be7f3d86adc60afd3bf5543cd063d3443116c5fe
src/app/components/WindowButton/styles.ts
src/app/components/WindowButton/styles.ts
import styled from 'styled-components'; import images from '../../../shared/mixins/images'; import { HOVER_DURATION } from '../../constants/design'; import { Icons } from '../../../shared/enums'; interface IButtonProps { icon: Icons; } export const Button = styled.div` height: 100%; -webkit-app-region: no-drag;...
import styled from 'styled-components'; import images from '../../../shared/mixins/images'; import { HOVER_DURATION } from '../../constants/design'; import { Icons } from '../../../shared/enums'; interface IButtonProps { icon: Icons; } export const Button = styled.div` height: 100%; -webkit-app-region: no-drag;...
Fix window buttons for Windows
:bug: Fix window buttons for Windows
TypeScript
apache-2.0
Nersent/Wexond,Nersent/Wexond
--- +++ @@ -30,7 +30,7 @@ height: 100%; transition: ${HOVER_DURATION}s filter; - background-image: ${(props: IIconProps) => `url(../../src/app/icons/${props.icon})`}; + background-image: ${(props: IIconProps) => `url(../../src/shared/icons/${props.icon})`}; ${images.center('11px', '11px')} &:hover { ...
4da45c16e1ce0ae557cdf0fe9a585e0585e5b121
helpers/session.ts
helpers/session.ts
import * as cookie from "cookie"; import * as http from "http"; import * as orm from "typeorm"; import * as eta from "../eta"; export default class HelperSession { public static async getFromRequest(req: http.IncomingMessage): Promise<{[key: string]: any}> { let sid: string; try { sid =...
import * as cookie from "cookie"; import * as http from "http"; import * as orm from "typeorm"; import * as eta from "../eta"; export default class HelperSession { public static async getFromRequest(req: http.IncomingMessage): Promise<{[key: string]: any}> { let sid: string; try { sid =...
Fix build error in HelperSession
Fix build error in HelperSession
TypeScript
mit
crossroads-education/eta,crossroads-education/eta
--- +++ @@ -7,7 +7,7 @@ public static async getFromRequest(req: http.IncomingMessage): Promise<{[key: string]: any}> { let sid: string; try { - sid = cookie.parse(req.headers.cookie)["connect.sid"]; + sid = cookie.parse(req.headers.cookie)["connect.sid"].toString(); ...
e8515f5835909162a34cfbb9bc59ea9baedaf74d
src/logger.ts
src/logger.ts
const logger = { info: (message: string) => { // tslint:disable-next-line:no-console // tslint:disable-next-line:strict-type-predicates if (console && typeof console.info === 'function') { // tslint:disable-next-line:no-console console.info(`Canvasimo: ${message}`); } }, warn: (message...
const consoleExists = Boolean(window.console); const logger = { info: (message: string) => { if (consoleExists) { window.console.info(`Canvasimo: ${message}`); } }, warn: (message: string) => { if (consoleExists) { window.console.warn(`Canvasimo: ${message}`); } }, }; export defaul...
Check for window.console and use this for logs
Check for window.console and use this for logs
TypeScript
mit
JakeSidSmith/canvasimo,JakeSidSmith/canvasimo,JakeSidSmith/sensible-canvas-interface
--- +++ @@ -1,18 +1,14 @@ +const consoleExists = Boolean(window.console); + const logger = { info: (message: string) => { - // tslint:disable-next-line:no-console - // tslint:disable-next-line:strict-type-predicates - if (console && typeof console.info === 'function') { - // tslint:disable-next-line...
b9b375a3d666b64ada5220e1dbfbbe34465e97c3
{{cookiecutter.github_project_name}}/src/plugin.ts
{{cookiecutter.github_project_name}}/src/plugin.ts
// Copyright (c) {{ cookiecutter.author_name }} // Distributed under the terms of the Modified BSD License. import { Application, IPlugin } from '@phosphor/application'; import { Widget } from '@phosphor/widgets'; import { IJupyterWidgetRegistry } from '@jupyter-widgets/base'; import * as widgetExports from ...
// Copyright (c) {{ cookiecutter.author_name }} // Distributed under the terms of the Modified BSD License. import { Application, IPlugin } from '@phosphor/application'; import { Widget } from '@phosphor/widgets'; import { IJupyterWidgetRegistry } from '@jupyter-widgets/base'; import * as widgetExports from ...
Add necessary typecast for supporting jlab 1 and 2
Add necessary typecast for supporting jlab 1 and 2
TypeScript
bsd-3-clause
jupyter-widgets/widget-ts-cookiecutter,jupyter-widgets/widget-ts-cookiecutter,jupyter-widgets/widget-ts-cookiecutter
--- +++ @@ -29,7 +29,9 @@ requires: [IJupyterWidgetRegistry], activate: activateWidgetExtension, autoStart: true -}; +} as unknown as IPlugin<Application<Widget>, void>; +// the "as unknown as ..." typecast above is solely to support JupyterLab 1 +// and 2 in the same codebase and should be removed when we m...
5b636fa9254ddfed57242087396a2ed050e0a365
src/app/views/sessions/session/visualization/visualizationconstants.ts
src/app/views/sessions/session/visualization/visualizationconstants.ts
export default [ { id: 'spreadsheet', name: 'Spreadsheet', extensions: ['tsv', 'bed'], anyInputCountSupported: false, supportedInputFileCounts: [1] }, { id: 'text', name: 'Text', extensions: ['txt', 'tsv', 'bed'], anyInputCountSupported: false, supportedInputFileCounts: [1]...
export default [ { id: 'spreadsheet', name: 'Spreadsheet', extensions: ['tsv', 'bed', 'gtf'], anyInputCountSupported: false, supportedInputFileCounts: [1] }, { id: 'text', name: 'Text', extensions: ['txt', 'tsv', 'bed', 'gtf'], anyInputCountSupported: false, supportedInputF...
Add gtf to text and spreadsheet extensions
Add gtf to text and spreadsheet extensions
TypeScript
mit
chipster/chipster-web,chipster/chipster-web,chipster/chipster-web
--- +++ @@ -2,14 +2,14 @@ { id: 'spreadsheet', name: 'Spreadsheet', - extensions: ['tsv', 'bed'], + extensions: ['tsv', 'bed', 'gtf'], anyInputCountSupported: false, supportedInputFileCounts: [1] }, { id: 'text', name: 'Text', - extensions: ['txt', 'tsv', 'bed'], + e...
1ed86220621ab59c446a95f99745b169bf838b9b
client/Library/EncounterLibraryViewModel.ts
client/Library/EncounterLibraryViewModel.ts
module ImprovedInitiative { export class EncounterLibraryViewModel { constructor( private encounterCommander: EncounterCommander, private library: EncounterLibrary ) { } LibraryFilter = ko.observable(""); FilteredEncounters = ko.pureComputed<string []>(() =>...
module ImprovedInitiative { export class EncounterLibraryViewModel { constructor( private encounterCommander: EncounterCommander, private library: EncounterLibrary ) { } LibraryFilter = ko.observable(""); FilteredEncounters = ko.pureComputed<string []>(() =>...
Make encounter library filter case insensitive
Make encounter library filter case insensitive
TypeScript
mit
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
--- +++ @@ -15,7 +15,7 @@ return index; } - return index.filter(name => name.indexOf(filter) > -1); + return index.filter(name => name.toLocaleLowerCase().indexOf(filter) > -1); }); ClickEntry = (name: string) => this.encounterCommander.LoadEnc...
e5b8656b18baf8fa7ec988e5eab7647c0d489989
directives/angular2-google-chart.directive.ts
directives/angular2-google-chart.directive.ts
import {Directive,ElementRef,Input,OnInit} from '@angular/core'; declare var google:any; declare var googleLoaded:any; @Directive({ selector: '[GoogleChart]', // properties: [ // 'chartType', // 'chartOptions', // 'chartData' // ] }) export class GoogleChart implements OnInit { public _eleme...
import {Directive,ElementRef,Input,OnInit} from '@angular/core'; declare var google:any; declare var googleLoaded:any; @Directive({ selector: '[GoogleChart]', // properties: [ // 'chartType', // 'chartOptions', // 'chartData' // ] }) export class GoogleChart implements OnInit { public _eleme...
Fix GoogleChart to work with Shadow Dom
Fix GoogleChart to work with Shadow Dom Referencing the container by ele.id breaks when Shadow Dom is used. Fixed this by passing in the element directly to the draw function.
TypeScript
mit
vimalavinisha/angular2-google-chart,vimalavinisha/angular2-google-chart,vimalavinisha/angular2-google-chart
--- +++ @@ -31,10 +31,9 @@ wrapper = new google.visualization.ChartWrapper({ chartType: chartType, dataTable:chartData , - options:chartOptions || {}, - containerId: ele.id + options:chartOptions || {} }); - wrapper.draw(); + ...
7f13eaff8132c6a540eefb8a81b696a2b9cadd89
src/pages/user/index.ts
src/pages/user/index.ts
import { inject } from 'aurelia-framework'; import { Router } from 'aurelia-router'; import { HackerNewsApi } from '../../services/api'; @inject(Router, HackerNewsApi) export class User { user: any; private readonly router: Router; private readonly api: HackerNewsApi; private id: string; construc...
import { inject } from 'aurelia-framework'; import { Router } from 'aurelia-router'; import { HackerNewsApi } from '../../services/api'; @inject(Router, HackerNewsApi) export class User { user: any; private readonly router: Router; private readonly api: HackerNewsApi; private id: string; construc...
Use template string in User view-model
Use template string in User view-model
TypeScript
isc
MikeBull94/aurelia-hacker-news,michaelbull/aurelia-hacker-news,michaelbull/aurelia-hacker-news,michaelbull/aurelia-hacker-news,MikeBull94/aurelia-hacker-news
--- +++ @@ -22,6 +22,6 @@ } this.id = params.id; - this.user = await this.api.fetch('user/' + this.id); + this.user = await this.api.fetch(`user/${this.id}`); } }
cb9d46462278597b4e70de97e2aed007a70db113
src/elements/members/__tests__/enum-member.ts
src/elements/members/__tests__/enum-member.ts
jest.unmock('../enum-member'); import {Stack} from '../../../stack'; import {VariableDeclaration} from '../../declarations/variable-declaration'; import {EnumMember} from '../enum-member'; describe('#_emit()', () => { it('should return correctly', () => { const fn = (): number => 1; expect(new EnumMember({ ...
jest.unmock('../enum-member'); import {Stack} from '../../../stack'; import {VariableDeclaration} from '../../declarations/variable-declaration'; import {EnumMember} from '../enum-member'; describe('#emit()', () => { it('should return correctly', () => { const fn = (): number => 1; expect(new EnumMember({ ...
Update tests use emit() instead of _emit()
Update tests use emit() instead of _emit()
TypeScript
mit
ikatyang/dts-element,ikatyang/dts-element
--- +++ @@ -4,11 +4,11 @@ import {VariableDeclaration} from '../../declarations/variable-declaration'; import {EnumMember} from '../enum-member'; -describe('#_emit()', () => { +describe('#emit()', () => { it('should return correctly', () => { const fn = (): number => 1; expect(new EnumMember({ ...
33eebc5508045282a6f266cea49707811f699438
src/index.ts
src/index.ts
/** Types of elements found in the DOM */ export const enum ElementType { Text = "text", //Text Directive = "directive", //<? ... ?> Comment = "comment", //<!-- ... --> Script = "script", //<script> tags Style = "style", //<style> tags Tag = "tag", //Any tag CDATA = "cdata", //<![CDATA[ ... ...
/** Types of elements found in htmlparser2's DOM */ export const enum ElementType { /** Type for Text */ Text = "text", /** Type for <? ... ?> */ Directive = "directive", /** Type for <!-- ... --> */ Comment = "comment", /** Type for <script> tags */ Script = "script", /** Type for <...
Update documentation for exported values
docs: Update documentation for exported values
TypeScript
bsd-2-clause
fb55/domelementtype
--- +++ @@ -1,12 +1,20 @@ -/** Types of elements found in the DOM */ +/** Types of elements found in htmlparser2's DOM */ export const enum ElementType { - Text = "text", //Text - Directive = "directive", //<? ... ?> - Comment = "comment", //<!-- ... --> - Script = "script", //<script> tags - Style = ...
293598303c9c92408f71e6bd13c4dde4c875398c
coffee-chats/src/main/webapp/src/util/fetch.ts
coffee-chats/src/main/webapp/src/util/fetch.ts
import React from "react"; interface ResponseRaceDetect { response: Response; json: any; raceOccurred: boolean; } const fetchAndDetectRaces: (url: string) => Promise<ResponseRaceDetect> = (() => { let requestId = 0; return async (url: string) => { const currentRequestId = ++requestId; const respon...
import React from "react"; /** * A hook that fetches JSON data from a URL using a GET request * * @param url: URL to fetch data from */ export function useFetch(url: string): any { const [data, setData] = React.useState(null); const requestId = React.useRef(0); React.useEffect(() => { (async () => { ...
Use useRef for race detection in useFetch
Use useRef for race detection in useFetch
TypeScript
apache-2.0
googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020
--- +++ @@ -1,24 +1,4 @@ import React from "react"; - -interface ResponseRaceDetect { - response: Response; - json: any; - raceOccurred: boolean; -} - -const fetchAndDetectRaces: (url: string) => Promise<ResponseRaceDetect> = (() => { - let requestId = 0; - - return async (url: string) => { - const currentRe...
49770262471fd7cfeea0c45ec867ace3dd3655e7
client/src/app/plants/bed.component.ts
client/src/app/plants/bed.component.ts
import { Component, OnInit } from '@angular/core'; import { PlantListService } from "./plant-list.service"; import { Plant } from "./plant"; import { FilterBy } from "../plants/filter.pipe"; import {Params, ActivatedRoute, Router} from "@angular/router"; @Component({ selector: 'bed-component', templateUrl: 'be...
import { Component, OnInit } from '@angular/core'; import { PlantListService } from "./plant-list.service"; import { Plant } from "./plant"; import { FilterBy } from "../plants/filter.pipe"; import {Params, ActivatedRoute, Router} from "@angular/router"; @Component({ selector: 'bed-component', templateUrl: 'be...
Remove un-used variable from BedComponent
Remove un-used variable from BedComponent
TypeScript
mit
UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CS...
--- +++ @@ -13,7 +13,6 @@ export class BedComponent implements OnInit { public bed : string; public plants: Plant[] = []; - public locations: Plant[]; constructor(private plantListService: PlantListService, private route: ActivatedRoute, private router: Router) { // this.plants = this.pl...
00df897ee343bfb2eeba651697e8187d664711cd
src/takeoff-detector.ts
src/takeoff-detector.ts
import * as turf from '@turf/turf'; import {Fix} from "./read-flight"; const Emitter = require('tiny-emitter'); export class TakeoffDetector { private _lastFix: Fix | undefined = undefined; flying: boolean = false; private readonly _emitter = new Emitter(); update(fix: Fix) { let speed = this._current...
import * as cheapRuler from "cheap-ruler"; import {Fix} from "./read-flight"; const Emitter = require('tiny-emitter'); export class TakeoffDetector { private _lastFix: Fix | undefined = undefined; flying: boolean = false; private readonly _emitter = new Emitter(); update(fix: Fix) { let speed = this._...
Use "cheap-ruler" instead of "turf"
TakeoffDetector: Use "cheap-ruler" instead of "turf"
TypeScript
mit
Turbo87/aeroscore,Turbo87/aeroscore
--- +++ @@ -1,4 +1,4 @@ -import * as turf from '@turf/turf'; +import * as cheapRuler from "cheap-ruler"; import {Fix} from "./read-flight"; @@ -29,7 +29,7 @@ _currentSpeed(fix: Fix): number { if (!this._lastFix) return 0; - let distance = turf.distance(this._lastFix.coordinate, fix.coordinate); + ...
b51a8da34bd7b724123e0490fc083353c6ef8d9e
types/react-router/test/WithRouterDecorator.tsx
types/react-router/test/WithRouterDecorator.tsx
import * as React from 'react'; import { withRouter, RouteComponentProps } from 'react-router-dom'; interface TOwnProps { username: string; } @withRouter class Component extends React.Component<TOwnProps, {}> { render() { return ( <h2>Welcome {this.props.username}</h2> ); } } const WithRouterTest = () => ...
import * as React from 'react'; import { withRouter, RouteComponentProps } from 'react-router-dom'; interface TOwnProps { username: string; } // $ExpectType Component @withRouter class Component extends React.Component<TOwnProps, {}> { render() { return ( <h2>Welcome {this.props.username}</h2> ); } } cons...
Add dtslint type assertion test.
Add dtslint type assertion test.
TypeScript
mit
benishouga/DefinitelyTyped,ashwinr/DefinitelyTyped,rolandzwaga/DefinitelyTyped,chrootsu/DefinitelyTyped,rolandzwaga/DefinitelyTyped,jimthedev/DefinitelyTyped,arusakov/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,jimthedev/DefinitelyTyped,dsebastien/DefinitelyTyped,one-pieces/DefinitelyTyped,aciccarello/DefinitelyTyped,a...
--- +++ @@ -5,6 +5,7 @@ username: string; } +// $ExpectType Component @withRouter class Component extends React.Component<TOwnProps, {}> { render() { @@ -16,4 +17,7 @@ const WithRouterTest = () => (<Component username="John" />); +// $ExpectType Element +WithRouterTest(); + export default WithRouterTe...
06e31bb0becfc0322e21cd730a90eaae8f01fe5f
app/javascript/retrospring/features/lists/create.ts
app/javascript/retrospring/features/lists/create.ts
import Rails from '@rails/ujs'; import I18n from '../../../legacy/i18n'; export function createListHandler(event: Event): void { const button = event.target as HTMLButtonElement; const input = document.querySelector<HTMLInputElement>('input#new-list-name'); Rails.ajax({ url: '/ajax/create_list', type: '...
import Rails from '@rails/ujs'; import I18n from '../../../legacy/i18n'; export function createListHandler(event: Event): void { const button = event.target as HTMLButtonElement; const input = document.querySelector<HTMLInputElement>('input#new-list-name'); Rails.ajax({ url: '/ajax/create_list', type: '...
Apply review suggestion from @raccube
Apply review suggestion from @raccube
TypeScript
agpl-3.0
Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring
--- +++ @@ -27,6 +27,7 @@ } export function createListInputHandler(event: KeyboardEvent): void { + // Return key if (event.which === 13) { event.preventDefault(); document.querySelector<HTMLButtonElement>('button#create-list').click();
2a5f7d1e058474ad38d6430d430672819639da0d
public/app/core/components/Tooltip/Popper.tsx
public/app/core/components/Tooltip/Popper.tsx
import React, { PureComponent } from 'react'; import { Manager, Popper as ReactPopper, Reference } from 'react-popper'; interface Props { renderContent: (content: any) => any; show: boolean; placement?: any; content: string | ((props: any) => JSX.Element); refClassName?: string; } class Popper extends Pure...
import React, { PureComponent } from 'react'; import { Manager, Popper as ReactPopper, Reference } from 'react-popper'; import Transition from 'react-transition-group/Transition'; const defaultTransitionStyles = { transition: 'opacity 200ms linear', opacity: 0, }; const transitionStyles = { exited: { opacity: ...
Add fade in transition to tooltip
panel-header: Add fade in transition to tooltip
TypeScript
agpl-3.0
grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana
--- +++ @@ -1,5 +1,18 @@ import React, { PureComponent } from 'react'; import { Manager, Popper as ReactPopper, Reference } from 'react-popper'; +import Transition from 'react-transition-group/Transition'; + +const defaultTransitionStyles = { + transition: 'opacity 200ms linear', + opacity: 0, +}; + +const trans...
d42a6447fa5d117d760d39dfec887447f63647fa
app/src/ui/lib/context-menu.ts
app/src/ui/lib/context-menu.ts
const RestrictedFileExtensions = ['.cmd', '.exe', '.bat', '.sh'] export const CopyFilePathLabel = __DARWIN__ ? 'Copy File Path' : 'Copy file path' export const DefaultEditorLabel = __DARWIN__ ? 'Open in External Editor' : 'Open in external editor' export const RevealInFileManagerLabel = __DARWIN__ ? 'Reveal...
const RestrictedFileExtensions = ['.cmd', '.exe', '.bat', '.sh'] export const CopyFilePathLabel = __DARWIN__ ? 'Copy File Path' : 'Copy file path' export const DefaultEditorLabel = __DARWIN__ ? 'Open in External Editor' : 'Open in external editor' export const RevealInFileManagerLabel = __DARWIN__ ? 'Reveal...
Use Recycle Bin name only on Windows
Use Recycle Bin name only on Windows On Linux Mint I see "Recycle Bin" on the dialog box when it should be "Trash." This PR changes the label such that "Recycle Bin" only appears on Windows and "Trash" appears for everything else.
TypeScript
mit
desktop/desktop,artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,shiftkey/desktop,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,say25/desktop,desktop/desktop,desktop/desktop,artivilla/desktop,artivilla/desktop,say25/desktop,j-f1/forked-desktop,j-f1/forked-desktop,desktop/desktop,say25/deskt...
--- +++ @@ -13,7 +13,7 @@ ? 'Show in Explorer' : 'Show in your File Manager' -export const TrashNameLabel = __DARWIN__ ? 'Trash' : 'Recycle Bin' +export const TrashNameLabel = __WIN32__ ? 'Recycle Bin' : 'Trash' export const OpenWithDefaultProgramLabel = __DARWIN__ ? 'Open with Default Program'
1f60ab28c3f40d70e4a591deacff0c0773939f19
src/init.ts
src/init.ts
namespace webcrypto.liner { let _w: any = window; export const nativeCrypto: NativeCrypto = _w.crypto || _w.msCrypto; export const nativeSubtle = nativeCrypto.subtle || (nativeCrypto as any).webkitSubtle; }
namespace webcrypto.liner { let _w: any = window; export const nativeCrypto: NativeCrypto = _w.msCrypto || _w.crypto; export const nativeSubtle = nativeCrypto.subtle || (nativeCrypto as any).webkitSubtle; }
Fix error with native crypto for IE - elliptic.js creats it own crypto object. So we must check for msCrypto first
Fix error with native crypto for IE - elliptic.js creats it own crypto object. So we must check for msCrypto first
TypeScript
mit
PeculiarVentures/webcrypto-liner,PeculiarVentures/webcrypto-liner
--- +++ @@ -1,6 +1,6 @@ namespace webcrypto.liner { let _w: any = window; - export const nativeCrypto: NativeCrypto = _w.crypto || _w.msCrypto; + export const nativeCrypto: NativeCrypto = _w.msCrypto || _w.crypto; export const nativeSubtle = nativeCrypto.subtle || (nativeCrypto as any).webkitSubtle...
48a8a172a842e325082d16640cac08b3bb17800d
src/test-utils.tsx
src/test-utils.tsx
import * as React from 'react'; import ApolloClient from 'apollo-client'; import { DefaultOptions } from 'apollo-client/ApolloClient'; import { InMemoryCache as Cache } from 'apollo-cache-inmemory'; import { ApolloProvider } from './index'; import { MockedResponse, MockLink } from './test-links'; import { ApolloCache ...
import * as React from 'react'; import ApolloClient from 'apollo-client'; import { DefaultOptions } from 'apollo-client'; import { InMemoryCache as Cache } from 'apollo-cache-inmemory'; import { ApolloProvider } from './index'; import { MockedResponse, MockLink } from './test-links'; import { ApolloCache } from 'apoll...
Remove nested Apollo Client `DefaultOptions` import
Remove nested Apollo Client `DefaultOptions` import
TypeScript
mit
apollographql/react-apollo,apollostack/react-apollo,apollostack/react-apollo,apollographql/react-apollo
--- +++ @@ -1,6 +1,6 @@ import * as React from 'react'; import ApolloClient from 'apollo-client'; -import { DefaultOptions } from 'apollo-client/ApolloClient'; +import { DefaultOptions } from 'apollo-client'; import { InMemoryCache as Cache } from 'apollo-cache-inmemory'; import { ApolloProvider } from './index...
278eb5b3a10fc9234ed084ca5bb73323693d7dee
src/controllers/EventActionsImpl.ts
src/controllers/EventActionsImpl.ts
import { EventActions } from './EventActions' import { Event, User, Permission } from '../models' import { rejectIfNull } from './util' import * as mongodb from '../mongodb/Event' export class EventActionsImpl implements EventActions { getEvents(auth: User): Promise<Event[]> { if (auth) { // All fields ...
import { EventActions } from './EventActions' import { Event, User, Permission } from '../models' import { rejectIfNull } from './util' import * as mongodb from '../mongodb/Event' export class EventActionsImpl implements EventActions { getEvents(auth: User): Promise<Event[]> { if (auth) { // All fields ...
Make 'published' a public field on events
HOTFIX: Make 'published' a public field on events
TypeScript
mit
studieresan/overlord,studieresan/overlord,studieresan/overlord,studieresan/overlord,studieresan/overlord
--- +++ @@ -17,6 +17,7 @@ 'publicDescription': true, 'date': true, 'pictures': true, + 'published': true, }).exec() } }
684044487767ccc0d18c78de34e56afa89983b17
src/renderer/pages/BrowserPage/newTabItems.ts
src/renderer/pages/BrowserPage/newTabItems.ts
import urls from "common/constants/urls"; export const newTabPrimaryItems = [ { label: ["sidebar.explore"], icon: "earth", url: "itch://featured", }, { label: ["sidebar.library"], icon: "heart-filled", url: "itch://library", }, { label: ["sidebar.collections"], icon: "video_co...
import urls from "common/constants/urls"; export const newTabPrimaryItems = [ { label: ["sidebar.explore"], icon: "earth", url: "itch://featured", }, { label: ["sidebar.library"], icon: "heart-filled", url: "itch://library", }, { label: ["sidebar.collections"], icon: "video_co...
Make devlogs button open new devlogs page
Make devlogs button open new devlogs page
TypeScript
mit
itchio/itch,itchio/itchio-app,leafo/itchio-app,itchio/itch,itchio/itchio-app,leafo/itchio-app,leafo/itchio-app,itchio/itch,itchio/itch,itchio/itchio-app,itchio/itch,itchio/itch
--- +++ @@ -47,6 +47,6 @@ { label: ["new_tab.devlogs"], icon: "fire", - url: urls.itchio + "/featured-games-feed?filter=devlogs", + url: urls.itchio + "/devlogs", }, ];
f0c51a8d5f1fd95c4936bf41bfd6366da608e44b
src/app/map/suitability-map-panel/suitability-map-panel.component.spec.ts
src/app/map/suitability-map-panel/suitability-map-panel.component.spec.ts
/* tslint:disable:no-unused-variable */ /*! * Suitability Map Panel Component Test * * Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph> * Licensed under MIT */ import { Renderer } from '@angular/core'; import { TestBed, async, inject } from '@angular/core/testing'; import { Router } from '@angular...
/* tslint:disable:no-unused-variable */ /*! * Suitability Map Panel Component Test * * Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph> * Licensed under MIT */ import { Renderer } from '@angular/core'; import { TestBed, async, inject } from '@angular/core/testing'; import { Router } from '@angular...
Fix broken test due to direct provision of the actual service rather than a test double
Fix broken test due to direct provision of the actual service rather than a test double
TypeScript
mit
ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps
--- +++ @@ -15,6 +15,7 @@ import { SuitabilityMapService } from '../suitability-map.service'; import { MapLayersReducer, SuitabilityLevelsReducer } from '../../store'; import { MockRouter } from '../../mocks/router'; +import { MockSuitabilityMapService } from '../../mocks/map'; import { SuitabilityMapPanelCompone...
77e98396bc486119fa5b57aae1f5ed525ba9de6a
src/app/gallery/gallery-format.pipe.spec.ts
src/app/gallery/gallery-format.pipe.spec.ts
import { GalleryFormatPipe } from './gallery-format.pipe'; describe('GalleryFormatPipe', () => { it('create an instance', () => { const pipe = new GalleryFormatPipe(); expect(pipe).toBeTruthy(); }); });
import { GalleryFormatPipe } from './gallery-format.pipe'; describe('GalleryFormatPipe', () => { it('create an instance', () => { const pipe = new GalleryFormatPipe(); expect(pipe).toBeTruthy(); }); it('should concatenate album titles', () => { const albumInfo = [ { title: 'one', name: '' }, ...
Add tests for gallery formatting pipe
Add tests for gallery formatting pipe
TypeScript
apache-2.0
jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog
--- +++ @@ -5,4 +5,24 @@ const pipe = new GalleryFormatPipe(); expect(pipe).toBeTruthy(); }); + + it('should concatenate album titles', () => { + const albumInfo = [ + { title: 'one', name: '' }, + { title: 'two', name: '' }, + { title: 'three', name: '' } + ]; + + const pipe = n...
9d6ca92f744491dc2d808cbd4e6f517c66b89f21
src/customer/list/SupportCustomerFilter.tsx
src/customer/list/SupportCustomerFilter.tsx
import { FunctionComponent } from 'react'; import { Row } from 'react-bootstrap'; import { reduxForm } from 'redux-form'; import { AccountingRunningField, getOptions as AccountingRunningFieldOptions, } from '@waldur/customer/list/AccountingRunningField'; import { SUPPORT_CUSTOMERS_FORM_ID } from '@waldur/customer/...
import { FunctionComponent } from 'react'; import { Row } from 'react-bootstrap'; import { reduxForm } from 'redux-form'; import { AccountingRunningField, getOptions as AccountingRunningFieldOptions, } from '@waldur/customer/list/AccountingRunningField'; import { SUPPORT_CUSTOMERS_FORM_ID } from '@waldur/customer/...
Drop 'Service provider' as a default filter in list of organizations
Drop 'Service provider' as a default filter in list of organizations
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -9,10 +9,7 @@ import { SUPPORT_CUSTOMERS_FORM_ID } from '@waldur/customer/list/constants'; import { DivisionTypeFilter } from '@waldur/customer/list/DivisionTypeFilter'; import { SelectOrganizationDivisionField } from '@waldur/customer/list/SelectOrganizationDivisionField'; -import { - getOptions as Se...
b5a502290b8f1fb74c74ad32e6867184d054f0c6
packages/schematics/src/scam/index.ts
packages/schematics/src/scam/index.ts
import { chain, externalSchematic, Rule } from '@angular-devkit/schematics'; import { Schema as NgComponentOptions } from '@schematics/angular/component/schema'; export interface ScamOptions extends NgComponentOptions { separateModule: boolean; } export const _mergeModuleIntoComponentFile: Rule = (tree, context) ...
import { chain, externalSchematic, Rule } from '@angular-devkit/schematics'; import { Schema as NgComponentOptions } from '@schematics/angular/component/schema'; export interface ScamOptions extends NgComponentOptions { separateModule: boolean; } export const _mergeModuleIntoComponentFile: Rule = (tree, context) ...
Merge module and component as default behavior.
@wishtack/schematics:scam: Merge module and component as default behavior.
TypeScript
mit
wishtack/wishtack-steroids,wishtack/wishtack-steroids,wishtack/wishtack-steroids,wishtack/ng-steroids,wishtack/ng-steroids
--- +++ @@ -5,7 +5,9 @@ separateModule: boolean; } -export const _mergeModuleIntoComponentFile: Rule = (tree, context) => tree; +export const _mergeModuleIntoComponentFile: Rule = (tree, context) => { + return tree; +}; export function scam(options: ScamOptions): Rule {
0d400f0b20b6ec6e88c786061486aa3f9ab5c9b2
src/api/machine-container-api.ts
src/api/machine-container-api.ts
import * as request from 'superagent'; import { Response } from 'superagent'; import { Api, Options} from './api' class MachineContainerApi extends Api { list(machineName: string): Promise<Response> { return this._exec(request.get(`${this._buildPath(machineName)}`)); } protected _buildPath(machineName: str...
import * as request from 'superagent'; import { Response } from 'superagent'; import { Api, Options} from './api' class MachineContainerApi extends Api { list(machineName: string, options: Options): Promise<Response> { return this._exec(request.get(`${this._buildPath(machineName)}`).query(options)); } prot...
Allow options in list containers
Allow options in list containers
TypeScript
apache-2.0
lawrence0819/neptune-front,lawrence0819/neptune-front
--- +++ @@ -4,8 +4,8 @@ class MachineContainerApi extends Api { - list(machineName: string): Promise<Response> { - return this._exec(request.get(`${this._buildPath(machineName)}`)); + list(machineName: string, options: Options): Promise<Response> { + return this._exec(request.get(`${this._buildPath(machi...
1b3ad4bcb375ba604d2f32279bb97b0723d32408
src/ts/production-ipc-emitter.ts
src/ts/production-ipc-emitter.ts
import { IpcEmitter } from "./ipc-emitter"; import { ipcMain } from "electron"; import { IpcChannels } from "./ipc-channels"; export class ProductionIpcEmitter implements IpcEmitter { public emitResetUserInput(): void { ipcMain.emit(IpcChannels.resetUserInput); } public emitHideWindow(): void { ...
import { IpcEmitter } from "./ipc-emitter"; import { ipcMain } from "electron"; import { IpcChannels } from "./ipc-channels"; export class ProductionIpcEmitter implements IpcEmitter { private windowHideDelayInMilliSeconds = 50; public emitResetUserInput(): void { ipcMain.emit(IpcChannels.resetUserInpu...
Set delay when hiding window (again)
Set delay when hiding window (again)
TypeScript
mit
oliverschwendener/electronizr,oliverschwendener/electronizr
--- +++ @@ -3,11 +3,16 @@ import { IpcChannels } from "./ipc-channels"; export class ProductionIpcEmitter implements IpcEmitter { + private windowHideDelayInMilliSeconds = 50; + public emitResetUserInput(): void { ipcMain.emit(IpcChannels.resetUserInput); } public emitHideWindow(): vo...