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
6e1352568f2e9a88d4947b9dd94e5ff63f3fd3a7
app/src/main-process/shell.ts
app/src/main-process/shell.ts
import * as Url from 'url' import { shell } from 'electron' /** * Wraps the inbuilt shell.openItem path to address a focus issue that affects macOS. * * When opening a folder in Finder, the window will appear behind the application * window, which may confuse users. As a workaround, we will fallback to using * sh...
import * as Url from 'url' import { shell } from 'electron' /** * Wraps the inbuilt shell.openItem path to address a focus issue that affects macOS. * * When opening a folder in Finder, the window will appear behind the application * window, which may confuse users. As a workaround, we will fallback to using * sh...
Add a word of caution
Add a word of caution
TypeScript
mit
j-f1/forked-desktop,artivilla/desktop,desktop/desktop,say25/desktop,artivilla/desktop,shiftkey/desktop,shiftkey/desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,j-f1/forked-desktop,desktop/desktop,j-f1/forked-desktop,say25/desktop,j-f1/forked-desktop,kactus-io/kactus,desktop/desktop,kactus-io/kactus,artivilla/...
--- +++ @@ -7,6 +7,11 @@ * When opening a folder in Finder, the window will appear behind the application * window, which may confuse users. As a workaround, we will fallback to using * shell.openExternal for macOS until it can be fixed upstream. + * + * CAUTION: This method should never be used to open user-pr...
8857671105874c8bbc5b4aa717c447e38dcdbfc7
resources/assets/lib/interfaces/score-json.ts
resources/assets/lib/interfaces/score-json.ts
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. import BeatmapExtendedJson from './beatmap-extended-json'; import BeatmapsetJson from './beatmapset-json'; import GameMode from './game-mode'; ...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. import BeatmapExtendedJson from './beatmap-extended-json'; import BeatmapsetJson from './beatmapset-json'; import GameMode from './game-mode'; ...
Fix typing for score id
Fix typing for score id
TypeScript
agpl-3.0
nanaya/osu-web,ppy/osu-web,notbakaneko/osu-web,nanaya/osu-web,nanaya/osu-web,ppy/osu-web,nanaya/osu-web,ppy/osu-web,LiquidPL/osu-web,notbakaneko/osu-web,LiquidPL/osu-web,LiquidPL/osu-web,nanaya/osu-web,ppy/osu-web,notbakaneko/osu-web,notbakaneko/osu-web,LiquidPL/osu-web,notbakaneko/osu-web,LiquidPL/osu-web,ppy/osu-web
--- +++ @@ -13,7 +13,7 @@ beatmapset?: BeatmapsetJson; best_id: number | null; created_at: string; - id: string; + id: number; max_combo: number; mode?: GameMode; mode_int?: number;
28e54447898f5eecfe46895066be845ecdca0833
frontend/src/index.tsx
frontend/src/index.tsx
import '@blueprintjs/core/lib/css/blueprint.css'; import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import { Application } from './components/Application'; import { INITIAL_STATE } from './r...
import '@blueprintjs/core/lib/css/blueprint.css'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import { Application } from './components/Application'; import { INITIAL_STATE } from './reducers'; import { config...
Remove extra import of polyfills
Remove extra import of polyfills
TypeScript
mit
luxons/seven-wonders,luxons/seven-wonders,luxons/seven-wonders
--- +++ @@ -1,5 +1,4 @@ import '@blueprintjs/core/lib/css/blueprint.css'; -import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux';
753c762f7837e2a924e16a7ef9020c417327b920
src/app/manager/view-manager.service.ts
src/app/manager/view-manager.service.ts
import { Injectable } from '@angular/core'; @Injectable() export class ViewManagerService { public screen: { width: number, height: number } = { width: 0, height: 0, }; public offset: { x: number, y: number } = { x: 0, y: 0, }; constructor( ) { this.bindEvents(); } private bindE...
import { Injectable } from '@angular/core'; @Injectable() export class ViewManagerService { public screen: { width: number, height: number } = { width: 0, height: 0, }; public offset: { x: number, y: number } = { x: 0, y: 0, }; constructor( ) { this.bindEvents(); } private bindE...
Add handler for the case document.documentElement is null
Add handler for the case document.documentElement is null
TypeScript
mit
tsugitta/tsugitta.github.io,tsugitta/tsugitta.github.io,tsugitta/tsugitta.github.io,tsugitta/tsugitta.github.io
--- +++ @@ -37,8 +37,8 @@ setScreenSize(): void { const self = this; - self.screen.width = window.innerWidth || document.documentElement.clientWidth || 0; - self.screen.height = window.innerHeight || document.documentElement.clientHeight || 0; + self.screen.width = window.innerWidth || (document.do...
d9714ebf8f481bd6a219d31cbb031508f4c58dbd
VSCode_Extension/src/extension.ts
VSCode_Extension/src/extension.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 { spawn, ChildProcess } from 'child_process'; // this method is called when your extension is activated // your extension...
'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 { exec, ChildProcess } from 'child_process'; import { normalize } from 'path'; // this method is called when your extensi...
Add VSCode command that starts an MTA server
Add VSCode command that starts an MTA server
TypeScript
mit
Jusonex/MTATD,Jusonex/MTATD,Jusonex/MTATD
--- +++ @@ -4,7 +4,8 @@ // Import the module and reference it with the alias vscode in your code below import * as vscode from 'vscode'; -import { spawn, ChildProcess } from 'child_process'; +import { exec, ChildProcess } from 'child_process'; +import { normalize } from 'path'; // this method is called when yo...
2dd9ae5ff2b232272fc6c8de72aa2a5d28ddf145
step-release-vis/src/testing/EnvironmentServiceStub.ts
step-release-vis/src/testing/EnvironmentServiceStub.ts
import {Injectable} from '@angular/core'; import {Observable, of} from 'rxjs'; import {Polygon} from '../app/models/Polygon'; import {EnvironmentService} from '../app/services/environment'; @Injectable() export class EnvironmentServiceStub { candName = 'test'; polygons = [ new Polygon( [ {x: 0,...
import {Injectable} from '@angular/core'; import {Observable, of} from 'rxjs'; import {Polygon} from '../app/models/Polygon'; import {EnvironmentService} from '../app/services/environment'; @Injectable() export class EnvironmentServiceStub { candName = 'test'; polygons = [ new Polygon( [ {x: 0, ...
Add another polygon to stub.
Add another polygon to stub.
TypeScript
apache-2.0
googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020
--- +++ @@ -5,19 +5,25 @@ @Injectable() export class EnvironmentServiceStub { - candName = 'test'; polygons = [ new Polygon( [ {x: 0, y: 0}, - {x: 0, y: 1}, - {x: 1, y: 1}, - {x: 1, y: 0}, + {x: 0, y: 100}, + {x: 100, y: 0}, ], this.can...
ce41c989fc39e5eac6eba67f1b221f5b1c862b57
common/settings/Settings.ts
common/settings/Settings.ts
import { ipcMain } from 'electron'; import { existsSync, readFileSync, writeFileSync } from 'fs'; import { Utilities } from '../Utilities'; export class Settings { private settings: object; private filePath: string; constructor() { this.filePath = Utilities.getWorkingFolder() + '/settings.json'; ...
import { app, ipcMain } from 'electron'; import { existsSync, readFileSync, writeFileSync } from 'fs'; export class Settings { private settings: object; private filePath: string; constructor() { this.filePath = app.getPath('userData') + '/settings.json'; // Request from renderer to get settin...
Save settings.json in userPath instead
Save settings.json in userPath instead
TypeScript
mit
etaylor8086/prime-randomizer-web,etaylor8086/prime-randomizer-web,etaylor8086/prime-randomizer-web,etaylor8086/prime-randomizer-web,etaylor8086/prime-randomizer-web
--- +++ @@ -1,14 +1,12 @@ -import { ipcMain } from 'electron'; +import { app, ipcMain } from 'electron'; import { existsSync, readFileSync, writeFileSync } from 'fs'; - -import { Utilities } from '../Utilities'; export class Settings { private settings: object; private filePath: string; constructor() {...
5b4e2c13f8199e6d1eead37c8712b27588d5e38d
capstone-project/src/main/angular-webapp/src/app/toast/toast.service.spec.ts
capstone-project/src/main/angular-webapp/src/app/toast/toast.service.spec.ts
import { Toast } from '@syncfusion/ej2-angular-notifications'; import { ToastService } from './toast.service'; describe('ToastService', () => { let service: ToastService; beforeEach(() => { service = new ToastService(); }); it('Should create service', () => { expect(service).toBeTruthy(); }); i...
import { Toast } from '@syncfusion/ej2-angular-notifications'; import { ToastService } from './toast.service'; describe('ToastService', () => { let service: ToastService; let htmlElement; let model; beforeEach(() => { service = new ToastService(); htmlElement = document.createElement("div"); mode...
Define htmlElement and model before each test
Define htmlElement and model before each test
TypeScript
apache-2.0
googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020
--- +++ @@ -4,9 +4,13 @@ describe('ToastService', () => { let service: ToastService; + let htmlElement; + let model; beforeEach(() => { service = new ToastService(); + htmlElement = document.createElement("div"); + model = {title: "title", content: "content"}; }); it('Should create ser...
f543a299fccb218b585070b4acfe33ad38b1db59
src/utils/invariant.ts
src/utils/invariant.ts
export function invariant(condition: boolean, message: string, context?: any) { if (!condition) { let errorMessage = message; if (context) { errorMessage = (message.indexOf('%s') != -1) ? message.replace('%s', context) : errorMessage = `${message}: ${context}`; } throw new Erro...
export function invariant(condition: boolean, message: string, context?: any) { if (!condition) { let errorMessage = message; if (context) { errorMessage = (message.indexOf('%s') !== -1) ? message.replace('%s', context) : errorMessage = `${message}: ${context}`; } throw new Err...
Fix linter error upon rebase from master
Fix linter error upon rebase from master
TypeScript
mit
angular-redux/store,wbuchwalter/ng2-redux,angular-redux/ng2-redux,angular-redux/store,angular-redux/ng2-redux
--- +++ @@ -3,7 +3,7 @@ let errorMessage = message; if (context) { - errorMessage = (message.indexOf('%s') != -1) ? + errorMessage = (message.indexOf('%s') !== -1) ? message.replace('%s', context) : errorMessage = `${message}: ${context}`; }
0996bd3a20bfa8b7a2ccc74c526ecfd629070d49
framework/src/decorators/PrioritizedOverUnhandled.ts
framework/src/decorators/PrioritizedOverUnhandled.ts
import { createHandlerOptionDecorator } from '../metadata/HandlerOptionMetadata'; export const PrioritizedOverUnhandled = (prioritizedOverUnhandled = true) => createHandlerOptionDecorator({ prioritizedOverUnhandled });
import { createHandlerOptionDecorator } from '../metadata/HandlerOptionMetadata'; export const PrioritizedOverUnhandled: (prioritizedOverUnhandled?: boolean) => MethodDecorator = ( prioritizedOverUnhandled = true, ) => createHandlerOptionDecorator({ prioritizedOverUnhandled });
Add missing return type to satisfy linter
:rotating_light: Add missing return type to satisfy linter
TypeScript
apache-2.0
jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs
--- +++ @@ -1,4 +1,5 @@ import { createHandlerOptionDecorator } from '../metadata/HandlerOptionMetadata'; -export const PrioritizedOverUnhandled = (prioritizedOverUnhandled = true) => - createHandlerOptionDecorator({ prioritizedOverUnhandled }); +export const PrioritizedOverUnhandled: (prioritizedOverUnhandled?: ...
fde9ee25baa3e5d1b578cc7dbada1db8d9f440e8
src/parser/core/modules/SpellInfo.ts
src/parser/core/modules/SpellInfo.ts
import SPELLS, { registerSpell } from 'common/SPELLS'; import Analyzer, { Options } from 'parser/core/Analyzer'; import Events, { Ability, AnyEvent } from 'parser/core/Events'; /** * We automatically discover spell info from the combat log so we can avoid many * calls to resolve missing spell info. */ class SpellIn...
import SPELLS, { registerSpell } from 'common/SPELLS'; import Analyzer, { Options } from 'parser/core/Analyzer'; import Events, { Ability, AnyEvent } from 'parser/core/Events'; /** * We automatically discover spell info from the combat log so we can avoid many * calls to resolve missing spell info. */ class SpellIn...
Fix crash when ability object does not include name or icon
Fix crash when ability object does not include name or icon
TypeScript
agpl-3.0
WoWAnalyzer/WoWAnalyzer,sMteX/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,sMteX/WoWAnalyzer,Juko8/WoWAnalyzer,Juko8/WoWAnalyzer,sMteX/WoWAnalyzer,Juko8/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer
--- +++ @@ -22,7 +22,7 @@ } addSpellInfo(ability: Omit<Ability, 'type'>) { - if (SPELLS[ability.guid]) { + if (SPELLS[ability.guid] || !ability.name || !ability.abilityIcon) { return; }
f8dc4ba86d47320282c62e6e12a07a0ad60e42d5
src/marketplace/offerings/details/OfferingDetails.tsx
src/marketplace/offerings/details/OfferingDetails.tsx
import * as React from 'react'; import * as Col from 'react-bootstrap/lib/Col'; import * as Row from 'react-bootstrap/lib/Row'; import { OfferingTabsComponent, OfferingTab } from '@waldur/marketplace/details/OfferingTabsComponent'; import { Offering } from '@waldur/marketplace/types'; import { OfferingActions } from ...
import * as React from 'react'; import * as Col from 'react-bootstrap/lib/Col'; import * as Row from 'react-bootstrap/lib/Row'; import { OfferingTabsComponent, OfferingTab } from '@waldur/marketplace/details/OfferingTabsComponent'; import { Offering } from '@waldur/marketplace/types'; import { OfferingActions } from ...
Make offering actions button clickable in mobile view.
Make offering actions button clickable in mobile view.
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -16,7 +16,7 @@ export const OfferingDetails: React.FC<OfferingDetailsProps> = props => ( <div className="wrapper wrapper-content"> {props.offering.shared && ( - <div className="pull-right m-r-md"> + <div className="pull-right m-r-md" style={{position: 'relative', zIndex: 100}}> ...
5a43acd42a1bc570611634b1e9c14abc35bb94d5
src/stores/room-list/previews/ReactionEventPreview.ts
src/stores/room-list/previews/ReactionEventPreview.ts
/* Copyright 2020 The Matrix.org Foundation C.I.C. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
/* Copyright 2020 The Matrix.org Foundation C.I.C. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
Fix reaction event crashes in message previews
Fix reaction event crashes in message previews Fixes https://github.com/vector-im/riot-web/issues/14224
TypeScript
apache-2.0
matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk
--- +++ @@ -22,8 +22,11 @@ export class ReactionEventPreview implements IPreview { public getTextFor(event: MatrixEvent, tagId?: TagID): string { - const reaction = event.getRelation().key; - if (!reaction) return; + const relation = event.getRelation(); + if (!relation) return nul...
9be1e387e162f18196dcfc0dbea5da2d90b18ed8
test/programs/force-type-imported/main.ts
test/programs/force-type-imported/main.ts
import { Widget } from './widget'; export interface MyObject { name: string; mainWidget: Widget; otherWidgets: Widget[]; }
import { Widget } from "./widget"; export interface MyObject { name: string; mainWidget: Widget; otherWidgets: Widget[]; }
Fix test "force-type-imported" lint error
Fix test "force-type-imported" lint error
TypeScript
bsd-3-clause
YousefED/typescript-json-schema,YousefED/typescript-json-schema,HitkoDev/typescript-json-schema,HitkoDev/typescript-json-schema,benbabic/typescript-json-schema,benbabic/typescript-json-schema
--- +++ @@ -1,4 +1,4 @@ -import { Widget } from './widget'; +import { Widget } from "./widget"; export interface MyObject { name: string;
017034401ff456f34243011451be3c4f24b25741
visualization/app/codeCharta/codeCharta.api.model.ts
visualization/app/codeCharta/codeCharta.api.model.ts
import { AttributeTypes, CodeMapNode, Edge, MarkedPackage, RecursivePartial, Settings } from "./codeCharta.model" export interface ExportCCFile { projectName: string apiVersion: string nodes: CodeMapNode[] attributeTypes?: AttributeTypes edges?: Edge[] markedPackages?: MarkedPackage[] blacklist?: ExportBlacklis...
import { AttributeTypes, AttributeTypeValue, CodeMapNode, Edge, MarkedPackage, RecursivePartial, Settings } from "./codeCharta.model" export interface ExportCCFile { projectName: string apiVersion: string nodes: CodeMapNode[] attributeTypes?: AttributeTypes | ExportAttributeTypes edges?: Edge[] markedPackages?: ...
Update allow older attributeTypes as well
Update allow older attributeTypes as well
TypeScript
bsd-3-clause
MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta
--- +++ @@ -1,10 +1,10 @@ -import { AttributeTypes, CodeMapNode, Edge, MarkedPackage, RecursivePartial, Settings } from "./codeCharta.model" +import { AttributeTypes, AttributeTypeValue, CodeMapNode, Edge, MarkedPackage, RecursivePartial, Settings } from "./codeCharta.model" export interface ExportCCFile { proje...
f6853c9f20062b7c263c6812a76934ab0e7794e7
packages/@sanity/initial-value-templates/src/builder.ts
packages/@sanity/initial-value-templates/src/builder.ts
import {Template, TemplateBuilder} from './Template' import {Schema, SchemaType, getDefaultSchema} from './parts/Schema' function defaultTemplateForType( schemaType: string | SchemaType, sanitySchema?: Schema ): TemplateBuilder { let type: SchemaType if (typeof schemaType === 'string') { const schema = san...
import {Template, TemplateBuilder} from './Template' import {Schema, SchemaType, getDefaultSchema} from './parts/Schema' function defaultTemplateForType( schemaType: string | SchemaType, sanitySchema?: Schema ): TemplateBuilder { let type: SchemaType if (typeof schemaType === 'string') { const schema = san...
Remove templates for asset types
[initial-value-templates] Remove templates for asset types
TypeScript
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
--- +++ @@ -32,6 +32,7 @@ return schema .getTypeNames() + .filter(typeName => !/^sanity\./.test(typeName)) .filter(typeName => isDocumentSchemaType(typeName, schema)) .map(typeName => defaultTemplateForType(schema.get(typeName), schema)) }
80f42ed3bac03d619f0290b1ed88a3733c8d797b
src/index.ts
src/index.ts
/** * This file is the entry-point to start Cerveau */ process.title = "Cerveau Game Server"; // Check for npm install first, as many developers forget this pre step import { lstatSync } from "fs"; try { const lstat = lstatSync("./node_modules/"); if (!lstat.isDirectory()) { throw new Error(); // to...
/** This file is the entry-point to start Cerveau */ // first code to execute, like a mini sanity test console.log("~~~ Cerveau is starting ~~~"); // tslint:disable-line:no-console process.title = "Cerveau Game Server"; import { setupThread } from "./core/setup-thread"; setupThread(); // We must do this before doing...
Disable node_modules check on code that requires node_modules to run
Disable node_modules check on code that requires node_modules to run
TypeScript
mit
siggame/Cerveau,siggame/Cerveau,JacobFischer/Cerveau,JacobFischer/Cerveau
--- +++ @@ -1,32 +1,15 @@ -/** - * This file is the entry-point to start Cerveau - */ +/** This file is the entry-point to start Cerveau */ + +// first code to execute, like a mini sanity test +console.log("~~~ Cerveau is starting ~~~"); // tslint:disable-line:no-console + process.title = "Cerveau Game Server"; -/...
4cdfe3976b38d985d4af86848124f4e58adca18a
src/index.ts
src/index.ts
import { render } from 'inferno' import App from './components/app.ts' const container = document.getElementById('app') const app = new App() render(app.render(), container)
import { render } from 'inferno' import h from 'inferno-hyperscript' import App from './components/app.ts' const container = document.getElementById('app') render(h(App), container)
Change the way of rendering App Component
Change the way of rendering App Component
TypeScript
mit
y0za/typescript-inferno-todo,y0za/typescript-inferno-todo,y0za/typescript-inferno-todo
--- +++ @@ -1,8 +1,7 @@ import { render } from 'inferno' +import h from 'inferno-hyperscript' import App from './components/app.ts' const container = document.getElementById('app') -const app = new App() - -render(app.render(), container) +render(h(App), container)
ac4e1ce71b5c2aadf86e75ebf60402cd8d6001fb
src/chrome/settings/ToggledSection.tsx
src/chrome/settings/ToggledSection.tsx
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import {FlexColumn, styled, FlexRow, ToggleButton} from 'flipper'; import React from 'react'; const IndentedSection...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import {FlexColumn, styled, FlexRow, ToggleButton} from 'flipper'; import React from 'react'; const IndentedSection...
Add some padding between sections in settings
Add some padding between sections in settings Reviewed By: priteshrnandgaonkar Differential Revision: D18085724 fbshipit-source-id: d874a21399e86f0079bf1cc86d4b83be6ce5a5d7
TypeScript
mit
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
--- +++ @@ -12,6 +12,7 @@ const IndentedSection = styled(FlexColumn)({ paddingLeft: 50, + paddingBottom: 10, }); const GreyedOutOverlay = styled('div')({ backgroundColor: '#EFEEEF',
1b42d73f44811eec1b7ddd72dd0d640a57c3376c
server/lib/peertube-socket.ts
server/lib/peertube-socket.ts
import * as SocketIO from 'socket.io' import { authenticateSocket } from '../middlewares' import { UserNotificationModel } from '../models/account/user-notification' import { logger } from '../helpers/logger' import { Server } from 'http' class PeerTubeSocket { private static instance: PeerTubeSocket private use...
import * as SocketIO from 'socket.io' import { authenticateSocket } from '../middlewares' import { UserNotificationModel } from '../models/account/user-notification' import { logger } from '../helpers/logger' import { Server } from 'http' class PeerTubeSocket { private static instance: PeerTubeSocket private use...
Fix socket notification with multiple user tabs
Fix socket notification with multiple user tabs
TypeScript
agpl-3.0
Chocobozzz/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube
--- +++ @@ -8,7 +8,7 @@ private static instance: PeerTubeSocket - private userNotificationSockets: { [ userId: number ]: SocketIO.Socket } = {} + private userNotificationSockets: { [ userId: number ]: SocketIO.Socket[] } = {} private constructor () {} @@ -22,22 +22,26 @@ logger.debug('User ...
360f7afed51c62bbaa89e19c43838516cc84f63b
src/ts/index.ts
src/ts/index.ts
import * as logging from './core/log' import * as charts from './charts/core' import * as factory from './models/items/factory' import * as app from './app/app' import * as edit from './edit/edit' import { actions } from './core/action' import GraphiteChartRenderer from './charts/graphite' import FlotChartRe...
import * as logging from './core/log' import * as charts from './charts/core' import * as factory from './models/items/factory' import * as app from './app/app' import * as edit from './edit/edit' import { actions } from './core/action' import { transforms } from './models/transform/transform' impo...
Fix direct load of transforms on URL - another missing global reference to be refactored
Fix direct load of transforms on URL - another missing global reference to be refactored
TypeScript
apache-2.0
section-io/tessera,urbanairship/tessera,jmptrader/tessera,aalpern/tessera,aalpern/tessera,tessera-metrics/tessera,section-io/tessera,urbanairship/tessera,jmptrader/tessera,jmptrader/tessera,Slach/tessera,tessera-metrics/tessera,tessera-metrics/tessera,section-io/tessera,section-io/tessera,jmptrader/tessera,aalpern/tess...
--- +++ @@ -1,14 +1,15 @@ -import * as logging from './core/log' -import * as charts from './charts/core' -import * as factory from './models/items/factory' -import * as app from './app/app' -import * as edit from './edit/edit' -import { actions } from './core/action' +import * as logging from './core/log' ...
005c771566fb87cdbe54e1699b4bdf1ac1d7d00a
src/Theme/Container.ts
src/Theme/Container.ts
import ListenerAdapter from '../Observer/ListenerAdapter'; import Observer from '../Observer/Observer'; import ThemesManager from './ThemesManager'; import ThemesRegistry, {Theme} from './ThemesRegistry'; class Container { registry: ThemesRegistry; currentThemeAdapter: ListenerAdapter<Theme>; currentTheme: Obser...
import ListenerAdapter from '../Observer/ListenerAdapter'; import Observer from '../Observer/Observer'; import DataStorage from '../Storage/DataStorage'; import ThemesManager from './ThemesManager'; import ThemesRegistry, {Theme} from './ThemesRegistry'; class Container { registry: ThemesRegistry; currentThemeAdap...
Connect store to themes manager.
Connect store to themes manager.
TypeScript
mit
enbock/Time-Tracker,enbock/Time-Tracker,enbock/Time-Tracker,enbock/Time-Tracker
--- +++ @@ -1,5 +1,6 @@ import ListenerAdapter from '../Observer/ListenerAdapter'; import Observer from '../Observer/Observer'; +import DataStorage from '../Storage/DataStorage'; import ThemesManager from './ThemesManager'; import ThemesRegistry, {Theme} from './ThemesRegistry'; @@ -8,11 +9,23 @@ currentThem...
7ec143e90e11aaa5146e1eeff95d97d3e4dff1ab
ui/src/shared/components/threesizer/DivisionHeader.tsx
ui/src/shared/components/threesizer/DivisionHeader.tsx
import React, {PureComponent} from 'react' import DivisionMenu, { MenuItem, } from 'src/shared/components/threesizer/DivisionMenu' interface Props { onMinimize: () => void onMaximize: () => void buttons: JSX.Element[] menuOptions?: MenuItem[] name?: string } class DivisionHeader extends PureComponent<Prop...
import React, {PureComponent} from 'react' import DivisionMenu, { MenuItem, } from 'src/shared/components/threesizer/DivisionMenu' interface Props { onMinimize: () => void onMaximize: () => void buttons: JSX.Element[] menuOptions?: MenuItem[] name?: string } class DivisionHeader extends PureComponent<Prop...
Move division name rendering into getter
Move division name rendering into getter
TypeScript
mit
influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,nooproblem/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,li-ang/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem...
--- +++ @@ -13,17 +13,25 @@ class DivisionHeader extends PureComponent<Props> { public render() { - const {name} = this.props - return ( <div className="threesizer--header"> - {name && <div className="threesizer--header-name">{name}</div>} + {this.renderName} <div className...
c7bcf55e2fb1e904d058565905352d8da84a6ac4
recaptcha/recaptcha-value-accessor.directive.ts
recaptcha/recaptcha-value-accessor.directive.ts
import { forwardRef, Directive } from '@angular/core'; import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms'; import { RecaptchaComponent } from './recaptcha.component'; export const RECAPTCHA_VALUE_ACCESSOR: any = { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => RecaptchaValueAcc...
import { forwardRef, Directive } from '@angular/core'; import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms'; import { RecaptchaComponent } from './recaptcha.component'; export const RECAPTCHA_VALUE_ACCESSOR: any = { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => RecaptchaValueAcc...
Reset the captcha if its value it set to falsey
Reset the captcha if its value it set to falsey
TypeScript
mit
DethAriel/ng-recaptcha,DethAriel/ng-recaptcha,DethAriel/ng-recaptcha,DethAriel/ng2-recaptcha,DethAriel/ng-recaptcha
--- +++ @@ -20,7 +20,7 @@ constructor(private host: RecaptchaComponent) { } writeValue(value: string): void { - if (value == null) { + if (!value) { this.host.reset(); } }
1cef63ff7984a5d32e1719b4abcb2f3fb502ba1e
src/Types.ts
src/Types.ts
import { IncomingMessage } from 'http'; import { Buffer } from 'buffer'; /** * Simple utility Hash array type */ export type ObjectMap<T> = {[key: string]: T}; /** * A Valid HTTP operation */ export type HttpVerb = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'OPTIONS' | 'PATCH'; /** * Enumaration of valid HTTP verbs. ...
import { IncomingMessage } from 'http'; import { Buffer } from 'buffer'; /** * Simple utility Hash array type */ export type ObjectMap<T> = {[key: string]: T}; /** * A Valid HTTP operation */ export type HttpVerb = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'OPTIONS' | 'PATCH'; /** * Enumaration of valid HTTP verbs. ...
Update the HttpVerbs enum so intel sense will work with it.
Update the HttpVerbs enum so intel sense will work with it.
TypeScript
mit
syrp-nz/ts-lambda-handler,syrp-nz/ts-lambda-handler
--- +++ @@ -14,14 +14,14 @@ /** * Enumaration of valid HTTP verbs. */ -export const HttpVerbs: ObjectMap<HttpVerb> = { +export const HttpVerbs = Object.freeze({ GET: 'GET', POST: 'POST', PUT: 'PUT', DELETE: 'DELETE', OPTIONS: 'OPTIONS', PATCH: 'PATCH'...
7b97aa473ca8a9e6d98fa81583058c507a4a0885
packages/ionic/src/layouts/vertical/vertical-layout.ts
packages/ionic/src/layouts/vertical/vertical-layout.ts
import { Component } from '@angular/core'; import { JsonFormsState, RankedTester, rankWith, uiTypeIs } from '@jsonforms/core'; import { JsonFormsIonicLayout } from '../JsonFormsIonicLayout'; import { NgRedux } from '@angular-redux/store'; @Component({ selector: 'jsonforms-vertical-layout', template: ` <div *...
import { Component } from '@angular/core'; import { JsonFormsState, RankedTester, rankWith, uiTypeIs } from '@jsonforms/core'; import { JsonFormsIonicLayout } from '../JsonFormsIonicLayout'; import { NgRedux } from '@angular-redux/store'; @Component({ selector: 'jsonforms-vertical-layout', template: ` <ion-l...
Make use of ion-list for vertical layout
[ionic] Make use of ion-list for vertical layout
TypeScript
mit
qb-project/jsonforms,qb-project/jsonforms,qb-project/jsonforms
--- +++ @@ -6,13 +6,13 @@ @Component({ selector: 'jsonforms-vertical-layout', template: ` - <div *ngFor="let element of uischema?.elements"> + <ion-list *ngFor="let element of uischema?.elements"> <jsonforms-outlet [uischema]="element" [path]="path" ...
3386f8286022d03880d30f7db9ffeed85af57262
src/config/proxy-configuration.ts
src/config/proxy-configuration.ts
import { GraphQLSchema } from 'graphql'; import { FieldMetadata } from '../extended-schema/extended-schema'; export interface ProxyConfig { endpoints: EndpointConfig[] } interface EndpointConfigBase { namespace: string typePrefix: string fieldMetadata?: {[key: string]: FieldMetadata} url?: string ...
import { GraphQLSchema } from 'graphql'; import { FieldMetadata } from '../extended-schema/extended-schema'; export interface ProxyConfig { endpoints: EndpointConfig[] } interface EndpointConfigBase { namespace?: string typePrefix?: string fieldMetadata?: {[key: string]: FieldMetadata} url?: strin...
Make schema namespacing optional and added schema identifier
Make schema namespacing optional and added schema identifier
TypeScript
mit
AEB-labs/graphql-weaver,AEB-labs/graphql-weaver
--- +++ @@ -6,11 +6,12 @@ } interface EndpointConfigBase { - namespace: string - typePrefix: string + namespace?: string + typePrefix?: string fieldMetadata?: {[key: string]: FieldMetadata} url?: string schema?: GraphQLSchema + identifier?: string } interface HttpEndpointConfig e...
b25647f09203ebd6cc3a69fe45c2c8e31afdb3c5
src/index.ts
src/index.ts
import { getAST } from './ast'; import { emit } from './emitter'; declare function require(name: string); declare var process: any; (function () { if (typeof process !== 'undefined' && process.nextTick && !process.browser && typeof require !== "undefined") { var fs = require('fs'); if (process.argv.length <...
import { getAST } from './ast'; import { emit } from './emitter'; declare function require(name: string); declare var process: any; (function () { if (typeof process !== 'undefined' && process.nextTick && !process.browser && typeof require !== "undefined") { var fs = require('fs'); if (process.argv.length <...
Add run ad run_wrapper dummy to initial context
Add run ad run_wrapper dummy to initial context
TypeScript
mit
AmnisIO/typewriter,AmnisIO/typewriter,AmnisIO/typewriter
--- +++ @@ -11,7 +11,7 @@ process.exit(); var fileNames = process.argv.slice(2); const sourceFile = getAST(fileNames); - const result = emit(sourceFile, {}); + const result = emit(sourceFile, { run: '', run_wrapper: '' }); console.log(result.emitted_string); process.exit(); }
428ac84c602f47df3a7edd6a704245f40736b5b6
src/index.ts
src/index.ts
/** * node-win32-api * * @author waiting * @license MIT * @link https://github.com/waitingsong/node-win32-api */ import {parse_windef} from './lib/helper'; import * as User32 from './lib/user32/index'; export {User32 as U}; export {User32}; import * as Kernel32 from './lib/kernel32/index'; export {Kernel32 as ...
/** * node-win32-api * * @author waiting * @license MIT * @link https://github.com/waitingsong/node-win32-api */ import {parse_windef} from './lib/helper'; import * as windef from './lib/windef'; parse_windef(windef); // must at top export {windef}; import * as Conf from './lib/conf'; export {Conf as conf}; ...
Set parse_windef(windef) at top for gloabl effect
Set parse_windef(windef) at top for gloabl effect
TypeScript
mit
waitingsong/node-win32-api,waitingsong/node-win32-api,waitingsong/node-win32-api
--- +++ @@ -7,6 +7,13 @@ */ import {parse_windef} from './lib/helper'; + +import * as windef from './lib/windef'; +parse_windef(windef); // must at top +export {windef}; + +import * as Conf from './lib/conf'; +export {Conf as conf}; import * as User32 from './lib/user32/index'; export {User32 as U}; @@ -26...
36fec781975f405e102fc9c299b691b6b70d1671
src/plan-parser.ts
src/plan-parser.ts
const readPlan = require('./hcl-hil.js').readPlan; export namespace terraform { enum DiffAttrType { DiffAttrUnknown = 0, DiffAttrInput, DiffAttrOutput } export interface ResourceAttrDiff { Old: string; New: string; NewComputed: boolean; NewRemoved: boolean; NewExtra: any; RequiresNew: boolean; Se...
const readPlan = require('./hcl-hil.js').readPlan; export namespace terraform { enum DiffAttrType { DiffAttrUnknown = 0, DiffAttrInput, DiffAttrOutput } export interface ResourceAttrDiff { Old: string; New: string; NewComputed: boolean; NewRemoved: boolean; NewExtra: any; RequiresNew: boolean; Se...
Add type info to terraform.Plan.Diff
Add type info to terraform.Plan.Diff
TypeScript
mpl-2.0
hashicorp/vscode-terraform,hashicorp/vscode-terraform,mauve/vscode-terraform,mauve/vscode-terraform,mauve/vscode-terraform,mauve/vscode-terraform,hashicorp/vscode-terraform
--- +++ @@ -38,7 +38,7 @@ } export interface Plan { - Diff: any; + Diff: Diff; Module: any; State: any; Vars: { [key: string]: any };
47302147abed1381f87f8053d7c4cd58c9ca0c67
tests/cases/fourslash/completionInFunctionLikeBody.ts
tests/cases/fourslash/completionInFunctionLikeBody.ts
/// <reference path='fourslash.ts'/> //// class Foo { //// bar () { //// /*1*/ //// class Foo1 { //// bar1 () { //// /*2*/ //// } //// /*3*/ //// } //// } //// /*4*/ //// } verify.completions( { marker: ["1", "2"], ...
/// <reference path='fourslash.ts'/> //// class Foo { //// bar () { //// /*1*/ //// class Foo1 { //// bar1 () { //// /*2*/ //// } //// /*3*/ //// } //// } //// /*4*/ //// } verify.completions( { marker: ["1", "2"], ...
Move await keyword to inside of function and test
Move await keyword to inside of function and test
TypeScript
apache-2.0
kpreisser/TypeScript,weswigham/TypeScript,alexeagle/TypeScript,nojvek/TypeScript,alexeagle/TypeScript,nojvek/TypeScript,weswigham/TypeScript,donaldpipowitch/TypeScript,minestarks/TypeScript,SaschaNaz/TypeScript,donaldpipowitch/TypeScript,microsoft/TypeScript,Microsoft/TypeScript,RyanCavanaugh/TypeScript,kitsonk/TypeScr...
--- +++ @@ -16,7 +16,7 @@ verify.completions( { marker: ["1", "2"], - includes: "async", + includes: ["async", "await"], excludes: ["public", "private", "protected", "constructor", "readonly", "static", "abstract", "get", "set"], }, { marker: ["3", "4"], exact: completi...
97d45ada47675c90900d7f30ee0b690ff5765636
test/lib/states.ts
test/lib/states.ts
'use strict'; import assert from 'assert'; import GitLabStateHelper from '../../src/lib/states'; const projectId = process.env.GITLAB_TEST_PROJECT; describe('States', function () { describe('constructor()', function () { it('should throw an error with invalid url', function() { assert.throws(...
'use strict'; import assert from 'assert'; import GitLabStateHelper from '../../src/lib/states'; const projectId = process.env.GITLAB_TEST_PROJECT; describe('States', function () { describe('constructor()', function () { it('should throw an error with invalid url', function() { assert.throws(...
Extend getState() timeout from 5s to 30s
test: Extend getState() timeout from 5s to 30s
TypeScript
mit
sebbo2002/gitlab-badges,sebbo2002/gitlab-badges
--- +++ @@ -20,7 +20,7 @@ }); describe('getState()', function() { - this.timeout(5000); + this.timeout(30000); it('should work', projectId ? async function() { const states = await new GitLabStateHelper();
bde150fbe877b977600aa8a9dd9ad6bc4373e807
app/scripts/components/form-react/FormGroup.tsx
app/scripts/components/form-react/FormGroup.tsx
import * as React from 'react'; import { WrappedFieldMetaProps } from 'redux-form'; import { FieldError } from './FieldError'; import { FormField } from './types'; interface FormGroupProps extends FormField { meta: WrappedFieldMetaProps; children: React.ReactChildren; } export const FormGroup = (props: FormGroup...
import * as React from 'react'; // @ts-ignore import { clearFields, WrappedFieldMetaProps } from 'redux-form'; import { FieldError } from './FieldError'; import { FormField } from './types'; interface FormGroupProps extends FormField { meta: WrappedFieldMetaProps; children: React.ReactChildren; } export class Fo...
Clear field in Redux-Form when field is unmounted
Clear field in Redux-Form when field is unmounted [WAL-1343]
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -1,5 +1,6 @@ import * as React from 'react'; -import { WrappedFieldMetaProps } from 'redux-form'; +// @ts-ignore +import { clearFields, WrappedFieldMetaProps } from 'redux-form'; import { FieldError } from './FieldError'; import { FormField } from './types'; @@ -9,15 +10,22 @@ children: React.React...
e3b2753cace9a0b9854d18e633ef7cb3e8027ac9
demo/app/app.routing.ts
demo/app/app.routing.ts
import {RouterModule, Routes} from '@angular/router'; import {ModuleWithProviders} from '@angular/core'; import {MessagesDemoComponent} from './messages-demo.component'; const routes: Routes = [ {path: '', redirectTo: 'edit', pathMatch: 'full'}, {path: 'messages', component: MessagesDemoComponent} ]; export ...
import {RouterModule, Routes} from '@angular/router'; import {ModuleWithProviders} from '@angular/core'; import {MessagesDemoComponent} from './messages-demo.component'; const routes: Routes = [ { path: '', redirectTo: 'edit', pathMatch: 'full' }, { path: 'messages', component: MessagesDemoComponent } ]; exp...
Adjust to code style rules
Adjust to code style rules
TypeScript
apache-2.0
dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2
--- +++ @@ -3,8 +3,8 @@ import {MessagesDemoComponent} from './messages-demo.component'; const routes: Routes = [ - {path: '', redirectTo: 'edit', pathMatch: 'full'}, - {path: 'messages', component: MessagesDemoComponent} + { path: '', redirectTo: 'edit', pathMatch: 'full' }, + { path: 'messages', com...
e0f837ca87aac19f1cd43f274c18bae11a3f4dae
pages/_app.tsx
pages/_app.tsx
import { Fragment } from "react" import App, { Container } from "next/app" import Head from "next/head" import "normalize.css/normalize.css" // A custom app to support importing CSS files globally class MyApp extends App { public render(): JSX.Element { const { Component, pageProps } = this.props return ( ...
import { Fragment } from "react" import App, { Container } from "next/app" import Head from "next/head" import "normalize.css/normalize.css" // A custom app to support importing CSS files globally class MyApp extends App { public render(): JSX.Element { const { Component, pageProps } = this.props return ( ...
Increase width of content on smaller screens
Increase width of content on smaller screens
TypeScript
mit
JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk
--- +++ @@ -19,7 +19,19 @@ <style jsx>{` div { - width: 70vw; + width: calc(100vw - 32px); + } + + @media (min-width: 480px) { + div { + width: 90vw; + } + } + + @media (min-width: 1024px) { + ...
960dfb4b8980bed232e7361d99b23871c202e535
src/app/auth.http.service.ts
src/app/auth.http.service.ts
import { Injectable } from '@angular/core'; import { AuthService } from './auth.service'; import { Headers, Http, Response, ResponseOptionsArgs } from '@angular/http'; import { Observable } from 'rxjs/Observable'; @Injectable() export class AuthHttpService { constructor(private http: Http, private authService: AuthS...
import { Injectable } from '@angular/core'; import { AuthService } from './auth.service'; import { Headers, Http, Response, ResponseOptionsArgs } from '@angular/http'; import { Observable } from 'rxjs/Observable'; @Injectable() export class AuthHttpService { constructor(private http: Http, private authService: AuthS...
Add other methods to AuthHttpService
Add other methods to AuthHttpService
TypeScript
mit
alex-dmtr/roadmap-angular,alex-dmtr/roadmap-angular,alex-dmtr/roadmap-angular
--- +++ @@ -24,4 +24,41 @@ return this.http.get(url, _options); } + + post(url: string, body: any, options?: ResponseOptionsArgs): Observable<Response> { + let _options = this.appendHeaders(options); + + return this.http.post(url, body, _options); + } + + delete(url: string, options?: ResponseOptio...
55f4dac3d3569fb4b8c35f5e63ead24b97316921
packages/tux/src/utils/accessors.ts
packages/tux/src/utils/accessors.ts
/** * Gets the value of a property on an object. * * @param {Object} obj The value to be clamped * @param {String} key The lower boundary of the output range * @returns {Object} the property value or 'null'. */ export function get(obj: any, key: string | string[]): any { if (key.length === 0 || !obj) { retu...
/** * Gets the value of a property on an object. * * @param {Object} obj The value to be clamped * @param {String} key The lower boundary of the output range * @returns {Object} the property value or 'null'. */ export function get(obj: any, key: string | string[]): any { if (key.length === 0 || !obj) { retu...
Add an empty-key guard around logic in set
Add an empty-key guard around logic in set
TypeScript
mit
aranja/tux,aranja/tux,aranja/tux
--- +++ @@ -20,7 +20,7 @@ const parts = _splitKey(key) if (parts.length === 1) { obj[parts[0]] = value - } else { + } else if (parts.length > 1) { const lastKeyPartIndex = parts.length - 1 const parent = get(obj, parts.slice(0, lastKeyPartIndex)) const lastKeyPart = parts[lastKeyPartIndex]
22984387b04d0fc775d1b50c1a898a43737e1690
src/loaders/typeormLoader.ts
src/loaders/typeormLoader.ts
import { MicroframeworkLoader, MicroframeworkSettings } from 'microframework-w3tec'; import { createConnection } from 'typeorm'; import { env } from '../env'; export const typeormLoader: MicroframeworkLoader = async (settings: MicroframeworkSettings | undefined) => { const connection = await createConnection({ ...
import { MicroframeworkLoader, MicroframeworkSettings } from 'microframework-w3tec'; import { createConnection, getConnectionOptions } from 'typeorm'; import { env } from '../env'; export const typeormLoader: MicroframeworkLoader = async (settings: MicroframeworkSettings | undefined) => { const loadedConnectionO...
Load options by type orm (e.g. env vars, config files) and then overwrite with env.ts
Load options by type orm (e.g. env vars, config files) and then overwrite with env.ts
TypeScript
mit
w3tecch/express-typescript-boilerplate,w3tecch/express-typescript-boilerplate,w3tecch/express-typescript-boilerplate
--- +++ @@ -1,11 +1,13 @@ import { MicroframeworkLoader, MicroframeworkSettings } from 'microframework-w3tec'; -import { createConnection } from 'typeorm'; +import { createConnection, getConnectionOptions } from 'typeorm'; import { env } from '../env'; export const typeormLoader: MicroframeworkLoader = async (...
eeac1b49bc40fe6d8c43f0bf22405d21419fc482
src/flutter/capabilities.ts
src/flutter/capabilities.ts
import { versionIsAtLeast } from "../utils"; export class FlutterCapabilities { public static get empty() { return new FlutterCapabilities("0.0.0"); } public version: string; constructor(flutterVersion: string) { this.version = flutterVersion; } get supportsPidFileForMachine() { return versionIsAtLeast(this....
import { versionIsAtLeast } from "../utils"; export class FlutterCapabilities { public static get empty() { return new FlutterCapabilities("0.0.0"); } public version: string; constructor(flutterVersion: string) { this.version = flutterVersion; } get supportsPidFileForMachine() { return versionIsAtLeast(this....
Fix version that has the test fix in
Fix version that has the test fix in
TypeScript
mit
Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code
--- +++ @@ -14,5 +14,5 @@ get supportsCreatingSamples() { return versionIsAtLeast(this.version, "1.0.0"); } get supportsMultipleSamplesPerElement() { return versionIsAtLeast(this.version, "1.2.2"); } get supportsDevTools() { return versionIsAtLeast(this.version, "1.1.0"); } - get hasTestGroupFix() { return vers...
f731317ef17457628ef32cd1f8d3454498ac6f95
src/registerServiceWorker.ts
src/registerServiceWorker.ts
/* eslint-disable no-console */ import { register } from 'register-service-worker'; if (process.env.NODE_ENV === 'production') { register(`${process.env.BASE_URL}service-worker.js`, { ready() { console.log( 'App is being served from cache by a service worker.\n' + 'For more details, visi...
/* eslint-disable no-console */ import { register } from 'register-service-worker'; if (process.env.NODE_ENV === 'production') { register(`${process.env.BASE_URL}service-worker.js`, { ready() { console.log( 'App is being served from cache by a service worker.\n' + 'For more details, visi...
Add custom event for updated
Add custom event for updated
TypeScript
mit
babsey/nest-desktop,babsey/nest-desktop,babsey/nest-desktop,babsey/nest-desktop,babsey/nest-desktop
--- +++ @@ -19,9 +19,11 @@ updatefound() { console.log('New content is downloading.'); }, - updated() { - console.log('New content is available; refreshing...'); - window.location.reload(); + updated(registration) { + console.log('New content is available; please refresh.'); + ...
b35f7725d80c5c6f6a2bd3eda2ce91d6b63f0258
src/client/components/Dropdown.tsx
src/client/components/Dropdown.tsx
import React from 'react' import classnames from 'classnames' import { Backdrop } from './Backdrop' export interface DropdownProps { label: string | React.ReactElement children: React.ReactElement<{onClick: () => void}>[] } export interface DropdownState { open: boolean } export class Dropdown extends React.Pu...
import React from 'react' import classnames from 'classnames' export interface DropdownProps { label: string | React.ReactElement children: React.ReactElement<{onClick: () => void}>[] } export interface DropdownState { open: boolean } export class Dropdown extends React.PureComponent<DropdownProps, DropdownSta...
Remove backdrop from regular dropdown
Remove backdrop from regular dropdown Backdrop causes video menu to be unclickable
TypeScript
mit
jeremija/peer-calls,jeremija/peer-calls,jeremija/peer-calls
--- +++ @@ -1,6 +1,5 @@ import React from 'react' import classnames from 'classnames' -import { Backdrop } from './Backdrop' export interface DropdownProps { label: string | React.ReactElement @@ -44,7 +43,6 @@ return ( <div className='dropdown'> <button onClick={handleClick} >{this.props...
8c5c59a02a636d5a08733d2477311fa82c82007e
src/Lime/Protocol/Security/Authentication.ts
src/Lime/Protocol/Security/Authentication.ts
export class Authentication { scheme: AuthenticationScheme; } export class GuestAuthentication extends Authentication { scheme = AuthenticationScheme.GUEST; } export class TransportAuthentication extends Authentication { scheme = AuthenticationScheme.TRANSPORT; } export class PlainAuthentication extends Authentic...
export class Authentication { scheme: AuthenticationScheme; } export class GuestAuthentication extends Authentication { scheme = AuthenticationScheme.GUEST; } export class TransportAuthentication extends Authentication { scheme = AuthenticationScheme.TRANSPORT; } export class PlainAuthentication extends Authentic...
Add parametrized constructors to plain and key authentications
Add parametrized constructors to plain and key authentications
TypeScript
apache-2.0
takenet/lime-js,takenet/lime-js
--- +++ @@ -10,10 +10,18 @@ export class PlainAuthentication extends Authentication { scheme = AuthenticationScheme.PLAIN; password: string; + constructor(password: string) { + super(); + this.password = password; + } } export class KeyAuthentication extends Authentication { scheme = Authenticatio...
d94c887c8e78e57565fe09714024d4b82cbc7cd7
tests/cases/fourslash/extendArrayInterfaceMember.ts
tests/cases/fourslash/extendArrayInterfaceMember.ts
/// <reference path="fourslash.ts"/> ////var x = [1, 2, 3]; ////var y/*y*/ = x./*1*/pop/*2*/(5); //// /* BUG 703066 verify.errorExistsBetweenMarkers("1", "2"); verify.numberOfErrorsInCurrentFile(2); // Expected errors are: // - Supplied parameters do not match any signature of call target. // - Could not s...
/// <reference path="fourslash.ts"/> ////var x = [1, 2, 3]; ////var y/*y*/ = x./*1*/pop/*2*/(5); //// //BUG 703066 verify.errorExistsBetweenMarkers("1", "2"); verify.numberOfErrorsInCurrentFile(2); // Expected errors are: // - Supplied parameters do not match any signature of call target. // - Could not se...
Update fourslash test for bug fixes
Update fourslash test for bug fixes
TypeScript
apache-2.0
mbrowne/typescript-dci,hippich/typescript,hippich/typescript,mbrowne/typescript-dci,hippich/typescript,popravich/typescript,popravich/typescript,mbebenita/shumway.ts,mbrowne/typescript-dci,popravich/typescript,fdecampredon/jsx-typescript-old-version,mbebenita/shumway.ts,mbebenita/shumway.ts,fdecampredon/jsx-typescript-...
--- +++ @@ -4,7 +4,7 @@ ////var y/*y*/ = x./*1*/pop/*2*/(5); //// -/* BUG 703066 +//BUG 703066 verify.errorExistsBetweenMarkers("1", "2"); verify.numberOfErrorsInCurrentFile(2); // Expected errors are: @@ -21,4 +21,3 @@ goTo.marker("y"); verify.quickInfoIs("number"); verify.numberOfErrorsInCurrentFile(0); -...
5abc7f7cb883215eda1c64474448d041aee1d68b
lib/utils/Config.ts
lib/utils/Config.ts
import {ILogger} from "./ILogger"; import * as _ from "lodash"; import {genId} from "./uuid"; import {MutedLogger} from "./MutedLogger"; export type NeographyConfigParams = { host:string; username:string; password:string; uidGenerator?:() => string; objectTransform?:((obj:any) => any)[]; sessio...
import {ILogger} from "./ILogger"; import * as _ from "lodash"; import {genId} from "./uuid"; import {MutedLogger} from "./MutedLogger"; export type NeographyConfigParams = { host:string; username:string; password:string; uidGenerator?:() => string; objectTransform?:((obj:any) => any)[]; sessio...
Fix wrong default property assignment
Fix wrong default property assignment
TypeScript
mit
robak86/neography
--- +++ @@ -28,7 +28,7 @@ _.merge(this, { objectTransform: [], uidGenerator: genId, - poolSize: 10, + sessionsPoolSize: 10, logger: new MutedLogger(), debug: false }, params);
8068d5a72c5ce9ee6f2bf8668f4e41f1d2c86c56
src/types/sdk.ts
src/types/sdk.ts
/** * @license * Copyright 2019 Google Inc. * * 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...
/** * @license * Copyright 2019 Google Inc. * * 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...
Include Firebase performance SDK in the test.
Include Firebase performance SDK in the test.
TypeScript
apache-2.0
FirebaseExtended/firebase-js-sdk-performance-dashboard,FirebaseExtended/firebase-js-sdk-performance-dashboard
--- +++ @@ -22,6 +22,7 @@ Firestore = 'firebase-firestore.js', Functions = 'firebase-functions.js', Messaging = 'firebase-messaging.js', + Performance = 'firebase-performance.js', Storage = 'firebase-storage.js', } @@ -32,6 +33,7 @@ Sdk.Firestore, Sdk.Functions, Sdk.Messaging, + Sdk.Performa...
987ad8d7b7361a95131d7033be00bbd850424644
src/main.ts
src/main.ts
///<reference path="../bower_components/babylonjs/dist/preview release/babylon.d.ts"/> ///<reference path="../typings/browser.d.ts"/> import Nanoshooter from "./Nanoshooter" // This main script is the entry point for the web browser. // - Instantiate and start the Nanoshooter game. // - Log some timing/profiling...
///<reference path="../bower_components/babylonjs/dist/preview release/babylon.d.ts"/> ///<reference path="../typings/browser.d.ts"/> import Nanoshooter from "./Nanoshooter" // This main script is the entry point for the web browser. // - Instantiate and start the Nanoshooter game. // - Log some timing/profiling...
Fix page load profiling debug log.
Fix page load profiling debug log.
TypeScript
mit
ChaseMoskal/Nanoshooter,ChaseMoskal/Nanoshooter
--- +++ @@ -9,7 +9,7 @@ // - Log some timing/profiling information. // - Start running the game. -const timeBeforeInitialize = performance.now() +const timeBeforeInitialize = (+new Date) // Initialize the Nanoshooter game. const nanoshooter = window["nanoshooter"] = new Nanoshooter({ @@ -28,7 +28,7 @@ na...
9a25649e2d28f777c9ef41d1f0545b2bda782fc2
applications/mail/src/app/components/sidebar/MailSidebar.tsx
applications/mail/src/app/components/sidebar/MailSidebar.tsx
import React from 'react'; import { c } from 'ttag'; import { Location } from 'history'; import { Sidebar, SidebarPrimaryButton, SidebarNav } from 'react-components'; import { MESSAGE_ACTIONS } from '../../constants'; import MailSidebarList from './MailSidebarList'; import SidebarVersion from './SidebarVersion'; impor...
import React from 'react'; import { c } from 'ttag'; import { Location } from 'history'; import { Sidebar, SidebarPrimaryButton, SidebarNav, MainLogo } from 'react-components'; import { MESSAGE_ACTIONS } from '../../constants'; import MailSidebarList from './MailSidebarList'; import SidebarVersion from './SidebarVersi...
Fix logo in mobile sidebar
[Hotfix] Fix logo in mobile sidebar
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -1,7 +1,7 @@ import React from 'react'; import { c } from 'ttag'; import { Location } from 'history'; -import { Sidebar, SidebarPrimaryButton, SidebarNav } from 'react-components'; +import { Sidebar, SidebarPrimaryButton, SidebarNav, MainLogo } from 'react-components'; import { MESSAGE_ACTIONS } from...
2a30c1ad011e31631f1b5d40bbd9799336422c20
source/services/time/time.service.ts
source/services/time/time.service.ts
import { OpaqueToken, Provider } from 'angular2/core'; import * as moment from 'moment'; import { CompareResult } from '../../types/compareResult'; import { defaultFormats } from '../date/date.module'; export interface ITimeUtility { compareTimes(time1: string, time2: string): CompareResult; } export class TimeUtil...
import { OpaqueToken, Provider } from 'angular2/core'; import * as moment from 'moment'; import { CompareResult } from '../../types/compareResult'; import { defaultFormats } from '../date/date.module'; export interface ITimeUtility { compareTimes(time1: string, time2: string): CompareResult; } export class TimeUtil...
Migrate time utility to angular 2.
Migrate time utility to angular 2.
TypeScript
mit
RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities
--- +++ @@ -15,8 +15,8 @@ let start: moment.Moment = moment(time1, format); let end: moment.Moment = moment(time2, format); - if (start.hours() == end.hours() - && start.minutes() == end.minutes()) { + if (start.hours() === end.hours() + && start.minutes() === end.minutes()) { return CompareResult.e...
55e28a5872218548e9a29dda5d787205ecea3f0f
app/src/lib/markdown-filters/close-keyword-filter.ts
app/src/lib/markdown-filters/close-keyword-filter.ts
import { INodeFilter, MarkdownContext } from './node-filter' export class CloseKeywordFilter implements INodeFilter { public constructor( /** The context from which the markdown content originated from - such as a PullRequest or PullRequest Comment */ private readonly markdownContext: MarkdownContext ) {} ...
import { INodeFilter, MarkdownContext } from './node-filter' export class CloseKeywordFilter implements INodeFilter { /** Markdown locations that can have closing keywords */ private issueClosingLocations: ReadonlyArray<MarkdownContext> = [ 'Commit', 'PullRequest', ] public constructor( /** The co...
Add variable of types of context this filter accepts
Add variable of types of context this filter accepts
TypeScript
mit
shiftkey/desktop,desktop/desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,desktop/desktop
--- +++ @@ -1,6 +1,12 @@ import { INodeFilter, MarkdownContext } from './node-filter' export class CloseKeywordFilter implements INodeFilter { + /** Markdown locations that can have closing keywords */ + private issueClosingLocations: ReadonlyArray<MarkdownContext> = [ + 'Commit', + 'PullRequest', + ] + ...
02231f542cfbe4b88c6b28c13656a1ece0541d0b
addons/actions/src/preview/action.ts
addons/actions/src/preview/action.ts
import uuid from 'uuid/v1'; import { addons } from '@storybook/addons'; import { EVENT_ID } from '../constants'; import { ActionDisplay, ActionOptions, HandlerFunction } from '../models'; export function action(name: string, options: ActionOptions = {}): HandlerFunction { const actionOptions = { ...options, };...
import uuid from 'uuid/v1'; import { addons } from '@storybook/addons'; import { EVENT_ID } from '../constants'; import { ActionDisplay, ActionOptions, HandlerFunction } from '../models'; export function action(name: string, options: ActionOptions = {}): HandlerFunction { const actionOptions = { ...options, };...
Increase default minDepth to 8 & FIX depth becoming NaN
Increase default minDepth to 8 & FIX depth becoming NaN
TypeScript
mit
storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook
--- +++ @@ -20,7 +20,7 @@ data: { name, args }, options: { ...actionOptions, - depth: minDepth + actionOptions.depth, + depth: minDepth + (actionOptions.depth || 3), }, }; channel.emit(EVENT_ID, actionDisplayToEmit);
9a7b4f7a1e98c7a6fc468b6670bd59ec9cd9709b
src/lib/indentCode.ts
src/lib/indentCode.ts
import detectIndent from 'detect-indent'; import redent from 'redent'; /** * Indent code. * * @export * @param {string} code Code. * @returns {string} */ export default function indentCode(code: string): string { if (typeof code === 'string') { let indent = detectIndent(code).indent || '\t'; code = redent(c...
import detectIndent from 'detect-indent'; import redent from 'redent'; /** * Indent code. * * @export * @param {string} code Code. * @returns {string} */ export default function indentCode(code: string): string { if (typeof code === 'string') { const indent = detectIndent(code).indent || '\t'; code = reden...
Update code due to new `redent`
:alien: Update code due to new `redent`
TypeScript
mit
gluons/vue-highlight.js
--- +++ @@ -10,8 +10,11 @@ */ export default function indentCode(code: string): string { if (typeof code === 'string') { - let indent = detectIndent(code).indent || '\t'; - code = redent(code, 0, indent); + const indent = detectIndent(code).indent || '\t'; + + code = redent(code, 0, { + indent + }); ...
a9c143ef4311bc9c3f19add7812ae5750ccbf51a
src/delir-core/src/project/timelane.ts
src/delir-core/src/project/timelane.ts
// @flow import * as _ from 'lodash' import Layer from './layer' import {TimelaneScheme} from './scheme/timelane' export default class TimeLane { static deserialize(timelaneJson: TimelaneScheme) { const timelane = new TimeLane const config = _.pick(timelaneJson.config, ['name']) as TimelaneSche...
// @flow import * as _ from 'lodash' import Clip from './clip' import {TimelaneScheme} from './scheme/timelane' export default class TimeLane { static deserialize(timelaneJson: TimelaneScheme) { const timelane = new TimeLane const config = _.pick(timelaneJson.config, ['name']) as TimelaneScheme...
Replace reference to clip on Timelane
Replace reference to clip on Timelane
TypeScript
mit
Ragg-/Delir,Ragg-/Delir,Ragg-/Delir,Ragg-/Delir
--- +++ @@ -1,6 +1,6 @@ // @flow import * as _ from 'lodash' -import Layer from './layer' +import Clip from './clip' import {TimelaneScheme} from './scheme/timelane' export default class TimeLane @@ -9,17 +9,17 @@ { const timelane = new TimeLane const config = _.pick(timelaneJson.config, ...
6893e132909f9dc7d6df88f72279a8e9558628b0
SorasNerdDen/Scripts/captureErrors.ts
SorasNerdDen/Scripts/captureErrors.ts
window.onerror = function (errorMsg, url, lineNumber, col, errorObj) { "use strict"; try { const xhr = new XMLHttpRequest(); xhr.open("POST", "/error/scripterror/", true); xhr.setRequestHeader('Content-Type', 'application/json; charset=utf-8'); xhr.send(JSON.stringify({ ...
window.onerror = function (errorMsg, url, lineNumber, col, errorObj) { "use strict"; try { const xhr = new XMLHttpRequest(); xhr.open("POST", "/error/scripterror/", true); xhr.setRequestHeader('Content-Type', 'application/json; charset=utf-8'); xhr.send(JSON.stringify({ ...
Set window name so that hyperlink target attributes can target this window
Set window name so that hyperlink target attributes can target this window
TypeScript
mit
Sora2455/Sora-s-Nerd-Den,Sora2455/Sora-s-Nerd-Den,Sora2455/Sora-s-Nerd-Den,Sora2455/Sora-s-Nerd-Den
--- +++ @@ -17,3 +17,4 @@ } return false; }; +window.name = "Sora's Nerd Den";
0aea3d14ab58a37b5cc4c4f4a48464e7dcdec939
src/vs/workbench/contrib/terminal/browser/links/terminalBaseLinkProvider.ts
src/vs/workbench/contrib/terminal/browser/links/terminalBaseLinkProvider.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. *---------------------------------------------------------------...
Fix `_activeLinks` not being disposed of
Fix `_activeLinks` not being disposed of Looks like we were calling forEach but not actually invoking `dispose` on the items. Switch to use `dispose(...)` to avoid this
TypeScript
mit
eamodio/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,eamo...
--- +++ @@ -3,14 +3,17 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ +import { dispose } from 'vs/base/common/lifecycle'; +import { TerminalLink } from 'vs/workben...
6fdc082bfdc1cad62a042cd53bdb2901274e9bfd
src/utils/saveCsvFile/saveCsvFile.ts
src/utils/saveCsvFile/saveCsvFile.ts
import { saveAs } from 'file-saver' import { Parser } from 'json2csv' import { CardData } from '../../types' const saveCsvFile = (deckName: string, cardsData: CardData[]) => { const json2csvParser = new Parser({ fields: Object.keys(cardsData[0]), withBOM: true }) const csv = json2csvParser....
import { saveAs } from 'file-saver' import { Parser } from 'json2csv' import { CardData } from '../../types' const saveCsvFile = (deckName: string, cardsData: CardData[]) => { const json2csvParser = new Parser({ fields: [ 'headword', 'form', 'example', 'defin...
Add fixed order of columns in CSV
Add fixed order of columns in CSV
TypeScript
mit
yakhinvadim/longman-to-anki-web,yakhinvadim/longman-to-anki,yakhinvadim/longman-to-anki,yakhinvadim/longman-to-anki-web,yakhinvadim/longman-to-anki
--- +++ @@ -4,7 +4,19 @@ const saveCsvFile = (deckName: string, cardsData: CardData[]) => { const json2csvParser = new Parser({ - fields: Object.keys(cardsData[0]), + fields: [ + 'headword', + 'form', + 'example', + 'definition', + 'pronunci...
0b5f8f3e0e017aecf5752eafd5f55d702bb74672
hawtio-web/src/main/webapp/app/camel/js/pageTitle.ts
hawtio-web/src/main/webapp/app/camel/js/pageTitle.ts
module Core { export class PageTitle { private titleElements: { (): string } [] = []; public addTitleElement(element:() => string):void { this.titleElements.push(element); } public getTitle():string { return this.getTitleExcluding([], ' '); } public getTitleWithSeparator(separ...
module Core { export class PageTitle { private titleElements: { (): string } [] = []; public addTitleElement(element:() => string):void { this.titleElements.push(element); } public getTitle():string { return this.getTitleExcluding([], ' '); } public getTitleWithSeparator(separ...
Make sure empty strings are excluded from title
Make sure empty strings are excluded from title
TypeScript
apache-2.0
andytaylor/hawtio,mposolda/hawtio,padmaragl/hawtio,rajdavies/hawtio,grgrzybek/hawtio,voipme2/hawtio,hawtio/hawtio,stalet/hawtio,mposolda/hawtio,uguy/hawtio,Fatze/hawtio,jfbreault/hawtio,grgrzybek/hawtio,andytaylor/hawtio,telefunken/hawtio,rajdavies/hawtio,voipme2/hawtio,uguy/hawtio,skarsaune/hawtio,padmaragl/hawtio,ugu...
--- +++ @@ -30,7 +30,7 @@ } } return answer; - }).exclude(excludes); + }).exclude(excludes).exclude(''); } }
304c3d7801dd788cb54ca32968ee5aea49538f50
tools/env/base.ts
tools/env/base.ts
import { EnvConfig } from './env-config.interface'; const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/1.0.5', RELEASEVERSION: '1.0.5' }; export = BaseConfig;
import { EnvConfig } from './env-config.interface'; const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/1.0.6', RELEASEVERSION: '1.0.6' }; export = BaseConfig;
Update release version to 1.0.6
Update release version to 1.0.6
TypeScript
mit
nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website
--- +++ @@ -3,8 +3,8 @@ const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', - RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/1.0.5', - RELEASEVERSION: '1.0.5' + RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/1.0.6', + RELEASEVERSION: '1.0.6' ...
c31c75c02db9f4d95acf9714ca5f23a46d9641c1
react-mobx-todos/src/components/FilteredTodoList.tsx
react-mobx-todos/src/components/FilteredTodoList.tsx
import * as React from "react" import { Component } from "react" import { Todo } from "../model/Todo" import { TodoList } from "./TodoList" import { Todos } from "../model/Todos" import { TodosFilter } from "../model/TodosFilter" interface Props { activeFilter: TodosFilter onTodoClick: (todo: Todo) => void, tod...
import * as React from "react" import { Component } from "react" import { Todo } from "../model/Todo" import { TodoList } from "./TodoList" import { Todos } from "../model/Todos" import { TodosFilter } from "../model/TodosFilter" interface Props { activeFilter: TodosFilter onTodoClick: (todo: Todo) => void, tod...
Add variable for return value
Add variable for return value
TypeScript
unlicense
janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations
--- +++ @@ -14,12 +14,13 @@ export class FilteredTodoList extends Component<Props, void> { private getVisibleTodos(): Todos { - return this.props.activeFilter.filterTodos(this.props.todos) + const visibleTodos = this.props.activeFilter.filterTodos(this.props.todos) + return visibleTodos } publi...
e7b2790d9031b05266cfaef47f276d5fdd7c5de0
problems/yoda-speak/solution.ts
problems/yoda-speak/solution.ts
import {ISolution} from '../solution.interface'; export class Solution implements ISolution<string, string> { static PRONOUNS: string[] = [ "I", "YOU", "HE", "SHE", "IT", "WE", "THEY" ]; static INVALID: string = "Too difficult, this sentence is."; solve(input: string) { var parts = input.split(' '); ...
import {ISolution} from '../solution.interface'; export class Solution implements ISolution<string, string> { static PRONOUNS: string[] = [ "I", "YOU", "HE", "SHE", "IT", "WE", "THEY" ]; static INVALID: string = "Too difficult, this sentence is."; solve(input: string) { var parts = input.split(' '); ...
Rearrange the string into the right order
Rearrange the string into the right order
TypeScript
unlicense
Jameskmonger/challenges
--- +++ @@ -13,7 +13,11 @@ return Solution.INVALID; } - return "yoda text output"; + var rearranged = Solution.RearrangeParts(parts); + + var end = rearranged.join(" "); + + return end; } static EqualsAnyPronoun(input: string): boolean { @@ -25,4 +29,18 @@ return false; } +...
ca8f66105b5cd8183583579ee11a2fb1cc8e60e2
client/Settings/components/Dropdown.tsx
client/Settings/components/Dropdown.tsx
import { Field } from "formik"; import React = require("react"); export const Dropdown = (props: { fieldName: string; options: {}; children: any; }) => ( <div className="c-dropdown"> {props.children} <SelectOptions {...props} /> </div> ); const SelectOptions = (props: { fieldName: string; options: {...
import { Field } from "formik"; import React = require("react"); export const Dropdown = (props: { fieldName: string; options: {}; children: any; }) => ( <div className="c-dropdown"> {props.children} <SelectOptions {...props} /> </div> ); const SelectOptions = (props: { fieldName: string; options: {...
Add react key to option elements
Add react key to option elements
TypeScript
mit
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
--- +++ @@ -15,7 +15,9 @@ const SelectOptions = (props: { fieldName: string; options: {} }) => ( <Field component="select" name={props.fieldName}> {Object.keys(props.options).map(option => ( - <option value={option}>{props.options[option]}</option> + <option value={option} key={option}> + {p...
092f6a094b6f8b979a272b918921a174de610666
home/utils/Environment.ts
home/utils/Environment.ts
import Constants from 'expo-constants'; import { Platform } from 'react-native'; import semver from 'semver'; import * as Kernel from '../kernel/Kernel'; const isProduction = !!( Constants.manifest.id === '@exponent/home' && Constants.manifest.publishedTime ); const IOSClientReleaseType = Kernel.iosClientReleaseTy...
import Constants from 'expo-constants'; import { Platform } from 'react-native'; import semver from 'semver'; import * as Kernel from '../kernel/Kernel'; const isProduction = !!( Constants.manifest?.id === '@exponent/home' && Constants.manifest?.publishedTime ); const IOSClientReleaseType = Kernel.iosClientRelease...
Fix tsc error as Constants.manifest may be null after manifest2 landed
[home]: Fix tsc error as Constants.manifest may be null after manifest2 landed
TypeScript
bsd-3-clause
exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponen...
--- +++ @@ -5,7 +5,7 @@ import * as Kernel from '../kernel/Kernel'; const isProduction = !!( - Constants.manifest.id === '@exponent/home' && Constants.manifest.publishedTime + Constants.manifest?.id === '@exponent/home' && Constants.manifest?.publishedTime ); const IOSClientReleaseType = Kernel.iosClientRel...
2e4e35bd8d76192d987ced6e5ddcc92156459cdb
src/features/attributeCompleter.ts
src/features/attributeCompleter.ts
import * as vscode from 'vscode'; import { AsciidocParser } from '../text-parser'; export class AttributeCompleter { provideCompletionItems(document: vscode.TextDocument, position: vscode.Position) { const adoc = new AsciidocParser(document.uri.fsPath) adoc.parseText(document.getText()) ...
import * as vscode from 'vscode'; import { AsciidocParser } from '../text-parser'; export class AttributeCompleter { provideCompletionItems(document: vscode.TextDocument, position: vscode.Position) { const adoc = new AsciidocParser(document.uri.fsPath) adoc.parseText(document.getText()) ...
Change iteration to something TS likes better Correct version accidental mod
Change iteration to something TS likes better Correct version accidental mod
TypeScript
mit
joaompinto/asciidoctor-vscode,joaompinto/asciidoctor-vscode,joaompinto/asciidoctor-vscode
--- +++ @@ -8,12 +8,12 @@ const adoc = new AsciidocParser(document.uri.fsPath) adoc.parseText(document.getText()) - + const attributes = adoc.document.getAttributes() let attribs = [] - for (const [key, value] of Object.entries(adoc.document.getAttributes())) - { + ...
eb5fe57e4e60069ca8ba06f2eec13437f109a34b
app/src/component/TwitterButton.tsx
app/src/component/TwitterButton.tsx
import * as React from "react"; export default class extends React.Component { public render() { // Load Twitter's widget.js in index.html. return ( <a href="https://twitter.com/share?ref_src=twsrc%5Etfw" className="twitter-share-button" ...
import * as React from "react"; export default class extends React.Component { public render() { // Load Twitter's widget.js in index.html. return ( <a href="https://twitter.com/share?ref_src=twsrc%5Etfw" className="twitter-share-button" ...
Use HTTPS only to load Twitter script
Use HTTPS only to load Twitter script
TypeScript
mit
raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d
--- +++ @@ -19,7 +19,7 @@ public componentWillMount() { const script = document.createElement("script"); - script.src = "//platform.twitter.com/widgets.js"; + script.src = "https://platform.twitter.com/widgets.js"; script.async = true; document.body.appendChild(script...
0cc5c711dfde79acebb41a9f91a3002ec9fe80cf
src/type.ts
src/type.ts
namespace fun { /** * Returns true if the value passed in is either null or undefined. */ export function isVoid(value: any): value is void { // See https://basarat.gitbooks.io/typescript/content/docs/tips/null.html return value == undefined; } export function isString(value: ...
namespace fun { /** * Returns true if the value passed in is either null or undefined. */ export function isVoid(value: any): value is void { // See https://basarat.gitbooks.io/typescript/content/docs/tips/null.html return value == undefined; } export function isString(value: ...
Add link to benchmark for toString implementation
Add link to benchmark for toString implementation
TypeScript
mit
federico-lox/fun.ts
--- +++ @@ -8,6 +8,7 @@ } export function isString(value: any): value is string { + // See http://jsperf.com/is-string-tests return typeof value === 'string'; }
1e8e3923b3bfa621ab506bd5ef344ba04ed41d92
app/components/renderForQuestions/answerState.ts
app/components/renderForQuestions/answerState.ts
import {Response} from "quill-marking-logic" interface Attempt { response: Response } function getAnswerState(attempt): boolean { return (attempt.response.optimal && attempt.response.author === undefined && attempt.author === undefined) } export default getAnswerState;
import {Response} from "quill-marking-logic" interface Attempt { response: Response } function getAnswerState(attempt: Attempt|undefined): boolean { if (attempt) { return (!!attempt.response.optimal && attempt.response.author === undefined) } return false } export default getAnswerState;
Fix answer state null error.
Fix answer state null error.
TypeScript
agpl-3.0
empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core
--- +++ @@ -4,8 +4,11 @@ response: Response } -function getAnswerState(attempt): boolean { - return (attempt.response.optimal && attempt.response.author === undefined && attempt.author === undefined) +function getAnswerState(attempt: Attempt|undefined): boolean { + if (attempt) { + return (!!attempt.respon...
24d0bfc33d97c435372f8e4fa63da567e829ac38
packages/schematics/src/scam/index.ts
packages/schematics/src/scam/index.ts
import { chain, externalSchematic, Rule } from '@angular-devkit/schematics'; import { Schema as NgComponentOptions } from '@schematics/angular/component/schema'; export interface ScamOptions extends NgComponentOptions { separateModule: boolean; } export function scam(options: ScamOptions): Rule { if (!option...
import { chain, externalSchematic, Rule } from '@angular-devkit/schematics'; import { Schema as NgComponentOptions } from '@schematics/angular/component/schema'; export interface ScamOptions extends NgComponentOptions { separateModule: boolean; } export function scam(options: ScamOptions): Rule { const ruleL...
Merge module and component as default behavior.
@wishtack/schematics:scam: Merge module and component as default behavior.
TypeScript
mit
wishtack/ng-steroids,wishtack/wishtack-steroids,wishtack/wishtack-steroids,wishtack/ng-steroids,wishtack/wishtack-steroids
--- +++ @@ -7,16 +7,18 @@ export function scam(options: ScamOptions): Rule { - if (!options.separateModule) { - throw new Error('😱 Not implemented yet!'); - } - - return chain([ + const ruleList = [ externalSchematic('@schematics/angular', 'module', options), externalSchemat...
c1e777490b9b6315e555de150f0badd894ab8fc2
ui/src/index.tsx
ui/src/index.tsx
import React from 'react'; import ReactDOM from 'react-dom'; import 'bootstrap/dist/css/bootstrap.min.css'; import './index.css'; import './buttons.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getEle...
import React from 'react'; import ReactDOM from 'react-dom'; import 'bootstrap/dist/css/bootstrap.min.css'; import './index.css'; import './buttons.css'; import App from './App'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') );
Remove unused reference to service worker
Remove unused reference to service worker
TypeScript
apache-2.0
dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web
--- +++ @@ -4,7 +4,6 @@ import './index.css'; import './buttons.css'; import App from './App'; -import * as serviceWorker from './serviceWorker'; ReactDOM.render( <React.StrictMode>
2d66c9325386534068e0cfb8fce7fb4529048cd7
app/angular/src/client/preview/types.ts
app/angular/src/client/preview/types.ts
import { StoryFn } from '@storybook/addons'; export declare const moduleMetadata: ( metadata: Partial<NgModuleMetadata> ) => (storyFn: StoryFn<StoryFnAngularReturnType>) => any; export interface NgModuleMetadata { declarations?: any[]; entryComponents?: any[]; imports?: any[]; schemas?: any[]; providers?:...
import { StoryFn } from '@storybook/addons'; export declare const moduleMetadata: ( metadata: Partial<NgModuleMetadata> ) => (storyFn: StoryFn<StoryFnAngularReturnType>) => any; export interface NgModuleMetadata { declarations?: any[]; entryComponents?: any[]; imports?: any[]; schemas?: any[]; providers?:...
REMOVE deprecated APIs from app/angular
REMOVE deprecated APIs from app/angular
TypeScript
mit
storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook
--- +++ @@ -20,10 +20,6 @@ render: () => any; } -// @deprecated Use IStorybookSection instead -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface IStoribookSection extends IStorybookSection {} - export interface IStorybookSection { kind: string; stories: IStorybookStory[]...
b238b9c2357ed33e44bbcd48cffe6255c923dd5c
packages/core/src/presentation/hooks/useMountStatusRef.hook.ts
packages/core/src/presentation/hooks/useMountStatusRef.hook.ts
import { useEffect, useRef } from 'react'; export function useMountStatusRef() { const mountStatusRef = useRef<'FIRST_RENDER' | 'MOUNTED' | 'UNMOUNTED'>('FIRST_RENDER'); useEffect(() => { mountStatusRef.current = 'MOUNTED'; return () => (mountStatusRef.current = 'UNMOUNTED'); }); return mountStatusRef;...
import { useEffect, useRef } from 'react'; export function useMountStatusRef() { const mountStatusRef = useRef<'FIRST_RENDER' | 'MOUNTED' | 'UNMOUNTED'>('FIRST_RENDER'); useEffect(() => { mountStatusRef.current = 'MOUNTED'; return () => { mountStatusRef.current = 'UNMOUNTED'; }; }); return mo...
Remove return value from useEffect in useMountStatusRef
fix(core/presentation): Remove return value from useEffect in useMountStatusRef
TypeScript
apache-2.0
spinnaker/deck,spinnaker/deck,spinnaker/deck,spinnaker/deck
--- +++ @@ -4,7 +4,9 @@ const mountStatusRef = useRef<'FIRST_RENDER' | 'MOUNTED' | 'UNMOUNTED'>('FIRST_RENDER'); useEffect(() => { mountStatusRef.current = 'MOUNTED'; - return () => (mountStatusRef.current = 'UNMOUNTED'); + return () => { + mountStatusRef.current = 'UNMOUNTED'; + }; }); ...
dd33b6c45cdbd42da8646f083cc4fffea105fea3
source/parser/localgocadpusher.ts
source/parser/localgocadpusher.ts
import { Parser } from "./parser"; import { FilePusher } from "../gocadpusher/filepusher"; declare var proj4; /** * Uses the block reading parser in the current UI thread. in * other words single threading. Mainly for debugging as its * easier to debug. */ export class LocalGocadPusherParser extends Parser { //...
import { Parser } from "./parser"; import { Event } from "../domain/event"; import { PipeToThreedObj } from "../push3js/pipetothreedobj"; import { DocumentPusher } from "../gocadpusher/documentpusher"; import { LinesToLinePusher } from "../util/linestolinepusher"; import { LinesPagedPusher } from "../util/linespagedpus...
Convert local pusher to use new style
Convert local pusher to use new style
TypeScript
apache-2.0
Tomella/explorer-3d,Tomella/explorer-3d,Tomella/explorer-3d
--- +++ @@ -1,6 +1,23 @@ import { Parser } from "./parser"; -import { FilePusher } from "../gocadpusher/filepusher"; +import { Event } from "../domain/event"; +import { PipeToThreedObj } from "../push3js/pipetothreedobj"; +import { DocumentPusher } from "../gocadpusher/documentpusher"; +import { LinesToLinePusher } ...
624047ad980c0a43cc8d86ace21ae178314f31a0
packages/data-mate/src/function-configs/repository.ts
packages/data-mate/src/function-configs/repository.ts
import { booleanRepository } from './boolean'; import { geoRepository } from './geo'; import { jsonRepository } from './json'; import { numberRepository } from './number'; import { objectRepository } from './object'; import { stringRepository } from './string'; export const functionConfigRepository = { ...booleanR...
import { booleanRepository } from './boolean'; import { geoRepository } from './geo'; import { jsonRepository } from './json'; import { numericRepository } from './numeric'; import { objectRepository } from './object'; import { stringRepository } from './string'; export const functionConfigRepository = { ...boolea...
Fix rename of number to numeric
Fix rename of number to numeric
TypeScript
apache-2.0
terascope/teraslice,terascope/teraslice,terascope/teraslice,terascope/teraslice
--- +++ @@ -1,7 +1,7 @@ import { booleanRepository } from './boolean'; import { geoRepository } from './geo'; import { jsonRepository } from './json'; -import { numberRepository } from './number'; +import { numericRepository } from './numeric'; import { objectRepository } from './object'; import { stringReposito...
fea34788c7ba37f72838cebd97184132fe16339f
src/app/app.module.ts
src/app/app.module.ts
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { MaterialModule, MdIconRegistry } from '@angular/material'; import { AppRoutingModule } from './app-routing.module'; imp...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { MaterialModule, MdIconRegistry } from '@angular/material'; import * as firebase from 'firebase'; // See https://github.c...
Initialize of Firebase with custom configuration.
Initialize of Firebase with custom configuration.
TypeScript
mit
tarlepp/angular2-firebase-material-demo,tarlepp/Angular-Firebase-Material-Demo,tarlepp/Angular-Firebase-Material-Demo,tarlepp/angular2-firebase-material-demo,tarlepp/angular2-firebase-material-demo
--- +++ @@ -3,12 +3,15 @@ import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { MaterialModule, MdIconRegistry } from '@angular/material'; +import * as firebase from 'firebase'; // See https://github.com/angular/angularfire2/issues/529 +import { AngularFireModule } from...
c9bc8427f9c9ed0ff9b128b0b0a3fc9f52fa4cee
src/custom-error.spec.ts
src/custom-error.spec.ts
import { checkProtoChain, checkProperties } from './spec.utils' import { CustomError } from './custom-error' test('Instance', () => checkProtoChain(CustomError, Error)) test('Instance pre ES6 environment', () => { const O = Object as any const E = Error as any const setPrototypeOf = O.setPrototypeOf const capture...
import { checkProtoChain, checkProperties } from './spec.utils' import { CustomError } from './custom-error' test('Instance', () => checkProtoChain(CustomError, Error)) test('Instance pre ES6 environment', () => { const O = Object as any const E = Error as any const setPrototypeOf = O.setPrototypeOf const capture...
Add class test with custom constructor
test: Add class test with custom constructor
TypeScript
mit
adriengibrat/ts-custom-error
--- +++ @@ -22,4 +22,13 @@ checkProtoChain(SubError, CustomError, Error) }) +test('Extended with constructor', () => { + class HttpError extends CustomError { + constructor(public code: number, message?: string) { + super(message) + } + } + checkProtoChain(HttpError, CustomError, Error) +}) + test('Basic pr...
7e66879fb7cc0c8385ec31cedc609167fd8f181b
src/app/map/home/home.component.spec.ts
src/app/map/home/home.component.spec.ts
/* tslint:disable:no-unused-variable */ /*! * Home Component Test * * Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph> * Licensed under MIT */ import { Renderer } from '@angular/core'; import { TestBed, async, inject } from '@angular/core/testing'; import { Http, HttpModule} from '@angular/http'; ...
/* tslint:disable:no-unused-variable */ /*! * Home Component Test * * Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph> * Licensed under MIT */ import { Renderer } from '@angular/core'; import { TestBed, async, inject } from '@angular/core/testing'; import { Http, HttpModule} from '@angular/http'; ...
Fix no provider for Router error
Fix no provider for Router error
TypeScript
mit
ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2
--- +++ @@ -10,15 +10,20 @@ import { Renderer } from '@angular/core'; import { TestBed, async, inject } from '@angular/core/testing'; import { Http, HttpModule} from '@angular/http'; +import { Router } from '@angular/router'; import { CookieService } from 'angular2-cookie/core'; import { TranslateModule, Transla...
217d0c690ded16f4b2e0b705ba69fe788532bd69
front/polyfill/index.ts
front/polyfill/index.ts
import 'd3' import 'c3' import './promise' import './find' import './event-listener' import './custom-event' import './starts-with' import './fetch'
import './promise' import './find' import './event-listener' import './custom-event' import './starts-with' import './fetch'
Remove c3 and d3 from polyfills
Remove c3 and d3 from polyfills
TypeScript
mit
the-concierge/concierge,the-concierge/concierge,the-concierge/concierge
--- +++ @@ -1,5 +1,3 @@ -import 'd3' -import 'c3' import './promise' import './find' import './event-listener'
d8760f06e8e2c6cd09491db7dde57d399c9eef2c
src/index.ts
src/index.ts
import { Document } from './document' import { SortData } from './types/types' import { binaryInsert, binarySearch, quickSort } from './utils' class Index { public name:string private _index:Document[] private _sortData:SortData[] constructor (name:string, sortData?:SortData[]) { this.name = name t...
import { Document } from './document' import { SortData } from './types/types' import { binaryInsert, binarySearch } from './utils' class Index { public name:string private _index:Document[] private _sortData:SortData[] constructor (name:string, sortData?:SortData[]) { this.name = name this._index ...
Remove unused and deprecated 'quickSort' import
Remove unused and deprecated 'quickSort' import
TypeScript
mit
varbrad/mindb,varbrad/mindb
--- +++ @@ -2,7 +2,7 @@ import { SortData } from './types/types' -import { binaryInsert, binarySearch, quickSort } from './utils' +import { binaryInsert, binarySearch } from './utils' class Index { public name:string
9ca5621e47793cf900d8fba64d4bd035ea647431
src/index.ts
src/index.ts
export { RESTError } from './error'; export { SchemaRegistry } from './schema'; export { API } from './api'; export { Resource } from './resource'; export * from './mongo';
export { RESTError } from './error'; export { SchemaRegistry } from './schema'; export { API } from './api'; export { Resource } from './resource'; export { Operation } from './operation'; export * from './mongo';
Add missing export of the Operation class
feat(module): Add missing export of the Operation class
TypeScript
mit
vivocha/arrest,vivocha/arrest
--- +++ @@ -2,4 +2,5 @@ export { SchemaRegistry } from './schema'; export { API } from './api'; export { Resource } from './resource'; +export { Operation } from './operation'; export * from './mongo';
bf57f5542a69ac7a6a209552f7255c665169ad05
{{cookiecutter.github_project_name}}/src/extension.ts
{{cookiecutter.github_project_name}}/src/extension.ts
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. // Entry point for the notebook bundle containing custom model definitions. // // Setup notebook base URL // // Some static assets may be required by the custom widget javascript. The base // url for the notebook is ...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. // Entry point for the notebook bundle containing custom model definitions. // // Setup notebook base URL // // Some static assets may be required by the custom widget javascript. The base // url for the notebook is ...
Fix webpack public path error.
Fix webpack public path error.
TypeScript
bsd-3-clause
jupyter-widgets/widget-ts-cookiecutter,jupyter-widgets/widget-ts-cookiecutter,jupyter-widgets/widget-ts-cookiecutter
--- +++ @@ -8,6 +8,6 @@ // Some static assets may be required by the custom widget javascript. The base // url for the notebook is not known at build time and is therefore computed // dynamically. -__webpack_public_path__ = document.querySelector('body')!.getAttribute('data-base-url') + 'nbextensions/{{ cookiecutt...
f4cdc78c9f74d5918d40b03a526c1cef17b3a9e6
src/js/View/Container.tsx
src/js/View/Container.tsx
import * as React from 'react'; import { connect } from 'react-redux'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import { AppLoading } from 'View/Ui/Index'; interface IContainerProps { store: Redux.Store<any>; history: ReactRouterRedux.ReactRouterReduxHistory; routes: Reac...
import * as React from 'react'; import { connect } from 'react-redux'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import { AppLoading } from 'View/Ui/Index'; interface IContainerProps { store: Redux.Store<any>; history: ReactRouterRedux.ReactRouterReduxHistory; routes: Reac...
Fix Connect messing up type signatures
Fix Connect messing up type signatures
TypeScript
mit
harksys/HawkEye,harksys/HawkEye,harksys/HawkEye
--- +++ @@ -38,8 +38,8 @@ } }; -export default connect( +export default connect<{}, {}, IContainerProps>( (state: IState) => ({ setup : state.setup }) -)(Container as any); // @todo: Fix. Caused by 'setup?' +)(Container);
a00b6ff71c389d889a5bcb807dd0c543389d61a3
src/TinyORM.ts
src/TinyORM.ts
import { camelCase, snakeCase } from 'change-case'; import { changeCaseDeep, getObject, validate, SchemaType } from './utils'; interface TinyProps { [key: string]: { schema: SchemaType, value: any }; } export class TinyORM<T> { private _props: TinyProps; constructor(model: T) { for (let key in m...
import { camelCase, snakeCase } from 'change-case'; import { changeCaseDeep, getObject, validate, SchemaType } from './utils'; interface TinyProps { [key: string]: { schema: SchemaType, value: any }; } export class TinyORM<T> { private _props: TinyProps; constructor(model: T) { for (let key in m...
Refactor - toObject into toDBObject - remove toString override
Refactor - toObject into toDBObject - remove toString override
TypeScript
mit
prashaantt/tiny-orm,prashaantt/tiny-orm
--- +++ @@ -33,17 +33,17 @@ return true; } - toObject(snakeCased = false) { + toObject() { + return getObject(this._props) as T; + } + + toDBObject() { const obj = getObject(this._props); - if (snakeCased) { - return changeCaseDeep(obj, snakeCase) as T; ...
d92759ff7271ab4d818b7416ffc385ca80191064
src/index.ts
src/index.ts
import * as Hapi from 'hapi'; import Logger from './helper/logger'; import * as Router from './router'; import Plugins from './plugins'; class Server { public static init() : void { const server = new Hapi.Server(); server.connection({ host: process.env.HOST, port: process...
import * as Hapi from 'hapi'; import Logger from './helper/logger'; import * as Router from './router'; import Plugins from './plugins'; class Server { public static init() : void { try { const server = new Hapi.Server(); server.connection({ host: process.env.HOST,...
Move server to async/await syntax
Move server to async/await syntax
TypeScript
mit
BlackBoxVision/typescript-hapi-starter,BlackBoxVision/typescript-hapi-starter,BlackBoxVision/typescript-hapi-starter
--- +++ @@ -6,27 +6,27 @@ class Server { public static init() : void { - const server = new Hapi.Server(); + try { + const server = new Hapi.Server(); - server.connection({ - host: process.env.HOST, - port: process.env.PORT - }); + serv...
79f51c009d8b4f2b8447f99fb2c94714229f9771
src/spec.utils.ts
src/spec.utils.ts
export const checkProtoChain = (contructor, ...chain) => { const error = new contructor() expect(error).toBeInstanceOf(contructor) chain.forEach(c => expect(error).toBeInstanceOf(c)) } export const checkProperties = (contructor, message = 'foo') => { const error = new contructor(message) expect(error.message).toB...
export const checkProtoChain = (contructor, ...chain) => { const error = new contructor() expect(error).toBeInstanceOf(contructor) chain.forEach(type => expect(error).toBeInstanceOf(type)) } export const checkProperties = (contructor, message = 'foo') => { const error = new contructor(message) expect(error.messag...
Use more readable var name
style: Use more readable var name
TypeScript
mit
adriengibrat/ts-custom-error
--- +++ @@ -1,7 +1,7 @@ export const checkProtoChain = (contructor, ...chain) => { const error = new contructor() expect(error).toBeInstanceOf(contructor) - chain.forEach(c => expect(error).toBeInstanceOf(c)) + chain.forEach(type => expect(error).toBeInstanceOf(type)) } export const checkProperties = (contru...
1fb98a4303e5e55acca78d7e97a2d6a917a705eb
src/app/app.component.ts
src/app/app.component.ts
import { Component, OnInit } from '@angular/core'; import { ViewManagerService } from './manager/view-manager.service'; declare var smoothScroll: any; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.less'], }) export class AppComponent implements OnInit { c...
import { Component, OnInit } from '@angular/core'; import { ViewManagerService } from './manager/view-manager.service'; declare var SmoothScroll: any; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.less'], }) export class AppComponent implements OnInit { c...
Update the way to use smooth-scroll according to its new manual
Update the way to use smooth-scroll according to its new manual
TypeScript
mit
tsugitta/tsugitta.github.io,tsugitta/tsugitta.github.io,tsugitta/tsugitta.github.io,tsugitta/tsugitta.github.io
--- +++ @@ -1,7 +1,7 @@ import { Component, OnInit } from '@angular/core'; import { ViewManagerService } from './manager/view-manager.service'; -declare var smoothScroll: any; +declare var SmoothScroll: any; @Component({ selector: 'app-root', @@ -26,6 +26,7 @@ } public onPressBackToTop(): void { - ...
bfe4eb7edff77eef43e45daf2a4251e12ff4ada7
src/application/index.ts
src/application/index.ts
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { Application } from 'phosphor/lib/ui/application'; import { ApplicationShell } from './shell'; /** * The type for all JupyterLab plugins. */ export type JupyterLabPlugin<T> = Application.IPlugin<Jupy...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { Application } from 'phosphor/lib/ui/application'; import { ApplicationShell } from './shell'; /** * The type for all JupyterLab plugins. */ export type JupyterLabPlugin<T> = Application.IPlugin<Jupy...
Use flag to only start once.
Use flag to only start once.
TypeScript
bsd-3-clause
charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,esk...
--- +++ @@ -41,6 +41,10 @@ * Start the JupyterLab application. */ start(options: Application.IStartOptions = {}): Promise<void> { + if (this._startedFlag) { + return Promise.resolve(void 0); + } + this._startedFlag = true; return super.start(options).then(() => { this._startedResolve(); ...
86fc55e14254ceb3a980575e76bdc415e3b621b8
src/options.ts
src/options.ts
module Rimu.Options { export interface Values { safeMode?: number; htmlReplacement?: string; } // Option values. export var safeMode: number; export var htmlReplacement: string; // Set options to values in 'options', those not in 'options' are set to // their default value. export function up...
module Rimu.Options { export interface Values { safeMode?: number; htmlReplacement?: string; } // Option values. export var safeMode: number; export var htmlReplacement: string; // Set options to values in 'options', those not in 'options' are set to // their default value. export function up...
Fix default API htmlReplacement option value.
Fix default API htmlReplacement option value.
TypeScript
mit
srackham/rimu
--- +++ @@ -13,7 +13,7 @@ // their default value. export function update(options: Values): void { safeMode = ('safeMode' in options) ? options.safeMode : 0; - htmlReplacement = ('htmlReplacement' in options) ? options.htmlReplacement : '<mark>replaced HTML<mark>'; + htmlReplacement = ('htmlReplacemen...
7453fca0196db941888430a75ca6036ee37bff1b
client/src/app/users/user-list.service.ts
client/src/app/users/user-list.service.ts
import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import { User } from './user'; import { Observable } from "rxjs"; @Injectable() export class UserListService { private userUrl: string = API_URL + "users/"; constructor(private http:Http) { } getUsers(): Observable<User[]> {...
import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import { User } from './user'; import { Observable } from "rxjs"; @Injectable() export class UserListService { private userUrl: string = API_URL + "users"; constructor(private http:Http) { } getUsers(): Observable<User[]> { ...
Fix URL bug in `UserListService`
Fix URL bug in `UserListService` I had tried to clean up the URL handling in `UserListService`, but didn't test it properly and we rolled it out in a broken state. We probably want to add some tests for the service to catch problems like this in the future. Fixes #24
TypeScript
mit
UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601/3601-l...
--- +++ @@ -5,14 +5,14 @@ @Injectable() export class UserListService { - private userUrl: string = API_URL + "users/"; + private userUrl: string = API_URL + "users"; constructor(private http:Http) { } getUsers(): Observable<User[]> { - return this.http.request(this.userUrl + 'users').map(...
1f104389d9872df308fe4ae255f07f00100b61f6
tools/env/base.ts
tools/env/base.ts
import { EnvConfig } from './env-config.interface'; const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.13.0', RELEASEVERSION: '0.13.0' }; export = BaseConfig;
import { EnvConfig } from './env-config.interface'; const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.13.1', RELEASEVERSION: '0.13.1' }; export = BaseConfig;
Update release version to 0.13.1
Update release version to 0.13.1
TypeScript
mit
nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website
--- +++ @@ -3,8 +3,8 @@ const BaseConfig: EnvConfig = { // Sample API url API: 'https://demo.com', - RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.13.0', - RELEASEVERSION: '0.13.0' + RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.13.1', + RELEASEVERSION: '0.13...
cdd31d87e362dd306db6692961b067d099c0f895
configloader.ts
configloader.ts
import RoutingServer from './routingserver'; export interface ConfigServer { listenPort: number; routingServers: RoutingServer[]; } export interface LogOptions { clientTimeouts: boolean; clientConnect: boolean; clientDisconnect: boolean; clientError: boolean; tServerConnect: boolean; tServerDisconnect...
import RoutingServer from './routingserver'; export interface ConfigServer { listenPort: number; routingServers: RoutingServer[]; } export interface LogOptions { clientTimeouts: boolean; clientConnect: boolean; clientDisconnect: boolean; clientError: boolean; tServerConnect: boolean; tServerDisconnect...
Add blocking to log options
Add blocking to log options
TypeScript
mit
popstarfreas/Dimensions,popstarfreas/Dimensions,popstarfreas/Dimensions
--- +++ @@ -13,6 +13,7 @@ tServerConnect: boolean; tServerDisconnect: boolean; tServerError: boolean; + clientBlocked: boolean; } export interface ConfigOptions {
1d11074a36d8d75c7b5070ba4e818e8849a33f73
projects/sample-code-flow-azuread/src/app/app.routes.ts
projects/sample-code-flow-azuread/src/app/app.routes.ts
import { RouterModule, Routes } from '@angular/router'; import { AutoLoginGuard } from 'angular-auth-oidc-client'; import { ForbiddenComponent } from './forbidden/forbidden.component'; import { HomeComponent } from './home/home.component'; import { ProtectedComponent } from './protected/protected.component'; import { U...
import { RouterModule, Routes } from '@angular/router'; import { AutoLoginGuard } from 'angular-auth-oidc-client'; import { ForbiddenComponent } from './forbidden/forbidden.component'; import { HomeComponent } from './home/home.component'; import { ProtectedComponent } from './protected/protected.component'; import { U...
Add this to the DOCS, redirect path to an auto login guard
Add this to the DOCS, redirect path to an auto login guard
TypeScript
mit
damienbod/angular-auth-oidc-client,damienbod/angular-auth-oidc-client,damienbod/angular-auth-oidc-client
--- +++ @@ -6,7 +6,7 @@ import { UnauthorizedComponent } from './unauthorized/unauthorized.component'; const appRoutes: Routes = [ - { path: '', component: HomeComponent, pathMatch: 'full' }, + { path: '', pathMatch: 'full', redirectTo: 'home' }, { path: 'home', component: HomeComponent, canActivate: [AutoLo...
fbd0c27a4ef52e73c0fab9c9cc86aa9ccd1f8b45
addon/models/sku.ts
addon/models/sku.ts
import DS from "ember-data"; import { computed, get } from "@ember/object"; import Price from "./price"; import Product from "./product"; import Bom from "./bom"; import SkuImage from "./sku-image"; import SkuField from "./sku-field"; export default class Sku extends DS.Model { @DS.attr("number") stockQuantity!: num...
import DS from "ember-data"; import Price from "./price"; import Product from "./product"; import Bom from "./bom"; export default class Sku extends DS.Model { @DS.attr("number") stockQuantity!: number; @DS.attr() attrs!: any; @DS.belongsTo("price") price!: Price; @DS.belongsTo("product") product!: Product; ...
Remove computed attributes from SKU model
Remove computed attributes from SKU model
TypeScript
mit
goods/ember-goods,goods/ember-goods,goods/ember-goods
--- +++ @@ -1,26 +1,14 @@ import DS from "ember-data"; -import { computed, get } from "@ember/object"; import Price from "./price"; import Product from "./product"; import Bom from "./bom"; -import SkuImage from "./sku-image"; -import SkuField from "./sku-field"; export default class Sku extends DS.Model { ...
e8605f71a9fb400963f99cfbca9d07050a15e8fa
test/storage/CompressedStorageTest.ts
test/storage/CompressedStorageTest.ts
import { expect } from "chai"; import { capture, spy } from "ts-mockito"; import { InMemoryStorage } from "storage/Storage"; import { CompressedStorage } from "storage/CompressedStorage"; function sizeOf(data: any): number { return new TextEncoder().encode(JSON.stringify(data)).length; } describe("CompressedStora...
import { expect } from "chai"; import { capture, spy } from "ts-mockito"; import { InMemoryStorage } from "storage/Storage"; import { CompressedStorage } from "storage/CompressedStorage"; function sizeOf(data: any): number { return Buffer.byteLength(JSON.stringify(data), "utf8"); } describe("CompressedStorage", (...
Fix broken tests due to TextEncoder not available in node
Fix broken tests due to TextEncoder not available in node
TypeScript
mit
easyfuckingpeasy/chrome-reddit-comment-highlights,easyfuckingpeasy/chrome-reddit-comment-highlights
--- +++ @@ -4,7 +4,7 @@ import { CompressedStorage } from "storage/CompressedStorage"; function sizeOf(data: any): number { - return new TextEncoder().encode(JSON.stringify(data)).length; + return Buffer.byteLength(JSON.stringify(data), "utf8"); } describe("CompressedStorage", () => {
4e1b0b95ef909e3e82a9be03281320229394c43f
app/src/lib/welcome.ts
app/src/lib/welcome.ts
/** The `localStorage` key for whether we've shown the Welcome flow yet. */ const HasShownWelcomeFlowKey = 'has-shown-welcome-flow' /** * Check if the current user has completed the welcome flow. */ export function hasShownWelcomeFlow(): boolean { const hasShownWelcomeFlow = localStorage.getItem(HasShownWelcomeFlo...
import { getBoolean, setBoolean } from './local-storage' /** The `localStorage` key for whether we've shown the Welcome flow yet. */ const HasShownWelcomeFlowKey = 'has-shown-welcome-flow' /** * Check if the current user has completed the welcome flow. */ export function hasShownWelcomeFlow(): boolean { return ge...
Update usage in Welcome wizard
Update usage in Welcome wizard
TypeScript
mit
kactus-io/kactus,j-f1/forked-desktop,j-f1/forked-desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,artivilla/desktop,shiftkey/desktop,artivilla/desktop,kactus-io/kactus,shiftkey/desktop,shiftkey/desktop,say25/desktop,desktop/desktop,say25/desktop,desktop/desktop,say25/desktop,desktop/desktop,j-f1/forked-de...
--- +++ @@ -1,3 +1,5 @@ +import { getBoolean, setBoolean } from './local-storage' + /** The `localStorage` key for whether we've shown the Welcome flow yet. */ const HasShownWelcomeFlowKey = 'has-shown-welcome-flow' @@ -5,18 +7,12 @@ * Check if the current user has completed the welcome flow. */ export funct...
20880a949b764ae35c9d69b55358f932094a6621
core/modules/catalog/components/ProductGallery.ts
core/modules/catalog/components/ProductGallery.ts
import VueOffline from 'vue-offline' import store from '@vue-storefront/store' export const ProductGallery = { name: 'ProductGallery', components: { VueOffline }, props: { gallery: { type: Array, required: true }, configuration: { type: Object, required: true }, ...
import VueOffline from 'vue-offline' import store from '@vue-storefront/store' export const ProductGallery = { name: 'ProductGallery', components: { VueOffline }, props: { gallery: { type: Array, required: true }, configuration: { type: Object, required: true }, ...
Remove forceUpdate from mounted and removed whitespace
Remove forceUpdate from mounted and removed whitespace
TypeScript
mit
DivanteLtd/vue-storefront,DivanteLtd/vue-storefront,DivanteLtd/vue-storefront,DivanteLtd/vue-storefront,pkarw/vue-storefront,pkarw/vue-storefront,pkarw/vue-storefront,pkarw/vue-storefront
--- +++ @@ -29,7 +29,6 @@ this.$bus.$on('product-after-load', this.selectVariant) }, mounted () { - this.$forceUpdate() document.addEventListener('keydown', this.handleEscKey) }, beforeDestroy () { @@ -50,6 +49,6 @@ if (this.isZoomOpen && event.keyCode === 27) { this.toggleZoo...
40b36eebfb02e6ff1869ed2283245f0f46fa302f
app/src/lib/fix-emoji-spacing.ts
app/src/lib/fix-emoji-spacing.ts
// This module renders an element with an emoji using // a non system-default font to workaround an Chrome // issue that causes unexpected spacing on emojis. // More info: // https://bugs.chromium.org/p/chromium/issues/detail?id=1113293 const container = document.createElement('div') container.setAttribute( 'style',...
// This module renders an element with an emoji using // a non system-default font to workaround an Chrome // issue that causes unexpected spacing on emojis. // More info: // https://bugs.chromium.org/p/chromium/issues/detail?id=1113293 const container = document.createElement('div') container.style.setProperty('visib...
Use `style.setProperty()` method to apply style
Use `style.setProperty()` method to apply style Co-authored-by: Markus Olsson <fea8a6992108b6bfda0c59222a1afb2da2ede904@gmail.com>
TypeScript
mit
say25/desktop,kactus-io/kactus,j-f1/forked-desktop,desktop/desktop,shiftkey/desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,kactus-io/kactus,desktop/desktop,artivilla/desktop,shiftkey/desktop,desktop/desktop,artivilla/desktop,j-f1/forked-desktop,shiftkey/desktop,shiftkey/desktop,j-f1/forked...
--- +++ @@ -5,10 +5,8 @@ // https://bugs.chromium.org/p/chromium/issues/detail?id=1113293 const container = document.createElement('div') -container.setAttribute( - 'style', - 'visibility: hidden; font-family: Arial !important;' -) +container.style.setProperty('visibility', 'hidden') +container.style.setPropert...
e87521a0fd7ac14660a8bf265df3aa93f7516a5b
tests/cases/fourslash/restParametersTypeValidation_1.ts
tests/cases/fourslash/restParametersTypeValidation_1.ts
/// <reference path="../fourslash.ts" /> //// function f18(a?:string, ...b){} //// //// function f19(a?:string, b?){} //// //// function f20(a:string, b?:string, ...c:number[]){} //// //// function f21(a:string, b?:string, ...d:number[]){} edit.disableFormatting(); //diagnostics.validateTypesAtPositions(48,100,...
/// <reference path="../fourslash.ts" /> //// function f18(a?:string, ...b){} //// //// function f19(a?:string, b?){} //// //// function f20(a:string, b?:string, ...c:number[]){} //// //// function f21(a:string, b?:string, ...d:number[]){} edit.disableFormatting(); diagnostics.validateTypesAtPositions(48,100,43...
Update testcase to function as regression test
Update testcase to function as regression test
TypeScript
apache-2.0
hippich/typescript,mbebenita/shumway.ts,mbrowne/typescript-dci,mbrowne/typescript-dci,fdecampredon/jsx-typescript-old-version,popravich/typescript,hippich/typescript,mbebenita/shumway.ts,mbrowne/typescript-dci,mbebenita/shumway.ts,fdecampredon/jsx-typescript-old-version,hippich/typescript,mbrowne/typescript-dci,popravi...
--- +++ @@ -9,4 +9,4 @@ //// function f21(a:string, b?:string, ...d:number[]){} edit.disableFormatting(); -//diagnostics.validateTypesAtPositions(48,100,43,133,47); +diagnostics.validateTypesAtPositions(48,100,43,133,47);
074da24c780ef0ef3a81d8c014deb859f73a4cd8
ui/src/app/app-config.ts
ui/src/app/app-config.ts
import { environment } from '../environments/environment'; export class AppConfig { public static K8S_REST_URL = environment.prefix + 'k8s/'; public static VPP_REST_URL = environment.prefix + 'contiv/'; public static API_V1 = 'api/v1/'; public static API_V1_NETWORKING = 'apis/networking.k8s.io/v1/'; public s...
import { environment } from '../environments/environment'; export class AppConfig { public static K8S_REST_URL = environment.prefix + 'k8s/'; public static VPP_REST_URL = environment.prefix + 'contiv/'; public static API_V1 = 'api/v1/'; public static API_V1_NETWORKING = 'apis/networking.k8s.io/v1/'; public s...
Fix rest url in UI
Fix rest url in UI
TypeScript
apache-2.0
rastislavszabo/vpp,rastislavszabo/vpp,rastislavszabo/vpp,brecode/vpp,brecode/vpp,rastislavszabo/vpp,rastislavszabo/vpp,rastislavszabo/vpp,rastislavszabo/vpp,brecode/vpp,brecode/vpp,brecode/vpp
--- +++ @@ -7,5 +7,5 @@ public static API_V1_NETWORKING = 'apis/networking.k8s.io/v1/'; public static API_V1_CONTIV = 'contiv/v1/'; public static API_V1_VPP = 'vpp/dump/v1/'; - public static API_V2_VPP = 'vpp/dump/v2/'; + public static API_V2_VPP = 'dump/vpp/v2/'; }
40ac3bd9e28c76551fe7dbb2ade8cde0fd71f1aa
src/app/views/dashboard/developer/games/manage/site/site.state.ts
src/app/views/dashboard/developer/games/manage/site/site.state.ts
import { Transition } from 'angular-ui-router'; import { Api } from '../../../../../../../lib/gj-lib-client/components/api/api.service'; import { makeState } from '../../../../../../../lib/gj-lib-client/utils/angular-facade'; makeState( 'dashboard.developer.games.manage.site', { url: '/site', lazyLoad: () => $import...
import { Transition } from 'angular-ui-router'; import { Api } from '../../../../../../../lib/gj-lib-client/components/api/api.service'; import { makeState } from '../../../../../../../lib/gj-lib-client/utils/angular-facade'; makeState( 'dashboard.developer.games.manage.site', { url: '/site', lazyLoad: () => $import...
Fix sites resolve for ng inject
Fix sites resolve for ng inject
TypeScript
mit
gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt
--- +++ @@ -6,6 +6,8 @@ url: '/site', lazyLoad: () => $import( './site.module' ), resolve: { + + /*@ngInject*/ payload: function( $transition$: Transition ) { return Api.sendRequest( '/web/dash/sites/' + $transition$.params().id );
d093295d2a63add1bdef03a0388367851a83c687
modules/interfaces/type-test/helpers/sample-type-map.ts
modules/interfaces/type-test/helpers/sample-type-map.ts
import { GeneralTypeMap } from "../../src"; export interface SampleTypeMap extends GeneralTypeMap { entities: { member: { id: string; name: string }; message: { id: string; body: string; }; }; customQueries: { countMessagesOfMember: { params: { memberId: string }; result: ...
import { GeneralTypeMap } from "../../src"; export interface SampleTypeMap extends GeneralTypeMap { entities: { member: { id: string; name: string }; message: { id: string; body: string; }; }; customQueries: { countMessagesOfMember: { params: { memberId: string }; result: ...
Add test for custom session values
feat(interfaces): Add test for custom session values
TypeScript
apache-2.0
phenyl-js/phenyl,phenyl-js/phenyl,phenyl-js/phenyl,phenyl-js/phenyl
--- +++ @@ -23,6 +23,7 @@ auths: { member: { credentials: { email: string; password: string }; + session: { externalId: string; ttl: number }; }; }; }
fb4510fdcbc336c801347545ca20534d9a49a065
app/core/datastore/field/field-name-migrator.ts
app/core/datastore/field/field-name-migrator.ts
import {Document} from 'idai-components-2'; import {migrationMap, subFieldsMigrationMap} from './migration-map'; /** * @author Thomas Kleinke */ export module FieldNameMigrator { export function migrate(document: Document): Document { const resource: any = {}; Object.keys(document.resource).f...
import {Document} from 'idai-components-2'; import {migrationMap, subFieldsMigrationMap} from './migration-map'; import {isObject} from 'tsfun'; /** * @author Thomas Kleinke */ export module FieldNameMigrator { export function migrate(document: Document): Document { const resource: any = {}; ...
Change check for contained objects
Change check for contained objects
TypeScript
apache-2.0
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
--- +++ @@ -1,5 +1,6 @@ import {Document} from 'idai-components-2'; import {migrationMap, subFieldsMigrationMap} from './migration-map'; +import {isObject} from 'tsfun'; /** @@ -15,11 +16,7 @@ const newFieldName: string = migrationMap[fieldName] ? migrationMap[fieldName] : fieldName; ...
b8c3a0cda06ee6033c2ca59cf6ef44d102ace935
src/services/slack/emoji.service.ts
src/services/slack/emoji.service.ts
import { defaultEmojis } from './default_emoji'; import { SlackClient } from './slack-client'; import * as emojione from 'emojione'; export class EmojiService { emojiList: { string: string }; defaultEmojis = defaultEmojis; get allEmojis(): string[] { return defaultEmojis.concat(Object.keys(this.e...
import { defaultEmojis } from './default_emoji'; import { SlackClient } from './slack-client'; import * as emojione from 'emojione'; export class EmojiService { emojiList: { string: string }; defaultEmojis = defaultEmojis; get allEmojis(): string[] { return defaultEmojis.concat(Object.keys(this.e...
Add title attribute to custom emojis.
Add title attribute to custom emojis.
TypeScript
mit
mazun/SlackStream,mazun/SlackStream,mazun/ASlack-Stream,mazun/ASlack-Stream,mazun/ASlack-Stream,mazun/SlackStream,mazun/SlackStream,mazun/ASlack-Stream
--- +++ @@ -27,7 +27,7 @@ if (image_url.substr(0, 6) === 'alias:') { return this.convertEmoji(`:${image_url.substr(6)}:`); } else { - return `<img class="emojione" src="${image_url}" />`; + return `<img class="emojione" title="${emoji.substr(1, ...