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
008ae8a0a70f09f43d328d0ab39e58e86946e32f
lib/core-events/src/index.ts
lib/core-events/src/index.ts
export interface CoreEvents { CHANNEL_CREATED: string; GET_CURRENT_STORY: string; SET_CURRENT_STORY: string; GET_STORIES: string; SET_STORIES: string; SELECT_STORY: string; APPLY_SHORTCUT: string; STORY_ADDED: string; FORCE_RE_RENDER: string; REGISTER_SUBSCRIPTION: string; STORY_RENDERED: string; ...
enum events { CHANNEL_CREATED = 'channelCreated', GET_CURRENT_STORY = 'getCurrentStory', SET_CURRENT_STORY = 'setCurrentStory', GET_STORIES = 'getStories', SET_STORIES = 'setStories', SELECT_STORY = 'selectStory', APPLY_SHORTCUT = 'applyShortcut', STORY_ADDED = 'storyAdded', FORCE_RE_RENDER = 'forceRe...
Use an enum instead of an interface for core events
Use an enum instead of an interface for core events
TypeScript
mit
storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook
--- +++ @@ -1,33 +1,17 @@ -export interface CoreEvents { - CHANNEL_CREATED: string; - GET_CURRENT_STORY: string; - SET_CURRENT_STORY: string; - GET_STORIES: string; - SET_STORIES: string; - SELECT_STORY: string; - APPLY_SHORTCUT: string; - STORY_ADDED: string; - FORCE_RE_RENDER: string; - REGISTER_SUBSCRIPT...
7ae13f712bb81fc94f422e5833af4aa55b3a0cd8
src/Parsing/Inline/Tokenization/Brackets.ts
src/Parsing/Inline/Tokenization/Brackets.ts
import { Bracket } from './Bracket' // Many of our conventions incorporate brackets. These are the ones we recognize. export const BRACKETS = [ new Bracket('(', ')'), new Bracket('[', ']'), new Bracket('{', '}') ]
import { Bracket } from './Bracket' // Many of our conventions incorporate brackets. These are the ones we recognize. export const BRACKETS = [ new Bracket('(', ')'), new Bracket('[', ']'), ]
Stop supporting curly brackets; fail many tests
Stop supporting curly brackets; fail many tests
TypeScript
mit
start/up,start/up
--- +++ @@ -5,5 +5,4 @@ export const BRACKETS = [ new Bracket('(', ')'), new Bracket('[', ']'), - new Bracket('{', '}') ]
6c2b10c82ae7712e11c3e8ea5e0b8938369214e4
src/components/ticker/reducer.ts
src/components/ticker/reducer.ts
import { generateReducer } from "../generate_reducer"; import { TickerState } from "./interfaces"; let YELLOW = "#fd6", RED = "#e66", GREEN = "#6a4"; function change(color: string, message: string, show = true) { return (s, a) => ({ color, message, show }); } export let tickerReducer = generateReducer<Ti...
import { generateReducer } from "../generate_reducer"; import { TickerState } from "./interfaces"; let YELLOW = "#fd6", RED = "#e66", GREEN = "#6a4"; function change(color: string, message: string, show = true) { return (s, a) => ({ color, message, show }); } export let tickerReducer = generateReducer<Ti...
Fix icon color on plant fetch
Fix icon color on plant fetch
TypeScript
mit
MrChristofferson/farmbot-web-frontend,roryaronson/farmbot-web-frontend,roryaronson/farmbot-web-frontend,FarmBot/farmbot-web-frontend,MrChristofferson/farmbot-web-frontend,FarmBot/farmbot-web-frontend,roryaronson/farmbot-web-frontend,RickCarlino/farmbot-web-frontend,RickCarlino/farmbot-web-frontend
--- +++ @@ -17,7 +17,7 @@ .add<{}>("LOGIN_OK", change(YELLOW, "Logged in")) .add<{}>("LOGIN_ERR", change(RED, "Bad login")) .add<{}>("FETCH_PLANTS_START", change(YELLOW, "Fetching plants")) -.add<{}>("FETCH_PLANTS_OK", change(YELLOW, "Done fetching plants")) +.add<{}>("FETCH_PLANTS_OK", change(GREEN, "Done fetchin...
5e788f0da48a13dae08b09ca8156a92f0884795d
src/daemons/notes-stats.ts
src/daemons/notes-stats.ts
import * as childProcess from 'child_process'; import Xev from 'xev'; const ev = new Xev(); export default function() { const log: any[] = []; const p = childProcess.fork(__dirname + '/notes-stats-child.js'); p.on('message', stats => { ev.emit('notesStats', stats); log.push(stats); if (log.length > 100) lo...
import * as childProcess from 'child_process'; import Xev from 'xev'; const ev = new Xev(); export default function () { const log: any[] = []; const p = childProcess.fork(__dirname + '/notes-stats-child.js'); p.on('message', stats => { ev.emit('notesStats', stats); log.push(stats); if (log.length > 100) l...
Kill child process on exit
Kill child process on exit
TypeScript
mit
ha-dai/Misskey,Tosuke/misskey,Tosuke/misskey,Tosuke/misskey,syuilo/Misskey,Tosuke/misskey,Tosuke/misskey,syuilo/Misskey,ha-dai/Misskey
--- +++ @@ -3,7 +3,7 @@ const ev = new Xev(); -export default function() { +export default function () { const log: any[] = []; const p = childProcess.fork(__dirname + '/notes-stats-child.js'); @@ -17,4 +17,9 @@ ev.on('requestNotesStatsLog', id => { ev.emit('notesStatsLog:' + id, log); }); + + proce...
76fda1f3b1fd4028f03bb726cd15823804493dd3
skin-deep.d.ts
skin-deep.d.ts
import { ReactElement, ComponentClass } from 'react'; export type Selector = string | ComponentClass<{}>; export type Matcher = any; export interface Tree<P, C> { type: ComponentClass<P> | string; props: P; reRender(props: P, context?: C): void; getMountedInstance(): Object; subTree(query: Selector, predica...
import { ReactElement, ComponentClass } from 'react'; export type Selector = string | ComponentClass<{}>; export type Matcher = any; export interface Tree<P, C> { type: ComponentClass<P> | string; props: P; reRender(props: P, context?: C): void; getMountedInstance(): any; subTree(query: Selector, predicate?...
Improve sub tree context type
Improve sub tree context type
TypeScript
mit
glenjamin/skin-deep,glenjamin/skin-deep
--- +++ @@ -7,9 +7,9 @@ type: ComponentClass<P> | string; props: P; reRender(props: P, context?: C): void; - getMountedInstance(): Object; - subTree(query: Selector, predicate?: Matcher): Tree<any, any>; - everySubTree(query: Selector, predicate?: Matcher): Tree<any, any>[]; + getMountedInstance(): any; ...
c16f51e232204e064aa8d1888d5294575ddcf628
src/monaco/ShellHistoryLanguage.ts
src/monaco/ShellHistoryLanguage.ts
import {services} from "../services/index"; import * as _ from "lodash"; monaco.languages.setMonarchTokensProvider("shell", { tokenizer: { root: [ { regex: /.+/, action: {token: "history-item"}, }, ], }, tokenPostfix: ".shell-history",...
import {services} from "../services/index"; import * as _ from "lodash"; monaco.languages.setMonarchTokensProvider("shell-history", { tokenizer: { root: [ { regex: /.+/, action: {token: "history-item"}, }, ], }, tokenPostfix: ".shell-h...
Fix the issue with shell-history provider.
Fix the issue with shell-history provider.
TypeScript
mit
black-screen/black-screen,vshatskyi/black-screen,shockone/black-screen,vshatskyi/black-screen,railsware/upterm,shockone/black-screen,vshatskyi/black-screen,black-screen/black-screen,vshatskyi/black-screen,black-screen/black-screen,railsware/upterm
--- +++ @@ -1,7 +1,7 @@ import {services} from "../services/index"; import * as _ from "lodash"; -monaco.languages.setMonarchTokensProvider("shell", { +monaco.languages.setMonarchTokensProvider("shell-history", { tokenizer: { root: [ {
4f8425580accc61defad55e2abb3f8ffd0773f91
highlightjs/highlightjs-tests.ts
highlightjs/highlightjs-tests.ts
/* highlight.js definition by Niklas Mollenhauer Last Update: 10.09.2013 Source Code: https://github.com/isagalaev/highlight.js Project Page: http://softwaremaniacs.org/soft/highlight/en/ */ /// <reference path="highlightjs.d.ts" /> import hljs = require("highlight.js"); var code = "using System;\npublic class T...
/* highlight.js definition by Niklas Mollenhauer Last Update: 10.09.2013 Source Code: https://github.com/isagalaev/highlight.js Project Page: http://softwaremaniacs.org/soft/highlight/en/ */ /// <reference path="highlightjs.d.ts" /> import hljs = require("highlight.js"); var code = "using System;\npublic class T...
Change highlight.js test for v8.x.x interface
Change highlight.js test for v8.x.x interface
TypeScript
mit
raijinsetsu/DefinitelyTyped,MarlonFan/DefinitelyTyped,shlomiassaf/DefinitelyTyped,wilfrem/DefinitelyTyped,DzmitryDulko/DefinitelyTyped,AgentME/DefinitelyTyped,stacktracejs/DefinitelyTyped,uestcNaldo/DefinitelyTyped,jraymakers/DefinitelyTyped,newclear/DefinitelyTyped,evansolomon/DefinitelyTyped,jsaelhof/DefinitelyTyped,...
--- +++ @@ -12,7 +12,7 @@ var code = "using System;\npublic class Test\n{\npublic static void Main()\n{\n// your code goes here\n}\n}"; var lang = "cs"; -hljs.tabReplace = " "; // 4 spaces +hljs.configure({ tabReplace: " " }) // 4 spaces var hl = hljs.highlight(lang, code).value; hl = hljs.highlightAuto...
c0ef3b8f681820135ec27e46e424b800870a79ca
src/app/services/config/JSONConfiguration.ts
src/app/services/config/JSONConfiguration.ts
import {Configuration} from './Configuration'; import {TrueConfiguration} from './TrueConfiguration'; import {FalseConfiguration} from './FalseConfiguration'; export class JSONConfiguration implements Configuration { constructor(private config: Object) { } public isFieldMandatory(name: string): boolean { ...
import {Configuration} from './Configuration'; import {TrueConfiguration} from './TrueConfiguration'; import {FalseConfiguration} from './FalseConfiguration'; export class JSONConfiguration implements Configuration { constructor(private config: Object) { } public isFieldMandatory(name: string): boolean { ...
Make configuration true by default
Make configuration true by default
TypeScript
apache-2.0
janschulte/smle,janschulte/smle,janschulte/smle,janschulte/smle
--- +++ @@ -8,7 +8,7 @@ public isFieldMandatory(name: string): boolean { var value = this.getValue(name); - return !!value; + return typeof value === 'undefined' || !!value; } private getValue(name: string): any { @@ -21,7 +21,7 @@ public getConfigFor(name: string): Co...
4547b74f53c807d0098e6a513e5ddc87e6673224
templates/module/_name.module.ts
templates/module/_name.module.ts
import * as angular from 'angular'; <% if (!moduleOnly) { %>import { <%= pName %>Config } from './<%= hName %>.config'; import { <%= pName %>Controller } from './<%= hName %>.controller'; <% } %>export const <%= pName %>Module = angular .module('<%= appName %>.<%= name %>', ['ui.router'])<% if (!moduleOnly) { %> ...
<%if (!noImport) { %>import * as angular from 'angular'; <% } %><% if (!moduleOnly) { %>import { <%= pName %>Config } from './<%= hName %>.config'; import { <%= pName %>Controller } from './<%= hName %>.controller'; <% } %>export const <%= pName %>Module = angular .module('<%= appName %>.<%= name %>', [<% if (!mod...
Remove angular import when flag set
Remove angular import when flag set
TypeScript
mit
Kurtz1993/ngts-cli,Kurtz1993/ngts-cli,Kurtz1993/ngts-cli
--- +++ @@ -1,9 +1,9 @@ -import * as angular from 'angular'; -<% if (!moduleOnly) { %>import { <%= pName %>Config } from './<%= hName %>.config'; +<%if (!noImport) { %>import * as angular from 'angular'; +<% } %><% if (!moduleOnly) { %>import { <%= pName %>Config } from './<%= hName %>.config'; import { <%= pName %>...
5aa502a9476beba2365b317d4ca14c3ac79a391f
apps/tests/app/mainPage.ts
apps/tests/app/mainPage.ts
import tests = require("../testRunner"); import trace = require("trace"); import {Page} from "ui/page"; import {GridLayout} from "ui/layouts/grid-layout"; trace.enable(); trace.addCategories(trace.categories.Test + "," + trace.categories.Error); export function createPage() { var page = new Page(); var navig...
import {Page} from "ui/page"; import tests = require("../testRunner"); trace.enable(); trace.addCategories(trace.categories.Test + "," + trace.categories.Error); let started = false; let page = new Page(); page.on(Page.navigatedToEvent, function () { if (!started) { started = true; setTimeout(fu...
Fix the run in android
Fix the run in android
TypeScript
mit
NativeScript/NativeScript,NativeScript/NativeScript,NativeScript/NativeScript,NativeScript/NativeScript,NativeScript/NativeScript
--- +++ @@ -1,18 +1,22 @@ -import tests = require("../testRunner"); -import trace = require("trace"); -import {Page} from "ui/page"; -import {GridLayout} from "ui/layouts/grid-layout"; +import {Page} from "ui/page"; +import tests = require("../testRunner"); trace.enable(); trace.addCategories(trace.categories.T...
a7a0e2b62191250bc326eeb985122b76deab26cd
e2e/index.ts
e2e/index.ts
import * as inversifyConfig from './inversify.config'; export { inversifyConfig }; export * from './inversify.types'; export * from './TestConstants'; export * from './pageobjects/login/ICheLoginPage'; export * from './driver/IDriver'; export * from './utils/DriverHelper'; export * from './pageobjects/dashboard/Dashboa...
import * as inversifyConfig from './inversify.config'; export { inversifyConfig }; export * from './inversify.types'; export * from './TestConstants'; // driver export * from './driver/IDriver'; export * from './driver/ChromeDriver'; // pageobjects - dashboard export * from './pageobjects/dashboard/Dashboard'; export...
Add export for all classes so we can reuse them on RH-Che side.
Add export for all classes so we can reuse them on RH-Che side. Signed-off-by: kkanova <f7e24cc435a7985ccad503f229963b23d4c9b729@redhat.com>
TypeScript
epl-1.0
codenvy/che,davidfestal/che,codenvy/che,codenvy/che,davidfestal/che,davidfestal/che,davidfestal/che,davidfestal/che,codenvy/che,davidfestal/che,davidfestal/che,davidfestal/che,davidfestal/che,davidfestal/che
--- +++ @@ -2,14 +2,45 @@ export { inversifyConfig }; export * from './inversify.types'; export * from './TestConstants'; + +// driver +export * from './driver/IDriver'; +export * from './driver/ChromeDriver'; + +// pageobjects - dashboard +export * from './pageobjects/dashboard/Dashboard'; +export * from './pageo...
46756513fd949986284fbedc0c096e4e8ef1d367
app/src/container/Books.tsx
app/src/container/Books.tsx
import * as React from "react"; import { connect } from "react-redux"; import Book from "../component/Book"; import BooksMenu from "../component/BooksMenu"; import config from "../config"; import { IBook } from "../lib/books"; import { actionCreators } from "../redux/books"; import Items from "./Items"; interface IPr...
import * as React from "react"; import { connect } from "react-redux"; import Book from "../component/Book"; import BooksMenu from "../component/BooksMenu"; import config from "../config"; import { IBook } from "../lib/books"; import { actionCreators } from "../redux/books"; import Items from "./Items"; interface IPr...
Fix affiliate script loading in books page
Fix affiliate script loading in books page
TypeScript
mit
raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d
--- +++ @@ -21,6 +21,10 @@ return <Items itemComponent={Book} menuComponent={BooksMenu} {...this.props} />; } + public componentDidMount() { + this.componentDidUpdate(); + } + public componentDidUpdate() { const script = document.createElement("script");
1caee21c93f8adb9016b754e79ba23e62d3d23b8
src/app/shared/components/thumbnail/thumbnail.component.ts
src/app/shared/components/thumbnail/thumbnail.component.ts
import { Component, OnInit, Input } from '@angular/core'; @Component({ selector: 'mh-thumbnail', templateUrl: './thumbnail.component.html', styleUrls: ['./thumbnail.component.css'] }) export class ThumbnailComponent implements OnInit { @Input() image; @Input() alt: string; constructor() { } ngOnInit() ...
import { Component, OnInit, Input } from '@angular/core'; @Component({ selector: 'mh-thumbnail', templateUrl: './thumbnail.component.html', styleUrls: ['./thumbnail.component.css'] }) export class ThumbnailComponent implements OnInit { @Input() image; @Input() alt: string; constructor() { } ngOnInit() ...
Remove protocol from thumnail's url to avaoid HTTPS mixed content
Remove protocol from thumnail's url to avaoid HTTPS mixed content
TypeScript
mit
dmytroyarmak/angular2-marvel-heroes,dmytroyarmak/angular2-marvel-heroes,dmytroyarmak/angular2-marvel-heroes
--- +++ @@ -15,6 +15,10 @@ } getThumbnailUrl() { - return `${this.image.path}.${this.image.extension}`; + return `${this.getThumbnailPathWithoutProtocol()}.${this.image.extension}`; + } + + getThumbnailPathWithoutProtocol() { + return this.image.path.replace(/^https?:/, ''); } }
e9bb38e81a42bdc1cec1e9f71c15e60b7edc3c28
extensions/merge-conflict/src/contentProvider.ts
extensions/merge-conflict/src/contentProvider.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. *---------------------------------------------------------------...
Rename content provider to match extension name
Rename content provider to match extension name
TypeScript
mit
stringham/vscode,landonepps/vscode,cleidigh/vscode,0xmohit/vscode,rishii7/vscode,KattMingMing/vscode,hoovercj/vscode,0xmohit/vscode,the-ress/vscode,Zalastax/vscode,gagangupt16/vscode,hoovercj/vscode,Microsoft/vscode,Microsoft/vscode,Microsoft/vscode,DustinCampbell/vscode,KattMingMing/vscode,stringham/vscode,joaomoreno/...
--- +++ @@ -8,7 +8,7 @@ export default class MergeConflictContentProvider implements vscode.TextDocumentContentProvider, vscode.Disposable { - static scheme = 'git.merge.conflict-diff'; + static scheme = 'merge-conflict.conflict-diff'; constructor(private context: vscode.ExtensionContext) { }
d0e5e67b167b87255ac4ad146cf577aa6850892f
src/helpers/ArrowHelper.d.ts
src/helpers/ArrowHelper.d.ts
import { Vector3 } from './../math/Vector3'; import { Line } from './../objects/Line'; import { Mesh } from './../objects/Mesh'; import { Color } from './../math/Color'; import { Object3D } from './../core/Object3D'; // Extras / Helpers ///////////////////////////////////////////////////////////////////// export clas...
import { Vector3 } from './../math/Vector3'; import { Line } from './../objects/Line'; import { Mesh } from './../objects/Mesh'; import { Color } from './../math/Color'; import { Object3D } from './../core/Object3D'; // Extras / Helpers ///////////////////////////////////////////////////////////////////// export clas...
Make color constructor type more permissive
Make color constructor type more permissive
TypeScript
mit
looeee/three.js,donmccurdy/three.js,Liuer/three.js,greggman/three.js,gero3/three.js,gero3/three.js,WestLangley/three.js,aardgoose/three.js,06wj/three.js,kaisalmen/three.js,donmccurdy/three.js,fyoudine/three.js,kaisalmen/three.js,06wj/three.js,Liuer/three.js,aardgoose/three.js,looeee/three.js,mrdoob/three.js,makc/three....
--- +++ @@ -20,7 +20,7 @@ dir: Vector3, origin?: Vector3, length?: number, - color?: number, + color?: Color | string | number, headLength?: number, headWidth?: number );
63772291b23c207d603431c265d9692746e06500
front/src/app/shared/base.service.ts
front/src/app/shared/base.service.ts
import { Injectable } from '@angular/core'; import { Error } from './error/error'; import { Observable } from 'rxjs/Observable'; import { environment } from '../../environments/environment'; import { HttpErrorResponse } from '@angular/common/http'; @Injectable() export class BaseService { private static DEFAULT_ERR...
import { Injectable } from '@angular/core'; import { Error } from './error/error'; import { Observable } from 'rxjs/Observable'; import { environment } from '../../environments/environment'; import { HttpErrorResponse } from '@angular/common/http'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/finally'; im...
Fix wrong import / remove console log
Fix wrong import / remove console log
TypeScript
mit
Crunchy-Torch/coddy,Crunchy-Torch/coddy,Crunchy-Torch/coddy,Crunchy-Torch/coddy,Crunchy-Torch/coddy
--- +++ @@ -3,6 +3,11 @@ import { Observable } from 'rxjs/Observable'; import { environment } from '../../environments/environment'; import { HttpErrorResponse } from '@angular/common/http'; + +import 'rxjs/add/operator/map'; +import 'rxjs/add/operator/finally'; +import 'rxjs/add/operator/catch'; +import 'rxjs/add...
6d7f44e091a47c28bbcf7c169ec3775b6fa7aac5
src/git/remotes/gitlab.ts
src/git/remotes/gitlab.ts
'use strict'; import { GitHubService } from './github'; export class GitLabService extends GitHubService { constructor(public domain: string, public path: string, public custom: boolean = false) { super(domain, path); } get name() { return this.formatName('GitLab'); } }
'use strict'; import { Range } from 'vscode'; import { GitHubService } from './github'; export class GitLabService extends GitHubService { constructor(public domain: string, public path: string, public custom: boolean = false) { super(domain, path); } get name() { return this.formatName('...
Fix GitLab integration's multi-line selection.
Fix GitLab integration's multi-line selection.
TypeScript
mit
eamodio/vscode-gitlens,eamodio/vscode-gitlens,eamodio/vscode-gitlens
--- +++ @@ -1,4 +1,5 @@ 'use strict'; +import { Range } from 'vscode'; import { GitHubService } from './github'; export class GitLabService extends GitHubService { @@ -10,4 +11,20 @@ get name() { return this.formatName('GitLab'); } + + protected getUrlForFile(fileName: string, branch?: stri...
4c50172f81f16289ab4c61ba3ff3c84377fa2780
src/Calque/core/app.ts
src/Calque/core/app.ts
import HelpPage = require('help'); import Workspace = require('workspace'); import Settings = require('settings'); class Application { help = new HelpPage(); workspace: Workspace; settings: Settings; constructor(inputEl: HTMLInputElement, outputEl: HTMLElement) { this.workspace = new Workspac...
import HelpPage = require('help'); import Workspace = require('workspace'); import Settings = require('settings'); class Application { help = new HelpPage(); workspace: Workspace; settings: Settings.Settings; init(inputEl: HTMLInputElement, outputEl: HTMLElement) { this.workspace = new Worksp...
Make App singelton & added restore/save functions
Make App singelton & added restore/save functions
TypeScript
mit
arthot/calque,arthot/calque,arthot/calque
--- +++ @@ -5,12 +5,27 @@ class Application { help = new HelpPage(); workspace: Workspace; - settings: Settings; + settings: Settings.Settings; - constructor(inputEl: HTMLInputElement, outputEl: HTMLElement) { + init(inputEl: HTMLInputElement, outputEl: HTMLElement) { this.workspace ...
4e9b96fc5a2b02e07b863d59e5386eff76ef3ad1
src/telemetry.ts
src/telemetry.ts
'use strict'; import { RestClientSettings } from './models/configurationSettings'; import * as Constants from './constants'; import * as appInsights from "applicationinsights"; appInsights.setup(Constants.AiKey) .setAutoCollectDependencies(false) .setAutoCollectExceptions(false) .setAutoCollectPe...
'use strict'; import { RestClientSettings } from './models/configurationSettings'; import * as Constants from './constants'; import * as appInsights from "applicationinsights"; appInsights.setup(Constants.AiKey) .setAutoCollectConsole(false) .setAutoCollectDependencies(false) .setAutoCollectExcep...
Allow use applicationinsights disk retry caching
Allow use applicationinsights disk retry caching
TypeScript
mit
Huachao/vscode-restclient,Huachao/vscode-restclient
--- +++ @@ -5,12 +5,13 @@ import * as appInsights from "applicationinsights"; appInsights.setup(Constants.AiKey) + .setAutoCollectConsole(false) .setAutoCollectDependencies(false) .setAutoCollectExceptions(false) .setAutoCollectPerformance(false) .setAutoCollectRequests(false) - .setAuto...
e18ff095665e386c77ab79137592c36c5e6183a7
src/locale/km/index.ts
src/locale/km/index.ts
import type { Locale } from '../types' import formatDistance from './_lib/formatDistance/index' import formatLong from './_lib/formatLong/index' import formatRelative from './_lib/formatRelative/index' import localize from './_lib/localize/index' import match from './_lib/match/index' /** * @type {Locale} * @categor...
import type { Locale } from '../types' import formatDistance from './_lib/formatDistance/index' import formatLong from './_lib/formatLong/index' import formatRelative from './_lib/formatRelative/index' import localize from './_lib/localize/index' import match from './_lib/match/index' /** * @type {Locale} * @categor...
Fix @iso-639-2 in Khmer locale
Fix @iso-639-2 in Khmer locale
TypeScript
mit
date-fns/date-fns,date-fns/date-fns,date-fns/date-fns
--- +++ @@ -10,7 +10,7 @@ * @category Locales * @summary Khmer locale (Cambodian). * @language Khmer - * @iso-639-1 km + * @iso-639-2 khm * @author Seanghay Yath [@seanghay]{@link https://github.com/seanghay} */ const locale: Locale = {
5ec8a96dde9826044f6750f804d0b8c1f90f0882
src/selectors/databaseFilterSettings.ts
src/selectors/databaseFilterSettings.ts
import { hitDatabaseSelector, databaseFIlterSettingsSelector } from './index'; import { createSelector } from 'reselect'; import { HitDatabaseEntry } from 'types'; export const hitDatabaseFilteredBySearchTerm = createSelector( [hitDatabaseSelector, databaseFIlterSettingsSelector], (hitDatabase, { searchTerm ...
import { hitDatabaseSelector, databaseFilterSettingsSelector } from './index'; import { createSelector } from 'reselect'; import { HitDatabaseEntry, HitDatabaseMap, StatusFilterType } from 'types'; import { filterBy } from 'utils/databaseFilter'; import { Map } from 'immutable'; export const hitDatabaseFilteredB...
Add selector for filtering HITs by status.
Add selector for filtering HITs by status.
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
--- +++ @@ -1,11 +1,38 @@ -import { hitDatabaseSelector, databaseFIlterSettingsSelector } from './index'; +import { hitDatabaseSelector, databaseFilterSettingsSelector } from './index'; import { createSelector } from 'reselect'; -import { HitDatabaseEntry } from 'types'; +import { HitDatabaseEntry, HitDatabaseMap, S...
f2b82dd3c3cb8c7c2623a0d34f1efe6cf67f9f66
src/background-script/alarms.ts
src/background-script/alarms.ts
import { Alarms } from 'webextension-polyfill-ts' import BackgroundScript from '.' import { QUOTA_USAGE_WARN_PERC } from './constants' import { EVENT_NOTIFS } from 'src/notifications/notifications' export interface AlarmConfig extends Alarms.CreateAlarmInfoType { listener: (bg: BackgroundScript) => void } export...
import { Alarms } from 'webextension-polyfill-ts' import BackgroundScript from '.' import { QUOTA_USAGE_WARN_PERC } from './constants' import { EVENT_NOTIFS } from 'src/notifications/notifications' export interface AlarmConfig extends Alarms.CreateAlarmInfoType { listener: (bg: BackgroundScript) => void } export...
Add quota notif alarm back in
Add quota notif alarm back in
TypeScript
mit
WorldBrain/WebMemex,WorldBrain/WebMemex
--- +++ @@ -25,4 +25,4 @@ } // Schedule alarm configs to run in here: -export default {} as AlarmsConfig +export default { storageQuotaCheck } as AlarmsConfig
1afb7d88e286e47893a0f8de2aa37c33f9317a6a
src/utils/queueItem.ts
src/utils/queueItem.ts
import { QueueItem, SearchResult } from '../types'; import * as v4 from 'uuid/v4'; export const blankQueueItem = (groupId: string): QueueItem => ({ groupId, hitId: '[REFRESH_REQUIRED]' + v4(), assignmentId: '[REFRESH_REQUIRED]' + v4(), requester: { name: '[REFRESH_REQUIRED]', id: '[REFRESH_REQ...
import { QueueItem, SearchResult } from '../types'; import * as v4 from 'uuid/v4'; const NEEDS_REFRESH_PREFIX = '[REFRESH_REQUIRED]'; export const blankQueueItem = (groupId: string): QueueItem => ({ groupId, hitId: NEEDS_REFRESH_PREFIX + v4(), assignmentId: NEEDS_REFRESH_PREFIX + v4(), requester: { ...
Change [REFRESH_REQUIRED] string into constant.
Change [REFRESH_REQUIRED] string into constant.
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
--- +++ @@ -1,20 +1,22 @@ import { QueueItem, SearchResult } from '../types'; import * as v4 from 'uuid/v4'; +const NEEDS_REFRESH_PREFIX = '[REFRESH_REQUIRED]'; + export const blankQueueItem = (groupId: string): QueueItem => ({ groupId, - hitId: '[REFRESH_REQUIRED]' + v4(), - assignmentId: '[REFRESH_REQUIRE...
e75da1d3603b6b54ccf320ec510f72c99ba71b83
src/App.tsx
src/App.tsx
import * as React from 'react' import { Component } from 'react' import { StyleSheet } from 'react-native' import { Text } from 'react-native' import { View } from 'react-native' import { Card } from './Card' import { Circle } from './Circle' import { Draggable } from './Draggable' import { Suit } from './Suit' expor...
import * as React from 'react' import { Component } from 'react' import { StyleSheet } from 'react-native' import { Text } from 'react-native' import { View } from 'react-native' import { Card } from './Card' import { Draggable } from './Draggable' import { Suit } from './Suit' export default class App extends Compon...
Remove unused text and circle
Remove unused text and circle
TypeScript
mit
janaagaard75/desert-walk,janaagaard75/desert-walk
--- +++ @@ -5,7 +5,6 @@ import { View } from 'react-native' import { Card } from './Card' -import { Circle } from './Circle' import { Draggable } from './Draggable' import { Suit } from './Suit' @@ -23,11 +22,6 @@ return ( <View style={this.styles.container}> <Text>Open up App.js to start...
62805b4e7a4a426cb32c18a5ec5e8583f8f9d2fc
packages/kernel-relay/__tests__/index.spec.ts
packages/kernel-relay/__tests__/index.spec.ts
import { gql } from "apollo-server"; import { createTestClient } from "apollo-server-testing"; import { server } from "../src"; describe("Queries", () => { it("returns a list of kernelspecs", async () => { const { query } = createTestClient(server); const LIST_KERNELSPECS = gql` query GetKernels { ...
import { gql } from "apollo-server"; import { createTestClient } from "apollo-server-testing"; import { server } from "../src"; describe("Queries", () => { it("returns a list of kernelspecs", async () => { const { query } = createTestClient(server); const LIST_KERNELSPECS = gql` query GetKernels { ...
Use Jest snapshots in tests
Use Jest snapshots in tests
TypeScript
bsd-3-clause
nteract/composition,nteract/composition,nteract/nteract,nteract/nteract,nteract/composition,nteract/nteract,nteract/nteract,nteract/nteract
--- +++ @@ -13,8 +13,7 @@ } `; const response = await query({ query: LIST_KERNELSPECS }); - expect(response).not.toBeNull(); - expect(response.data.listKernelSpecs.length).toBeGreaterThan(0); + expect(response).toMatchSnapshot(); }); }); @@ -33,8 +32,7 @@ const response = await mu...
9f181b6c00b2581d2eb0d07c4bdf7c51f5e8d4f7
functions/src/schedule-view/schedule-view-data.ts
functions/src/schedule-view/schedule-view-data.ts
type Optional<T> = T | null export interface Schedule { pages: SchedulePage[] } export interface SchedulePage { day: Day events: Event[] } export interface Day { id: string date: Date } export interface Event { id: string title: string startTime: Date endTime: Date place: Opt...
export interface Schedule { pages: SchedulePage[] } export interface SchedulePage { day: Day events: Event[] } export interface Day { id: string date: Date } export interface Event { id: string title: string startTime: Date endTime: Date place: Place | null track: Track | ...
Use T | null and remove duplicated optional declaration
Use T | null and remove duplicated optional declaration
TypeScript
apache-2.0
squanchy-dev/squanchy-firebase,squanchy-dev/squanchy-firebase
--- +++ @@ -1,5 +1,3 @@ -type Optional<T> = T | null - export interface Schedule { pages: SchedulePage[] } @@ -19,35 +17,35 @@ title: string startTime: Date endTime: Date - place: Optional<Place> - track: Optional<Track> + place: Place | null + track: Track | null speakers: Spea...
7f20c7c574ece194dc849e9f973d8b04ced4d4c0
src/types/Config.ts
src/types/Config.ts
export default interface Config { tags: string[]; exports: { [files: string]: string | string[] }; };
export default interface Config { tags?: string[]; exports?: { [files: string]: string | string[] }; };
Make properties in depcop.json optional
Make properties in depcop.json optional
TypeScript
mit
smikula/good-fences,smikula/good-fences
--- +++ @@ -1,4 +1,4 @@ export default interface Config { - tags: string[]; - exports: { [files: string]: string | string[] }; + tags?: string[]; + exports?: { [files: string]: string | string[] }; };
c4dc21875a53d2ee669cfb5e950c75241943508a
app/src/ui/branches/ci-status.tsx
app/src/ui/branches/ci-status.tsx
import * as React from 'react' import { Octicon, OcticonSymbol } from '../octicons' import { APIRefState } from '../../lib/api' import { assertNever } from '../../lib/fatal-error' import * as classNames from 'classnames' import { PullRequestStatus } from '../../models/pull-request' interface ICIStatusProps { /** The...
import * as React from 'react' import { Octicon, OcticonSymbol } from '../octicons' import { APIRefState } from '../../lib/api' import { assertNever } from '../../lib/fatal-error' import * as classNames from 'classnames' import { PullRequestStatus } from '../../models/pull-request' interface ICIStatusProps { /** The...
Add function to generate more descriptive pr status
Add function to generate more descriptive pr status
TypeScript
mit
say25/desktop,shiftkey/desktop,desktop/desktop,j-f1/forked-desktop,shiftkey/desktop,kactus-io/kactus,say25/desktop,kactus-io/kactus,artivilla/desktop,kactus-io/kactus,j-f1/forked-desktop,say25/desktop,shiftkey/desktop,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,kactus-io/kactus,desktop/desktop,artivilla/desktop,...
--- +++ @@ -17,8 +17,9 @@ export class CIStatus extends React.Component<ICIStatusProps, {}> { public render() { const status = this.props.status + const ciTitle = generateStatusHistory(status) const state = status.state - const ciTitle = `Commit status: ${state}` + return ( <Octicon ...
33cbef3840faea210b52f8d49d54416059b1ae67
src/main-process/app-window.ts
src/main-process/app-window.ts
import {BrowserWindow} from 'electron' import Stats from './stats' export default class AppWindow { private window: Electron.BrowserWindow private stats: Stats public constructor(stats: Stats) { this.window = new BrowserWindow( { width: 800, height: 600, show: false, titleBarSt...
import {BrowserWindow} from 'electron' import Stats from './stats' export default class AppWindow { private window: Electron.BrowserWindow private stats: Stats public constructor(stats: Stats) { this.window = new BrowserWindow( { width: 800, height: 600, show: false, titleBarSt...
Add explicit window background color to fix subpixel aliasing on Windows
Add explicit window background color to fix subpixel aliasing on Windows
TypeScript
mit
BugTesterTest/desktops,j-f1/forked-desktop,kactus-io/kactus,shiftkey/desktop,hjobrien/desktop,kactus-io/kactus,say25/desktop,say25/desktop,desktop/desktop,kactus-io/kactus,hjobrien/desktop,artivilla/desktop,gengjiawen/desktop,gengjiawen/desktop,desktop/desktop,BugTesterTest/desktops,gengjiawen/desktop,j-f1/forked-deskt...
--- +++ @@ -13,7 +13,10 @@ width: 800, height: 600, show: false, - titleBarStyle: 'hidden' + titleBarStyle: 'hidden', + // This fixes subpixel aliasing on Windows + // See https://github.com/atom/atom/commit/683bef5b9d133cb194b476938c77cc07fd05b972 + backgroundColor: "#ff...
0d77a616d7877d0a8f5af383652d6619e0d6a5cd
app/javascript/charts/utils/backwardsCompat.ts
app/javascript/charts/utils/backwardsCompat.ts
interface BackwardsCompatChartView { prototype: { containerSelector(): string; container_selector(): string; createValueFormatter(): (value: number) => string; isEmpty(): boolean; is_empty(): boolean; main_formatter(): (value: number) => string; toggleFormat(): void; toggle_format(): v...
interface BackwardsCompatChartView { prototype: { containerSelector(): string; container_selector(): string; createValueFormatter(): (value: number) => string; isEmpty(): boolean; is_empty(): boolean; main_formatter(): (value: number) => string; toggleFormat(): void; toggle_format(): v...
Fix missing update_header on new charts
Fix missing update_header on new charts `update_header` on old charts is now `updateHeaderButtons`. The conversion from new to old has been added to `backwardsCompat`.
TypeScript
mit
quintel/etmodel,quintel/etmodel,quintel/etmodel,quintel/etmodel
--- +++ @@ -8,6 +8,8 @@ main_formatter(): (value: number) => string; toggleFormat(): void; toggle_format(): void; + updateHeaderButtons(): void; + update_header(): void; updateLockIcon(): void; update_lock_icon(): void; }; @@ -22,10 +24,11 @@ */ export default (klass: BackwardsCom...
5929280081f43dceffdb5ba24f724abd87f0ad9c
source/services/dataContracts/dataContractsHelper/dataContractsHelper.service.ts
source/services/dataContracts/dataContractsHelper/dataContractsHelper.service.ts
'use strict'; export interface IDataContractsHelper { versionEndpoint(endpoint: string, versionNumber: number): string; } class DataContractsHelper implements IDataContractsHelper { versionEndpoint(endpoint: string, versionNumber: number): string { let endpointFragments: string[] = endpoint.split('api'); return...
'use strict'; export interface IDataContractsHelper { versionEndpoint(endpoint: string, versionNumber: number): string; } class DataContractsHelper implements IDataContractsHelper { versionEndpoint(endpoint: string, versionNumber: number): string { let versionExpression: RegEx = /v[0-9]+/; let endpointFragments...
Use a regular expression to check for a previous version number. If one exists, replace it. Otherwise, add a new version immediately after 'api' in the url.
Use a regular expression to check for a previous version number. If one exists, replace it. Otherwise, add a new version immediately after 'api' in the url.
TypeScript
mit
SamGraber/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities
--- +++ @@ -6,8 +6,18 @@ class DataContractsHelper implements IDataContractsHelper { versionEndpoint(endpoint: string, versionNumber: number): string { - let endpointFragments: string[] = endpoint.split('api'); - return endpointFragments.join('api/v' + versionNumber); + let versionExpression: RegEx = /v[0-9]+...
1f5920428392356903155634cb8fd90af06da62e
src/index.ts
src/index.ts
import Knex from 'knex'; import { Identifiable, ConnectorConstructor, ModelStatic, ModelConstructor, Bindings } from '@next-model/core'; export class NextModelKnexConnector<S extends Identifiable> implements ConnectorConstructor<S> { knex: Knex; constructor(options: Knex.Config) { this.knex = Knex(o...
import Knex from 'knex'; import { Identifiable, ConnectorConstructor, ModelStatic, ModelConstructor, Bindings } from '@next-model/core'; export class NextModelKnexConnector<S extends Identifiable> implements ConnectorConstructor<S> { knex: Knex; constructor(options: Knex.Config) { this.knex = Knex(o...
Add placeholders for missing methods
Add placeholders for missing methods
TypeScript
mit
tamino-martinius/node-next-model-knex-connector
--- +++ @@ -27,6 +27,30 @@ } + query(model: ModelStatic<S>): Promise<ModelConstructor<S>[]> { + + } + + count(model: ModelStatic<S>): Promise<number> { + + } + + updateAll(model: ModelStatic<S>, attrs: Partial<S>): Promise<ModelConstructor<S>[]> { + + } + + deleteAll(model: ModelStatic<S>): Promise<Mode...
c81edb9e1a4984dd6811b5a4b2777b0319d7b73a
src/providers/camera-service.ts
src/providers/camera-service.ts
import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import { Camera, CameraOptions } from '@ionic-native/camera'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/map'; import 'rxjs/add/observable/fromPromise'; @Injectable() export class CameraService { construct...
import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import { Camera, CameraOptions } from '@ionic-native/camera'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/map'; import 'rxjs/add/observable/fromPromise'; @Injectable() export class CameraService { construct...
Remove console log after initalisation
Remove console log after initalisation
TypeScript
mit
IMSmobile/app,IMSmobile/app,IMSmobile/app,IMSmobile/app
--- +++ @@ -8,9 +8,7 @@ @Injectable() export class CameraService { - constructor(public http: Http, public camera: Camera) { - console.log('Hello CameraService Provider'); - } + constructor(public http: Http, public camera: Camera) {} public takePicture(): Observable<any> {
df91a63fa9b2504e95d4bec159c216cda45ff852
lib/directives/tree-drag.directive.ts
lib/directives/tree-drag.directive.ts
import { Directive, Input, HostListener, Renderer, ElementRef, DoCheck } from '@angular/core'; import { TreeDraggedElement } from '../models/tree-dragged-element.model'; const DRAG_OVER_CLASS = 'is-dragging-over'; @Directive({ selector: '[treeDrag]' }) export class TreeDragDirective implements DoCheck { @Input('t...
import { Directive, Input, HostListener, Renderer, ElementRef, DoCheck } from '@angular/core'; import { TreeDraggedElement } from '../models/tree-dragged-element.model'; const DRAG_OVER_CLASS = 'is-dragging-over'; @Directive({ selector: '[treeDrag]' }) export class TreeDragDirective implements DoCheck { @Input('t...
Check against mouseAction to not get an error
Check against mouseAction to not get an error if the selection isn't a TreeNode.
TypeScript
mit
500tech/angular2-tree-component,Alexey3/angular-tree-component,sm-allen/angular-tree-component,500tech/angular2-tree-component,sm-allen/angular-tree-component,Alexey3/angular-tree-component,sm-allen/angular-tree-component,500tech/angular2-tree-component,Alexey3/angular-tree-component
--- +++ @@ -23,14 +23,16 @@ // setting the data is required by firefox ev.dataTransfer.setData('text', ev.target.id); - this.draggedElement.mouseAction('dragStart', ev); - + if (this.draggedElement.mouseAction) { + this.draggedElement.mouseAction('dragStart', ev); + } setTimeout(() => t...
1f7f0676fb07ffa274b1d12ef7ecd5b066938163
src/Chamilo/Core/Repository/ContentObject/Rubric/Resources/Source/src/Domain/Choice.ts
src/Chamilo/Core/Repository/ContentObject/Rubric/Resources/Source/src/Domain/Choice.ts
export interface ChoiceJsonObject { selected: boolean, feedback: string, hasFixedScore: boolean, fixedScore: number, criteriumId: string, levelId: string } export default class Choice { public selected: boolean; public feedback: string; public hasFixedScore: boolean = false; pub...
export interface ChoiceJsonObject { selected: boolean, feedback: string, hasFixedScore: boolean, fixedScore: number, criteriumId: string, levelId: string } export default class Choice { public selected: boolean; public feedback: string; public hasFixedScore: boolean = false; pri...
Make sure the fixed score value is a number.
Make sure the fixed score value is a number.
TypeScript
mit
cosnics/cosnics,cosnics/cosnics,forelo/cosnics,cosnics/cosnics,forelo/cosnics,cosnics/cosnics,cosnics/cosnics,forelo/cosnics,forelo/cosnics,forelo/cosnics,cosnics/cosnics,cosnics/cosnics,forelo/cosnics,forelo/cosnics,forelo/cosnics,cosnics/cosnics
--- +++ @@ -11,12 +11,26 @@ public selected: boolean; public feedback: string; public hasFixedScore: boolean = false; - public fixedScore: number = 10; + private fixedScore_: number = 10; public static readonly FIXED_SCORE = 10; constructor(selected: boolean = false, feedback: string ...
5c008d8c6f678d2ed0bee64ced213fa1d06b92cb
applications/account/src/app/containers/mail/MailAutoReplySettings.tsx
applications/account/src/app/containers/mail/MailAutoReplySettings.tsx
import React from 'react'; import { c } from 'ttag'; import { AutoReplySection, SettingsPropsShared } from 'react-components'; import PrivateMainSettingsAreaWithPermissions from '../../components/PrivateMainSettingsAreaWithPermissions'; export const getAutoReply = () => { return { text: c('Title').t`Auto...
import React from 'react'; import { c } from 'ttag'; import { AutoReplySection, SettingsPropsShared } from 'react-components'; import PrivateMainSettingsAreaWithPermissions from '../../components/PrivateMainSettingsAreaWithPermissions'; export const getAutoReply = () => { return { text: c('Title').t`Auto...
Remove settings section title from Auto-Reply
Remove settings section title from Auto-Reply
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -10,12 +10,7 @@ text: c('Title').t`Auto reply`, to: '/mail/auto-reply', icon: 'mailbox', - subsections: [ - { - text: c('Title').t`Auto reply`, - id: 'auto-reply', - }, - ], + subsections: [{ id: 'auto-reply...
cf7169db9e658bdab086dbc7f4761f3629e85a9f
module/ladda-config.ts
module/ladda-config.ts
import { Injectable } from "@angular/core"; export interface LaddaConfigArgs { style?: string; spinnerSize?: number; spinnerColor?: string; spinnerLines?: number; } export let configAttributes: {[key: string]: keyof LaddaConfigArgs} = { "data-style": "style", "data-spinner-size": "spinnerSize"...
import { Injectable } from "@angular/core"; export type laddaStyle = "expand-left" | "expand-right" | "expand-up" | "expand-down" | "contract" | "contract-overlay" | "zoom-in" | "zoom-out" | "slide-left" | "slide-right" | "slide-up" | "slide-down"; export interface LaddaConfigArgs { style?: laddaStyle...
Enable validation and code completion when setting a default style
Enable validation and code completion when setting a default style
TypeScript
mit
moff/angular2-ladda,moff/angular2-ladda
--- +++ @@ -1,7 +1,12 @@ import { Injectable } from "@angular/core"; +export type laddaStyle = + "expand-left" | "expand-right" | "expand-up" | "expand-down" | + "contract" | "contract-overlay" | "zoom-in" | "zoom-out" | + "slide-left" | "slide-right" | "slide-up" | "slide-down"; + export interface Ladda...
66bb31af472b153a2739fa2f68544f879c6d9361
src/Rendering/Html/EscapingHelpers.ts
src/Rendering/Html/EscapingHelpers.ts
export function escapeHtmlContent(content: string): string { return htmlEscape(content, /[&<]/g) } export function escapeHtmlAttrValue(attrValue: string | number): string { return htmlEscape(String(attrValue), /[&"]/g) } function htmlEscape(html: string, charsToEscape: RegExp): string { return html.replace( ...
export function escapeHtmlContent(content: string): string { return escapeHtml(content, /[&<]/g) } export function escapeHtmlAttrValue(attrValue: string | number): string { return escapeHtml(String(attrValue), /[&"]/g) } function escapeHtml(html: string, charsToEscape: RegExp): string { return html.replace( ...
Use more consistent function name
Use more consistent function name
TypeScript
mit
start/up,start/up
--- +++ @@ -1,12 +1,12 @@ export function escapeHtmlContent(content: string): string { - return htmlEscape(content, /[&<]/g) + return escapeHtml(content, /[&<]/g) } export function escapeHtmlAttrValue(attrValue: string | number): string { - return htmlEscape(String(attrValue), /[&"]/g) + return escapeHtml(St...
f143c3b2c12b5676b3d82f1a7c822a6321f72554
coreTable/OwidTableUtil.ts
coreTable/OwidTableUtil.ts
import { CoreTable } from "./CoreTable" import { ColumnSlug } from "./CoreTableConstants" import { OwidColumnDef, OwidTableSlugs } from "./OwidTableConstants" export function timeColumnSlugFromColumnDef(def: OwidColumnDef) { return def.isDailyMeasurement ? OwidTableSlugs.day : OwidTableSlugs.year } export functio...
import { CoreTable } from "./CoreTable" import { ColumnSlug } from "./CoreTableConstants" import { OwidColumnDef, OwidTableSlugs } from "./OwidTableConstants" export function timeColumnSlugFromColumnDef(def: OwidColumnDef) { return def.isDailyMeasurement ? OwidTableSlugs.day : OwidTableSlugs.year } export functio...
Use CoreTable.has() instead of columnSlugs.includes()
Use CoreTable.has() instead of columnSlugs.includes()
TypeScript
mit
OurWorldInData/owid-grapher,owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher
--- +++ @@ -15,6 +15,6 @@ slug: ColumnSlug ): ColumnSlug | undefined { const originalTimeSlug = makeOriginalTimeSlugFromColumnSlug(slug) - if (table.columnSlugs.includes(originalTimeSlug)) return originalTimeSlug + if (table.has(originalTimeSlug)) return originalTimeSlug return table.timeColumn?...
bbb9261ed61b3999074a7d21123f3eed0105058b
src/app/units/states/edit/directives/unit-students-editor/student-campus-select/student-campus-select.component.ts
src/app/units/states/edit/directives/unit-students-editor/student-campus-select/student-campus-select.component.ts
import { Unit } from '../../../../../../ajs-upgraded-providers'; import { Component, Input, OnInit } from '@angular/core'; import { Campus } from 'src/app/api/models/campus/campus'; import { CampusService } from 'src/app/api/models/campus/campus.service'; import { MatSelectChange } from '@angular/material/select'; @Co...
import { Unit } from '../../../../../../ajs-upgraded-providers'; import { Component, Input, OnInit } from '@angular/core'; import { Campus } from 'src/app/api/models/campus/campus'; import { CampusService } from 'src/app/api/models/campus/campus.service'; import { MatSelectChange } from '@angular/material/select'; @Co...
Correct scope issues identified in deploy
FIX: Correct scope issues identified in deploy
TypeScript
agpl-3.0
doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web
--- +++ @@ -14,7 +14,7 @@ @Input() student: any; @Input() update: boolean; - private campuses: Campus[]; + campuses: Campus[]; private originalCampusId: number; constructor ( private campusService: CampusService ) { @@ -30,7 +30,7 @@ }); } - private campusChange(event: MatSelectChange) { ...
ce44c3316b2dc99db6a128deed1a422a122c392d
client/src/reducers/token.ts
client/src/reducers/token.ts
import { Reducer } from 'redux'; import * as Cookies from 'js-cookie'; import { TokenAction, actionTypes } from '../actions/token'; import { TokenStateSchema, TokenEmptyState } from '../models/token'; export const tokenReducer: Reducer<TokenStateSchema> = (state: TokenStateSchema = TokenEmptyState, action: TokenAct...
import { Reducer } from 'redux'; import * as Cookies from 'js-cookie'; import { TokenAction, actionTypes } from '../actions/token'; import { TokenStateSchema, TokenEmptyState } from '../models/token'; export const tokenReducer: Reducer<TokenStateSchema> = (state: TokenStateSchema = TokenEmptyState, action: TokenAct...
Update reducer to not alter cookie states
Update reducer to not alter cookie states
TypeScript
apache-2.0
polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon
--- +++ @@ -9,16 +9,17 @@ switch (action.type) { case actionTypes.RECEIVE_TOKEN: - Cookies.set('token', action.token.token); - Cookies.set('user', action.username); + // Cookies.set('token', action.token.token); + // Cookies.set('user', action.username); return { ...
1ae0d7512cd58558607b1b2b1fd0dfc0938b1841
src/fetch.browser.ts
src/fetch.browser.ts
import { ErrorResponse } from "./types"; import { GLOBAL_OPTIONS, searchParams } from "./utils"; export const fetchGet = <T>( url: string, data: { [x: string]: string } = {}, signal?: AbortSignal ): Promise<T> => { const options: RequestInit = { method: "GET" }; if (signal !== undefined) { options...
import { ErrorResponse } from "./types"; import { GLOBAL_OPTIONS, searchParams } from "./utils"; import { version } from "./version"; export const fetchGet = <T>( url: string, data: { [x: string]: string } = {}, signal?: AbortSignal ): Promise<T> => { const options: RequestInit = { method: "GET", heade...
Add `X-W3W-Wrapper` head to API requests
Add `X-W3W-Wrapper` head to API requests
TypeScript
mit
OpenCageData/js-geo-what3words,what3words/w3w-node-wrapper,what3words/w3w-node-wrapper
--- +++ @@ -1,5 +1,6 @@ import { ErrorResponse } from "./types"; import { GLOBAL_OPTIONS, searchParams } from "./utils"; +import { version } from "./version"; export const fetchGet = <T>( url: string, @@ -7,7 +8,10 @@ signal?: AbortSignal ): Promise<T> => { const options: RequestInit = { - method: "...
76731052636bf79c675a8d8f4633ab00e9fba38f
app/Version.ts
app/Version.ts
class Version { static publishDate: Date = null; static etc: string = null; static get version() { let date = Version.publishDate || new Date(); return date.getUTCFullYear().toString().substr(2) + ("0" + date.getUTCMonth()).slice(-2) + ("0" + date.getUTCDay()).slice(-2) + "-" + ("0" + date.getUTCH...
class Version { static publishDate: Date = null; static etc: string = null; static get version() { let date = Version.publishDate || new Date(); return date.getUTCFullYear().toString().substr(2) + ("0" + (date.getUTCMonth() + 1)).slice(-2) + ("0" + date.getUTCDate()).slice(-2) + "-" + ("0" + date....
Fix version string to show proper date
Fix version string to show proper date
TypeScript
mit
InfBuild/InfBuild,InfBuild/InfBuild,InfBuild/InfBuild
--- +++ @@ -8,8 +8,8 @@ let date = Version.publishDate || new Date(); return date.getUTCFullYear().toString().substr(2) - + ("0" + date.getUTCMonth()).slice(-2) - + ("0" + date.getUTCDay()).slice(-2) + + ("0" + (date.getUTCMonth() + 1)).slice(-2) + + ("0" + date.getUTCDate()).slice(-2) + "-" +...
95b60c5acc2888398e9562ba4bc97d94b4ad90cb
client/src/components/bookmarkStar.tsx
client/src/components/bookmarkStar.tsx
import * as React from 'react'; import { OverlayTrigger, Tooltip } from 'react-bootstrap'; import './bookmarkStar.less'; export interface Props { active: boolean; callback?: () => any; } function BookmarkStar({active, callback}: Props) { const className = active ? 'icon-bookmark-active' : ''; const tooltip =...
import * as React from 'react'; import { OverlayTrigger, Tooltip } from 'react-bootstrap'; import './bookmarkStar.less'; export interface Props { active: boolean; callback?: () => any; } function BookmarkStar({active, callback}: Props) { const className = active ? 'icon-bookmark-active' : ''; const tooltip =...
Fix the bookmark tooltip issue
Fix the bookmark tooltip issue
TypeScript
apache-2.0
polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon
--- +++ @@ -12,11 +12,11 @@ const className = active ? 'icon-bookmark-active' : ''; const tooltip = active ? 'Remove from bookmarks' : 'Add to bookmarks'; return ( - <OverlayTrigger placement="bottom" overlay={<Tooltip id="tooltipId">{tooltip}</Tooltip>}> - <span className={`icon-bookmark ${className...
8fe158f79e8109a95aa2f65b7356330bb2e5704b
src/app/compose/compose.component.ts
src/app/compose/compose.component.ts
import {Component, Inject} from '@angular/core'; import {NgbActiveModal} from '@ng-bootstrap/ng-bootstrap'; import {FormBuilder, FormGroup, Validators} from '@angular/forms'; import {Store} from '@ngrx/store'; import {IAppState} from '../store/index'; import {SEND_EMAIL} from '../store/email/email.actions'; @Component...
import {Component, Inject} from '@angular/core'; import {NgbActiveModal} from '@ng-bootstrap/ng-bootstrap'; import {FormBuilder, FormGroup, Validators} from '@angular/forms'; import {Store} from '@ngrx/store'; import {IAppState} from '../store/index'; import {SEND_EMAIL} from '../store/email/email.actions'; @Component...
Remove the default Addresses and Message
Remove the default Addresses and Message
TypeScript
mit
muthukumarsp/e-mail-application,muthukumarsp/e-mail-application,muthukumarsp/e-mail-application
--- +++ @@ -18,11 +18,17 @@ public activeModal: NgbActiveModal, public store: Store<IAppState>) { this.form = fb.group({ - toField: ['muthu_career@rediffmail.com,muthukumarsp@gmail.com', Validators.required], - ccField: ['muthukumarsp@outlook.com'], - ...
2a316f5e2906eb9bc0d57618a980e5fbccd62e17
src/App.tsx
src/App.tsx
import styled from 'styled-components' import { Intro, CheckboxTree } from './components' import data from './data/data.json' import github from './assets/github.svg' const Main = styled.main` display: flex; flex-direction: column; width: 80%; max-width: 64rem; height: 100vh; margin: 0 auto; ` const Sect...
import styled from 'styled-components' import { Intro, CheckboxTree } from './components' import data from './data/data.json' import github from './assets/github.svg' const Main = styled.main` display: flex; flex-direction: column; width: 80%; max-width: 64rem; height: 100vh; margin: 0 auto; ` const Sec...
Add empty line before svg import
Add empty line before svg import
TypeScript
mit
joelgeorgev/react-checkbox-tree,joelgeorgev/react-checkbox-tree
--- +++ @@ -2,6 +2,7 @@ import { Intro, CheckboxTree } from './components' import data from './data/data.json' + import github from './assets/github.svg' const Main = styled.main`
dc2989b895eb7a950f923ec499f159ab7bbcfea8
e2e/app.e2e-spec.ts
e2e/app.e2e-spec.ts
import { AppPage } from './app.po'; import { browser, by, element } from 'protractor'; describe('eviction-maps App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); page.navigateTo(); }); it('should have the map element', () => { expect(page.getMapElement().isPresent()).toBeTr...
import { AppPage } from './app.po'; import { browser, by, element } from 'protractor'; describe('eviction-maps App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); page.navigateTo(); }); it('should have the map element', () => { expect(page.getMapElement().isPresent()).toBeTr...
Add additional route wait time
Add additional route wait time
TypeScript
mit
EvictionLab/eviction-maps,EvictionLab/eviction-maps,EvictionLab/eviction-maps,EvictionLab/eviction-maps
--- +++ @@ -18,6 +18,7 @@ }); it('should update the route', () => { + browser.waitForAngular(); expect(page.getFullPath()).toContain('states'); }); });
4745426e1d16de41f9b9e544938394843c593099
build/webpack.config.production.ts
build/webpack.config.production.ts
/// <reference path='webpack.fix.d.ts' /> import * as ExtractTextPlugin from 'extract-text-webpack-plugin' import * as path from 'path' import * as webpack from 'webpack' import * as ParallelUglifyPlugin from 'webpack-parallel-uglify-plugin' import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer' import baseC...
/// <reference path='webpack.fix.d.ts' /> import * as ExtractTextPlugin from 'extract-text-webpack-plugin' import * as path from 'path' import * as webpack from 'webpack' import * as ParallelUglifyPlugin from 'webpack-parallel-uglify-plugin' import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer' import baseC...
Add Bluperint entry point in prod
Add Bluperint entry point in prod
TypeScript
mit
respace-js/respace,respace-js/respace,evansb/respace,evansb/respace,evansb/respace
--- +++ @@ -14,7 +14,10 @@ export default merge(baseConfig, { devtool: 'cheap-module-source-map', - entry: ['babel-polyfill', './src/index'], + entry: { + app: ['babel-polyfill', './src/index'], + blueprintjs: [ './src/blueprintjs' ] + }, module: { rules: [ @@ -29,7 +32,7 @@ }, output...
cb43ec8685d5e387bdf6fc120c80ab41ca568abc
lib/store/watch.ts
lib/store/watch.ts
import { TextEditor, Disposable } from "atom"; import { action } from "mobx"; import OutputStore from "./output"; import { log } from "./../utils"; import type Kernel from "./../kernel"; export default class WatchStore { kernel: Kernel; editor: TextEditor; outputStore = new OutputStore(); autocompleteDisposable...
import { TextEditor, Disposable } from "atom"; import { action } from "mobx"; import OutputStore from "./output"; import { log } from "./../utils"; import type Kernel from "./../kernel"; export default class WatchStore { kernel: Kernel; editor: TextEditor; outputStore = new OutputStore(); autocompleteDisposable...
Fix assignLanguageMode accepts a buffer
Fix assignLanguageMode accepts a buffer
TypeScript
mit
nteract/hydrogen,nteract/hydrogen
--- +++ @@ -17,7 +17,10 @@ }); const grammar = this.kernel.grammar; if (grammar) - atom.grammars.assignLanguageMode(this.editor, grammar.scopeName); + atom.grammars.assignLanguageMode( + this.editor.getBuffer(), + grammar.scopeName + ); this.editor.moveToTop(); th...
ef92467ec4e1ac98474a1676dfe3020da64b3c80
src/main/lib/dialog/DialogStore.tsx
src/main/lib/dialog/DialogStore.tsx
import { observable, action } from 'mobx' import { DialogData, PromptDialogOptions, DialogTypes, MessageBoxDialogOptions } from './interfaces' let id = 0 export default class DialogStore { @observable currentData?: DialogData @action setOptions(data?: DialogData) { this.currentData = data } pro...
import { observable, action } from 'mobx' import { DialogData, PromptDialogOptions, DialogTypes, MessageBoxDialogOptions } from './interfaces' let id = 0 export default class DialogStore { @observable currentData?: DialogData @action setData(data?: DialogData) { this.currentData = data } prompt...
Rename setOptions method to setData
Rename setOptions method to setData
TypeScript
mit
Sarah-Seo/Inpad,Sarah-Seo/Inpad
--- +++ @@ -11,12 +11,12 @@ @observable currentData?: DialogData @action - setOptions(data?: DialogData) { + setData(data?: DialogData) { this.currentData = data } prompt(options: PromptDialogOptions) { - this.setOptions({ + this.setData({ id: id++, type: DialogTypes.Prompt,...
083f1216837075c369f18650476b2de13e6490d9
src/export/packer/packer.ts
src/export/packer/packer.ts
import { File } from "file"; import { Compiler } from "./next-compiler"; export class Packer { private readonly compiler: Compiler; constructor() { this.compiler = new Compiler(); } public async toBuffer(file: File): Promise<Buffer> { const zip = await this.compiler.compile(file); ...
import { File } from "file"; import { Compiler } from "./next-compiler"; export class Packer { private readonly compiler: Compiler; constructor() { this.compiler = new Compiler(); } public async toBuffer(file: File): Promise<Buffer> { const zip = await this.compiler.compile(file); ...
Add correct docx mime type
Add correct docx mime type
TypeScript
mit
dolanmiu/docx,dolanmiu/docx,dolanmiu/docx
--- +++ @@ -10,21 +10,30 @@ public async toBuffer(file: File): Promise<Buffer> { const zip = await this.compiler.compile(file); - const zipData = (await zip.generateAsync({ type: "nodebuffer" })) as Buffer; + const zipData = (await zip.generateAsync({ + type: "nodebuffer", + ...
9bbdcfd437c2d21bc2645f286941172b781388b1
src/RichText.webmodeler.ts
src/RichText.webmodeler.ts
import { Component, createElement } from "react"; import { RichText, RichTextProps } from "./components/RichText"; import TextEditorContainer, { RichTextContainerProps } from "./components/RichTextContainer"; // tslint:disable-next-line class-name export class preview extends Component<RichTextContainerProps, {}> { ...
import { Component, createElement } from "react"; import { RichText, RichTextProps } from "./components/RichText"; import TextEditorContainer, { RichTextContainerProps } from "./components/RichTextContainer"; type VisibilityMap = { [P in keyof RichTextContainerProps]: boolean; }; // tslint:disable-next-line class...
Add web modeler conditional visibility
Add web modeler conditional visibility
TypeScript
apache-2.0
Andries-Smit/rich-text,Andries-Smit/rich-text
--- +++ @@ -1,11 +1,19 @@ import { Component, createElement } from "react"; import { RichText, RichTextProps } from "./components/RichText"; import TextEditorContainer, { RichTextContainerProps } from "./components/RichTextContainer"; + +type VisibilityMap = { + [P in keyof RichTextContainerProps]: boolean; +};...
edb16480a430fae2d2b15f2b0b177f9c37607661
output-facebookmessenger/src/models/common/IdentityData.ts
output-facebookmessenger/src/models/common/IdentityData.ts
import { IsNotEmpty, IsOptional, IsString } from '@jovotech/output'; export class IdentityData { @IsString() @IsNotEmpty() id: string; @IsOptional() @IsString() @IsNotEmpty() user_ref?: string; @IsOptional() @IsString() @IsNotEmpty() post_id?: string; @IsOptional() @IsString() @IsNotEmpt...
import { IsNotEmpty, IsOptional, IsString } from '@jovotech/output'; export class IdentityData { @IsString() id: string; @IsOptional() @IsString() @IsNotEmpty() user_ref?: string; @IsOptional() @IsString() @IsNotEmpty() post_id?: string; @IsOptional() @IsString() @IsNotEmpty() comment_id...
Fix bug that was caused because an identity-id could not be passed
:bug: Fix bug that was caused because an identity-id could not be passed
TypeScript
apache-2.0
jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs
--- +++ @@ -2,7 +2,6 @@ export class IdentityData { @IsString() - @IsNotEmpty() id: string; @IsOptional()
0f7c7c3628ff6884c7e5712d6adf6cccba57a425
interfaces/Types.ts
interfaces/Types.ts
/// Order by decreasing specificity export enum PipelineType { "text-classification" = "text-classification", "token-classification" = "token-classification", "table-question-answering" = "table-question-answering", "question-answering" = "question-answering", "zero-shot-classification" = "zero-shot-classificatio...
/// In each category, order by decreasing specificity export enum PipelineType { /// nlp "text-classification" = "text-classification", "token-classification" = "token-classification", "table-question-answering" = "table-question-answering", "question-answering" = "question-answering", "zero-shot-classification"...
Add tasks: audio-source-separation and voice-activity-detection
Add tasks: audio-source-separation and voice-activity-detection cc @hbredin and @jonashaag commit imported from https://github.com/huggingface/widgets/commit/6e3ecc02a70dbd87c016bf26793a8676dbb24d8f cc @hbredin and @jonashaag
TypeScript
apache-2.0
huggingface/huggingface_hub
--- +++ @@ -1,6 +1,7 @@ -/// Order by decreasing specificity +/// In each category, order by decreasing specificity export enum PipelineType { + /// nlp "text-classification" = "text-classification", "token-classification" = "token-classification", "table-question-answering" = "table-question-answering", @@ ...
9ee3b678e541635bd18419e17e660efa0d0d13d5
src/ts/config-loader.ts
src/ts/config-loader.ts
import * as fs from "fs"; import * as os from "os"; import * as path from "path"; import { ConfigOptions } from "./config"; export class ConfigLoader { private configFilePath = path.join(os.homedir(), "ueli.config.json"); private defaultConfig: ConfigOptions; public constructor(defaultConfig: ConfigOption...
import * as fs from "fs"; import * as os from "os"; import * as path from "path"; import { ConfigOptions } from "./config"; export class ConfigLoader { private configFilePath = path.join(os.homedir(), "ueli.config.json"); private defaultConfig: ConfigOptions; public constructor(defaultConfig: ConfigOption...
Remove outdated condition in config parsing
Remove outdated condition in config parsing
TypeScript
mit
oliverschwendener/electronizr,oliverschwendener/electronizr
--- +++ @@ -18,7 +18,7 @@ try { const fileContent = fs.readFileSync(this.configFilePath, "utf-8"); const parsed = JSON.parse(fileContent) as ConfigOptions; - if (parsed.version === undefined || !parsed.version.startsWith("3")) { + if (!parsed.version.startsWith...
4d9e58b6999ae2a53d6ac864ff504891613bfa8e
src/smc-webapp/hooks.ts
src/smc-webapp/hooks.ts
import * as React from "react"; import { debounce, Cancelable, DebounceSettings } from "lodash"; type CancelableHOF = <T extends (...args: any[]) => any>( func: T, ...rest ) => T & Cancelable; /** * When a callback is deferred (eg. with debounce) it may * try to run when the component is no longer rendered * ...
import * as React from "react"; import { debounce, Cancelable, DebounceSettings } from "lodash"; type CancelableHOF = <T extends (...args: any[]) => any>( func: T, ...rest ) => T & Cancelable; type Tail<T extends any[]> = ((...args: T) => any) extends ( _: any, ...tail: infer Rest ) => any ? Rest : []; /...
Make a general cancelable hook
Make a general cancelable hook
TypeScript
agpl-3.0
DrXyzzy/smc,tscholl2/smc,DrXyzzy/smc,sagemathinc/smc,DrXyzzy/smc,sagemathinc/smc,tscholl2/smc,sagemathinc/smc,tscholl2/smc,DrXyzzy/smc,tscholl2/smc,sagemathinc/smc,tscholl2/smc
--- +++ @@ -6,6 +6,13 @@ ...rest ) => T & Cancelable; +type Tail<T extends any[]> = ((...args: T) => any) extends ( + _: any, + ...tail: infer Rest +) => any + ? Rest + : []; + /** * When a callback is deferred (eg. with debounce) it may * try to run when the component is no longer rendered @@ -13,15 +...
15698413e8be66b7a463008f8714e5ba5a28b86d
src/model/optional-range.ts
src/model/optional-range.ts
export interface OptionalRange { value: string; endValue?: string; } export module OptionalRange { export const VALUE = 'value'; export const ENDVALUE = 'endValue'; export function isValid(optionalRange: OptionalRange): boolean { const keys = Object.keys(optionalRange); if (ke...
export interface OptionalRange { value: string; endValue?: string; } export module OptionalRange { export const VALUE = 'value'; export const ENDVALUE = 'endValue'; export function isValid(optionalRange: OptionalRange): boolean { const keys = Object.keys(optionalRange); if (ke...
Use getLabel function in OptionalRange.generateLabel provided via parameter
Use getLabel function in OptionalRange.generateLabel provided via parameter
TypeScript
apache-2.0
dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2
--- +++ @@ -23,10 +23,12 @@ export function generateLabel(optionalRange: OptionalRange, - getTranslation: (key: string) => string): string { + getTranslation: (key: string) => string, + getLabel: (object: any) ...
071b230ecd89d88dc21679df52cd3f37f73e3da3
test/mocks/mockNetworkInterface.ts
test/mocks/mockNetworkInterface.ts
import { NetworkInterface, Request, } from '../../src/networkInterface'; import { GraphQLResult, parse, print } from 'graphql'; // Pass in multiple mocked responses, so that you can test flows that end up // making multiple queries to the server export default function mockNetworkInterface( ...mockedRespo...
import { NetworkInterface, Request, } from '../../src/networkInterface'; import { GraphQLResult, parse, print } from 'graphql'; // Pass in multiple mocked responses, so that you can test flows that end up // making multiple queries to the server export default function mockNetworkInterface( ...mockedRespo...
Store map of mocked responses instead of separate maps per property
Store map of mocked responses instead of separate maps per property
TypeScript
mit
apollographql/apollo-client,cesarsolorzano/apollo-client,calebmer/apollo-client,apollostack/apollo-client,convoyinc/apollo-client,stevewillard/apollo-client,stevewillard/apollo-client,calebmer/apollo-client,stevewillard/apollo-client,calebmer/apollo-client,cesarsolorzano/apollo-client,apollostack/apollo-client,cesarsol...
--- +++ @@ -22,28 +22,26 @@ } class MockNetworkInterface { - private requestToResultMap: any = {}; - private requestToDelayMap: any = {}; + private mockedResponsesByKey: { [key:string]: MockedResponse } = {}; constructor(...mockedResponses: MockedResponse[]) { - // Populate set of mocked requests - ...
4f0ac125521573cf69e0bd29af75f6cd68b0d8f6
src/vs/workbench/contrib/audioCues/browser/audioCues.contribution.ts
src/vs/workbench/contrib/audioCues/browser/audioCues.contribution.ts
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
Use LifecyclePhase.Restored instead of LifecyclePhase.Eventually
Use LifecyclePhase.Restored instead of LifecyclePhase.Eventually
TypeScript
mit
microsoft/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,micros...
--- +++ @@ -10,7 +10,7 @@ import { AudioCueContribution } from 'vs/workbench/contrib/audioCues/browser/audioCueContribution'; import { LifecyclePhase } from 'vs/workbench/services/lifecycle/common/lifecycle'; -Registry.as<IWorkbenchContributionsRegistry>(WorkbenchExtensions.Workbench).registerWorkbenchContributio...
c64478ca78852e2de2188aa4922d80f6e032e22a
src/Test/Ast/EdgeCases/CodeBlock.ts
src/Test/Ast/EdgeCases/CodeBlock.ts
import { expect } from 'chai' import Up from '../../../index' import { DocumentNode } from '../../../SyntaxNodes/DocumentNode' import { CodeBlockNode } from '../../../SyntaxNodes/CodeBlockNode' describe('A code block', () => { it('can contain a streak of backticks if the streak is preceeded by some whitespace', () ...
import { expect } from 'chai' import Up from '../../../index' import { DocumentNode } from '../../../SyntaxNodes/DocumentNode' import { CodeBlockNode } from '../../../SyntaxNodes/CodeBlockNode' import { ParagraphNode } from '../../../SyntaxNodes/ParagraphNode' import { PlainTextNode } from '../../../SyntaxNodes/PlainTe...
Add passing code block test
Add passing code block test
TypeScript
mit
start/up,start/up
--- +++ @@ -2,6 +2,8 @@ import Up from '../../../index' import { DocumentNode } from '../../../SyntaxNodes/DocumentNode' import { CodeBlockNode } from '../../../SyntaxNodes/CodeBlockNode' +import { ParagraphNode } from '../../../SyntaxNodes/ParagraphNode' +import { PlainTextNode } from '../../../SyntaxNodes/PlainT...
afbd2ff3d5427d78fdbacfb8ad18a65c8d91a0bc
src/specs/bacon-dom-spec.ts
src/specs/bacon-dom-spec.ts
/// <reference path="../typings/tsd.d.ts"/> import chai = require("chai"); import mockBrowser = require("mock-browser"); import Bacon = require("baconjs"); import attach = require("../main/bacon-dom"); var expect = chai.expect; var document = mockBrowser.mocks.MockBrowser.createDocument(); describe("bacon-dom", () ...
/// <reference path="../typings/tsd.d.ts"/> import chai = require("chai"); import Bacon = require("baconjs"); import attach = require("../main/bacon-dom"); import h = require("virtual-dom/h") var expect = chai.expect; describe("bacon-dom", () => { it("triggers no dom changes when the observable does not change",...
Add spec checking actually adding some HTML
Add spec checking actually adding some HTML
TypeScript
apache-2.0
joelea/bacon-dom,joelea/bacon-dom
--- +++ @@ -1,13 +1,11 @@ /// <reference path="../typings/tsd.d.ts"/> import chai = require("chai"); -import mockBrowser = require("mock-browser"); import Bacon = require("baconjs"); import attach = require("../main/bacon-dom"); +import h = require("virtual-dom/h") var expect = chai.expect; - -var document =...
61422bbe368a2bcef874358a54baecf6c2b519ec
src/components/Intro/Intro.test.tsx
src/components/Intro/Intro.test.tsx
import { render, screen } from '@testing-library/react' import { Intro } from '.' const renderIntro = () => render(<Intro />) describe('Intro', () => { test('renders a header', () => { renderIntro() expect( screen.getByRole('heading', { name: 'React Checkbox Tree' }) ).toBeDefined() }) test...
import { render, screen } from '@testing-library/react' import { Intro } from '.' const renderIntro = () => render(<Intro />) describe('Intro', () => { test('renders a header', () => { renderIntro() expect( screen.getByRole('heading', { name: 'React Checkbox Tree' }) ).toBeDefined() }) test...
Remove type assertion by finding element by tag name
Remove type assertion by finding element by tag name
TypeScript
mit
joelgeorgev/react-checkbox-tree,joelgeorgev/react-checkbox-tree
--- +++ @@ -16,7 +16,7 @@ test('renders a description', () => { const { container } = renderIntro() - const paragraph = container.querySelector('p') as HTMLParagraphElement + const paragraph = container.getElementsByTagName('p')[0] expect(paragraph).toBeDefined() expect(paragraph.textConte...
bbd6425a1bd580b9bf00ecb202a4f6b80e5fd233
src/components/Queue/QueueTable.tsx
src/components/Queue/QueueTable.tsx
import * as React from 'react'; import { Layout, Card, ResourceList, Stack, Button } from '@shopify/polaris'; import EmptyQueue from './EmptyQueue'; import QueueCard from '../../containers/QueueItemCard'; export interface Props { readonly queueItemIds: string[]; } export interface Handlers { readonly on...
import * as React from 'react'; import { Layout, Card, ResourceList, Stack, Button } from '@shopify/polaris'; import EmptyQueue from './EmptyQueue'; import QueueCard from '../../containers/QueueItemCard'; export interface Props { readonly queueItemIds: string[]; } export interface Handlers { readonly on...
Refresh Queue on componentWillMount instead of componentDidMount.
Refresh Queue on componentWillMount instead of componentDidMount.
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
--- +++ @@ -12,7 +12,7 @@ } class QueueTable extends React.PureComponent<Props & Handlers, never> { - componentDidMount() { + componentWillMount() { this.props.onRefresh(); }
17431331a4e2dd377807eef95eb83fe8f3dd70bd
test/service/twitter-spec.ts
test/service/twitter-spec.ts
/// <reference path="../../definitions/mocha/mocha.d.ts" /> /// <reference path="../../definitions/chai/chai.d.ts" /> /// <reference path="../../src/service/twitter.ts" /> module Spec { chai.should(); describe('ServiceTwitter', () => { it('should be true', () => { true.should.be.false; ...
/// <reference path="../../definitions/mocha/mocha.d.ts" /> /// <reference path="../../definitions/chai/chai.d.ts" /> /// <reference path="../../src/service/twitter.ts" /> module Spec { chai.should(); describe('ServiceTwitter', () => { it('should be true', () => { true.should.be.true; ...
Modify tests for exam spec-runner
Modify tests for exam spec-runner
TypeScript
mit
otiai10/prisc,otiai10/prisc,otiai10/prisc
--- +++ @@ -8,7 +8,19 @@ describe('ServiceTwitter', () => { it('should be true', () => { + true.should.be.true; + }); + }); + + describe('Sample00', () => { + it('should be fail on purpose', () => { true.should.be.false; }); - }); + }); + ...
1ad4784118810ec7d991db0bde9558b9602580de
website/examples/start.tsx
website/examples/start.tsx
import React from 'react'; import { format } from 'date-fns'; import { DayPicker } from 'react-day-picker'; import 'react-day-picker/dist/style.css'; export default function Example() { const [selected, setSelected] = React.useState<Date>(); let footer = 'Please pick a day.'; if (selected) { footer = `You ...
import React from 'react'; import { format } from 'date-fns'; import { DayPicker } from 'react-day-picker'; export default function Example() { const [selected, setSelected] = React.useState<Date>(); let footer = 'Please pick a day.'; if (selected) { footer = `You picked ${format(selected, 'PP')}.`; } ...
Revert "docs: include css in example"
Revert "docs: include css in example" This reverts commit 7f1d7aea4591cf4528fc8a5ec9cdc252d81555d4.
TypeScript
mit
gpbl/react-day-picker,gpbl/react-day-picker,gpbl/react-day-picker
--- +++ @@ -2,7 +2,6 @@ import { format } from 'date-fns'; import { DayPicker } from 'react-day-picker'; -import 'react-day-picker/dist/style.css'; export default function Example() { const [selected, setSelected] = React.useState<Date>();
6288ba092c7e3b87e2d41f765a042c4055e20b4b
src/core.ts
src/core.ts
/* * SweetAlert * 2014-2017 – Tristan Edwards * https://github.com/t4t5/sweetalert */ import init from './modules/init'; import { openModal, onAction, getState, stopLoading, } from './modules/actions'; import state, { setActionValue, ActionOptions, SwalState, } from './modules/state'; import { S...
/* * SweetAlert * 2014-2017 – Tristan Edwards * https://github.com/t4t5/sweetalert */ import init from './modules/init'; import { openModal, onAction, getState, stopLoading, } from './modules/actions'; import state, { setActionValue, ActionOptions, SwalState, } from './modules/state'; import { S...
Set namespace definition to be optional
Set namespace definition to be optional
TypeScript
mit
t4t5/sweetalert,t4t5/sweetalert
--- +++ @@ -29,7 +29,7 @@ export interface SweetAlert { (...params: SwalParams): Promise<any>, - close? (namespace: string): void, + close? (namespace?: string): void, getState? (): SwalState, setActionValue? (opts: string|ActionOptions): void, stopLoading? (): void, @@ -63,4 +63,3 @@ swal.setDefaul...
2c5539ee8ce5bb3f07a5b09cfe9edc48d5439501
client/Layout/ThreeColumnLayout.tsx
client/Layout/ThreeColumnLayout.tsx
import * as React from "react"; import { TrackerViewModel } from "../TrackerViewModel"; import { VerticalResizer } from "./VerticalResizer"; import { useStoreBackedState } from "../Utility/useStoreBackedState"; import { Store } from "../Utility/Store"; import { CenterColumn } from "./CenterColumn"; import { ToolbarHost...
import * as React from "react"; import { TrackerViewModel } from "../TrackerViewModel"; import { VerticalResizer } from "./VerticalResizer"; import { useStoreBackedState } from "../Utility/useStoreBackedState"; import { Store } from "../Utility/Store"; import { CenterColumn } from "./CenterColumn"; import { ToolbarHost...
Store left and right column width preferences
Store left and right column width preferences
TypeScript
mit
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
--- +++ @@ -9,24 +9,29 @@ import { RightColumn } from "./RightColumn"; export function ThreeColumnLayout(props: { tracker: TrackerViewModel }) { - const [columnWidth, setColumnWidth] = useStoreBackedState( + const [leftColumnWidth, setLeftColumnWidth] = useStoreBackedState( Store.User, "columnWidth", ...
f5142931c7cf9a248987997c668383dfe3926291
packages/Site/src/routes.tsx
packages/Site/src/routes.tsx
/** Load fronts and global styles */ import './globals' import { BLUE, PINK, ThemeProvider, WHITE } from '@slup/theming' import { Container, Content } from './components/container' import { Route, Router } from 'inferno-router' import { App } from './components/app' import { Demo } from './components/demo' import Ho...
/** Load fronts and global styles */ import './globals' import { BLUE, PINK, ThemeProvider, WHITE } from '@slup/theming' import { Container, Content } from './components/container' import { Route, Router } from 'inferno-router' import { App } from './components/app' import { Demo } from './components/demo' import Ho...
Disable 404 route while we figure out how to fix it
:bug: Disable 404 route while we figure out how to fix it
TypeScript
mit
slupjs/slup,slupjs/slup
--- +++ @@ -28,13 +28,13 @@ .slice() .filter(i => i.url.includes('components')) .map(item => - <Route computedMatch path={item.url} component={() => <Demo module={item.title} />} /> + <Route path={item.url} component={() => <Demo module={item.title} />} /> ) ...
82222bf01b04130387e6878260de92ff74b2e911
src/components/card/card.component.ts
src/components/card/card.component.ts
import { Component, Input, OnInit } from '@angular/core'; import { humanizeMeasureName } from '../../utils/formatters'; import { Meta } from '../../datasets/metas/types'; import { TabbedChartsMeta } from '../../datasets/metas/tabbed-charts.meta'; @Component({ selector: 'app-card', templateUrl: './card.component.ht...
import { Component, Input, OnInit } from '@angular/core'; import { humanizeMeasureName } from '../../utils/formatters'; import { Meta } from '../../datasets/metas/types'; import { TabbedChartsMeta } from '../../datasets/metas/tabbed-charts.meta'; @Component({ selector: 'app-card', templateUrl: './card.component.ht...
Set currentTabTitle to undefined when input is not TabbedChartsMeta
Set currentTabTitle to undefined when input is not TabbedChartsMeta
TypeScript
apache-2.0
googleinterns/guide-doge,googleinterns/guide-doge,googleinterns/guide-doge
--- +++ @@ -11,7 +11,7 @@ export class CardComponent<T extends Meta> implements OnInit { @Input() meta: T; humanizeMeasureName = humanizeMeasureName; - currentTabTitle: string; + currentTabTitle?: string; get titles(): string[] { if (this.isTabbed()) { @@ -34,7 +34,7 @@ if (this.isTabbed()) { ...
6f4fedcd20aa38a6275e5396557d6871cea6753d
src/transpile-if-ts.ts
src/transpile-if-ts.ts
import * as tsc from 'typescript'; import { getTSConfig } from './utils'; export function transpileIfTypescript(path, contents, config?) { if (path && (path.endsWith('.tsx') || path.endsWith('.ts'))) { let transpiled = tsc.transpileModule(contents, { compilerOptions: getTSConfig(config || { __TS_CONFIG__:...
import * as tsc from 'typescript'; import { getTSConfigOptionFromConfig, getTSConfig } from './utils'; export function transpileIfTypescript(path, contents, config?) { if (path && (path.endsWith('.tsx') || path.endsWith('.ts'))) { let transpiled = tsc.transpileModule(contents, { compilerOptions: getTSConf...
Add new schema for config
Add new schema for config
TypeScript
mit
kulshekhar/ts-jest,kulshekhar/ts-jest
--- +++ @@ -1,11 +1,11 @@ import * as tsc from 'typescript'; -import { getTSConfig } from './utils'; +import { getTSConfigOptionFromConfig, getTSConfig } from './utils'; export function transpileIfTypescript(path, contents, config?) { if (path && (path.endsWith('.tsx') || path.endsWith('.ts'))) { let tr...
3ead67bec6bc5890a0732c44253b474d15f40b96
src/git/common.ts
src/git/common.ts
export enum GitStatus { CLEAN, DELETED, MODIFIED, STAGED, STAGED_ADDED, STAGED_COPIED, STAGED_DELETED, STAGED_MODIFIED, STAGED_RENAMED, STAGED_TYPE, STAGED_UNKNOWN, STAGED_UNMERGED, UNTRACKED } export const GitStatedStatus: Map<string, GitStatus> = ne...
export enum GitStatus { CLEAN, DELETED, MODIFIED, STAGED, UNTRACKED } export enum GitStagedType { ADDED, COPIED, DELETED, MODIFIED, RENAMED, TYPE, UNKNOWN, UNMERGED } export const GitStategTypeMap: Map<string, GitStagedType> = new Map<string, GitS...
Refactor staged into new GitStagedType enum
Refactor staged into new GitStagedType enum
TypeScript
mit
tht13/gerrit-vscode
--- +++ @@ -3,22 +3,25 @@ DELETED, MODIFIED, STAGED, - STAGED_ADDED, - STAGED_COPIED, - STAGED_DELETED, - STAGED_MODIFIED, - STAGED_RENAMED, - STAGED_TYPE, - STAGED_UNKNOWN, - STAGED_UNMERGED, UNTRACKED } -export const GitStatedStatus: Map<string, GitStatus> = new Map<st...
3aeae08946a5eaa71c2bf2073fa4eb6a832e81d3
app/angular/src/server/ts_config.ts
app/angular/src/server/ts_config.ts
import fs from 'fs'; import path from 'path'; import { logger } from '@storybook/node-logger'; function resolveTsConfig(tsConfigPath: string): string | undefined { if (fs.existsSync(tsConfigPath)) { logger.info('=> Found custom tsconfig.json'); return tsConfigPath; } return undefined; } export default f...
import fs from 'fs'; import path from 'path'; import { logger } from '@storybook/node-logger'; import { Options } from 'ts-loader'; function resolveTsConfig(tsConfigPath: string): string | undefined { if (fs.existsSync(tsConfigPath)) { logger.info('=> Found custom tsconfig.json'); return tsConfigPath; } ...
Fix `configFile: undefined` in ts-loader options when not using a custom .storybook/tsconfig.json
Fix `configFile: undefined` in ts-loader options when not using a custom .storybook/tsconfig.json Fixes https://github.com/storybookjs/storybook/issues/13381
TypeScript
mit
storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook
--- +++ @@ -1,6 +1,7 @@ import fs from 'fs'; import path from 'path'; import { logger } from '@storybook/node-logger'; +import { Options } from 'ts-loader'; function resolveTsConfig(tsConfigPath: string): string | undefined { if (fs.existsSync(tsConfigPath)) { @@ -11,12 +12,15 @@ } export default functio...
b7b85bd2c5daedbc9c7440b241f6766398f25dc3
app/package-info.ts
app/package-info.ts
const appPackage: Record<string, string> = require('./package.json') export function getProductName() { const productName = appPackage.productName return process.env.NODE_ENV === 'development' ? `${productName}-dev` : productName } export function getCompanyName() { return appPackage.companyName } expo...
const appPackage: Record<string, string> = require('./package.json') export function getProductName() { const productName = appPackage.productName return process.env.NODE_ENV === 'development' ? `${productName}-dev` : productName } export function getCompanyName() { return appPackage.companyName } expo...
Use a custom bundle id for development
Use a custom bundle id for development
TypeScript
mit
say25/desktop,say25/desktop,shiftkey/desktop,artivilla/desktop,kactus-io/kactus,j-f1/forked-desktop,kactus-io/kactus,shiftkey/desktop,desktop/desktop,say25/desktop,j-f1/forked-desktop,desktop/desktop,kactus-io/kactus,artivilla/desktop,artivilla/desktop,j-f1/forked-desktop,desktop/desktop,kactus-io/kactus,desktop/deskto...
--- +++ @@ -16,5 +16,7 @@ } export function getBundleID() { - return appPackage.bundleID + return process.env.NODE_ENV === 'development' + ? `${appPackage.bundleID}Dev` + : appPackage.bundleID }
8a6dd20e8f7edd34974f10a7fc8daa4be4766a7b
src/services/player.service.ts
src/services/player.service.ts
import {Injectable} from "@angular/core"; import {Player} from "../models/player.model"; import {Headers, Http} from "@angular/http"; @Injectable() export class PlayerService{ player1: Player; player2: Player; constructor(private http: Http){}; getPlayers(){ let url = 'http://localhost:4000/players...
import {Injectable} from "@angular/core"; import {Player} from "../models/player.model"; import {Headers, Http} from "@angular/http"; @Injectable() export class PlayerService{ player1: Player; player2: Player; API_URL = 'http://192.168.1.3:4000'; constructor(private http: Http){}; getPlayers(){ l...
Refactor url address to a single variable
Refactor url address to a single variable
TypeScript
mit
casperchia/foosmate,casperchia/foosmate,casperchia/foosmate
--- +++ @@ -6,11 +6,11 @@ export class PlayerService{ player1: Player; player2: Player; - + API_URL = 'http://192.168.1.3:4000'; constructor(private http: Http){}; getPlayers(){ - let url = 'http://localhost:4000/players'; + let url = this.API_URL + '/players'; return this.http.g...
1ab035cad87f8b696a35838f4f3d03edccc44448
components/_utils/types/commonTypes.ts
components/_utils/types/commonTypes.ts
export interface IInputCallbackData { dataLabel: string | undefined | null; value: any; } export interface IValidationCallbackData { dataLabel: string | undefined | null; value?: any; required?: boolean; }
export interface IInputCallbackData<T = any> { dataLabel: string | undefined | null; value: T; } export interface IValidationCallbackData<T = any> { dataLabel: string | undefined | null; value?: T; required?: boolean; }
Change callback data and validation data to use generics.
Change callback data and validation data to use generics.
TypeScript
mit
moosend/mooskin-ui,moosend/mooskin-ui
--- +++ @@ -1,11 +1,11 @@ -export interface IInputCallbackData { +export interface IInputCallbackData<T = any> { dataLabel: string | undefined | null; - value: any; + value: T; } -export interface IValidationCallbackData { +export interface IValidationCallbackData<T = any> { dataLabel: string | u...
44f45f10b599a05936b5fa4fbf92f55719380697
SPAWithAngularJS/module5/angularjs-controllers/src/app.module.ts
SPAWithAngularJS/module5/angularjs-controllers/src/app.module.ts
// app.module.ts "use strict"; import { module } from "angular"; RoutesConfig.$inject = ["$stateProvider", "$urlRouterProvider"]; function RoutesConfig( $stateProvider: angular.ui.IStateProvider, $urlRouterProvider: angular.ui.IUrlRouterProvider) { const message1State: angular.ui.IState = { name: "message...
// app.module.ts "use strict"; import { module } from "angular"; RoutesConfig.$inject = ["$stateProvider", "$urlRouterProvider"]; function RoutesConfig( $stateProvider: angular.ui.IStateProvider, $urlRouterProvider: angular.ui.IUrlRouterProvider) { const message1State: angular.ui.IState = { name: "message...
Edit states. Added one more state for repositories
Edit states. Added one more state for repositories
TypeScript
mit
var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training
--- +++ @@ -18,16 +18,23 @@ } }; - const home: angular.ui.IState = { + const homeState: angular.ui.IState = { name: "home", url: "/" + }; + + const repositoriesState: angular.ui.IState = { + name: "repositories", + url: "/repositories", + component: "repositoriesComponent" }; ...
79e4614912b2a5466f1de10efab2af1ffbc39607
src/index.ts
src/index.ts
/** * Swagchat SDK. */ export * from './Client'; export * from './Realtime'; export * from './interface'; export * from './User'; export * from './Room'; export * from './const'; export * from './util'; export const logColor = '#3F51B5';
/** * Swagchat SDK. */ export * from './Client'; export * from './Realtime'; export * from './interface'; export * from './User'; export * from './Room'; export * from './const'; export * from './util'; export * from './actions/asset'; export * from './actions/client'; export * from './actions/combined'; export * fr...
Add export actions, reducers, sagas, stores
Add export actions, reducers, sagas, stores
TypeScript
mit
fairway-corp/swagchat-sdk
--- +++ @@ -8,4 +8,39 @@ export * from './Room'; export * from './const'; export * from './util'; + +export * from './actions/asset'; +export * from './actions/client'; +export * from './actions/combined'; +export * from './actions/message'; +export * from './actions/plugin'; +export * from './actions/room'; +expo...
4fc5de8cd53ba81e40e0dffdf6348ecda4420990
src/index.ts
src/index.ts
if ( process.platform === 'win32' ) { let Application = require( './application' ); Application.start(); } import { Logger } from './common/logger'; export * from './common/logger'; Logger.hijack(); export * from './autostarter'; export * from './downloader'; export * from './downloader/stream-speed'; export * from...
if ( process.platform === 'win32' ) { let Application = require( './application' ).Application; Application.start(); } import { Logger } from './common/logger'; export * from './common/logger'; Logger.hijack(); export * from './autostarter'; export * from './downloader'; export * from './downloader/stream-speed'; e...
Fix require statement on Windows for Application.
Fix require statement on Windows for Application.
TypeScript
mit
gamejolt/client-voodoo,gamejolt/client-voodoo
--- +++ @@ -1,5 +1,5 @@ if ( process.platform === 'win32' ) { - let Application = require( './application' ); + let Application = require( './application' ).Application; Application.start(); } @@ -16,4 +16,3 @@ export * from './uninstaller'; export * from './queue'; export * from './shortcut'; -
c236a3d28a309146dc1be46b267d65fe33fedf54
src/index.ts
src/index.ts
/* The MIT License (MIT) * * Copyright (c) 2017 Cyril Schumacher * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use...
/* The MIT License (MIT) * * Copyright (c) 2017 Cyril Schumacher * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use...
Remove unnecessary TypeScript source code.
Remove unnecessary TypeScript source code.
TypeScript
mit
cyrilschumacher/prometheus-node-usage
--- +++ @@ -37,9 +37,3 @@ const server = http.createServer(handleRequest); return server.listen(port); } - -async function test() { - console.log(await getMetricsAsync()); -} - -test();
d175d81a64356fe7734ed8dd8f2c1b353ce19352
src/app/shared/storage.service.ts
src/app/shared/storage.service.ts
import { Injectable } from '@angular/core'; import { Subject, BehaviorSubject, Observable } from 'rxjs'; @Injectable() export class StorageService { storageKey: string = 'marvel-reading-stats'; currentStorage: Subject<any> = new BehaviorSubject<any>(null); constructor() { } initStorage(): any { this.up...
import { Injectable } from '@angular/core'; import { Subject, BehaviorSubject, Observable } from 'rxjs'; @Injectable() export class StorageService { storageKey: string = 'marvel-reading-stats'; currentStorage: Subject<any> = new BehaviorSubject<any>(null); constructor() { } initStorage(): any { this.up...
Update default value for dataUser storage
Update default value for dataUser storage
TypeScript
mit
SBats/marvel-reading-stats-frontend,SBats/marvel-reading-stats-frontend,SBats/marvel-reading-stats-frontend
--- +++ @@ -10,7 +10,9 @@ } initStorage(): any { - this.updateStorage({}); + this.updateStorage({ + comics: [] + }); } getStorage(): any {
3d6c7317755a34131db06cecbb2b950e1af4dbb9
app/shared/map-field.ts
app/shared/map-field.ts
export class MapField { label: string; namespace: string; name: string; uri: string; guidelines_uri: string; same_as: string; definition: string; obligation: string; range: any; required: string; repeatable: boolean; hidden: boolean; }
export class MapField { label: string; namespace: string; name: string; uri: string; guidelines: string; source: string; definition: string; obligation: string; range: any; repeatable: boolean; input: string; visible: boolean; }
Update MapField properties to match BCDAMS-MAP api source
Update MapField properties to match BCDAMS-MAP api source
TypeScript
mit
uhlibraries-digital/brays,uhlibraries-digital/brays,uhlibraries-digital/brays
--- +++ @@ -3,12 +3,12 @@ namespace: string; name: string; uri: string; - guidelines_uri: string; - same_as: string; + guidelines: string; + source: string; definition: string; obligation: string; range: any; - required: string; repeatable: boolean; - hidden: boolean; + input: string; + v...
0e1f7ddc9ad9e5a097c74d5d05d15bd75bd9dd9b
src/main/modules/module-window.ts
src/main/modules/module-window.ts
/** * Example of Module, other modules should extent this class */ import Module from './module'; class ModuleWindow extends Module { protected window: Electron.BrowserWindow; constructor (window: Electron.BrowserWindow) { super(); if (!window || typeof window !== 'object') { throw (new TypeErro...
/** * Example of Module, other modules should extent this class */ import Module from './module'; class ModuleWindow extends Module { protected window: Electron.BrowserWindow; constructor (window: Electron.BrowserWindow) { super(); this.window = window; } getWindow () { return this.window; }...
Remove BrowserWindow check in ModuleWindow (thx TS)
Remove BrowserWindow check in ModuleWindow (thx TS)
TypeScript
mit
KeitIG/museeks,KeitIG/museeks,KeitIG/museeks
--- +++ @@ -9,11 +9,6 @@ constructor (window: Electron.BrowserWindow) { super(); - - if (!window || typeof window !== 'object') { - throw (new TypeError('ModuleWindow expecs a valid BrowserWindow to be passed as argument')); - } - this.window = window; }
f95a91b41185bcaab4c9bba218b5338f3d1479dd
src/ng2-restangular-helper.ts
src/ng2-restangular-helper.ts
import {URLSearchParams, Headers, RequestOptions, RequestMethod} from '@angular/http'; export class RestangularHelper { static createRequestOptions(options) { let requestQueryParams = RestangularHelper.createRequestQueryParams(options.params); let requestHeaders = RestangularHelper.createRequestHeaders(op...
import {URLSearchParams, Headers, RequestOptions, RequestMethod} from '@angular/http'; export class RestangularHelper { static createRequestOptions(options) { let requestQueryParams = RestangularHelper.createRequestQueryParams(options.params); let requestHeaders = RestangularHelper.createRequestHeaders(op...
Fix URLSearchParams for query params of type Array
Fix URLSearchParams for query params of type Array
TypeScript
mit
2muchcoffeecom/ng2-restangular,2muchcoffeecom/ngx-restangular,2muchcoffeecom/ng2-restangular,2muchcoffeecom/ngx-restangular
--- +++ @@ -26,10 +26,18 @@ for (let key in requestQueryParams) { let value: any = requestQueryParams[key]; - if (typeof value === 'object') { - value = JSON.stringify(value); + + if (Array.isArray(value)) { + value.forEach(function(val){ + search.append(key, val); +...
2119b535871bb709e0fc68b5a1728e81a61ce60c
examples/compose/app.ts
examples/compose/app.ts
import { Context, Component, stateOf, interfaceOf } from '../../src' import { styleGroup, StyleGroup } from '../../src/utils/style' import { ViewInterface } from '../../src/interfaces/view' import h from 'snabbdom/h' let name = 'Main' let components = { counter: require('./counter').default, } let state = ({key}) ...
import { Context, Component, stateOf, interfaceOf } from '../../src' import { styleGroup, StyleGroup } from '../../src/utils/style' import { ViewInterface } from '../../src/interfaces/view' import h from 'snabbdom/h' let name = 'Main' let components = { counter: require('./counter').default, } let state = ({key}) ...
Remove unused stuff from compose example
Remove unused stuff from compose example
TypeScript
mit
FractalBlocks/Fractal,FractalBlocks/Fractal,FractalBlocks/Fractal
--- +++ @@ -11,23 +11,6 @@ let state = ({key}) => ({ key, - count: 0, -}) - -let actions = { - Set: (count: number) => state => { - state.count = count - return state - }, - Inc: () => state => { - state.count ++ - return state - }, -} - -let inputs = (ctx: Context) => ({ - set: (n: number) =>...
d78bd37a9939c900c4afccc9e7a9b81037f103ad
lib/plugins.ts
lib/plugins.ts
import { access } from 'fs'; import { join } from 'path'; import { some } from 'async'; import { build } from './pubsub'; const nconf = require.main.require('nconf'); const baseDir = nconf.get('base_dir'); const noop = () => {}; // build when a plugin is (de)activated if that plugin is an emoji pack const toggle = ...
import { readFile } from 'fs'; import { join } from 'path'; import { some } from 'async'; import { build } from './pubsub'; const nconf = require.main.require('nconf'); const baseDir = nconf.get('base_dir'); const noop = () => {}; // build when a plugin is (de)activated if that plugin is an emoji pack const toggle ...
Fix emoji pack change detection
Fix emoji pack change detection
TypeScript
mit
julianlam/nodebb-plugin-emoji,julianlam/nodebb-plugin-emoji,julianlam/nodebb-plugin-emoji
--- +++ @@ -1,4 +1,4 @@ -import { access } from 'fs'; +import { readFile } from 'fs'; import { join } from 'path'; import { some } from 'async'; @@ -11,30 +11,36 @@ // build when a plugin is (de)activated if that plugin is an emoji pack const toggle = ({ id }: { id: string }, cb: NodeBack = noop) => { - some...
9f3078f77fd3ab7e0a76c6029ca9adbfebe86f49
app/app.component.ts
app/app.component.ts
import { Component } from '@angular/core'; // import { ROUTER_DIRECTIVES } from '@angular/router'; // import { LoginComponent } from './login.component'; @Component({ selector: 'my-app', template: ` <md-sidenav-layout> <md-sidenav #start (open)="closeStartButton.focus()"> Start Sidenav. <br> ...
import { Component } from '@angular/core'; // import { ROUTER_DIRECTIVES } from '@angular/router'; // import { LoginComponent } from './login.component'; @Component({ selector: 'my-app', template: ` <md-sidenav-layout> <md-sidenav #start (open)="closeStartButton.focus()"> Navigation Menu <br> <button md...
Add some navigations to side navbar
Add some navigations to side navbar
TypeScript
mit
skyvory/recomposition,skyvory/recompose,skyvory/recompose,skyvory/recomposition,skyvory/recomposition,skyvory/recompose
--- +++ @@ -7,14 +7,18 @@ selector: 'my-app', template: ` <md-sidenav-layout> - <md-sidenav #start (open)="closeStartButton.focus()"> - Start Sidenav. - <br> - <button md-button #closeStartButton (click)="start.close()">Close</button> - </md-sidenav> + <md-sidenav #start (open)="close...
8900acb2a5a973289c8a93b49dd4c8a9c195252a
app/vue/src/client/preview/types.ts
app/vue/src/client/preview/types.ts
import { Component } from 'vue'; export { RenderContext } from '@storybook/core'; export interface ShowErrorArgs { title: string; description: string; } // TODO: some vue expert needs to look at this export type StoryFnVueReturnType = string | Component; export interface IStorybookStory { name: string; rend...
import { Component } from 'vue'; import { Args } from '@storybook/addons'; export { RenderContext } from '@storybook/core'; export interface ShowErrorArgs { title: string; description: string; } // TODO: some vue expert needs to look at this export type StoryFnVueReturnType = string | (Component & { args?: Args ...
Add args to the story return type
Vue: Add args to the story return type
TypeScript
mit
storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook
--- +++ @@ -1,4 +1,5 @@ import { Component } from 'vue'; +import { Args } from '@storybook/addons'; export { RenderContext } from '@storybook/core'; @@ -8,7 +9,7 @@ } // TODO: some vue expert needs to look at this -export type StoryFnVueReturnType = string | Component; +export type StoryFnVueReturnType = st...
810bf529b46c62cf6f16233bc503a5e12e191792
lib/tasks/Mappings.ts
lib/tasks/Mappings.ts
import Clean from "./Clean"; import NodeWatchBuild from "./NodeWatchBuild"; import Test from "./Test"; import Typescript from "./Typescript"; import Build from "./Build"; import WatchBuild from "./WatchBuild"; import Scaffolding from "./Scaffolding"; const gulp = require("gulp"); export const frontend = { "clean":...
import Clean from "./Clean"; import NodeWatchBuild from "./NodeWatchBuild"; import Test from "./Test"; import Typescript from "./Typescript"; import Build from "./Build"; import WatchBuild from "./WatchBuild"; import Scaffolding from "./Scaffolding"; const gulp = require("gulp"); export const frontend = { "build":...
Remove clean task from mappings
Remove clean task from mappings
TypeScript
mit
mtfranchetto/smild,mtfranchetto/smild,mtfranchetto/smild
--- +++ @@ -8,7 +8,6 @@ const gulp = require("gulp"); export const frontend = { - "clean": Clean, "build": gulp.series(Clean, Build), "watch-build": WatchBuild, "test": Test, @@ -16,14 +15,12 @@ }; export const module = { - "clean": Clean, "build": Typescript, "test": Test, ...
82411881240b267bb54fd3f4ea8907509cd43ba0
platforms/platform-web/src/index.ts
platforms/platform-web/src/index.ts
import { Core, CorePlatform, CorePlatformConfig } from '@jovotech/platform-core'; declare module '@jovotech/framework/dist/types/Extensible' { interface ExtensiblePluginConfig { WebPlatform?: CorePlatformConfig<'web'>; } interface ExtensiblePlugins { WebPlatform?: CorePlatform<'web'>; } } declare mod...
import { Core, CorePlatform, CorePlatformConfig, NormalizedCoreOutputTemplate, } from '@jovotech/platform-core'; declare module '@jovotech/framework/dist/types/Extensible' { interface ExtensiblePluginConfig { WebPlatform?: CorePlatformConfig<'web'>; } interface ExtensiblePlugins { WebPlatform?: ...
Add augment platforms property to include a typed web-property
:sparkles: Add augment platforms property to include a typed web-property
TypeScript
apache-2.0
jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs
--- +++ @@ -1,4 +1,9 @@ -import { Core, CorePlatform, CorePlatformConfig } from '@jovotech/platform-core'; +import { + Core, + CorePlatform, + CorePlatformConfig, + NormalizedCoreOutputTemplate, +} from '@jovotech/platform-core'; declare module '@jovotech/framework/dist/types/Extensible' { interface Extensi...
70f71865d653dcb2b1986d1e45ba15d0239dc335
src/demo/ts/dialogs/WordcountDialog.ts
src/demo/ts/dialogs/WordcountDialog.ts
import { createTable } from 'src/main/ts/ephox/bridge/components/dialog/Table'; export const createWordcountDialog = () => { createTable({ type: 'table', header: [ 'hello', 'world'], cells: [ ['hej', 'vaerld'], ['yahoo', 'sekai'] ] }); };
import { createTable } from '../../../main/ts/ephox/bridge/components/dialog/Table'; export const createWordcountDialog = () => { createTable({ type: 'table', header: [ 'hello', 'world'], cells: [ ['hej', 'vaerld'], ['yahoo', 'sekai'] ] }); };
Use proper relative paths to the table module
Use proper relative paths to the table module
TypeScript
mit
tinymce/tinymce,TeamupCom/tinymce,tinymce/tinymce,tinymce/tinymce,FernCreek/tinymce,TeamupCom/tinymce,FernCreek/tinymce,FernCreek/tinymce
--- +++ @@ -1,4 +1,4 @@ -import { createTable } from 'src/main/ts/ephox/bridge/components/dialog/Table'; +import { createTable } from '../../../main/ts/ephox/bridge/components/dialog/Table'; export const createWordcountDialog = () => { createTable({
84ee65325cc38a3984bbfb29f3083dd7a6e96c62
src/index.ts
src/index.ts
/** * @file The primary entry for Innerface. * * @author Justin Toon * @license MIT */ import {forEach} from 'lodash-es'; import { SELECTORS } from './if.const'; import * as controllers from './controllers'; /** * A system of simple UI actions implemented with an HTML API. * * @since 0.1.0 */ export default...
/** * @file The primary entry for Innerface. * * @author Justin Toon * @license MIT */ import {forEach} from 'lodash-es'; import {SELECTORS} from './if.const'; import * as controllers from './controllers'; /** * A system of simple UI actions implemented with an HTML API. * * @since 0.1.0 */ class Innerface ...
Initialize innerface on page load
Initialize innerface on page load
TypeScript
mit
overneath42/innerface,overneath42/innerface
--- +++ @@ -7,7 +7,7 @@ import {forEach} from 'lodash-es'; -import { SELECTORS } from './if.const'; +import {SELECTORS} from './if.const'; import * as controllers from './controllers'; /** @@ -15,7 +15,7 @@ * * @since 0.1.0 */ -export default class Innerface { +class Innerface { /** * Initialize...
ba52ff503564365822cffdab913619eb65190983
src/index.ts
src/index.ts
import { createStore, Store, StoreOptions } from "./Store" import { Resource, ResourceActionOptions, ResourceOptions } from "./Resource" export class Vapi { private resource: Resource constructor(options: ResourceOptions) { this.resource = new Resource(options) return this } get(options: ResourceActi...
import { createStore, Store, StoreOptions } from "./Store" import { Resource, ResourceActionOptions, ResourceOptions } from "./Resource" export class Vapi { private resource: Resource constructor(options: ResourceOptions) { this.resource = new Resource(options) return this } get(options: ResourceActi...
Add missing head shortcut function
Add missing head shortcut function
TypeScript
mit
christianmalek/vuex-rest-api,christianmalek/vuex-rest-api,christianmalek/vuex-rest-api
--- +++ @@ -15,6 +15,10 @@ delete(options: ResourceActionOptions) { return this.add(Object.assign(options, { method: "delete" })) + } + + head(options: ResourceActionOptions) { + return this.add(Object.assign(options, { method: "head" })) } post(options: ResourceActionOptions) {
ae59a787c1fc7ac7031f48646c7d444dda37dd6a
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.4', RELEASEVERSION: '1.0.4' }; 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.5', RELEASEVERSION: '1.0.5' }; export = BaseConfig;
Increase release version to 1.0.5
Increase release version to 1.0.5
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.4', - RELEASEVERSION: '1.0.4' + RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/1.0.5', + RELEASEVERSION: '1.0.5' ...
78b202363ffdba973967e2fa1576ef9553721a42
components/feature-table/feature-table.component.ts
components/feature-table/feature-table.component.ts
/* eslint-disable @typescript-eslint/no-unused-vars */ import {Component, OnInit} from '@angular/core'; import {HsConfig} from '../../config.service'; import {HsFeatureTableService} from './feature-table.service'; import {Layer} from 'ol/layer'; /** * @memberof hs.featureTable * @ngdoc component * @name HsFeatureTab...
/* eslint-disable @typescript-eslint/no-unused-vars */ import {Component, OnInit} from '@angular/core'; import {HsConfig} from '../../config.service'; import {HsFeatureTableService} from './feature-table.service'; import {Layer} from 'ol/layer'; /** * @memberof hs.featureTable * @ngdoc component * @name HsFeatureTab...
Fix crash when layersInFeatureTable config is not set
Fix crash when layersInFeatureTable config is not set
TypeScript
mit
hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng
--- +++ @@ -19,7 +19,7 @@ private HsConfig: HsConfig ) {} ngOnInit(): void { - for (const layer of this.HsConfig.layersInFeatureTable) { + for (const layer of this.HsConfig.layersInFeatureTable || []) { this.addLayerToTable(layer); } }
aa84883240b4b99c01639911a606f0f5ddb09f78
src/main.tsx
src/main.tsx
import * as React from "react"; import * as ReactDOM from "react-dom"; import * as injectTapEventPlugin from "react-tap-event-plugin"; import MenuBar from "./components/menu/MenuBar"; import SimpleContent from "./components/SimpleContent"; import TopPage from "./components/top/TopPage"; import EventPage from "./compone...
import * as React from "react"; import * as ReactDOM from "react-dom"; import * as injectTapEventPlugin from "react-tap-event-plugin"; import MenuBar from "./components/menu/MenuBar"; import SimpleContent from "./components/SimpleContent"; import TopPage from "./components/top/TopPage"; import EventPage from "./compone...
Add react-router path for abou
Add react-router path for abou
TypeScript
mit
SIT-DigiCre/ShibaurasaiApp,SIT-DigiCre/ShibaurasaiApp,SIT-DigiCre/ShibaurasaiApp
--- +++ @@ -9,6 +9,7 @@ import SearchPage from "./components/search/SearchPage"; import MapPage from "./components/map/MapPage"; import MapEventList from "./components/map/MapEventList"; +import AboutPage from "./components/about/AboutPage"; import { Router, Route, hashHistory, IndexRoute } from "react-router";...
546bc651fc38cd2581822b850b14fb20e760c81b
src/index.ts
src/index.ts
/** * This module exports the public API for visual-plugin, registers * visual-plugin as an Intern plugin, and installs the visual regression * reporter. */ /** */ import assertVisuals from './assert'; import config, { Config } from './config'; import visualTest from './test'; import resizeWindow from './helpers/r...
/** * This module exports the public API for visual-plugin, registers * visual-plugin as an Intern plugin, and installs the visual regression * reporter. */ /** */ import assertVisuals from './assert'; import config, { Config } from './config'; import visualTest from './test'; import resizeWindow from './helpers/r...
Include all package exports on registerd plugin
Include all package exports on registerd plugin
TypeScript
mpl-2.0
theintern/intern-visual,theintern/intern-visual,theintern/intern-visual
--- +++ @@ -25,7 +25,13 @@ reporter = new VisualRegression(intern, config); } + // All the standard exports, as well as the reporter, are available on the + // registered plugin. return { - reporter + reporter, + assertVisuals, + config, + helpers, + visualTest }; });
3f65aee884dd5a7027e177d0ddeab8021ed0cecf
src/Types.ts
src/Types.ts
export type Map<T> = {[key: string]: T}; export type HttpVerb = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'OPTIONS' | 'PATCH';
import { IncomingMessage } from 'http'; import { Buffer } from 'buffer'; export type Map<T> = {[key: string]: T}; export type HttpVerb = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'OPTIONS' | 'PATCH'; export interface ProxyResponse { message: IncomingMessage, body: string | Buffer }
Add a proxy response type.
Add a proxy response type.
TypeScript
mit
syrp-nz/ts-lambda-handler,syrp-nz/ts-lambda-handler
--- +++ @@ -1,3 +1,12 @@ +import { IncomingMessage } from 'http'; +import { Buffer } from 'buffer'; + + export type Map<T> = {[key: string]: T}; export type HttpVerb = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'OPTIONS' | 'PATCH'; + +export interface ProxyResponse { + message: IncomingMessage, + body: string | Bu...
c5a2b2c19beedfce79492f96e734e8505b003d61
src/index.ts
src/index.ts
// Copyright (c) Rotorz Limited. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root.
// Copyright (c) Rotorz Limited. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root. throw new Error("Use the `webreed` or `webreed-core` package to interact with webreed API.");
Throw error when attempting to import package directly.
Throw error when attempting to import package directly.
TypeScript
mit
webreed/webreed-cli,webreed/webreed-cli
--- +++ @@ -1,3 +1,4 @@ // Copyright (c) Rotorz Limited. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root. +throw new Error("Use the `webreed` or `webreed-core` package to interact with webreed API.");
a33607a09af9058a1d8ab0120e4ae29520334016
src/PictData.ts
src/PictData.ts
import { BaseData, DefaultBaseData } from "./BaseData"; import * as fs from "fs"; import * as path from "path"; interface PictData extends BaseData { PNG: Buffer } console.log(path.resolve("./")) const DefaultPictData: PictData = { ...DefaultBaseData, PNG: fs.readFileSync(path.join(__dirname, "default.png"...
import { BaseData, DefaultBaseData } from "./BaseData"; import * as fs from "fs"; import * as path from "path"; interface PictData extends BaseData { PNG: Buffer } const DefaultPictData: PictData = { ...DefaultBaseData, PNG: fs.readFileSync(require.resolve("./default.png")) } export { PictData, DefaultPi...
Fix a bug where the default png is loaded from the wrong path
Fix a bug where the default png is loaded from the wrong path
TypeScript
mit
mattsoulanille/NovaJS,mattsoulanille/NovaJS,mattsoulanille/NovaJS
--- +++ @@ -5,10 +5,10 @@ interface PictData extends BaseData { PNG: Buffer } -console.log(path.resolve("./")) + const DefaultPictData: PictData = { ...DefaultBaseData, - PNG: fs.readFileSync(path.join(__dirname, "default.png")) + PNG: fs.readFileSync(require.resolve("./default.png")) } export ...
ed9d904ef4398cf0994ff3de616e698dcbc756b6
src/Test/Html/Config/ToggleSpoiler.ts
src/Test/Html/Config/ToggleSpoiler.ts
import { expect } from 'chai' import Up from '../../../index' import { InlineSpoilerNode } from '../../../SyntaxNodes/InlineSpoilerNode' describe("The text in an inline spoiler's label", () => { it("uses the provided term for 'toggleSpoiler'", () => { const up = new Up({ i18n: { terms: { toggleSpo...
import { expect } from 'chai' import Up from '../../../index' import { InlineSpoilerNode } from '../../../SyntaxNodes/InlineSpoilerNode' import { SpoilerBlockNode } from '../../../SyntaxNodes/SpoilerBlockNode' describe("The text in an inline spoiler's label", () => { it("uses the provided term for 'toggleSpoiler'",...
Add passing spoiler block HTML test
Add passing spoiler block HTML test
TypeScript
mit
start/up,start/up
--- +++ @@ -1,6 +1,7 @@ import { expect } from 'chai' import Up from '../../../index' import { InlineSpoilerNode } from '../../../SyntaxNodes/InlineSpoilerNode' +import { SpoilerBlockNode } from '../../../SyntaxNodes/SpoilerBlockNode' describe("The text in an inline spoiler's label", () => { @@ -23,3 +24,26 @...