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
689f92b793124078239d103a2a10dd7724bf6676
src/site/components/SiteHeader.tsx
src/site/components/SiteHeader.tsx
import * as React from 'react'; import * as config from '../../config'; interface Props { pageType: string; } export default function SiteHeader({pageType}: Props) { return ( <header className="site-header"> <h1 className="site-header__title"> <a href="/"> Game Boy hardware database ...
import * as React from 'react'; import * as config from '../../config'; interface Props { pageType: string; } export default function SiteHeader({pageType}: Props) { return ( <header className="site-header"> <h1 className="site-header__title"> <a href="/"> Game Boy hardware database ...
Add cartridges section to navigation
Add cartridges section to navigation
TypeScript
mit
Gekkio/gb-hardware-db
--- +++ @@ -20,25 +20,34 @@ ) } -const models = config.consoles.map(type => [type.toUpperCase(), type, config.consoleCfgs[type].name]) +const models = config.consoles.map(type => [type.toUpperCase(), type, config.consoleCfgs[type].name]); function isModel(pageType: string, code: string) { return pageType ...
422be766954c4204fcac9c37b263fb1182ae55d5
src/app/app-routing.module.ts
src/app/app-routing.module.ts
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { PageComponent } from './page/page.component'; const routes: Routes = [ { path: '', redirectTo: '/main', pathMatch: 'full' }, { path: 'main', component: PageComponent, data: {section: 'main'} ...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { PageComponent } from './page/page.component'; const routes: Routes = [ { path: '', redirectTo: '/main', pathMatch: 'full' }, { path: 'main', component: PageComponent, data: {section: 'main'} ...
Add contact page to routing
Add contact page to routing
TypeScript
mit
KeJSaR/artezian-info-web,KeJSaR/artezian-info-web,KeJSaR/artezian-info-web,KeJSaR/artezian-info-web
--- +++ @@ -15,6 +15,7 @@ { path: 'news', component: PageComponent, data: {section: 'news'} }, { path: 'news/:subsection', component: PageComponent, data: {section: 'news'} }, { path: 'form', component: PageComponent, data: {section: 'form'} }, + { path: 'contact', ...
a3e650fffaafffaf0792a8166cbd7947b9ef841e
src/app/app.search.service.ts
src/app/app.search.service.ts
import { Injectable } from '@angular/core'; import {Subject} from "rxjs/Rx"; @Injectable() export class SearchService { private searchTerm: string; private subcategories: any; private productType: string; searchChange: Subject<any> = new Subject<any>(); uiChange: Subject<any> = new Subject<any>(); getSear...
import { Injectable } from '@angular/core'; import {Subject} from "rxjs/Rx"; @Injectable() export class SearchService { private searchTerm: string; private subcategories: any; private productType: string; searchChange: Subject<any> = new Subject<any>(); uiChange: Subject<any> = new Subject<any>(); getSear...
Stop undefined terms being returned.
Stop undefined terms being returned.
TypeScript
bsd-3-clause
UoA-eResearch/research-hub,UoA-eResearch/research-hub,UoA-eResearch/research-hub
--- +++ @@ -22,10 +22,12 @@ getTermIds() { let termIds = []; + console.log('subcats: ', this.subcategories); for (var key in this.subcategories) { if (this.subcategories.hasOwnProperty(key)) { let value = this.subcategories[key]; - if(value && value != "null") + consol...
6adf6067eea275cf8272ba1c8ed763f89c08acd2
tests/cases/fourslash/staticGenericOverloads1.ts
tests/cases/fourslash/staticGenericOverloads1.ts
/// <reference path='fourslash.ts'/> ////class A<T> { //// static B<S>(v: A<S>): A<S>; //// static B<S>(v: S): A<S>; //// static B<S>(v: any): A<S> { //// return null; //// } ////} ////var a = new A<number>(); ////A.B(/**/ goTo.marker(); verify.currentSignatureHelpIs('B<S>(v: A<S>): ...
/// <reference path='fourslash.ts'/> ////class A<T> { //// static B<S>(v: A<S>): A<S>; //// static B<S>(v: S): A<S>; //// static B<S>(v: any): A<S> { //// return null; //// } ////} ////var a = new A<number>(); ////A.B(a/**/ goTo.marker(); verify.currentSignatureHelpIs('B<S>(v: A<numb...
Update the test for the static generic overload
Update the test for the static generic overload
TypeScript
apache-2.0
popravich/typescript,hippich/typescript,hippich/typescript,fdecampredon/jsx-typescript-old-version,fdecampredon/jsx-typescript-old-version,popravich/typescript,mbebenita/shumway.ts,fdecampredon/jsx-typescript-old-version,popravich/typescript,hippich/typescript,mbebenita/shumway.ts,mbebenita/shumway.ts
--- +++ @@ -9,10 +9,11 @@ ////} ////var a = new A<number>(); -////A.B(/**/ +////A.B(a/**/ goTo.marker(); -verify.currentSignatureHelpIs('B<S>(v: A<S>): A<S>') -// BUG 701161 -//edit.insert('a'); -//verify.currentSignatureHelpIs('B<S>(v: A<S>): A<S>'); +verify.currentSignatureHelpIs('B<S>(v: A<number>): A<numbe...
09f5b3367467585d00cd69ab9838641b01d460cb
app/pages/home/home.ts
app/pages/home/home.ts
import {Component} from '@angular/core'; import {NavController, Alert} from 'ionic-angular'; import {LocalNotifications} from 'ionic-native'; @Component({ templateUrl: 'build/pages/home/home.html' }) export class HomePage { constructor(public navCtrl: NavController) { } showAlert() { LocalNotifications....
import {Component} from '@angular/core'; import {NavController, Alert} from 'ionic-angular'; import {LocalNotifications} from 'ionic-native'; @Component({ templateUrl: 'build/pages/home/home.html' }) export class HomePage { constructor(public navCtrl: NavController) { LocalNotifications.on('click', (notifica...
Add event to check notification was clicked
Add event to check notification was clicked and return back to app
TypeScript
apache-2.0
teerasej/training-ionic2-local-notification,teerasej/training-ionic2-local-notification,teerasej/training-ionic2-local-notification
--- +++ @@ -9,12 +9,16 @@ export class HomePage { constructor(public navCtrl: NavController) { + LocalNotifications.on('click', (notification, state) => { + alert(notification.id + " was clicked"); + }) + } showAlert() { LocalNotifications.schedule({ id: 1, text: "Single No...
3bf8c3974fc6ceb2546cbfa501da0386e0f421ab
src/cli.ts
src/cli.ts
import * as commander from "commander"; import { install, parseTyping, uninstall, Typing, TYPINGS_DIR } from "./index"; commander .version(require("../package").version); commander .command("install <name>") .description(`install typings to ${TYPINGS_DIR}`) .action((name: string) => { const t...
import * as commander from "commander"; import { install, parseTyping, uninstall, Typing, TYPINGS_DIR } from "./index"; commander .version(require("../package").version); commander .command("install <name> [otherNames...]") .description(`install typings to ${TYPINGS_DIR}`) .action((name: string, othe...
Support installing/uninstalling more than one package at once
Support installing/uninstalling more than one package at once
TypeScript
mit
tomshen/tsdm
--- +++ @@ -6,24 +6,27 @@ .version(require("../package").version); commander - .command("install <name>") + .command("install <name> [otherNames...]") .description(`install typings to ${TYPINGS_DIR}`) - .action((name: string) => { - const typing = parseTyping(name); - install(typin...
2f6a1417da2f45739ee2d74dfafa5cd5e00b1ad9
src/component/index.ts
src/component/index.ts
/* * @license * Copyright Hôpitaux Universitaires de Genève. All Rights Reserved. * * Use of this source code is governed by an Apache-2.0 license that can be * found in the LICENSE file at https://github.com/DSI-HUG/dejajs-components/blob/master/LICENSE */ export * from './accordion/index'; export * from '....
export * from './accordion/index'; export * from './autosize-textarea/index'; export * from './backdrop/index'; export * from './circular-picker/index'; export * from './code-viewer/index'; export * from './color-picker/index'; export * from './color-selector/index'; export * from './content-editable/index'; export * f...
Test commit ts file without license
Test commit ts file without license
TypeScript
apache-2.0
DSI-HUG/dejajs-components,DSI-HUG/dejajs-components,DSI-HUG/dejajs-components,DSI-HUG/dejajs-components
--- +++ @@ -1,11 +1,3 @@ -/* - * @license - * Copyright Hôpitaux Universitaires de Genève. All Rights Reserved. - * - * Use of this source code is governed by an Apache-2.0 license that can be - * found in the LICENSE file at https://github.com/DSI-HUG/dejajs-components/blob/master/LICENSE - */ - export * from '...
43dde6d6aa339177ae24367f636c89d06c41054b
src/index.ts
src/index.ts
/// <reference path="../typings/index.d.ts" /> try { require("source-map-support").install(); } catch (e) { /* empty */ } const log4js = require("log4js"); import {app, BrowserWindow} from "electron"; log4js.configure({ appenders: [{ type: "console", layout: { type: "basic" } }] }); async function main() { aw...
/// <reference path="../typings/index.d.ts" /> try { require("source-map-support").install(); } catch (e) { /* empty */ } const log4js = require("log4js"); import { app, BrowserWindow } from "electron"; log4js.configure({ appenders: [{ type: "console", layout: { type: "basic" } }] }); async function main() { ...
Fix exit when window closed
Fix exit when window closed
TypeScript
mit
progre/chatreader,progre/chatreader,progre/chatreader
--- +++ @@ -1,7 +1,7 @@ /// <reference path="../typings/index.d.ts" /> try { require("source-map-support").install(); } catch (e) { /* empty */ } const log4js = require("log4js"); -import {app, BrowserWindow} from "electron"; +import { app, BrowserWindow } from "electron"; log4js.configure({ appenders: [{ ...
29980b08e15d0ca29109fc263455b6d0f3b99ece
src/tasks/memory_monitor.ts
src/tasks/memory_monitor.ts
import { Client } from 'discord.js'; import * as cron from 'node-cron'; import { log } from '../helpers/logger'; export const startMemoryMonitor = (bot: Client): void => { cron.schedule('45 * * * * *', () => { log('info', bot.shard.ids[0], `memory usage - ${Math.round((process.memoryUsage().rss / 1024) / 1...
import { Client } from 'discord.js'; import * as cron from 'node-cron'; import { log } from '../helpers/logger'; export const startMemoryMonitor = (bot: Client): void => { cron.schedule('45 * * * * *', () => { log('info', bot.shard.ids[0], `memory usage - ${Math.round(process.memoryUsage().rss / 1024 / 102...
Fix formula for B to MB?
Fix formula for B to MB?
TypeScript
mpl-2.0
BibleBot/BibleBot,BibleBot/BibleBot,BibleBot/BibleBot
--- +++ @@ -4,6 +4,6 @@ export const startMemoryMonitor = (bot: Client): void => { cron.schedule('45 * * * * *', () => { - log('info', bot.shard.ids[0], `memory usage - ${Math.round((process.memoryUsage().rss / 1024) / 102400) / 100} MB`); + log('info', bot.shard.ids[0], `memory usage - ...
231d6a6ad59ecabc66b1bf7556782aad779fe29c
7-redux/app/components/users-list-with-details.ts
7-redux/app/components/users-list-with-details.ts
import {Component, CORE_DIRECTIVES} from 'angular2/angular2'; import {SimpleList} from 'InfomediaLtd/angular2-simple-list/app/components/simple-list.ts!'; import {UserView} from "../views/user-view"; import {User} from "../data/user"; import {AppStore} from "angular2-redux"; import {UserActions} from "../actions/user-...
import {Component, CORE_DIRECTIVES} from 'angular2/angular2'; import {SimpleList} from 'InfomediaLtd/angular2-simple-list/app/components/simple-list.ts!'; import {UserView} from "../views/user-view"; import {User} from "../data/user"; import {AppStore} from "angular2-redux"; import {UserActions} from "../actions/user-...
Use Actions base class to dispatch actions
Use Actions base class to dispatch actions
TypeScript
mit
InfomediaLtd/angular2-tutorial,InfomediaLtd/angular2-tutorial,InfomediaLtd/angular2-tutorial
--- +++ @@ -26,8 +26,7 @@ private selectCurrentUser; - constructor(private appStore:AppStore, - private userActions:UserActions) { + constructor(appStore:AppStore, userActions:UserActions) { this.selectCurrentUser = userActions.createDispatcher(appStore, userActions.setCurrent...
e320d274e478a8b8e52bdc63c3fd7b49ed5043f1
src/Test/Ast/RevisionInsertion.ts
src/Test/Ast/RevisionInsertion.ts
import { expect } from 'chai' import Up from '../../index' import { insideDocumentAndParagraph } from './Helpers' import { PlainTextNode } from '../../SyntaxNodes/PlainTextNode' import { EmphasisNode } from '../../SyntaxNodes/EmphasisNode' import { RevisionInsertionNode } from '../../SyntaxNodes/RevisionInsertionNode' ...
import { expect } from 'chai' import Up from '../../index' import { insideDocumentAndParagraph } from './Helpers' import { PlainTextNode } from '../../SyntaxNodes/PlainTextNode' import { EmphasisNode } from '../../SyntaxNodes/EmphasisNode' import { RevisionInsertionNode } from '../../SyntaxNodes/RevisionInsertionNode' ...
Add passing revisoin insertion test
Add passing revisoin insertion test
TypeScript
mit
start/up,start/up
--- +++ @@ -36,3 +36,15 @@ ])) }) }) + + +describe('An empty revision insertion', () => { + it('produces no syntax nodes', () => { + expect(Up.toAst('I have nothing to add: ++++')).to.be.eql( + insideDocumentAndParagraph([ + new PlainTextNode('I have nothing to add: ') + ]) + ) + }...
913aa5469010918b314c9bb8ac74353ce84dc422
src/redux/ui/reducers.ts
src/redux/ui/reducers.ts
import { ActionShowMenu, ActionHideMenu } from './actions'; import { ActionTypes, Action } from '../actions'; export interface UIState { isMenuShown: boolean; isFullscreen: boolean; } const initialState: UIState = { isMenuShown: false, isFullscreen: false, }; function handleShowMenu(state: UIState, action: A...
import { ActionShowMenu, ActionHideMenu } from './actions'; import { ActionTypes, Action } from '../actions'; export interface UIState { isMenuShown: boolean; isFullscreen: boolean; } const initialState: UIState = { isMenuShown: false, isFullscreen: false, }; function handleShowMenu(state: UIState, action: A...
Hide the menu when loading a room
:lipstick: Hide the menu when loading a room
TypeScript
mit
matthewtole/codenames,matthewtole/codenames,matthewtole/codenames
--- +++ @@ -36,6 +36,8 @@ return { ...state, isMenuShown: false }; case ActionTypes.UI_SET_IS_FULLSCREEN: return { ...state, isFullscreen: action.payload.isFullscreen }; + case ActionTypes.ROOM_LOAD: + return { ...state, isMenuShown: false }; default: return state; }
426b69811ad53a5b002056966ae1384145e27987
test/DispatcherSpec.ts
test/DispatcherSpec.ts
import Dispatcher from '../src/Dispatcher'; import * as chai from 'chai'; const expect = chai.expect; import * as path from 'path'; describe('Dispatcher', function () { it.only('Dispatches to fcat', function (done) { Dispatcher .dispatch('fcat', ['one', 'two'] .map((f) ...
import Dispatcher from '../src/Dispatcher'; import * as chai from 'chai'; const expect = chai.expect; import * as path from 'path'; describe('Dispatcher', function () { it('Dispatches to fcat', function (done) { Dispatcher .dispatch('fcat', ['one', 'two'] .map((f) => pa...
Remove test narrowing on Dispatcher
Remove test narrowing on Dispatcher
TypeScript
mit
hershal/fp-cli-ts,hershal/fp-cli-ts
--- +++ @@ -6,7 +6,7 @@ import * as path from 'path'; describe('Dispatcher', function () { - it.only('Dispatches to fcat', function (done) { + it('Dispatches to fcat', function (done) { Dispatcher .dispatch('fcat', ['one', 'two'] .map((f) => path.resolve(__dirnam...
be53d643823473a236a2665c233d9557085f7144
app/components/maintenance-banner/component.ts
app/components/maintenance-banner/component.ts
import { computed } from '@ember/object'; import $ from 'jquery'; import Component from '@ember/component'; import { task } from 'ember-concurrency'; import config from 'ember-get-config'; import moment from 'moment'; interface MaintenanceData { level?: number, message?: string, start?: string, end?: s...
import { computed } from '@ember/object'; import $ from 'jquery'; import Component from '@ember/component'; import { task } from 'ember-concurrency'; import config from 'ember-get-config'; import moment from 'moment'; interface MaintenanceData { level?: number, message?: string, start?: string, end?: s...
Use arrow functions when able
Use arrow functions when able
TypeScript
apache-2.0
hmoco/ember-osf-web,hmoco/ember-osf-web,hmoco/ember-osf-web
--- +++ @@ -24,19 +24,13 @@ this.set('maintenance', data.maintenance); }).restartable(), }) { - start = computed('maintenance.start', function(): string { - return moment(this.get('maintenance.start')).format('lll'); - }); + start = computed('maintenance.start', (): string => moment(thi...
d360e2f98660e4f91e2a120f25f75395cdd50b49
src/xrm-mock/usersettings/usersettings.mock.ts
src/xrm-mock/usersettings/usersettings.mock.ts
export class UserSettingsMock implements Xrm.UserSettings { public defaultDashboardId: string; public isGuidedHelpEnabled: boolean; public isHighContrastEnabled: boolean; public isRTL: boolean; public languageId: number; public securityRolePrivileges: string[]; public securityRoles: string[]; public tra...
export class UserSettingsMock implements Xrm.UserSettings { public defaultDashboardId: string; public isGuidedHelpEnabled: boolean; public isHighContrastEnabled: boolean; public isRTL: boolean; public languageId: number; public securityRolePrivileges: string[]; public securityRoles: string[]; public tra...
Add missing properties in getGlobalContext.userSettings
Add missing properties in getGlobalContext.userSettings
TypeScript
mit
camelCaseDave/xrm-mock,camelCaseDave/xrm-mock
--- +++ @@ -9,6 +9,8 @@ public transactionCurrencyId: string; public userId: string; public userName: string; + public roles: Xrm.Collection.ItemCollection<Xrm.LookupValue>; + public transactionCurrency: Xrm.LookupValue; constructor(components: IUserSettingsComponents) { this.defaultDashboardId =...
cfda6267fc7dc7585e406e6b963bb3384909c054
src/testing/support/createElement.ts
src/testing/support/createElement.ts
/** * Create HTML and SVG elements from a valid HTML string. * * The given HTML must contain only one root element, of type `Element`. */ export function createElement(html: string): Element { return document.createRange().createContextualFragment(html).firstElementChild as Element }
/** * Create HTML and SVG elements from a valid HTML string. * * NOTE The given HTML must contain only one root element, of type `Element`. */ export function createElement(html: string): Element { return document.createRange().createContextualFragment(html).firstElementChild as Element }
Change comment for consistency and clarity
Change comment for consistency and clarity
TypeScript
agpl-3.0
inad9300/Soil,inad9300/Soil
--- +++ @@ -1,7 +1,7 @@ /** * Create HTML and SVG elements from a valid HTML string. * - * The given HTML must contain only one root element, of type `Element`. + * NOTE The given HTML must contain only one root element, of type `Element`. */ export function createElement(html: string): Element { return ...
4d6952361e5b2d35513036ab5e79da5bcb5bfe81
server/helpers/markdown.ts
server/helpers/markdown.ts
import { getSanitizeOptions, TEXT_WITH_HTML_RULES } from '@shared/core-utils' const sanitizeOptions = getSanitizeOptions() const sanitizeHtml = require('sanitize-html') const markdownItEmoji = require('markdown-it-emoji/light') const MarkdownItClass = require('markdown-it') const markdownIt = new MarkdownItClass('def...
import { getSanitizeOptions, TEXT_WITH_HTML_RULES } from '@shared/core-utils' const sanitizeOptions = getSanitizeOptions() const sanitizeHtml = require('sanitize-html') const markdownItEmoji = require('markdown-it-emoji/light') const MarkdownItClass = require('markdown-it') const markdownIt = new MarkdownItClass('def...
Fix multiple \n in md to plain text
Fix multiple \n in md to plain text
TypeScript
agpl-3.0
Chocobozzz/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube
--- +++ @@ -34,7 +34,7 @@ return safeHtml.replace(/<[^>]+>/g, '') .replace(/\n$/, '') - .replace('\n', ', ') + .replace(/\n/g, ', ') } // ---------------------------------------------------------------------------
108a66f0dac7586f2f7871c6bb77f73cb924f2b3
client/src/app/core/routing/redirect.service.ts
client/src/app/core/routing/redirect.service.ts
import { Injectable } from '@angular/core' import { Router } from '@angular/router' import { ServerService } from '../server' @Injectable() export class RedirectService { // Default route could change according to the instance configuration static INIT_DEFAULT_ROUTE = '/videos/trending' static DEFAULT_ROUTE = Re...
import { Injectable } from '@angular/core' import { Router } from '@angular/router' import { ServerService } from '../server' @Injectable() export class RedirectService { // Default route could change according to the instance configuration static INIT_DEFAULT_ROUTE = '/videos/trending' static DEFAULT_ROUTE = Re...
Fix history back after a redirect
Fix history back after a redirect
TypeScript
agpl-3.0
Green-Star/PeerTube,Green-Star/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube,Green-Star/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube,Green-Star/PeerTube
--- +++ @@ -31,7 +31,7 @@ redirectToHomepage () { console.log('Redirecting to %s...', RedirectService.DEFAULT_ROUTE) - this.router.navigate([ RedirectService.DEFAULT_ROUTE ]) + this.router.navigate([ RedirectService.DEFAULT_ROUTE ], { replaceUrl: true }) .catch(() => { console.error( ...
4c49e9bc8a1703dc3aa6701a51bd1bdb43c01e2e
packages/components/containers/topBanners/WelcomeV4TopBanner.tsx
packages/components/containers/topBanners/WelcomeV4TopBanner.tsx
import React from 'react'; import { c } from 'ttag'; import { APPS, SSO_PATHS } from 'proton-shared/lib/constants'; import TopBanner from './TopBanner'; import { useConfig } from '../../hooks'; const IS_INITIAL_LOGIN = [SSO_PATHS.AUTHORIZE, SSO_PATHS.LOGIN, '/'].includes(window.location.pathname); const WelcomeV4Top...
import React from 'react'; import { c } from 'ttag'; import { APPS, SSO_PATHS } from 'proton-shared/lib/constants'; import TopBanner from './TopBanner'; import { useConfig } from '../../hooks'; import { Href } from '../../components'; const IS_INITIAL_LOGIN = [SSO_PATHS.AUTHORIZE, SSO_PATHS.LOGIN, '/'].includes(windo...
Update welcome v4 banner to includes link
Update welcome v4 banner to includes link
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -4,6 +4,7 @@ import TopBanner from './TopBanner'; import { useConfig } from '../../hooks'; +import { Href } from '../../components'; const IS_INITIAL_LOGIN = [SSO_PATHS.AUTHORIZE, SSO_PATHS.LOGIN, '/'].includes(window.location.pathname); @@ -16,8 +17,11 @@ return ( <TopBanner class...
35a7d8cfb6c6be4980835a5da029caf1bfc671d6
config/config.local.ts
config/config.local.ts
import * as Config from "webpack-chain"; import * as CommonConfig from "./config.common"; import { Credentials, EnvOptions } from "./types"; function webpackConfig(options: EnvOptions = {}): Config { // get the common configuration to start with const config = CommonConfig.init(options); // TIP: if you symlink...
/* tslint:disable:no-require-imports */ import * as Config from "webpack-chain"; import * as CommonConfig from "./config.common"; import { Credentials, EnvOptions } from "./types"; function webpackConfig(options: EnvOptions = {}): Config { // get the common configuration to start with const config = CommonConfig....
Disable no-require-imports on config files
Disable no-require-imports on config files
TypeScript
mit
resir014/screeps,resir014/screeps
--- +++ @@ -1,3 +1,4 @@ +/* tslint:disable:no-require-imports */ import * as Config from "webpack-chain"; import * as CommonConfig from "./config.common";
a068ef8ad62426c2635cea2163dfe5ac6c558599
front-end/src/app/components/search-form/search-form.directive.ts
front-end/src/app/components/search-form/search-form.directive.ts
import { ApiInterface } from '../../common/services/api.service'; /** @ngInject */ export function searchForm(): angular.IDirective { return { restrict: 'E', scope: {}, templateUrl: 'app/components/search-form/search-form.view.html', controller: SearchFormController, controllerAs: 'vm', bindT...
import { ApiInterface } from '../../common/services/api.service'; /** @ngInject */ export function searchForm():angular.IDirective { return { restrict: 'E', scope: {}, templateUrl: 'app/components/search-form/search-form.view.html', controller: SearchFormController, controllerAs: 'vm', bindTo...
Reduce lint warnings delete "debugger"
Reduce lint warnings delete "debugger"
TypeScript
mit
automaidan/judges,automaidan/judges,automaidan/judges,automaidan/judges
--- +++ @@ -1,6 +1,6 @@ import { ApiInterface } from '../../common/services/api.service'; /** @ngInject */ -export function searchForm(): angular.IDirective { +export function searchForm():angular.IDirective { return { restrict: 'E', @@ -9,7 +9,8 @@ controller: SearchFormController, controllerAs...
16ef5f4b158e3339c332156a65d0a6685c9f3cfd
src/pages/home/home.e2e.ts
src/pages/home/home.e2e.ts
import { browser, by, element } from 'protractor'; class HomeObj { public title; constructor() { // this.title = element(by.id('title')); } } describe('App', () => { // beforeEach(() => { // browser.get('/'); // }); // const home: HomeObj = new HomeObj(); // it('should have a title', () => { ...
import { browser, by, element } from 'protractor'; class HomeObj { public title; constructor() { // this.title = element(by.id('title')); } } describe('App', () => { // beforeEach(() => { // browser.get('/'); // }); // const home: HomeObj = new HomeObj(); // it('should have a title', () => { ...
Add correct indentation to config files
Add correct indentation to config files
TypeScript
mit
kojinkai/predictor-ionic,kojinkai/predictor-ionic,kojinkai/predictor-ionic,kojinkai/predictor-ionic
--- +++ @@ -18,4 +18,5 @@ // it('should have a title', () => { // expect((home.title).isDisplayed()).toBeTruthy(); // }); + });
d2f506845e451dbb61a3e0133cb8bed68f5ce22d
src/vs/languages/html/common/html.contribution.ts
src/vs/languages/html/common/html.contribution.ts
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
Add text/ng-template to the HTML mime types to enable HTML highlighting/help in Angular templates with in <script> blocks
Add text/ng-template to the HTML mime types to enable HTML highlighting/help in Angular templates with in <script> blocks
TypeScript
mit
matthewshirley/vscode,f111fei/vscode,joaomoreno/vscode,edumunoz/vscode,the-ress/vscode,rishii7/vscode,mjbvz/vscode,KattMingMing/vscode,f111fei/vscode,0xmohit/vscode,the-ress/vscode,Zalastax/vscode,sifue/vscode,cleidigh/vscode,ups216/vscode,eamodio/vscode,Microsoft/vscode,veeramarni/vscode,microlv/vscode,cleidigh/vscode...
--- +++ @@ -10,7 +10,7 @@ id: 'html', extensions: ['.html', '.htm', '.shtml', '.mdoc', '.jsp', '.asp', '.aspx', '.jshtm'], aliases: ['HTML', 'htm', 'html', 'xhtml'], - mimetypes: ['text/html', 'text/x-jshtm', 'text/template'], + mimetypes: ['text/html', 'text/x-jshtm', 'text/template', 'text/ng-template'], mo...
0cdd7af407f46169601ec81f396409ebc576a0c3
platforms/platform-alexa/src/AlexaHandles.ts
platforms/platform-alexa/src/AlexaHandles.ts
import { HandleOptions, Jovo } from '@jovotech/framework'; import { AlexaRequest } from './AlexaRequest'; import { PermissionStatus } from './interfaces'; export type PermissionType = 'timers' | 'reminders'; export class AlexaHandles { static onPermission(status: PermissionStatus, type?: PermissionType): HandleOpti...
import { HandleOptions, Jovo } from '@jovotech/framework'; import { AlexaRequest } from './AlexaRequest'; import { PermissionStatus } from './interfaces'; export type PermissionType = 'timers' | 'reminders'; export class AlexaHandles { static onPermission(status: PermissionStatus, type?: PermissionType): HandleOpti...
Add onDialogInvoked to handle hand-off from Alexa Conversations
:sparkles: Add onDialogInvoked to handle hand-off from Alexa Conversations
TypeScript
apache-2.0
jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs
--- +++ @@ -19,4 +19,12 @@ : true), }; } + + static onDialogInvoked(): HandleOptions { + return { + global: true, + types: ['Dialog.API.Invoked'], + platforms: ['alexa'], + }; + } }
06e7bc39ce24164e3623b6c630e79af84af1c9bb
admin/src/main/app-ui/src/app/mapping-interface.ts
admin/src/main/app-ui/src/app/mapping-interface.ts
export interface MappingValues { OriginTissue: string; TumorType: string; SampleDiagnosis: string; DataSource: string; } export interface Mapping { entityId: number; entityType: string; mappingLabels: string[]; mappingValues: MappingValues; mappedTerm?: any; mapType?: any; j...
export interface MappingValues { OriginTissue: string; TumorType: string; SampleDiagnosis: string; DataSource: string; } export interface Mapping { entityId: number; entityType: string; mappingLabels: string[]; mappingValues: MappingValues; mappedTerm?: any; mapType?: any; j...
Extend the Data Transfer Object Interface in angular to capture pagination info
Extend the Data Transfer Object Interface in angular to capture pagination info
TypeScript
apache-2.0
PDXFinder/pdxfinder,PDXFinder/pdxfinder,PDXFinder/pdxfinder,PDXFinder/pdxfinder
--- +++ @@ -20,7 +20,14 @@ } export interface MappingInterface { + mappings: Mapping[]; + + size: number; + totalElements: number; + totaPages: number; + page: number; + beginIndex: number; + endIndex: number; + currentIndex: number; } - -
72f4c0223b751e579194d44d02bbe2dc7a550a41
src/test/model-utils.spec.ts
src/test/model-utils.spec.ts
import {fdescribe,describe,expect,fit,it,xit, inject,beforeEach, beforeEachProviders} from 'angular2/testing'; import {provide} from "angular2/core"; import {IdaiFieldObject} from "../app/model/idai-field-object"; import {ModelUtils} from "../app/model/model-utils"; /** * @author Jan G. Wieners */ export function ma...
import {fdescribe,describe,expect,fit,it,xit, inject,beforeEach, beforeEachProviders} from 'angular2/testing'; import {provide} from "angular2/core"; import {IdaiFieldObject} from "../app/model/idai-field-object"; import {ModelUtils} from "../app/model/model-utils"; /** * @author Jan G. Wieners */ export function ma...
Add tests for cloning objects and filtering unwanted object propierties.
Add tests for cloning objects and filtering unwanted object propierties.
TypeScript
apache-2.0
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
--- +++ @@ -9,7 +9,7 @@ export function main() { describe('ModelUtils', () => { - it('should clone an IdaiFieldObject with all of its properties', + it('should clone an IdaiFieldObject with all of its properties if no filter properties are given', function(){ var ...
82c47a0d04856a7bfea468db580a20f62a2f55cb
examples/spaceGame.ts
examples/spaceGame.ts
import { Boolean, Number, String, Literal, Array, Tuple, Record, Union, Static } from '../src/index' const Vector = Tuple(Number, Number, Number) type Vector = Static<typeof Vector> const Asteroid = Record({ type: Literal('asteroid'), location: Vector, mass: Number, }) type Asteroid = Static<typeof Asteroid> c...
import { Boolean, Number, String, Literal, Array, Tuple, Record, Union, Static } from '../src/index' const NonNegative = Number.withConstraint(n => n >= 0) const Vector = Tuple(Number, Number, Number) type Vector = Static<typeof Vector> const Asteroid = Record({ type: Literal('asteroid'), location: Vector, mas...
Add a constraint to the example
Add a constraint to the example
TypeScript
mit
pelotom/runtypes,typeetfunc/runtypes,pelotom/runtypes
--- +++ @@ -1,4 +1,6 @@ import { Boolean, Number, String, Literal, Array, Tuple, Record, Union, Static } from '../src/index' + +const NonNegative = Number.withConstraint(n => n >= 0) const Vector = Tuple(Number, Number, Number) type Vector = Static<typeof Vector> @@ -6,15 +8,15 @@ const Asteroid = Record({ t...
3c1c688716409baf0e104ec9631b1cf3f95ccf37
packages/lesswrong/components/posts/PostsPage/PostsPageEventData.tsx
packages/lesswrong/components/posts/PostsPage/PostsPageEventData.tsx
import React from 'react' import { registerComponent, Components } from '../../../lib/vulcan-lib'; import Typography from '@material-ui/core/Typography' const styles = theme => ({ metadata: { marginTop:theme.spacing.unit*3, ...theme.typography.postStyle, color: 'rgba(0,0,0,0.5)', } }) const PostsPageE...
import React from 'react' import { registerComponent, Components } from '../../../lib/vulcan-lib'; import Typography from '@material-ui/core/Typography' const styles = theme => ({ metadata: { marginTop:theme.spacing.unit*3, ...theme.typography.postStyle, color: 'rgba(0,0,0,0.5)', } }) const PostsPageE...
Add COVID-19 notice to event pages
Add COVID-19 notice to event pages
TypeScript
mit
Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2
--- +++ @@ -19,6 +19,7 @@ <div className={classes.eventTimes}> <Components.EventTime post={post} dense={false} /> </div> { location && <div className={classes.eventLocation}> {location} </div> } { contactInfo && <div className={classes.eventContact}> Contact: {contactInfo} </div> } + <Compon...
1dcf933dde3946397d38dde78ddc668c66d728d7
packages/@sanity/field/src/diff/annotations/DiffAnnotationCard.tsx
packages/@sanity/field/src/diff/annotations/DiffAnnotationCard.tsx
import React, {createElement} from 'react' import {useAnnotationColor} from './hooks' import {AnnotationProps, AnnotatedDiffProps} from './DiffAnnotation' import {getAnnotationAtPath} from './helpers' interface BaseDiffAnnotationCardProps { as?: React.ElementType | keyof JSX.IntrinsicElements } export type DiffAnno...
import React, {createElement} from 'react' import {useAnnotationColor} from './hooks' import {AnnotationProps, AnnotatedDiffProps} from './DiffAnnotation' import {getAnnotationAtPath} from './helpers' import {Diff, Annotation} from '../../types' import {Path} from '../../paths' interface BaseDiffAnnotationCardProps { ...
Fix diff/path/annotation passed down to DOM element
[field] Fix diff/path/annotation passed down to DOM element
TypeScript
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
--- +++ @@ -2,9 +2,14 @@ import {useAnnotationColor} from './hooks' import {AnnotationProps, AnnotatedDiffProps} from './DiffAnnotation' import {getAnnotationAtPath} from './helpers' +import {Diff, Annotation} from '../../types' +import {Path} from '../../paths' interface BaseDiffAnnotationCardProps { as?: R...
7699ca680dd0a6c5b81da3e1a5cc194c46e8c87c
src/app/doc/utilities/code.card.component.ts
src/app/doc/utilities/code.card.component.ts
import { Component, Input } from '@angular/core'; @Component({ selector: 'codeCard', template: `<plrsCard sectioned title="Angular Code"> <pre><code>{{ code }}</code></pre> </plrsCard>`, styles: ["plrscard {margin-top: 2rem;}"] }) export class CodeCardComponent { @Input() public code = ''; }...
import { Component, Input } from '@angular/core'; @Component({ selector: 'codeCard', template: `<plrsCard sectioned title="Angular Code"> <pre><code>{{ code }}</code></pre> </plrsCard>`, styles: [ "plrscard {margin-top: 2rem;}", "pre {overflow: auto;}" ] }) export class CodeC...
Allow scrolling of the code.
Allow scrolling of the code.
TypeScript
mit
syrp-nz/angular-polaris,syrp-nz/angular-polaris,syrp-nz/angular-polaris
--- +++ @@ -4,7 +4,10 @@ template: `<plrsCard sectioned title="Angular Code"> <pre><code>{{ code }}</code></pre> </plrsCard>`, - styles: ["plrscard {margin-top: 2rem;}"] + styles: [ + "plrscard {margin-top: 2rem;}", + "pre {overflow: auto;}" + ] }) export class CodeCardComp...
b2ef9b22bb880342e7688303b698a7410ee98763
server/src/providers/DocumentSymbolProvider.ts
server/src/providers/DocumentSymbolProvider.ts
import { DocumentSymbol, DocumentSymbolParams, IConnection } from 'vscode-languageserver'; import Provider from './Provider'; import { analyses } from '../Analyzer'; export default class DocumentSymbolProvider extends Provider { static register(connection: IConnection) { return new DocumentSymbolProvider(connection...
import { DocumentSymbol, DocumentSymbolParams, IConnection } from 'vscode-languageserver'; import Provider from './Provider'; import { analyses } from '../Analyzer'; export default class DocumentSymbolProvider extends Provider { static register(connection: IConnection) { return new DocumentSymbolProvider(connection...
Remove document symbol console.log statement
Remove document symbol console.log statement
TypeScript
mit
rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby
--- +++ @@ -19,7 +19,6 @@ textDocument: { uri }, } = params; const analysis = analyses.getAnalysis(uri); - console.log(JSON.stringify(analysis.documentSymbols)); return analysis.documentSymbols; }; }
c6feaa016a92ff3ef9ba36ea6694a43f04712e2d
tests/cases/fourslash/completionListImplementingInterfaceFunctions.ts
tests/cases/fourslash/completionListImplementingInterfaceFunctions.ts
/// <reference path="fourslash.ts" /> ////interface I1 { //// a(): void; //// b(): void; ////} //// ////var imp1: I1 { //// a() {}, //// /*0*/ ////} //// ////interface I2 { //// a(): void; //// b(): void; ////} //// ////var imp2: I2 { //// a: () => {}, //// /*1*/ ////} goTo.marker("0"); verify...
/// <reference path="fourslash.ts" /> ////interface I1 { //// a(): void; //// b(): void; ////} //// ////var imp1: I1 { //// a() {}, //// /*0*/ ////} //// ////var imp2: I1 { //// a: () => {}, //// /*1*/ ////} goTo.marker("0"); verify.not.completionListContains("a"); goTo.marker("1"); verify.not.compl...
Remove unnecessary I2 from test case
Remove unnecessary I2 from test case
TypeScript
apache-2.0
microsoft/TypeScript,DLehenbauer/TypeScript,weswigham/TypeScript,jeremyepling/TypeScript,kitsonk/TypeScript,erikmcc/TypeScript,mihailik/TypeScript,nycdotnet/TypeScript,kimamula/TypeScript,kpreisser/TypeScript,DLehenbauer/TypeScript,ziacik/TypeScript,synaptek/TypeScript,erikmcc/TypeScript,minestarks/TypeScript,mmoskal/T...
--- +++ @@ -10,12 +10,7 @@ //// /*0*/ ////} //// -////interface I2 { -//// a(): void; -//// b(): void; -////} -//// -////var imp2: I2 { +////var imp2: I1 { //// a: () => {}, //// /*1*/ ////}
811a44e5fd539d6dd1da83ec807795e9c40d850a
src/app/model/SearchQuery.ts
src/app/model/SearchQuery.ts
/** * Created by user on 4/7/2017. */ export class Rule { condition = 'equal'; field = 'all_fields'; data = ''; data2 = ''; query: SearchQuery = null; } export class SearchQuery { operator = 'AND'; rules: Rule[] = []; constructor() { const rule: Rule = new Rule(); thi...
/** * Created by user on 4/7/2017. */ export class Rule { condition = 'equal'; field = 'all_fields'; data = ''; data2 = ''; query: SearchQuery = null; } export class SearchQuery { operator = 'AND'; rules: Rule[] = []; constructor() { const rule: Rule = new Rule(); thi...
Fix facet selecting not worked
Fix facet selecting not worked
TypeScript
unknown
BD2K-DDI/ddi-web-app,OmicsDI/ddi-web-app,OmicsDI/ddi-web-app,BD2K-DDI/ddi-web-app,OmicsDI/ddi-web-app
--- +++ @@ -43,6 +43,9 @@ } if (rule.field === 'all_fields') { + if (strtemp[0] === '"') { + strtemp = strtemp.slice(1, strtemp.length - 1); + } str += strtemp; } else { ...
0ad3e930c5bf430b1fc5210b99706e6ab4639041
packages/tux/src/services/editor.ts
packages/tux/src/services/editor.ts
const schema = new Map() export interface Field { field: string, label: string, component: React.ReactElement<any>, props?: Object } export interface Meta { type: string, editorSchema?: Array<Field>, name?: string, } export function registerEditable(type: string, value: Array<Object> | ((editorSchema...
const schema = new Map() export interface Field { field: string, label: string, component: React.ReactElement<any>, props?: Object } export interface Meta { type: string, editorSchema?: Array<Field>, name?: string, } export function registerEditable( type: string, value: Array<Field> | ((editorSche...
Change expected type of value in registerEditable
Change expected type of value in registerEditable
TypeScript
mit
aranja/tux,aranja/tux,aranja/tux
--- +++ @@ -13,8 +13,10 @@ name?: string, } -export function registerEditable(type: string, - value: Array<Object> | ((editorSchema: Map<string, Field>) => Map<string, Field>)) { +export function registerEditable( + type: string, + value: Array<Field> | ((editorSchema: Map<string, Field>) => Map<string, Fiel...
143ac55a08c94b524581d4a8cbe0a48d40f834b6
src/providers/sentry-error.ts
src/providers/sentry-error.ts
import { IonicErrorHandler } from 'ionic-angular'; import Raven from 'raven-js'; Raven .config('https://54c01f896cbb4594b75639dfbf59b81e@sentry.io/155883') .install(); // Sentry.io error handling export class SentryErrorHandler extends IonicErrorHandler { handleError(error) { super.handleError(err...
import { IonicErrorHandler } from 'ionic-angular'; import Raven from 'raven-js'; // only initialize Sentry.io if on actual device if ((<any>window).cordova) Raven .config('https://54c01f896cbb4594b75639dfbf59b81e@sentry.io/155883') .install(); // Sentry.io error handling export class SentryErrorHa...
Disable error logging in dev
Disable error logging in dev
TypeScript
mit
longzheng/mypal-ionic,longzheng/mypal-ionic,longzheng/mypal-ionic
--- +++ @@ -1,9 +1,11 @@ import { IonicErrorHandler } from 'ionic-angular'; import Raven from 'raven-js'; -Raven - .config('https://54c01f896cbb4594b75639dfbf59b81e@sentry.io/155883') - .install(); +// only initialize Sentry.io if on actual device +if ((<any>window).cordova) + Raven + .config('htt...
86047a7206c60e7964e7108f7aab758bc485bd5b
tests/cases/fourslash/superInsideInnerClass.ts
tests/cases/fourslash/superInsideInnerClass.ts
/// <reference path="fourslash.ts" /> ////class Base { //// constructor(n: number) { //// } ////} ////class Derived extends Base { //// constructor() { /...
/// <reference path="fourslash.ts" /> ////class Base { //// constructor(n: number) { //// } ////} ////class Derived extends Base { //// constructor() { //// class Nested { //// [super(/*1*/)] = 11111 //// } //// } ////} goTo.marker('1'); verify.signatureHelpCountIs(0);
Switch test encoding from UTF16 to iso-8859
Switch test encoding from UTF16 to iso-8859
TypeScript
apache-2.0
kitsonk/TypeScript,blakeembrey/TypeScript,synaptek/TypeScript,nycdotnet/TypeScript,evgrud/TypeScript,kpreisser/TypeScript,mihailik/TypeScript,nojvek/TypeScript,plantain-00/TypeScript,microsoft/TypeScript,ziacik/TypeScript,RyanCavanaugh/TypeScript,thr0w/Thr0wScript,plantain-00/TypeScript,jwbay/TypeScript,mihailik/TypeSc...
--- +++ @@ -1,31 +1,15 @@ -/// <reference path="fourslash.ts" /> - -////class Base { - -//// constructor(n: number) { - -//// } - -////} - -////class Derived extends Base { - -///...
6569ca62df89085a2a409a9c24281a9c1a854bf5
server/models/user.ts
server/models/user.ts
import { Schema, model, Document } from 'mongoose'; const UserSchema = new Schema({ createTime: { type: Date, default: Date.now }, lastLoginTime: { type: Date, default: Date.now }, username: { type: String, trim: true, unique: true, match: /^([0-9a-zA-Z]{1,2}|[\u4e00-\u9eff...
import { Schema, model, Document } from 'mongoose'; const UserSchema = new Schema({ createTime: { type: Date, default: Date.now }, lastLoginTime: { type: Date, default: Date.now }, username: { type: String, trim: true, unique: true, match: /^([0-9a-zA-Z]{1,2}|[\u4e00-\u9eff...
Store up to 3 notification tokens
Store up to 3 notification tokens
TypeScript
mit
yinxin630/fiora,yinxin630/fiora,yinxin630/fiora
--- +++ @@ -25,7 +25,10 @@ type: String, }, ], - notificationTokens: [{ type: String }], + notificationTokens: { + type: [{ type: String }], + validate: [(arr: Array<string>) => arr.length <= 3, '{PATH} exceeds the limit of 3'], + }, }); export interface UserDocum...
578be142bb7cc4d3c2886038a40b5a16a17395a6
generators/app/templates/src/index.ts
generators/app/templates/src/index.ts
import 'reflect-metadata'; import { bootstrap } from 'angular2/bootstrap'; <% if (modules === 'webpack') { -%> import './index.<%- css %>'; <% } -%> import { Hello } from './app/hello'; bootstrap(Hello);
///<reference path="../node_modules/angular2/typings/browser.d.ts"/> import 'reflect-metadata'; import { bootstrap } from 'angular2/bootstrap'; <% if (modules === 'webpack') { -%> import './index.<%- css %>'; <% } -%> import { Hello } from './app/hello'; bootstrap(Hello);
Fix angular-beta.6 change that require reference path to typings/browser.d.ts
Fix angular-beta.6 change that require reference path to typings/browser.d.ts
TypeScript
mit
FountainJS/generator-fountain-angular2,FountainJS/generator-fountain-angular2,FountainJS/generator-fountain-angular2
--- +++ @@ -1,3 +1,5 @@ +///<reference path="../node_modules/angular2/typings/browser.d.ts"/> + import 'reflect-metadata'; import { bootstrap } from 'angular2/bootstrap';
8880a9201886c288eb9ef95f96ff5926f97133d8
app/scripts/components/modal/ActionDialog.tsx
app/scripts/components/modal/ActionDialog.tsx
import * as React from 'react'; import { SubmitButton, FormContainer, FieldError } from '@waldur/form-react'; import { CloseDialogButton } from './CloseDialogButton'; import { ModalDialog } from './ModalDialog'; export const ActionDialog = props => ( <ModalDialog title={props.title} footer={ <form on...
import * as React from 'react'; import { SubmitButton, FormContainer, FieldError } from '@waldur/form-react'; import { CloseDialogButton } from './CloseDialogButton'; import { ModalDialog } from './ModalDialog'; export const ActionDialog = props => ( <form onSubmit={props.onSubmit}> <ModalDialog title={p...
Implement client-side validation for required fields using HTML5
Implement client-side validation for required fields using HTML5 [WAL-1313]
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -6,17 +6,19 @@ import { ModalDialog } from './ModalDialog'; export const ActionDialog = props => ( - <ModalDialog - title={props.title} - footer={ - <form onSubmit={props.onSubmit}> - <SubmitButton submitting={props.submitting} label={props.submitLabel}/> - <CloseDialogButton/...
a86778ef6ba114ab3b2e4fdfc326e0dd8251bad6
core/connectEditable.ts
core/connectEditable.ts
import * as BaseActions from "actions/BaseEditActions"; import { EditableCallbacks, EditableProps} from "core/EditableProps"; import { connect } from "react-redux"; import {Store} from "stores"; type MappedProps<TProps extends EditableProps<any>> = TProps & EditableProps<TProps["value"]>; type EditableComponentProps ...
import * as BaseActions from "actions/BaseEditActions"; import { EditableCallbacks, EditableProps} from "core/EditableProps"; import { connect } from "react-redux"; import {Store} from "stores"; type MappedProps<TProps extends EditableProps<any>> = TProps & EditableProps<TProps["value"]>; type EditableComponentProps ...
Use spread to create a new props object since we have some connected elements nested in nonconnected elements (so sometimes stuff will break if we don't clone the props)
Use spread to create a new props object since we have some connected elements nested in nonconnected elements (so sometimes stuff will break if we don't clone the props)
TypeScript
mit
software-training-for-students/manual-editor,software-training-for-students/manual-editor,software-training-for-students/manual-editor
--- +++ @@ -10,7 +10,7 @@ type RequiredProps = {itemId: number}; function mapStateToProps <TProps extends EditableComponentProps>(state: Store, {itemId}: RequiredProps): MappedProps<TProps> { - return state.document[itemId] as TProps; + return {... state.document[itemId]} as TProps; }; const mapBaseActi...
e33fc763ee5106cf9684c161a89ff0e7f16be0fe
src/custom-compiler.ts
src/custom-compiler.ts
// Only for types; take care never to use ts_types in expressions, only in type annotations import * as ts_types from 'typescript'; import { wrapError } from './utils/wrap-error'; import { TsJestConfig } from './types'; /** * Return a typescript compiler. * Allows config to specify alternative compiler. * F...
// Only for types; take care never to use ts_types in expressions, only in type annotations import * as ts_types from 'typescript'; import { wrapError } from './utils/wrap-error'; import { TsJestConfig } from './types'; /** * Return a typescript compiler. * Allows config to specify alternative compiler. * F...
Fix bug getting typescript compiler when tsjestconfig is undefined
Fix bug getting typescript compiler when tsjestconfig is undefined
TypeScript
mit
kulshekhar/ts-jest,kulshekhar/ts-jest
--- +++ @@ -8,8 +8,8 @@ * Allows config to specify alternative compiler. * For example, `ntypescript`. */ -export function getTypescriptCompiler(config: TsJestConfig): typeof ts_types { - const compilerName = typeof config.compiler === 'string' ? config.compiler : 'typescript'; +export function getTypescriptCo...
2e2de9e67ad46d1b3ad261d9c83e85f84e9ef9e0
src/ts/models/square.ts
src/ts/models/square.ts
namespace MainApp { /** * Square */ export class Square { constructor() { } } }
/// <reference path="./interfaces/puttable.ts" /> namespace MainApp { /** * Square */ export class Square { constructor(public piece:Puttable = null) { } } }
Add piece property to Square
Add piece property to Square
TypeScript
mit
yajamon/marukake,yajamon/marukake,yajamon/marukake
--- +++ @@ -1,9 +1,11 @@ +/// <reference path="./interfaces/puttable.ts" /> + namespace MainApp { /** * Square */ export class Square { - constructor() { + constructor(public piece:Puttable = null) { } } }
f7b45868cf77ba78fd397c078e89d7f0d279923f
packages/skin-database/api/processUserUploads.ts
packages/skin-database/api/processUserUploads.ts
import * as Skins from "../data/skins"; import S3 from "../s3"; import { addSkinFromBuffer } from "../addSkin"; import { EventHandler } from "./app"; let processing = false; export async function processUserUploads(eventHandler: EventHandler) { // Ensure we only have one worker processing requests. if (processing...
import * as Skins from "../data/skins"; import S3 from "../s3"; import { addSkinFromBuffer } from "../addSkin"; import { EventHandler } from "./app"; async function* reportedUploads() { const upload = await Skins.getReportedUpload(); if (upload != null) { yield upload; } } let processing = false; export as...
Use async generator for handling uploads
Use async generator for handling uploads
TypeScript
mit
captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js
--- +++ @@ -2,6 +2,13 @@ import S3 from "../s3"; import { addSkinFromBuffer } from "../addSkin"; import { EventHandler } from "./app"; + +async function* reportedUploads() { + const upload = await Skins.getReportedUpload(); + if (upload != null) { + yield upload; + } +} let processing = false; @@ -11,8 ...
3305a16c89afa0124b32581a5228a159c8a2e6af
src/common/appState.ts
src/common/appState.ts
type AppStateKey = | "transcript" | "userWantsToQuit" | "safeToQuit" | "lastSavedFilepath" | "lastSavedFileName" | "pathToMediaSource" | "currentTime" type AppStateValue = true | false | string | number const appState = new Map() export const setAppState = (key: AppStateKey, value: AppStateValue): void...
interface AppState { transcript: string userWantsToQuit: boolean safeToQuit: boolean lastSavedFilepath: string lastSavedFileName: string pathToMediaSource: string currentTime: number } const appState: AppState = { transcript: "", userWantsToQuit: false, safeToQuit: false, lastSavedFileName: "", ...
Reimplement app state as an interface
Reimplement app state as an interface
TypeScript
agpl-3.0
briandk/transcriptase,briandk/transcriptase
--- +++ @@ -1,32 +1,34 @@ -type AppStateKey = - | "transcript" - | "userWantsToQuit" - | "safeToQuit" - | "lastSavedFilepath" - | "lastSavedFileName" - | "pathToMediaSource" - | "currentTime" - -type AppStateValue = true | false | string | number - -const appState = new Map() - -export const setAppState = (key...
87ff182c289c60036d5fb87c842aa60d15594560
src/picturepark-sdk-v1-angular/projects/picturepark-sdk-v1-angular/src/tests/share-service.spec.ts
src/picturepark-sdk-v1-angular/projects/picturepark-sdk-v1-angular/src/tests/share-service.spec.ts
import { } from 'jasmine'; import { async, inject } from '@angular/core/testing'; import { configureTest } from './config'; import { ContentService, ShareService, ContentSearchRequest, ShareContent, ShareBasicCreateRequest, OutputAccess } from '../lib/api-services'; describe('ShareService', () => { beforeEach(confi...
import { } from 'jasmine'; import { async, inject } from '@angular/core/testing'; import { configureTest } from './config'; import { ContentService, ShareService, ContentSearchRequest, ShareContent, ShareBasicCreateRequest, OutputAccess } from '../lib/api-services'; describe('ShareService', () => { beforeEach(confi...
Disable "should create embed share" test
Disable "should create embed share" test
TypeScript
mit
Picturepark/Picturepark.SDK.TypeScript,Picturepark/Picturepark.SDK.TypeScript,Picturepark/Picturepark.SDK.TypeScript
--- +++ @@ -7,32 +7,32 @@ describe('ShareService', () => { beforeEach(configureTest); - it('should create embed share', async(inject([ContentService, ShareService], - async (contentService: ContentService, shareService: ShareService) => { - // arrange - const request = new ContentSearchRequest(); ...
7c5a17a916d1f52612f695d226a217710bb494da
src/models/platform.ts
src/models/platform.ts
let isLinux = process.platform === 'linux'; let isFreeBSD = process.platform === 'freebsd'; let isOSX = process.platform === 'darwin'; let isSunOS = process.platform === 'sunos'; export { isLinux, isFreeBSD, isOSX, isSunOS }
const isLinux = process.platform === 'linux'; const isFreeBSD = process.platform === 'freebsd'; const isOSX = process.platform === 'darwin'; const isSunOS = process.platform === 'sunos'; export { isLinux, isFreeBSD, isOSX, isSunOS }
Use const instead of let
Use const instead of let
TypeScript
mit
AyaMorisawa/Disskey,AyaMorisawa/Disskey,AyaMorisawa/Disskey
--- +++ @@ -1,6 +1,6 @@ -let isLinux = process.platform === 'linux'; -let isFreeBSD = process.platform === 'freebsd'; -let isOSX = process.platform === 'darwin'; -let isSunOS = process.platform === 'sunos'; +const isLinux = process.platform === 'linux'; +const isFreeBSD = process.platform === 'freebsd'; +const isOSX ...
311f4f875da3d2f98bd11763afd52f06fbf5fa70
src/app/components/videoContainer.tsx
src/app/components/videoContainer.tsx
import React from "react" import { Event, ipcRenderer } from "electron" // import { PlayerOptions, Source } from "video.js" import { VideoPlayer, PlayerOptions } from "./videojs" import { userHasChosenMediaFile } from "../ipcChannelNames" interface PlayerContainerProps {} export class PlayerContainer extends React.Co...
import React from "react" import { Event, ipcRenderer } from "electron" // import { PlayerOptions, Source } from "video.js" // import { VideoPlayer, PlayerOptions } from "./videojs" import { userHasChosenMediaFile } from "../ipcChannelNames" interface PlayerContainerProps {} interface PlayerContainerState { src: str...
Use simple <video> element for player
Use simple <video> element for player Instead of video.js, or react-player, or video-react, or the other things that drove me nuts
TypeScript
agpl-3.0
briandk/transcriptase,briandk/transcriptase
--- +++ @@ -1,26 +1,24 @@ import React from "react" import { Event, ipcRenderer } from "electron" // import { PlayerOptions, Source } from "video.js" -import { VideoPlayer, PlayerOptions } from "./videojs" +// import { VideoPlayer, PlayerOptions } from "./videojs" import { userHasChosenMediaFile } from "../ipcCha...
493b8500738f3669907de4426ade88f7f3c543a4
src/providers/setting-service.spec.ts
src/providers/setting-service.spec.ts
import { StorageMock } from '../mocks/mocks'; import { Storage } from '@ionic/storage'; import { TestBed, inject, async } from '@angular/core/testing'; import { SettingService } from './setting-service'; describe('Provider: SettingService', () => { beforeEach(async(() => { TestBed.configureTes...
import { StorageMock } from '../mocks/mocks'; import { Storage } from '@ionic/storage'; import { TestBed, inject, async } from '@angular/core/testing'; import { SettingService } from './setting-service'; describe('Provider: SettingService', () => { beforeEach(async(() => { TestBed.configureTes...
Fix type in test description
Fix type in test description
TypeScript
mit
IMSmobile/app,IMSmobile/app,IMSmobile/app,IMSmobile/app
--- +++ @@ -20,7 +20,7 @@ settingService.isShowRestUrlField().subscribe(isShowRestUrlField => expect(isShowRestUrlField).toBe(settingService.isShowRestUrlFieldDefault)); })); - it('Settings should bebe written and read from store', async(inject([SettingService, Storage], (settingService: SettingSer...
dd6ddcaa040209b52d0efdae12145701e25bae6b
packages/webcomponentsjs/externs/webcomponents.d.ts
packages/webcomponentsjs/externs/webcomponents.d.ts
/** * @externs * @license * Copyright (c) 2021 The Polymer Project Authors. All rights reserved. This * code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contribut...
/** * @externs * @license * Copyright (c) 2021 The Polymer Project Authors. All rights reserved. This * code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contribut...
Fix implicit any for `WebComponents` global.
Fix implicit any for `WebComponents` global.
TypeScript
bsd-3-clause
webcomponents/polyfills,webcomponents/polyfills,webcomponents/polyfills
--- +++ @@ -11,7 +11,7 @@ */ // eslint-disable-next-line no-var -declare var WebComponents; +declare var WebComponents: {}; interface HTMLTemplateElement { bootstrap(): void;
f798f308f32c1d41e700fd9c9d1144fe0e82c82e
src/Microsoft.AspNet.ReactServices/npm/redux-typed/src/StrongProvide.ts
src/Microsoft.AspNet.ReactServices/npm/redux-typed/src/StrongProvide.ts
import * as React from 'react'; import { connect as nativeConnect, ElementClass } from 'react-redux'; interface ClassDecoratorWithProps<TProps> extends Function { <T extends (typeof ElementClass)>(component: T): T; props: TProps; } export type ReactComponentClass<T, S> = new(props: T) => React.Component<T, S>...
import * as React from 'react'; import { connect as nativeConnect } from 'react-redux'; export type ReactComponentClass<T, S> = new(props: T) => React.Component<T, S>; export class ComponentBuilder<TOwnProps, TActions, TExternalProps> { constructor(private stateToProps: (appState: any) => TOwnProps, private action...
Update redux-typed to match latest third-party .d.ts files for React and Redux
Update redux-typed to match latest third-party .d.ts files for React and Redux
TypeScript
apache-2.0
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
--- +++ @@ -1,10 +1,5 @@ import * as React from 'react'; -import { connect as nativeConnect, ElementClass } from 'react-redux'; - -interface ClassDecoratorWithProps<TProps> extends Function { - <T extends (typeof ElementClass)>(component: T): T; - props: TProps; -} +import { connect as nativeConnect } from 're...
8b79a6410236aef80cb2a941755d2bd89f7122bd
app/services/sync-mediator.ts
app/services/sync-mediator.ts
import {Injectable, Inject} from "@angular/core"; import {Observable} from "rxjs/Observable"; import {Indexeddb} from "../datastore/indexeddb" import {Datastore} from "idai-components-2/idai-components-2"; /** * @author Daniel de Oliveira */ @Injectable() export class SyncMediator { private db:Promise<any>; ...
import {Injectable, Inject} from "@angular/core"; import {Observable} from "rxjs/Observable"; import {Indexeddb} from "../datastore/indexeddb" import {Datastore} from "idai-components-2/idai-components-2"; /** * @author Daniel de Oliveira */ @Injectable() export class SyncMediator { private db:Promise<any>; ...
Fix issue with transaction timing.
Fix issue with transaction timing.
TypeScript
apache-2.0
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
--- +++ @@ -39,8 +39,8 @@ this.datastore.get(cursor.value['resource']['@id']).then( possiblyCachedDocFromDS=>{ observer.next(possiblyCachedDocFromDS); - cursor.continue(); });...
4333cafc17c702a1290de84f45a06476bf8ef44b
src/app/components/devlog/post/edit/edit-service.ts
src/app/components/devlog/post/edit/edit-service.ts
import { Injectable, Inject } from 'ng-metadata/core'; import { Fireside_Post } from './../../../../../lib/gj-lib-client/components/fireside/post/post-model'; import template from 'html!./edit.html'; @Injectable() export class DevlogPostEdit { constructor( @Inject( '$modal' ) private $modal: any ) { } show( po...
import { Injectable, Inject } from 'ng-metadata/core'; import { Fireside_Post } from './../../../../../lib/gj-lib-client/components/fireside/post/post-model'; import template from 'html!./edit.html'; @Injectable() export class DevlogPostEdit { constructor( @Inject( '$modal' ) private $modal: any ) { } show( po...
Make devlog post add/edit more sticky. This way you don't accidentally close it in the middle of writing and composing a post.
Make devlog post add/edit more sticky. This way you don't accidentally close it in the middle of writing and composing a post.
TypeScript
mit
gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt
--- +++ @@ -14,6 +14,8 @@ show( post: Fireside_Post ): ng.IPromise<Fireside_Post> { const modalInstance = this.$modal.open( { + keyboard: false, + backdrop: 'static', template, controller: 'Devlog.Post.EditModalCtrl', controllerAs: '$ctrl',
102b34cd4e29bd491f1f6dfb5ad5c8e7eeaed82a
desktop/src/renderer/components/app-document/app-document-pane/app-document-pane-tabs/app-document-pane-tabs.tsx
desktop/src/renderer/components/app-document/app-document-pane/app-document-pane-tabs/app-document-pane-tabs.tsx
import { EntityId } from '@reduxjs/toolkit' import { Component, h, Host, Prop } from '@stencil/core' import { option as O } from 'fp-ts' import { constFalse, pipe } from 'fp-ts/function' import { state } from '../../../../../renderer/store' import { selectPaneViews } from '../../../../../renderer/store/documentPane/doc...
import { EntityId } from '@reduxjs/toolkit' import { Component, h, Host, Prop } from '@stencil/core' import { option as O } from 'fp-ts' import { constFalse, pipe } from 'fp-ts/function' import { state } from '../../../../../renderer/store' import { selectPaneViews } from '../../../../../renderer/store/documentPane/doc...
Add unique keys to tabs for stable identity
chore(Tabs): Add unique keys to tabs for stable identity
TypeScript
apache-2.0
stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila
--- +++ @@ -32,6 +32,7 @@ isActive={this.isActive(docId)} viewId={docId} paneId={this.paneId} + key={docId} ></app-document-pane-tab> ))} </ul>
67f905b1d25acf78a535f95b39a7ed08de5c5886
server/src/redux.store.ts
server/src/redux.store.ts
import { createStore } from 'redux'; import { reducer } from '../../client/src/redux/reducers'; export const store = createStore(reducer);
import { createStore } from 'redux'; import { reducer } from '../../client/src/store/reducers'; export const store = createStore(reducer);
Fix imprt path to reducer
Fix imprt path to reducer
TypeScript
unlicense
forabi/hollowverse,forabi/hollowverse,forabi/hollowverse,forabi/hollowverse
--- +++ @@ -1,4 +1,4 @@ import { createStore } from 'redux'; -import { reducer } from '../../client/src/redux/reducers'; +import { reducer } from '../../client/src/store/reducers'; export const store = createStore(reducer);
127bb42cfcc35adff89d536467f0e5bd091a2f15
Mechanism/AudioPlayer.ts
Mechanism/AudioPlayer.ts
class AudioPlayer { view: HTMLDivElement; private audioElements: HTMLAudioElement[] = []; private freeAudioElements: HTMLAudioElement[] = []; constructor() { this.view = document.createElement("div"); } play(source: string, loop: boolean = false) { let audioElement: HTMLAudioE...
class AudioPlayer { view: HTMLDivElement; private audioElements: HTMLAudioElement[] = []; private freeAudioElements: HTMLAudioElement[] = []; constructor() { this.view = document.createElement("div"); } play(source: string, loop: boolean = false) { let audioElement: HTMLAudioE...
Fix registering new audio elements in audio player.
Fix registering new audio elements in audio player.
TypeScript
apache-2.0
Dia6lo/Mechanism,Dia6lo/Mechanism,Dia6lo/Mechanism
--- +++ @@ -14,6 +14,7 @@ } if (!this.freeAudioElements.any()) { audioElement = document.createElement("audio"); + this.audioElements.push(audioElement); this.view.appendChild(audioElement); } else {
e01da0c83f80f3e9a52649c0e7b4808ab299365c
src/lib/middleware/unsupportedBrowser.ts
src/lib/middleware/unsupportedBrowser.ts
import { parse } from "url" import useragent from "useragent" export const unsupportedBrowserCheck = (req, res, next) => { const ua = useragent.parse(req.headers["user-agent"]) if (!res.locals.sd.BROWSER) { res.locals.sd.BROWSER = ua } if ( isUnsupported(ua, req) && !/\/unsupported-browser|assets|f...
import { parse } from "url" import useragent from "useragent" export const unsupportedBrowserCheck = (req, res, next) => { const ua = useragent.parse(req.headers["user-agent"]) if (!res.locals.sd.BROWSER) { res.locals.sd.BROWSER = ua } if ( req.path !== "/unsupported-browser" && isUnsupported(ua, r...
Add a `return` before redirecting
[Middleware] Add a `return` before redirecting
TypeScript
mit
artsy/force,izakp/force,erikdstock/force,damassi/force,yuki24/force,yuki24/force,anandaroop/force,eessex/force,joeyAghion/force,artsy/force-public,erikdstock/force,erikdstock/force,eessex/force,anandaroop/force,damassi/force,oxaudo/force,erikdstock/force,joeyAghion/force,anandaroop/force,damassi/force,oxaudo/force,izak...
--- +++ @@ -7,11 +7,12 @@ res.locals.sd.BROWSER = ua } if ( + req.path !== "/unsupported-browser" && isUnsupported(ua, req) && !/\/unsupported-browser|assets|fonts|images/.test(req.path) ) { res.locals.sd.UNSUPPORTED_BROWSER_REDIRECT = getRedirectTo(req) - res.redirect("/unsupported...
e49f4b1f74e164078903e07475689aa05903f611
src/app/projects/states/dashboard/directives/student-task-list/create-portfolio-task-list-item/create-portfolio-task-list-item.component.ts
src/app/projects/states/dashboard/directives/student-task-list/create-portfolio-task-list-item/create-portfolio-task-list-item.component.ts
import { Component, Input, Inject } from '@angular/core'; import { taskService } from 'src/app/ajs-upgraded-providers'; import { UIRouter } from '@uirouter/angular'; @Component({ selector: 'create-portfolio-task-list-item', templateUrl: 'create-portfolio-task-list-item.component.html', styleUrls: ['create-portfo...
import { Component, Input, Inject } from '@angular/core'; import { taskService } from 'src/app/ajs-upgraded-providers'; import { UIRouter } from '@uirouter/angular'; @Component({ selector: 'create-portfolio-task-list-item', templateUrl: 'create-portfolio-task-list-item.component.html', styleUrls: ['create-portfo...
Use portfolio task status in create portfolio list item
FIX: Use portfolio task status in create portfolio list item
TypeScript
agpl-3.0
doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web
--- +++ @@ -18,18 +18,11 @@ } public status(): string { - if (this.hasPortfolio()) { - return 'complete'; - } - return 'not_started'; + return this.project.portfolioTaskStatus() } public statusClass(): string { - return this.ts.statusClass(this.status()); - } - - public hasPortfo...
cfdd4d3496b96711bc9fa2600213a9dd244875a2
js-md5/index.d.ts
js-md5/index.d.ts
// Type definitions for js-md5 v0.4 // Project: https://github.com/emn178/js-md5 // Definitions by: Michael McCarthy <https://github.com/mwmccarthy> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/ declare namespace md5 { type message = string | any[] | Uint8Array | ArrayBuffer; interface M...
// Type definitions for js-md5 0.4 // Project: https://github.com/emn178/js-md5 // Definitions by: Michael McCarthy <https://github.com/mwmccarthy> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/ declare namespace md5 { type message = string | any[] | Uint8Array | ArrayBuffer; interface Md...
Remove v from version number
Remove v from version number
TypeScript
mit
magny/DefinitelyTyped,minodisk/DefinitelyTyped,georgemarshall/DefinitelyTyped,QuatroCode/DefinitelyTyped,mcrawshaw/DefinitelyTyped,borisyankov/DefinitelyTyped,jimthedev/DefinitelyTyped,dsebastien/DefinitelyTyped,minodisk/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,amir-arad/DefinitelyTyped,ashwinr/DefinitelyTyped,Agent...
--- +++ @@ -1,4 +1,4 @@ -// Type definitions for js-md5 v0.4 +// Type definitions for js-md5 0.4 // Project: https://github.com/emn178/js-md5 // Definitions by: Michael McCarthy <https://github.com/mwmccarthy> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/
fc454bd61533875e50cd9e3abea347d391216b33
src/main/index.ts
src/main/index.ts
import { ipcMain, app, Menu, session } from 'electron'; import { resolve } from 'path'; import { platform, homedir } from 'os'; import { AppWindow } from './app-window'; ipcMain.setMaxListeners(0); app.setPath('userData', resolve(homedir(), '.wexond')); export const appWindow = new AppWindow(); session.defaultSessi...
import { ipcMain, app, Menu, session } from 'electron'; import { resolve } from 'path'; import { platform, homedir } from 'os'; import { AppWindow } from './app-window'; ipcMain.setMaxListeners(0); app.setPath('userData', resolve(homedir(), '.wexond')); export const appWindow = new AppWindow(); app.on('ready', () =...
Use setPermissionRequestHandler when app is ready to avoid errors
Use setPermissionRequestHandler when app is ready to avoid errors
TypeScript
apache-2.0
Nersent/Wexond,Nersent/Wexond
--- +++ @@ -8,16 +8,6 @@ app.setPath('userData', resolve(homedir(), '.wexond')); export const appWindow = new AppWindow(); - -session.defaultSession.setPermissionRequestHandler( - (webContents, permission, callback) => { - if (permission === 'notifications' || permission === 'fullscreen') { - callback(tr...
f95cd84fb4bd418d311d9e2c2396a6687a8c0e09
src/util/util.ts
src/util/util.ts
import * as vscode from 'vscode'; import * as os from 'os'; import * as path from 'path'; import { Position } from '../common/motion/position'; import { Range } from '../common/motion/range'; import { logger } from './logger'; const AppDirectory = require('appdirectory'); /** * This is certainly quite janky! The pro...
import * as vscode from 'vscode'; import * as os from 'os'; import * as path from 'path'; import { Position } from '../common/motion/position'; import { Range } from '../common/motion/range'; import { logger } from './logger'; const AppDirectory = require('appdirectory'); /** * This is certainly quite janky! The pro...
Add cache directory to debug logger
Add cache directory to debug logger
TypeScript
mit
VSCodeVim/Vim,VSCodeVim/Vim,Chillee/Vim,Chillee/Vim
--- +++ @@ -41,6 +41,7 @@ export function getExtensionDirPath(): string { const dirs = new AppDirectory('VSCodeVim'); + logger.debug("VSCodeVim Cache Directory: " + dirs.userCache()); return dirs.userCache(); }
9cdfd4d2082198fe2382ab93b069b8f50e0bbd02
src/vdom/connect_descriptor.ts
src/vdom/connect_descriptor.ts
import { Context } from "../common/types"; import { IVNode } from "./ivnode"; export interface SelectorData<T = {}, U = {}> { in: T; out: U; } export interface ConnectDescriptor<T, U, K> { select: (prev: SelectorData<K, U> | null, props: T, context: Context) => SelectorData<K, U>; render: (props: U) =...
import { Context } from "../common/types"; import { IVNode } from "./ivnode"; export interface SelectorData<T = {}, U = T> { in: T; out: U; } export interface ConnectDescriptor<T, U, K> { select: (prev: SelectorData<K, U> | null, props: T, context: Context) => SelectorData<K, U>; render: (props: U) =>...
Make SelectorData out type by default the same as in type
Make SelectorData out type by default the same as in type
TypeScript
mit
ivijs/ivi,ivijs/ivi
--- +++ @@ -1,7 +1,7 @@ import { Context } from "../common/types"; import { IVNode } from "./ivnode"; -export interface SelectorData<T = {}, U = {}> { +export interface SelectorData<T = {}, U = T> { in: T; out: U; }
5d62f75c6dc028cea5bc6ce7cf2aaa2dd99717f1
app/src/lib/notifications/show-notification.ts
app/src/lib/notifications/show-notification.ts
import { focusWindow } from '../../ui/main-process-proxy' import { supportsNotifications } from 'desktop-notifications' import { showNotification as invokeShowNotification } from '../../ui/main-process-proxy' import { notificationCallbacks } from './notification-handler' import { DesktopAliveEvent } from '../stores/ali...
import { focusWindow } from '../../ui/main-process-proxy' import { supportsNotifications } from 'desktop-notifications' import { showNotification as invokeShowNotification } from '../../ui/main-process-proxy' import { notificationCallbacks } from './notification-handler' import { DesktopAliveEvent } from '../stores/ali...
Add comment explaining the use of desktop-notifications vs HTML5 API
Add comment explaining the use of desktop-notifications vs HTML5 API
TypeScript
mit
shiftkey/desktop,desktop/desktop,desktop/desktop,desktop/desktop,shiftkey/desktop,shiftkey/desktop,shiftkey/desktop,desktop/desktop
--- +++ @@ -16,6 +16,8 @@ * user clicks on the notification. */ export async function showNotification(options: IShowNotificationOptions) { + // `supportNotifications` checks if `desktop-notifications` is supported by + // the current platform. Otherwise, we'll rely on the HTML5 notification API. if (!suppo...
ebfae5fa03fb4aa1813205120de692ebd03a1293
src/main/js/controller/binding-creators/util.ts
src/main/js/controller/binding-creators/util.ts
import {Constants} from '../../misc/constants'; import {IntervalTicker} from '../../misc/ticker/interval'; import {Ticker} from '../../misc/ticker/ticker'; import {TypeUtil} from '../../misc/type-util'; export function createTicker( document: Document, interval: number | undefined, ): Ticker { const ticker = new In...
import {Constants} from '../../misc/constants'; import {IntervalTicker} from '../../misc/ticker/interval'; import {ManualTicker} from '../../misc/ticker/manual'; import {Ticker} from '../../misc/ticker/ticker'; import {TypeUtil} from '../../misc/type-util'; export function createTicker( document: Document, interval:...
Use ManualTicker for invalid interval
Use ManualTicker for invalid interval
TypeScript
mit
cocopon/tweakpane,cocopon/tweakpane,cocopon/tweakpane
--- +++ @@ -1,5 +1,6 @@ import {Constants} from '../../misc/constants'; import {IntervalTicker} from '../../misc/ticker/interval'; +import {ManualTicker} from '../../misc/ticker/manual'; import {Ticker} from '../../misc/ticker/ticker'; import {TypeUtil} from '../../misc/type-util'; @@ -7,9 +8,13 @@ document: ...
bfd820adefd072bcaaab98f7585f93937857bf0f
src/rancher/cluster/create/LonghornWorkerWarning.tsx
src/rancher/cluster/create/LonghornWorkerWarning.tsx
import * as classNames from 'classnames'; import * as React from 'react'; import { useSelector } from 'react-redux'; import { formValueSelector } from 'redux-form'; import { translate } from '@waldur/i18n'; import { FORM_ID } from '@waldur/marketplace/details/constants'; import { NodeRole } from '@waldur/rancher/types...
import * as classNames from 'classnames'; import * as React from 'react'; import { useSelector } from 'react-redux'; import { formValueSelector } from 'redux-form'; import { translate } from '@waldur/i18n'; import { FORM_ID } from '@waldur/marketplace/details/constants'; import { NodeRole } from '@waldur/rancher/types...
Fix error message for Longhorn
Fix error message for Longhorn [WAL-3321]
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -20,7 +20,7 @@ if ( !roles.includes('worker') || !flavor || - (flavor.cores > 4 && flavor.ram > 4 * 1024) + (flavor.cores >= 4 && flavor.ram >= 4 * 1024) ) { return null; }
9c3b55622913a47cf4a706516932d1fd4a90d316
src/marketplace/offerings/InternalNameField.tsx
src/marketplace/offerings/InternalNameField.tsx
import * as React from 'react'; import { Field } from 'redux-form'; import { required } from '@waldur/core/validators'; import { translate } from '@waldur/i18n'; import { FormGroupWithError } from './FormGroupWithError'; interface InternalNameFieldProps { name: string; } const INTERNAL_NAME_PATTERN = new RegExp('...
import * as React from 'react'; import { Field } from 'redux-form'; import { required } from '@waldur/core/validators'; import { translate } from '@waldur/i18n'; import { FormGroupWithError } from './FormGroupWithError'; interface InternalNameFieldProps { name: string; } const INTERNAL_NAME_PATTERN = new RegExp('...
Allow minus in internal names.
Allow minus in internal names.
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -10,7 +10,7 @@ name: string; } -const INTERNAL_NAME_PATTERN = new RegExp('^[a-zA-Z0-9_]+$'); +const INTERNAL_NAME_PATTERN = new RegExp('^[a-zA-Z0-9_-]+$'); export const validateInternalName = (value: string) => !value.match(INTERNAL_NAME_PATTERN)
3ebc5bdff5e41d5b38f5a1bcc77556c2f490bca8
src/app/lists/lists-table.component.ts
src/app/lists/lists-table.component.ts
import { Component, Input } from '@angular/core'; import { ListsApi } from '../services'; import { List } from './list'; @Component({ selector: 'lists-table', templateUrl: './lists-table.component.html' }) export class ListsTableComponent { @Input() lists: List[]; rowHighlightColor: string = '#d2f3c7'...
import { Component, Input } from '@angular/core'; import { ListsApi } from '../services'; import { List } from './list'; @Component({ selector: 'lists-table', templateUrl: './lists-table.component.html' }) export class ListsTableComponent { private _lists: List[]; @Input() set lists(lists: List[])...
Use getter and setter for Lists input in ListsTableComponent
Use getter and setter for Lists input in ListsTableComponent
TypeScript
mit
shohrukh92/TaskManagerMEAN,shohrukh92/TaskManagerMEAN,shohrukh92/TaskManagerMEAN
--- +++ @@ -8,11 +8,20 @@ }) export class ListsTableComponent { - @Input() lists: List[]; - rowHighlightColor: string = '#d2f3c7'; + private _lists: List[]; + @Input() + set lists(lists: List[]) { + this._lists = lists; + } + get lists(): List[] { + return this._lists; + } + ...
e1b67a49111cdb67c6b4a6b2ea15c4d3736e6dbb
src/component/feature/FeatureView2/FeatureMetrics/FeatureMetrics.tsx
src/component/feature/FeatureView2/FeatureMetrics/FeatureMetrics.tsx
import { useParams } from 'react-router'; import useFeature from '../../../../hooks/api/getters/useFeature/useFeature'; import MetricComponent from '../../view/metric-container'; import { useStyles } from './FeatureMetrics.styles'; import { IFeatureViewParams } from '../../../../interfaces/params'; import useUiConfig f...
import { useParams } from 'react-router'; import useFeature from '../../../../hooks/api/getters/useFeature/useFeature'; import MetricComponent from '../../view/metric-container'; import { useStyles } from './FeatureMetrics.styles'; import { IFeatureViewParams } from '../../../../interfaces/params'; import useUiConfig f...
Use V flag for new metrics component
Use V flag for new metrics component
TypeScript
apache-2.0
Unleash/unleash-frontend,Unleash/unleash-frontend,Unleash/unleash-frontend,Unleash/unleash-frontend
--- +++ @@ -12,11 +12,11 @@ const { projectId, featureId } = useParams<IFeatureViewParams>(); const { feature } = useFeature(projectId, featureId); const { uiConfig } = useUiConfig(); - const isEnterprise = uiConfig.flags.E; + const isNewMetricsEnabled = uiConfig.flags.V; return ( ...
7dddf950f2cbd5bd968b30a780ba9f7b947bc7ad
src/pages/patientView/mutation/GeneFilterMenu.tsx
src/pages/patientView/mutation/GeneFilterMenu.tsx
import React, { Component } from 'react' import { Radio } from 'react-bootstrap'; import { observer } from 'mobx-react'; export interface IGeneFilterSelection { currentSelection:GeneFilterOption; onOptionChanged?:(currentSelection:GeneFilterOption)=>void; } export enum GeneFilterOption { ANY_SAMPLE = "any...
import React, { Component } from 'react' import { Radio } from 'react-bootstrap'; import { observer } from 'mobx-react'; export interface IGeneFilterSelection { currentSelection:GeneFilterOption; onOptionChanged?:(currentSelection:GeneFilterOption)=>void; } export enum GeneFilterOption { ANY_SAMPLE = "any...
Update text in gene selection filter menu
Update text in gene selection filter menu Former-commit-id: f36ff9b3548887f39e888be13b5c603c70da3784
TypeScript
agpl-3.0
cBioPortal/cbioportal-frontend,alisman/cbioportal-frontend,alisman/cbioportal-frontend,cBioPortal/cbioportal-frontend,cBioPortal/cbioportal-frontend,alisman/cbioportal-frontend,alisman/cbioportal-frontend,alisman/cbioportal-frontend,cBioPortal/cbioportal-frontend,cBioPortal/cbioportal-frontend,alisman/cbioportal-fronte...
--- +++ @@ -28,6 +28,8 @@ render() { return ( <React.Fragment> + <div>Different gene panels were used for the samples.</div> + <div>Filter mutations for:</div> <Radio value={GeneFilterOption.ANY_SAMPLE} ...
61c5ebd6b40f2405cee091550b51411901c51b7c
src/noStringBasedSetImmediateRule.ts
src/noStringBasedSetImmediateRule.ts
import NoStringParameterToFunctionCallWalker = require('./utils/NoStringParameterToFunctionCallWalker'); /** * Implementation of the no-string-parameter-to-function-call rule. */ export class Rule extends Lint.Rules.AbstractRule { public apply(sourceFile : ts.SourceFile): Lint.RuleFailure[] { var langu...
import NoStringParameterToFunctionCallWalker = require('./utils/NoStringParameterToFunctionCallWalker'); /** * Implementation of the no-string-parameter-to-function-call rule. */ export class Rule extends Lint.Rules.AbstractRule { public apply(sourceFile : ts.SourceFile): Lint.RuleFailure[] { var docum...
Set & declare var on same line
Set & declare var on same line Useful for Visual Studio projects with the "Allow implicit `any` type" disabled. Otherwise Visual Studio complains with the error: `Error TS7005 Variable 'languageServiceHost' implicitly has an 'any' type.`
TypeScript
mit
Microsoft/tslint-microsoft-contrib,Microsoft/tslint-microsoft-contrib
--- +++ @@ -7,9 +7,8 @@ export class Rule extends Lint.Rules.AbstractRule { public apply(sourceFile : ts.SourceFile): Lint.RuleFailure[] { - var languageServiceHost; var documentRegistry = ts.createDocumentRegistry(); - languageServiceHost = Lint.createLanguageServiceHost('file.ts', sou...
381f9411de12be979f0f43f8cd702805df08d5c7
packages/extension/src/js/components/WinList.tsx
packages/extension/src/js/components/WinList.tsx
import React, { useRef, useEffect } from 'react' import { observer } from 'mobx-react-lite' import Scrollbar from 'libs/Scrollbar' import ReactResizeDetector from 'react-resize-detector' import Loading from './Loading' import { useStore } from './hooks/useStore' import Window from './Window' export default observer(()...
import React, { useRef, useEffect } from 'react' import { observer } from 'mobx-react-lite' import Scrollbar from 'libs/Scrollbar' import ReactResizeDetector from 'react-resize-detector' import Loading from './Loading' import { useStore } from './hooks/useStore' import Window from './Window' export default observer(()...
Use tab/window width from user preferences if there are more than 4 columns
fix: Use tab/window width from user preferences if there are more than 4 columns
TypeScript
mit
xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2
--- +++ @@ -9,6 +9,7 @@ export default observer(() => { const { windowStore, + userStore, focusStore: { setContainerRef } } = useStore() const scrollbarRef = useRef(null) @@ -37,7 +38,8 @@ </div> ) } - const width = 100 / Math.min(4, visibleColumn) + '%' + const width = + vi...
92b2dbd2264689cde90c338fa1efd1b257ddf3c1
commands/navigation.ts
commands/navigation.ts
import { getCurrentItem, getItem } from './item' import { isWeb } from './device' export function close() { window.location.href = '/interactive-redirect/v5/items/__self__/back' } export function next() { window.location.href = '/interactive-redirect/v5/items/__self__/next' } export function previous() { window.l...
import { getCurrentItem, getItem } from './item' import { isWeb } from './device' export function close() { window.location.href = '/interactive-redirect/v5/items/__self__/back' } export function next() { window.location.href = '/interactive-redirect/v5/items/__self__/next' } export function previous() { window.l...
Revert "Safer to assume the api simply returns a relative API and no query pa…"
Revert "Safer to assume the api simply returns a relative API and no query pa…"
TypeScript
apache-2.0
Mediafly/mflyCommands
--- +++ @@ -23,7 +23,7 @@ if (bookmark) { params['bookmark'] = bookmark } - url += '?' + $.param(params) + url += '&' + $.param(params) window.location.href = `${window.location.protocol}//${window.location.host}${url}` })
bbe5325ba51231b14fd763a751ee92a540a839f4
app/javascript/packs/application.ts
app/javascript/packs/application.ts
import start from 'retrospring/common'; import initAnswerbox from 'retrospring/features/answerbox/index'; import initInbox from 'retrospring/features/inbox/index'; import initUser from 'retrospring/features/user'; import initSettings from 'retrospring/features/settings/index'; import initLists from 'retrospring/feature...
import start from 'retrospring/common'; import initAnswerbox from 'retrospring/features/answerbox/index'; import initInbox from 'retrospring/features/inbox/index'; import initUser from 'retrospring/features/user'; import initSettings from 'retrospring/features/settings/index'; import initLists from 'retrospring/feature...
Use proper import for question functionality
Use proper import for question functionality
TypeScript
agpl-3.0
Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring
--- +++ @@ -5,7 +5,7 @@ import initSettings from 'retrospring/features/settings/index'; import initLists from 'retrospring/features/lists'; import initQuestionbox from 'retrospring/features/questionbox'; -import initQuestion from 'retrospring/features/questionbox'; +import initQuestion from 'retrospring/features/q...
0f3de201a3464d787dc004cacbad57321c4ac248
game/hud/src/services/session/layoutItems/Crafting.ts
game/hud/src/services/session/layoutItems/Crafting.ts
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * @Author: JB (jb@codecorsair.com) * @Date: 2017-01-24 14:48:27 * @Last Modified by: Mehuge (mehuge@sorcerer....
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * @Author: JB (jb@codecorsair.com) * @Date: 2017-01-24 14:48:27 * @Last Modified by: Mehuge (mehuge@sorcerer....
Make sure crafting UI is mounted
Make sure crafting UI is mounted
TypeScript
mpl-2.0
Mehuge/Camelot-Unchained,Ajackster/Camelot-Unchained,saddieeiddas/Camelot-Unchained,CUModSquad/Camelot-Unchained,csegames/Camelot-Unchained,saddieeiddas/Camelot-Unchained,Mehuge/Camelot-Unchained,Mehuge/Camelot-Unchained,csegames/Camelot-Unchained,saddieeiddas/Camelot-Unchained,csegames/Camelot-Unchained,CUModSquad/Cam...
--- +++ @@ -6,7 +6,7 @@ * @Author: JB (jb@codecorsair.com) * @Date: 2017-01-24 14:48:27 * @Last Modified by: Mehuge (mehuge@sorcerer.co.uk) - * @Last Modified time: 2017-05-08 17:42:27 + * @Last Modified time: 2017-06-14 21:03:07 */ import { LayoutMode, Edge } from '../../../components/HUDDrag'; import Craf...
7947036af93ff73e1dcee8e3c957333fad040bbb
src/server/api/endpoints/messaging/messages/delete.ts
src/server/api/endpoints/messaging/messages/delete.ts
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id'; import Message from '../../../../../models/messaging-message'; import define from '../../../define'; import { publishMessagingStream } from '../../../../../stream'; const ms = require('ms'); export const meta = { stability: 'stable', ...
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id'; import Message from '../../../../../models/messaging-message'; import define from '../../../define'; import { publishMessagingStream } from '../../../../../stream'; const ms = require('ms'); export const meta = { stability: 'stable', ...
Make one import per line
Make one import per line
TypeScript
mit
syuilo/Misskey,syuilo/Misskey
--- +++ @@ -1,5 +1,5 @@ - -import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id'; +import $ from 'cafy'; +import ID, { transform } from '../../../../../misc/cafy-id'; import Message from '../../../../../models/messaging-message'; import define from '../../../define'; import { publishMes...
57db3f2813d8bd480e4ebb577c4ff9213c439cd5
lib/theming/src/utils.ts
lib/theming/src/utils.ts
import { rgba, lighten, darken } from 'polished'; export const mkColor = (color: string) => ({ color }); // Passing arguments that can't be converted to RGB such as linear-gradient // to library polished's functions such as lighten or darken throws the error // that crashes the entire storybook. It needs to be guarde...
import { rgba, lighten, darken } from 'polished'; export const mkColor = (color: string) => ({ color }); // Passing arguments that can't be converted to RGB such as linear-gradient // to library polished's functions such as lighten or darken throws the error // that crashes the entire storybook. It needs to be guarde...
Refactor for better exception handling.
Refactor for better exception handling.
TypeScript
mit
storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook
--- +++ @@ -10,17 +10,30 @@ return !!color.match(/(gradient|var)/); }; -const colorFactory = (type: string) => (color: string) => { +const applyPolished = (type: string, color: string) => { if (type === 'darken') { - return isColorVarChangeable(color) ? color : rgba(`${darken(1, color)}`, 0.95); + retu...
be93c5ae669fed8756d3743cfcb0f64e4371b28e
analysis/shaman/src/shadowlands/conduits/TumblingWaves.tsx
analysis/shaman/src/shadowlands/conduits/TumblingWaves.tsx
import SPELLS from 'common/SPELLS'; import Analyzer, { Options, SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import SpellUsable from 'parser/shared/modules/SpellUsable'; class TumblingWaves extends Analyzer { static dependencies = { spellUsable: SpellUsable, }; pro...
import SPELLS from 'common/SPELLS'; import Analyzer, { Options, SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import SpellUsable from 'parser/shared/modules/SpellUsable'; class TumblingWaves extends Analyzer { static dependencies = { spellUsable: SpellUsable, }; pro...
Check if CD of Primordial Wave is on CD just in case.
Check if CD of Primordial Wave is on CD just in case.
TypeScript
agpl-3.0
WoWAnalyzer/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,sMteX/WoWAnalyzer,sMteX/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,sMteX/WoWAnalyzer
--- +++ @@ -22,7 +22,9 @@ } onApplyBuff() { - this.spellUsable.endCooldown(SPELLS.PRIMORDIAL_WAVE_CAST.id); + if (this.spellUsable.isOnCooldown(SPELLS.PRIMORDIAL_WAVE_CAST.id)) { + this.spellUsable.endCooldown(SPELLS.PRIMORDIAL_WAVE_CAST.id); + } } }
017aeab9b515ea1f97939e4f96c153bd21656143
app/app.component.ts
app/app.component.ts
import { Component, ViewChild } from '@angular/core'; import { LayerType } from './core/layer'; import { CityMapComponent } from './city-map/city-map.component' @Component({ selector: 'aba-plan', templateUrl: 'app.component.html' }) export class AppComponent { title = "AbaPlan"; @ViewChild(CityMapComponent)...
import { Component, ViewChild } from '@angular/core'; import { LayerType } from './core/layer'; import { CityMapComponent } from './city-map/city-map.component' @Component({ selector: 'aba-plan', templateUrl: 'app.component.html' }) export class AppComponent { title = "AbaPlan"; @ViewChild(CityMapComponent)...
Set default tab to first
Set default tab to first
TypeScript
mit
ABAPlan/abaplan-core,ABAPlan/abaplan-core,ABAPlan/abaplan-core
--- +++ @@ -28,7 +28,7 @@ } ]; - public activeTab: string = this.tabs[1]; + public activeTab: string = this.tabs[0]; public isActive(tab: any) { return tab === this.activeTab;
e3f7196e288ff0e738759621c3484d4e62783c3a
packages/components/components/image/RemoteImage.tsx
packages/components/components/image/RemoteImage.tsx
import { DetailedHTMLProps, ImgHTMLAttributes, useState } from 'react'; import { c } from 'ttag'; import { SHOW_IMAGES } from '@proton/shared/lib/constants'; import { isURL } from '@proton/shared/lib/helpers/validators'; import Button from '../button/Button'; import { useMailSettings } from '../../hooks'; export inter...
import { DetailedHTMLProps, ImgHTMLAttributes, useEffect, useState } from 'react'; import { c } from 'ttag'; import { SHOW_IMAGES } from '@proton/shared/lib/constants'; import { isURL } from '@proton/shared/lib/helpers/validators'; import { toImage } from '@proton/shared/lib/helpers/image'; import Button from '../butto...
Improve remote image component with loading and broken state
Improve remote image component with loading and broken state MAILWEB-2785
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -1,23 +1,51 @@ -import { DetailedHTMLProps, ImgHTMLAttributes, useState } from 'react'; +import { DetailedHTMLProps, ImgHTMLAttributes, useEffect, useState } from 'react'; import { c } from 'ttag'; import { SHOW_IMAGES } from '@proton/shared/lib/constants'; import { isURL } from '@proton/shared/lib/help...
66a931a8c12746d74a81442f033c0927016250f9
index.d.ts
index.d.ts
interface PackageMetadata { name: String; version: String; } interface ApiOptions { regions: String[]; } interface ContentOptions { bucket: String; contentDirectory: String; } interface PublishLambdaOptions { bucket: String; } interface StackConfiguration { } interface StackParameters { } interface StageD...
interface PackageMetadata { name: String; version: String; } interface ApiOptions { regions: String[]; } interface ContentOptions { bucket: String; contentDirectory: String; } interface PublishLambdaOptions { bucket: String; } interface StackConfiguration { changeSetName: String; stackName: String; } inter...
Fix return Promises to match type.
Fix return Promises to match type.
TypeScript
bsd-3-clause
wparad/AWS-Architect,wparad/AWS-Architect
--- +++ @@ -17,11 +17,8 @@ } interface StackConfiguration { - -} - -interface StackParameters { - + changeSetName: String; + stackName: String; } interface StageDeploymentOptions { @@ -38,12 +35,12 @@ declare class AwsArchitect { constructor(packageMetadata: PackageMetadata, apiOptions: ApiOptions, conte...
4d1e183269f77be775f9309c3006c4ce607663a3
src/renderer/app/components/BookmarkItem/index.tsx
src/renderer/app/components/BookmarkItem/index.tsx
import React from 'react'; import { StyledBookmarkItem, Icon, Title } from './styles'; import { Bookmark } from '@/interfaces'; import { observer } from 'mobx-react'; import store from '@app/store'; interface Props { item: Bookmark; } @observer export default class BookmarkItem extends React.Component<Props> { pu...
import React from 'react'; import { StyledBookmarkItem, Icon, Title } from './styles'; import { Bookmark } from '@/interfaces'; import { observer } from 'mobx-react'; import store from '@app/store'; interface Props { item: Bookmark; } @observer export default class BookmarkItem extends React.Component<Props> { pu...
Add onClick handler for bookmark items in bar
Add onClick handler for bookmark items in bar
TypeScript
apache-2.0
Nersent/Wexond,Nersent/Wexond
--- +++ @@ -10,12 +10,16 @@ @observer export default class BookmarkItem extends React.Component<Props> { + public onClick = () => { + store.pagesStore.getSelected().url = this.props.item.url; + }; + public render() { const { title, favicon } = this.props.item; const icon = store.faviconsStore.fa...
703b5d545db8cd53f028da35f42450a13adabdee
lib/theming/src/utils.ts
lib/theming/src/utils.ts
import { rgba, lighten, darken } from 'polished'; export const mkColor = (color: string) => ({ color }); const isLinearGradient = (color: string) => { return typeof color === 'string' && color.includes('linear-gradient'); }; const colorFactory = (type: string) => (color: string) => { if (type === 'darken') { ...
import { rgba, lighten, darken } from 'polished'; export const mkColor = (color: string) => ({ color }); // Passing linear-gradient string to library polished's functions such as // lighten or darken throws the error that crashes the entire storybook. // It needs to be guarded when arguments of those functions are fr...
Add comment on guarding linear-gradient
Add comment on guarding linear-gradient
TypeScript
mit
storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook
--- +++ @@ -2,6 +2,10 @@ export const mkColor = (color: string) => ({ color }); +// Passing linear-gradient string to library polished's functions such as +// lighten or darken throws the error that crashes the entire storybook. +// It needs to be guarded when arguments of those functions are from +// user input...
c9861ef2d8f76d622c6ea558e9007a746388c2a3
src/main.ts
src/main.ts
import * as rtl from 'rtl-css-js'; export interface JssRTLOptions { enabled?: boolean; opt?: 'in' | 'out'; } export default function jssRTL({ enabled = true, opt = 'out' }: JssRTLOptions = {}) { return { onProcessStyle(style: any, _: any, sheet: any) { if (!enabled) { if (typeof style.flip ===...
import * as rtl from 'rtl-css-js'; const convert = rtl['default'] || rtl; export interface JssRTLOptions { enabled?: boolean; opt?: 'in' | 'out'; } export default function jssRTL({ enabled = true, opt = 'out' }: JssRTLOptions = {}) { return { onProcessStyle(style: any, _: any, sheet: any) { if (!enab...
Fix for cases where esm version of rtl-css-js is hit
Fix for cases where esm version of rtl-css-js is hit
TypeScript
mit
alitaheri/jss-rtl
--- +++ @@ -1,4 +1,6 @@ import * as rtl from 'rtl-css-js'; + +const convert = rtl['default'] || rtl; export interface JssRTLOptions { enabled?: boolean; @@ -31,7 +33,7 @@ return style; } - return rtl(style); + return convert(style); }, }; }
12abbe1398420d746bd9f659a4df86fcbbf95799
app/ng-ui-widgets-category/listpicker/creating-listpicker/creating-listpicker.component.ts
app/ng-ui-widgets-category/listpicker/creating-listpicker/creating-listpicker.component.ts
// >> creating-listpicker-code import { Component } from "@angular/core"; import { ListPicker } from "tns-core-modules/ui/list-picker"; let pokemonList = ["Bulbasaur", "Parasect", "Venonat", "Venomoth", "Diglett", "Dugtrio", "Meowth", "Persian", "Psyduck", "Arcanine", "Poliwrath", "Machoke"]; @Component({ mod...
// >> creating-listpicker-code import { Component } from "@angular/core"; import { ListPicker } from "tns-core-modules/ui/list-picker"; let pokemonList = ["Bulbasaur", "Parasect", "Venonat", "Venomoth", "Diglett", "Dugtrio", "Meowth", "Persian", "Psyduck", "Arcanine", "Poliwrath", "Machoke"]; @Component({ mod...
Change for loop to typescript for of loop
Change for loop to typescript for of loop Change old simple for loop to typescript for of loop The for of loop is more readable and just better for this use case
TypeScript
apache-2.0
NativeScript/nativescript-sdk-examples-ng,NativeScript/nativescript-sdk-examples-ng,NativeScript/nativescript-sdk-examples-ng,NativeScript/nativescript-sdk-examples-ng
--- +++ @@ -15,8 +15,8 @@ public picked: string; constructor() { - for (let i = 0; i < pokemonList.length; i++) { - this.pokemons.push(pokemonList[i]); + for (let pokemon of pokemonList) { + this.pokemons.push(pokemon); } }
afa545c8aa39cda1f8fac9e9a55bdb6d4e906ebc
console/src/app/common/FileOperations/FileOperations.ts
console/src/app/common/FileOperations/FileOperations.ts
import { saveAs } from 'file-saver'; import { FileFormat } from './FileFormat'; export class FileOperations { readonly UNKNOWN_FORMAT: string = "UNKNOWN"; readonly NON_SET_DELIMITER: string = ""; // Note: File types readonly TEXT_FILE_TYPE: string = "text/plain;charset=utf-8"; readonly JSON_FIL...
import { saveAs } from 'file-saver'; import { FileFormat } from './FileFormat'; export class FileOperations { readonly UNKNOWN_FORMAT: string = "UNKNOWN"; readonly NON_SET_DELIMITER: string = ""; // Note: File types readonly TEXT_FILE_TYPE: string = "text/plain;charset=utf-8"; readonly JSON_FIL...
Add EOL symbol at the end of the file.
Add EOL symbol at the end of the file.
TypeScript
mit
emc-mongoose/console,emc-mongoose/console,emc-mongoose/console
8159a54eac47c1f40f294e4a89a51c001555a73e
src/definitions/SkillContext.ts
src/definitions/SkillContext.ts
namespace Skill { export class Context { constructor() { } get = (key: string): string | number => { return "a val"; } set = (key: string, val: string | number): boolean => { return true; } } } export = Skill;
import {Callback, Context} from "aws-lambda"; import {AlexaRequestBody} from "./AlexaService"; namespace Skill { export class Context { constructor(request: AlexaRequestBody, event: Context, callback: Callback, _this?: any) { if (_this) { Object.assign(this, _this); ...
Add additional params to skill context.
Add additional params to skill context.
TypeScript
agpl-3.0
deegles/cookietime,deegles/cookietime
--- +++ @@ -1,15 +1,39 @@ +import {Callback, Context} from "aws-lambda"; +import {AlexaRequestBody} from "./AlexaService"; + namespace Skill { export class Context { - constructor() { + constructor(request: AlexaRequestBody, event: Context, callback: Callback, _this?: any) { + if (_this...
151ebf0e4a30651e9f12b9f6f72a56b6fb3b59aa
src/image-viewer.directive.ts
src/image-viewer.directive.ts
import { App } from 'ionic-angular'; import { ElementRef, HostListener, Directive, Input } from '@angular/core'; import { ImageViewer } from './image-viewer'; @Directive({ selector: '[imageViewer]' }) export class ImageViewerDirective { @Input('imageViewer') src: string; constructor( private _app: App, priva...
import { App } from 'ionic-angular'; import { ElementRef, HostListener, Directive, Input } from '@angular/core'; import { ImageViewer } from './image-viewer'; @Directive({ selector: '[imageViewer]' }) export class ImageViewerDirective { @Input('imageViewer') src: string; constructor( private _app: App, priva...
Stop event propagation on `imageViewer`elements
Stop event propagation on `imageViewer`elements A click on an `imageViewer` should not propagate : if you use an image in a list item, you don't want the click to propagate to the item Closes #40
TypeScript
mit
Riron/ionic-img-viewer,Riron/ionic-img-viewer
--- +++ @@ -15,7 +15,9 @@ private _el: ElementRef ) { } - @HostListener('click') onClick(): void { + @HostListener('click', ['$event']) onClick(event: Event): void { + event.stopPropagation(); + let position = this._el.nativeElement.getBoundingClientRect(); let imageViewer = ImageViewer.create({image:...
5b6d5fad6bdda64a4696c33ff2ecb3f563beb33e
src/app/contact-detail.component.ts
src/app/contact-detail.component.ts
import { Component, Input } from '@angular/core'; import { Contact } from './contact'; @Component({ selector: 'my-contact-detail', template: ` <div *ngIf="selectedContact"> <h2>{{selectedContact.firstName}} details:</h2> <div> <label>id: </label>{{selectedConta...
import { Component, Input } from '@angular/core'; import { Contact } from './contact'; @Component({ selector: 'my-contact-detail', template: ` <div *ngIf="selectedContact"> <h2>{{selectedContact.firstName}} details:</h2> <div> <label>id: </label>{{selectedConta...
Declare 'contact' as an input
refactor: Declare 'contact' as an input [ticket: #2]
TypeScript
mit
armin-es/contact-list-angular-2,armin-es/contact-list-angular-2,armin-es/contact-list-angular-2
--- +++ @@ -28,5 +28,6 @@ }) export class ContactDetailComponent { + @Input() contact: Contact; }
e6e5f0004abe9541b63d4af3a8a2e2537a6085a4
frontend/src/components/Loading.tsx
frontend/src/components/Loading.tsx
import Progress from 'antd/lib/progress'; import * as React from "react"; import {Status} from "../utils/types"; export interface LoadingProps { // TODO: Make "status" a proper type. status: number; } export default class Loading extends React.Component<LoadingProps, never> { render() { const progress = th...
import Progress from 'antd/lib/progress'; import * as React from "react"; import {Status} from "../utils/types"; export interface LoadingProps { // TODO: Make "status" a proper type. status: number; } export default class Loading extends React.Component<LoadingProps, never> { render() { const progress = th...
Change loading bar color to a gray gradient.
frontend: Change loading bar color to a gray gradient. This matches the rest of the color scheme of the web UI.
TypeScript
mit
jrupac/goliath,jrupac/goliath,jrupac/goliath,jrupac/goliath,jrupac/goliath
--- +++ @@ -19,6 +19,10 @@ percent={100 * progress} showInfo={false} status="active" + strokeColor={{ + from: "#ececec", + to: "#222", + }} strokeWidth={5}/> </div> )
5ae771321a5f2d801ba521662baf6a73ff22ea83
client/src/app.module.ts
client/src/app.module.ts
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { HttpModule, JsonpModule } from '@angular/http'; import { AppComponent } from './app/app.component'; import { NavbarComponent } from './app/navbar/navbar.component'; import { HomeComponent} from ...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { HttpModule, JsonpModule } from '@angular/http'; import { AppComponent } from './app/app.component'; import { NavbarComponent } from './app/navbar/navbar.component'; import { HomeComponent} from ...
Remove import of removed DialogComponent
Remove import of removed DialogComponent
TypeScript
mit
UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM...
--- +++ @@ -11,7 +11,6 @@ import { PlantListComponent } from './app/plants/plant-list.component'; import { PlantComponent } from './app/plants/plant.component'; import { PlantListService } from './app/plants/plant-list.service'; -import { DialogComponent} from './app/dialog/dialog.component'; import { routing } f...
bcec34f9cc47432346fc8d649fe6dd2c40deeabf
src/plugins/zoom/zoom.ts
src/plugins/zoom/zoom.ts
import {Workflow} from "../../"; import {PluginBase} from "../plugin-base"; export class ZoomPlugin extends PluginBase { private svg: SVGSVGElement; private dispose: Function | undefined; registerWorkflow(workflow: Workflow): void { super.registerWorkflow(workflow); this.svg = workflow.s...
import {Workflow} from "../../"; import {PluginBase} from "../plugin-base"; export class ZoomPlugin extends PluginBase { private svg: SVGSVGElement; private dispose: Function | undefined; registerWorkflow(workflow: Workflow): void { super.registerWorkflow(workflow); this.svg = workflow.s...
Change non-standard deprecated mousewheel event to wheel event
Change non-standard deprecated mousewheel event to wheel event
TypeScript
apache-2.0
rabix/cwl-svg,rabix/cwl-svg,rabix/cwl-svg
--- +++ @@ -14,8 +14,8 @@ attachWheelListener(): () => void { const handler = this.onMouseWheel.bind(this); - this.svg.addEventListener("mousewheel", handler, true); - return () => this.svg.removeEventListener("mousewheel", handler, true); + this.svg.addEventListener("wheel", hand...
1d286dd3566b97e40cb9338aa204f225d0df9687
polygerrit-ui/app/test/common-test-setup-karma.ts
polygerrit-ui/app/test/common-test-setup-karma.ts
/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import {testResolver as testResolverImpl} from './common-test-setup'; declare global { interface Window { testResolver: typeof testResolverImpl; } let testResolver: typeof testResolverImpl; } let originalOnBeforeUnload: ...
/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import {testResolver as testResolverImpl} from './common-test-setup'; declare global { interface Window { testResolver: typeof testResolverImpl; } let testResolver: typeof testResolverImpl; } window.testResolver = testRe...
Remove page reload detection in tests
Remove page reload detection in tests Our test runner handles this automatically and fails the test with error code 1. https://imgur.com/a/JTOQPtU Release-Notes: skip Change-Id: Ida8a8ddb0c42a9b2c138d8235c72af79f4487e66
TypeScript
apache-2.0
GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit
--- +++ @@ -12,34 +12,4 @@ let testResolver: typeof testResolverImpl; } -let originalOnBeforeUnload: typeof window.onbeforeunload; - -suiteSetup(() => { - // This suiteSetup() method is called only once before all tests - - // Can't use window.addEventListener("beforeunload",...) here, - // the handler is ra...
b674ada8bca18bc2ba0e545d73f79459cc27dd88
src/v2/Apps/ArtistSeries/routes.tsx
src/v2/Apps/ArtistSeries/routes.tsx
import loadable from "@loadable/component" import { graphql } from "react-relay" import { RouteConfig } from "found" // import React from "react" const ArtistSeriesApp = loadable(() => import("./ArtistSeriesApp")) // const ArtistSeriesApp = props => <h1>{props.artistSeries.internalID}</h1> export const routes: Route...
import loadable from "@loadable/component" import { graphql } from "react-relay" import { RouteConfig } from "found" const ArtistSeriesApp = loadable(() => import("./ArtistSeriesApp")) export const routes: RouteConfig[] = [ { path: "/artist-series/:slug", getComponent: () => ArtistSeriesApp, prepare: ()...
Remove leftover commented out code
Remove leftover commented out code
TypeScript
mit
oxaudo/force,oxaudo/force,oxaudo/force,artsy/force,artsy/force,eessex/force,eessex/force,joeyAghion/force,artsy/force-public,artsy/force-public,eessex/force,joeyAghion/force,joeyAghion/force,joeyAghion/force,oxaudo/force,eessex/force,artsy/force,artsy/force
--- +++ @@ -1,11 +1,8 @@ import loadable from "@loadable/component" import { graphql } from "react-relay" import { RouteConfig } from "found" -// import React from "react" const ArtistSeriesApp = loadable(() => import("./ArtistSeriesApp")) - -// const ArtistSeriesApp = props => <h1>{props.artistSeries.internalI...
bb6d2a89bbeb0fadc50359f35f1d1aff60c6a34f
src/app/shell/Link.tsx
src/app/shell/Link.tsx
import * as React from 'react'; import { DestinyAccount } from '../accounts/destiny-account.service'; import { $transitions, $state } from '../ngimport-more'; import { t } from 'i18next'; export default class Link extends React.Component<{ account?: DestinyAccount; state: string; text?: string; }, { active: bo...
import * as React from 'react'; import { DestinyAccount } from '../accounts/destiny-account.service'; import { $transitions, $state } from '../ngimport-more'; import { t } from 'i18next'; export default class Link extends React.PureComponent<{ account?: DestinyAccount; state: string; text?: string; }, { active...
Make link a pure component
Make link a pure component
TypeScript
mit
chrisfried/DIM,bhollis/DIM,DestinyItemManager/DIM,delphiactual/DIM,bhollis/DIM,DestinyItemManager/DIM,chrisfried/DIM,chrisfried/DIM,DestinyItemManager/DIM,delphiactual/DIM,delphiactual/DIM,DestinyItemManager/DIM,delphiactual/DIM,bhollis/DIM,bhollis/DIM,chrisfried/DIM
--- +++ @@ -3,7 +3,7 @@ import { $transitions, $state } from '../ngimport-more'; import { t } from 'i18next'; -export default class Link extends React.Component<{ +export default class Link extends React.PureComponent<{ account?: DestinyAccount; state: string; text?: string;
b3892c565028a5212300e6f0f46fef99814020dc
spec/regression/helpers.ts
spec/regression/helpers.ts
import {execute, parse} from "graphql"; import {ProxyConfig} from "../../src/config/proxy-configuration"; import {createProxySchema} from "../../src/proxy-schema"; /** * Create a graphql proxy for a configuration and execute a query on it. * @param proxyConfig * @param query * @param variableValues * @returns {Pr...
import { execute, parse, validate } from 'graphql'; import {ProxyConfig} from "../../src/config/proxy-configuration"; import {createProxySchema} from "../../src/proxy-schema"; import { assertSuccessfulResponse } from '../../src/endpoints/client'; /** * Create a graphql proxy for a configuration and execute a query on...
Validate queries of regression tests before executing
Validate queries of regression tests before executing
TypeScript
mit
AEB-labs/graphql-weaver,AEB-labs/graphql-weaver
--- +++ @@ -1,6 +1,7 @@ -import {execute, parse} from "graphql"; +import { execute, parse, validate } from 'graphql'; import {ProxyConfig} from "../../src/config/proxy-configuration"; import {createProxySchema} from "../../src/proxy-schema"; +import { assertSuccessfulResponse } from '../../src/endpoints/client'; ...
2e6e81599e36eeb58189401d363797fb32e4f3c7
src/types.ts
src/types.ts
import _ = require('lodash'); export interface DotEnsime { name: string scalaVersion: string scalaEdition: string javaHome: string javaFlags: string rootDir: string cacheDir: string compilerJars: string dotEnsimePath: string sourceRoots: [string] } export class EnsimeInstance ...
import _ = require('lodash'); export interface DotEnsime { name: string scalaVersion: string scalaEdition: string javaHome: string javaFlags: string rootDir: string cacheDir: string compilerJars: string dotEnsimePath: string sourceRoots: [string] } export class EnsimeInstance ...
Fix error that rootDir was not set, unabling to stop
Fix error that rootDir was not set, unabling to stop
TypeScript
mit
hedefalk/ensime-node,ensime/ensime-node,Jarlakxen/ensime-node,ensime/ensime-node,Jarlakxen/ensime-node,hedefalk/ensime-node
--- +++ @@ -17,6 +17,7 @@ rootDir: string; constructor(public dotEnsime: DotEnsime, public client: any, public ui?: any) { + this.rootDir = dotEnsime.rootDir; } isSourceOf = (path) => _.some(this.dotEnsime.sourceRoots, (sourceRoot) => path.startsWith(sourceRoot))
3d0a17f13c1e3d4981e26dbabf60eaefcf36771a
src/BetterFolders/icon.tsx
src/BetterFolders/icon.tsx
import {React} from "dium"; import {Settings, FolderData} from "./settings"; export interface ConnectedBetterFolderIconProps { folderId: number; childProps: any; FolderIcon: React.FunctionComponent<any>; } export const ConnectedBetterFolderIcon = ({folderId, ...props}: ConnectedBetterFolderIconProps): JSX...
import {React} from "dium"; import {Settings, FolderData} from "./settings"; export interface BetterFolderIconProps { data?: FolderData; childProps: any; FolderIcon: React.FunctionComponent<any>; } export const BetterFolderIcon = ({data, childProps, FolderIcon}: BetterFolderIconProps): JSX.Element => { ...
Fix no folder data error
Fix no folder data error
TypeScript
mit
Zerthox/BetterDiscord-Plugins,Zerthox/BetterDiscord-Plugins
--- +++ @@ -1,5 +1,23 @@ import {React} from "dium"; import {Settings, FolderData} from "./settings"; + +export interface BetterFolderIconProps { + data?: FolderData; + childProps: any; + FolderIcon: React.FunctionComponent<any>; +} + +export const BetterFolderIcon = ({data, childProps, FolderIcon}: Better...
4cfe424af34ef39ca615f17f3b9d28439598d80c
library/src/game/GameClientModels/AbilityBarState.ts
library/src/game/GameClientModels/AbilityBarState.ts
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import { createDefaultOnUpdated, createDefaultOnReady, Updatable } from './_Updatable'; import engineInit fro...
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import { createDefaultOnUpdated, createDefaultOnReady, Updatable } from './_Updatable'; import engineInit fro...
Add status to AbilityBarItem interface
Add status to AbilityBarItem interface
TypeScript
mpl-2.0
saddieeiddas/Camelot-Unchained,Ajackster/Camelot-Unchained,CUModSquad/Camelot-Unchained,Ajackster/Camelot-Unchained,csegames/Camelot-Unchained,Ajackster/Camelot-Unchained,csegames/Camelot-Unchained,Mehuge/Camelot-Unchained,CUModSquad/Camelot-Unchained,saddieeiddas/Camelot-Unchained,Mehuge/Camelot-Unchained,csegames/Cam...
--- +++ @@ -13,7 +13,7 @@ id: number; keyActionID: number; boundKeyName: string; - + status: AbilityButtonState; type: AbilityButtonType; track: AbilityTrack; error: string;
8d7661cf9e1f5493e878ae1ddd4056d10da1adf6
scripts/Actions/InfiniteScroller.ts
scripts/Actions/InfiniteScroller.ts
import { AnimeNotifier } from "../AnimeNotifier" // Load more export function loadMore(arn: AnimeNotifier, button: HTMLButtonElement) { // Prevent firing this event multiple times if(arn.isLoading || button.disabled) { return } arn.loading(true) button.disabled = true let target = arn.app.find("load-more-tar...
import { AnimeNotifier } from "../AnimeNotifier" // Load more export function loadMore(arn: AnimeNotifier, button: HTMLButtonElement) { // Prevent firing this event multiple times if(arn.isLoading || button.disabled) { return } arn.loading(true) button.disabled = true let target = arn.app.find("load-more-tar...
Disable button at end of infinite scrolling
Disable button at end of infinite scrolling
TypeScript
mit
animenotifier/notify.moe,animenotifier/notify.moe,animenotifier/notify.moe
--- +++ @@ -12,18 +12,19 @@ let target = arn.app.find("load-more-target") let index = button.dataset.index - + fetch("/_" + arn.app.currentPath + "/from/" + index) .then(response => { let newIndex = response.headers.get("X-LoadMore-Index") // End of data? if(newIndex === "-1") { + button.disab...
3b6ade483f8cdb2d39be0bbfd70e7844220b25c7
app/javascript/retrospring/features/inbox/generate.ts
app/javascript/retrospring/features/inbox/generate.ts
import Rails from '@rails/ujs'; import I18n from 'retrospring/i18n'; import { updateDeleteButton } from './delete'; import { showErrorNotification } from 'utilities/notifications'; export function generateQuestionHandler(): void { Rails.ajax({ url: '/ajax/generate_question', type: 'POST', dataType: 'jso...
import { post } from '@rails/request.js'; import I18n from 'retrospring/i18n'; import { updateDeleteButton } from './delete'; import { showErrorNotification } from 'utilities/notifications'; export function generateQuestionHandler(): void { post('/ajax/generate_question') .then(async response => { const d...
Refactor question generating to use request.js
Refactor question generating to use request.js
TypeScript
agpl-3.0
Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring
--- +++ @@ -1,23 +1,21 @@ -import Rails from '@rails/ujs'; +import { post } from '@rails/request.js'; import I18n from 'retrospring/i18n'; import { updateDeleteButton } from './delete'; import { showErrorNotification } from 'utilities/notifications'; export function generateQuestionHandler(): void { - Rails....
dbfde47fcdd069bb5272f022229c5af80405365b
src/reducers/audioSettings.ts
src/reducers/audioSettings.ts
import { EditAudioSource, ChangeVolume, ToggleAudioEnabled } from '../actions/audio'; import { AudioSettings } from '../types'; import { EDIT_AUDIO_SOURCE, CHANGE_VOLUME, TOGGLE_AUDIO_ENABLED } from '../constants'; const initial: AudioSettings = { enabled: true, volume: 0.5, audio1: ne...
import { EditAudioSource, ChangeVolume, ToggleAudioEnabled } from '../actions/audio'; import { AudioSettings } from '../types'; import { EDIT_AUDIO_SOURCE, CHANGE_VOLUME, TOGGLE_AUDIO_ENABLED } from '../constants'; const initial: AudioSettings = { enabled: true, volume: 0.1, audio1: ne...
Change default volume to 0.10.
Change default volume to 0.10.
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
--- +++ @@ -12,7 +12,7 @@ const initial: AudioSettings = { enabled: true, - volume: 0.5, + volume: 0.1, audio1: new Audio( 'http://k003.kiwi6.com/hotlink/vnu75u0sif/file-sounds-765-tweet.ogg' ),