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 |
|---|---|---|---|---|---|---|---|---|---|---|
3798faec825f0e91bed983078c4191a0d2f83563 | src/tutorial/ClickablePre.tsx | src/tutorial/ClickablePre.tsx | import React from "react";
import { setInputCode } from "../Terminal/InputField";
export function ClickablePre({ children }: { children: any }) {
return (
<pre className="clickable">
<code
onClick={() => {
setInputCode(children.props.children.replace(/\s*;.*\n/g, ""));
}}
>
... | import React from "react";
import { setInputCode } from "../Terminal/InputField";
export function ClickablePre({ children }: { children: any }) {
return (
<pre className="clickable">
<code
onClick={() => {
setInputCode(
children.props.children
.replace(/\s*;.*\n/... | Remove whitespace from commands copied to terminal | Remove whitespace from commands copied to terminal
| TypeScript | apache-2.0 | calebegg/proof-pad,calebegg/proof-pad,calebegg/proof-pad,calebegg/proof-pad,calebegg/proof-pad | ---
+++
@@ -6,7 +6,11 @@
<pre className="clickable">
<code
onClick={() => {
- setInputCode(children.props.children.replace(/\s*;.*\n/g, ""));
+ setInputCode(
+ children.props.children
+ .replace(/\s*;.*\n/g, "")
+ .replace(/\s+/g, " "),
+ ... |
d4427654ef34a5ebe0383fff4604f65c6a9136d1 | capstone-project/src/main/angular-webapp/src/app/authentication/authentication.component.ts | capstone-project/src/main/angular-webapp/src/app/authentication/authentication.component.ts | import { Component, OnInit } from '@angular/core';
import { SocialAuthService, GoogleLoginProvider, SocialUser } from "angularx-social-login";
import { UserService } from "../user.service";
@Component({
selector: 'app-authentication',
templateUrl: './authentication.component.html',
styleUrls: ['./authentication.... | import { Component, OnInit } from '@angular/core';
import { SocialAuthService, GoogleLoginProvider, SocialUser } from "angularx-social-login";
import { UserService } from "../user.service";
@Component({
selector: 'app-authentication',
templateUrl: './authentication.component.html',
styleUrls: ['./authentication.... | Remove get user service method | Remove get user service method
| TypeScript | apache-2.0 | googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020 | ---
+++
@@ -38,9 +38,4 @@
get user(): SocialUser {
return this.userService.getUser();
}
-
- // Return the userService
- getUserService() {
- return this.userService;
- }
} |
66a00f1b72c2f82ebdbd2945698daaf0f8068b42 | options/customers.ts | options/customers.ts | export interface CustomerSearchOptions {
/**
* Text to search for in the shop's customer data.
*/
query: string;
/**
* Set the field and direction by which to order results.
*/
order: string;
} | export interface CustomerSearchOptions {
/**
* Text to search for in the shop's customer data.
*/
query?: string;
/**
* Set the field and direction by which to order results.
*/
order?: string;
} | Make customer search options optional | Make customer search options optional
| TypeScript | mit | nozzlegear/Shopify-Prime | ---
+++
@@ -2,10 +2,10 @@
/**
* Text to search for in the shop's customer data.
*/
- query: string;
+ query?: string;
/**
* Set the field and direction by which to order results.
*/
- order: string;
+ order?: string;
} |
171debaa57137401c400b46967cb281261ea1169 | packages/components/containers/app/StandalonePublicApp.tsx | packages/components/containers/app/StandalonePublicApp.tsx | import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { TtagLocaleMap } from 'proton-shared/lib/interfaces/Locale';
import StandardPublicApp from './StandardPublicApp';
import MinimalLoginContainer from '../login/MinimalLoginContainer';
import { OnLoginCallback } from './interface';
inter... | import React from 'react';
import { TtagLocaleMap } from 'proton-shared/lib/interfaces/Locale';
import StandardPublicApp from './StandardPublicApp';
import MinimalLoginContainer from '../login/MinimalLoginContainer';
import { OnLoginCallback } from './interface';
interface Props {
onLogin: OnLoginCallback;
loc... | Remove routes from standalone public app | Remove routes from standalone public app
| TypeScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | ---
+++
@@ -1,5 +1,4 @@
import React from 'react';
-import { Route, Switch } from 'react-router-dom';
import { TtagLocaleMap } from 'proton-shared/lib/interfaces/Locale';
import StandardPublicApp from './StandardPublicApp';
import MinimalLoginContainer from '../login/MinimalLoginContainer';
@@ -12,9 +11,7 @@
con... |
9fcc6a7e9417011ce641d8790b4cd98bfc9176a6 | src/actions/watcherFolders.ts | src/actions/watcherFolders.ts | import { WATCHER_FOLDER_EDIT, CREATE_WATCHER_FOLDER } from '../constants/index';
import { WatcherFolder } from '../types';
export interface EditWatcherFolder {
readonly type: WATCHER_FOLDER_EDIT;
readonly folderId: string;
readonly field: 'name';
readonly value: string;
}
export interface CreateWatc... | import {
WATCHER_FOLDER_EDIT,
CREATE_WATCHER_FOLDER,
DELETE_WATCHER_FOLDER
} from '../constants/index';
import { WatcherFolder } from '../types';
export interface EditWatcherFolder {
readonly type: WATCHER_FOLDER_EDIT;
readonly folderId: string;
readonly field: 'name';
readonly value: string;
... | Add action creators for DELETE_WATCHER_FOLDER. | Add action creators for DELETE_WATCHER_FOLDER.
| TypeScript | mit | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | ---
+++
@@ -1,4 +1,8 @@
-import { WATCHER_FOLDER_EDIT, CREATE_WATCHER_FOLDER } from '../constants/index';
+import {
+ WATCHER_FOLDER_EDIT,
+ CREATE_WATCHER_FOLDER,
+ DELETE_WATCHER_FOLDER
+} from '../constants/index';
import { WatcherFolder } from '../types';
export interface EditWatcherFolder {
@@ -13,7 +17,1... |
cdf48fb04665eaac71dd90977c5d2a44317e1f86 | app/javascript/services/behave.ts | app/javascript/services/behave.ts | type Selector = string | ((e: Element) => Array<Element>);
function resolveElements(root: Element, selector: Selector): Array<Element> {
if (typeof selector === 'string') {
return Array.from(root.querySelectorAll(selector));
} else {
return selector(root);
}
}
class Behavior {
construc... | type Selector = string | ((e: Element) => Array<Element>);
function resolveElements(root: Element, selector: Selector): Array<Element> {
if (typeof selector === 'string') {
return Array.from(root.querySelectorAll(selector));
} else {
return selector(root);
}
}
class Behavior {
construc... | Fix TS compilation that was not triggered in incremental compilation | Fix TS compilation that was not triggered in incremental compilation
| TypeScript | agpl-3.0 | ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre | ---
+++
@@ -13,10 +13,11 @@
refresh() {
resolveElements(this.element, this.selector).forEach((e) => {
+ const elem = e as any;
const key = `alreadyBound${this.sequence}`;
- if (!e[key]) {
- e[key] = true;
+ if (!elem[key]) {
+ ... |
ae5598fc2315e9e14aa6bf8195677faca1ba86f2 | src/app/app.component.spec.ts | src/app/app.component.spec.ts | /* tslint:disable:no-unused-variable */
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('App: D3Ng2Demo', () => {
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
});
});
it('should c... | /* tslint:disable:no-unused-variable */
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('App: D3Ng2Demo', () => {
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
});
});
it('should c... | Remove forced test error. * Changed the code that forced a Karma error to validate travis config. Travis failed as expected. | Remove forced test error.
* Changed the code that forced a Karma error to validate travis config. Travis failed as expected.
| TypeScript | mit | tomwanzek/d3-ng2-demo,tomwanzek/d3-ng2-demo,ardadurak/map_visualisation,ardadurak/map_visualisation,tomwanzek/d3-ng2-demo,ardadurak/map_visualisation | ---
+++
@@ -21,7 +21,7 @@
it(`should have as title 'D3 Demo'`, async(() => {
let fixture = TestBed.createComponent(AppComponent);
let app = fixture.debugElement.componentInstance;
- expect(app.title).toEqual('Not D3 Demo');
+ expect(app.title).toEqual('D3 Demo');
}));
// it('should render t... |
aa164beead2703786e211446e368cb239bee20f9 | tests/cases/compiler/implicitAnyInCatch.ts | tests/cases/compiler/implicitAnyInCatch.ts | ///<style implicitAny="off" />
try { } catch (error) { } // Shouldn't be an error
for (var key in this) { } // Shouldn't be an error
| //@disallowimplicitany: true
try { } catch (error) { } // Shouldn't be an error
for (var key in this) { } // Shouldn't be an error
| Update specifying disallowimplicitany flag in the old test file. | Update specifying disallowimplicitany flag in the old test file.
| TypeScript | apache-2.0 | fdecampredon/jsx-typescript-old-version,popravich/typescript,popravich/typescript,hippich/typescript,mbrowne/typescript-dci,mbrowne/typescript-dci,hippich/typescript,fdecampredon/jsx-typescript-old-version,mbrowne/typescript-dci,hippich/typescript,mbebenita/shumway.ts,mbrowne/typescript-dci,popravich/typescript,mbebeni... | ---
+++
@@ -1,3 +1,3 @@
-///<style implicitAny="off" />
+//@disallowimplicitany: true
try { } catch (error) { } // Shouldn't be an error
for (var key in this) { } // Shouldn't be an error |
82e27fd2744bfebd479932978e4a0b3db3639714 | src/Switch.webmodeler.ts | src/Switch.webmodeler.ts | import { Component, createElement } from "react";
import { Switch } from "./components/Switch";
import { SwitchContainerProps } from "./components/SwitchContainer";
import * as css from "./ui/Switch.sass";
// tslint:disable class-name
export class preview extends Component<SwitchContainerProps, {}> {
componentWil... | import { Component, createElement } from "react";
import { Switch } from "./components/Switch";
import { SwitchContainerProps } from "./components/SwitchContainer";
import * as css from "./ui/Switch.sass";
import { Label } from "./components/Label";
// tslint:disable class-name
export class preview extends Component<... | Add support for the label | Add support for the label
| TypeScript | apache-2.0 | FlockOfBirds/boolean-slider,FlockOfBirds/boolean-slider | ---
+++
@@ -3,6 +3,7 @@
import { SwitchContainerProps } from "./components/SwitchContainer";
import * as css from "./ui/Switch.sass";
+import { Label } from "./components/Label";
// tslint:disable class-name
export class preview extends Component<SwitchContainerProps, {}> {
@@ -11,6 +12,19 @@
}
re... |
950ae711e2b38f0e5439e0d69f1f7803d23031ed | config.service.ts | config.service.ts | export class HsConfig {
constructor(){}
} | export class HsConfig {
componentsEnabled: any;
mapInteractionsEnabled: boolean;
allowAddExternalDatasets: boolean;
sidebarClosed: boolean;
constructor() {
}
} | Add properties used in HsCore to HsConfig type def | Add properties used in HsCore to HsConfig type def
| TypeScript | mit | hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng | ---
+++
@@ -1,3 +1,9 @@
export class HsConfig {
- constructor(){}
+ componentsEnabled: any;
+ mapInteractionsEnabled: boolean;
+ allowAddExternalDatasets: boolean;
+ sidebarClosed: boolean;
+ constructor() {
+
+ }
} |
a6daa370ec92bbec5217e4f7d03951a66ac6b9fd | frontend/applications/auth/src/modules/register/NotApproved.tsx | frontend/applications/auth/src/modules/register/NotApproved.tsx | import React from 'react';
import { css } from 'react-emotion';
export const NotApproved = () => (
<div
className={css`
padding: 2rem;
`}>
<h1>Come back later!</h1>
<p>Thanks for registering!</p>
<p>
You have completed registration but you're not able to log in just yet. A program man... | import React from 'react';
import { css } from 'react-emotion';
import { logout } from '../common/services/login';
export const NotApproved = () => (
<div
className={css`
padding: 2rem;
`}>
<h1>Come back later!</h1>
<p>Thanks for registering!</p>
<p>
If you have already verified your ... | Add logout button & prompt to login again | Add logout button & prompt to login again
| TypeScript | mit | CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/cmpd-holiday-gift-backend,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/cmpd-holiday-gift-backend,CodeForCharlotte/cmpd-holiday-gift-backend,CodeForCharlotte/CMPD-Holiday-Gift | ---
+++
@@ -1,5 +1,6 @@
import React from 'react';
import { css } from 'react-emotion';
+import { logout } from '../common/services/login';
export const NotApproved = () => (
<div
@@ -9,8 +10,14 @@
<h1>Come back later!</h1>
<p>Thanks for registering!</p>
<p>
+ If you have already verified ... |
5f27c645b990725e1eeba0313d2871858171415a | packages/shared/lib/i18n/helper.ts | packages/shared/lib/i18n/helper.ts | import { DEFAULT_LOCALE } from '../constants';
import { TtagLocaleMap } from '../interfaces/Locale';
/**
* Gets the first specified locale from the browser, if any.
*/
export const getBrowserLocale = () => {
return window.navigator.languages && window.navigator.languages.length ? window.navigator.languages[0] : ... | import { DEFAULT_LOCALE } from '../constants';
/**
* Gets the first specified locale from the browser, if any.
*/
export const getBrowserLocale = () => {
return window.navigator.languages && window.navigator.languages.length ? window.navigator.languages[0] : undefined;
};
export const getNormalizedLocale = (loc... | Allow any in locale map | Allow any in locale map
| TypeScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | ---
+++
@@ -1,5 +1,4 @@
import { DEFAULT_LOCALE } from '../constants';
-import { TtagLocaleMap } from '../interfaces/Locale';
/**
* Gets the first specified locale from the browser, if any.
@@ -33,7 +32,7 @@
}
};
-export const getClosestLocaleCode = (locale: string | undefined, locales: TtagLocaleMap) =... |
efc98c4bd9054b8876a87715ce876a0e8a55a331 | app/src/ui/preferences/advanced.tsx | app/src/ui/preferences/advanced.tsx | import * as React from 'react'
import { User } from '../../models/user'
import { DialogContent } from '../dialog'
interface IAdvancedPreferencesProps {
readonly user: User | null
}
interface IAdvancedPreferencesState {
readonly reportingOptOut: boolean,
}
export class Advanced extends React.Component<IAdvancedPr... | import * as React from 'react'
import { Dispatcher } from '../../lib/dispatcher'
import { DialogContent } from '../dialog'
import { Checkbox, CheckboxValue } from '../lib/checkbox'
interface IAdvancedPreferencesProps {
readonly dispatcher: Dispatcher
}
interface IAdvancedPreferencesState {
readonly reportingOptOu... | Reimplement component using the checkbox component | Reimplement component using the checkbox component
| TypeScript | mit | j-f1/forked-desktop,BugTesterTest/desktops,artivilla/desktop,shiftkey/desktop,desktop/desktop,BugTesterTest/desktops,BugTesterTest/desktops,artivilla/desktop,kactus-io/kactus,hjobrien/desktop,desktop/desktop,kactus-io/kactus,kactus-io/kactus,say25/desktop,say25/desktop,shiftkey/desktop,say25/desktop,hjobrien/desktop,Bu... | ---
+++
@@ -1,9 +1,10 @@
import * as React from 'react'
-import { User } from '../../models/user'
+import { Dispatcher } from '../../lib/dispatcher'
import { DialogContent } from '../dialog'
+import { Checkbox, CheckboxValue } from '../lib/checkbox'
interface IAdvancedPreferencesProps {
- readonly user: User | ... |
f40e1ff0cc793e60ae72bdc430c24e372cd86015 | src/server/web/url-preview.ts | src/server/web/url-preview.ts | import * as Koa from 'koa';
import summaly from 'summaly';
module.exports = async (ctx: Koa.Context) => {
const summary = await summaly(ctx.query.url);
summary.icon = wrap(summary.icon);
summary.thumbnail = wrap(summary.thumbnail);
// Cache 7days
ctx.set('Cache-Control', 'max-age=604800, immutable');
ctx.body ... | import * as Koa from 'koa';
import summaly from 'summaly';
module.exports = async (ctx: Koa.Context) => {
const summary = await summaly(ctx.query.url);
summary.icon = wrap(summary.icon);
summary.thumbnail = wrap(summary.thumbnail);
// Cache 7days
ctx.set('Cache-Control', 'max-age=604800, immutable');
ctx.body ... | Fix cause error in case preview has data URI | Fix cause error in case preview has data URI
| TypeScript | mit | syuilo/Misskey,syuilo/Misskey,Tosuke/misskey,ha-dai/Misskey,Tosuke/misskey,ha-dai/Misskey,Tosuke/misskey,Tosuke/misskey,Tosuke/misskey | ---
+++
@@ -14,7 +14,7 @@
function wrap(url: string): string {
return url != null
- ? url.startsWith('https://')
+ ? url.startsWith('https://') || url.startsWith('data:')
? url
: `https://images.weserv.nl/?url=${encodeURIComponent(url.replace(/^http:\/\//, ''))}`
: null; |
b04edae16d6ff5fe7c256467513282ee01c94c4a | src/Diploms.WebUI/ClientApp/app/components/sign-in/sign-in.component.ts | src/Diploms.WebUI/ClientApp/app/components/sign-in/sign-in.component.ts | import { Component } from '@angular/core';
import { AlertService } from '../../shared/alert/services/alert.service';
@Component({
selector: 'sign-in',
templateUrl: './sign-in.component.html',
})
export class SignInComponent {
constructor(private alertService: AlertService) { }
model:any={};
login(... | import { Component } from '@angular/core';
import { AlertService } from '../../shared/alert/services/alert.service';
import { AuthRequest, AuthService } from '../../auth/services/auth.service';
import { Router } from '@angular/router';
@Component({
selector: 'sign-in',
templateUrl: './sign-in.component.html',
... | Modify Login Component to call API and authenticate | Modify Login Component to call API and authenticate
| TypeScript | mit | denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs | ---
+++
@@ -1,15 +1,26 @@
import { Component } from '@angular/core';
import { AlertService } from '../../shared/alert/services/alert.service';
+import { AuthRequest, AuthService } from '../../auth/services/auth.service';
+import { Router } from '@angular/router';
@Component({
selector: 'sign-in',
templ... |
748d079a88ee824530895a2cb5c477dc5e9af4d3 | lib/settings/DefaultSettings.ts | lib/settings/DefaultSettings.ts | import {VoidHook} from "../tasks/Hooks";
export default {
projectType: "frontend",
port: 5000,
liveReloadPort: 35729,
distribution: "dist",
targets: "targets",
bootstrapperStyles: "",
watchStyles: [
"styles"
],
test: "test/**/*.ts",
images: "images",
assets: "assets... | import {VoidHook} from "../tasks/Hooks";
export default {
projectType: "frontend",
port: 5000,
liveReloadPort: 35729,
distribution: "dist",
targets: "targets",
bootstrapperStyles: "",
watchStyles: [
"styles"
],
test: "test/**/*.ts",
images: "images",
assets: "assets... | Change uglify default settings to fix minify UTF-8 characters problems | Change uglify default settings to fix minify UTF-8 characters problems
| TypeScript | mit | mtfranchetto/smild,mtfranchetto/smild,mtfranchetto/smild | ---
+++
@@ -17,7 +17,11 @@
scripts: "scripts/**/*.{ts,tsx}",
revisionExclude: [],
nodemon: {},
- uglifyjs: {},
+ uglifyjs: {
+ output: {
+ "ascii_only": true
+ }
+ },
preBuild: VoidHook,
postBuild: VoidHook
} |
444267870d01712bb34f4795ecf9bc8f377066ae | front_end/src/app/admin/sign-in/sign-in.service.spec.ts | front_end/src/app/admin/sign-in/sign-in.service.spec.ts | /* tslint:disable:no-unused-variable */
import { TestBed, async, inject } from '@angular/core/testing';
import { SignInService } from './sign-in.service';
import { HttpClientService } from '../../shared/services/http-client.service';
import { Http, RequestOptions, Headers, Response, ResponseOptions } from '@angular/ht... | Add test for sign-in service | Add test for sign-in service
| TypeScript | bsd-2-clause | crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin | ---
+++
@@ -0,0 +1,82 @@
+/* tslint:disable:no-unused-variable */
+
+import { TestBed, async, inject } from '@angular/core/testing';
+import { SignInService } from './sign-in.service';
+import { HttpClientService } from '../../shared/services/http-client.service';
+import { Http, RequestOptions, Headers, Response, Re... | |
a5007fb1e7f5c146251d5ceb55957fda50b72954 | src/column/StringColumn.ts | src/column/StringColumn.ts | /**
* Created by Samuel Gratzl on 19.01.2017.
*/
import {AVectorColumn, IStringVector} from './AVectorColumn';
import {EOrientation} from './AColumn';
import {mixin} from 'phovea_core/src/index';
import {IMultiFormOptions} from 'phovea_core/src/multiform';
export default class StringColumn extends AVectorColumn<str... | /**
* Created by Samuel Gratzl on 19.01.2017.
*/
import {AVectorColumn, IStringVector} from './AVectorColumn';
import {EOrientation} from './AColumn';
import {mixin} from 'phovea_core/src/index';
import {IMultiFormOptions} from 'phovea_core/src/multiform';
export default class StringColumn extends AVectorColumn<str... | Add cssClass option to string list vis | Add cssClass option to string list vis
| TypeScript | bsd-3-clause | Caleydo/mothertable,Caleydo/mothertable,Caleydo/mothertable | ---
+++
@@ -18,7 +18,10 @@
protected multiFormParams($body: d3.Selection<any>): IMultiFormOptions {
return mixin(super.multiFormParams($body), {
- initialVis: 'list'
+ initialVis: 'list',
+ 'list': {
+ cssClass: 'taggle-list'
+ }
});
}
|
9f6940b764a76819d7dfb628840f0aaa97120040 | src/rooms/IRoom.ts | src/rooms/IRoom.ts | import { IUser } from '../users';
import { RoomType } from './RoomType';
export interface IRoom {
id: string;
name: string;
type: RoomType;
creator: IUser;
usernames: Array<string>;
isDefault?: boolean;
messageCount?: number;
createdAt?: Date;
updatedAt?: Date;
lastModifiedAt?: ... | import { IUser } from '../users';
import { RoomType } from './RoomType';
export interface IRoom {
id: string;
displayName: string;
slugifiedName?: string;
type: RoomType;
creator: IUser;
usernames: Array<string>;
isDefault?: boolean;
isReadOnly?: boolean;
displaySystemMessages?: boo... | Add some properties to the room interface | Add some properties to the room interface
| TypeScript | mit | graywolf336/temporary-rocketlets-ts-definition,graywolf336/temporary-rocketlets-ts-definition | ---
+++
@@ -3,13 +3,17 @@
export interface IRoom {
id: string;
- name: string;
+ displayName: string;
+ slugifiedName?: string;
type: RoomType;
creator: IUser;
usernames: Array<string>;
isDefault?: boolean;
+ isReadOnly?: boolean;
+ displaySystemMessages?: boolean;
mess... |
946deec8d28aef5509387ec10fe2b65e21862b32 | src/app/page-not-found/page-not-found.component.ts | src/app/page-not-found/page-not-found.component.ts | import { Router } from '@angular/router';
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-page-not-found',
templateUrl: './page-not-found.component.html',
})
export class PageNotFoundComponent implements OnInit {
constructor(public router: Router) { }
ngOnInit() {
}
}
| import { Router } from '@angular/router';
import { Component, OnInit } from '@angular/core';
import { ActionIcon, ActionIconService } from '../actionitem.service';
@Component({
selector: 'app-page-not-found',
templateUrl: './page-not-found.component.html',
})
export class PageNotFoundComponent implements OnInit {
... | Add home icon to not found page | chore: Add home icon to not found page
| TypeScript | mit | Chan4077/angular-rss-reader,Chan4077/angular-rss-reader,Chan4077/angular-rss-reader | ---
+++
@@ -1,5 +1,6 @@
import { Router } from '@angular/router';
import { Component, OnInit } from '@angular/core';
+import { ActionIcon, ActionIconService } from '../actionitem.service';
@Component({
selector: 'app-page-not-found',
@@ -7,9 +8,12 @@
})
export class PageNotFoundComponent implements OnInit {
... |
514967660f23e5a6bd4f87477b5dafdc1d612abf | geopattern/geopattern-tests.ts | geopattern/geopattern-tests.ts | /// <reference path="index.d.ts" />
/// <reference path="../jquery/index.d.ts" />
var pattern = GeoPattern.generate('GitHub');
pattern.toDataUrl();
$('#geopattern').geopattern('GitHub');
| /// <reference path="index.d.ts" />
/// <reference types="jquery" />
var pattern = GeoPattern.generate('GitHub');
pattern.toDataUrl();
$('#geopattern').geopattern('GitHub');
| Switch to <reference types /> in tests. | [geopattern] Switch to <reference types /> in tests.
| TypeScript | mit | scriby/DefinitelyTyped,YousefED/DefinitelyTyped,arusakov/DefinitelyTyped,AgentME/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,rolandzwaga/DefinitelyTyped,YousefED/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,georgemarshall/DefinitelyTyped,abbasmhd/DefinitelyTyped,georgemarshall/DefinitelyTyped,mcrawshaw/DefinitelyTyped,a... | ---
+++
@@ -1,5 +1,5 @@
/// <reference path="index.d.ts" />
-/// <reference path="../jquery/index.d.ts" />
+/// <reference types="jquery" />
var pattern = GeoPattern.generate('GitHub');
pattern.toDataUrl(); |
897ec5a3797b1d07dcccd4da13b06a2fdc064b90 | tools/env/base.ts | tools/env/base.ts | import { EnvConfig } from './env-config.interface';
const BaseConfig: EnvConfig = {
// Sample API url
API: 'https://demo.com',
RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.15.1',
RELEASEVERSION: '0.15.1'
};
export = BaseConfig;
| import { EnvConfig } from './env-config.interface';
const BaseConfig: EnvConfig = {
// Sample API url
API: 'https://demo.com',
RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.16.0',
RELEASEVERSION: '0.16.0'
};
export = BaseConfig;
| Update release version to 0.16.0. | Update release version to 0.16.0.
| TypeScript | mit | nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website | ---
+++
@@ -3,8 +3,8 @@
const BaseConfig: EnvConfig = {
// Sample API url
API: 'https://demo.com',
- RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.15.1',
- RELEASEVERSION: '0.15.1'
+ RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.16.0',
+ RELEASEVERSION: '0.16... |
04c4b432669d3fe2ee8f6b9304cea1a766417972 | react/javascript/test/search/FilteringTest.ts | react/javascript/test/search/FilteringTest.ts | import assert from 'assert'
import { messages, IdGenerator } from '@cucumber/messages'
import Search from '../../src/search/Search'
import { makeFeature, makeScenario, makeStep } from './utils'
import Parser from '@cucumber/gherkin/dist/src/Parser'
import AstBuilder from '@cucumber/gherkin/dist/src/AstBuilder'
import p... | import assert from 'assert'
import { messages, IdGenerator } from '@cucumber/messages'
import Search from '../../src/search/Search'
import { makeFeature, makeScenario, makeStep } from './utils'
import Parser from '@cucumber/gherkin/dist/src/Parser'
import AstBuilder from '@cucumber/gherkin/dist/src/AstBuilder'
import p... | Add background failing example of filtering | Add background failing example of filtering
| TypeScript | mit | cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber | ---
+++
@@ -8,10 +8,10 @@
describe('Search', () => {
let search: Search
- let gherkinDocuments: messages.IGherkinDocument[]
+ const source = `Feature: Continents
- beforeEach(() => {
- const source = `Feature: Continents
+ Background: World
+ Given the world exists
Scenario: Europe
Given F... |
cbab3e575fa2e58ef1d12b3c9b524e8e59ec87d8 | test/index.ts | test/index.ts | import * as path from 'path';
import * as Mocha from 'mocha';
import * as glob from 'glob';
export function run(): Promise<void> {
// Create the mocha test
const mocha = new Mocha({
ui: 'tdd'
});
mocha.useColors(true);
const testsRoot = path.resolve(__dirname, '..');
return new Promise((c, e) => {
glob('**... | import * as path from 'path';
import * as Mocha from 'mocha';
import * as glob from 'glob';
export function run(): Promise<void> {
// Create the mocha test
const mocha = new Mocha({
ui: 'tdd'
});
mocha.useColors(true);
mocha.timeout(5000);
const testsRoot = path.resolve(__dirname, '..');
return new Promise(... | Increase test timeout (first one was failing) | Increase test timeout (first one was failing)
| TypeScript | mit | ipatalas/vscode-postfix-ts,ipatalas/vscode-postfix-ts | ---
+++
@@ -8,6 +8,7 @@
ui: 'tdd'
});
mocha.useColors(true);
+ mocha.timeout(5000);
const testsRoot = path.resolve(__dirname, '..');
|
fbfc00ab194b77a10182c61316e8a62de1118ff7 | src/panels/panel-view.styles.ts | src/panels/panel-view.styles.ts | import {css} from '@microsoft/fast-element';
import {display} from '@microsoft/fast-foundation';
import {
density,
designUnit,
typeRampBaseFontSize,
typeRampBaseLineHeight,
} from '../design-tokens';
export const PanelViewStyles = css`
${display('flex')} :host {
color: #ffffff;
background-color: transparent;
... | import {css} from '@microsoft/fast-element';
import {display} from '@microsoft/fast-foundation';
import {
designUnit,
typeRampBaseFontSize,
typeRampBaseLineHeight,
} from '../design-tokens';
export const PanelViewStyles = css`
${display('flex')} :host {
color: #ffffff;
background-color: transparent;
border: ... | Remove density reference from panel view | Remove density reference from panel view
| TypeScript | mit | microsoft/vscode-webview-ui-toolkit,microsoft/vscode-webview-ui-toolkit,microsoft/vscode-webview-ui-toolkit | ---
+++
@@ -1,7 +1,6 @@
import {css} from '@microsoft/fast-element';
import {display} from '@microsoft/fast-foundation';
import {
- density,
designUnit,
typeRampBaseFontSize,
typeRampBaseLineHeight,
@@ -15,6 +14,6 @@
box-sizing: border-box;
font-size: ${typeRampBaseFontSize};
line-height: ${typeRamp... |
a3acfb6cbad2da0a11b8cad55617aaffe58d53a9 | app/src/ui/changes/undo-commit.tsx | app/src/ui/changes/undo-commit.tsx | import * as React from 'react'
import { Commit } from '../../models/commit'
import { RichText } from '../lib/rich-text'
import { RelativeTime } from '../relative-time'
import { Button } from '../lib/button'
interface IUndoCommitProps {
/** The function to call when the Undo button is clicked. */
readonly onUndo: ... | import * as React from 'react'
import { Commit } from '../../models/commit'
import { RichText } from '../lib/rich-text'
import { RelativeTime } from '../relative-time'
import { Button } from '../lib/button'
interface IUndoCommitProps {
/** The function to call when the Undo button is clicked. */
readonly onUndo: ... | Disable URL becomming links in undo | Disable URL becomming links in undo
Follow comment on #1605
| TypeScript | mit | j-f1/forked-desktop,hjobrien/desktop,gengjiawen/desktop,desktop/desktop,j-f1/forked-desktop,desktop/desktop,kactus-io/kactus,say25/desktop,gengjiawen/desktop,gengjiawen/desktop,gengjiawen/desktop,BugTesterTest/desktops,kactus-io/kactus,artivilla/desktop,shiftkey/desktop,artivilla/desktop,say25/desktop,j-f1/forked-deskt... | ---
+++
@@ -33,7 +33,8 @@
<RichText
emoji={this.props.emoji}
className='summary'
- text={this.props.commit.summary} />
+ text={this.props.commit.summary}
+ renderUrlsAsLinks={false} />
</div>
<div className='actions' title={title}... |
f4b17c5ccfc9bbc22d853adc321c568d7cd7fb15 | functions/src/tracks-view/generate-tracks.ts | functions/src/tracks-view/generate-tracks.ts | import { Request, Response } from 'express'
import { FirebaseApp } from '../firebase'
import { firestoreRawCollection } from '../firestore/collection'
import { TrackData } from '../firestore/data'
import { Track } from './tracks-view-data'
export const generateTracks = (firebaseApp: FirebaseApp) => (_: Request, respon... | import { Request, Response } from 'express'
import { FirebaseApp } from '../firebase'
import { firestoreRawCollection } from '../firestore/collection'
import { TrackData } from '../firestore/data'
import { Track } from './tracks-view-data'
export const generateTracks = (firebaseApp: FirebaseApp) => (_: Request, respon... | Rename the tracks_view document to track for consistency | Rename the tracks_view document to track for consistency | TypeScript | apache-2.0 | squanchy-dev/squanchy-firebase,squanchy-dev/squanchy-firebase | ---
+++
@@ -12,7 +12,7 @@
tracksPromise.then(tracks => {
const tracksCollection = firestore.collection('views')
- .doc('tracks_view')
+ .doc('tracks')
.collection('tracks')
return Promise.all(tracks.map(trackData => { |
694beab534d215f7d5c5dbd65abc4598d495c216 | packages/satelite/src/rete/nodes/ReteNode.ts | packages/satelite/src/rete/nodes/ReteNode.ts | import { IList } from "../util";
export interface IReteNode {
type:
| "join"
| "production"
| "root-join"
| "root"
| "query"
| "negative"
| "accumulator";
children: IList<IReteNode>;
parent: IReteNode | null;
}
export abstract class ReteNode {
type: string;
children: IList<IReteN... | import { IList } from "../util";
export interface IReteNode {
type:
| "join"
| "production"
| "root-join"
| "root"
| "query"
| "negative"
| "accumulator";
children: IList<IReteNode>;
parent: IReteNode | null;
}
export abstract class ReteNode {
type: string;
children: IList<IReteN... | Remove old root node code | Remove old root node code
| TypeScript | apache-2.0 | tdreyno/satelite,tdreyno/satelite | ---
+++
@@ -19,11 +19,6 @@
parent: IReteNode | null;
}
-export interface IRootNode extends IReteNode {
- type: "root";
- parent: null;
-}
-
export class RootNode extends ReteNode {
static create() {
return new RootNode();
@@ -32,12 +27,3 @@
type = "root";
parent = null;
}
-
-export function ma... |
22f2ca89704a9740c30d6a96007489b2b9f7ce02 | src/debug/debug_entry.ts | src/debug/debug_entry.ts | import { DebugSession } from "vscode-debugadapter";
import { DartDebugSession } from "./dart_debug_impl";
import { DartTestDebugSession } from "./dart_test_debug_impl";
import { FlutterDebugSession } from "./flutter_debug_impl";
import { FlutterTestDebugSession } from "./flutter_test_debug_impl";
import { WebDebugSessi... | import { DebugSession } from "vscode-debugadapter";
import { DartDebugSession } from "./dart_debug_impl";
import { DartTestDebugSession } from "./dart_test_debug_impl";
import { FlutterDebugSession } from "./flutter_debug_impl";
import { FlutterTestDebugSession } from "./flutter_test_debug_impl";
import { WebDebugSessi... | Include argv in debug adapter error message | Include argv in debug adapter error message
See https://github.com/Dart-Code/Dart-Code/issues/2782.
| TypeScript | mit | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code | ---
+++
@@ -22,5 +22,5 @@
if (dbg) {
DebugSession.run(dbg);
} else {
- throw new Error(`Debugger type must be one of ${Object.keys(debuggers).join(", ")} but got ${debugType}`);
+ throw new Error(`Debugger type must be one of ${Object.keys(debuggers).join(", ")} but got ${debugType}.\n argv: ${process.argv.join(... |
571b6778aef578af5741596e81bf46932b085701 | angular/src/app/file/file.ts | angular/src/app/file/file.ts | import { ITag } from '../tag';
export interface IFile {
id: number;
path: string;
tags: ITag[];
}
| import { ITag } from '../tag';
export interface IFile {
id: number;
path: string;
webpath: string;
tags: ITag[];
}
| Add missing webpath property on IFile | Add missing webpath property on IFile
| TypeScript | mit | waxe/waxe-image,waxe/waxe-image,waxe/waxe-image,waxe/waxe-image,waxe/waxe-image | ---
+++
@@ -4,5 +4,6 @@
export interface IFile {
id: number;
path: string;
+ webpath: string;
tags: ITag[];
} |
251bafc19a415c4d8731b57dea77765cddb1fd3e | src/services/intl-api.ts | src/services/intl-api.ts | /**
* Provides the methods to check if Intl APIs are supported.
*/
export class IntlAPI {
public static hasIntl(): boolean {
const hasIntl: boolean = Intl && typeof Intl === "object";
return hasIntl;
}
public static hasDateTimeFormat(): boolean {
return IntlAPI.hasIntl && Intl.h... | /**
* Provides the methods to check if Intl APIs are supported.
*/
export class IntlAPI {
public static hasIntl(): boolean {
const hasIntl: boolean = typeof Intl === "object" && Intl;
return hasIntl;
}
public static hasDateTimeFormat(): boolean {
return IntlAPI.hasIntl && Intl.h... | Fix Can't find variable: Intl for iOS/Safari | Fix Can't find variable: Intl for iOS/Safari
On iOS device got thrown "Can't find variable: Intl". http://imgur.com/a/Q5vIC | TypeScript | mit | robisim74/angular-l10n,robisim74/angular-l10n,robisim74/angular-l10n,robisim74/angular2localization,robisim74/angular-l10n,robisim74/angular2localization | ---
+++
@@ -4,7 +4,7 @@
export class IntlAPI {
public static hasIntl(): boolean {
- const hasIntl: boolean = Intl && typeof Intl === "object";
+ const hasIntl: boolean = typeof Intl === "object" && Intl;
return hasIntl;
}
|
30b155a78e59161b83b87f2faf9bf970f169c6ea | types/ember__string/index.d.ts | types/ember__string/index.d.ts | // Type definitions for @ember/string 3.0
// Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Fstring, https://github.com/emberjs/ember-string
// Definitions by: Mike North <https://github.com/mike-north>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import { S... | // Type definitions for non-npm package @ember/string 3.0
// Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Fstring
// Definitions by: Mike North <https://github.com/mike-north>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import { SafeString } from 'handleb... | Make @ember/string a non-npm package | Make @ember/string a non-npm package
And revert the unrelated project url.
| TypeScript | mit | dsebastien/DefinitelyTyped,markogresak/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,mcliment/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped | ---
+++
@@ -1,5 +1,5 @@
-// Type definitions for @ember/string 3.0
-// Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Fstring, https://github.com/emberjs/ember-string
+// Type definitions for non-npm package @ember/string 3.0
+// Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Fstring
// Defin... |
ba708f1311e8c694b672b8964ab61a65e0e658ca | src/client/a1/model/player/player.effects.ts | src/client/a1/model/player/player.effects.ts | import { Injectable } from '@angular/core';
import { Actions, Effect } from '@ngrx/effects';
import { Grid } from '../../main/grid/grid.model';
import { Note } from '../../../common/core/note.model';
import { PlayerActions } from './player.actions';
import { SoundService } from "../../../common/sound/sound.service";
i... | import { Injectable } from '@angular/core';
import { Actions, Effect } from '@ngrx/effects';
import { Grid } from '../../main/grid/grid.model';
import { Note } from '../../../common/core/note.model';
import { PlayerActions } from './player.actions';
import { SoundService } from "../../../common/sound/sound.service";
i... | Fix live sounds playing during playback when not the right time. | Fix live sounds playing during playback when not the right time.
| TypeScript | mit | FlatThirteen/flat-thirteen,FlatThirteen/flat-thirteen,FlatThirteen/flat-thirteen | ---
+++
@@ -34,7 +34,7 @@
}
if (this.transport.canLivePlay(beat, cursor, pulses)) {
this.stage.play(new Note(sound), beat, tick);
- } else if (!this.stage.isGoal) {
+ } else if (this.stage.isStandby) {
this.sound.play(sound);
}
}).ignoreElements(); |
8cbcb912814b545e162171b0639bfc87be8f2444 | src/collection/TrickCard.ts | src/collection/TrickCard.ts | import { CardType as Type } from '@karuta/sanguosha-core';
import Card from '../driver/Card';
class TrickCard extends Card {
getType(): Type {
return Type.Trick;
}
}
export default TrickCard;
| import { CardType as Type } from '@karuta/sanguosha-core';
import Card from '../driver/Card';
import GameDriver from '../driver/GameDriver';
import CardUseStruct from '../driver/CardUseStruct';
class TrickCard extends Card {
getType(): Type {
return Type.Trick;
}
async use(driver: GameDriver, use: CardUseStruct... | Add basic procedure of trick cards | Add basic procedure of trick cards
| TypeScript | agpl-3.0 | takashiro/sanguosha-server,takashiro/sanguosha-server | ---
+++
@@ -1,11 +1,35 @@
import { CardType as Type } from '@karuta/sanguosha-core';
import Card from '../driver/Card';
+import GameDriver from '../driver/GameDriver';
+import CardUseStruct from '../driver/CardUseStruct';
class TrickCard extends Card {
getType(): Type {
return Type.Trick;
}
+
+ async us... |
2880a37c0abd7fe77c853097b3155c2226dcfb57 | src/common/events/PingEvent.ts | src/common/events/PingEvent.ts | import TEBEvent from '../../framework/common/event/TEBEvent';
export default class PingEvent extends TEBEvent<{msg: string, delay: number}> {
static type = 'PingEvent';
type = PingEvent.type;
}
| import TEBEvent from '../../framework/common/event/TEBEvent';
export default class PingEvent extends TEBEvent<{user: string, msg: string, delay: number}> {
static type = 'PingEvent';
type = PingEvent.type;
}
| Add return info for pong | Add return info for pong
| TypeScript | mit | olegsmetanin/typescript_babel_react_express,olegsmetanin/typescript_babel_react_express | ---
+++
@@ -1,6 +1,6 @@
import TEBEvent from '../../framework/common/event/TEBEvent';
-export default class PingEvent extends TEBEvent<{msg: string, delay: number}> {
+export default class PingEvent extends TEBEvent<{user: string, msg: string, delay: number}> {
static type = 'PingEvent';
type = PingEvent.typ... |
2ebaf82a51169d44b4ae0ff4e2480e7b0b2b9f9f | test/fast/config-test.ts | test/fast/config-test.ts | import * as chai from 'chai'
const expect = chai.expect
import { GitProcess } from '../../lib'
import * as os from 'os'
describe('config', () => {
it('sets http.sslBackend on Windows', async () => {
if (process.platform === 'win32') {
const result = await GitProcess.exec(['config', '--system', 'http.sslBa... | import * as chai from 'chai'
const expect = chai.expect
import { GitProcess } from '../../lib'
import * as os from 'os'
describe('config', () => {
it('sets http.sslBackend on Windows', async () => {
if (process.platform === 'win32') {
const result = await GitProcess.exec(['config', '--system', 'http.sslBa... | Add test to ensure sslCAInfo is unset | Add test to ensure sslCAInfo is unset
| TypeScript | mit | desktop/dugite,desktop/dugite,desktop/dugite | ---
+++
@@ -11,4 +11,11 @@
expect(result.stdout.trim()).to.equal('schannel')
}
})
+
+ it('unsets http.sslCAInfo on Windows', async () => {
+ if (process.platform === 'win32') {
+ const result = await GitProcess.exec(['config', '--system', 'http.sslCAInfo'], os.homedir())
+ expect(result.s... |
5cca20305a0771b7d4ce58cedfb78d6ef506290c | src/statusBar/controller.ts | src/statusBar/controller.ts | /*---------------------------------------------------------------------------------------------
* Copyright (c) Alessandro Fragnani. All rights reserved.
* Licensed under the MIT License. See License.md in the project root for license information.
*---------------------------------------------------------------------... | /*---------------------------------------------------------------------------------------------
* Copyright (c) Alessandro Fragnani. All rights reserved.
* Licensed under the MIT License. See License.md in the project root for license information.
*---------------------------------------------------------------------... | Add detection of workspace trust grant to update status bar | Add detection of workspace trust grant to update status bar
| TypeScript | mit | alefragnani/vscode-read-only-indicator,alefragnani/vscode-read-only-indicator | ---
+++
@@ -33,6 +33,13 @@
this.updateStatusBar();
}
}, null, Container.context.subscriptions);
+
+ workspace.onDidGrantWorkspaceTrust(() => {
+ this.statusBar.dispose();
+ this.statusBar = undefined;
+
+ this.statusBar = new S... |
49abb3186eebe50b16003998c71ea8440c66bc88 | packages/lesswrong/components/sunshineDashboard/SidebarHoverOver.tsx | packages/lesswrong/components/sunshineDashboard/SidebarHoverOver.tsx | import React from 'react';
import { registerComponent } from '../../lib/vulcan-lib';
import Popper from '@material-ui/core/Popper';
const styles = (theme: ThemeType): JssStyles => ({
root: {
position:"relative",
zIndex: theme.zIndexes.sidebarHoverOver,
},
hoverInfo: {
position: "relative",
backgr... | import React from 'react';
import { Components, registerComponent } from '../../lib/vulcan-lib';
const styles = (theme: ThemeType): JssStyles => ({
root: {
position:"relative",
zIndex: theme.zIndexes.sidebarHoverOver,
},
hoverInfo: {
position: "relative",
backgroundColor: theme.palette.grey[50],
... | Fix blurry text in Sunshine Sidebar hover-overs | Fix blurry text in Sunshine Sidebar hover-overs
| TypeScript | mit | Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2 | ---
+++
@@ -1,6 +1,5 @@
import React from 'react';
-import { registerComponent } from '../../lib/vulcan-lib';
-import Popper from '@material-ui/core/Popper';
+import { Components, registerComponent } from '../../lib/vulcan-lib';
const styles = (theme: ThemeType): JssStyles => ({
root: {
@@ -24,11 +23,12 @@
... |
2f28043e91b7f4dce999a9a196cb242e33473f23 | AngularJSWithTS/UseTypesEffectivelyInTS/StringsInTS/demo.ts | AngularJSWithTS/UseTypesEffectivelyInTS/StringsInTS/demo.ts | // demo.ts
"use strict";
// The stringType variable can be set to any string
let unit: string;
// The stringLiteralType can only be set to the type value
// as well as Null and Undefined, as of now
let miles: "MILES";
miles = null; // no error
miles = undefined; // no error
miles = "awesome"; // error TS2322: Type '... | // demo.ts
"use strict";
// The stringType variable can be set to any string
let unit: string = "awesome";
// The stringLiteralType can only be set to the type value
// as well as Null and Undefined, as of now
let miles: "MILES";
miles = null; // no error
miles = undefined; // no error
// miles = "awesome"; // error... | Edit value for unit. Add one more example | Edit value for unit. Add one more example
| TypeScript | mit | var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training | ---
+++
@@ -3,11 +3,12 @@
"use strict";
// The stringType variable can be set to any string
-let unit: string;
+let unit: string = "awesome";
// The stringLiteralType can only be set to the type value
// as well as Null and Undefined, as of now
let miles: "MILES";
miles = null; // no error
miles = undefine... |
8c87c70658949f82e7b769a2ce445f099f1683fe | src/app/plugins/platform/Docker/registry/getLatestPhpCliAlpineTag.ts | src/app/plugins/platform/Docker/registry/getLatestPhpCliAlpineTag.ts | import createPhpMatcher from './createPhpMatcher';
const getLatestPhpCliTag = createPhpMatcher('cli-alpine');
export default getLatestPhpCliTag;
| import createPhpMatcher from './createPhpMatcher';
const getLatestPhpCliAlpineTag = createPhpMatcher('cli-alpine');
export default getLatestPhpCliAlpineTag;
| Fix alpine function naming bug | Fix alpine function naming bug
| TypeScript | mit | forumone/generator-web-starter,forumone/generator-web-starter,forumone/generator-web-starter,forumone/generator-web-starter,forumone/generator-web-starter | ---
+++
@@ -1,5 +1,5 @@
import createPhpMatcher from './createPhpMatcher';
-const getLatestPhpCliTag = createPhpMatcher('cli-alpine');
+const getLatestPhpCliAlpineTag = createPhpMatcher('cli-alpine');
-export default getLatestPhpCliTag;
+export default getLatestPhpCliAlpineTag; |
2ffb30dc60090535f0eddcf3fe631f6cb524b824 | applications/vpn-settings/src/app/components/layout/PrivateHeader.tsx | applications/vpn-settings/src/app/components/layout/PrivateHeader.tsx | import React from 'react';
import { MainLogo, SupportDropdown, TopNavbar, Hamburger } from 'react-components';
interface Props extends React.HTMLProps<HTMLElement> {
expanded?: boolean;
onToggleExpand: () => void;
}
const PrivateHeader = ({ expanded, onToggleExpand }: Props) => {
return (
<header ... | import React from 'react';
import { MainLogo, TopNavbar, Hamburger } from 'react-components';
interface Props extends React.HTMLProps<HTMLElement> {
expanded?: boolean;
onToggleExpand: () => void;
}
const PrivateHeader = ({ expanded, onToggleExpand }: Props) => {
return (
<header className="header... | Remove SupportDropdown as Andy want | Remove SupportDropdown as Andy want
| TypeScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | ---
+++
@@ -1,5 +1,5 @@
import React from 'react';
-import { MainLogo, SupportDropdown, TopNavbar, Hamburger } from 'react-components';
+import { MainLogo, TopNavbar, Hamburger } from 'react-components';
interface Props extends React.HTMLProps<HTMLElement> {
expanded?: boolean;
@@ -12,9 +12,7 @@
... |
c0896040674b433fb5763741c053969f3a6e4acd | src/app/time/duration/duration.service.ts | src/app/time/duration/duration.service.ts | import { Injectable } from '@angular/core';
import { Observable, ReplaySubject } from 'rxjs';
import { Track, getTrack } from '../../track/track';
import { ModelService } from '../../model/model.service';
import { Model, ModelTrackEvent } from '../../model/model';
const minDuration = 1;
@Injectable()
export class Du... | import { Injectable } from '@angular/core';
import { Observable, ReplaySubject } from 'rxjs';
import { Track, getTrack } from '../../track/track';
import { ModelService } from '../../model/model.service';
import { Model, ModelTrackEvent } from '../../model/model';
const minDuration = 1;
@Injectable()
export class Du... | Extend duration if last event is a sustain | fix: Extend duration if last event is a sustain
| TypeScript | mit | nb48/chart-hero,nb48/chart-hero,nb48/chart-hero | ---
+++
@@ -32,7 +32,8 @@
events.push(...getTrack(model, track).events);
});
const lastEvent = events.sort((a, b) => b.time - a.time)[0];
- const duration = lastEvent ? lastEvent.time : minDuration;
+ const lastLength = lastEvent && (lastEvent as an... |
6ad5c542673d1c8b273c80f46a74be36f5ba0dec | src/GameObject.ts | src/GameObject.ts | import {IUpdatable} from './IUpdatable';
import {IRenderable} from './IRenderable';
/**
* A game object defines an entity in your game's world.<br>
* It can be for example the player's character, a button, etc.
*/
export class GameObject implements IUpdatable, IRenderable {
constructor() {
this.create();
}
... | import {IUpdatable} from './IUpdatable';
import {IRenderable} from './IRenderable';
import {Scene} from './Scene';
import {Game} from './Game';
/**
* A game object defines an entity in your game's world.<br>
* It can be for example the player's character, a button, etc.
*/
export class GameObject implements IUpdata... | Add scene and game ref | Add scene and game ref
| TypeScript | mit | ChibiFR/rythmoos-engine,ChibiFR/rythmoos-engine | ---
+++
@@ -1,13 +1,25 @@
import {IUpdatable} from './IUpdatable';
import {IRenderable} from './IRenderable';
+import {Scene} from './Scene';
+import {Game} from './Game';
/**
* A game object defines an entity in your game's world.<br>
* It can be for example the player's character, a button, etc.
*/
expo... |
f12927c0e3d0a3319fe0e7696af600be3843c3fc | front/react/components/header/nav-item.tsx | front/react/components/header/nav-item.tsx | import * as React from 'react';
const headerStyle: React.CSSProperties = {
color: 'white',
fontSize: '1.2em',
fontWeight: 'bold',
paddingLeft: '20px',
height: '20px',
display: 'block'
}
const NavItem = (props: { name: string, href: string }) => (
<div style={headerStyle}>
<a href={... | import * as React from 'react';
import Anchor from '../anchor';
const NavItem = (props: { text: string, href: string }) => (
<div style={headerStyle}>
<Anchor href={props.href} text={props.text} />
</div>
)
const headerStyle: React.CSSProperties = {
color: 'white',
fontSize: '1.2em',
fontW... | Change NavItem padding to right and use Anchor cpnt | Change NavItem padding to right and use Anchor cpnt
| TypeScript | mit | the-concierge/concierge,the-concierge/concierge,the-concierge/concierge,paypac/node-concierge,paypac/node-concierge,paypac/node-concierge,paypac/node-concierge | ---
+++
@@ -1,20 +1,19 @@
import * as React from 'react';
+import Anchor from '../anchor';
+
+const NavItem = (props: { text: string, href: string }) => (
+ <div style={headerStyle}>
+ <Anchor href={props.href} text={props.text} />
+ </div>
+)
const headerStyle: React.CSSProperties = {
color: 'w... |
566539727d0ca1f3cdcd790a4e48f780e9232a39 | frontend/src/component/feature/FeatureView2/FeatureMetrics/FeatureMetrics.tsx | frontend/src/component/feature/FeatureView2/FeatureMetrics/FeatureMetrics.tsx | import { useParams } from 'react-router';
import useFeature from '../../../../hooks/api/getters/useFeature/useFeature';
import MetricComponent from '../../view/metric-container';
import { useStyles } from './FeatureMetrics.styles';
import { IFeatureViewParams } from '../../../../interfaces/params';
import useUiConfig f... | import { useParams } from 'react-router';
import useFeature from '../../../../hooks/api/getters/useFeature/useFeature';
import MetricComponent from '../../view/metric-container';
import { useStyles } from './FeatureMetrics.styles';
import { IFeatureViewParams } from '../../../../interfaces/params';
import useUiConfig f... | Use V flag for new metrics component | Use V flag for new metrics component
| TypeScript | apache-2.0 | Unleash/unleash,Unleash/unleash,Unleash/unleash,Unleash/unleash | ---
+++
@@ -12,11 +12,11 @@
const { projectId, featureId } = useParams<IFeatureViewParams>();
const { feature } = useFeature(projectId, featureId);
const { uiConfig } = useUiConfig();
- const isEnterprise = uiConfig.flags.E;
+ const isNewMetricsEnabled = uiConfig.flags.V;
return (
... |
ca97842f85a569f6123f62976f35c51986ffd586 | src/app/optimizer/optimizer.component.spec.ts | src/app/optimizer/optimizer.component.spec.ts | import {
beforeEach,
beforeEachProviders,
describe,
expect,
it,
inject,
} from '@angular/core/testing';
import { ComponentFixture, TestComponentBuilder } from '@angular/compiler/testing';
import { Component } from '@angular/core';
import { By } from '@angular/platform-browser';
import { OptimizerComponent }... | import {
beforeEach,
beforeEachProviders,
describe,
expect,
it,
inject,
} from '@angular/core/testing';
import { ComponentFixture, TestComponentBuilder } from '@angular/compiler/testing';
import { Component } from '@angular/core';
import { By } from '@angular/platform-browser';
import { OptimizerComponent }... | Test optimizer component makes panels. | Test optimizer component makes panels.
| TypeScript | mit | coshx/portfolio_optimizer,coshx/portfolio_optimizer,coshx/portfolio_optimizer,coshx/portfolio_optimizer | ---
+++
@@ -19,17 +19,23 @@
builder = tcb;
}));
- it('should inject the component', inject([OptimizerComponent],
+ it('should inject the optimizer component.', inject([OptimizerComponent],
(component: OptimizerComponent) => {
expect(component).toBeTruthy();
}));
- it('should create the c... |
935791e575cd4f0ac0ab0026856d79f8eea31bfe | src/urlhandler.android.ts | src/urlhandler.android.ts |
import * as application from 'application';
import { getCallback, extractAppURL } from './urlhandler.common';
export { handleOpenURL } from './urlhandler.common';
export function handleIntent(intent: any) {
let data = intent.getData();
try {
let appURL = extractAppURL(data);
if (appURL != null... |
import * as application from 'application';
import { getCallback, extractAppURL } from './urlhandler.common';
export { handleOpenURL } from './urlhandler.common';
export function handleIntent(intent: any) {
let data = intent.getData();
try {
let appURL = extractAppURL(data);
if (appURL != null... | Resolve timing issues and clearing intent | fix(Android): Resolve timing issues and clearing intent
see #91 and making #108 obsolete
| TypeScript | mit | hypery2k/nativescript-urlhandler,hypery2k/nativescript-urlhandler,hypery2k/nativescript-urlhandler,hypery2k/nativescript-urlhandler | ---
+++
@@ -11,7 +11,13 @@
(new String(intent.getAction()).valueOf() === new String(android.content.Intent.ACTION_MAIN).valueOf()
|| new String(intent.getAction()).valueOf() === new String(android.content.Intent.ACTION_VIEW).valueOf())) {
try {
- setTimeout(()... |
6da83bcb6d0d7ee16e824eb6e11f480457135932 | app/utilities/date-service.ts | app/utilities/date-service.ts | import { Injectable } from "@angular/core";
@Injectable()
export class DateService {
constructor() {}
toMonthAndDay(date: string) {
return new Date(date).toLocaleDateString([], { month: "long", day: "numeric" });
}
toMonthDayTime(date: string) {
return new Date(date).toLocaleTimeStrin... | import { Injectable } from "@angular/core";
@Injectable()
export class DateService {
constructor() {}
toMonthAndDay(date: string) {
let monthAndDay = new Date(date);
return `${monthAndDay.toLocaleDateString([], { month: "long" })} ${monthAndDay.getUTCDate()}`;
}
toMonthDayTime(date: s... | Fix dates, they were off by 1 day because of timezones. | Fix dates, they were off by 1 day because of timezones.
| TypeScript | mit | blatzblaster/ionic-solo,blatzblaster/ionic-solo,blatzblaster/ionic-solo | ---
+++
@@ -5,10 +5,12 @@
constructor() {}
toMonthAndDay(date: string) {
- return new Date(date).toLocaleDateString([], { month: "long", day: "numeric" });
+ let monthAndDay = new Date(date);
+ return `${monthAndDay.toLocaleDateString([], { month: "long" })} ${monthAndDay.getUTCDate()... |
f6f5997a5770e4c4dbad33b49cda6511bf91a5d9 | step-release-vis/src/app/services/environment_test.ts | step-release-vis/src/app/services/environment_test.ts | import { TestBed } from '@angular/core/testing';
import { EnvironmentService } from './environment';
import { HttpClientTestingModule } from '@angular/common/http/testing';
describe('EnvironmentService', () => {
let service: EnvironmentService;
beforeEach(() => {
TestBed.configureTestingModule({
import... | import { TestBed } from '@angular/core/testing';
import { EnvironmentService } from './environment';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import {CandidateInfo} from '../models/Data';
describe('EnvironmentService', () => {
let service: EnvironmentService;
beforeEach(() => {
... | Add 2 tests for getPercentages. | Add 2 tests for getPercentages.
| TypeScript | apache-2.0 | googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020 | ---
+++
@@ -2,6 +2,7 @@
import { EnvironmentService } from './environment';
import { HttpClientTestingModule } from '@angular/common/http/testing';
+import {CandidateInfo} from '../models/Data';
describe('EnvironmentService', () => {
let service: EnvironmentService;
@@ -13,10 +14,24 @@
service = TestBe... |
14fd67f422a2bb3b2067a465b4ce7a00ff614ca6 | src/main/components/GlobalStyle.tsx | src/main/components/GlobalStyle.tsx | import { createGlobalStyle } from 'styled-components'
const GlobalStyle = createGlobalStyle`
a {
color: inherit;
}
`
export default GlobalStyle
| import { createGlobalStyle } from 'styled-components'
const GlobalStyle = createGlobalStyle`
body {
color: #DDD;
background-color: #252525;
}
a {
color: inherit;
}
`
export default GlobalStyle
| Apply global background color and text color | Apply global background color and text color
| TypeScript | mit | Sarah-Seo/Inpad,Sarah-Seo/Inpad | ---
+++
@@ -1,6 +1,10 @@
import { createGlobalStyle } from 'styled-components'
const GlobalStyle = createGlobalStyle`
+ body {
+ color: #DDD;
+ background-color: #252525;
+ }
a {
color: inherit;
} |
79ec518d1ee2ac102ef98e252af111ef9941857c | applications/account/src/app/signup/CheckoutButton.tsx | applications/account/src/app/signup/CheckoutButton.tsx | import React from 'react';
import { PAYMENT_METHOD_TYPE, PAYMENT_METHOD_TYPES } from '@proton/shared/lib/constants';
import { c } from 'ttag';
import { SubscriptionCheckResponse } from '@proton/shared/lib/interfaces';
import { PrimaryButton, PayPalButton } from '@proton/components';
import { SignupPayPal } from './int... | import React from 'react';
import { PAYMENT_METHOD_TYPE, PAYMENT_METHOD_TYPES } from '@proton/shared/lib/constants';
import { c } from 'ttag';
import { SubscriptionCheckResponse } from '@proton/shared/lib/interfaces';
import { PrimaryButton, StyledPayPalButton } from '@proton/components';
import { SignupPayPal } from ... | Use StyledPayPalButton on signup checkout | Use StyledPayPalButton on signup checkout
CP-2283
| TypeScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | ---
+++
@@ -3,7 +3,7 @@
import { c } from 'ttag';
import { SubscriptionCheckResponse } from '@proton/shared/lib/interfaces';
-import { PrimaryButton, PayPalButton } from '@proton/components';
+import { PrimaryButton, StyledPayPalButton } from '@proton/components';
import { SignupPayPal } from './interfaces';
... |
293cef59776e0958b1ad57d3f54eb2871589b90a | src/objects/maintenance_and_transport_object.ts | src/objects/maintenance_and_transport_object.ts | import {AbstractObject} from "./_abstract_object";
export class MaintenanceAndTransportObject extends AbstractObject {
public getType(): string {
return "TOBJ";
}
public getArea(): string | undefined {
if (this.getFiles().length === 0) {
return undefined;
}
const xml = this.getFiles()[0]... | import {AbstractObject} from "./_abstract_object";
export class MaintenanceAndTransportObject extends AbstractObject {
public getType(): string {
return "TOBJ";
}
public getArea(): string | undefined {
if (this.getFiles().length === 0) {
return undefined;
}
const xml = this.getFiles()[0]... | Adjust AREA regex for reserved namespaces | Adjust AREA regex for reserved namespaces
Fixes #410 | TypeScript | mit | larshp/abaplint,larshp/abapOpenChecksJS,larshp/abapOpenChecksJS,larshp/abaplint,larshp/abaplint,larshp/abaplint,larshp/abapOpenChecksJS | ---
+++
@@ -13,7 +13,7 @@
const xml = this.getFiles()[0].getRaw();
- const result = xml.match(/<AREA>(\w+)<\/AREA>/);
+ const result = xml.match(/<AREA>([\w\/]+)<\/AREA>/);
if (result) {
return result[1];
} else { |
e9e0afeb5bb0702e458efdd8e455539d7ceb8490 | src/rancher/cluster-actions/CreateNodeAction.ts | src/rancher/cluster-actions/CreateNodeAction.ts | import { translate } from '@waldur/i18n';
import { $uibModal } from '@waldur/modal/services';
import { ActionContext, ResourceAction } from '@waldur/resource/actions/types';
export function createNodeAction(ctx: ActionContext): ResourceAction {
return {
name: 'create_node',
title: translate('Create node'),
... | import { translate } from '@waldur/i18n';
import { $uibModal } from '@waldur/modal/services';
import { ActionContext, ResourceAction } from '@waldur/resource/actions/types';
export function createNodeAction(ctx: ActionContext): ResourceAction {
return {
name: 'create_node',
title: translate('Create node'),
... | Add icon for node create action. | Add icon for node create action.
| TypeScript | mit | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | ---
+++
@@ -6,6 +6,7 @@
return {
name: 'create_node',
title: translate('Create node'),
+ iconClass: 'fa fa-plus',
type: 'callback',
tab: 'nodes',
execute: () => { |
5dcfc57e4f868bd24abcfbd3aee1d741c25e631e | types/react-scroll-into-view-if-needed/react-scroll-into-view-if-needed-tests.tsx | types/react-scroll-into-view-if-needed/react-scroll-into-view-if-needed-tests.tsx | import * as React from 'react';
import ReactScrollIntoViewIfNeeded from 'react-scroll-into-view-if-needed';
() => (
<ReactScrollIntoViewIfNeeded
active={true}
options={{
block: 'start',
scrollMode: 'if-needed',
skipOverflowHiddenElements: true
}}
... | import * as React from 'react';
import ReactScrollIntoViewIfNeeded from 'react-scroll-into-view-if-needed';
const validOptions = {
block: 'start',
scrollMode: 'if-needed',
skipOverflowHiddenElements: true
};
const invalidOptions = {
invalidOption: 'foobar'
};
() => (
<ReactScrollIntoViewIfNeeded
... | Write better failing options test | [react-scroll-into-view-if-needed] Write better failing options test
| TypeScript | mit | dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,georgemarshall/DefinitelyTyped,mcliment/DefinitelyTyped,borisyankov/DefinitelyTyped | ---
+++
@@ -1,5 +1,15 @@
import * as React from 'react';
import ReactScrollIntoViewIfNeeded from 'react-scroll-into-view-if-needed';
+
+const validOptions = {
+ block: 'start',
+ scrollMode: 'if-needed',
+ skipOverflowHiddenElements: true
+};
+
+const invalidOptions = {
+ invalidOption: 'foobar'
+};
... |
0dbd55f505f8afd0cd7f1256bb7ed5156fbe157d | lib/settings/DefaultSettings.ts | lib/settings/DefaultSettings.ts | import {VoidHook} from "../tasks/Hooks";
export default {
projectType: "frontend",
port: 5000,
liveReloadPort: 35729,
distribution: "dist",
targets: "targets",
bootstrapperStyles: "",
watchStyles: [
"styles"
],
test: "test/**/*.ts",
images: "images",
assets: "assets... | import {VoidHook} from "../tasks/Hooks";
export default {
projectType: "frontend",
port: 5000,
liveReloadPort: 35729,
distribution: "dist",
targets: "targets",
bootstrapperStyles: "",
watchStyles: [
"styles"
],
test: "test/**/*.ts",
images: "images",
assets: "assets... | Add typescript path in default settings | Add typescript path in default settings
| TypeScript | mit | mtfranchetto/smild,mtfranchetto/smild,mtfranchetto/smild | ---
+++
@@ -23,5 +23,6 @@
}
},
preBuild: VoidHook,
- postBuild: VoidHook
+ postBuild: VoidHook,
+ typescriptPath: require.resolve("typescript")
} |
89316cafcc98edca00d500f52fc71e3b4ead665e | app/utils/ItemUtils.ts | app/utils/ItemUtils.ts | /// <reference path="../References.d.ts"/>
import Dispatcher from '../dispatcher/Dispatcher';
import * as ItemTypes from '../types/ItemTypes';
import * as ItemActions from '../actions/ItemActions';
export function init(): Promise<string> {
return new Promise<string>((resolve): void => {
let data: ItemTypes.Item[] =... | /// <reference path="../References.d.ts"/>
import * as ItemTypes from '../types/ItemTypes';
import * as ItemActions from '../actions/ItemActions';
export function init(): Promise<string> {
return new Promise<string>((resolve): void => {
let data: ItemTypes.Item[] = [
{
id: '1001',
content: 'Item One',
... | Remove unused import in item utils | Remove unused import in item utils
| TypeScript | mit | zachhuff386/react-boilerplate,zachhuff386/react-boilerplate | ---
+++
@@ -1,5 +1,4 @@
/// <reference path="../References.d.ts"/>
-import Dispatcher from '../dispatcher/Dispatcher';
import * as ItemTypes from '../types/ItemTypes';
import * as ItemActions from '../actions/ItemActions';
|
ab953e5dec27257b0141b4efda29489fd75f921c | src/shell/CommandExpander.ts | src/shell/CommandExpander.ts | import {Aliases} from "../Aliases";
import {scan, Token, concatTokens} from "./Scanner";
export function expandAliases(tokens: Token[], aliases: Aliases): Token[] {
const commandWordToken = tokens[0];
const argumentTokens = tokens.slice(1);
const alias: string = aliases.get(commandWordToken.value);
if... | import {Aliases} from "../Aliases";
import {scan, Token, concatTokens} from "./Scanner";
export function expandAliases(tokens: Token[], aliases: Aliases): Token[] {
if (tokens.length === 0) {
return [];
}
const commandWordToken = tokens[0];
const argumentTokens = tokens.slice(1);
const ali... | Add a shortcut for expandAliases. | Add a shortcut for expandAliases.
| TypeScript | mit | j-allard/black-screen,railsware/upterm,drew-gross/black-screen,black-screen/black-screen,vshatskyi/black-screen,vshatskyi/black-screen,drew-gross/black-screen,drew-gross/black-screen,drew-gross/black-screen,shockone/black-screen,black-screen/black-screen,railsware/upterm,vshatskyi/black-screen,black-screen/black-screen... | ---
+++
@@ -2,6 +2,10 @@
import {scan, Token, concatTokens} from "./Scanner";
export function expandAliases(tokens: Token[], aliases: Aliases): Token[] {
+ if (tokens.length === 0) {
+ return [];
+ }
+
const commandWordToken = tokens[0];
const argumentTokens = tokens.slice(1);
const al... |
f0b39ce890e8f31523739a68d317b24df79fdb76 | src/Umbraco.Tests.AcceptanceTest/cypress/integration/Settings/languages.ts | src/Umbraco.Tests.AcceptanceTest/cypress/integration/Settings/languages.ts | /// <reference types="Cypress" />
context('Languages', () => {
beforeEach(() => {
cy.umbracoLogin(Cypress.env('username'), Cypress.env('password'));
});
it('Add language', () => {
const name = "Kyrgyz (Kyrgyzstan)"; // Must be an option in the select box
cy.umbracoEnsureLanguageNameNotExists(name)... | /// <reference types="Cypress" />
context('Languages', () => {
beforeEach(() => {
cy.umbracoLogin(Cypress.env('username'), Cypress.env('password'));
});
it('Add language', () => {
// For some reason the languages to chose fom seems to be translated differently than normal, as an example:
// My s... | Align 'Add language' test to netcore | Align 'Add language' test to netcore
| TypeScript | mit | leekelleher/Umbraco-CMS,dawoe/Umbraco-CMS,mattbrailsford/Umbraco-CMS,umbraco/Umbraco-CMS,arknu/Umbraco-CMS,umbraco/Umbraco-CMS,dawoe/Umbraco-CMS,KevinJump/Umbraco-CMS,madsoulswe/Umbraco-CMS,bjarnef/Umbraco-CMS,leekelleher/Umbraco-CMS,marcemarc/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,robertjf/Umbraco-CMS,abryukhov/Umb... | ---
+++
@@ -6,7 +6,10 @@
});
it('Add language', () => {
- const name = "Kyrgyz (Kyrgyzstan)"; // Must be an option in the select box
+ // For some reason the languages to chose fom seems to be translated differently than normal, as an example:
+ // My system is set to EN (US), but most languages ... |
10b75c1a86cc778186e34c0dec4afd7d3885c09a | app/hero-detail.component.ts | app/hero-detail.component.ts | import { Component, OnInit } from '@angular/core';
import { RouteParams } from '@angular/router-deprecated';
import { PolymerElement } from 'vaadin-ng2-polymer/polymer-element';
import { Hero } from './hero';
import { HeroService } from './hero.service';
@Component({
selector: 'my-hero-detail',
template: `
<d... | import { Component, OnInit } from '@angular/core';
import { RouteParams } from '@angular/router-deprecated';
import { PolymerElement } from 'vaadin-ng2-polymer/polymer-element';
import { Hero } from './hero';
import { HeroService } from './hero.service';
@Component({
selector: 'my-hero-detail',
template: `
<d... | Change hero name input font size back to default | Change hero name input font size back to default
| TypeScript | mit | platosha/angular2-polymer-elements-quickstart,vaibhavnitya/meethi,vaibhavnitya/meethi,platosha/angular2-polymer-elements-quickstart,platosha/angular2-polymer-elements-quickstart,vaibhavnitya/meethi | ---
+++
@@ -22,21 +22,6 @@
display: block;
padding: 16px;
}
-
- paper-input[label="Name"] {
- --paper-input-container-label: {
- @apply(--paper-font-display1);
- transition: transform 0.25s, width 0.25s, font 0.25s;
- };
-
- --paper-input-container-label-floating: {
... |
a5bf3cfe912213fed94751368f51bb9aa96a971f | src/app/_core/models/player-state.ts | src/app/_core/models/player-state.ts | import { Video } from './video.model';
import { PlayerSide } from './player-side';
export interface PlayerState {
side: PlayerSide;
player: YT.Player;
playerId: string;
video: Video;
isReady: boolean;
state: number;
volume: number;
speed: number;
} | import { Video } from './video.model';
import { PlayerSide } from './player-side';
export interface PlayerState {
side: PlayerSide;
playerId: string;
video: Video;
isReady: boolean;
state: number;
volume: number;
speed: number;
} | Remove player in PlayerState interface | Remove player in PlayerState interface
| TypeScript | mit | radiium/turntable,radiium/turntable,radiium/turntable | ---
+++
@@ -3,7 +3,6 @@
export interface PlayerState {
side: PlayerSide;
- player: YT.Player;
playerId: string;
video: Video;
isReady: boolean; |
05cf69c4f982b91cda455d60955d9021a13abee3 | src/interfaces.ts | src/interfaces.ts | export interface Attachment {
id?: string
content_type: string
data: string
}
export interface CouchifyOptions {
id?: string
baseDocumentsDir?: string
attachmentsDir?: string
babelPlugins?: any[]
babelPresets?: any[]
filtersDir?: string
listsDir?: string
showsDir?: string
... | export interface Attachment {
id?: string
content_type: string
data: string
}
export interface CouchifyOptions {
id?: string
baseDocumentsDir?: string
attachmentsDir?: string
babelPlugins?: any[]
babelPresets?: any[]
filtersDir?: string
listsDir?: string
showsDir?: string
... | Replace overload signature with union for TS-3.x compat | Replace overload signature with union for TS-3.x compat
| TypeScript | mit | wearereasonablepeople/couchify,wearereasonablepeople/couchify | ---
+++
@@ -39,9 +39,8 @@
_attachments?: { [key: string]: Attachment }
commons?: { [key: string]: string }
views?: {
- lib?: { [key: string]: string }
[key: string]: string | { [key: string]: string }
- }
+ } & { lib?: { [key: string]: string } }
shows?: { [key: string]: stri... |
72cc0ab8c76f26573399c713d8845f0110d6a044 | pages/_app.tsx | pages/_app.tsx | import * as React from 'react'
import App, { Container } from 'next/app';
import Head from 'next/head'
import 'normalize.css/normalize.css'
// A custom app to support importing CSS files globally
class MyApp extends App {
public render(): JSX.Element {
const { Component, pageProps } = this.props
return (
... | import { Fragment } from 'react'
import App, { Container } from 'next/app';
import Head from 'next/head'
import 'normalize.css/normalize.css'
// A custom app to support importing CSS files globally
class MyApp extends App {
public render(): JSX.Element {
const { Component, pageProps } = this.props
return (
... | Replace deprecated Container with Fragment | Replace deprecated Container with Fragment
| TypeScript | mit | JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk | ---
+++
@@ -1,4 +1,4 @@
-import * as React from 'react'
+import { Fragment } from 'react'
import App, { Container } from 'next/app';
import Head from 'next/head'
import 'normalize.css/normalize.css'
@@ -9,7 +9,7 @@
public render(): JSX.Element {
const { Component, pageProps } = this.props
return (
- ... |
e4088d2517f1d0dd07796c30a25cc646a0eb19ce | client/src/app/plants/bed.component.spec.ts | client/src/app/plants/bed.component.spec.ts | import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { Plant } from './plant';
import { PlantListService } from './plant-list.service';
import { Observable } from 'rxjs';
import { ActivatedRoute, Router } from '@angular/router';
import { FormsModule } from '@angular/forms';
import { RouterTe... | Create framework for testing BedComponent | Create framework for testing BedComponent
| TypeScript | mit | UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-... | ---
+++
@@ -0,0 +1,99 @@
+import { ComponentFixture, TestBed, async } from '@angular/core/testing';
+import { Plant } from './plant';
+import { PlantListService } from './plant-list.service';
+import { Observable } from 'rxjs';
+import { ActivatedRoute, Router } from '@angular/router';
+import { FormsModule } from '@... | |
6f5f7574798517cf61ea10f41d9a49fd10da74ad | extensions/markdown/src/commands/revealLine.ts | extensions/markdown/src/commands/revealLine.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 fspath for reveal line to fix drive letter case differences | Use fspath for reveal line to fix drive letter case differences
| TypeScript | mit | rishii7/vscode,DustinCampbell/vscode,eamodio/vscode,microlv/vscode,landonepps/vscode,0xmohit/vscode,the-ress/vscode,cleidigh/vscode,mjbvz/vscode,microlv/vscode,eamodio/vscode,cleidigh/vscode,mjbvz/vscode,Microsoft/vscode,the-ress/vscode,hoovercj/vscode,joaomoreno/vscode,eamodio/vscode,cleidigh/vscode,Microsoft/vscode,m... | ---
+++
@@ -12,7 +12,7 @@
public readonly id = '_markdown.revealLine';
public constructor(
- private logger: Logger
+ private readonly logger: Logger
) { }
public execute(uri: string, line: number) {
@@ -20,7 +20,7 @@
this.logger.log('revealLine', { uri, sourceUri: sourceUri.toString(), line });
... |
e20b24a50ccda660e5da09bf1dc99addc11de67b | src/animation/AnimationClip.d.ts | src/animation/AnimationClip.d.ts | import { KeyframeTrack } from './KeyframeTrack';
import { Bone } from './../objects/Bone';
import { MorphTarget } from '../core/Geometry';
import { AnimationBlendMode } from '../constants';
export class AnimationClip {
constructor( name?: string, duration?: number, tracks?: KeyframeTrack[], blendMode?: AnimationBlen... | import { KeyframeTrack } from './KeyframeTrack';
import { Bone } from './../objects/Bone';
import { MorphTarget } from '../core/Geometry';
import { AnimationBlendMode } from '../constants';
export class AnimationClip {
constructor( name?: string, duration?: number, tracks?: KeyframeTrack[], blendMode?: AnimationBlen... | Fix PARAMETER ERROR of AnimationClip.toJSON() | Fix PARAMETER ERROR of AnimationClip.toJSON()
| TypeScript | mit | mrdoob/three.js,kaisalmen/three.js,makc/three.js.fork,aardgoose/three.js,looeee/three.js,mrdoob/three.js,donmccurdy/three.js,donmccurdy/three.js,Liuer/three.js,jpweeks/three.js,aardgoose/three.js,06wj/three.js,jpweeks/three.js,WestLangley/three.js,gero3/three.js,greggman/three.js,WestLangley/three.js,kaisalmen/three.js... | ---
+++
@@ -45,6 +45,6 @@
animation: any,
bones: Bone[]
): AnimationClip;
- static toJSON(): any;
+ static toJSON( json: any): any;
} |
23d24a47df06ba1efb26d63af7edbc52d36e4d56 | src/join-arrays.ts | src/join-arrays.ts | import { cloneDeep, isFunction, isPlainObject, mergeWith } from "lodash";
import { Customize, Key } from "./types";
const isArray = Array.isArray;
export default function joinArrays({
customizeArray,
customizeObject,
key,
}: {
customizeArray?: Customize;
customizeObject?: Customize;
key?: Key;
} = {}) {
... | import { cloneDeep, isPlainObject, mergeWith } from "lodash";
import { Customize, Key } from "./types";
const isArray = Array.isArray;
export default function joinArrays({
customizeArray,
customizeObject,
key,
}: {
customizeArray?: Customize;
customizeObject?: Customize;
key?: Key;
} = {}) {
return func... | Drop dependency on lodash isFunction | refactor: Drop dependency on lodash isFunction
Related to #134.
| TypeScript | mit | survivejs/webpack-merge,survivejs/webpack-merge | ---
+++
@@ -1,4 +1,4 @@
-import { cloneDeep, isFunction, isPlainObject, mergeWith } from "lodash";
+import { cloneDeep, isPlainObject, mergeWith } from "lodash";
import { Customize, Key } from "./types";
const isArray = Array.isArray;
@@ -53,3 +53,10 @@
return b;
};
}
+
+// https://stackoverflow.com/a/73... |
dc50bb0b6c4c7b370564920d0fe7942023187a3f | src/lib/Scenes/Map/__tests__/GlobalMap-tests.tsx | src/lib/Scenes/Map/__tests__/GlobalMap-tests.tsx | import { CityFixture } from "lib/__fixtures__/CityFixture"
import { renderRelayTree } from "lib/tests/renderRelayTree"
import { graphql } from "react-relay"
import { GlobalMapContainer } from "../GlobalMap"
jest.unmock("react-relay")
jest.mock("@mapbox/react-native-mapbox-gl", () => ({
StyleSheet: {
create: jest... | import { CityFixture } from "lib/__fixtures__/CityFixture"
import { renderRelayTree } from "lib/tests/renderRelayTree"
import { graphql } from "react-relay"
import { GlobalMapContainer } from "../GlobalMap"
jest.unmock("react-relay")
jest.mock("@mapbox/react-native-mapbox-gl", () => ({
StyleSheet: {
create: jest... | Fix console log about a component not rendering anything | [test] Fix console log about a component not rendering anything
| TypeScript | mit | artsy/emission,artsy/emission,artsy/eigen,artsy/eigen,artsy/emission,artsy/eigen,artsy/emission,artsy/eigen,artsy/eigen,artsy/emission,artsy/eigen,artsy/emission,artsy/eigen,artsy/emission | ---
+++
@@ -13,7 +13,7 @@
InterpolationMode: {
Exponential: jest.fn(),
},
- MapView: jest.fn(),
+ MapView: () => null,
setAccessToken: jest.fn(),
UserTrackingModes: jest.fn(),
})) |
e4ef34614fbc21841db14900dc46cba4b3e47c3e | src/helper/logger.ts | src/helper/logger.ts | import appRoot from 'app-root-path';
import { createLogger, transports, format } from 'winston';
const { combine, timestamp, colorize } = format;
// instantiate a new Winston Logger with the settings defined above
const logger = createLogger({
transports: [
new (transports.Console)({
level: process.env.NODE_ENV... | import appRoot from 'app-root-path';
import { createLogger, transports, format } from 'winston';
const { combine, timestamp, colorize } = format;
// instantiate a new Winston Logger with the settings defined above
const isProductionMode = process.env.NODE_ENV === 'production';
let level = 'debug';
let logFormat = co... | Remove color from production logs | Remove color from production logs
| TypeScript | mit | schulcloud/node-notification-service,schulcloud/node-notification-service,schulcloud/node-notification-service | ---
+++
@@ -4,16 +4,28 @@
// instantiate a new Winston Logger with the settings defined above
+const isProductionMode = process.env.NODE_ENV === 'production';
+
+let level = 'debug';
+let logFormat = combine(
+ timestamp(),
+ colorize(),
+ format.simple(),
+);
+
+if (isProductionMode) {
+ level = 'error';
+ logF... |
3db0a1efbd280bf7bdc3f4600fdee87719708ed8 | src/components/UISrefActive.tsx | src/components/UISrefActive.tsx | import {Component, PropTypes, cloneElement} from 'react';
import * as classNames from 'classnames';
import UIRouterReact, { UISref } from '../index';
import {find} from '../utils';
export class UISrefActive extends Component<any,any> {
uiSref;
static propTypes = {
class: PropTypes.string.isRequired,
... | import {Component, PropTypes, cloneElement, ValidationMap} from 'react';
import * as classNames from 'classnames';
import UIRouterReact, { UISref } from '../index';
import {UIViewAddress} from "./UIView";
import {find} from '../utils';
export interface IProps {
class?: string;
children?: any;
}
export class U... | Support active state checking relative to parent UIView | fix(UISrefAcive): Support active state checking relative to parent UIView
chore(UISrefActive): add Props typings (TS)
| TypeScript | mit | ui-router/react,ui-router/react | ---
+++
@@ -1,9 +1,15 @@
-import {Component, PropTypes, cloneElement} from 'react';
+import {Component, PropTypes, cloneElement, ValidationMap} from 'react';
import * as classNames from 'classnames';
import UIRouterReact, { UISref } from '../index';
+import {UIViewAddress} from "./UIView";
import {find} from '../u... |
8ec886ef728c40162a5ef812aadbd2424333705b | src/fe/components/PathDetailDisplay/PrerequisiteBox/FundBox.tsx | src/fe/components/PathDetailDisplay/PrerequisiteBox/FundBox.tsx | import * as React from 'react'
import data from '../../../../data'
import {FundPrereq} from "../../../../definitions/Prerequisites/FundPrereq"
function stringifyCondition(condition: any) {
if (condition.familyMember) {
return ` if you have ${condition.familyMember} family members`
}
}
const FundBox =... | import * as React from 'react'
import data from '../../../../data'
import {FundPrereq} from "../../../../definitions/Prerequisites/FundPrereq"
function stringifyCondition(condition: any) {
if (condition.familyMember) {
return ` if you have ${condition.familyMember} family members`
}
}
const FundBox =... | Add commata to currency numbers | Add commata to currency numbers
Signed-off-by: Andy Shu <d9a5ae79e0620530e640970c782273ccd89702f2@gmail.com>
| TypeScript | agpl-3.0 | wikimigrate/wikimigrate,wikimigrate/wikimigrate,wikimigrate/wikimigrate,wikimigrate/wikimigrate | ---
+++
@@ -19,7 +19,10 @@
<div key={index}>
{data.common.currencies[scheme.fund.currencyId].code}
{" "}
- {scheme.fund.value}
+ {scheme.fund.value.toLocaleString(data.app.lang, {
+... |
ba54f7db4ec57d4b30cd8f3cfd9dea27dcaa74cb | test/test_index.ts | test/test_index.ts | process.env.FRONTEND_URL = "dummy"
process.env.SESSION_SECRET = "dummy"
process.env.TWITTER_CONSUMER_KEY = "dummy"
process.env.TWITTER_CONSUMER_SECRET = "dummy"
process.env.TWITTER_CALLBACK_URL = "dummy"
import * as request from "supertest"
import "../server/index"
import * as net from 'net'
describe("index", () => {... | process.env.PORT = 9090
process.env.FRONTEND_URL = "dummy"
process.env.SESSION_SECRET = "dummy"
process.env.TWITTER_CONSUMER_KEY = "dummy"
process.env.TWITTER_CONSUMER_SECRET = "dummy"
process.env.TWITTER_CALLBACK_URL = "dummy"
import * as request from "supertest"
import "../server/index"
import * as net from 'net'
d... | Use port 9090 on test | Use port 9090 on test
| TypeScript | mit | sketchglass/respass,sketchglass/respass,sketchglass/respass,sketchglass/respass | ---
+++
@@ -1,3 +1,4 @@
+process.env.PORT = 9090
process.env.FRONTEND_URL = "dummy"
process.env.SESSION_SECRET = "dummy"
process.env.TWITTER_CONSUMER_KEY = "dummy"
@@ -9,8 +10,8 @@
import * as net from 'net'
describe("index", () => {
- it("start server listening at port 8080", done => {
- let client = net.... |
5f28d53065dcde600c5385297849ef4cfaaa8717 | src/notCommand.ts | src/notCommand.ts | import * as vsc from 'vscode'
import * as ts from 'typescript'
import { invertExpression } from './utils/invert-expression'
export const NOT_COMMAND = 'complete.notTemplate'
export function notCommand (editor: vsc.TextEditor, position: vsc.Position, suffix: string, expressions: ts.BinaryExpression[]) {
retur... | import * as vsc from 'vscode'
import * as ts from 'typescript'
import { invertExpression } from './utils/invert-expression'
export const NOT_COMMAND = 'complete.notTemplate'
export function notCommand(editor: vsc.TextEditor, position: vsc.Position, suffix: string, expressions: ts.BinaryExpression[]) {
return... | Fix error when calling .not command for complex multiline expressions | Fix error when calling .not command for complex multiline expressions
Range was still being calculated using the old way instead of node location
| TypeScript | mit | ipatalas/vscode-postfix-ts,ipatalas/vscode-postfix-ts | ---
+++
@@ -4,7 +4,7 @@
export const NOT_COMMAND = 'complete.notTemplate'
-export function notCommand (editor: vsc.TextEditor, position: vsc.Position, suffix: string, expressions: ts.BinaryExpression[]) {
+export function notCommand(editor: vsc.TextEditor, position: vsc.Position, suffix: string, expressions: ts.... |
5817d881e9d43855e7efe092ffa033d771a0c2b0 | app/shared/object.ts | app/shared/object.ts | import { Field } from './field';
import { File } from './file';
export class Object{
id: number;
base_path: string;
input_file: string;
path: string;
title: string;
headers: string[];
metadata: Field[];
files: File[];
metadataHash: string;
productionNotes: string;
getField(name: string): Field {... | import { Field } from './field';
import { File } from './file';
export class Object{
id: number;
base_path: string;
input_file: string;
path: string;
title: string;
headers: string[];
metadata: Field[];
files: File[];
metadataHash: string;
productionNotes: string;
getField(name: string): Field {... | Fix error in validation check | Fix error in validation check
| TypeScript | mit | uhlibraries-digital/brays,uhlibraries-digital/brays,uhlibraries-digital/brays | ---
+++
@@ -30,7 +30,7 @@
metadata.map &&
metadata.map.obligation === 'required' &&
metadata.value === '' &&
- !metadata.map.hidden);
+ metadata.map.visible);
});
return requiredMetadata.length === 0; |
8ca694689acdfd5e0ca681c4e8975a89a535daef | src/ng-chat/core/group.ts | src/ng-chat/core/group.ts | import { Guid } from "./guid";
import { User } from "./user";
import { ChatParticipantStatus } from "./chat-participant-status.enum";
import { IChatParticipant } from "./chat-participant";
import { ChatParticipantType } from "./chat-participant-type.enum";
export class Group implements IChatParticipant
{
construct... | import { Guid } from "./guid";
import { User } from "./user";
import { ChatParticipantStatus } from "./chat-participant-status.enum";
import { IChatParticipant } from "./chat-participant";
import { ChatParticipantType } from "./chat-participant-type.enum";
export class Group implements IChatParticipant
{
construct... | Remove unnecessary additional constructor argument on Group class | Remove unnecessary additional constructor argument on Group class
| TypeScript | mit | rpaschoal/ng-chat,rpaschoal/ng-chat,rpaschoal/ng-chat | ---
+++
@@ -6,7 +6,7 @@
export class Group implements IChatParticipant
{
- constructor(participants: User[], currentUserDisplayName: string)
+ constructor(participants: User[])
{
this.chattingTo = participants;
this.status = ChatParticipantStatus.Online; |
537d48ef943bfb6dd0dd9996eee5a7c8c0ac3f79 | src/main/js/formatter/number.ts | src/main/js/formatter/number.ts | import {Formatter} from './formatter';
/**
* @hidden
*/
export class NumberFormatter implements Formatter<number> {
private digits_: number;
constructor(digits: number) {
this.digits_ = digits;
}
get digits(): number {
return this.digits_;
}
public format(value: number): string {
return value.toFixed(... | import {Formatter} from './formatter';
/**
* @hidden
*/
export class NumberFormatter implements Formatter<number> {
private digits_: number;
constructor(digits: number) {
this.digits_ = digits;
}
get digits(): number {
return this.digits_;
}
public format(value: number): string {
return value.toFixe... | Fix error on Safari: toFixed() argument must be between 0 and 20 | Fix error on Safari: toFixed() argument must be between 0 and 20
| TypeScript | mit | cocopon/tweakpane,cocopon/tweakpane,cocopon/tweakpane | ---
+++
@@ -15,6 +15,6 @@
}
public format(value: number): string {
- return value.toFixed(this.digits_);
+ return value.toFixed(Math.max(Math.min(this.digits_, 20), 0));
}
} |
46df7c93a66b315fdd7807124b4fb64a1640188e | src/routes.tsx | src/routes.tsx | import { RouteConfig } from "react-router-config";
import Layout from "./components/Layout";
import GitHubSearchLayout from "./example/components/GitHubSearchLayout";
import Main from "./example/components/Main";
import About from "./example/components/About";
const routeConfig: RouteConfig[] = [
{
compone... | import { RouteConfig } from "react-router-config";
import Layout from "./components/Layout";
import GitHubSearchLayout from "./example/components/GitHubSearchLayout";
import Main from "./example/components/Main";
import About from "./example/components/About";
const routeConfig: RouteConfig[] = [
{
compone... | Add username param to user search route | Add username param to user search route
| TypeScript | mit | lith-light-g/universal-react-redux-typescript-starter-kit,lith-light-g/universal-react-redux-typescript-starter-kit | ---
+++
@@ -14,6 +14,7 @@
path: "/about"
}, {
component: Main,
+ path: "/:username?"
}]
}]
} |
cce77e22eb4e32bfd19f593b6c4286e209988558 | tools/env/base.ts | tools/env/base.ts | import { EnvConfig } from './env-config.interface';
const BaseConfig: EnvConfig = {
// Sample API url
API: 'https://demo.com',
RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.15.0',
RELEASEVERSION: '0.15.0'
};
export = BaseConfig;
| import { EnvConfig } from './env-config.interface';
const BaseConfig: EnvConfig = {
// Sample API url
API: 'https://demo.com',
RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.15.1',
RELEASEVERSION: '0.15.1'
};
export = BaseConfig;
| Update release version to 0.15.1. | Update release version to 0.15.1.
| TypeScript | mit | nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website | ---
+++
@@ -3,8 +3,8 @@
const BaseConfig: EnvConfig = {
// Sample API url
API: 'https://demo.com',
- RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.15.0',
- RELEASEVERSION: '0.15.0'
+ RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.15.1',
+ RELEASEVERSION: '0.15... |
f5d97f4fedc941255ab98da3a52411f6d6f70c5f | tools/env/prod.ts | tools/env/prod.ts | import {EnvConfig} from './env-config.interface';
const ProdConfig: EnvConfig = {
ENV: 'PROD',
API: 'https://ne8nefmm61.execute-api.us-east-1.amazonaws.com/v1',
AWS_REGION: 'us-east-1',
COGNITO_USERPOOL: 'us-east-1_0UqEwkU0H',
COGNITO_IDENTITYPOOL: 'us-east-1:38c1785e-4101-4eb4-b489-6fe8608406d0',
COGNITO_... | import {EnvConfig} from './env-config.interface';
const ProdConfig: EnvConfig = {
ENV: 'PROD',
API: 'https://ne8nefmm61.execute-api.us-east-1.amazonaws.com/v1',
AWS_REGION: 'us-east-1',
COGNITO_USERPOOL: 'us-east-1_0UqEwkU0H',
COGNITO_IDENTITYPOOL: 'us-east-1:38c1785e-4101-4eb4-b489-6fe8608406d0',
COGNITO_... | Add in Prod Alpha Endpoints | Add in Prod Alpha Endpoints
| TypeScript | mit | formigio/angular-frontend,formigio/angular-frontend,formigio/angular-frontend | ---
+++
@@ -6,7 +6,9 @@
AWS_REGION: 'us-east-1',
COGNITO_USERPOOL: 'us-east-1_0UqEwkU0H',
COGNITO_IDENTITYPOOL: 'us-east-1:38c1785e-4101-4eb4-b489-6fe8608406d0',
- COGNITO_CLIENT_ID: '1nupbfn12bgmra4ueie0dqagnv'
+ COGNITO_CLIENT_ID: '1nupbfn12bgmra4ueie0dqagnv',
+ GOOGLE_CLIENT_ID: '733735566798-5ob9fijml... |
a604ae51d4d3aeedcf8036971818146a5595642b | front_end/sdk/SharedArrayBufferTransferIssue.ts | front_end/sdk/SharedArrayBufferTransferIssue.ts | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {ls} from '../common/common.js'; // eslint-disable-line rulesdir/es_modules_import
import {Issue, IssueCategory, IssueKind, MarkdownIssueDescript... | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {ls} from '../common/common.js'; // eslint-disable-line rulesdir/es_modules_import
import {Issue, IssueCategory, IssueKind, MarkdownIssueDescript... | Update link for SAB usage | Update link for SAB usage
Bug: chromium:1051466
Change-Id: I763a78101cd1b397b3b1eb7176ca359821623fac
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2637619
Reviewed-by: Wolfgang Beyer <573aa99bb19da47d816981118f95c945310dd3f4@chromium.org>
Commit-Queue: Sigurd Schneider <f04d242e1... | TypeScript | bsd-3-clause | ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend | ---
+++
@@ -32,7 +32,10 @@
file: 'issues/descriptions/sharedArrayBufferTransfer.md',
substitutions: undefined,
issueKind: IssueKind.BreakingChange,
- links: [{link: 'https://web.dev/enabling-shared-array-buffer/', linkTitle: ls`Enabling Shared Array Buffer`}],
+ links: [{
+ link:... |
2432a135e948cb869aba5edb044f8f06745f2026 | packages/components/components/toolbar/ToolbarButton.tsx | packages/components/components/toolbar/ToolbarButton.tsx | import React, { ButtonHTMLAttributes, ReactNode } from 'react';
import { classnames } from '../../helpers/component';
import Icon, { Props as IconProps } from '../icon/Icon';
import { noop } from 'proton-shared/lib/helpers/function';
import { Tooltip } from '../..';
interface Props extends ButtonHTMLAttributes<HTMLBut... | import React, { ButtonHTMLAttributes, ReactNode } from 'react';
import { classnames } from '../../helpers/component';
import Icon, { Props as IconProps } from '../icon/Icon';
import { noop } from 'proton-shared/lib/helpers/function';
import { Tooltip } from '../..';
interface Props extends ButtonHTMLAttributes<HTMLBut... | Add Alt text to toolbar button icon | Add Alt text to toolbar button icon
| TypeScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | ---
+++
@@ -22,9 +22,9 @@
{...rest}
>
{typeof icon === 'string' ? (
- <Icon name={icon} className="toolbar-icon mauto" />
+ <Icon alt={title} name={icon} className="toolbar-icon mauto" />
) : (
- <... |
b1e11d8d6921ec937580eb0ccd2cee7fa8e3f534 | utils/get-city.ts | utils/get-city.ts | export default function getCity(address: any, name: string) {
for (let prop of ['city', 'town', 'village', 'hamlet']) {
if (address.hasOwnProperty(prop))
return address[prop];
}
return name;
};
| export default function getCity(address: any, name: string) {
for (let prop of ['city', 'town', 'village', 'hamlet', 'county']) {
if (address.hasOwnProperty(prop))
return address[prop];
}
return name;
};
| Return county if city not found | Return county if city not found
| TypeScript | mit | chat-radar/chat-radar,chat-radar/chat-radar,chat-radar/chat-radar | ---
+++
@@ -1,5 +1,5 @@
export default function getCity(address: any, name: string) {
- for (let prop of ['city', 'town', 'village', 'hamlet']) {
+ for (let prop of ['city', 'town', 'village', 'hamlet', 'county']) {
if (address.hasOwnProperty(prop))
return address[prop];
} |
9ce3f9fd2e35d33ed4900522a612a324480bfd3d | web/resources/js/hello.ts | web/resources/js/hello.ts | import $ from "jquery";
document.addEventListener('DOMContentLoaded', () => {console.log("This is running TypeScript!")})
$(function () {
$('[data-toggle="tooltip"]').tooltip()
});
interface User {
foo: string,
bar: symbol,
}
export function foo(u: User): string | null {
return document.getElementsB... | import $ from "jquery";
document.addEventListener('DOMContentLoaded', () => {console.log("This is running TypeScript!")})
$(function () {
$('[data-toggle="tooltip"]').tooltip()
});
| Revert "Play around with typescript a bit" | Revert "Play around with typescript a bit"
This reverts commit 77cf995e4dad158d551081d3164bfb48b44ee452.
| TypeScript | apache-2.0 | agdsn/pycroft,agdsn/pycroft,agdsn/pycroft,agdsn/pycroft,agdsn/pycroft | ---
+++
@@ -5,14 +5,3 @@
$(function () {
$('[data-toggle="tooltip"]').tooltip()
});
-
-interface User {
- foo: string,
- bar: symbol,
-}
-
-export function foo(u: User): string | null {
- return document.getElementsByTagName('div').length % 2
- ? "fooo"
- : null;
-} |
5a63d21f0b8d226802ba9168c1a76b83f187d05f | capstone-project/src/main/angular-webapp/src/app/authentication/authentication.component.ts | capstone-project/src/main/angular-webapp/src/app/authentication/authentication.component.ts | import { Component, OnInit } from '@angular/core';
import { SocialAuthService } from "angularx-social-login";
import { GoogleLoginProvider } from "angularx-social-login";
import { SocialUser } from "angularx-social-login";
@Component({
selector: 'app-authentication',
templateUrl: './authentication.component.html',... | import { Component, OnInit } from '@angular/core';
import { SocialAuthService } from "angularx-social-login";
import { GoogleLoginProvider } from "angularx-social-login";
import { SocialUser } from "angularx-social-login";
@Component({
selector: 'app-authentication',
templateUrl: './authentication.component.html',... | Change back user field visibility (cannot be private because we use it in template) | Change back user field visibility (cannot be private because we use it in template)
| TypeScript | apache-2.0 | googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020 | ---
+++
@@ -10,7 +10,7 @@
})
export class AuthenticationComponent implements OnInit {
- private user: SocialUser;
+ user: SocialUser;
constructor(private authService: SocialAuthService) { }
|
f3f9992aea6c7008a2cf8b675b501edf18bc03a7 | src/app/leaflet-map.service.spec.ts | src/app/leaflet-map.service.spec.ts | /* tslint:disable:no-unused-variable */
/*!
* Leaflet Map Service
*
* Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph>
* Licensed under MIT
*/
import { TestBed, async, inject } from '@angular/core/testing';
import { LeafletMapService } from './leaflet-map.service';
describe('Service: LeafletMap',... | /* tslint:disable:no-unused-variable */
/*!
* Leaflet Map Service
*
* Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph>
* Licensed under MIT
*/
import { TestBed, async, inject } from '@angular/core/testing';
import { Map, TileLayer } from 'leaflet';
import { LeafletMapService } from './leaflet-map.... | Add new tests for leaflet map service | Add new tests for leaflet map service
| TypeScript | mit | ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps | ---
+++
@@ -8,20 +8,69 @@
*/
import { TestBed, async, inject } from '@angular/core/testing';
+import { Map, TileLayer } from 'leaflet';
import { LeafletMapService } from './leaflet-map.service';
describe('Service: LeafletMap', () => {
+ let el: HTMLElement;
beforeEach(() => {
TestBed.configureTest... |
6038306e0b7e5f2ac2b7fdf8c96b99137055cdce | gui/executionGraphGui/client/libs/graph/src/components/graph/graph.component.spec.ts | gui/executionGraphGui/client/libs/graph/src/components/graph/graph.component.spec.ts | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { GraphComponent } from './graph.component';
describe('GraphComponent', () => {
let component: GraphComponent;
let fixture: ComponentFixture<GraphComponent>;
beforeEach(
async(() => {
TestBed.configureTestingModule({
... | import { async, ComponentFixture, TestBed, getTestBed } from '@angular/core/testing';
import { Component } from '@angular/core';
import { By } from '@angular/platform-browser';
import { GraphComponent } from './graph.component';
import { PortComponent } from '../port/port.component';
import { ConnectionComponent } fro... | Make a test of the graph | Make a test of the graph
| TypeScript | mpl-2.0 | gabyx/ExecutionGraph,gabyx/ExecutionGraph,gabyx/ExecutionGraph,gabyx/ExecutionGraph,gabyx/ExecutionGraph,gabyx/ExecutionGraph,gabyx/ExecutionGraph,gabyx/ExecutionGraph | ---
+++
@@ -1,30 +1,45 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+import { async, ComponentFixture, TestBed, getTestBed } from '@angular/core/testing';
+import { Component } from '@angular/core';
+import { By } from '@angular/platform-browser';
import { GraphComponent } from './... |
b2616d49ac7ff2f627190cc1a3f7f868e8705ae0 | tests/src/debugger.spec.ts | tests/src/debugger.spec.ts | import { expect } from "chai";
describe("Debugger", () => {
describe("#constructor()", () => {
it("should create a new debugger panel", () => {
expect(true).to.be.true;
});
});
});
| import { expect } from 'chai';
import { Debugger } from '../../lib/debugger';
class TestPanel extends Debugger {}
describe('Debugger', () => {
let panel: TestPanel;
beforeEach(() => {
panel = new TestPanel({});
});
afterEach(() => {
panel.dispose();
});
describe('#constructor()', () => {
i... | Add simple test for Debugger | Add simple test for Debugger
| TypeScript | bsd-3-clause | jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab | ---
+++
@@ -1,9 +1,23 @@
-import { expect } from "chai";
+import { expect } from 'chai';
-describe("Debugger", () => {
- describe("#constructor()", () => {
- it("should create a new debugger panel", () => {
- expect(true).to.be.true;
+import { Debugger } from '../../lib/debugger';
+
+class TestPanel extend... |
74533a5fb25b8ffb98f49f00d6b8bf76e938b06d | src/main/stores/ContextMenuStore.ts | src/main/stores/ContextMenuStore.ts | import { observable, action } from 'mobx'
import { MenuItem } from '../lib/contextMenu/interfaces'
import {
menuHeight,
menuMargin,
menuVerticalPadding
} from '../lib/contextMenu/consts'
export default class ContextMenuStore {
@observable isOpen: boolean = false
@observable xPosition: number = 0
@observabl... | import { observable, action } from 'mobx'
import { MenuItem } from '../lib/contextMenu/interfaces'
import {
menuHeight,
menuMargin,
menuVerticalPadding
} from '../lib/contextMenu/consts'
export default class ContextMenuStore {
@observable isOpen: boolean = false
@observable xPosition: number = 0
@observabl... | Include number of menu items in calculating position of context menu | Include number of menu items in calculating position of context menu
| TypeScript | mit | Sarah-Seo/Inpad,Sarah-Seo/Inpad | ---
+++
@@ -23,7 +23,10 @@
this.xPosition = event.clientX
const yPositionLimit =
- window.innerHeight - menuHeight - menuMargin - menuVerticalPadding * 2
+ window.innerHeight -
+ menuHeight * menuItems.length -
+ menuMargin -
+ menuVerticalPadding * 2
const clientYIsLowerThan... |
b293d9178971f0f72796e5ec4246033631ae98e6 | src/CK.Glouton.Web/app/src/app/modules/lucene/components/applicationNameSelector.component.ts | src/CK.Glouton.Web/app/src/app/modules/lucene/components/applicationNameSelector.component.ts | import { Component, OnInit } from '@angular/core';
import { LogService } from 'app/_services';
import { ILogView } from 'app/common/logs/models';
@Component({
selector: 'applicationNameSelector',
templateUrl: 'applicationNameSelector.component.html'
})
export class ApplicationNameSelectorComponent implements ... | import { Component, OnInit } from '@angular/core';
import { Store } from '@ngrx/store';
import { Observable } from 'rxjs/Observable';
import { Subscription } from 'rxjs/Subscription';
import { EffectDispatcher } from '@ck/rx';
import { IAppState } from 'app/app.state';
import { LogService } from 'app/_services';
import... | Add actions behavior for applicationNameSelector. | Add actions behavior for applicationNameSelector.
| TypeScript | mit | ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton | ---
+++
@@ -1,6 +1,12 @@
import { Component, OnInit } from '@angular/core';
+import { Store } from '@ngrx/store';
+import { Observable } from 'rxjs/Observable';
+import { Subscription } from 'rxjs/Subscription';
+import { EffectDispatcher } from '@ck/rx';
+import { IAppState } from 'app/app.state';
import { LogServ... |
29383de7ca8693c91c7255fc98c38a7f9b008d4c | src/app/journal/post-data.ts | src/app/journal/post-data.ts | export interface PostData {
postId: number;
date: number;
title: string;
content: string;
tags: string[];
}
export interface PostDataWrapper {
posts: PostData[];
totalPages: number;
}
| /**
* An interface which can be used by a class to encapsulate a journal post.
*/
export interface PostData {
/**
* The post's unique identifier.
*/
postId: number;
/**
* The post's date, represented as a timestamp.
*/
date: number;
/**
* The post title
*/
title: string;
/**
* Th... | Add documentation to journal module interfaces | Add documentation to journal module interfaces
| TypeScript | apache-2.0 | jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog | ---
+++
@@ -1,12 +1,45 @@
+/**
+ * An interface which can be used by a class to encapsulate a journal post.
+ */
export interface PostData {
+ /**
+ * The post's unique identifier.
+ */
postId: number;
+
+ /**
+ * The post's date, represented as a timestamp.
+ */
date: number;
+
+ /**
+ * The post... |
3c1e561335c8b6f85cb202a9e80a948a0eb03cc6 | app/src/ui/lib/emoji-text.tsx | app/src/ui/lib/emoji-text.tsx | import * as React from 'react'
interface IEmojiTextProps {
readonly className?: string
readonly emoji: Map<string, string>
readonly children?: string
}
/**
* A component which replaces any emoji shortcuts (e.g., :+1:) in its child text
* with the appropriate image tag.
*/
export default class EmojiText exten... | import * as React from 'react'
interface IEmojiTextProps {
readonly className?: string
readonly emoji: Map<string, string>
readonly children?: string
}
/**
* A component which replaces any emoji shortcuts (e.g., :+1:) in its child text
* with the appropriate image tag.
*/
export default class EmojiText exten... | Add key, alt, and title to the emoji image | Add key, alt, and title to the emoji image
| TypeScript | mit | kactus-io/kactus,j-f1/forked-desktop,j-f1/forked-desktop,artivilla/desktop,shiftkey/desktop,hjobrien/desktop,artivilla/desktop,j-f1/forked-desktop,gengjiawen/desktop,BugTesterTest/desktops,j-f1/forked-desktop,shiftkey/desktop,artivilla/desktop,BugTesterTest/desktops,desktop/desktop,desktop/desktop,gengjiawen/desktop,sa... | ---
+++
@@ -28,10 +28,10 @@
if (!str.length) { return null }
const pieces = str.split(/(:.*?:)/g)
- const elements = pieces.map(fragment => {
+ const elements = pieces.map((fragment, i) => {
const path = emoji.get(fragment)
if (path) {
- return <img className='emoji' src={path}/>
+ retur... |
29e7fbbcaea54ebdd62691e71bcd262f079c8e96 | src/component/feedback/FeedbackCES/sendFeedbackInput.ts | src/component/feedback/FeedbackCES/sendFeedbackInput.ts | import { IFeedbackCESForm } from 'component/feedback/FeedbackCES/FeedbackCESForm';
interface IFeedbackEndpointRequestBody {
source: 'app' | 'app:segments';
data: {
score: number;
comment?: string;
customerType?: 'open source' | 'paying';
openedManually?: boolean;
current... | import { IFeedbackCESForm } from 'component/feedback/FeedbackCES/FeedbackCESForm';
interface IFeedbackEndpointRequestBody {
source: 'app' | 'app:segments';
data: {
score: number;
comment?: string;
customerType?: 'open source' | 'paying';
openedManually?: boolean;
current... | Update target URL for sending feedback input | chore: Update target URL for sending feedback input
| TypeScript | apache-2.0 | Unleash/unleash-frontend,Unleash/unleash-frontend,Unleash/unleash-frontend,Unleash/unleash-frontend | ---
+++
@@ -30,7 +30,7 @@
};
await fetch(
- 'https://europe-west3-docs-feedback-v1.cloudfunctions.net/function-1',
+ 'https://europe-west3-metrics-304612.cloudfunctions.net/docs-app-feedback',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' ... |
c26d22751e29b99dc308c4ce6870591153f5a5bc | server/imports/publications/stores.ts | server/imports/publications/stores.ts | import { Meteor } from 'meteor/meteor';
import { Counts } from 'meteor/tmeasday:publish-counts';
import { Stores } from '../../../both/collections/stores.collection';
interface Options {
[key: string]: any;
}
Meteor.publish('stores', function(options: Options, location?: string) {
const selector = build... | import { Meteor } from 'meteor/meteor';
import { Counts } from 'meteor/tmeasday:publish-counts';
import { Stores } from '../../../both/collections/stores.collection';
interface Options {
[key: string]: any;
}
Meteor.publish('stores', function(options: Options, searchValue?: string) {
const selector = bu... | Refactor server search Value for adding activities | Refactor server search Value for adding activities
| TypeScript | mit | DarkChopper/yssi,DarkChopper/yssi,DarkChopper/yssi | ---
+++
@@ -8,9 +8,9 @@
[key: string]: any;
}
-Meteor.publish('stores', function(options: Options, location?: string) {
+Meteor.publish('stores', function(options: Options, searchValue?: string) {
- const selector = buildQuery.call(this, null, location);
+ const selector = buildQuery.call(this, nul... |
a7a59abf65d4baf62f316ad73af6be6c3e247f17 | src/client/index.ts | src/client/index.ts |
/*#######.
########",#:
#########',##".
##'##'## .##',##.
## ## ## # ##",#.
## ## ## ## ##'
## ## ## :##
## ## ##*/
import { workspace, ExtensionContext } from 'vscode'
import {
LanguageClient,
LanguageClientOptions,
ServerOptions,
TransportKind
} from 'vscode-languageclient'... |
/*#######.
########",#:
#########',##".
##'##'## .##',##.
## ## ## # ##",#.
## ## ## ## ##'
## ## ## :##
## ## ##*/
import { workspace, ExtensionContext } from 'vscode'
import {
LanguageClient,
LanguageClientOptions,
ServerOptions,
TransportKind
} from 'vscode-languageclient'... | Update debug port flag from `--debug` to `--inspect` | Update debug port flag from `--debug` to `--inspect`
| TypeScript | mit | kube/vscode-clang-complete,kube/vscode-clang-complete | ---
+++
@@ -18,7 +18,7 @@
export function activate(context: ExtensionContext) {
const serverModule = context.asAbsolutePath('build/server.js')
- const debugOptions = { execArgv: ['--nolazy', '--debug=6004'] }
+ const debugOptions = { execArgv: ['--nolazy', '--inspect=6004'] }
const serverOptions: ServerO... |
6a410add9da01ba415751a0d4f11e10855b854c6 | src/mavensmate/mavensMateAppConfig.ts | src/mavensmate/mavensMateAppConfig.ts | 'use strict';
import path = require('path');
import * as operatingSystem from '../../src/workspace/operatingSystem';
import * as jsonFile from '../../src/workspace/jsonFile';
export function getConfig(){
let configFileDirectory = getUserHomeDirectory();
let configFileName = '.mavensmate-config.json';
let... | import path = require('path');
import * as operatingSystem from '../../src/workspace/operatingSystem';
import * as jsonFile from '../../src/workspace/jsonFile';
export function getConfig(){
let configFileDirectory = getUserHomeDirectory();
let configFileName = '.mavensmate-config.json';
let appConfigFileP... | Remove 'use strict' because using eslint | Remove 'use strict' because using eslint
| TypeScript | mit | joeferraro/MavensMate-VisualStudioCode | ---
+++
@@ -1,5 +1,3 @@
-'use strict';
-
import path = require('path');
import * as operatingSystem from '../../src/workspace/operatingSystem';
import * as jsonFile from '../../src/workspace/jsonFile'; |
752d8394993880d1e09ef0c3e379a1874ba6f588 | src/lib/md5.ts | src/lib/md5.ts | import * as crypto from 'crypto';
import * as core from './core';
abstract class StringToMD5Transformer implements core.Transformer {
protected abstract get digestMethodDescription(): string
protected abstract get digestMethod(): crypto.HexBase64Latin1Encoding
public get label(): string {
return `String to MD5 ... | import * as crypto from 'crypto';
import * as core from './core';
abstract class StringToMD5Transformer implements core.Transformer {
protected abstract get digestMethodDescription(): string
protected abstract get digestMethod(): crypto.HexBase64Latin1Encoding
public get label(): string {
return `String to MD5 ... | Tweak the descriptions for MD5. | Tweak the descriptions for MD5.
| TypeScript | mit | mitchdenny/ecdc | ---
+++
@@ -28,7 +28,7 @@
export class StringToMD5Base64Transformer extends StringToMD5Transformer{
protected get digestMethodDescription(): string {
- return "Base64 Encoded"
+ return "as Base64"
}
protected get digestMethod(): crypto.HexBase64Latin1Encoding {
@@ -38,7 +38,7 @@
export class StringToM... |
76f42150cb0cb0b150756f4ed82b4fc4254178c0 | examples/official-storybook/stories/demo/setup.stories.tsx | examples/official-storybook/stories/demo/setup.stories.tsx | import React from 'react';
import { screen } from '@testing-library/dom';
import userEvent from '@testing-library/user-event';
const Input = () => <input />;
export default {
title: 'Other/Demo/Setup',
component: Input,
};
export const WithSetup = {
setup: () => userEvent.type(screen.getByRole('textbox'), 'asd... | import React from 'react';
import { screen } from '@testing-library/dom';
import userEvent from '@testing-library/user-event';
const Input = () => <input data-testid="test-input" />;
export default {
title: 'Other/Demo/Setup',
component: Input,
};
export const WithSetup = {
setup: () => userEvent.type(screen.g... | Use testId instead of role | Use testId instead of role
| TypeScript | mit | storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook | ---
+++
@@ -2,7 +2,7 @@
import { screen } from '@testing-library/dom';
import userEvent from '@testing-library/user-event';
-const Input = () => <input />;
+const Input = () => <input data-testid="test-input" />;
export default {
title: 'Other/Demo/Setup',
@@ -10,5 +10,5 @@
};
export const WithSetup = {... |
44103c2efe5e024389c26ccff598b2103ad4df4d | src/app/material-counts/MaterialCountsWrappers.tsx | src/app/material-counts/MaterialCountsWrappers.tsx | import { t } from 'app/i18next-t';
import { Observable } from 'app/utils/observable';
import { useSubscription } from 'use-subscription';
import Sheet from '../dim-ui/Sheet';
import { MaterialCounts } from './MaterialCounts';
import styles from './MaterialCountsWrappers.m.scss';
/**
* The currently selected store for... | import { PressTipHeader } from 'app/dim-ui/PressTip';
import { t } from 'app/i18next-t';
import { Observable } from 'app/utils/observable';
import { useSubscription } from 'use-subscription';
import Sheet from '../dim-ui/Sheet';
import { MaterialCounts } from './MaterialCounts';
import styles from './MaterialCountsWrap... | Add PressTipHeader to material counts tooltip. | Add PressTipHeader to material counts tooltip.
| TypeScript | mit | DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM | ---
+++
@@ -1,3 +1,4 @@
+import { PressTipHeader } from 'app/dim-ui/PressTip';
import { t } from 'app/i18next-t';
import { Observable } from 'app/utils/observable';
import { useSubscription } from 'use-subscription';
@@ -39,8 +40,7 @@
export function MaterialCountsTooltip() {
return (
<>
- {t('Header... |
b26fad225ecd8e442f4476309f230d39891a8d97 | src/ngx-auto-scroll.directive.ts | src/ngx-auto-scroll.directive.ts | import {AfterContentInit, Directive, ElementRef, HostListener, Input, OnDestroy} from "@angular/core";
@Directive({
selector: "[ngx-auto-scroll]",
})
export class NgxAutoScroll implements AfterContentInit, OnDestroy {
@Input("lock-y-offset") public lockYOffset: number = 10;
@Input("observe-attributes") pub... | import {AfterContentInit, Directive, ElementRef, HostListener, Input, OnDestroy} from "@angular/core";
@Directive({
selector: "[ngx-auto-scroll]",
})
export class NgxAutoScroll implements AfterContentInit, OnDestroy {
@Input("lock-y-offset") public lockYOffset: number = 10;
@Input("observe-attributes") pub... | Add method to force scroll down | Add method to force scroll down
| TypeScript | mit | NagRock/angular2-auto-scroll | ---
+++
@@ -22,7 +22,7 @@
public ngAfterContentInit(): void {
this.mutationObserver = new MutationObserver(() => {
if (!this.isLocked) {
- this.nativeElement.scrollTop = this.nativeElement.scrollHeight;
+ this.scrollDown();
}
});
... |
f9b45b5c00cb39f567b42696c5f076eeb179afd9 | test/integration/contentful-client.ts | test/integration/contentful-client.ts | import * as contentful from 'contentful-management'
if (!process.env.CONTENTFUL_CMA_TOKEN) {
require('dotenv').config()
}
export const client = contentful.createClient({
accessToken: process.env.CONTENTFUL_CMA_TOKEN
})
export const getCurrentSpace = () => client.getSpace(process.env.CONTENTFUL_SPACE_ID)
| import * as contentful from 'contentful-management'
if (!process.env.CONTENTFUL_CMA_TOKEN) {
require('dotenv').config()
}
export const client = contentful.createClient({
accessToken: process.env.CONTENTFUL_CMA_TOKEN as string
})
export const getCurrentSpace = () => client.getSpace(process.env.CONTENTFUL_SPACE_ID... | Fix linting errors in integration tests | Fix linting errors in integration tests | TypeScript | mit | contentful/widget-sdk | ---
+++
@@ -5,7 +5,7 @@
}
export const client = contentful.createClient({
- accessToken: process.env.CONTENTFUL_CMA_TOKEN
+ accessToken: process.env.CONTENTFUL_CMA_TOKEN as string
})
-export const getCurrentSpace = () => client.getSpace(process.env.CONTENTFUL_SPACE_ID)
+export const getCurrentSpace = () => c... |
1275a715434469aa871ed9e8e0830e95866db87f | 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 <%= name %> = angular
.module("<%= appName %>.<%= name %>", ["ui.router"])<% if (!moduleOnly) { %>
.con... | import * as angular from "angular";
<% if (!moduleOnly) { %>import { <%= pName %>Config } from "./<%= hName %>.config";
import { <%= pName %>Controller } from "./<%= hName %>.controller";
<% } %>export const <%= name %> = angular
.module("<%= appName %>.<%= name %>", ["ui.router"])<% if (!moduleOnly) { %>
.con... | Fix an error with the used controller | Fix an error with the used controller
| TypeScript | mit | Kurtz1993/ngts-cli,Kurtz1993/ngts-cli,Kurtz1993/ngts-cli | ---
+++
@@ -4,6 +4,6 @@
<% } %>export const <%= name %> = angular
.module("<%= appName %>.<%= name %>", ["ui.router"])<% if (!moduleOnly) { %>
- .controller("<%= pName %>", <%= pName %>Controller)
+ .controller("<%= pName %>Controller", <%= pName %>Controller)
.config(<%= pName %>Config)<% } %>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.