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
7f8894f4e7be0d40b2e6b788e4a1d7b51fb21a46
src/index.d.ts
src/index.d.ts
import { Body as NodeBody, Headers as NodeHeaders, Request as NodeRequest, Response as NodeResponse } from "node-fetch"; declare namespace unfetch { export type IsomorphicHeaders = Headers | NodeHeaders; export type IsomorphicBody = Body | NodeBody; export type IsomorphicResponse = Response | NodeRespons...
import { Body as NodeBody, Headers as NodeHeaders, Request as NodeRequest, Response as NodeResponse } from "node-fetch"; declare namespace unfetch { export type IsomorphicHeaders = Headers | NodeHeaders; export type IsomorphicBody = Body | NodeBody; export type IsomorphicResponse = Response | NodeRespons...
Fix for TS error TS2666
Fix for TS error TS2666
TypeScript
mit
developit/unfetch
--- +++ @@ -14,6 +14,4 @@ declare const unfetch: typeof fetch; -declare module "unfetch" { - export = unfetch; -} +export default unfetch;
423ce83f971f33dab5ad74e9d03ceadc310a8fc3
TypeGap/Resources/GeneratedNotice.ts
TypeGap/Resources/GeneratedNotice.ts
////////////////////////////////////////////////////////////////// //// //// //// THIS FILE IS AUTO GENERATED //// //// Changes you make to this file will lost the next time //// //// the auto generation script runs. ...
/* tslint:disable */ ////////////////////////////////////////////////////////////////// //// //// //// THIS FILE IS AUTO GENERATED //// //// Changes you make to this file will lost the next time //// //// the auto genera...
Add tslint directive to generated files
Add tslint directive to generated files
TypeScript
mit
BluestoneEU/TypeGap,BluestoneEU/TypeGap,BluestoneEU/TypeGap,BluestoneEU/TypeGap
--- +++ @@ -1,4 +1,5 @@ -////////////////////////////////////////////////////////////////// +/* tslint:disable */ +////////////////////////////////////////////////////////////////// //// //// //// THIS FILE IS AUTO GENERATED ///...
b91a30a5b9875ecc7633ef26844edd51c0dc5613
api_server/src/main/frontend/app/chart/chart-time-spec.ts
api_server/src/main/frontend/app/chart/chart-time-spec.ts
export class ChartTimeSpec { constructor(public duration_seconds: Number, public end?: Date, public stepsize_seconds?: Number) {} public getEnd() : Date { return (this.end ? this.end : new Date()); } public getBegin() : Date { return new Date(this.getEnd().getTime() - 1000 * Number(this.duration_secon...
/* * Time specifications: * - begin time only (stream from begin until end-of-data). * - begin time and end time (stream from begin until end). * - begin time and duration (treat as end = begin + duration). * - end time and duration (treat as begin = end - duration). * - duration only (treat as begin = now() - du...
Document what the spec for time-spec is to be.
Document what the spec for time-spec is to be.
TypeScript
bsd-3-clause
groupon/monsoon,groupon/monsoon,groupon/monsoon,groupon/monsoon
--- +++ @@ -1,3 +1,14 @@ +/* + * Time specifications: + * - begin time only (stream from begin until end-of-data). + * - begin time and end time (stream from begin until end). + * - begin time and duration (treat as end = begin + duration). + * - end time and duration (treat as begin = end - duration). + * - duration...
376eb731770ce9d11aa0a215db3b86ddab1131f3
types/connect-history-api-fallback-exclusions/index.d.ts
types/connect-history-api-fallback-exclusions/index.d.ts
// Type definitions for connect-history-api-fallback-exclusions 1.5 // Project: https://github.com/Wirewheel/connect-history-api-fallback#readme // Definitions by: Tony Stone <https://github.com/tonystonee> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 /// <reference typ...
// Type definitions for connect-history-api-fallback-exclusions 1.5 // Project: https://github.com/Wirewheel/connect-history-api-fallback#readme // Definitions by: Tony Stone <https://github.com/tonystonee> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 /// <reference typ...
Remove trailing whitespace for Travis
Remove trailing whitespace for Travis
TypeScript
mit
dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,markogresak/DefinitelyTyped,georgemarshall/DefinitelyTyped
--- +++ @@ -22,13 +22,13 @@ rewrites?: Rewrite[]; verbose?: boolean; } - + interface Context { match: RegExpMatchArray; parsedUrl: Url; } type RewriteTo = (context: Context) => string; - + interface Rewrite { from: RegExp; to: stri...
c3f5e6c77c462ee836e228f1cbda4dfb0a44cef2
global.ts
global.ts
export var MAIN_EXTENSION_ID = 'gjfpooppigdbnojgpjhcbmlphmplomfo'; export var HELPER_EXTENSION_ID = 'chnomchpocolfpeolppjhnhlhlgpkogo'; export interface Message { type: string; } /** * P2P Web Proxy ̃zXg\ */ export interface HostInfoMessage extends Message { host: string; port: numbe...
// Desc : 2つの拡張機能に共通する定数とインターフェイスの定義 // License: MIT License // Author : pine613<https://github.com/pine613> // Copyright (C) 2014-2015 Pine Mizune. /** * メイン拡張機能 (Akame) の ID */ export var MAIN_EXTENSION_ID = 'gjfpooppigdbnojgpjhcbmlphmplomfo'; /** * サブ拡張機能 (Kurome) の ID */ export var HELPER_EXTEN...
Add comment & fix encoding
Add comment & fix encoding
TypeScript
mit
WebRTC-CacheSharing/AkaKurome
--- +++ @@ -1,14 +1,28 @@ +// Desc : 2つの拡張機能に共通する定数とインターフェイスの定義 +// License: MIT License +// Author : pine613<https://github.com/pine613> +// Copyright (C) 2014-2015 Pine Mizune. + +/** + * メイン拡張機能 (Akame) の ID + */ export var MAIN_EXTENSION_ID = 'gjfpooppigdbnojgpjhcbmlphmplomfo'; + +/** + * サブ拡張機能 (Kurome) の ID ...
fd158335894564ad407eecfcc9a8a1eb95db16c6
TheCollection.Web/ClientApp/thunks/tea/dashboard.ts
TheCollection.Web/ClientApp/thunks/tea/dashboard.ts
import { fetch, addTask } from 'domain-task'; import { routerActions, RouterAction } from 'react-router-redux'; import { AppThunkAction } from '../../store'; import { IRefValue } from '../../interfaces/IRefValue'; import { ICountBy } from '../../interfaces/ICountBy'; import { RECIEVE_BAGTYPECOUNT, REQUEST_BAGTYPECOUNT ...
import { fetch, addTask } from 'domain-task'; import { routerActions, RouterAction } from 'react-router-redux'; import { AppThunkAction } from '../../store'; import { IRefValue } from '../../interfaces/IRefValue'; import { ICountBy } from '../../interfaces/ICountBy'; import { RECIEVE_BAGTYPECOUNT, REQUEST_BAGTYPECOUNT ...
Fix worng api path call
Fix worng api path call
TypeScript
apache-2.0
projecteon/thecollection,projecteon/thecollection,projecteon/thecollection,projecteon/thecollection
--- +++ @@ -9,7 +9,7 @@ export const requestBagTypeCount = { requestBagTypeCount: (): AppThunkAction<ReceiveBagTypeCountAction | RequestBagTypeCountAction> => (dispatch, getState) => { try { - let fetchTask = fetch(`/api/tea/Dashboard/BagTypes/`, { credentials: 'same-origin' }) + let fetchTask = f...
e1c205e50ce11b787f7f2dc745673858167e7b89
packages/openspec/src/common/OpenSpecVersions.ts
packages/openspec/src/common/OpenSpecVersions.ts
export type OS2Versions = "2.0"; export type OS3Versions = "3.0.1" | "3.0.2" | "3.0.3" | "3.1.0"; export type OpenSpecVersions = OS2Versions | OS3Versions;
export type OS2Versions = "2.0"; export type OS3Versions = "3.0.1" | "3.0.2" | "3.0.3"; export type OpenSpecVersions = OS2Versions | OS3Versions;
Remove the unsupported 3.1.0 version by swagger-ui
fix(swagger): Remove the unsupported 3.1.0 version by swagger-ui
TypeScript
mit
Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators
--- +++ @@ -1,3 +1,3 @@ export type OS2Versions = "2.0"; -export type OS3Versions = "3.0.1" | "3.0.2" | "3.0.3" | "3.1.0"; +export type OS3Versions = "3.0.1" | "3.0.2" | "3.0.3"; export type OpenSpecVersions = OS2Versions | OS3Versions;
962e382290ffee5f1f866d995af4d1577fb3534a
src/main.ts
src/main.ts
import Sound = require("./lib/sound"); "use strict"; function main() { var sound = new Sound(); var innocence = ["D5", "E5", "G5", "A5", "B5", "G5"]; var currentPlayIndex = 0; document.addEventListener("click", () => { if (currentPlayIndex === innocence.length) { currentPlayIndex = 0; } va...
/// <reference path="../DefinitelyTyped/fabricjs/fabricjs.d.ts" /> import Sound = require("./lib/sound"); "use strict"; class Line { static create(coords: number[]) { return new fabric.Line(coords, { fill: "#51917a", stroke: "#51917a", strokeWidth: 10, selectable: false }); } st...
Add draw lines at click event
Add draw lines at click event
TypeScript
mit
kubosho/ano-gakki,kubosho/ano-gakki,kubosho/ano-gakki,kubosho/ano-gakki
--- +++ @@ -1,11 +1,43 @@ +/// <reference path="../DefinitelyTyped/fabricjs/fabricjs.d.ts" /> import Sound = require("./lib/sound"); "use strict"; +class Line { + static create(coords: number[]) { + return new fabric.Line(coords, { + fill: "#51917a", + stroke: "#51917a", + strokeWidth: 10, + ...
e300b4c256df86a35f561cf8058626c0226fbb1b
src/ActiveFilter.ts
src/ActiveFilter.ts
import { Filter } from './types'; /** * ActiveFilter represents the currently active filter over * the grid. * * It can be a plain string value or an array of strings. */ export default class ActiveFilter { private filter: Filter; public constructor(filter: Filter) { this.filter = filter; } public g...
import { Filter } from './types'; /** * ActiveFilter represents the currently active filter over * the grid. * * It can be a plain string value or an array of strings. */ export default class ActiveFilter { private filter: Filter; public constructor(filter: Filter) { this.filter = filter; } public g...
Use Filter type in signature for consistency
Use Filter type in signature for consistency
TypeScript
mit
giotiskl/Filterizr
--- +++ @@ -26,7 +26,7 @@ } private toggleFilter( - activeFilter: string | string[], + activeFilter: Filter, targetFilter: string ): string | string[] { if (activeFilter === 'all') {
0ddc4af049f6fb6860dc96d14a8a3e59c90d9a35
app/src/lib/git/revert.ts
app/src/lib/git/revert.ts
import { git, gitNetworkArguments, IGitExecutionOptions } from './core' import { Repository } from '../../models/repository' import { Commit } from '../../models/commit' import { envForAuthentication, IGitAccount } from './authentication' import { IRevertProgress } from '../app-state' import { executionOptionsWithProgr...
import { git, gitNetworkArguments, IGitExecutionOptions } from './core' import { Repository } from '../../models/repository' import { Commit } from '../../models/commit' import { envForAuthentication, IGitAccount } from './authentication' import { IRevertProgress } from '../app-state' import { executionOptionsWithProgr...
Copy the title through too
Copy the title through too
TypeScript
mit
kactus-io/kactus,shiftkey/desktop,j-f1/forked-desktop,say25/desktop,kactus-io/kactus,desktop/desktop,shiftkey/desktop,kactus-io/kactus,shiftkey/desktop,artivilla/desktop,desktop/desktop,artivilla/desktop,j-f1/forked-desktop,say25/desktop,kactus-io/kactus,j-f1/forked-desktop,j-f1/forked-desktop,artivilla/desktop,artivil...
--- +++ @@ -36,9 +36,10 @@ progress => { const description = progress.kind === 'progress' ? progress.details.text : progress.text + const title = progress.kind === 'progress' ? progress.details.title : '' const value = progress.percent - progressCallback({ kind: 're...
8b51665b39dafb9eba24a43ec5fb0b1329697739
src/assets/app.tsx
src/assets/app.tsx
import 'normalize.css' import * as React from 'react' import {render as renderToDOM} from 'react-dom' import {AppRoot} from '../app/components/root' import {createReducer} from '../app/reducer' import {saga} from '../app/saga' import {Container} from '../common/components/container' import {createStore} from '../common...
import 'normalize.css' import * as React from 'react' import {render as renderToDOM} from 'react-dom' import {AppRoot} from '../app/components/root' import {createReducer} from '../app/reducer' import {saga} from '../app/saga' import {Container} from '../common/components/container' import {createStore} from '../common...
Fix hot reload of reducer
Fix hot reload of reducer
TypeScript
mit
jupl/astraea,jupl/astraea
--- +++ @@ -11,8 +11,7 @@ const container = document.getElementById('container')! // Create Redux store instance -const reducer = createReducer() -const store = createStore({reducer, saga}) +const store = createStore({reducer: createReducer(), saga}) // Render application. Also register to rerender if hot load...
3bb3be1b375c143ff047f81ea063da5fb6c99d64
packages/ionic/src/layouts/group/group-layout.ts
packages/ionic/src/layouts/group/group-layout.ts
import { GroupLayout, JsonFormsState, RankedTester, rankWith, uiTypeIs } from '@jsonforms/core'; import { Component } from '@angular/core'; import { NgRedux } from '@angular-redux/store'; import { JsonFormsIonicLayout } from '../JsonFormsIonicLayout'; @Component({ selector: 'jsonforms-group-layout', temp...
import { GroupLayout, JsonFormsProps, JsonFormsState, RankedTester, rankWith, uiTypeIs } from '@jsonforms/core'; import { Component } from '@angular/core'; import { NgRedux } from '@angular-redux/store'; import { JsonFormsIonicLayout } from '../JsonFormsIonicLayout'; @Component({ selector: 'jsonf...
Fix group initializer for displaying label
[ionic] Fix group initializer for displaying label
TypeScript
mit
qb-project/jsonforms,qb-project/jsonforms,qb-project/jsonforms
--- +++ @@ -1,9 +1,9 @@ import { - GroupLayout, - JsonFormsState, - RankedTester, - rankWith, - uiTypeIs + GroupLayout, JsonFormsProps, + JsonFormsState, + RankedTester, + rankWith, + uiTypeIs } from '@jsonforms/core'; import { Component } from '@angular/core'; import { NgRedux } from '@angula...
42a265bad5fbd33d95f483432b20a271343e79a3
examples/typescript/basic/src/output/YesNoOutput.ts
examples/typescript/basic/src/output/YesNoOutput.ts
import { BaseOutput, Output } from '@jovotech/framework'; import { OutputTemplate } from '@jovotech/output'; @Output() export class YesNoOutput extends BaseOutput { /* |-------------------------------------------------------------------------- | Output Template |------------------------------------------...
import { BaseOutput, Output, OutputTemplate } from '@jovotech/framework'; @Output() export class YesNoOutput extends BaseOutput { /* |-------------------------------------------------------------------------- | Output Template |-------------------------------------------------------------------------- ...
Fix invalid import in example
:bug: Fix invalid import in example
TypeScript
apache-2.0
jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs
--- +++ @@ -1,5 +1,4 @@ -import { BaseOutput, Output } from '@jovotech/framework'; -import { OutputTemplate } from '@jovotech/output'; +import { BaseOutput, Output, OutputTemplate } from '@jovotech/framework'; @Output() export class YesNoOutput extends BaseOutput {
108f19a14c46b1948906249b7ed1c5d10dc81463
src/makeLayoutPositions/makeSameSizeLayoutPosition.ts
src/makeLayoutPositions/makeSameSizeLayoutPosition.ts
import { ContainerLayout, Position, Dimensions } from '../types/interfaces'; import { calculateColumnsForSameWidthLayouts } from './calculateColumnsForSameWidthLayouts'; /** * Same size layout for items that have the same width/height */ export default ( containerWidth: number, itemsDimensions: Dimensions[], g...
import { ContainerLayout, Position, Dimensions } from '../types/interfaces'; import { calculateColumnsForSameWidthLayouts } from './calculateColumnsForSameWidthLayouts'; /** * Same size layout for items that have the same width/height */ export default ( containerWidth: number, itemsDimensions: Dimensions[], g...
Simplify calculation of same size layouts
Simplify calculation of same size layouts
TypeScript
mit
giotiskl/Filterizr
--- +++ @@ -9,30 +9,25 @@ itemsDimensions: Dimensions[], gutterPixels: number ): ContainerLayout => { - let cols = calculateColumnsForSameWidthLayouts( + const columns = calculateColumnsForSameWidthLayouts( containerWidth, itemsDimensions[0].width, gutterPixels ); - let row = 0; const...
c2c76e54331620ccf9963a00515bc860716e4159
rundeckapp/grails-spa/packages/ui/src/components/central/main.ts
rundeckapp/grails-spa/packages/ui/src/components/central/main.ts
import moment from 'moment' import Vue from 'vue' import * as uiv from 'uiv' import VueCookies from 'vue-cookies' import VueI18n from 'vue-i18n' import uivLang from '@rundeck/ui-trellis/lib/utilities/uivi18n' import VueMoment from 'vue-moment' import {getRundeckContext, getSynchronizerToken, RundeckBrowser} from '@rund...
import moment from 'moment' import Vue from 'vue' import * as uiv from 'uiv' import VueCookies from 'vue-cookies' import VueI18n from 'vue-i18n' import uivLang from '@rundeck/ui-trellis/lib/utilities/uivi18n' import VueMoment from 'vue-moment' import {getRundeckContext, getSynchronizerToken, RundeckBrowser} from '@rund...
Add root store to window
Add root store to window
TypeScript
apache-2.0
rundeck/rundeck,variacode/rundeck,rundeck/rundeck,variacode/rundeck,variacode/rundeck,rundeck/rundeck,rundeck/rundeck,rundeck/rundeck,variacode/rundeck,variacode/rundeck
--- +++ @@ -7,6 +7,7 @@ import VueMoment from 'vue-moment' import {getRundeckContext, getSynchronizerToken, RundeckBrowser} from '@rundeck/ui-trellis' import {EventBus} from '@rundeck/ui-trellis/lib/utilities/vueEventBus' +import { RootStore } from '@rundeck/ui-trellis/lib/stores/RootStore' type UivLangKey = ke...
9b79baec0ebcaddacc66319361fe4128e7a3a14a
src/vs/platform/extensionManagement/common/extensionTelemetry.ts
src/vs/platform/extensionManagement/common/extensionTelemetry.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 extension dependencies to telemetry data
Add extension dependencies to telemetry data
TypeScript
mit
stringham/vscode,radshit/vscode,Microsoft/vscode,zyml/vscode,hoovercj/vscode,charlespierce/vscode,hungys/vscode,microlv/vscode,rkeithhill/VSCode,matthewshirley/vscode,microlv/vscode,radshit/vscode,zyml/vscode,eamodio/vscode,hungys/vscode,eamodio/vscode,stringham/vscode,DustinCampbell/vscode,rishii7/vscode,landonepps/vs...
--- +++ @@ -14,7 +14,8 @@ galleryId: extension.metadata ? extension.metadata.id : null, publisherId: extension.metadata ? extension.metadata.publisherId : null, publisherName: extension.manifest.publisher, - publisherDisplayName: extension.metadata ? extension.metadata.publisherDisplayName : null + publish...
1fe95b5d81916100a188072bf4438a9804cb8ecb
app/server/workers/WeatherService.ts
app/server/workers/WeatherService.ts
import {IWeatherUpdate} from '../../common/interfaces/WeatherInterfaces'; import * as Rx from '@reactivex/rxjs'; export class WeatherService { sleepTime = 10000; weatherPub: Rx.Subject<IWeatherUpdate>; timer: any; constructor() { this.weatherPub = new Rx.Subject<IWeatherUpdate>(); this.start(); } getWeath...
import {IWeatherUpdate} from '../../common/interfaces/WeatherInterfaces'; import * as Rx from '@reactivex/rxjs'; export class WeatherService { sleepTime = 1000; weatherPub: Rx.Subject<IWeatherUpdate>; timer: any; cities:string[]; constructor() { this.cities = ['New York', 'Los Angeles', 'Chicago', 'Miami', 'D...
Put mock data in the weather service
Put mock data in the weather service
TypeScript
mit
hpinsley/angular-mashup,AngularShowcase/angular2-seed-example-mashup,AngularShowcase/angular2-seed-example-mashup,hpinsley/angular-mashup,AngularShowcase/angular2-seed-example-mashup,hpinsley/angular-mashup
--- +++ @@ -3,11 +3,13 @@ export class WeatherService { - sleepTime = 10000; + sleepTime = 1000; weatherPub: Rx.Subject<IWeatherUpdate>; timer: any; + cities:string[]; constructor() { + this.cities = ['New York', 'Los Angeles', 'Chicago', 'Miami', 'Dallas', 'Washington']; this.weatherPub = new Rx.Sub...
7308993ab20d47f9dfefb646ecc020d3af324818
src/score-input/settings/name-edit/settings-add-player.tsx
src/score-input/settings/name-edit/settings-add-player.tsx
import * as React from 'react' import flowRight from 'lodash-es/flowRight' import {returntypeof} from 'react-redux-typescript' import {connect} from 'react-redux' import {translate} from 'react-i18next' import IconButton from 'material-ui/IconButton' import ContentAdd from 'material-ui/svg-icons/content/add' import {bi...
import * as React from 'react' import flowRight from 'lodash-es/flowRight' import {returntypeof} from 'react-redux-typescript' import {connect} from 'react-redux' import {translate} from 'react-i18next' import IconButton from 'material-ui/IconButton' import ContentAdd from 'material-ui/svg-icons/content/add' import {bi...
Fix add player not working in settings page
Fix add player not working in settings page
TypeScript
mit
Holi0317/bridge-calc,Holi0317/bridge-calc,Holi0317/bridge-calc
--- +++ @@ -29,5 +29,5 @@ export const SettingsAddPlayer = flowRight( translate(), - connect(mapDispatchToProps) + connect(null, mapDispatchToProps) )(SettingsAddPlayerImpl)
1d43f2140d89fd8aabf16aabdb692f00efd7810a
packages/plugin-vue/types/bugsnag-plugin-vue.d.ts
packages/plugin-vue/types/bugsnag-plugin-vue.d.ts
import { Plugin, Client } from '@bugsnag/core' interface VueConfig { errorHandler?: VueErrorHandler } interface VueConstructor { config: VueConfig } interface VueApp { use: (plugin: { install: (app: VueApp, ...options: any[]) => any }) => void config: VueConfig } type VueErrorHandler = (err: unknown, instan...
import { Plugin, Client } from '@bugsnag/core' interface VueConfig { errorHandler?: VueErrorHandler } interface VueConstructor { config: VueConfig } interface VueApp { use: (plugin: { install: (app: VueApp, ...options: any[]) => any }) => void config: VueConfig } type VueErrorHandler = (err: any, instance: ...
Tweak types for vue2+3 compat
refactor(plugin-vue): Tweak types for vue2+3 compat
TypeScript
mit
bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js
--- +++ @@ -13,7 +13,7 @@ config: VueConfig } -type VueErrorHandler = (err: unknown, instance: any, info: any) => void +type VueErrorHandler = (err: any, instance: any, info: any) => void // eslint-disable-next-line @typescript-eslint/no-empty-interface interface BugsnagPluginVue extends Plugin { }
a30f8e80f6cd8240cdb6c28f0ada7d16eb55bcf6
showdesktop_hr.ts
showdesktop_hr.ts
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="hr_HR"> <context> <name>ShowDesktop</name> <message> <location filename="../../../showdesktop.cpp" line="48"/> <source>Show desktop</source> <translation type="unfinished">Pokaži radnu površinu</translation>...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="hr"> <context> <name>ShowDesktop</name> <message> <location filename="../../../showdesktop.cpp" line="48"/> <source>Show desktop</source> <translation type="unfinished">Pokaži radnu površinu</translation> ...
Fix language vs. name discrepancies
Fix language vs. name discrepancies ...revealed by auto testing
TypeScript
lgpl-2.1
stefonarch/lxqt-panel,lxde/lxqt-panel,stefonarch/lxqt-panel,stefonarch/lxqt-panel,lxde/lxqt-panel
--- +++ @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> -<TS version="2.1" language="hr_HR"> +<TS version="2.1" language="hr"> <context> <name>ShowDesktop</name> <message>
972f157aaa85009a7f3d6fead0bf2433c1c6d76a
packages/altair-express-middleware/index.ts
packages/altair-express-middleware/index.ts
'use strict'; import * as express from 'express'; import { getDistDirectory, renderAltair, renderInitialOptions, RenderOptions } from 'altair-static'; export const altairExpress = (opts: RenderOptions): express.Express => { const app = express(); app.disable('strict routing'); app.get('/', (req, res) => { ...
'use strict'; import * as express from 'express'; import { getDistDirectory, renderAltair, renderInitialOptions, RenderOptions } from 'altair-static'; export const altairExpress = (opts: RenderOptions): express.Express => { const app = express(); app.disable('strict routing'); app.get('/', (req, res) => { ...
Set correct header for js response
Set correct header for js response
TypeScript
mit
imolorhe/altair,imolorhe/altair,imolorhe/altair,imolorhe/altair
--- +++ @@ -15,6 +15,7 @@ return res.send(renderAltair(opts)); }); app.get('/initial_options.js', (req, res) => { + res.set('Content-Type', 'text/javascript'); return res.send(renderInitialOptions(opts)); }); app.use(express.static(getDistDirectory()));
a0a6dcbd3e2d695d672109f576ba0ca4bb3d6b79
components/Stepper/style/index.native.tsx
components/Stepper/style/index.native.tsx
import variables from '../../style/themes/default.native'; export default { container: { flexDirection: 'row', }, button: { alignItems: 'center', justifyContent: 'center', width: variables.stepper_height, height: variables.stepper_height, borderWidth: 1, borderColor: variables.theme_p...
import variables from '../../style/themes/default.native'; export default { container: { flexDirection: 'row', }, button: { alignItems: 'center', justifyContent: 'center', width: variables.stepper_height, height: variables.stepper_height, borderWidth: 1, borderColor: variables.theme_p...
Fix bug for TextInput padding has default value in Android
Fix bug for TextInput padding has default value in Android
TypeScript
mit
ZhonganTechENG/zarm,ZhonganTechENG/zarm,ZhonganTechENG/zarm,ZhonganTechENG/zarm,ZhonganTechENG/zarm,ZhonganTechENG/zarm
--- +++ @@ -21,6 +21,7 @@ input: { width: variables.stepper_input_width, height: variables.stepper_height, + padding: 0, marginHorizontal: 10, fontSize: variables.stepper_input_font_size, color: variables.color_text,
c99ca68bdbcf65086a005ce09d32435b7fbca5a2
src/app/theme.service.ts
src/app/theme.service.ts
import { Injectable } from '@angular/core'; import { Observable, BehaviorSubject } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class ThemeService { private darkMode = new BehaviorSubject(false); // TODO: load previous setting from storage constructor() { } isDarkMode(): Observable<boolean> { ...
import { Injectable } from '@angular/core'; import { Observable, BehaviorSubject } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class ThemeService { private darkMode = new BehaviorSubject(false); constructor() { const setting = localStorage.getItem('darkMode'); if (setting === 'true') { ...
Save and load dark mode preference to local storage
Save and load dark mode preference to local storage
TypeScript
mit
mbukosky/SpotifyUnchained,mbukosky/SpotifyUnchained,mbukosky/SpotifyUnchained,mbukosky/SpotifyUnchained
--- +++ @@ -8,8 +8,12 @@ private darkMode = new BehaviorSubject(false); - // TODO: load previous setting from storage - constructor() { } + constructor() { + const setting = localStorage.getItem('darkMode'); + if (setting === 'true') { + this.darkMode.next(true); + } + } isDarkMode(): Ob...
78eb4c16ebf10c35d408ac73cb91477fbd3a1144
src/index.ts
src/index.ts
export interface Result { matches: boolean; } export interface VisualRegressionTester { check: (name: string) => Promise<Result>; } export interface Browser { takeScreenshot: () => Promise<string>; } export interface FileSystem { read: (name: string) => Promise<string>; write: (name: string) => Promise<str...
export interface Result { matches: boolean; } export interface VisualRegressionTester { check: (name: string) => Promise<Result>; } export interface Browser { // https://w3c.github.io/webdriver/#take-screenshot takeScreenshot: () => Promise<string>; } export interface FileSystem { read: (name: string) => P...
Add link to webdriver spec
Add link to webdriver spec
TypeScript
mit
uberVU/mugshot,uberVU/mugshot
--- +++ @@ -7,6 +7,7 @@ } export interface Browser { + // https://w3c.github.io/webdriver/#take-screenshot takeScreenshot: () => Promise<string>; }
c5ef44e14ef33c4df42ac296356c01a65d0834f6
src/index.ts
src/index.ts
export {SEGMENT_CONFIG, SegmentModule} from './ngx-segment-analytics.module'; export {SegmentService} from './ngx-segment-analytics.service'; export {SegmentConfig} from './ngx-segment-analytics.config';
export * from './ngx-segment-analytics.module'; export { SegmentService } from './ngx-segment-analytics.service'; export { SegmentConfig } from './ngx-segment-analytics.config';
Revert "Limit exportation scope of module"
Revert "Limit exportation scope of module" This reverts commit 39b5bd5c788ccb9e2d4c059ed46df5e3bf4b172a. Fix #97
TypeScript
mit
opendecide/ngx-segment-analytics
--- +++ @@ -1,3 +1,3 @@ -export {SEGMENT_CONFIG, SegmentModule} from './ngx-segment-analytics.module'; -export {SegmentService} from './ngx-segment-analytics.service'; -export {SegmentConfig} from './ngx-segment-analytics.config'; +export * from './ngx-segment-analytics.module'; +export { SegmentService } from './ngx...
8b6f96a1ce584e34a2ba3601deb334c6bd24fbb2
app/+services/projects.service.ts
app/+services/projects.service.ts
import { Injectable } from '@angular/core'; import { Http, Response, Headers, RequestOptions } from '@angular/http'; import 'rxjs/add/operator/toPromise'; import { Group, Project } from '../+models'; import { ApiService, AuthenticationService } from './'; @Injectable() export class ProjectsService { private project...
import { Injectable } from '@angular/core'; import { Http, Response, Headers, RequestOptions } from '@angular/http'; import 'rxjs/add/operator/toPromise'; import { Group, Project } from '../+models'; import { ApiService, AuthenticationService } from './'; @Injectable() export class ProjectsService { private all = (...
Use mock server to retrieve a project
[Core] Use mock server to retrieve a project
TypeScript
mit
yllieth/localehub,yllieth/localehub,yllieth/localehub,yllieth/localehub
--- +++ @@ -7,7 +7,8 @@ @Injectable() export class ProjectsService { - private projectsUrl = ApiService.baseUrl + '/projects'; + private all = () => `${ApiService.baseUrl}/projects`; + private one = (owner: string, repo: string) => `${ApiService.baseUrl}/projects/${owner}/${repo}`; constructor(private $ht...
2eac3e8a3b8c76844958e0c19ddd5d5e7934a46d
src/providers/Jenkins.ts
src/providers/Jenkins.ts
import { Embed } from '../model/Embed' import { BaseProvider } from '../util/BaseProvider' /** * https://plugins.jenkins.io/notification */ class Jenkins extends BaseProvider { private static capitalize(str: string) { const tmp = str.toLowerCase() return tmp.charAt(0).toUpperCase() + tmp.slice(1...
import { Embed } from '../model/Embed' import { BaseProvider } from '../util/BaseProvider' /** * https://plugins.jenkins.io/notification */ class Jenkins extends BaseProvider { private static capitalize(str: string) { const tmp = str.toLowerCase() return tmp.charAt(0).toUpperCase() + tmp.slice(1...
Fix dat path for jenkins provider
Fix dat path for jenkins provider
TypeScript
mit
Commit451/skyhook,dscalzi/skyhook,dscalzi/skyhook,dscalzi/skyhook
--- +++ @@ -13,6 +13,10 @@ public getName() { return 'Jenkins-CI' + } + + public getPath() { + return 'jenkins' } public async parseData() {
3ed4a09c9580aeb88ebb577becc992885089bbf8
src/run.ts
src/run.ts
import callWith from "./utils/callWith"; export default (...tfs: Array<() => void>) => tfs.forEach(callWith());
import callWith from "./utils/callWith"; export default (...tfs: Array<() => void>) => { tfs.forEach(callWith()); process.exit(0); };
Exit with 0 if no errors or failures
Exit with 0 if no errors or failures
TypeScript
mit
testingrequired/tf,testingrequired/tf
--- +++ @@ -1,3 +1,6 @@ import callWith from "./utils/callWith"; -export default (...tfs: Array<() => void>) => tfs.forEach(callWith()); +export default (...tfs: Array<() => void>) => { + tfs.forEach(callWith()); + process.exit(0); +};
32957fac318c28344339bf178587000fb4a07cd3
src/app/utils/media-queries.ts
src/app/utils/media-queries.ts
import store from '../store/store'; import { setPhonePortrait } from '../shell/actions'; import { Observable, defer, fromEventPattern, asapScheduler } from 'rxjs'; import { map, startWith, subscribeOn } from 'rxjs/operators'; // This seems like a good breakpoint for portrait based on https://material.io/devices/ // We...
import store from '../store/store'; import { setPhonePortrait } from '../shell/actions'; // This seems like a good breakpoint for portrait based on https://material.io/devices/ // We can't use orientation:portrait because Android Chrome messes up when the keyboard is shown: https://www.chromestatus.com/feature/5656077...
Remove rxjs from media queries
Remove rxjs from media queries
TypeScript
mit
DestinyItemManager/DIM,delphiactual/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,delphiactual/DIM,DestinyItemManager/DIM,delphiactual/DIM,delphiactual/DIM
--- +++ @@ -1,11 +1,13 @@ import store from '../store/store'; import { setPhonePortrait } from '../shell/actions'; -import { Observable, defer, fromEventPattern, asapScheduler } from 'rxjs'; -import { map, startWith, subscribeOn } from 'rxjs/operators'; // This seems like a good breakpoint for portrait based on ...
b7c55e6aae01d3089e71b12ca05848b355699ba1
lib/hooks/use-promise.ts
lib/hooks/use-promise.ts
import {useEffect, useState} from 'react' import LogRocket from '../logrocket' function errorToString(e): string { const str = e.value || e.message || '' if (str === 'Failed to fetch') return 'Failed to contact server. Please make sure you have an active internet connection.' return str } /** * Pass a fun...
import {useEffect, useState} from 'react' import LogRocket from '../logrocket' function errorToString(e: unknown): string { if (typeof e === 'string') return e if (e instanceof Response) { if (e.status === 401 || e.status === 403) return 'Access denied.' if (e.status === 404) return '404: Object does not...
Handle different error types more specifically
Handle different error types more specifically
TypeScript
mit
conveyal/analysis-ui,conveyal/analysis-ui,conveyal/analysis-ui
--- +++ @@ -2,11 +2,25 @@ import LogRocket from '../logrocket' -function errorToString(e): string { - const str = e.value || e.message || '' - if (str === 'Failed to fetch') - return 'Failed to contact server. Please make sure you have an active internet connection.' - return str +function errorToString(e:...
79a5ac4c349500c19c93fabf0d628ecf5163d732
types/express/index.d.ts
types/express/index.d.ts
import { Request } from 'express'; declare module 'express' { export interface Request { isProxy: boolean; } }
declare module 'express-serve-static-core' { export interface Request { isProxy: boolean; } }
Fix express augmentation so it works after npm install
SERV-23: Fix express augmentation so it works after npm install
TypeScript
apache-2.0
BitGo/BitGoJS,BitGo/BitGoJS,BitGo/BitGoJS,BitGo/BitGoJS
--- +++ @@ -1,6 +1,4 @@ -import { Request } from 'express'; - -declare module 'express' { +declare module 'express-serve-static-core' { export interface Request { isProxy: boolean; }
6fc69b63d5eb688e47d1b9151e987f37a9dc45bf
src/admin/config/cli.ts
src/admin/config/cli.ts
#!/usr/bin/env node 'use strict'; import { configArgs } from './cli-args'; import { Cli } from './cli-tool'; import { Configuration } from '../../configuration'; import { Container } from 'typescript-ioc'; import { Database } from '../../database'; try { const config: Configuration = Container.get(Configuration);...
#!/usr/bin/env node 'use strict'; import { configArgs } from './cli-args'; import { Cli } from './cli-tool'; import { Configuration } from '../../configuration'; import { Container } from 'typescript-ioc'; import { Database } from '../../database'; try { const config: Configuration = Container.get(Configuration);...
FIX error messages on CLI
FIX error messages on CLI
TypeScript
mit
jairelton/tree-gateway,Leanty/tree-gateway,Leanty/tree-gateway,jairelton/tree-gateway,Leanty/tree-gateway,jairelton/tree-gateway
--- +++ @@ -17,8 +17,8 @@ }).catch((err: any) => { if (err && err.response && err.response.body && err.response.body.error) { console.error(`Error: ${err.response.body.error}`); - } else if (err && typeof err !== 'string') { - consol...
31b30efff41a9df4354d574d3cf60763fbf02eba
vscode-extensions/vscode-boot-properties/lib/Main.ts
vscode-extensions/vscode-boot-properties/lib/Main.ts
'use strict'; // The module 'vscode' contains the VS Code extensibility API // Import the module and reference it with the alias vscode in your code below import * as VSCode from 'vscode'; import * as Path from 'path'; import * as FS from 'fs'; import * as Net from 'net'; import * as ChildProcess from 'child_process';...
'use strict'; // The module 'vscode' contains the VS Code extensibility API // Import the module and reference it with the alias vscode in your code below import * as VSCode from 'vscode'; const PROPERTIES_LANGUAGE_ID = "spring-boot-properties"; const YAML_LANGUAGE_ID = "spring-boot-properties-yaml"; /** Called when...
Fix problem building dummy vscode-boot-properties
Fix problem building dummy vscode-boot-properties
TypeScript
epl-1.0
spring-projects/sts4,spring-projects/sts4,spring-projects/sts4,spring-projects/sts4,spring-projects/sts4,spring-projects/sts4
--- +++ @@ -3,14 +3,6 @@ // Import the module and reference it with the alias vscode in your code below import * as VSCode from 'vscode'; -import * as Path from 'path'; -import * as FS from 'fs'; -import * as Net from 'net'; -import * as ChildProcess from 'child_process'; -import {LanguageClient, LanguageClientOp...
d824bef5c720d2c61b890e8ca659ca705c0af8cf
packages/data-mate/src/function-configs/object/equals.ts
packages/data-mate/src/function-configs/object/equals.ts
import { isDeepEqual } from '@terascope/utils'; import { FieldType } from '@terascope/types'; import { FieldValidateConfig, ProcessMode, FunctionDefinitionType, FunctionDefinitionCategory } from '../interfaces'; export interface EqualsArgs { readonly value: unknown; } export const equalsConfig: FieldValidateC...
import { isDeepEqualFP } from '@terascope/utils'; import { FieldType } from '@terascope/types'; import { FieldValidateConfig, ProcessMode, FunctionDefinitionType, FunctionDefinitionCategory } from '../interfaces'; export interface EqualsArgs { readonly value: unknown; } export const equalsConfig: FieldValidat...
Use FP version of isDeepEqual
Use FP version of isDeepEqual
TypeScript
apache-2.0
terascope/teraslice,terascope/teraslice,terascope/teraslice,terascope/teraslice
--- +++ @@ -1,4 +1,4 @@ -import { isDeepEqual } from '@terascope/utils'; +import { isDeepEqualFP } from '@terascope/utils'; import { FieldType } from '@terascope/types'; import { FieldValidateConfig, ProcessMode, FunctionDefinitionType, FunctionDefinitionCategory @@ -15,7 +15,7 @@ category: FunctionDefini...
01b5b1762e7529eb3512749dcaaea55480570ccd
frontend/src/app/lunchplace/lunchplace.component.ts
frontend/src/app/lunchplace/lunchplace.component.ts
import { Component, OnInit, ViewEncapsulation, Input } from '@angular/core'; import { LunchplaceService } from './lunchplace.service'; @Component({ selector: 'lunchplace', encapsulation: ViewEncapsulation.None, templateUrl: './lunchplace.component.html', styleUrls: ['./lunchplace.component.scss'] }) export cla...
import { Component, OnInit, ViewEncapsulation, Input } from '@angular/core'; import { LunchplaceService } from './lunchplace.service'; @Component({ selector: 'lunchplace', encapsulation: ViewEncapsulation.None, templateUrl: './lunchplace.component.html', styleUrls: ['./lunchplace.component.scss'] }) export cla...
Call Lunchplace service on start
Call Lunchplace service on start
TypeScript
mit
Zenika/MARCEL,Zenika/MARCEL,Zenika/MARCEL,Zenika/MARCEL
--- +++ @@ -20,13 +20,18 @@ ngOnInit() { if(!this.is_weekend()){ setInterval(() => { - this.lunchplaceService + this.get_teams_daily(); + }, this.timer); + this.get_teams_daily(); + } + } + + get_teams_daily(){ + this.lunchplaceService .get_teams_daily(this.or...
8901058f863788807af333f0f6af26f80a3129f8
packages/components/components/button/ErrorButton.tsx
packages/components/components/button/ErrorButton.tsx
import React from 'react'; import Button, { Props as ButtonProps } from './Button'; const ErrorButton = ({ children, ...rest }: ButtonProps) => { return ( <Button className="pm-button--error" {...rest}> {children} </Button> ); }; export default ErrorButton;
import React from 'react'; import Button, { Props as ButtonProps } from './Button'; import { classnames } from '../../helpers/component'; const ErrorButton = ({ children, className, ...rest }: ButtonProps) => { return ( <Button className={classnames(['pm-button--error', className])} {...rest}> ...
Fix error button className merging
Fix error button className merging
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -1,9 +1,10 @@ import React from 'react'; import Button, { Props as ButtonProps } from './Button'; +import { classnames } from '../../helpers/component'; -const ErrorButton = ({ children, ...rest }: ButtonProps) => { +const ErrorButton = ({ children, className, ...rest }: ButtonProps) => { return (...
1c0d7e3ff5d10389b5fde8b240965e27f61f16a1
src/lib/handlers/serve-command.handler.ts
src/lib/handlers/serve-command.handler.ts
import * as nodemon from 'nodemon'; import * as path from 'path'; import { Logger } from '../../common/logger/interfaces/logger.interface'; import { GenerateCommandArguments } from '../../common/program/interfaces/command.aguments.interface'; import { CommandHandler } from '../../common/program/interfaces/command.handl...
import * as nodemon from 'nodemon'; import * as path from 'path'; import { Logger } from '../../common/logger/interfaces/logger.interface'; import { GenerateCommandArguments } from '../../common/program/interfaces/command.aguments.interface'; import { CommandHandler } from '../../common/program/interfaces/command.handl...
Use .js for test files
Use .js for test files
TypeScript
mit
ThomRick/nest-cli,ThomRick/nest-cli
--- +++ @@ -33,7 +33,7 @@ } else { nodemon({ 'watch': ['src/**/*.ts'], - 'ignore': ['src/**/*.spec.ts'], + 'ignore': ['src/**/*.spec.js'], 'exec': `ts-node ${entryFile}` ...
b8e4718a1218ff8e2fb38407e282679fa93c85e8
extensions/typescript-language-features/src/utils/fileSchemes.ts
extensions/typescript-language-features/src/utils/fileSchemes.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. *---------------------------------------------------------------...
Disable js/ts features for the private scheme
Disable js/ts features for the private scheme This scheme is used internally by VS Code for features such as search/replace preview
TypeScript
mit
eamodio/vscode,eamodio/vscode,eamodio/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,Microsoft/vscode,Microsoft/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,Krzysztof-Cieslak/vscode,Krzysztof-Cieslak/vscode,microsoft/vscode,Krzysztof-Ciesl...
--- +++ @@ -6,6 +6,8 @@ export const file = 'file'; export const untitled = 'untitled'; export const git = 'git'; +export const privateScheme = 'private'; + /** Live share scheme */ export const vsls = 'vsls'; export const walkThroughSnippet = 'walkThroughSnippet'; @@ -20,5 +22,6 @@ */ export const disabledS...
9ebabbb3cff3e53d5ca2560ff54989f24d1f8336
src/api/types/modules.ts
src/api/types/modules.ts
import {Query} from './rest'; // ------------------------------------------------------------------ // Knowledge base export interface Feature { id: string; source: string; feature_id: string; species: string; type: string; sub_type: string; name: string; full_name: string; descrip...
import {Query} from './rest'; // ------------------------------------------------------------------ // Knowledge base export interface Feature { id: string; source: string; feature_id: string; species: string; type: string; sub_type: string; name: string; full_name: string; descrip...
Change FeatureSearchQuery query type from string[] to string
Change FeatureSearchQuery query type from string[] to string
TypeScript
apache-2.0
genialis/resolwe-js,genialis/resolwe-js
--- +++ @@ -29,7 +29,7 @@ } export interface FeatureSearchQuery extends Query { - query: string | string[]; + query: string; source?: string; species?: string; }
f92eaddc0db9d64d60d9f378d5fb9027c5432b2d
app/src/lib/git/revert.ts
app/src/lib/git/revert.ts
import { git } from './core' import { Repository } from '../../models/repository' export async function revertCommit(repository: Repository, SHA: string) { await git([ 'revert', '-m', '1', SHA ], repository.path, 'revert') }
import { git } from './core' import { Repository } from '../../models/repository' /** * Creates a new commit that reverts the changes of a previous commit * * @param repository - The repository to update * * @param SHA - The SHA of the commit to be reverted * */ export async function revertCommit(repos...
Throw some docs on it
Throw some docs on it
TypeScript
mit
gengjiawen/desktop,desktop/desktop,gengjiawen/desktop,kactus-io/kactus,j-f1/forked-desktop,kactus-io/kactus,artivilla/desktop,artivilla/desktop,j-f1/forked-desktop,say25/desktop,desktop/desktop,hjobrien/desktop,say25/desktop,j-f1/forked-desktop,say25/desktop,gengjiawen/desktop,artivilla/desktop,say25/desktop,desktop/de...
--- +++ @@ -1,6 +1,14 @@ import { git } from './core' import { Repository } from '../../models/repository' +/** + * Creates a new commit that reverts the changes of a previous commit + * + * @param repository - The repository to update + * + * @param SHA - The SHA of the commit to be reverted + * + */ e...
fbeb3fe9659a0c580631436a4ea24231a080ea56
client/Utility/Toolbox.ts
client/Utility/Toolbox.ts
export interface KeyValueSet<T> { [key: string]: T; } export function removeFirst<T>(array: T[], item: T) { const index = array.indexOf(item); if (index > -1) { array.splice(index, 1); } } export function toModifierString(number: number): string { if (number >= 0) { return `+${numb...
export interface KeyValueSet<T> { [key: string]: T; } export function removeFirst<T>(array: T[], item: T) { const index = array.indexOf(item); if (index > -1) { array.splice(index, 1); } } export function toModifierString(number: number): string { if (number >= 0) { return `+${numb...
Remove generic typing on combatantCountsByName utility method
Remove generic typing on combatantCountsByName utility method
TypeScript
mit
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
--- +++ @@ -29,7 +29,7 @@ return probablyUniqueString; } -export function combatantCountsByName<T>(name: string, counts: T, oldName?: string): T { +export function combatantCountsByName(name: string, counts: { [name: string]: number }, oldName?: string): { [name: string]: number } { if (name == oldName) ...
756be9bebf6a4517224eb52298c88599a25b6a20
tests/cases/fourslash/completionListNewIdentifierVariableDeclaration.ts
tests/cases/fourslash/completionListNewIdentifierVariableDeclaration.ts
/// <reference path='fourslash.ts' /> ////var x : (/*1*/) => void; ////var y : (s:string, list/*2*/ test.markers().forEach((m) => { goTo.position(m.position, m.fileName); verify.not.completionListIsEmpty(); verify.completionListAllowsNewIdentifier(); });
/// <reference path='fourslash.ts' /> ////var x : (s/*1*/ ////var y : (s:string, list/*2*/ test.markers().forEach((m) => { goTo.position(m.position, m.fileName); verify.not.completionListIsEmpty(); verify.completionListAllowsNewIdentifier(); });
Update the test to actually test what we intended
Update the test to actually test what we intended
TypeScript
apache-2.0
fabioparra/TypeScript,mihailik/TypeScript,germ13/TypeScript,abbasmhd/TypeScript,jwbay/TypeScript,chocolatechipui/TypeScript,synaptek/TypeScript,JohnZ622/TypeScript,keir-rex/TypeScript,fearthecowboy/TypeScript,abbasmhd/TypeScript,bpowers/TypeScript,ropik/TypeScript,vilic/TypeScript,sassson/TypeScript,nycdotnet/TypeScrip...
--- +++ @@ -1,6 +1,6 @@ /// <reference path='fourslash.ts' /> -////var x : (/*1*/) => void; +////var x : (s/*1*/ ////var y : (s:string, list/*2*/
3dc43cb7b3bed2d93265bfa4edcea389c238bd15
extensions/typescript-language-features/src/utils/fileSchemes.ts
extensions/typescript-language-features/src/utils/fileSchemes.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. *---------------------------------------------------------------...
Exclude `pr` schemed files from js/ts language features
Exclude `pr` schemed files from js/ts language features Fixes #105842
TypeScript
mit
Krzysztof-Cieslak/vscode,Microsoft/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,microsoft/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,Krzysztof-Cieslak/vscode,microsoft/vscode,eamodio/vscode,Krzysztof-Cieslak/vscode,Krzysztof-Cieslak/vscode,microsoft/vscode,microsoft/vscode,microsoft/vscode,micr...
--- +++ @@ -6,8 +6,8 @@ export const file = 'file'; export const untitled = 'untitled'; export const git = 'git'; +export const pr = 'pr'; export const privateScheme = 'private'; - /** Live share scheme */ export const vsls = 'vsls'; export const walkThroughSnippet = 'walkThroughSnippet'; @@ -24,4 +24,5 @@ g...
6a56e4175ee92dbc7e895b6fe8a52364a488b5f9
src/navigation/workspace/BaseList.tsx
src/navigation/workspace/BaseList.tsx
import * as classNames from 'classnames'; import * as React from 'react'; import * as ListGroup from 'react-bootstrap/lib/ListGroup'; import * as ListGroupItem from 'react-bootstrap/lib/ListGroupItem'; import { Scrollbars } from 'react-custom-scrollbars'; export const BaseList = ({ items, selectedItem, selectIte...
import * as classNames from 'classnames'; import * as React from 'react'; import * as ListGroup from 'react-bootstrap/lib/ListGroup'; import * as ListGroupItem from 'react-bootstrap/lib/ListGroupItem'; import { Scrollbars } from 'react-custom-scrollbars'; export const BaseList = ({ items, selectedItem, selectIte...
Fix workspace selector: use scrollTop instead of scroll to fix IE compatibility.
Fix workspace selector: use scrollTop instead of scroll to fix IE compatibility.
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -20,7 +20,7 @@ const query = `[data-uuid="${itemId}"]`; const itemElement = view.querySelector(query); if (itemElement) { - view.scroll(0, itemElement.offsetTop); + view.scrollTop = itemElement.offsetTop; } } }, [scrollBarRef, itemId]);
5e6758be6ceef4156ca6dab9cdacc6f7e7d74a4c
src/app/core/models/run-record.model.ts
src/app/core/models/run-record.model.ts
import { RunDuration } from '../run-duration'; import { MongooseRunStatus } from '../mongoose-run-status'; export class MongooseRunRecord { constructor(status: MongooseRunStatus, startTime: String, nodes: String[], duration: RunDuration, comment: String) { } }
import { RunDuration } from '../run-duration'; import { MongooseRunStatus } from '../mongoose-run-status'; export class MongooseRunRecord { public status: MongooseRunStatus; public startTime: String; public nodes: String[]; public duration: RunDuration; public comment: String; constructor(st...
Add implicit declaration for Mongoose Run Record class' fields.
Add implicit declaration for Mongoose Run Record class' fields.
TypeScript
mit
emc-mongoose/console,emc-mongoose/console,emc-mongoose/console
--- +++ @@ -3,6 +3,18 @@ export class MongooseRunRecord { - constructor(status: MongooseRunStatus, startTime: String, nodes: String[], duration: RunDuration, comment: String) { } + public status: MongooseRunStatus; + public startTime: String; + public nodes: String[]; + public duration: RunDura...
32bdc9cd2699191e1c835d93c3d07d71500f537a
pages/_document.tsx
pages/_document.tsx
import * as React from 'react'; import Document, { Head, Main, NextScript, NextDocumentContext } from 'next/document'; import * as http from 'http'; type MyDocumentProps = { locale: string; localeDataScript: string; }; export default class MyDocument extends Document<MyDocumentProps> { static async getIni...
import * as React from 'react'; import Document, { Head, Main, NextScript, NextDocumentContext } from 'next/document'; import * as http from 'http'; type MyDocumentProps = { locale: string; localeDataScript: string; }; export default class MyDocument extends Document<MyDocumentProps> { static async getIni...
Add `lang` attribute for `html` tag
Add `lang` attribute for `html` tag
TypeScript
mit
krddevdays/krddevdays.ru,krddevdays/krddevdays.ru
--- +++ @@ -21,8 +21,9 @@ render() { return ( - <html> + <html lang={this.props.locale}> <Head> + <meta charSet="utf-8" /> <title>Krasnodar Dev Days</title> <meta name="viewport" content="initial-scale=...
9d9216d7269f09b445c117f53d2a9b4ebfc3edc8
app/javascript/retrospring/initializers/bootstrap.ts
app/javascript/retrospring/initializers/bootstrap.ts
import 'bootstrap'; import $ from 'jquery'; /** * This module sets up Bootstraps JavaScript * * Inside of the exported function below, initialize Bootstrap * modules that require explicit initilization, like tooltips */ export default function (): void { $(document).ready(() => { $('[data-toggle="tooltip"]'...
import 'bootstrap'; import $ from 'jquery'; /** * This module sets up Bootstrap's JavaScript * * Inside of the exported function below, initialize Bootstrap * modules that require explicit initilization, like tooltips */ export default function (): void { $(document).ready(() => { $('[data-toggle="tooltip"]...
Apply review suggestion by @raccube
Apply review suggestion by @raccube Co-authored-by: Dominik M. Kwiatek <a279f78642aaf231facf94ac593d2ad2fd791699@users.noreply.github.com>
TypeScript
agpl-3.0
Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring
--- +++ @@ -2,7 +2,7 @@ import $ from 'jquery'; /** - * This module sets up Bootstraps JavaScript + * This module sets up Bootstrap's JavaScript * * Inside of the exported function below, initialize Bootstrap * modules that require explicit initilization, like tooltips
8c1578a22f532e7b15e7beeddc2d00fd36d5a8e7
src/devices/devices.tsx
src/devices/devices.tsx
import * as React from "react"; import { connect } from "react-redux"; import { WeedDetector } from "../images"; import { HardwareSettings } from "./components/hardware_settings"; import { FarmbotOsSettings } from "./components/farmbot_os_settings"; import { Farmware } from "../farmware/farmware_panel"; import { Page, ...
import * as React from "react"; import { connect } from "react-redux"; import { WeedDetector } from "../images"; import { HardwareSettings } from "./components/hardware_settings"; import { FarmbotOsSettings } from "./components/farmbot_os_settings"; import { Farmware } from "../farmware/farmware_panel"; import { Page, ...
Remove device panel from hardware page
Remove device panel from hardware page
TypeScript
mit
MrChristofferson/farmbot-web-frontend,RickCarlino/farmbot-web-frontend,FarmBot/farmbot-web-frontend,FarmBot/farmbot-web-frontend,RickCarlino/farmbot-web-frontend,MrChristofferson/farmbot-web-frontend
--- +++ @@ -25,10 +25,6 @@ <HardwareSettings dispatch={this.props.dispatch} bot={this.props.bot} /> - <WeedDetector - dispatch={this.props.dispatch} - bot={this.props.bot} - images={this.props.images} /> </Col> </Page>; ...
988a1b39b961599fea9ee6be80e4986212d275ff
src/app/login/logout.component.ts
src/app/login/logout.component.ts
import { Component, OnInit } from '@angular/core'; import { RoutingService } from './../shared/routing/routing.service'; @Component({ selector: 'ts-logout', template: '' }) export class LogoutComponent implements OnInit { constructor( private routingService: RoutingService ) { } ngOnInit...
import { Component, OnInit } from '@angular/core'; import { RoutingService } from './../shared/routing/routing.service'; import { SessionService } from './../shared/session/session.service'; @Component({ selector: 'ts-logout', template: '' }) export class LogoutComponent implements OnInit { constructor( ...
Clean session data when logout
Clean session data when logout
TypeScript
apache-2.0
johncol/trini-salud-web,johncol/trini-salud-web,johncol/trini-salud-web
--- +++ @@ -1,6 +1,7 @@ import { Component, OnInit } from '@angular/core'; import { RoutingService } from './../shared/routing/routing.service'; +import { SessionService } from './../shared/session/session.service'; @Component({ selector: 'ts-logout', @@ -9,11 +10,12 @@ export class LogoutComponent imple...
57e42aa49e01089f7d48dece81694aaa5c8dcfef
src/Char.ts
src/Char.ts
import * as e from "./Enums"; import * as _ from "lodash"; import {memoize} from "./Decorators"; import {Attributes} from "./Interfaces"; export const attributesFlyweight = _.memoize( (attributes: Attributes): Attributes => _.clone(attributes), (attributes: Dictionary<any>) => { const ordered: Dictiona...
import * as e from "./Enums"; import * as _ from "lodash"; import {memoize} from "./Decorators"; import {Attributes} from "./Interfaces"; export const attributesFlyweight = _.memoize( (attributes: Attributes): Attributes => Object.assign({}, attributes), (attributes: Dictionary<any>) => { const ordered...
Use Object.assign instead of _.clone.
Use Object.assign instead of _.clone.
TypeScript
mit
shockone/black-screen,j-allard/black-screen,drew-gross/black-screen,black-screen/black-screen,railsware/upterm,vshatskyi/black-screen,drew-gross/black-screen,drew-gross/black-screen,black-screen/black-screen,vshatskyi/black-screen,vshatskyi/black-screen,shockone/black-screen,railsware/upterm,j-allard/black-screen,j-all...
--- +++ @@ -4,7 +4,7 @@ import {Attributes} from "./Interfaces"; export const attributesFlyweight = _.memoize( - (attributes: Attributes): Attributes => _.clone(attributes), + (attributes: Attributes): Attributes => Object.assign({}, attributes), (attributes: Dictionary<any>) => { const ordere...
db10edc0476366ae305993644e4a1f7ee0f0462c
test/method-decorators/logger.spec.ts
test/method-decorators/logger.spec.ts
import { LoggerMethod } from './../../src/'; describe("HelloComponent", () => { class X { @LoggerMethod() add(a, b) { return a + b; } } it("should log method calls", () => { let x = new X(); x.add(2, 3); x.add(1, 5); expect(true).toBe...
import { LoggerMethod } from './../../src/'; describe('LoggerMethod decorator', () => { beforeEach(() => { spyOn(console, 'log'); }); it('should not output log trace (no annotation, empty, default behaviour)', () => { class TestClassMethod { @LoggerMethod() add(a, b) {...
Update test cases for method logger decorator
Update test cases for method logger decorator
TypeScript
mit
semagarcia/typescript-decorators,semagarcia/typescript-decorators
--- +++ @@ -1,20 +1,89 @@ import { LoggerMethod } from './../../src/'; -describe("HelloComponent", () => { +describe('LoggerMethod decorator', () => { - class X { + beforeEach(() => { + spyOn(console, 'log'); + }); + + it('should not output log trace (no annotation, empty, default behaviour)',...
519b351187ce651dbbcb2f6e723e15714c24e0b9
app/src/lib/git/branch.ts
app/src/lib/git/branch.ts
import { git, envForAuthentication } from './core' import { Repository } from '../../models/repository' import { Branch, BranchType } from '../../models/branch' import { Account } from '../../models/account' /** Create a new branch from the given start point. */ export async function createBranch(repository: Repositor...
import { git, envForAuthentication } from './core' import { Repository } from '../../models/repository' import { Branch, BranchType } from '../../models/branch' import { Account } from '../../models/account' /** Create a new branch from the given start point. */ export async function createBranch(repository: Repositor...
Return a sentinel value out of createBranch
Return a sentinel value out of createBranch
TypeScript
mit
j-f1/forked-desktop,say25/desktop,shiftkey/desktop,desktop/desktop,say25/desktop,hjobrien/desktop,kactus-io/kactus,gengjiawen/desktop,artivilla/desktop,gengjiawen/desktop,desktop/desktop,BugTesterTest/desktops,shiftkey/desktop,BugTesterTest/desktops,hjobrien/desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,j...
--- +++ @@ -4,8 +4,9 @@ import { Account } from '../../models/account' /** Create a new branch from the given start point. */ -export async function createBranch(repository: Repository, name: string, startPoint: string): Promise<void> { +export async function createBranch(repository: Repository, name: string, sta...
7e52ed5ba690ffedb05cb6af8b9b6ec5dc35fc68
src/index.ts
src/index.ts
import * as through from "through2"; import * as applySourceMap from "vinyl-sourcemaps-apply"; import * as iife from "./iife"; module.exports = function gulpIife(userOptions: any) { return through.obj(function (file, encoding, callback) { const contents = String(file.contents); const sourceMapOptions = file....
import * as through from "through2"; import * as applySourceMap from "vinyl-sourcemaps-apply"; import * as iife from "./iife"; module.exports = function gulpIife(userOptions: any) { return through.obj(function (file, encoding, callback) { const contents = String(file.contents); const sourceMapOptions = file....
Migrate new Buffer() to Buffer.from()
Migrate new Buffer() to Buffer.from()
TypeScript
mit
mariusschulz/gulp-iife,mariusschulz/gulp-iife
--- +++ @@ -10,7 +10,7 @@ : null; const result = iife.surround(contents, userOptions, sourceMapOptions); - file.contents = new Buffer(result.code); + file.contents = Buffer.from(result.code); if (file.sourceMap) { applySourceMap(file, result.sourceMap);
2f58e9e67078f5e424769068d9c4c16772eb715c
json.ts
json.ts
/** * Wraps parsing of JSON, so that an error is logged, but no exception is thrown */ function safeParseJson (value?: string|null) : {[k: string]: any} { if (!value) { return {}; } try { const content = value.trim(); return (content !== "") ? JSON.parse(conten...
/** * Wraps parsing of JSON, so that an error is logged, but no exception is thrown */ function safeParseJson (value?: string|boolean|null) : {[k: string]: any}|null { if (!value) { return null; } try { const content = value.trim(); return (content !== "") ? JS...
Change default value of `safeParseJson()`
Change default value of `safeParseJson()`
TypeScript
bsd-3-clause
Becklyn/mojave,Becklyn/mojave,Becklyn/mojave
--- +++ @@ -1,11 +1,11 @@ /** * Wraps parsing of JSON, so that an error is logged, but no exception is thrown */ -function safeParseJson (value?: string|null) : {[k: string]: any} +function safeParseJson (value?: string|boolean|null) : {[k: string]: any}|null { if (!value) { - return {}; + ...
fd3017afa2f053340546d39d38cfc723e31fca02
app/javascript/retrospring/utilities/notifications.ts
app/javascript/retrospring/utilities/notifications.ts
require('toastify-js/src/toastify.css'); import Toastify from 'toastify-js'; export function showErrorNotification(text: string): void { showNotification(text, false); } export function showNotification(text: string, status = true): void { Toastify({ text: text, style: { color: status ? 'rgb(var(--s...
import Toastify from 'toastify-js'; export function showErrorNotification(text: string): void { showNotification(text, false); } export function showNotification(text: string, status = true): void { Toastify({ text: text, style: { color: status ? 'rgb(var(--success-text))' : 'rgb(var(--danger-text)...
Include toastify styles from SCSS
Include toastify styles from SCSS
TypeScript
agpl-3.0
Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring
--- +++ @@ -1,4 +1,3 @@ -require('toastify-js/src/toastify.css'); import Toastify from 'toastify-js'; export function showErrorNotification(text: string): void {
950f05c367585a8721e284d6963b449d2c932d41
app/config.ts
app/config.ts
const path = electronRequire('path'); // appveyor/travisci sets this var const CI_MOD = process.env['CI'] ? 3 : 1; const omnisharpPath = path.resolve((IS_LINUX ? `${process.env.HOME}/.ream-editor/` : `${process.env.LOCALAPPDATA}\\ReamEditor\\`) + 'omnisharp'); // todo some of this is mirrored in int-helpers.js c...
const path = electronRequire('path'); // appveyor/travisci sets this var const CI_MOD = process.env['CI'] ? 3 : 1; const omnisharpPath = path.resolve((IS_LINUX ? `${process.env.HOME}/.ream-editor/` : `${process.env.LOCALAPPDATA}\\ReamEditor\\`) + 'omnisharp'); // todo some of this is mirrored in int-helpers.js c...
Fix path to sqlite db file
Fix path to sqlite db file
TypeScript
mit
stofte/ream-editor,stofte/ream-editor,stofte/linq-editor,stofte/ream-editor,stofte/ream-editor
--- +++ @@ -8,7 +8,7 @@ // todo some of this is mirrored in int-helpers.js const unitTestData = { backendTimeout: 10 * 1000 * CI_MOD, - sqliteWorlddbConnectionString: `Data Source=${path.normalize(path.join(__dirname, '../query/sql/world.sqlite'))}` + sqliteWorlddbConnectionString: `Data Source=${path.no...
127247ca34566ac67afec71b4bbf4b937291f721
src/background/usecases/LinkUseCase.ts
src/background/usecases/LinkUseCase.ts
import TabPresenter from '../presenters/TabPresenter'; export default class LinkUseCase { private tabPresenter: TabPresenter; constructor() { this.tabPresenter = new TabPresenter(); } openToTab(url: string, tabId: number): Promise<any> { return this.tabPresenter.open(url, tabId); } openNewTab(ur...
import TabPresenter from '../presenters/TabPresenter'; export default class LinkUseCase { private tabPresenter: TabPresenter; constructor() { this.tabPresenter = new TabPresenter(); } openToTab(url: string, tabId: number): Promise<any> { return this.tabPresenter.open(url, tabId); } openNewTab(ur...
Fix openerTabId warning on Android
Fix openerTabId warning on Android
TypeScript
mit
ueokande/vim-vixen,ueokande/vim-vixen,ueokande/vim-vixen
--- +++ @@ -12,8 +12,9 @@ } openNewTab(url: string, openerId: number, background: boolean): Promise<any> { - return this.tabPresenter.create(url, { - openerTabId: openerId, active: !background - }); + // openerTabId not supported on Android + let properties = typeof browser.tabs.Tab === "obje...
c5d9e968f62797f07bc64482df92f28fb4d4a0d1
src/TypeScriptClient/Bit.TSClient.Core/Contracts/iSecurityService.ts
src/TypeScriptClient/Bit.TSClient.Core/Contracts/iSecurityService.ts
module Bit.Contracts { export interface Token { access_token: string; expires_in: number; token_type: string; login_date: Date; } export interface ISecurityService { isLoggedIn(): boolean; login(state?: any): void; logout(): void; loginWithC...
module Bit.Contracts { export interface Token { access_token: string; expires_in: number; token_type: string; login_date: Date; } export interface ISecurityService { isLoggedIn(): boolean; login(state?: any): void; logout(): void; loginWithC...
Make security service contract's loginWithCredentionals of ts client sync with its default implementation
Make security service contract's loginWithCredentionals of ts client sync with its default implementation
TypeScript
mit
bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework
--- +++ @@ -11,7 +11,7 @@ isLoggedIn(): boolean; login(state?: any): void; logout(): void; - loginWithCredentials(username: string, password: string, client_id: string, client_secret: string, scopes: string[], saveToken: boolean): Promise<Token>; + loginWithCredentials(usernam...
59edd142a288fc6425d5553627fdc574a38999f7
demo/src/app/components/inputmask/inputmaskdemo.module.ts
demo/src/app/components/inputmask/inputmaskdemo.module.ts
import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { NgModule } from "@angular/core"; import { HighlightJsModule } from 'ngx-highlight-js'; import { InputModule } from 'truly-ui/input'; import { DirectiveModule } from 'truly-ui/core/directives/index'; import { Toolti...
import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { NgModule } from "@angular/core"; import { HighlightJsModule } from 'ngx-highlight-js'; import { InputModule } from 'truly-ui/input'; import { TooltipModule } from 'truly-ui/tooltip'; import { InputMaskDemo } from ...
Remove import not used anymore.
docs(inputmaskdemo): Remove import not used anymore.
TypeScript
mit
TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui
--- +++ @@ -5,7 +5,6 @@ import { HighlightJsModule } from 'ngx-highlight-js'; import { InputModule } from 'truly-ui/input'; -import { DirectiveModule } from 'truly-ui/core/directives/index'; import { TooltipModule } from 'truly-ui/tooltip'; import { InputMaskDemo } from "./inputmaskdemo.component"; @@ -17,7 +...
77a0a6b40bd17a5633f108573e9d81e040ef3f85
components/query/query.module.ts
components/query/query.module.ts
import {BrowserModule} from '@angular/platform-browser'; import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, NgModule, } from '@angular/core'; import {CommonModule} from '@angular/common'; import {FormsModule} from '@angular/forms'; import {HsPanelHelpersModule} from '../layout/panels/panel-helpers.module'; import...
import {BrowserModule} from '@angular/platform-browser'; import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, NgModule, } from '@angular/core'; import {CommonModule} from '@angular/common'; import {FormsModule} from '@angular/forms'; import {HsPanelHelpersModule} from '../layout/panels/panel-helpers.module'; import...
Add HsQueryFeaturePopupComponent to entry components
Add HsQueryFeaturePopupComponent to entry components
TypeScript
mit
hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng
--- +++ @@ -28,6 +28,6 @@ imports: [CommonModule, BrowserModule, HsPanelHelpersModule, FormsModule], exports: [HsQueryComponent], providers: [HsQueryBaseService, HsQueryVectorService, HsQueryWmsService], - entryComponents: [HsQueryComponent], + entryComponents: [HsQueryComponent, HsQueryFeaturePopupCompone...
90e3a4a3012945d9a42577a33c37d6dce357e4f3
app/src/shared-process/users-store.ts
app/src/shared-process/users-store.ts
import { IDataStore, ISecureStore } from './stores' import { getKeyForUser } from './auth' import User from '../models/user' export default class UsersStore { private dataStore: IDataStore private secureStore: ISecureStore private users: User[] public constructor(dataStore: IDataStore, secureStore: ISecureSt...
import { IDataStore, ISecureStore } from './stores' import { getKeyForUser } from './auth' import User from '../models/user' export default class UsersStore { private dataStore: IDataStore private secureStore: ISecureStore private users: User[] public constructor(dataStore: IDataStore, secureStore: ISecureSt...
Copy the array before returning it
Copy the array before returning it
TypeScript
mit
hjobrien/desktop,gengjiawen/desktop,artivilla/desktop,BugTesterTest/desktops,hjobrien/desktop,desktop/desktop,hjobrien/desktop,desktop/desktop,desktop/desktop,j-f1/forked-desktop,shiftkey/desktop,artivilla/desktop,BugTesterTest/desktops,gengjiawen/desktop,say25/desktop,shiftkey/desktop,artivilla/desktop,say25/desktop,k...
--- +++ @@ -15,8 +15,7 @@ } public getUsers(): ReadonlyArray<User> { - // TODO: Should this be a copy/snapshot? - return this.users + return this.users.slice() } public addUser(user: User) {
dfb4ec875c7cf427b96b82dd255deb60c805772b
app/app.component.ts
app/app.component.ts
import { Component } from '@angular/core'; export class Hero { id: number; name: string; } @Component({ selector: 'my-app', template: ` <h1>{{title}}</h1> <h2>{{hero.name}} details!</h2> <div><label>id: </label>{{hero.id}}</div> <div><label>name: </label>{{hero.name}}</div> ` }) export cl...
import { Component } from '@angular/core'; export class Hero { id: number; name: string; } @Component({ selector: 'my-app', template: ` <h1>{{title}}</h1> <h2>{{hero.name}} details!</h2> <div><label>id: </label>{{hero.id}}</div> <div> <label>name: </label> <input value="{{hero.name...
Make Hero editable PART I: html part
Make Hero editable PART I: html part
TypeScript
mit
radovanthefoley/angular2learning,radovanthefoley/angular2learning,radovanthefoley/angular2learning
--- +++ @@ -11,7 +11,10 @@ <h1>{{title}}</h1> <h2>{{hero.name}} details!</h2> <div><label>id: </label>{{hero.id}}</div> - <div><label>name: </label>{{hero.name}}</div> + <div> + <label>name: </label> + <input value="{{hero.name}}" placeholder="name"> + </div> ` })
2cce87988fe9db00771c05ca2e20bb53ff7917f7
src/app/plugins/platform/Docker/dockerfile/constants.ts
src/app/plugins/platform/Docker/dockerfile/constants.ts
/** * Currently-supported Composer version. */ export const composerTag = '1.9'; /** * The name of the Composer image to use for projects. */ export const composerImage = 'forumone/composer'; /** * The full `<image>:<tag>` string for this image; useful for `docker run` or the `image:` * field in Docker Compose....
/** * Currently-supported Composer version. */ export const composerTag = '2'; /** * The name of the Composer image to use for projects. */ export const composerImage = 'composer'; /** * The full `<image>:<tag>` string for this image; useful for `docker run` or the `image:` * field in Docker Compose. */ export...
Update Composer image references to use composer:2.
Update Composer image references to use composer:2. Replace usage of the `forumone/composer` image with the defacto `composer:2` image since the prestissimo plugin is no longer needed and the `forumone/composer` image may now be deprecated.
TypeScript
mit
forumone/generator-web-starter,forumone/generator-web-starter,forumone/generator-web-starter,forumone/generator-web-starter,forumone/generator-web-starter
--- +++ @@ -1,12 +1,12 @@ /** * Currently-supported Composer version. */ -export const composerTag = '1.9'; +export const composerTag = '2'; /** * The name of the Composer image to use for projects. */ -export const composerImage = 'forumone/composer'; +export const composerImage = 'composer'; /** * ...
5ffadef6f7d7891dcea972cb917c9ab5c3669dfd
src/lib/Components/ArtworkFilterOptions/PriceRangeOptions.tsx
src/lib/Components/ArtworkFilterOptions/PriceRangeOptions.tsx
import { OrderedPriceRangeFilters, PriceRangeOption } from "lib/Scenes/Collection/Helpers/FilterArtworksHelpers" import { ArtworkFilterContext, useSelectedOptionsDisplay } from "lib/utils/ArtworkFiltersStore" import React, { useContext } from "react" import { NavigatorIOS } from "react-native" import { SingleSelectOpti...
import { AggregateOption, FilterParamName, FilterType } from "lib/Scenes/Collection/Helpers/FilterArtworksHelpers" import { ArtworkFilterContext, useSelectedOptionsDisplay } from "lib/utils/ArtworkFiltersStore" import React, { useContext } from "react" import { NavigatorIOS } from "react-native" import { aggregationFro...
Convert price ranges to aggregate filters
Convert price ranges to aggregate filters
TypeScript
mit
artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen
--- +++ @@ -1,7 +1,8 @@ -import { OrderedPriceRangeFilters, PriceRangeOption } from "lib/Scenes/Collection/Helpers/FilterArtworksHelpers" +import { AggregateOption, FilterParamName, FilterType } from "lib/Scenes/Collection/Helpers/FilterArtworksHelpers" import { ArtworkFilterContext, useSelectedOptionsDisplay } from...
62c51fc9d142ece421eb8cf9ab85e5e6cd13e3bb
step-release-vis/src/app/services/environment_test.ts
step-release-vis/src/app/services/environment_test.ts
import { TestBed } from '@angular/core/testing'; import { EnvironmentService } from './environment'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import {CandidateInfo} from '../models/Data'; describe('EnvironmentService', () => { let service: EnvironmentService; beforeEach(() => { ...
import { TestBed } from '@angular/core/testing'; import { EnvironmentService } from './environment'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import {CandidateInfo} from '../models/Data'; describe('EnvironmentService', () => { let service: EnvironmentService; beforeEach(() => { ...
Modify test for fractional percentages.
Modify test for fractional percentages.
TypeScript
apache-2.0
googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020
--- +++ @@ -21,9 +21,9 @@ // @ts-ignore const resultMap: Map<string, number> = service.getPercentages(input); - expect(resultMap.get('1')).toEqual(34); - expect(resultMap.get('2')).toEqual(33); - expect(resultMap.get('3')).toEqual(33); + expect(resultMap.get('1')).toEqual(33.3); + expect(re...
9d427783f001dd33199b5310fe40eece14af89b1
app/src/ui/about/about.tsx
app/src/ui/about/about.tsx
import * as React from 'react' import { Row } from '../lib/row' import { Button } from '../lib/button' import { ButtonGroup } from '../lib/button-group' import { Dialog, DialogContent, DialogFooter } from '../dialog' import { Octicon, OcticonSymbol } from '../octicons' interface IAboutProps { readonly onDismissed: ...
import * as React from 'react' import { Row } from '../lib/row' import { Button } from '../lib/button' import { ButtonGroup } from '../lib/button-group' import { Dialog, DialogContent, DialogFooter } from '../dialog' import { Octicon, OcticonSymbol } from '../octicons' import { LinkButton} from '../lib/link-button' i...
Add a link to the release notes
Add a link to the release notes
TypeScript
mit
say25/desktop,kactus-io/kactus,kactus-io/kactus,hjobrien/desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,BugTesterTest/desktops,desktop/desktop,hjobrien/desktop,kactus-io/kactus,BugTesterTest/desktops,j-f1/forked-desktop,artivilla/desktop,BugTesterTest/desktops,gengjiawen/desktop,j-f1/forked-desktop,gengjiawe...
--- +++ @@ -5,16 +5,39 @@ import { ButtonGroup } from '../lib/button-group' import { Dialog, DialogContent, DialogFooter } from '../dialog' import { Octicon, OcticonSymbol } from '../octicons' +import { LinkButton} from '../lib/link-button' interface IAboutProps { readonly onDismissed: () => void readonly...
3b778e4b68c67422e42b407f613a0ce217666930
typescript-marionette-v2/src/views/SummarizationView.ts
typescript-marionette-v2/src/views/SummarizationView.ts
import SummarizationViewModel from "./SummarizationViewModel" import TypedItemView from "./typedViews/TypedItemView" import TypedItemViewOptions from "./typedViews/TypedItemViewOptions" interface SummarizationViewOptions extends TypedItemViewOptions<SummarizationViewModel> { } // TODO: Move the view models to a separ...
import SummarizationViewModel from "../viewModels/SummarizationViewModel" import TypedItemView from "./typedViews/TypedItemView" import TypedItemViewOptions from "./typedViews/TypedItemViewOptions" interface SummarizationViewOptions extends TypedItemViewOptions<SummarizationViewModel> { } export default class Summari...
Fix URL and remove TODO
Fix URL and remove TODO
TypeScript
unlicense
janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations
--- +++ @@ -1,11 +1,10 @@ -import SummarizationViewModel from "./SummarizationViewModel" +import SummarizationViewModel from "../viewModels/SummarizationViewModel" import TypedItemView from "./typedViews/TypedItemView" import TypedItemViewOptions from "./typedViews/TypedItemViewOptions" interface SummarizationVi...
244b5018d064468320f3edb60bca8baa51e2cb23
src/app/app.component.ts
src/app/app.component.ts
import { Component } from '@angular/core'; import { OAuthService, JwksValidationHandler } from 'angular-oauth2-oidc'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'app'; constructor(private oauthService: OAu...
import { Component } from '@angular/core'; import { OAuthService, JwksValidationHandler } from 'angular-oauth2-oidc'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'app'; constructor(private oauthService: OAu...
Update README and fix issuer
Update README and fix issuer
TypeScript
apache-2.0
oktadeveloper/okta-angular-openid-connect-example,oktadeveloper/okta-angular-openid-connect-example,oktadeveloper/okta-angular-openid-connect-example
--- +++ @@ -13,7 +13,7 @@ this.oauthService.redirectUri = window.location.origin; this.oauthService.clientId = 'MjlYvTtFW26gOoOAHKOz'; this.oauthService.scope = 'openid profile email'; - this.oauthService.issuer = 'https://dev-158606.oktapreview.com'; + this.oauthService.issuer = 'https://dev-158...
6df230e73d5690f02923d5a76d53fc1f5268b83a
src/server_manager/infrastructure/crypto.ts
src/server_manager/infrastructure/crypto.ts
// Copyright 2018 The Outline Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
// Copyright 2018 The Outline Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
Change key size from 1538 bits to 2048 bits
Change key size from 1538 bits to 2048 bits
TypeScript
apache-2.0
Jigsaw-Code/outline-server,Jigsaw-Code/outline-server,Jigsaw-Code/outline-server,Jigsaw-Code/outline-server
--- +++ @@ -22,7 +22,7 @@ // Generates an RSA keypair using forge export function generateKeyPair(): KeyPair { - const pair = forge.pki.rsa.generateKeyPair({bits: 1538}); + const pair = forge.pki.rsa.generateKeyPair({bits: 2048}); // trim() the string because forge adds a trailing space to // public keys ...
c5c177aafdd078561359edabc1084d2af5d0156d
client/Components/Tabs.tsx
client/Components/Tabs.tsx
import * as React from "react"; interface TabsProps { options: string[]; selected?: string; onChoose: (option: string) => void; } interface TabsState { } export class Tabs extends React.Component<TabsProps, TabsState> { constructor(props) { super(props); } public render() { co...
import * as React from "react"; interface TabsProps { options: string[]; selected?: string; onChoose: (option: string) => void; } interface TabsState { } export class Tabs extends React.Component<TabsProps, TabsState> { constructor(props) { super(props); } public render() { co...
Add key to tab spans
Add key to tab spans
TypeScript
mit
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
--- +++ @@ -14,7 +14,7 @@ } public render() { const spanElements = this.props.options.map( - option => <span className={this.props.selected == option ? "s-selected" : ""} onClick={() => this.props.onChoose(option)}>{option}</span> + (option, i) => <span key={i} className={this...
ba9f0d3c37a969cfcdca32f0b83d9601765ef2ce
index.ts
index.ts
export { default as Model, Ref } from "./lib/Model"; export { default as def } from "./lib/decorators/def"; export { default as model } from "./lib/decorators/model"; export { default as nested } from "./lib/decorators/nested"; export { default as property, default as prop, } from "./lib/decorators/prop"; export { ...
export { default as Model, Ref } from "./lib/Model"; export { default as def } from "./lib/decorators/def"; export { default as method } from "./lib/decorators/method"; export { default as model } from "./lib/decorators/model"; export { default as nested } from "./lib/decorators/nested"; export { default as property,...
Add @method decorator: fix export
Add @method decorator: fix export
TypeScript
mit
megahertz/mongoose-model
--- +++ @@ -1,5 +1,6 @@ export { default as Model, Ref } from "./lib/Model"; export { default as def } from "./lib/decorators/def"; +export { default as method } from "./lib/decorators/method"; export { default as model } from "./lib/decorators/model"; export { default as nested } from "./lib/decorators/nested"; ...
e43bbe78ec9403ad55eec171e17c156c626d10f9
applications/play/redux/index.ts
applications/play/redux/index.ts
import * as actions from "./actions.js"; export { actions }; export { default as createStore } from "./createStore";
import * as actions from "./actions"; export { actions }; export { default as createStore } from "./createStore";
Fix import in redux file
Fix import in redux file
TypeScript
bsd-3-clause
nteract/nteract,nteract/composition,nteract/composition,nteract/nteract,nteract/composition,nteract/nteract,nteract/nteract,nteract/nteract
--- +++ @@ -1,4 +1,4 @@ -import * as actions from "./actions.js"; +import * as actions from "./actions"; export { actions }; export { default as createStore } from "./createStore";
ec893ae07554e37ba4e04773b346b5b80e71e152
server/lib/files-cache/abstract-video-static-file-cache.ts
server/lib/files-cache/abstract-video-static-file-cache.ts
import { remove } from 'fs-extra' import { logger } from '../../helpers/logger' import * as memoizee from 'memoizee' type GetFilePathResult = { isOwned: boolean, path: string } | undefined export abstract class AbstractVideoStaticFileCache <T> { getFilePath: (params: T) => Promise<GetFilePathResult> abstract ge...
import { remove } from 'fs-extra' import { logger } from '../../helpers/logger' import * as memoizee from 'memoizee' type GetFilePathResult = { isOwned: boolean, path: string } | undefined export abstract class AbstractVideoStaticFileCache <T> { getFilePath: (params: T) => Promise<GetFilePathResult> abstract ge...
Fix crash in files cache
Fix crash in files cache
TypeScript
agpl-3.0
Chocobozzz/PeerTube,Green-Star/PeerTube,Green-Star/PeerTube,Green-Star/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube,Green-Star/PeerTube
--- +++ @@ -18,8 +18,8 @@ maxAge, max, promise: true, - dispose: (result: GetFilePathResult) => { - if (result.isOwned !== true) { + dispose: (result?: GetFilePathResult) => { + if (result && result.isOwned !== true) { remove(result.path) .then(() =...
da0485273d81a8c66f286ebfb36b31227261372b
jovo-integrations/jovo-cms-googlesheets/src/ObjectArraySheet.ts
jovo-integrations/jovo-cms-googlesheets/src/ObjectArraySheet.ts
import _merge = require('lodash.merge'); import _set = require('lodash.set'); import {DefaultSheet, GoogleSheetsSheet} from "./DefaultSheet"; import {HandleRequest, JovoError, ErrorCode} from "jovo-core"; export interface Config extends GoogleSheetsSheet { } export class ObjectArraySheet extends DefaultSheet { ...
import _merge = require('lodash.merge'); import _set = require('lodash.set'); import {DefaultSheet, GoogleSheetsSheet} from "./DefaultSheet"; import {HandleRequest, JovoError, ErrorCode} from "jovo-core"; export interface Config extends GoogleSheetsSheet { } export class ObjectArraySheet extends DefaultSheet { ...
Add missing default config property
:bug: Add missing default config property
TypeScript
apache-2.0
jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs
--- +++ @@ -11,6 +11,7 @@ export class ObjectArraySheet extends DefaultSheet { config: Config = { enabled: true, + name: undefined, range: 'A:Z', }; constructor(config?: Config) {
b4950219840e0644af6addea10699894fadc98aa
src/app/write/write.component.ts
src/app/write/write.component.ts
import { Component, OnInit } from '@angular/core'; import {ChapterService} from "../chapter.service"; import {ActivatedRoute, Router} from "@angular/router"; import {Chapter} from "../../models/chapter"; @Component({ selector: 'wn-write', templateUrl: './write.component.html', styleUrls: ['./write.component.css'...
import { Component, OnInit } from '@angular/core'; import {ChapterService} from "../chapter.service"; import {ActivatedRoute, Router} from "@angular/router"; import {Chapter} from "../../models/chapter"; @Component({ selector: 'wn-write', templateUrl: './write.component.html', styleUrls: ['./write.component.css'...
Disable save button when saving is happening in the background
Disable save button when saving is happening in the background
TypeScript
mit
oleeskild/WebNovel,oleeskild/WebNovel,oleeskild/WebNovel
--- +++ @@ -32,10 +32,12 @@ } saveChapter(){ + this.loaded = false; this.newChapter.author='59c3995ddd8415653e5ebc87';//TODO Create userservice to get current user this._chapterService.saveChapter(this.newChapter).subscribe((chapterId)=>{ this.parentChapter.childrenIds.push(chapterId); ...
4fe4b9590a41ef193a90e89d3643dc9fe8cc3a05
src/index.ts
src/index.ts
import {app, BrowserWindow} from "electron"; let win; function createWindow() { win = new BrowserWindow({ width: 800, height: 600 }); win.loadURL(`file://${__dirname}/app/view/index.html`); // win.webContents.openDevTools(); win.on("closed", () => { win = null; }); } app.on("ready", cr...
import {app, BrowserWindow} from "electron"; let win; function createWindow() { win = new BrowserWindow({ width: 800, height: 600, minWidth: 650, minHeight: 500}); win.loadURL(`file://${__dirname}/app/view/index.html`); // win.webContents.openDevTools(); win.on("closed", () => { win = null;...
Set minHeight and minWidth of the window
Set minHeight and minWidth of the window
TypeScript
mit
Xstoudi/alduin,Xstoudi/alduin,Xstoudi/alduin
--- +++ @@ -3,7 +3,7 @@ let win; function createWindow() { - win = new BrowserWindow({ width: 800, height: 600 }); + win = new BrowserWindow({ width: 800, height: 600, minWidth: 650, minHeight: 500}); win.loadURL(`file://${__dirname}/app/view/index.html`);
e4c18fc8fe21c7762b8f8e2b029241fef8388330
tensorflow/tensorboard/components/tf-audio-dashboard/test/audioDashboardTests.ts
tensorflow/tensorboard/components/tf-audio-dashboard/test/audioDashboardTests.ts
declare function stub(el: string, obj: any): void; describe('audio dashboard tests', function() { var audioDash; var reloadCount = 0; beforeEach(function() { audioDash = fixture('testElementFixture'); var router = TF.Backend.router('data', true); var backend = new TF.Backe...
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the 'License'); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Add license header to file. Change: 134564823
Add license header to file. Change: 134564823
TypeScript
apache-2.0
AndreasMadsen/tensorflow,kevin-coder/tensorflow-fork,snnn/tensorflow,kevin-coder/tensorflow-fork,asimshankar/tensorflow,yanchen036/tensorflow,vrv/tensorflow,alistairlow/tensorflow,theflofly/tensorflow,sandeepdsouza93/TensorFlow-15712,laosiaudi/tensorflow,eadgarchen/tensorflow,elingg/tensorflow,seaotterman/tensorflow,te...
--- +++ @@ -1,3 +1,17 @@ +/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the 'License'); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Un...
d82b051383984e19d79e833689848d9298e10c3d
app/src/ui/history/commit-list-item.tsx
app/src/ui/history/commit-list-item.tsx
import * as React from 'react' import * as moment from 'moment' import { Commit } from '../../lib/local-git-operations' import { EmojiText } from '../lib/emoji-text' const DefaultAvatarURL = 'https://github.com/hubot.png' interface ICommitProps { readonly commit: Commit readonly avatarURL: string | null readonl...
import * as React from 'react' import { Commit } from '../../lib/local-git-operations' import { EmojiText } from '../lib/emoji-text' import { RelativeTime } from '../relative-time' const DefaultAvatarURL = 'https://github.com/hubot.png' interface ICommitProps { readonly commit: Commit readonly avatarURL: string |...
Use relative time compoenent in commit list
Use relative time compoenent in commit list
TypeScript
mit
BugTesterTest/desktops,shiftkey/desktop,artivilla/desktop,kactus-io/kactus,artivilla/desktop,kactus-io/kactus,gengjiawen/desktop,hjobrien/desktop,say25/desktop,hjobrien/desktop,BugTesterTest/desktops,j-f1/forked-desktop,BugTesterTest/desktops,hjobrien/desktop,desktop/desktop,shiftkey/desktop,shiftkey/desktop,desktop/de...
--- +++ @@ -1,7 +1,7 @@ import * as React from 'react' -import * as moment from 'moment' import { Commit } from '../../lib/local-git-operations' import { EmojiText } from '../lib/emoji-text' +import { RelativeTime } from '../relative-time' const DefaultAvatarURL = 'https://github.com/hubot.png' @@ -14,14 +14,...
872eb62950280497c54b71cca50f8f31bc1c7959
app_client/app/providers/api-service.ts
app_client/app/providers/api-service.ts
import { Http, Headers, RequestOptions } from '@angular/http'; import { tokenNotExpired, JwtHelper } from 'angular2-jwt'; import { Storage, LocalStorage } from 'ionic-angular'; export class ApiService { protected baseApiUrl: string = "/"; protected storage: Storage; constructor() { this.storage = new Storag...
import { Http, Headers, RequestOptions } from '@angular/http'; import { tokenNotExpired, JwtHelper } from 'angular2-jwt'; import { Storage, LocalStorage } from 'ionic-angular'; export class ApiService { protected baseApiUrl: string = ""; protected storage: Storage; constructor() { this.storage = new Storage...
FIX url for api service
FIX url for api service
TypeScript
mit
clervens/mean-stack-example,clervens/mean-stack-example,clervens/mean-stack-example,clervens/mean-stack-example
--- +++ @@ -3,7 +3,7 @@ import { Storage, LocalStorage } from 'ionic-angular'; export class ApiService { - protected baseApiUrl: string = "/"; + protected baseApiUrl: string = ""; protected storage: Storage; constructor() {
8f23700d8ec22e5ec899e09928110007a4664050
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...
Change guarding functions for broader cases
Change guarding functions for broader cases
TypeScript
mit
kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook
--- +++ @@ -6,17 +6,17 @@ // 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. -const isLinearGradient = (color: string) => { - return typeof color === 'string' && color....
23023495b8941606e68f2c24decadc94caa903cf
src/index.ts
src/index.ts
import { configure, observable } from "mobx" import { Component } from "react" import { unstable_batchedUpdates as rdBatched } from "react-dom" if (!Component) throw new Error("mobx-react requires React to be available") if (!observable) throw new Error("mobx-react requires mobx to be available") if (typeof rdBatched...
import { observable } from "mobx" import { Component } from "react" if (!Component) throw new Error("mobx-react requires React to be available") if (!observable) throw new Error("mobx-react requires mobx to be available") export { Observer, useObserver, useAsObservableSource, useLocalStore, isUsin...
Remove auto configure with react-dom
Remove auto configure with react-dom
TypeScript
mit
mweststrate/mobservable-react,mobxjs/mobx-react,mweststrate/mobservable-react,mobxjs/mobx-react
--- +++ @@ -1,11 +1,8 @@ -import { configure, observable } from "mobx" +import { observable } from "mobx" import { Component } from "react" -import { unstable_batchedUpdates as rdBatched } from "react-dom" if (!Component) throw new Error("mobx-react requires React to be available") if (!observable) throw new Err...
7a2abb24f66ba8d4c8fc7334df71de10a2a722ed
src/index.ts
src/index.ts
/** * @file The primary entry for Innerface. * * @author Justin Toon * @license MIT */ import * as _ from 'lodash'; import { selectors } from './if.const'; import * as controllers from './controllers'; /** * A system of simple UI actions implemented with an HTML API. * * @since 0.1.0 */ export default class...
/** * @file The primary entry for Innerface. * * @author Justin Toon * @license MIT */ import * as _ from 'lodash'; import { selectors } from './if.const'; import * as controllers from './controllers'; /** * A system of simple UI actions implemented with an HTML API. * * @since 0.1.0 */ export default class...
Change entry function to static method
Change entry function to static method
TypeScript
mit
overneath42/innerface,overneath42/innerface
--- +++ @@ -19,7 +19,7 @@ /** * Initialize the library. */ - init() { + public static init() { _.forEach(controllers, (controller, index) => { controller().initialize(); });
c47048b0f97bd4ad493ea0c891a09606c44c39fa
app/src/ui/remove-repository/confirm-remove-repository.tsx
app/src/ui/remove-repository/confirm-remove-repository.tsx
import * as React from 'react' import { ButtonGroup } from '../../ui/lib/button-group' import { Button } from '../../ui/lib/button' import { Dialog, DialogContent, DialogFooter } from '../../ui/dialog' import { Repository } from '../../models/repository' interface IConfirmRemoveRepositoryProps { /** The repository t...
import * as React from 'react' import { ButtonGroup } from '../../ui/lib/button-group' import { Button } from '../../ui/lib/button' import { Dialog, DialogContent, DialogFooter } from '../../ui/dialog' import { Repository } from '../../models/repository' interface IConfirmRemoveRepositoryProps { /** The repository t...
Include repository name in dialog
Include repository name in dialog
TypeScript
mit
j-f1/forked-desktop,gengjiawen/desktop,hjobrien/desktop,shiftkey/desktop,j-f1/forked-desktop,hjobrien/desktop,desktop/desktop,BugTesterTest/desktops,kactus-io/kactus,BugTesterTest/desktops,hjobrien/desktop,kactus-io/kactus,desktop/desktop,kactus-io/kactus,desktop/desktop,shiftkey/desktop,artivilla/desktop,BugTesterTest...
--- +++ @@ -36,7 +36,7 @@ onSubmit={this.onConfirmed} > <DialogContent> - <p>Are you sure you want to remove this repository?</p> + <p>Are you sure you want to remove the repository "{this.props.repository.name}"?</p> </DialogContent> <DialogFooter> ...
401024ad47133ce82c6170d297010d257229d5c4
source/renderer/app/components/staking/stake-pools/hooks/useInViewPort.tsx
source/renderer/app/components/staking/stake-pools/hooks/useInViewPort.tsx
import { useRef, useState, useCallback } from 'react'; export const useInViewPort = () => { const [isInViewport, setIsInViewport] = useState(true); const targetRef = useRef(null); const observerRef = useRef( new IntersectionObserver((entries) => { entries.forEach((entry) => { setIsInViewport(en...
import { useRef, useState, useCallback } from 'react'; export const useInViewPort = () => { const [isInViewport, setIsInViewport] = useState(true); const targetRef = useRef(null); const observerRef = useRef( new IntersectionObserver((entries) => { entries.forEach((entry) => { setIsInViewport(en...
Add comment for re callback usage
[DDW-923] Add comment for re callback usage
TypeScript
apache-2.0
input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus
--- +++ @@ -11,6 +11,8 @@ }) ); + // React will call the ref callback twice. Once when the component mounts, and call it with again when it unmounts. + // https://reactjs.org/docs/hooks-faq.html#how-can-i-measure-a-dom-node const setTargetRef = useCallback((target: HTMLElement) => { if (targetRef....
35835b04773a53137d002f4d024f80c194424679
desktop/src/renderer/components/settings/plugins/app-plugins.tsx
desktop/src/renderer/components/settings/plugins/app-plugins.tsx
import { Component, h, State } from '@stencil/core' import { CHANNEL } from '../../../../preload/index' import { getAvailablePlugins, pluginStore } from './pluginStore' import { i18n } from '../../../../i18n' @Component({ tag: 'app-plugins', styleUrl: 'app-plugins.css', scoped: true, }) export class AppPlugins {...
import { Component, h, State } from '@stencil/core' import { CHANNEL } from '../../../../preload/index' import { getAvailablePlugins, pluginStore } from './pluginStore' import { i18n } from '../../../../i18n' @Component({ tag: 'app-plugins', styleUrl: 'app-plugins.css', scoped: true, }) export class AppPlugins {...
Fix plugins settings view title
fix(Desktop): Fix plugins settings view title
TypeScript
apache-2.0
stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila
--- +++ @@ -29,7 +29,7 @@ return ( <div class="appPlugins"> <div class="title"> - <h1>{i18n.t('core.welcome')}</h1> + <h1>{i18n.t('settings.plugins.title')}</h1> <stencila-button onClick={this.checkForUpdates} size="xsmall"
3dabfa70a79e2ba9898ca8d814bc722243faa0e1
front_end/src/app/shared/services/http-client.service.ts
front_end/src/app/shared/services/http-client.service.ts
import {Injectable} from '@angular/core'; import {Http, Headers, RequestOptions} from '@angular/http'; @Injectable() export class HttpClientService { private http: Http; private authenticationToken: string = ''; constructor(http: Http) { this.http = http; } get(url: string, options?: RequestOptions) { ...
import {Injectable} from '@angular/core'; import {Http, Headers, RequestOptions} from '@angular/http'; @Injectable() export class HttpClientService { private http: Http; private authenticationToken: string = ''; constructor(http: Http) { this.http = http; } get(url: string, options?: RequestOptions) { ...
Add Accept header to requests
DE2004: Add Accept header to requests Previously, we were getting text/xml content back in FF and Edge, as they were both sending Accept: application/xml header
TypeScript
bsd-2-clause
crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin
--- +++ @@ -35,6 +35,7 @@ let reqHeaders = headers || new Headers(); reqHeaders.set('Authorization', this.authenticationToken); reqHeaders.set('Content-Type', 'application/json'); + reqHeaders.set('Accept', 'application/json, text/plain, */*'); reqHeaders.set('Crds-Api-Key', process.env.ECHECK...
e9c0b9382f24bc14b5c96dc21f454f1507a4cb15
front_end/src/app/shared/services/http-client.service.ts
front_end/src/app/shared/services/http-client.service.ts
import {Injectable} from '@angular/core'; import {Http, Headers, RequestOptions} from '@angular/http'; @Injectable() export class HttpClientService { private http: Http; private authenticationToken: string = ''; constructor(http: Http) { this.http = http; } get(url: string, options?: RequestOptions) { ...
import {Injectable} from '@angular/core'; import {Http, Headers, RequestOptions} from '@angular/http'; @Injectable() export class HttpClientService { private http: Http; private authenticationToken: string = ''; constructor(http: Http) { this.http = http; } get(url: string, options?: RequestOptions) { ...
Add crds-api-key to the headers but comment out right now.
Add crds-api-key to the headers but comment out right now.
TypeScript
bsd-2-clause
crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin
--- +++ @@ -36,6 +36,7 @@ reqHeaders.set('Authorization', this.authenticationToken); reqHeaders.set('Content-Type', 'application/json'); reqHeaders.set('Access-Control-Allow-Origin', '*'); + //reqHeaders.set('Crds-Api-Key', process.env.ECHECK_API_TOKEN) return reqHeaders; }
3697c07701aede9615bb4a1f6612547f21e7f479
packages/formdata-event/ts_src/environment/html_input_element.ts
packages/formdata-event/ts_src/environment/html_input_element.ts
/** * @license * Copyright (c) 2020 The Polymer Project Authors. All rights reserved. This * code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be * found at http://polymer.github.io/AUTHORS.txt The complete set of * contributors may b...
/** * @license * Copyright (c) 2020 The Polymer Project Authors. All rights reserved. This * code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be * found at http://polymer.github.io/AUTHORS.txt The complete set of * contributors may b...
Remove incorrect `!` assertions for HTMLInputElement descriptors.
Remove incorrect `!` assertions for HTMLInputElement descriptors.
TypeScript
bsd-3-clause
webcomponents/polyfills,webcomponents/polyfills,webcomponents/polyfills
--- +++ @@ -14,7 +14,7 @@ export const prototype = constructor.prototype; export const descriptors = { - name: Object.getOwnPropertyDescriptor(prototype, 'name')!, - type: Object.getOwnPropertyDescriptor(prototype, 'type')!, - value: Object.getOwnPropertyDescriptor(prototype, 'value')!, + name: Object.getOwnP...
cbdb3f7e26791224c78b9e5891d48ffc72971dc4
tests/__tests__/tsconfig-comments.spec.ts
tests/__tests__/tsconfig-comments.spec.ts
import { } from 'jest'; import { } from 'node'; import * as ts from 'typescript'; import * as fs from 'fs'; jest.mock('path'); describe('parse tsconfig with comments', () => { const configFile1 = './tests/tsconfig-test/allows-comments.json'; const configFile2 = './tests/tsconfig-test/allows-comments2.json'; be...
import { } from 'jest'; import { } from 'node'; import * as ts from 'typescript'; import * as fs from 'fs'; import * as tsconfig from 'tsconfig'; jest.mock('path'); describe('parse tsconfig with comments', () => { const configFile1 = './tests/tsconfig-test/allows-comments.json'; const configFile2 = './tests/tscon...
Check that tests for comments in tsconfig tests extended files
Check that tests for comments in tsconfig tests extended files
TypeScript
mit
kulshekhar/ts-jest,kulshekhar/ts-jest
--- +++ @@ -2,6 +2,7 @@ import { } from 'node'; import * as ts from 'typescript'; import * as fs from 'fs'; +import * as tsconfig from 'tsconfig'; jest.mock('path'); @@ -26,9 +27,18 @@ expect(() => { JSON.parse(fs.readFileSync(configFile1, 'utf8')); }).toThrowError(); + expect(() => { ...
af51e46e9c6fd264230e1fbe373fcfddc3fc4142
src/server.ts
src/server.ts
import puppeteer from 'puppeteer'; import * as xmlrpc from 'xmlrpc'; import { Bot } from './bot'; import { Doku } from './doku'; import { onExit } from './on_exit'; import { Renderer } from './render'; // Used by our .service initfile to find the bot process. process.title = 'comicsbot'; interface Config { discordT...
import puppeteer from 'puppeteer'; import * as xmlrpc from 'xmlrpc'; import { Bot } from './bot'; import { Doku } from './doku'; import { onExit } from './on_exit'; import { Renderer } from './render'; // Used by our .service initfile to find the bot process. process.title = 'comicsbot'; interface Config { discordT...
Create secure (https) XMLRPC client
Create secure (https) XMLRPC client
TypeScript
mit
dotdoom/comicsbot,dotdoom/comicsbot
--- +++ @@ -20,12 +20,6 @@ (async () => { let config: Config = require('../config/config.json'); - const doku = new Doku(xmlrpc.createClient({ - url: config.doku.baseUrl + 'lib/exe/xmlrpc.php', - cookies: true, - })); - await doku.login(config.doku.user, config.doku.password); - const browser = awai...
02bcd7cb9446d3a3999fc1f34acb6238ce2d1bd6
src/lib/Components/SectionTitle.tsx
src/lib/Components/SectionTitle.tsx
import { ArrowRightIcon, Flex, Sans, space } from "@artsy/palette" import React from "react" import { TouchableOpacity, View } from "react-native" const Wrapper: React.FC<{ onPress(): any }> = ({ onPress, children }) => { if (onPress) { return ( <TouchableOpacity onPress={onPress} data-test-id="touchable-w...
import { ArrowRightIcon, Flex, Sans, space } from "@artsy/palette" import React from "react" import { TouchableOpacity, View } from "react-native" const Wrapper: React.FC<{ onPress(): any }> = ({ onPress, children }) => { if (onPress) { return ( <TouchableOpacity onPress={onPress} data-test-id="touchable-w...
Update subtitle size in home rails
Update subtitle size in home rails
TypeScript
mit
artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen
--- +++ @@ -27,7 +27,7 @@ {title} </Sans> {Boolean(subtitle) && ( - <Sans size="2" color="black60" data-test-id="subtitle"> + <Sans size="3t" color="black60" data-test-id="subtitle"> {subtitle} </Sans> )}
8e697ab928fb1a852e08addabb177220a43805bd
src/core/watcher-helper.ts
src/core/watcher-helper.ts
import { Injectable } from '@angular/core'; @Injectable() export class WatcherHelper { private _watchers: any[] = []; getWatchMethod() { let watchMethod = (valueGetter, valueChangeCallback, options) => { let oldValue = valueGetter(); options = options || {}; if...
import { Injectable } from '@angular/core'; @Injectable() export class WatcherHelper { private _watchers: any[] = []; getWatchMethod() { let watchMethod = (valueGetter, valueChangeCallback, options) => { let oldValue = valueGetter(); options = options || {}; if...
Check that oldValue is instance of object before check by fields
Check that oldValue is instance of object before check by fields
TypeScript
mit
DevExpress/devextreme-angular,DevExpress/devextreme-angular,DevExpress/devextreme-angular
--- +++ @@ -39,17 +39,13 @@ } private _isDifferentValues(oldValue: any, newValue: any, deepCheck: boolean) { - if (deepCheck && newValue instanceof (Object)) { + if (deepCheck && newValue instanceof (Object) && oldValue instanceof (Object)) { return this._checkObjectsFields(newV...
4285cf27c6e9ad28e6cac541ab3c4301a7077141
test/mapping-entry-test.ts
test/mapping-entry-test.ts
import { assert } from "chai"; import { getAbsoluteMappingEntries } from "../src/mapping-entry"; describe("mapping-entry", () => { it("should change to absolute paths and sort in longest prefix order", () => { const result = getAbsoluteMappingEntries("/absolute/base/url", { "*": ["/foo1", "/foo2"], "...
import { assert } from "chai"; import { getAbsoluteMappingEntries } from "../src/mapping-entry"; import { join } from "path"; describe("mapping-entry", () => { it("should change to absolute paths and sort in longest prefix order", () => { const result = getAbsoluteMappingEntries("/absolute/base/url", { "*"...
Fix test to work on windows
Fix test to work on windows
TypeScript
mit
jonaskello/tsconfig-paths,dividab/tsconfig-paths,dividab/tsconfig-paths,jonaskello/tsconfig-paths
--- +++ @@ -1,5 +1,6 @@ import { assert } from "chai"; import { getAbsoluteMappingEntries } from "../src/mapping-entry"; +import { join } from "path"; describe("mapping-entry", () => { it("should change to absolute paths and sort in longest prefix order", () => { @@ -9,11 +10,20 @@ "pre/fix/*": ["/foo3...
ccf082cc5ed799cc3f8ca60bbe7de67543b06645
admin-panel/react-admin-interface/src/config.ts
admin-panel/react-admin-interface/src/config.ts
import * as queryString from "query-string" const defaultPortal = process.env.REACT_APP_PORTAL_URL const defaultOatuhClientName = process.env.REACT_APP_OATUH_CLIENT_NAME const params = queryString.parse(window.location.search); const GraphQlHost = process.env.REACT_APP_GRAPHQL_HOST // Note your Portal connection mus...
import * as queryString from "query-string" const defaultPortal = process.env.REACT_APP_PORTAL_URL const defaultOatuhClientName = process.env.REACT_APP_OATUH_CLIENT_NAME const params = queryString.parse(window.location.search); const GraphQlHost = process.env.REACT_APP_GRAPHQL_HOST // Note your Portal connection mus...
Fix typo in react-admin param name.
Fix typo in react-admin param name. [#174024121] https://www.pivotaltracker.com/story/show/174024121
TypeScript
mit
concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse
--- +++ @@ -7,7 +7,7 @@ const GraphQlHost = process.env.REACT_APP_GRAPHQL_HOST // Note your Portal connection must use https: -const PortalUrl = params.REACT_APP_PORTAL_URL || defaultPortal +const PortalUrl = params.PORTAL_URL || defaultPortal const OauthClientName = params.OATUH_CLIENT_NAME ? (params.OATUH...
520fa966c0c9b553f0a534c8168fe278c7ace397
src/common/services/i18next.ts
src/common/services/i18next.ts
import i18next from 'i18next'; import { initReactI18next } from 'react-i18next'; import XHR from 'i18next-xhr-backend'; import { isDev } from 'config'; // Maps to public/locales/:language_code export const LANGUAGE_CODES = { EN: 'en', }; // see: https://www.i18next.com/overview/configuration-options i18next .use...
import i18next from 'i18next'; import { initReactI18next } from 'react-i18next'; import XHR from 'i18next-xhr-backend'; import { isDev } from 'config'; // Maps to public/locales/:language_code export const LANGUAGE_CODES = { EN: 'en', }; // see: https://www.i18next.com/overview/configuration-options i18next .use...
Remove leftover of Google translate fix
Remove leftover of Google translate fix
TypeScript
mit
Kamahl19/react-starter,Kamahl19/react-starter,Kamahl19/react-starter,Kamahl19/react-starter
--- +++ @@ -25,9 +25,6 @@ interpolation: { escapeValue: false, }, - react: { - defaultTransParent: 'span', // fixes Google Translate issue https://github.com/facebook/react/issues/11538 - }, }); export const t = i18next.t.bind(i18next);
4f6d4511e8d70f49bdc4ee627db45b00f91d236b
src/providers/token-service.ts
src/providers/token-service.ts
import { Injectable } from '@angular/core'; import { Http, Response, Headers } from '@angular/http'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/mergeMap'; import 'rxjs/add/observable/of'; import { Observable } from 'rxjs/Observable'; import { Credential } from '../model/credential'; import { ImsHeaders }...
import { Injectable } from '@angular/core'; import { Http, Response, Headers } from '@angular/http'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/mergeMap'; import 'rxjs/add/observable/of'; import { Observable } from 'rxjs/Observable'; import { Credential } from '../model/credential'; import { ImsHeaders }...
Refactor method extraction. Create aE cacheToken method for better understanding.
Refactor method extraction. Create aE cacheToken method for better understanding.
TypeScript
mit
IMSmobile/app,IMSmobile/app,IMSmobile/app,IMSmobile/app
--- +++ @@ -16,15 +16,19 @@ } private token: Token = null; + getToken(credential: Credential): Observable<Token> { + console.log(this.token2); if (this.token != null && new Date() < new Date(this.token.licenseExpirationDate)) { return Observable.of(this.token); } else { - return th...
e135b9360e56b1ba009eec7f75230e0a4153a15c
app/src/ui/ui-view.tsx
app/src/ui/ui-view.tsx
import * as React from 'react' interface IUiViewProps extends React.Props<UiView> { /** An optional element id for the view */ id?: string } /** * High order component for housing a View. * * In Desktop we currently define a view as a component which occupies * the entire app save for the sidebar and minus an...
import * as React from 'react' const uiViewClassName = 'ui-view' interface IUiViewProps extends React.HTMLProps<HTMLDivElement> { } /** * High order component for housing a View. * * In Desktop we currently define a view as a component which occupies * the entire app save for the sidebar and minus any currently ...
Allow arbitrary attributes on UiView components
Allow arbitrary attributes on UiView components
TypeScript
mit
say25/desktop,kactus-io/kactus,j-f1/forked-desktop,desktop/desktop,shiftkey/desktop,shiftkey/desktop,say25/desktop,kactus-io/kactus,kactus-io/kactus,say25/desktop,BugTesterTest/desktops,kactus-io/kactus,shiftkey/desktop,desktop/desktop,j-f1/forked-desktop,BugTesterTest/desktops,desktop/desktop,artivilla/desktop,hjobrie...
--- +++ @@ -1,9 +1,8 @@ import * as React from 'react' -interface IUiViewProps extends React.Props<UiView> { - /** An optional element id for the view */ - id?: string -} +const uiViewClassName = 'ui-view' + +interface IUiViewProps extends React.HTMLProps<HTMLDivElement> { } /** * High order component for h...
ac83ad160604dade593171d9cc99f796294ee66f
src/app/views/sessions/session/tools/job-list/job-list.component.ts
src/app/views/sessions/session/tools/job-list/job-list.component.ts
import {Component, EventEmitter, Input, OnChanges, Output} from "@angular/core"; import Job from "../../../../../model/session/job"; import {NgbDropdown} from "@ng-bootstrap/ng-bootstrap"; @Component({ selector: 'ch-job-list', templateUrl: './job-list.component.html' }) export class JobListComponent implements OnC...
import {Component, EventEmitter, Input, OnChanges, Output} from '@angular/core'; import Job from '../../../../../model/session/job'; import {NgbDropdown} from '@ng-bootstrap/ng-bootstrap'; @Component({ selector: 'ch-job-list', templateUrl: './job-list.component.html' }) export class JobListComponent implements OnC...
Sort jobs by created instead of start time
Sort jobs by created instead of start time
TypeScript
mit
chipster/chipster-web,chipster/chipster-web,chipster/chipster-web
--- +++ @@ -1,6 +1,6 @@ -import {Component, EventEmitter, Input, OnChanges, Output} from "@angular/core"; -import Job from "../../../../../model/session/job"; -import {NgbDropdown} from "@ng-bootstrap/ng-bootstrap"; +import {Component, EventEmitter, Input, OnChanges, Output} from '@angular/core'; +import Job from '.....
15268f63ce32baf4ec1a72a03f8c9ae23c42df9a
packages/post-effect-plugins/the-world/index.ts
packages/post-effect-plugins/the-world/index.ts
import { PostEffectBase, PreRenderRequest, RenderRequest, Type, } from '@ragg/delir-core' import * as clamp from 'lodash/clamp' interface Params { opacity: number } export default class TheWorldPostEffect extends PostEffectBase { /** * Provide usable parameters */ public static ...
import { PostEffectBase, PreRenderRequest, RenderRequest, Type, } from '@ragg/delir-core' import * as clamp from 'lodash/clamp' interface Params { opacity: number } export default class TheWorldPostEffect extends PostEffectBase { /** * Provide usable parameters */ public static ...
Fix electron crashed on running the-world post effect
Fix electron crashed on running the-world post effect どうやらVM内でCanvasオブジェクトがGCされて死ぬっぽい… 闇だ
TypeScript
mit
Ragg-/Delir,Ragg-/Delir,Ragg-/Delir,Ragg-/Delir
--- +++ @@ -20,6 +20,7 @@ .float('opacity', {label: 'Opacity', defaultValue: 100, animatable: true}) } + private canvas: HTMLCanvasElement private bufCtx: CanvasRenderingContext2D /** @@ -34,6 +35,7 @@ canvas.width = req.width canvas.height = req.height + ...
bcc5ed0d956fc4017d62a1c940da7bfc68d52d85
app/src/lib/feature-flag.ts
app/src/lib/feature-flag.ts
/** * Enables the application to opt-in for preview features based on runtime * checks. This is backed by the GITHUB_DESKTOP_PREVIEW_FEATURES environment * variable, which is checked for non-development environments. */ export function enablePreviewFeatures(): boolean { if (__DEV__) { return true } if (p...
const EnablePreviewFeaturesKey = 'enable-preview-features' /** * Enables the application to opt-in for preview features based on runtime * checks. This is backed by the GITHUB_DESKTOP_PREVIEW_FEATURES environment * variable, which is checked for non-development environments. */ export function enablePreviewFeature...
Enable preview features from localStorage too
Enable preview features from localStorage too
TypeScript
mit
j-f1/forked-desktop,kactus-io/kactus,j-f1/forked-desktop,desktop/desktop,desktop/desktop,j-f1/forked-desktop,shiftkey/desktop,j-f1/forked-desktop,artivilla/desktop,gengjiawen/desktop,gengjiawen/desktop,shiftkey/desktop,say25/desktop,shiftkey/desktop,artivilla/desktop,desktop/desktop,kactus-io/kactus,kactus-io/kactus,sa...
--- +++ @@ -1,3 +1,5 @@ +const EnablePreviewFeaturesKey = 'enable-preview-features' + /** * Enables the application to opt-in for preview features based on runtime * checks. This is backed by the GITHUB_DESKTOP_PREVIEW_FEATURES environment @@ -12,5 +14,15 @@ return true } + const enableFeatures = loca...