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 |
|---|---|---|---|---|---|---|---|---|---|---|
19afef35b34bc2bb86bc692242c0ae6c45bc6adc | types/gulp-jsonmin/gulp-jsonmin-tests.ts | types/gulp-jsonmin/gulp-jsonmin-tests.ts | import * as GulpJsonmin from 'gulp-jsonmin';
GulpJsonmin();
GulpJsonmin({});
GulpJsonmin({ verbose: true });
| import GulpJsonmin = require('gulp-jsonmin');
GulpJsonmin();
GulpJsonmin({ verbose: true });
| Fix how modules are imported | Fix how modules are imported
| TypeScript | mit | markogresak/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,dsebastien/DefinitelyTyped,dsebastien/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyT... | ---
+++
@@ -1,5 +1,4 @@
-import * as GulpJsonmin from 'gulp-jsonmin';
+import GulpJsonmin = require('gulp-jsonmin');
GulpJsonmin();
-GulpJsonmin({});
GulpJsonmin({ verbose: true }); |
f8aac97c3eb50f3b73a72c3568f4989cf17fec09 | ui/src/shared/document/document-utils.ts | ui/src/shared/document/document-utils.ts | import { ResultDocument } from '../../api/result';
import CONFIGURATION from '../../configuration.json';
const IMAGE_CATEGORIES = ['Image', 'Photo', 'Drawing'];
export const getDocumentLink = (doc: ResultDocument, project: string, currentBaseUrl?: string): string => {
const [baseUrl, path] = isImage(doc)
... | import { ResultDocument } from '../../api/result';
import CONFIGURATION from '../../configuration.json';
const IMAGE_CATEGORIES = ['Image', 'Photo', 'Drawing'];
export const getDocumentLink = (doc: ResultDocument, project: string, currentBaseUrl?: string): string => {
const [baseUrl, path] = isImage(doc)
... | Fix links from images to project document | Fix links from images to project document
| TypeScript | apache-2.0 | dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web | ---
+++
@@ -10,7 +10,8 @@
? ['', `/image/${project}/${doc.resource.id}`]
: isCategory(doc, 'Type') || isCategory(doc, 'TypeCatalog')
? [CONFIGURATION.shapesUrl, `/document/${doc.resource.id}`]
- : [CONFIGURATION.fieldUrl, `/project/${project}/${doc.resource.id}`];
+ ... |
f5fab719873d95f33c8a1ab8543fb7e4c2e631d9 | src/openstack/openstack-backup/actions/EditAction.ts | src/openstack/openstack-backup/actions/EditAction.ts | import { translate } from '@waldur/i18n';
import {
createDefaultEditAction,
createLatinNameField,
validateState,
createDescriptionField
} from '@waldur/resource/actions/base';
import { ResourceAction } from '@waldur/resource/actions/types';
import { mergeActions } from '@waldur/resource/actions/utils';
export ... | import { translate } from '@waldur/i18n';
import {
createDefaultEditAction,
createNameField,
validateState,
createDescriptionField
} from '@waldur/resource/actions/base';
import { ResourceAction } from '@waldur/resource/actions/types';
import { mergeActions } from '@waldur/resource/actions/utils';
export defau... | Fix name validator for backup edit action | Fix name validator for backup edit action [WAL-2036]
| TypeScript | mit | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | ---
+++
@@ -1,7 +1,7 @@
import { translate } from '@waldur/i18n';
import {
createDefaultEditAction,
- createLatinNameField,
+ createNameField,
validateState,
createDescriptionField
} from '@waldur/resource/actions/base';
@@ -12,7 +12,7 @@
return mergeActions(createDefaultEditAction(), {
successM... |
270e9df7fa9fd24874bad3334a600035bdae8a84 | client/src/components/projects/projectActions.tsx | client/src/components/projects/projectActions.tsx | import * as React from 'react';
import { Dropdown, MenuItem } from 'react-bootstrap';
import '../actions.less';
export interface Props {
onDelete: () => any;
notebookActionCallback?: () => any;
tensorboardActionCallback?: () => any;
hasNotebook?: boolean;
hasTensorboard?: boolean;
pullRight: boolean;
}
f... | import * as React from 'react';
import { Dropdown, MenuItem } from 'react-bootstrap';
import '../actions.less';
export interface Props {
onDelete: () => any;
notebookActionCallback?: () => any;
tensorboardActionCallback?: () => any;
hasNotebook?: boolean;
hasTensorboard?: boolean;
pullRight: boolean;
}
f... | Fix notebook stop action in the dropdown | Fix notebook stop action in the dropdown
| TypeScript | apache-2.0 | polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon | ---
+++
@@ -28,7 +28,7 @@
<i className="fa fa-ellipsis-h icon" aria-hidden="true"/>
</Dropdown.Toggle>
<Dropdown.Menu>
- {props.notebookActionCallback && props.hasTensorboard &&
+ {props.notebookActionCallback && props.hasNotebook &&
<MenuItem eventKey="2" o... |
913fe06e4864302e1d7c3acbfeace85027e122a6 | src/dashboard-refactor/colors.tsx | src/dashboard-refactor/colors.tsx | const colors = {
white: '#FFF',
onHover: '#BABABA',
onSelect: '#B6B6B6', // used for sidebar list item in selected state
midGrey: '#C4C4C4', // used for Sidebar Toggle hovered/selected state
lightGrey: '#E1E1E1', // used for Search Bar
lighterGrey: '#CCC', // used for divider on white background... | const colors = {
white: '#FFF',
onHover: '#BABABA',
onSelect: '#B6B6B6', // used for sidebar list item in selected state
midGrey: '#C4C4C4', // used for Sidebar Toggle hovered/selected state and new items count background
lightMidGrey: '#DDD',
lightGrey: '#E1E1E1', // used for Header Search Bar ... | Add different background color for searchbar on peek | Add different background color for searchbar on peek
| TypeScript | mit | WorldBrain/WebMemex,WorldBrain/WebMemex | ---
+++
@@ -2,8 +2,9 @@
white: '#FFF',
onHover: '#BABABA',
onSelect: '#B6B6B6', // used for sidebar list item in selected state
- midGrey: '#C4C4C4', // used for Sidebar Toggle hovered/selected state
- lightGrey: '#E1E1E1', // used for Search Bar
+ midGrey: '#C4C4C4', // used for Sidebar Toggl... |
47b729cbc2c329072a3ef33091ad8ed455f50626 | app/renderer/js/utils/translation-util.ts | app/renderer/js/utils/translation-util.ts | 'use strict';
import path = require('path');
import electron = require('electron');
import i18n = require('i18n');
let instance: TranslationUtil = null;
let app: Electron.App = null;
/* To make the util runnable in both main and renderer process */
if (process.type === 'renderer') {
app = electron.remote.app;
} els... | 'use strict';
import path = require('path');
import electron = require('electron');
import i18n = require('i18n');
let instance: TranslationUtil = null;
let app: Electron.App = null;
/* To make the util runnable in both main and renderer process */
if (process.type === 'renderer') {
app = electron.remote.app;
} els... | Use English as fallback language. | i18n: Use English as fallback language.
In case app.getLocale() returns a falsey value, English is used as the
app language.
| TypeScript | apache-2.0 | zulip/zulip-desktop,zulip/zulip-desktop,zulip/zulip-desktop,zulip/zulip-desktop | ---
+++
@@ -28,7 +28,7 @@
}
__(phrase: string): string {
- return i18n.__({ phrase, locale: app.getLocale() });
+ return i18n.__({ phrase, locale: app.getLocale() ? app.getLocale() : 'en' });
}
}
|
6d61344eed54d3a729e53b39e2b32d2ac355cf62 | e2e/app.e2e-spec.ts | e2e/app.e2e-spec.ts | import { PortfolioOptimizerPage } from './app.po';
describe('portfolio-optimizer App', function() {
let page: PortfolioOptimizerPage;
beforeEach(() => {
page = new PortfolioOptimizerPage();
});
it('should display message saying app works', () => {
page.navigateTo();
expect(page.getParagraphText()... | import { PortfolioOptimizerPage } from './app.po';
describe('The portfolio optimizer app', function() {
let page: PortfolioOptimizerPage;
beforeEach(() => {
page = new PortfolioOptimizerPage();
});
it('should have the correct title.', () => {
page.navigateTo();
expect(page.getTitle()).toEqual('Co... | Revert bad changes to e2e tests from upgrade. | Revert bad changes to e2e tests from upgrade.
| TypeScript | mit | coshx/portfolio_optimizer,coshx/portfolio_optimizer,coshx/portfolio_optimizer,coshx/portfolio_optimizer | ---
+++
@@ -1,14 +1,41 @@
import { PortfolioOptimizerPage } from './app.po';
-describe('portfolio-optimizer App', function() {
+describe('The portfolio optimizer app', function() {
let page: PortfolioOptimizerPage;
beforeEach(() => {
page = new PortfolioOptimizerPage();
});
- it('should display ... |
48a66b03c267e70e5eef170942fcb3c9390bc72d | client/src/app/models/project.model.ts | client/src/app/models/project.model.ts | import { ProjectWizardData } from './project-wizard-data.model';
export class Project {
public projectName: string;
public freelancer: string;
public client: string;
public startDate: number;
public endDate: number;
public budget: number;
public paymentType: string;
public paymentTrigger: string;
pub... | import { ProjectWizardData } from './project-wizard-data.model';
export class Project {
public projectName: string;
public freelancer: string;
public client: string;
public startDate: number;
public endDate: number;
public budget: number;
public billingMethod: string;
public paymentType: string;
publ... | Add support for new blockchain fields. | Add support for new blockchain fields.
| TypeScript | apache-2.0 | IBMZissou/dbh17-zissou,IBMZissou/dbh17-zissou,IBMZissou/dbh17-zissou,IBMZissou/dbh17-zissou,IBMZissou/dbh17-zissou | ---
+++
@@ -7,8 +7,10 @@
public startDate: number;
public endDate: number;
public budget: number;
+ public billingMethod: string;
public paymentType: string;
public paymentTrigger: string;
+ public paymentComments: string;
public description: string;
public deliverables: string;
public jobRe... |
21bba51d4176aa4188c503a78bba36005b52633f | packages/react-form-with-constraints/src/index.ts | packages/react-form-with-constraints/src/index.ts | export * from './FormWithConstraints';
export * from './FieldFeedbacks';
export * from './FieldFeedback';
export * from './FieldFeedbackWhenValid';
export * from './Async';
import Field from './Field';
export { Field };
export * from './FieldsStore';
export * from './EventEmitter';
export * from './withValidateFieldEve... | export * from './FormWithConstraints';
export * from './FieldFeedbacks';
export * from './FieldFeedback';
export * from './FieldFeedbackWhenValid';
export * from './Async';
export { default as Field } from './Field';
export * from './FieldsStore';
export * from './EventEmitter';
export * from './withValidateFieldEventE... | Use export { default as ... } syntax | Use export { default as ... } syntax
| TypeScript | mit | tkrotoff/react-form-with-constraints,tkrotoff/react-form-with-constraints,tkrotoff/react-form-with-constraints | ---
+++
@@ -3,19 +3,15 @@
export * from './FieldFeedback';
export * from './FieldFeedbackWhenValid';
export * from './Async';
-import Field from './Field';
-export { Field };
+export { default as Field } from './Field';
export * from './FieldsStore';
export * from './EventEmitter';
export * from './withValidate... |
3b8ef37392fd28e76af3f50ff7a1645678eb3606 | assets/components/tsx/Footer.tsx | assets/components/tsx/Footer.tsx | import h, { FunctionComponent } from '../../../lib/tsx/TsxParser';
import { Link } from './Link';
interface FooterProps {
firstName: string;
lastName: string;
gitRevision: string;
githubLink: string;
}
export const Footer: FunctionComponent<FooterProps> = (props: FooterProps) => {
const { firstNam... | import h, { FunctionComponent } from '../../../lib/tsx/TsxParser';
import { Link } from './Link';
interface FooterProps {
firstName: string;
lastName: string;
gitRevision: string;
githubLink: string;
}
export const Footer: FunctionComponent<FooterProps> = (props: FooterProps) => {
const { firstNam... | Fix missing space before Github link. | Fix missing space before Github link.
| TypeScript | mit | birkett/a-birkett.co.uk | ---
+++
@@ -17,7 +17,7 @@
© {firstName} {lastName}
</p>
<p>
- This site is Open Source. Current revision {gitRevision}.
+ This site is Open Source. Current revision {gitRevision}.
<Link href={githubLink} title="GitHub... |
1667eef999fe213320bc60467f01d941824cf914 | src/features/CodeActions.ts | src/features/CodeActions.ts | import vscode = require('vscode');
import { LanguageClient, RequestType, NotificationType } from 'vscode-languageclient';
import Window = vscode.window;
import { IFeature } from '../feature';
export class CodeActionsFeature implements IFeature {
private command: vscode.Disposable;
private languageClient: Langu... | import vscode = require('vscode');
import { LanguageClient, RequestType, NotificationType } from 'vscode-languageclient';
import Window = vscode.window;
import { IFeature } from '../feature';
export class CodeActionsFeature implements IFeature {
private command: vscode.Disposable;
private languageClient: Langu... | Allow quick fix to work in untitled documents | Allow quick fix to work in untitled documents
In the previous iteration of this feature, the edits can be applied to files open in a workspace. This commit removes that restriction.
| TypeScript | mit | PowerShell/vscode-powershell | ---
+++
@@ -9,21 +9,15 @@
constructor() {
this.command = vscode.commands.registerCommand('PowerShell.ApplyCodeActionEdits', (edit: any) => {
- var editor = Window.activeTextEditor;
- var filePath = editor.document.fileName;
- var workspaceEdit = new vscode.WorkspaceEdi... |
f5cce7bb3c5902940608c0b65c64f448aa0dd911 | lib/ui/src/components/sidebar/Heading.tsx | lib/ui/src/components/sidebar/Heading.tsx | import React, { FunctionComponent, ComponentProps } from 'react';
import { styled } from '@storybook/theming';
import { Brand } from './Brand';
import { SidebarMenu, MenuList } from './Menu';
export interface HeadingProps {
menuHighlighted?: boolean;
menu: MenuList;
}
const BrandArea = styled.div(({ theme }) => ... | import React, { FunctionComponent, ComponentProps } from 'react';
import { styled } from '@storybook/theming';
import { Brand } from './Brand';
import { SidebarMenu, MenuList } from './Menu';
export interface HeadingProps {
menuHighlighted?: boolean;
menu: MenuList;
}
const BrandArea = styled.div(({ theme }) => ... | Reduce spacing to support a larger brandImage | Reduce spacing to support a larger brandImage | TypeScript | mit | storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook | ---
+++
@@ -13,7 +13,7 @@
fontSize: theme.typography.size.s2,
fontWeight: theme.typography.weight.bold,
color: theme.color.defaultText,
- marginRight: 40,
+ marginRight: 20,
display: 'flex',
width: '100%',
alignItems: 'center', |
fc1bb07c1e403d52b68170dff314526ed1c55862 | src/decorator/field.decorator.ts | src/decorator/field.decorator.ts | import { SchemaFactoryError, SchemaFactoryErrorType } from '../type-factory';
import { FieldOption } from '../metadata';
import { PaginationMiddleware } from '../middleware';
import { getMetadataArgsStorage } from '../metadata-builder';
/**
* GraphQL Schema field
* See [GraphQL Documentation - Field]{@link http://g... | import { SchemaFactoryError, SchemaFactoryErrorType } from '../type-factory';
import { FieldOption } from '../metadata';
import { PaginationMiddleware } from '../middleware';
import { getMetadataArgsStorage } from '../metadata-builder';
/**
* GraphQL Schema field
* See [GraphQL Documentation - Field]{@link http://g... | Fix test for undefined option | Fix test for undefined option
| TypeScript | mit | indigotech/graphql-schema-decorator,indigotech/graphql-schema-decorator | ---
+++
@@ -18,7 +18,7 @@
}
getMetadataArgsStorage().fields.push({
target: target,
- name: option.name || propertyKey,
+ name: (option && option.name) ? option.name : propertyKey,
description: option ? option.description : null,
property: propertyKey,
type: option ? opt... |
b36e8a60bd21cb7637ee2e9b50d9497db324c1c4 | components/BlogPostPreview.tsx | components/BlogPostPreview.tsx | import Link from "next/link"
import { FunctionComponent } from "react"
import TagsList from "./TagsList"
import BlogPostPreview from "../models/BlogPostPreview"
import FormattedDate from "./FormattedDate"
import HorizontalRule from "./HorizontalRule"
interface Props {
post: BlogPostPreview
}
const BlogPostPreviewCo... | import Link from "next/link"
import { FunctionComponent } from "react"
import TagsList from "./TagsList"
import BlogPostPreview from "../models/BlogPostPreview"
import FormattedDate from "./FormattedDate"
import HorizontalRule from "./HorizontalRule"
interface Props {
post: BlogPostPreview
}
const BlogPostPreviewCo... | Add missing title to anhcors | Add missing title to anhcors
| TypeScript | mit | JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk | ---
+++
@@ -27,7 +27,7 @@
<div>
<div dangerouslySetInnerHTML={{ __html: post.contentHTML }} />
<Link href="/posts/[slug]" as={`/posts/${post.slug}`}>
- <a>Read More</a>
+ <a title={`Keep reading ${post.title}`}>Keep Reading</a>
</Link>
</div>
</article> |
814340df89bf38a43d2cdf131f1e2fd33a96fa26 | examples/typescript/06_core/hello-world/src/app.ts | examples/typescript/06_core/hello-world/src/app.ts | import { FileDb } from 'jovo-db-filedb';
import { App } from 'jovo-framework';
import { CorePlatform } from 'jovo-platform-core';
import { JovoDebugger } from 'jovo-plugin-debugger';
import { AmazonCredentials, LexSlu } from 'jovo-slu-lex';
const app = new App();
const corePlatform = new CorePlatform();
const creden... | import { FileDb } from 'jovo-db-filedb';
import { App } from 'jovo-framework';
import { CorePlatform } from 'jovo-platform-core';
import { JovoDebugger } from 'jovo-plugin-debugger';
import { AmazonCredentials, LexSlu } from 'jovo-slu-lex';
const app = new App();
const corePlatform = new CorePlatform();
const creden... | Fix QuickReply value in example | :bug: Fix QuickReply value in example
| TypeScript | apache-2.0 | jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs | ---
+++
@@ -30,7 +30,7 @@
},
HelloWorldIntent() {
- this.$corePlatformApp?.$actions.addQuickReplies(['John', 'Jack', 'Joe']);
+ this.$corePlatformApp?.$actions.addQuickReplies(['John', 'Jack', 'Max']);
this.ask("Hello World! What's your name?", 'Please tell me your name.');
},
|
3b482424e3d2de58ac2dd266e9dc182be4cdedab | src/dashboard-refactor/header/sync-status-menu/util.ts | src/dashboard-refactor/header/sync-status-menu/util.ts | import moment from 'moment'
import type { RootState } from './types'
export const deriveStatusIconColor = ({
syncState,
backupState,
lastSuccessfulSyncDate,
}: RootState): 'green' | 'red' | 'yellow' => {
const daysSinceLastSync = moment().diff(
moment(lastSuccessfulSyncDate),
'days',
... | import moment from 'moment'
import type { RootState } from './types'
const getDaysSinceDate = (date: Date | null): number =>
date == null ? 0 : moment().diff(moment(date), 'days')
export const deriveStatusIconColor = ({
syncState,
backupState,
lastSuccessfulSyncDate,
lastSuccessfulBackupDate,
}: ... | Add missing conditions for sync/backup dashboard status | Add missing conditions for sync/backup dashboard status
| TypeScript | mit | WorldBrain/WebMemex,WorldBrain/WebMemex | ---
+++
@@ -1,28 +1,32 @@
import moment from 'moment'
import type { RootState } from './types'
+
+const getDaysSinceDate = (date: Date | null): number =>
+ date == null ? 0 : moment().diff(moment(date), 'days')
export const deriveStatusIconColor = ({
syncState,
backupState,
lastSuccessfulSync... |
dd91ea55ee1ab4c0b90e5d64ebd9c19b9bd1fbea | src/components/SearchCard/ExternalPlainButtons.tsx | src/components/SearchCard/ExternalPlainButtons.tsx | import * as React from 'react';
import { ButtonGroup, Button } from '@shopify/polaris';
import { SearchResult } from '../../types';
import TOpticonButton from './TOpticonButton';
import { generateAcceptUrl, generatePreviewUrl } from '../../utils/urls';
export interface Props {
readonly hit: SearchResult;
}
... | import * as React from 'react';
import { ButtonGroup, Button } from '@shopify/polaris';
import { SearchResult } from '../../types';
import TOpticonButton from './TOpticonButton';
import { generateAcceptUrl, generatePreviewUrl } from '../../utils/urls';
export interface Props {
readonly hit: SearchResult;
}
... | Disable accept and preview buttons according to user's qualifications. | Disable accept and preview buttons according to user's qualifications.
| TypeScript | mit | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | ---
+++
@@ -10,14 +10,24 @@
class MiscActionsPopOver extends React.PureComponent<Props, never> {
public render() {
- const { hit: { groupId, requester } } = this.props;
+ const { hit: { groupId, requester, qualified, canPreview } } = this.props;
return (
<ButtonGroup>
- <Button plain ... |
1993daa08d4d836869ee9eff10020d49d547c533 | src/app/core/local-storage/local-storage.service.ts | src/app/core/local-storage/local-storage.service.ts | import { Injectable } from '@angular/core'
declare const jIO: any
declare const RSVP: any
@Injectable()
export class LocalStorageService {
private instance: any
constructor() {
this.instance = jIO.createJIO({
type: 'query',
sub_storage: {
type: 'uuid',
sub_storage: {
ty... | import { Injectable } from '@angular/core'
import { AbstractStorageService } from '../AbstractStorageService'
declare const jIO: any
@Injectable()
export class LocalStorageService extends AbstractStorageService {
private instance: any
readonly name: string = 'Local Storage'
constructor() {
super()
th... | Edit LocalStorageService to extend AbstractStorageService | feat(localStorage): Edit LocalStorageService to extend AbstractStorageService
| TypeScript | agpl-3.0 | coast-team/mute,coast-team/mute,oster/mute,oster/mute,coast-team/mute,oster/mute,coast-team/mute | ---
+++
@@ -1,14 +1,17 @@
import { Injectable } from '@angular/core'
+import { AbstractStorageService } from '../AbstractStorageService'
+
declare const jIO: any
-declare const RSVP: any
@Injectable()
-export class LocalStorageService {
+export class LocalStorageService extends AbstractStorageService {
pr... |
82c58871829f210c1711845b388c5653a5af28ad | addons/docs/src/frameworks/html/config.tsx | addons/docs/src/frameworks/html/config.tsx | import React from 'react';
import { StoryFn } from '@storybook/addons';
export const parameters = {
docs: {
inlineStories: true,
prepareForInline: (storyFn: StoryFn<string>) => (
// eslint-disable-next-line react/no-danger
<div dangerouslySetInnerHTML={{ __html: storyFn() }} />
),
},
};
| import React from 'react';
import { StoryFn } from '@storybook/addons';
export const parameters = {
docs: {
inlineStories: true,
prepareForInline: (storyFn: StoryFn<string>) => {
const html = storyFn();
if (typeof html === 'string') {
// eslint-disable-next-line react/no-danger
re... | Fix inline rendering for DOM nodes in HTML | Addon-docs: Fix inline rendering for DOM nodes in HTML
| TypeScript | mit | storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook | ---
+++
@@ -4,9 +4,13 @@
export const parameters = {
docs: {
inlineStories: true,
- prepareForInline: (storyFn: StoryFn<string>) => (
- // eslint-disable-next-line react/no-danger
- <div dangerouslySetInnerHTML={{ __html: storyFn() }} />
- ),
+ prepareForInline: (storyFn: StoryFn<string>) ... |
29ae6523e8dec1d181c0f7667ff7ea37bc1aeb89 | client/LauncherViewModel.ts | client/LauncherViewModel.ts | import { env } from "./Environment";
import { Metrics } from "./Utility/Metrics";
export class LauncherViewModel {
constructor() {
Metrics.TrackEvent('LandingPage');
}
GeneratedEncounterId = env.EncounterId;
JoinEncounterInput = ko.observable<string>('');
StartEncounter = () => {
... | import { env } from "./Environment";
import { Metrics } from "./Utility/Metrics";
export class LauncherViewModel {
constructor() {
Metrics.TrackEvent('LandingPageLoad');
}
GeneratedEncounterId = env.EncounterId;
JoinEncounterInput = ko.observable<string>('');
StartEncounter = () => {
... | Rename Metrics event LandingPage -> LandingPageLoad | Rename Metrics event LandingPage -> LandingPageLoad
| TypeScript | mit | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | ---
+++
@@ -3,7 +3,7 @@
export class LauncherViewModel {
constructor() {
- Metrics.TrackEvent('LandingPage');
+ Metrics.TrackEvent('LandingPageLoad');
}
GeneratedEncounterId = env.EncounterId; |
755f12312bc87bcc11d46842e953da2347cc0b27 | src/app/modal/modal.component.ts | src/app/modal/modal.component.ts | import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-modal',
templateUrl: './modal.component.html',
styleUrls: ['./modal.component.css']
})
export class ModalComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
| import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-modal',
templateUrl: './modal.component.html',
styleUrls: ['./modal.component.css']
})
export class ModalComponent implements OnInit {
private show: boolean = true;
constructor() { }
ngOnInit() {
}
}
| Add show boolean that wll control display 👁 | Add show boolean that wll control display 👁
| TypeScript | mit | filoxo/an-angular-modal,filoxo/an-angular-modal,filoxo/an-angular-modal | ---
+++
@@ -7,6 +7,7 @@
})
export class ModalComponent implements OnInit {
+ private show: boolean = true;
constructor() { }
ngOnInit() { |
0c507747c89bd01d183b8d82c55fefa1fcbda104 | tests/cases/fourslash/renameStingLiterals.ts | tests/cases/fourslash/renameStingLiterals.ts | /// <reference path='fourslash.ts' />
////var x = "/*1*/string";
////function f(a = "/*2*/initial value") { }
goTo.marker("1");
verify.renameInfoFailed();
goTo.marker("2");
verify.renameInfoFailed();
| /// <reference path='fourslash.ts' />
////var y: "string" = "string;
////var x = "/*1*/string";
////function f(a = "/*2*/initial value") { }
goTo.marker("1");
verify.renameInfoFailed();
goTo.marker("2");
verify.renameInfoFailed();
| Add a contextual type in test case | Add a contextual type in test case
| TypeScript | apache-2.0 | mihailik/TypeScript,RyanCavanaugh/TypeScript,thr0w/Thr0wScript,erikmcc/TypeScript,kitsonk/TypeScript,DLehenbauer/TypeScript,erikmcc/TypeScript,donaldpipowitch/TypeScript,jwbay/TypeScript,nojvek/TypeScript,SaschaNaz/TypeScript,Microsoft/TypeScript,thr0w/Thr0wScript,Eyas/TypeScript,ziacik/TypeScript,chuckjaz/TypeScript,w... | ---
+++
@@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
+////var y: "string" = "string;
////var x = "/*1*/string";
////function f(a = "/*2*/initial value") { }
|
0b2792142c024e1a32075ab4cab0ad08e02eaa16 | client/Commands/Prompts/components/ApplyDamagePrompt.tsx | client/Commands/Prompts/components/ApplyDamagePrompt.tsx | import { Field } from "formik";
import React = require("react");
import { probablyUniqueString } from "../../../../common/Toolbox";
import { CombatantViewModel } from "../../../Combatant/CombatantViewModel";
import { SubmitButton } from "../../../Components/Button";
import { PromptProps } from "./PendingPrompts";
inte... | import { Field } from "formik";
import React = require("react");
import { probablyUniqueString } from "../../../../common/Toolbox";
import { CombatantViewModel } from "../../../Combatant/CombatantViewModel";
import { SubmitButton } from "../../../Components/Button";
import { PromptProps } from "./PendingPrompts";
inte... | Add number type to damage input field | Add number type to damage input field
| TypeScript | mit | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | ---
+++
@@ -39,7 +39,12 @@
{"Apply damage or healing to "}
{combatantViewModels.map(c => c.Name()).join(", ")}:
</label>
- <Field id={fieldLabelId} className="autofocus" name="damageAmount" />
+ <Field
+ id={fieldLabelId}
+ type="number"
+ classN... |
ecefa222047f47a35beff5189c775f9fa567ee3c | src/utils/helpers/qrCodes.ts | src/utils/helpers/qrCodes.ts | export interface QrCodeCapabilities {
useSizeInPath: boolean;
svgIsSupported: boolean;
}
export type QrCodeFormat = 'svg' | 'png';
export const buildQrCodeUrl = (
shortUrl: string,
size: number,
format: QrCodeFormat,
{ useSizeInPath, svgIsSupported }: QrCodeCapabilities,
): string => {
const sizeFragmen... | import { always, cond } from 'ramda';
export interface QrCodeCapabilities {
useSizeInPath: boolean;
svgIsSupported: boolean;
}
export type QrCodeFormat = 'svg' | 'png';
export const buildQrCodeUrl = (
shortUrl: string,
size: number,
format: QrCodeFormat,
{ useSizeInPath, svgIsSupported }: QrCodeCapabilit... | Replace nested ternary conditions with ramda's cond | Replace nested ternary conditions with ramda's cond
| TypeScript | mit | shlinkio/shlink-web-client,shlinkio/shlink-web-client,shlinkio/shlink-web-client,shlinkio/shlink-web-client | ---
+++
@@ -1,3 +1,5 @@
+import { always, cond } from 'ramda';
+
export interface QrCodeCapabilities {
useSizeInPath: boolean;
svgIsSupported: boolean;
@@ -13,7 +15,11 @@
): string => {
const sizeFragment = useSizeInPath ? `/${size}` : `?size=${size}`;
const formatFragment = !svgIsSupported ? '' : `form... |
ba8d6dc3fa19fa3a8733caf1c5a84d7c280fe251 | src/mol-canvas3d/passes/passes.ts | src/mol-canvas3d/passes/passes.ts | /**
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import { DrawPass } from './draw';
import { PickPass } from './pick';
import { MultiSamplePass } from './multi-sample';
import { WebGLContext } from '../../mol... | /**
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import { DrawPass } from './draw';
import { PickPass } from './pick';
import { MultiSamplePass } from './multi-sample';
import { WebGLContext } from '../../mol... | Fix "empty textures" error on empty canvas | Fix "empty textures" error on empty canvas
| TypeScript | mit | molstar/molstar,molstar/molstar,molstar/molstar | ---
+++
@@ -24,7 +24,10 @@
updateSize() {
const { gl } = this.webgl;
- this.draw.setSize(gl.drawingBufferWidth, gl.drawingBufferHeight);
+ // Avoid setting dimensions to 0x0 because it causes "empty textures are not allowed" error.
+ const width = Math.max(gl.drawingBufferWidth, 2... |
99df7eac6b8254d30af2b2b5cf63b6c057e5d0d9 | types/shell-quote/index.d.ts | types/shell-quote/index.d.ts | // Type definitions for shell-quote 1.6
// Project: https://github.com/substack/node-shell-quote
// Definitions by: Jason Cheatham <https://github.com/jason0x43>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
export function quote(args: string[]): string;
export function ... | // Type definitions for shell-quote 1.6
// Project: https://github.com/substack/node-shell-quote
// Definitions by: Jason Cheatham <https://github.com/jason0x43>
// Cameron Diver <https://github.com/CameronDiver>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2... | Fix parse function return in shell-quote | Fix parse function return in shell-quote
Signed-off-by: Cameron Diver <1d572acbfa68c7c6e541c7b840d6b622e5c0dc91@balena.io>
| TypeScript | mit | georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped | ---
+++
@@ -1,12 +1,19 @@
// Type definitions for shell-quote 1.6
// Project: https://github.com/substack/node-shell-quote
// Definitions by: Jason Cheatham <https://github.com/jason0x43>
+// Cameron Diver <https://github.com/CameronDiver>
// Definitions: https://github.com/DefinitelyTyped/Definit... |
7d05b15e33f7075740819c1e7d0305e635acf465 | src/reducers/listFeatureFactory.ts | src/reducers/listFeatureFactory.ts | import {createAction} from "reducers/createAction";
import ActionTypes from "actions/actionTypes";
import assign from "utils/assign";
export class ListFeatureFactory {
private id: string;
private initialState: any;
constructor(public name: string) {
this.id = `ListFeatureFactory__${name}`;
}
public cre... | import {createAction} from "reducers/createAction";
import ActionTypes from "actions/actionTypes";
import assign from "utils/assign";
export class ListFeatureFactory {
private id: string;
private initialState: any;
constructor(public name: string) {
this.id = `ListFeatureFactory__${name}`;
}
public cre... | Add createActions function to class | Add createActions function to class
| TypeScript | mit | szabototo89/kitchen-timer,szabototo89/kitchen-timer,szabototo89/kitchen-timer | ---
+++
@@ -8,6 +8,22 @@
constructor(public name: string) {
this.id = `ListFeatureFactory__${name}`;
+ }
+
+ public createActions() {
+ return {
+ addItem: (item) => ({
+ $id$: this.id,
+ type: ActionTypes.listControl.ADD_ITEM,
+ item
+ }),
+
+ removeItem: (item) => ... |
b6a93b57c5cf9661fc5d32f6505d471a2b6b843e | app/src/app/app-routing.module.ts | app/src/app/app-routing.module.ts | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard } from './auth/guards/auth.guard';
import { UnauthGuard } from './auth/guards/unauth.guard';
import { HomePage, ProjectPage, LocalePage, ProjectKeysPage } from './pages';
import { LoginComponent, Regis... | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard } from './auth/guards/auth.guard';
import { UnauthGuard } from './auth/guards/unauth.guard';
import { HomePage, ProjectPage, LocalePage, ProjectKeysPage } from './pages';
import { LoginComponent, Regis... | Revert to canActivate, unexpected behaviour with canLoad | Revert to canActivate, unexpected behaviour with canLoad
| TypeScript | mit | anthonynsimon/parrot,todes1/parrot,anthonynsimon/parrot,todes1/parrot,todes1/parrot,todes1/parrot,todes1/parrot,anthonynsimon/parrot,anthonynsimon/parrot,anthonynsimon/parrot,todes1/parrot,anthonynsimon/parrot | ---
+++
@@ -12,10 +12,10 @@
const appRoutes: Routes = [
{ path: 'register', component: RegisterComponent, canActivate: [UnauthGuard] },
{ path: 'login', component: LoginComponent, canActivate: [UnauthGuard] },
- { path: 'projects', component: HomePage, canLoad: [AuthGuard] },
- { path: 'projects/:pro... |
851f8a8756e8735a82d7220b48d766c2cba28391 | components/input-number/index.tsx | components/input-number/index.tsx | import React from 'react';
import classNames from 'classnames';
import RcInputNumber from 'rc-input-number';
export interface InputNumberProps {
prefixCls?: string;
min?: number;
max?: number;
value?: number;
step?: number | string;
defaultValue?: number;
onChange?: (value: number | string | undefined) =... | import React from 'react';
import classNames from 'classnames';
import RcInputNumber from 'rc-input-number';
export interface InputNumberProps {
prefixCls?: string;
min?: number;
max?: number;
value?: number;
step?: number | string;
defaultValue?: number;
onChange?: (value: number | string | undefined) =... | Add missing props(parser) into InputNumberProps | Add missing props(parser) into InputNumberProps
| TypeScript | mit | liekkas/ant-design,icaife/ant-design,mitchelldemler/ant-design,mitchelldemler/ant-design,ant-design/ant-design,zheeeng/ant-design,zheeeng/ant-design,havefive/ant-design,liekkas/ant-design,marswong/ant-design,vgeyi/ant-design,liekkas/ant-design,mitchelldemler/ant-design,elevensky/ant-design,vgeyi/ant-design,ant-design/a... | ---
+++
@@ -13,6 +13,7 @@
disabled?: boolean;
size?: 'large' | 'small' | 'default';
formatter?: (value: number | string | undefined) => string;
+ parser?: (displayValue: string | undefined) => number;
placeholder?: string;
style?: React.CSSProperties;
className?: string; |
0e60272c02155cd8fb7e243fe5479caa5772d52e | spec/performance/performance-suite.ts | spec/performance/performance-suite.ts | import { runBenchmarks } from './support/runner';
import { BenchmarkConfig, BenchmarkFactories } from './support/async-bench';
import { QUERY_BENCHMARKS } from './profiling/query-pipeline.perf';
import { COMPARISON } from './comparison/comparison';
import { runComparisons } from './support/compare-runner';
import { Gra... | import { runBenchmarks } from './support/runner';
import { BenchmarkConfig, BenchmarkFactories } from './support/async-bench';
import { QUERY_BENCHMARKS } from './profiling/query-pipeline.perf';
import { COMPARISON } from './comparison/comparison';
import { runComparisons } from './support/compare-runner';
import { Gra... | Stop test server after benchmarks are run | Stop test server after benchmarks are run
| TypeScript | mit | AEB-labs/graphql-weaver,AEB-labs/graphql-weaver | ---
+++
@@ -4,8 +4,6 @@
import { COMPARISON } from './comparison/comparison';
import { runComparisons } from './support/compare-runner';
import { GraphQLHTTPTestEndpoint } from '../helpers/grapqhl-http-test/graphql-http-test-endpoint';
-
-new GraphQLHTTPTestEndpoint().start(1337);
const benchmarks: BenchmarkFac... |
56bdfc3b8aafca86016fde54f280faf1da86134f | src/app/pages/measure/measure.module.ts | src/app/pages/measure/measure.module.ts | import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { MeasureReportPageModule } from './measure-report/measure-report.module';
import { MeasureRoutingModule } from './measure-routing... | import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { MeasureReportPageModule } from './measure-report/measure-report.module';
import { MeasureRoutingModule } from './measure-routing... | Fix build with new measure steps page | Fix build with new measure steps page
| TypeScript | apache-2.0 | openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile | ---
+++
@@ -6,7 +6,7 @@
import { MeasureReportPageModule } from './measure-report/measure-report.module';
import { MeasureRoutingModule } from './measure-routing.module';
import { MeasureScanPageModule } from './measure-scan/measure-scan.module';
-import { MeasureStepsPage } from './measure-steps/measure-steps.pag... |
11fed58b5a9410c9ad3db31f506a7827e814d283 | src/app/ui/ui-hint/ui-hint.component.ts | src/app/ui/ui-hint/ui-hint.component.ts | import { Component, OnInit, Input } from '@angular/core';
@Component({
selector: 'app-ui-hint',
templateUrl: './ui-hint.component.html',
styleUrls: ['./ui-hint.component.scss']
})
export class UiHintComponent {
@Input() hint: string;
@Input() placement = 'top';
@Input() triggers = 'focus';
}
| import { Component, OnInit, Input } from '@angular/core';
@Component({
selector: 'app-ui-hint',
templateUrl: './ui-hint.component.html',
styleUrls: ['./ui-hint.component.scss']
})
export class UiHintComponent {
@Input() hint: string;
@Input() placement = 'top';
@Input() triggers = 'click';
}
| Change hint trigger to click for browsers | Change hint trigger to click for browsers
| TypeScript | mit | EvictionLab/eviction-maps,EvictionLab/eviction-maps,EvictionLab/eviction-maps,EvictionLab/eviction-maps | ---
+++
@@ -8,5 +8,5 @@
export class UiHintComponent {
@Input() hint: string;
@Input() placement = 'top';
- @Input() triggers = 'focus';
+ @Input() triggers = 'click';
} |
305a75963e7343b9b66636ff3a748823787348fb | tests/__tests__/tsx-compilation.spec.ts | tests/__tests__/tsx-compilation.spec.ts | import runJest from '../__helpers__/runJest';
describe('TSX Compilation', () => {
it('Should compile a button succesfully', () => {
const result = runJest('../button', ['--no-cache', '-u']);
const stderr = result.stderr.toString();
const output = result.output.toString();
expect(result.status).toBe... | import runJest from '../__helpers__/runJest';
describe('TSX Compilation', () => {
it('Should compile a button succesfully', () => {
const result = runJest('../button', ['--no-cache', '-u']);
const stderr = result.stderr.toString();
const output = result.output.toString();
expect(result.status).toBe... | Fix line number in another test | Fix line number in another test
| TypeScript | mit | kulshekhar/ts-jest,kulshekhar/ts-jest | ---
+++
@@ -10,6 +10,6 @@
expect(result.status).toBe(1);
expect(output).toContain('1 failed, 1 passed, 2 total');
expect(stderr).toContain('Button renders correctly');
- expect(stderr).toContain('BadButton should throw an error on line 18');
+ expect(stderr).toContain('BadButton should throw an e... |
fb1dc9eee1c3d300dd7ddbe2f5dd5c2892547d7d | examples/hello-world/src/app.ts | examples/hello-world/src/app.ts | import { Update, View, defineComponent } from 'myra/core'
import { div } from 'myra/html/elements'
/**
* Model
*/
type Model = string | undefined
const model: Model = undefined
/**
* Update
*/
const mount: Update<Model, any> = (_) => 'Hello world!'
/**
* View
*/
const view: View<Model> = (model) => div(mod... | import { Update, View, defineComponent } from 'myra/core'
import { p } from 'myra/html/elements'
/**
* Model
*/
type Model = string | undefined
const model: Model = undefined
/**
* Update
*/
const mount: Update<Model, any> = (_) => 'Hello world!'
/**
* View
*/
const view: View<Model> = (model) => p(model)
... | Replace div with p tag | Replace div with p tag
| TypeScript | mit | jhdrn/myra,jhdrn/myra | ---
+++
@@ -1,5 +1,5 @@
import { Update, View, defineComponent } from 'myra/core'
-import { div } from 'myra/html/elements'
+import { p } from 'myra/html/elements'
/**
@@ -18,7 +18,7 @@
/**
* View
*/
-const view: View<Model> = (model) => div(model)
+const view: View<Model> = (model) => p(model)
/** |
541f407a84874f6b0d5330475062a800a4db2571 | tests/__tests__/jest-hoist.spec.ts | tests/__tests__/jest-hoist.spec.ts | import runJest from '../__helpers__/runJest';
describe('Jest.mock() calls', () => {
it('Should run all tests using jest.mock() underneath the imports succesfully.', () => {
const result = runJest('../hoist-test', ['--no-cache']);
const output = result.output.toString();
expect(output).toC... | import runJest from '../__helpers__/runJest';
describe('Jest.mock() calls', () => {
it('Should run all tests using jest.mock() underneath the imports succesfully.', () => {
const result = runJest('../hoist-test', ['--no-cache']);
const output = result.output.toString();
expect(output).toC... | Add column numbers to the hoist test | Add column numbers to the hoist test
| TypeScript | mit | kulshekhar/ts-jest,kulshekhar/ts-jest | ---
+++
@@ -17,9 +17,11 @@
const stderr = result.stderr.toString();
expect(result.status).toBe(1);
- expect(stderr).toContain('Hello.ts:22');
+ expect(stderr).toContain('Hello.ts:22:11');
+
// The actual error occurs at line 16. However, because the mock calls
// ar... |
17ec07595a8592f099c9aa6479d52506b2f40973 | polygerrit-ui/app/styles/gr-modal-styles.ts | polygerrit-ui/app/styles/gr-modal-styles.ts | /**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {css} from 'lit';
export const modalStyles = css`
dialog {
padding: 0;
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
background: var(--dialog-background-color);
box-shadow:... | /**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {css} from 'lit';
export const modalStyles = css`
dialog {
padding: 0;
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
background: var(--dialog-background-color);
box-shadow:... | Add missing styles from main.css | Add missing styles from main.css
Dialog exists in the top-layer outside the body hence the styles
in main.css were not being applied resulting in incorrect text
color in dark theme.
Google-bug-id: b/257083628
Release-Notes: skip
Change-Id: I5604c85742fa5ecf3b4a5eebc3d6a42e41282b5e
| TypeScript | apache-2.0 | GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit | ---
+++
@@ -12,7 +12,19 @@
border-radius: var(--border-radius);
background: var(--dialog-background-color);
box-shadow: var(--elevation-level-5);
+
+ /*
+ * These styles are taken from main.css
+ * Dialog exists in the top-layer outside the body hence the styles
+ * in main.css were not ... |
73b0962c2b376acc65417f0c99e049e1b16ac37f | src/app/shared/spinner/spinner.component.ts | src/app/shared/spinner/spinner.component.ts | import {Component, Input, OnDestroy} from 'angular2/core';
@Component({
selector: 'spinner',
styleUrls: ['app/shared/spinner/spinner.component.css'],
template: `
<div *ngIf="isSpinning" class="spinner" [class.inverse]="inverse"></div>
`
})
export class SpinnerComponent implements OnDestroy {
private ... | import {Component, Input, OnDestroy} from 'angular2/core';
@Component({
selector: 'spinner',
styleUrls: ['app/shared/spinner/spinner.component.css'],
template: `
<div *ngIf="isSpinning" class="spinner" [class.inverse]="inverse"></div>
`
})
export class SpinnerComponent implements OnDestroy {
private ... | Check for current timeout before calling cancel | Check for current timeout before calling cancel
| TypeScript | agpl-3.0 | PRX/publish.prx.org,PRX/publish.prx.org,PRX/publish.prx.org,PRX/publish.prx.org | ---
+++
@@ -31,8 +31,10 @@
}
private cancelTimeout(): void {
- clearTimeout(this.currentTimeout);
- this.currentTimeout = undefined;
+ if (this.currentTimeout) {
+ clearTimeout(this.currentTimeout);
+ this.currentTimeout = undefined;
+ }
}
ngOnDestroy(): any { |
a148b17bfdc2a226dd2393d0abb8befb3307b941 | packages/components/containers/topBanners/WelcomeV5TopBanner.tsx | packages/components/containers/topBanners/WelcomeV5TopBanner.tsx | import React from 'react';
import { c } from 'ttag';
import { getStaticURL } from '@proton/shared/lib/helpers/url';
import TopBanner from './TopBanner';
import { Href } from '../../components';
const WelcomeV5TopBanner = () => {
const learnMoreLink = (
<Href key="learn-more-link" url={getStaticURL('/news/... | import React from 'react';
import { c } from 'ttag';
import { getStaticURL } from '@proton/shared/lib/helpers/url';
import TopBanner from './TopBanner';
import { Href } from '../../components';
const WelcomeV5TopBanner = () => {
const learnMoreLink = (
<Href key="learn-more-link" className="color-inherit"... | Add color-inherit override to welcome banner | Add color-inherit override to welcome banner
Override the welcome top banner specifically because it uses the norm bg
color
| TypeScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | ---
+++
@@ -7,8 +7,9 @@
const WelcomeV5TopBanner = () => {
const learnMoreLink = (
- <Href key="learn-more-link" url={getStaticURL('/news/updated-proton')}>{c('new_plans: info')
- .t`learn more`}</Href>
+ <Href key="learn-more-link" className="color-inherit" url={getStaticURL('/news/u... |
3038b664044b8bef7da7d740ae54f3d208fc2e0f | packages/graphql-codegen-core/src/schema/resolve-type.ts | packages/graphql-codegen-core/src/schema/resolve-type.ts | import { getNamedType, GraphQLInputType, GraphQLOutputType, GraphQLType } from 'graphql';
import { debugLog } from '../debugging';
export interface ResolvedType {
name: string;
isRequired: boolean;
isArray: boolean;
}
export function isRequired(type: GraphQLOutputType | GraphQLInputType): boolean {
return (St... | import { getNamedType, GraphQLInputType, GraphQLOutputType, GraphQLType } from 'graphql';
import { debugLog } from '../debugging';
export interface ResolvedType {
name: string;
isRequired: boolean;
isArray: boolean;
}
export function isRequired(type: GraphQLOutputType | GraphQLInputType): boolean {
const stri... | Handle lists and non-null properly | Handle lists and non-null properly | TypeScript | mit | dotansimha/graphql-code-generator,dotansimha/graphql-code-generator,dotansimha/graphql-code-generator | ---
+++
@@ -8,7 +8,8 @@
}
export function isRequired(type: GraphQLOutputType | GraphQLInputType): boolean {
- return (String(type)).indexOf('!') > -1;
+ const stringType = String(type)
+ return stringType.lastIndexOf('!') === stringType.length - 1
}
export function isArray(type: GraphQLOutputType | GraphQL... |
eb5eca250e11655a39dcb51bda8213a932cd3bd2 | packages/rev-api-hapi/src/index.ts | packages/rev-api-hapi/src/index.ts |
import * as Hapi from 'hapi';
import { IRevApiOptions, RevApi } from './api/revapi';
let version = require('../package.json').version;
function RevApiPlugin(server: Hapi.Server, options: IRevApiOptions, next: any) {
server.expose('version', version);
server.expose('api', new RevApi(server, options));
nex... |
import * as Hapi from 'hapi';
import { IRevApiOptions, RevApi } from './api/revapi';
let version: string = null;
try {
version = require('./package.json').version;
}
catch (e) {
version = require('../package.json').version;
}
function RevApiPlugin(server: Hapi.Server, options: IRevApiOptions, next: any) {
... | Fix issue with loading version from package.json | Fix issue with loading version from package.json
| TypeScript | mit | RevFramework/rev-framework,RevFramework/rev-framework | ---
+++
@@ -2,7 +2,14 @@
import * as Hapi from 'hapi';
import { IRevApiOptions, RevApi } from './api/revapi';
-let version = require('../package.json').version;
+let version: string = null;
+
+try {
+ version = require('./package.json').version;
+}
+catch (e) {
+ version = require('../package.json').version... |
abbab3dd719f1a509e301f520981dd920f2e72aa | bokehjs/src/coffee/core/util/dom.ts | bokehjs/src/coffee/core/util/dom.ts | import * as _ from "underscore";
export function createElement(type: string, props: { [name: string]: any }, ...children: (string | HTMLElement)[]): HTMLElement {
const elem = document.createElement(type);
for (let k in props) {
let v = props[k];
if (k === "className")
k = "class";
if (k === "cla... | import * as _ from "underscore";
export function createElement(type: string, props: { [name: string]: any }, ...children: (string | HTMLElement)[]): HTMLElement {
let elem;
if (type === "fragment") {
elem = document.createDocumentFragment();
} else {
elem = document.createElement(type);
for (let k in... | Add support for HTML fragments to DOM.createElement() | Add support for HTML fragments to DOM.createElement()
| TypeScript | bsd-3-clause | mindriot101/bokeh,timsnyder/bokeh,schoolie/bokeh,aiguofer/bokeh,stonebig/bokeh,timsnyder/bokeh,draperjames/bokeh,DuCorey/bokeh,philippjfr/bokeh,philippjfr/bokeh,aavanian/bokeh,mindriot101/bokeh,philippjfr/bokeh,ericmjl/bokeh,jakirkham/bokeh,rs2/bokeh,schoolie/bokeh,dennisobrien/bokeh,jakirkham/bokeh,azjps/bokeh,bokeh/b... | ---
+++
@@ -1,18 +1,29 @@
import * as _ from "underscore";
export function createElement(type: string, props: { [name: string]: any }, ...children: (string | HTMLElement)[]): HTMLElement {
- const elem = document.createElement(type);
- for (let k in props) {
- let v = props[k];
- if (k === "className")
- ... |
1e9ab6ef2abfe71454554385589020173ce9638a | resources/assets/lib/utils/html.ts | resources/assets/lib/utils/html.ts | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.
export function createClickCallback(htmlTarget: unknown, reloadDefault = false) {
const target = htmlTarget instanceof HTMLElement ? htmlTarg... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.
export function createClickCallback(target: unknown, reloadIfNotHtml = false) {
if (target instanceof HTMLElement) {
// plain javascript ... | Create own function instead of using executeAction | Create own function instead of using executeAction
The latter will be removed due to it being weird.
| TypeScript | agpl-3.0 | notbakaneko/osu-web,notbakaneko/osu-web,LiquidPL/osu-web,LiquidPL/osu-web,ppy/osu-web,nanaya/osu-web,nanaya/osu-web,ppy/osu-web,LiquidPL/osu-web,ppy/osu-web,nanaya/osu-web,notbakaneko/osu-web,ppy/osu-web,LiquidPL/osu-web,LiquidPL/osu-web,nanaya/osu-web,notbakaneko/osu-web,ppy/osu-web,notbakaneko/osu-web,nanaya/osu-web | ---
+++
@@ -1,10 +1,21 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.
-export function createClickCallback(htmlTarget: unknown, reloadDefault = false) {
- const target = htmlTarget ... |
b96794d8e76b25dd9d29cb92fc1673c793ab4ace | src/db/connector.ts | src/db/connector.ts | /*
Copyright 2018 matrix-appservice-discord
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | /*
Copyright 2018 matrix-appservice-discord
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | Add a type for SQLTYPES | Add a type for SQLTYPES
| TypeScript | apache-2.0 | Half-Shot/matrix-appservice-discord | ---
+++
@@ -14,12 +14,14 @@
limitations under the License.
*/
+type SQLTYPES = number | boolean | string | null;
+
export interface ISqlCommandParameters {
- [paramKey: string]: number | boolean | string | Promise<number | boolean | string>;
+ [paramKey: string]: SQLTYPES | Promise<SQLTYPES>;
}
export ... |
ea8e9d64ad04a890cc6240baca6863b9e751d927 | lib/cli/src/generators/SVELTE/index.ts | lib/cli/src/generators/SVELTE/index.ts | import { baseGenerator, Generator } from '../baseGenerator';
const generator: Generator = async (packageManager, npmOptions, options) => {
baseGenerator(packageManager, npmOptions, options, 'svelte', {
extraPackages: ['svelte', 'svelte-loader'],
});
};
export default generator;
| import fse from 'fs-extra';
import { logger } from '@storybook/node-logger';
import { baseGenerator, Generator } from '../baseGenerator';
const generator: Generator = async (packageManager, npmOptions, options) => {
await baseGenerator(packageManager, npmOptions, options, 'svelte', {
extraPackages: ['svelte', '... | Improve sb init for svelte | Improve sb init for svelte
| TypeScript | mit | kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook | ---
+++
@@ -1,9 +1,47 @@
+import fse from 'fs-extra';
+import { logger } from '@storybook/node-logger';
+
import { baseGenerator, Generator } from '../baseGenerator';
const generator: Generator = async (packageManager, npmOptions, options) => {
- baseGenerator(packageManager, npmOptions, options, 'svelte', {
+ ... |
0433e484d0c022b3cd6f6993dbd0570ab3f676f4 | src/app/js/component/feed-list.tsx | src/app/js/component/feed-list.tsx | import * as ReactDOM from "react-dom";
import * as React from "react";
import { CustomComponent } from "./../custom-component";
import { ComponentsRefs } from "./../components-refs";
import { Feed, FeedProp } from "./../component/feed";
export class FeedList extends CustomComponent<{}, FeedListState> {
construct... | import * as ReactDOM from "react-dom";
import * as React from "react";
import { CustomComponent } from "./../custom-component";
import { ComponentsRefs } from "./../components-refs";
import { Feed, FeedProp } from "./feed";
export class FeedList extends CustomComponent<{}, FeedListState> {
feedComponents: Feed[]... | Add key to array rendering | Add key to array rendering
| TypeScript | mit | Xstoudi/alduin,Xstoudi/alduin,Xstoudi/alduin | ---
+++
@@ -3,9 +3,11 @@
import { CustomComponent } from "./../custom-component";
import { ComponentsRefs } from "./../components-refs";
-import { Feed, FeedProp } from "./../component/feed";
+import { Feed, FeedProp } from "./feed";
export class FeedList extends CustomComponent<{}, FeedListState> {
+
+ fee... |
00937579bc5e48013b91e1ab2594728d4dcd51b6 | src/app/services/app-insights.service.ts | src/app/services/app-insights.service.ts | import { Injectable } from '@angular/core';
import { AppInsights } from 'applicationinsights-js';
import { environment } from '../../environments/environment';
import { AdalService } from 'adal-angular4';
@Injectable()
export class AppInsightsService {
private config: Microsoft.ApplicationInsights.IConfig = {
... | import { Injectable } from '@angular/core';
import { AppInsights } from 'applicationinsights-js';
import { environment } from '../../environments/environment';
import { AdalService } from 'adal-angular4';
@Injectable()
export class AppInsightsService {
private config: Microsoft.ApplicationInsights.IConfig = {
... | Add user data to app insights telemetry | Add user data to app insights telemetry
| TypeScript | mit | PaulGilchrist/Angular2NodeTemplate,PaulGilchrist/angular-template,PaulGilchrist/angular-template,PaulGilchrist/angular-template,PaulGilchrist/Angular2NodeTemplate,PaulGilchrist/Angular2NodeTemplate | ---
+++
@@ -14,26 +14,35 @@
constructor(public adalService: AdalService) {
if (!AppInsights.config) {
AppInsights.downloadAndSetup(this.config);
- if(adalService.userInfo.authenticated) {
- AppInsights.setAuthenticatedUserContext(adalService.userInfo.profile.upn);
... |
4d58e433773a1e64a3221330f7ce2a9434b11b70 | client/app/scripts/liveblog-common/components/modal/withContext.tsx | client/app/scripts/liveblog-common/components/modal/withContext.tsx | import React from 'react';
import ModalContext from './context';
// eslint-disable-next-line
import { IModalContext } from './types';
const withModalContext = <T extends object>(Component: React.ComponentType<T>): React.ComponentType<T> => {
class ComponentHOC extends React.Component<T> {
modal: React.Ref... | import React from 'react';
import ModalContext from './context';
// eslint-disable-next-line
import { IModalContext } from './types';
const withModalContext = <T extends object>(Component: React.ComponentType<T>): React.ComponentType<T> => {
class ComponentHOC extends React.Component<T> {
modal: React.Ref... | Fix tslint issue in test env | Fix tslint issue in test env
This issue is not possible to be reproduced in local. I have tried so many things and I was not able to reproduce it :(
| TypeScript | agpl-3.0 | liveblog/liveblog,liveblog/liveblog,liveblog/liveblog,liveblog/liveblog,liveblog/liveblog | ---
+++
@@ -46,7 +46,7 @@
}
}
- return ComponentHOC;
+ return ComponentHOC as any;
};
export default withModalContext; |
061f2efde8d3b81fbf4d5d419627b83275f0d580 | server/services/database/database.service.ts | server/services/database/database.service.ts | import { Service } from 'ts-express-decorators';
import { IDatabaseConnector, QueryType } from './database.connector';
import { SQLiteConnector } from './sqlite.connector';
import { populationQueries } from './population-queries';
@Service()
export class DatabaseService {
private databaseConnector: IDatabaseConnect... | import { Service } from 'ts-express-decorators';
import { IDatabaseConnector, QueryType } from './database.connector';
import { SQLiteConnector } from './sqlite.connector';
import { populationQueries } from './population-queries';
@Service()
export class DatabaseService {
private databaseConnector: IDatabaseConnect... | Add comment and update signature type | Add comment and update signature type
| TypeScript | mit | DavidLevayer/countable,DavidLevayer/countable,DavidLevayer/countable | ---
+++
@@ -17,19 +17,43 @@
this.databaseConnector = db;
}
+ /**
+ * Executes query with given params and returns rows
+ * @param query
+ * @param params
+ * @returns {Promise<any[]>}
+ */
public select(query: string, ...params: any[]): Promise<any[]> {
return this.databaseConnector.execu... |
7305d45c27003db740e1da07e50371e5a01b83f6 | src/app/loadout/known-values.ts | src/app/loadout/known-values.ts | import {
armor2PlugCategoryHashes,
armor2PlugCategoryHashesByName,
D2ArmorStatHashByName,
} from 'app/search/d2-known-values';
import { PlugCategoryHashes } from 'data/d2/generated-enums';
export const armorStatHashes = [
D2ArmorStatHashByName.intellect,
D2ArmorStatHashByName.discipline,
D2ArmorStatHashByN... | import {
armor2PlugCategoryHashes,
armor2PlugCategoryHashesByName,
D2ArmorStatHashByName,
} from 'app/search/d2-known-values';
import raidModPlugCategoryHashes from 'data/d2/raid-mod-plug-category-hashes.json';
export const armorStatHashes = [
D2ArmorStatHashByName.intellect,
D2ArmorStatHashByName.discipline... | Use generated raid plug category hashes. | Use generated raid plug category hashes.
| TypeScript | mit | delphiactual/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,delphiactual/DIM,delphiactual/DIM,DestinyItemManager/DIM,delphiactual/DIM,DestinyItemManager/DIM | ---
+++
@@ -3,7 +3,7 @@
armor2PlugCategoryHashesByName,
D2ArmorStatHashByName,
} from 'app/search/d2-known-values';
-import { PlugCategoryHashes } from 'data/d2/generated-enums';
+import raidModPlugCategoryHashes from 'data/d2/raid-mod-plug-category-hashes.json';
export const armorStatHashes = [
D2ArmorS... |
e141201412fe441cc16b019530100678c6877733 | 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: ... | Mark up the undo section as a group | Mark up the undo section as a group
See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_group_role
| TypeScript | mit | say25/desktop,kactus-io/kactus,BugTesterTest/desktops,artivilla/desktop,hjobrien/desktop,shiftkey/desktop,hjobrien/desktop,BugTesterTest/desktops,desktop/desktop,j-f1/forked-desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,BugTesterTest/desktops,artivilla/desktop,j-f1/forked-desktop,hjobrien/desktop,gengj... | ---
+++
@@ -20,7 +20,7 @@
public render() {
const authorDate = this.props.commit.author.date
return (
- <div id='undo-commit'>
+ <div id='undo-commit' role='group' aria-label='Undo commit'>
<div className='commit-info'>
<div className='ago'>Committed <RelativeTime date={auth... |
3d7f2231f16f3dea6315f74b25a401d1e05fba81 | app/src/container/SignIn.tsx | app/src/container/SignIn.tsx | import * as React from "react";
import { Github } from "react-feather";
import { connect } from "react-redux";
import { Redirect } from "react-router-dom";
import actionCreators from "../redux/sign-in";
import "./style/SignIn.css";
interface IProps {
errorMessage: string;
halfway: boolean;
signedIn: boole... | import * as React from "react";
import { Github } from "react-feather";
import { connect } from "react-redux";
import { Redirect } from "react-router-dom";
import actionCreators from "../redux/sign-in";
import "./style/SignIn.css";
interface IProps {
error: Error;
halfway: boolean;
signedIn: boolean;
... | Fix error prop of sign-in page | Fix error prop of sign-in page
| TypeScript | mit | raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d | ---
+++
@@ -7,7 +7,7 @@
import "./style/SignIn.css";
interface IProps {
- errorMessage: string;
+ error: Error;
halfway: boolean;
signedIn: boolean;
signIn: () => void; |
7b345cd513d7e56dc15134df67c44635bee42bf1 | packages/bms/src/notes/channels.ts | packages/bms/src/notes/channels.ts | export const IIDX_P1 = {
'11': '1',
'12': '2',
'13': '3',
'14': '4',
'15': '5',
'18': '6',
'19': '7',
'16': 'SC',
}
export const IIDX_DP = {
'11': 'L1',
'12': 'L2',
'13': 'L3',
'14': 'L4',
'15': 'l5',
'18': 'l6',
'19': 'L7',
'16': 'LSC',
'21': 'R1',
'22': 'R2',
'23': 'R3',
'24'... | export const IIDX_P1 = {
'11': '1',
'12': '2',
'13': '3',
'14': '4',
'15': '5',
'18': '6',
'19': '7',
'16': 'SC',
}
export const IIDX_DP = {
'11': '1',
'12': '2',
'13': '3',
'14': '4',
'15': '5',
'18': '6',
'19': '7',
'16': 'SC',
'21': '8',
'22': '9',
'23': '10',
'24': '11',
... | Update keymap number for DP | Update keymap number for DP
| TypeScript | agpl-3.0 | bemusic/bemuse,bemusic/bemuse,bemusic/bemuse,bemusic/bemuse,bemusic/bemuse | ---
+++
@@ -10,21 +10,21 @@
}
export const IIDX_DP = {
- '11': 'L1',
- '12': 'L2',
- '13': 'L3',
- '14': 'L4',
- '15': 'l5',
- '18': 'l6',
- '19': 'L7',
- '16': 'LSC',
+ '11': '1',
+ '12': '2',
+ '13': '3',
+ '14': '4',
+ '15': '5',
+ '18': '6',
+ '19': '7',
+ '16': 'SC',
- '21': 'R1',
- '22':... |
4277d91aa4acc36b18a5232c0661a06a4b5f3c54 | app/src/setupTests.ts | app/src/setupTests.ts | import "raf/polyfill";
import * as enzyme from "enzyme";
import Adapter = require("enzyme-adapter-react-16");
enzyme.configure({ adapter: new Adapter() });
class LocalStorageMock {
// https://stackoverflow.com/questions/32911630/how-do-i-deal-with-localstorage-in-jest-tests
private store: { [key: string]: a... | import "raf/polyfill";
import * as enzyme from "enzyme";
import Adapter = require("enzyme-adapter-react-16");
enzyme.configure({ adapter: new Adapter() });
class LocalStorageMock {
// https://stackoverflow.com/questions/32911630/how-do-i-deal-with-localstorage-in-jest-tests
private store: { [key: string]: a... | Set up polyfill of matchMedia | Set up polyfill of matchMedia
| TypeScript | mit | raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d | ---
+++
@@ -36,3 +36,5 @@
// Do nothing.
}
};
+
+(window as any).matchMedia = () => ({ matches: true }); |
52a2e103e0e9221b281d89ce08c3b3e8c12069e4 | src/client/src/rt-components/Environment/EnvironmentContext.tsx | src/client/src/rt-components/Environment/EnvironmentContext.tsx | import React from 'react'
export interface EnvironmentValue<Provider extends Window = Window> {
provider: Provider
openfin?: Provider | null
[key: string]: Provider | null
}
export interface Window {
type: string | 'desktop' | 'browser'
platform: string | 'openfin' | 'browser'
maximize: () => void
minim... | import React from 'react'
export interface EnvironmentValue<Provider extends WindowProvider = WindowProvider> {
provider: Provider
openfin?: Provider | null
[key: string]: Provider | null
}
export interface WindowProvider {
type: string | 'desktop' | 'browser'
platform: string | 'openfin' | 'browser'
maxi... | Rename the Window type to WindowProvider | Rename the Window type to WindowProvider
| TypeScript | apache-2.0 | AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud | ---
+++
@@ -1,12 +1,12 @@
import React from 'react'
-export interface EnvironmentValue<Provider extends Window = Window> {
+export interface EnvironmentValue<Provider extends WindowProvider = WindowProvider> {
provider: Provider
openfin?: Provider | null
[key: string]: Provider | null
}
-export interfa... |
fd5c7bbafb436fa8a30209ea6e65d2ca71d159af | components/Header.tsx | components/Header.tsx | import Link from "next/link"
import { Fragment } from "react"
import HorizontalRule from "./HorizontalRule"
const Header = () => (
<Fragment>
<header>
<nav>
<Link href="/">
<a>Home</a>
</Link>
<Link href="/apps/">
<a>Apps</a>
</Link>
<Link href="/... | import Link from "next/link"
import { Fragment } from "react"
import HorizontalRule from "./HorizontalRule"
const Header = () => (
<Fragment>
<header>
<nav>
<Link href="/">
<a>Home</a>
</Link>
<Link href="/apps">
<a>Apps</a>
</Link>
<Link href="/p... | Remove trailing slash from /apps and /posts links | Remove trailing slash from /apps and /posts links
| TypeScript | mit | JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk | ---
+++
@@ -9,10 +9,10 @@
<Link href="/">
<a>Home</a>
</Link>
- <Link href="/apps/">
+ <Link href="/apps">
<a>Apps</a>
</Link>
- <Link href="/posts/">
+ <Link href="/posts">
<a>Posts</a>
</Link>
</nav> |
eae82cc289c5a3935c829765d6fed621ac874f22 | frontend/src/app/profile/index.tsx | frontend/src/app/profile/index.tsx | /** @jsx jsx */
import { useQuery } from "@apollo/react-hooks";
import { RouteComponentProps } from "@reach/router";
import { Box } from "@theme-ui/components";
import { FormattedMessage } from "react-intl";
import { jsx } from "theme-ui";
import { MyProfileQuery } from "../../generated/graphql-backend";
import MY_PRO... | /** @jsx jsx */
import { useQuery } from "@apollo/react-hooks";
import { navigate, RouteComponentProps } from "@reach/router";
import { Box } from "@theme-ui/components";
import { useEffect } from "react";
import { FormattedMessage } from "react-intl";
import { jsx } from "theme-ui";
import { useCurrentLanguage } from... | Fix issue when not logged in | Fix issue when not logged in
| TypeScript | mit | patrick91/pycon,patrick91/pycon | ---
+++
@@ -1,20 +1,36 @@
/** @jsx jsx */
import { useQuery } from "@apollo/react-hooks";
-import { RouteComponentProps } from "@reach/router";
+import { navigate, RouteComponentProps } from "@reach/router";
import { Box } from "@theme-ui/components";
+import { useEffect } from "react";
import { FormattedMessage ... |
81003c50c09539a7cecf2e7098fea672a5682ab7 | quicklaunch_ru.ts | quicklaunch_ru.ts | <?xml version="1.0" ?><!DOCTYPE TS><TS language="ru" version="2.0">
<context>
<name>QuickLaunchButton</name>
<message>
<source>Move left</source>
<translation>Сдвинуть влево</translation>
</message>
<message>
<source>Move right</source>
<translation>Сдвинуть вправо</trans... | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ru">
<context>
<name>LxQtQuickLaunch</name>
<message>
<location filename="../lxqtquicklaunch.cpp" line="222"/>
<source>Drop Error</source>
<translation>Ошибка бросания</translation>
</message>
<messa... | Revert "Commit from LXDE Pootle server by user LStranger.: 391 of 391 strings translated (0 need review)." | Revert "Commit from LXDE Pootle server by user LStranger.: 391 of 391 strings translated (0 need review)."
This reverts commit d538764d91b1cf3ea993cdf0d6200eea2b2c9384.
It appeared this change was wrong because it was out of sync.
| TypeScript | lgpl-2.1 | lxde/lxqt-l10n | ---
+++
@@ -1,28 +1,42 @@
-<?xml version="1.0" ?><!DOCTYPE TS><TS language="ru" version="2.0">
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="ru">
+<context>
+ <name>LxQtQuickLaunch</name>
+ <message>
+ <location filename="../lxqtquicklaunch.cpp" line="222"/>
+ ... |
60fc2923ba5eef81a292c5ad892bd0f7f59447cd | src/components/Output.tsx | src/components/Output.tsx | export const Output = ({
result,
reset,
}: {
result: string;
reset: () => void;
}) => {
return (
<>
<div className="results">
<button data-testid="reset" onClick={reset} className="button">
Restart
</button>
<a
href={`data:text/plain;charset=utf-8,${encode... | export const Output = ({
result,
reset,
}: {
result: string;
reset: () => void;
}) => {
return (
<>
<div className="results">
<button
data-testid="reset"
onClick={reset}
className="button--secondary"
>
Restart
</button>
<a
... | Fix text restart btn styling | Fix text restart btn styling
| TypeScript | mit | whostolemyhat/ascii-react,whostolemyhat/ascii-react,whostolemyhat/ascii-react | ---
+++
@@ -8,7 +8,11 @@
return (
<>
<div className="results">
- <button data-testid="reset" onClick={reset} className="button">
+ <button
+ data-testid="reset"
+ onClick={reset}
+ className="button--secondary"
+ >
Restart
</button>
... |
8cf34a1a2de5f7abc5d022f36122e74f4a2d84a1 | frontend/src/app/code-snippet/code-snippet.component.spec.ts | frontend/src/app/code-snippet/code-snippet.component.spec.ts | /*
* Copyright (c) 2014-2021 Bjoern Kimminich.
* SPDX-License-Identifier: MIT
*/
import { TranslateModule } from '@ngx-translate/core'
import { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material/dialog'
import { HttpClientTestingModule } from '@angular/common/http/testing'
import { MatDividerM... | /*
* Copyright (c) 2014-2021 Bjoern Kimminich.
* SPDX-License-Identifier: MIT
*/
import { TranslateModule } from '@ngx-translate/core'
import { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material/dialog'
import { HttpClientTestingModule } from '@angular/common/http/testing'
import { MatDividerM... | Add missing cookie service to test bed | Add missing cookie service to test bed
| TypeScript | mit | bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop | ---
+++
@@ -11,14 +11,16 @@
import { CodeSnippetComponent } from './code-snippet.component'
import { CodeSnippetService } from '../Services/code-snippet.service'
+import { CookieModule, CookieService } from 'ngx-cookie'
-describe('UserDetailsComponent', () => {
+describe('CodeSnippetComponent', () => {
let c... |
16a5177178c67999bc4bd7e8f7e60eaafe395da4 | packages/components/components/miniCalendar/LocalizedMiniCalendar.tsx | packages/components/components/miniCalendar/LocalizedMiniCalendar.tsx | import React, { useMemo, useCallback } from 'react';
import { c } from 'ttag';
import { getFormattedMonths, getFormattedWeekdays, getWeekStartsOn } from 'proton-shared/lib/date/date';
import { dateLocale } from 'proton-shared/lib/i18n';
import { format } from 'date-fns';
import MiniCalendar, { Props as MiniCalProps } ... | import React, { useMemo, useCallback } from 'react';
import { c } from 'ttag';
import { getFormattedMonths, getFormattedWeekdays, getWeekStartsOn } from 'proton-shared/lib/date/date';
import { dateLocale } from 'proton-shared/lib/i18n';
import { format } from 'date-fns';
import MiniCalendar, { Props as MiniCalProps } ... | Use standalone version for months in minicalendar | Use standalone version for months in minicalendar
CALWEB-2393
| TypeScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | ---
+++
@@ -18,7 +18,7 @@
}, [dateLocale]);
const months = useMemo(() => {
- return getFormattedMonths('MMMM', { locale: dateLocale });
+ return getFormattedMonths('LLLL', { locale: dateLocale });
}, [dateLocale]);
const formatDay = useCallback( |
863a4d09cf218ea032d171cdf56269a07d22990b | src/components/ItemContext.spec.tsx | src/components/ItemContext.spec.tsx | import { mount } from 'enzyme';
import * as React from 'react';
import { Consumer, Provider } from './ItemContext';
describe('ItemContext', () => {
it('Propagates uuid by context', () => {
const mock = jest.fn(() => null);
const uuid = 'foo';
mount(
<Provider uuid={uuid}>
... | import * as React from 'react';
import { render } from 'react-testing-library';
import Accordion from './Accordion';
import { Consumer, Provider } from './ItemContext';
describe('ItemContext', () => {
it('renders children props', () => {
const { getByText } = render(
<Accordion>
... | Remove implementation details from ItemContext tests | Remove implementation details from ItemContext tests
| TypeScript | mit | springload/react-accessible-accordion,springload/react-accessible-accordion,springload/react-accessible-accordion | ---
+++
@@ -1,26 +1,18 @@
-import { mount } from 'enzyme';
import * as React from 'react';
+import { render } from 'react-testing-library';
+import Accordion from './Accordion';
import { Consumer, Provider } from './ItemContext';
describe('ItemContext', () => {
- it('Propagates uuid by context', () => {
- ... |
f52c214fb708ea4d7ded8131fadc25cf81135fc7 | packages/react-alert/src/index.tsx | packages/react-alert/src/index.tsx | import React from 'react';
import classnames from 'classnames';
import Modal, { ModalProps } from '@uiw/react-modal';
import { IProps } from '@uiw/utils';
import './style/index.less';
export interface AlertProps extends IProps, ModalProps {
width?: number;
}
export default (props: AlertProps = {}) => {
const { pr... | import React from 'react';
import classnames from 'classnames';
import Modal, { ModalProps } from '@uiw/react-modal';
import { IProps } from '@uiw/utils';
import './style/index.less';
export interface AlertProps extends IProps, ModalProps {
width?: number;
}
export default (props: AlertProps = {}) => {
const { pr... | Modify the value of width props. | fix(Alert): Modify the value of width props.
| TypeScript | mit | uiw-react/uiw,uiw-react/uiw | ---
+++
@@ -9,9 +9,13 @@
}
export default (props: AlertProps = {}) => {
- const { prefixCls = 'w-alert', className, ...other } = props;
+ const { prefixCls = 'w-alert', className, width = 400, ...other } = props;
return (
- <Modal {...other} className={classnames(prefixCls, className)}>
+ <Modal
+ ... |
b0fb66134045b174c192e57bca62a81c56b5c7d1 | packages/components/containers/referral/rewards/RewardSection.tsx | packages/components/containers/referral/rewards/RewardSection.tsx | import { c } from 'ttag';
import { classnames, Loader, SettingsSectionWide } from '@proton/components';
import { useReferralInvitesContext } from '../ReferralInvitesContext';
import RewardsProgress from './RewardsProgress';
import RewardsTable from './table/RewardsTable';
import { getDeduplicatedReferrals } from './h... | import { c } from 'ttag';
import { Loader, SettingsSectionWide } from '@proton/components';
import { useReferralInvitesContext } from '../ReferralInvitesContext';
import RewardsProgress from './RewardsProgress';
import RewardsTable from './table/RewardsTable';
import { getDeduplicatedReferrals } from './helpers';
co... | Remove duplicate string in reward section | Remove duplicate string in reward section
| TypeScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | ---
+++
@@ -1,6 +1,6 @@
import { c } from 'ttag';
-import { classnames, Loader, SettingsSectionWide } from '@proton/components';
+import { Loader, SettingsSectionWide } from '@proton/components';
import { useReferralInvitesContext } from '../ReferralInvitesContext';
import RewardsProgress from './RewardsProgre... |
9f7b2861d6ec30261ae892f5a25dc99f8c0f3f47 | components/theme/preset/preset.model.ts | components/theme/preset/preset.model.ts | import { Model } from '../../model/model.service';
export class ThemePreset extends Model {
name: string;
highlight: string;
backlight: string;
notice: string;
tint?: string;
}
Model.create(ThemePreset);
export const DefaultThemePreset = new ThemePreset({
id: 0,
name: 'Game Jolt',
highlight: 'ccff00',
backl... | import { Model } from '../../model/model.service';
export class ThemePreset extends Model {
name: string;
highlight: string;
backlight: string;
notice: string;
tint?: string;
}
Model.create(ThemePreset);
| Remove default theme preset from theme preset | Remove default theme preset from theme preset
| TypeScript | mit | gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib | ---
+++
@@ -9,11 +9,3 @@
}
Model.create(ThemePreset);
-
-export const DefaultThemePreset = new ThemePreset({
- id: 0,
- name: 'Game Jolt',
- highlight: 'ccff00',
- backlight: '2f7f6f',
- notice: 'ff3fac',
-}); |
82cba55ca7b81f6532256e76ad176287776f11b0 | src/SyntaxNodes/Blockquote.ts | src/SyntaxNodes/Blockquote.ts | import { RichOutlineSyntaxNode } from './RichOutlineSyntaxNode'
import { UpDocument } from './UpDocument'
import { Writer } from '../Writing/Writer'
export class Blockquote extends RichOutlineSyntaxNode {
// As a rule, we don't want to include any blockquoted content in the table of contents.
descendantsToInclude... | import { RichOutlineSyntaxNode } from './RichOutlineSyntaxNode'
import { Writer } from '../Writing/Writer'
export class Blockquote extends RichOutlineSyntaxNode {
write(writer: Writer): string {
return writer.blockquote(this)
}
protected BLOCKQUOTE(): void { }
}
| Include headings within blockquotes in TOC | Include headings within blockquotes in TOC
| TypeScript | mit | start/up,start/up | ---
+++
@@ -1,14 +1,8 @@
import { RichOutlineSyntaxNode } from './RichOutlineSyntaxNode'
-import { UpDocument } from './UpDocument'
import { Writer } from '../Writing/Writer'
export class Blockquote extends RichOutlineSyntaxNode {
- // As a rule, we don't want to include any blockquoted content in the table o... |
3d6b18467eae8940f5834142d38f0a2d15817854 | types/hapi/v17/test/server/server-info.ts | types/hapi/v17/test/server/server-info.ts | // https://github.com/hapijs/hapi/blob/master/API.md#-serverinfo
import {Server} from "hapi";
import * as assert from "assert";
const server = new Server({
port: 8000,
});
server.start();
// check the correct port
console.log(server.info);
if (server.info) assert(server.info.port === 8000);
assert(server.info !... | // https://github.com/hapijs/hapi/blob/master/API.md#-serverinfo
import {Server} from "hapi";
const server = new Server({
port: 8000,
});
server.start();
console.log(server.info);
console.log('Server started at: ' + server.info.uri);
| Remove asserts. It's not necessary here. | Remove asserts. It's not necessary here.
| TypeScript | mit | zuzusik/DefinitelyTyped,zuzusik/DefinitelyTyped,alexdresko/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,arusakov/DefinitelyTyped,rolandzwaga/DefinitelyTyped,arusakov/DefinitelyTyped,alexdresko/DefinitelyTyped,laurentiustamate94/DefinitelyTyped,rolandzwaga/DefinitelyType... | ---
+++
@@ -1,15 +1,10 @@
// https://github.com/hapijs/hapi/blob/master/API.md#-serverinfo
import {Server} from "hapi";
-import * as assert from "assert";
const server = new Server({
port: 8000,
});
server.start();
-// check the correct port
console.log(server.info);
-if (server.info) assert(server.in... |
e4a71461cc87a3121d1ba576d3d07b2b69a9545f | packages/compile-common/src/index.ts | packages/compile-common/src/index.ts | import { Profiler } from "./profiler";
export { Profiler };
| import { Profiler } from "./profiler";
export { Profiler };
type Compilation = {
sourceIndexes: string[];
contracts: CompiledContract[];
compiler: {
name: string;
version: string;
};
};
type CompilerResult = Compilation[];
type CompiledContract = {
contractName: string;
contract_name: string;
s... | Add some typings to @truffle/compile-common to be used later | Add some typings to @truffle/compile-common to be used later
| TypeScript | mit | ConsenSys/truffle | ---
+++
@@ -1,2 +1,61 @@
import { Profiler } from "./profiler";
export { Profiler };
+
+type Compilation = {
+ sourceIndexes: string[];
+ contracts: CompiledContract[];
+ compiler: {
+ name: string;
+ version: string;
+ };
+};
+
+type CompilerResult = Compilation[];
+
+type CompiledContract = {
+ contrac... |
4d5d38721a2299f7548458d4c27c21548305d3ab | src/reducers/watcherTimers.ts | src/reducers/watcherTimers.ts | import { WatcherTimerMap, WatcherTimer, GroupId } from '../types';
import {
SetWatcherTimer,
CancelWatcherTick,
DeleteWatcher
} from '../actions/watcher';
import {
SET_WATCHER_TIMER,
CANCEL_NEXT_WATCHER_TICK,
DELETE_WATCHER
} from '../constants';
import { Map } from 'immutable';
import { calcula... | import { WatcherTimerMap, WatcherTimer, GroupId } from '../types';
import {
SetWatcherTimer,
CancelWatcherTick,
DeleteWatcher
} from '../actions/watcher';
import {
SET_WATCHER_TIMER,
CANCEL_NEXT_WATCHER_TICK,
DELETE_WATCHER,
API_LIMIT_EXCEEDED
} from '../constants';
import { Map } from 'immuta... | Add reducer to respond to API_LIMIT_EXCEEDED. | Add reducer to respond to API_LIMIT_EXCEEDED.
| TypeScript | mit | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | ---
+++
@@ -7,14 +7,20 @@
import {
SET_WATCHER_TIMER,
CANCEL_NEXT_WATCHER_TICK,
- DELETE_WATCHER
+ DELETE_WATCHER,
+ API_LIMIT_EXCEEDED
} from '../constants';
import { Map } from 'immutable';
import { calculateTimeFromDelay } from '../utils/dates';
+import { ApiRateLimitExceeded } from 'actions/api';
... |
245211f968345e0d8ffe4eeca03ed6574c2646f1 | addons/toolbars/src/components/MenuToolbar.tsx | addons/toolbars/src/components/MenuToolbar.tsx | import React, { FC } from 'react';
import { useGlobals } from '@storybook/api';
import { Icons, IconButton, WithTooltip, TooltipLinkList, TabButton } from '@storybook/components';
import { NormalizedToolbarArgType } from '../types';
export type MenuToolbarProps = NormalizedToolbarArgType & { id: string };
export cons... | import React, { FC } from 'react';
import { useGlobals } from '@storybook/api';
import { Icons, IconButton, WithTooltip, TooltipLinkList, TabButton } from '@storybook/components';
import { NormalizedToolbarArgType } from '../types';
export type MenuToolbarProps = NormalizedToolbarArgType & { id: string };
export cons... | Add optional toolbar item label | Add optional toolbar item label
| TypeScript | mit | storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook | ---
+++
@@ -10,6 +10,7 @@
name,
description,
toolbar: { icon, items },
+ showName,
}) => {
const [globals, updateGlobals] = useGlobals();
const selectedValue = globals[id];
@@ -43,6 +44,7 @@
{selectedIcon ? (
<IconButton key={name} active={active} title={description}>
<Icon... |
226d9e8344761a081b2c88ccb4b90d7ad9b7a198 | highlightjs/highlightjs-tests.ts | highlightjs/highlightjs-tests.ts | /*
highlight.js definition by Niklas Mollenhauer
Last Update: 10.09.2013
Source Code: https://github.com/isagalaev/highlight.js
Project Page: http://softwaremaniacs.org/soft/highlight/en/
*/
/// <reference path="highlightjs.d.ts" />
import hljs = require("highlight.js");
var code = "using System;\npublic class T... | /*
highlight.js definition by Niklas Mollenhauer
Last Update: 10.09.2013
Source Code: https://github.com/isagalaev/highlight.js
Project Page: http://softwaremaniacs.org/soft/highlight/en/
*/
/// <reference path="highlightjs.d.ts" />
import hljs = require("highlight.js");
var code = "using System;\npublic class T... | Add missing semicolon in test | Add missing semicolon in test
| TypeScript | mit | emanuelhp/DefinitelyTyped,tarruda/DefinitelyTyped,scsouthw/DefinitelyTyped,Penryn/DefinitelyTyped,HereSinceres/DefinitelyTyped,drinchev/DefinitelyTyped,musicist288/DefinitelyTyped,raijinsetsu/DefinitelyTyped,florentpoujol/DefinitelyTyped,shovon/DefinitelyTyped,Zorgatone/DefinitelyTyped,xStrom/DefinitelyTyped,MugeSo/Def... | ---
+++
@@ -12,7 +12,7 @@
var code = "using System;\npublic class Test\n{\npublic static void Main()\n{\n// your code goes here\n}\n}";
var lang = "cs";
-hljs.configure({ tabReplace: " " }) // 4 spaces
+hljs.configure({ tabReplace: " " }); // 4 spaces
var hl = hljs.highlight(lang, code).value;
hl = hljs... |
488f8e6404d3306ccd249275cf2124bf175b2bdf | src/models/codeSnippetClientPickItem.ts | src/models/codeSnippetClientPickItem.ts | "use strict";
import { QuickPickItem } from 'vscode';
import { CodeSnippetClient } from './codeSnippetClient';
export class CodeSnippetClientQuickPickItem implements QuickPickItem {
public label: string;
public description: string;
public detail: string;
public rawClient: CodeSnippetClient;
} | "use strict";
import { QuickPickItem } from 'vscode';
import { CodeSnippetClient } from './codeSnippetClient';
export class CodeSnippetClientQuickPickItem implements QuickPickItem {
public label: string;
public description: string;
public detail: string;
public rawClient: CodeSnippetClient;
... | Increase to 4 spaces indent | Increase to 4 spaces indent
| TypeScript | mit | Huachao/vscode-restclient,Huachao/vscode-restclient | ---
+++
@@ -4,8 +4,8 @@
import { CodeSnippetClient } from './codeSnippetClient';
export class CodeSnippetClientQuickPickItem implements QuickPickItem {
- public label: string;
- public description: string;
- public detail: string;
- public rawClient: CodeSnippetClient;
+ public label: string;
+ public descr... |
a97c20c792ed39baca40887ec88ba4c9d3b509af | src/handlers/Start.ts | src/handlers/Start.ts | import {Frame, ResponseContext, ResponseModel} from "../definitions/Handler";
import {Context} from "../definitions/SkillContext";
let Frames = require("../definitions/FrameDirectory");
let entry = (ctx: Context) => {
let r = new ResponseContext();
let model = new ResponseModel();
r.model = model;
... | import {Frame, ResponseContext, ResponseModel} from "../definitions/Handler";
import {Context} from "../definitions/SkillContext";
let Frames = require("../definitions/FrameDirectory");
let entry = (ctx: Context) => {
let model = new ResponseModel();
model.speech = "hello";
model.reprompt = "hello again... | Use constructor for building response context. | Use constructor for building response context.
| TypeScript | agpl-3.0 | deegles/cookietime,deegles/cookietime | ---
+++
@@ -5,14 +5,12 @@
let entry = (ctx: Context) => {
- let r = new ResponseContext();
-
let model = new ResponseModel();
-
- r.model = model;
model.speech = "hello";
model.reprompt = "hello again";
+
+ let r = new ResponseContext(model);
return r;
}; |
8febe236110ca51185a14a5918477ddf1496994d | src/app/components/chat/user-list/user-list.ts | src/app/components/chat/user-list/user-list.ts | import Vue from 'vue';
import { Component, Prop } from 'vue-property-decorator';
import View from '!view!./user-list.html';
import { ChatRoom } from '../room';
import { ChatUser } from '../user';
import { AppChatUserListItem } from './item/item';
import { fuzzysearch } from '../../../../lib/gj-lib-client/utils/string'... | import Vue from 'vue';
import { Component, Prop, Watch } from 'vue-property-decorator';
import View from '!view!./user-list.html';
import { ChatRoom } from '../room';
import { ChatUser } from '../user';
import { AppChatUserListItem } from './item/item';
import { fuzzysearch } from '../../../../lib/gj-lib-client/utils/... | Fix up chat user list to tell its scroll-inview-parent when things change. | Fix up chat user list to tell its scroll-inview-parent when things change.
| TypeScript | mit | gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt | ---
+++
@@ -1,11 +1,13 @@
import Vue from 'vue';
-import { Component, Prop } from 'vue-property-decorator';
+import { Component, Prop, Watch } from 'vue-property-decorator';
import View from '!view!./user-list.html';
import { ChatRoom } from '../room';
import { ChatUser } from '../user';
import { AppChatUserLi... |
bf315fd4df74199afa42af50f7042415fcbc80fe | packages/userscript/source/index.ts | packages/userscript/source/index.ts | import devSavegame from "./fixtures/savegame";
import devSettings from "./fixtures/settings";
import { Options } from "./options/Options";
import { SettingsStorage } from "./options/SettingsStorage";
import { cinfo } from "./tools/Log";
import { isNil } from "./tools/Maybe";
import { SavegameLoader } from "./tools/Save... | import devSavegame from "./fixtures/savegame";
import devSettings from "./fixtures/settings";
import { Options } from "./options/Options";
import { SettingsStorage } from "./options/SettingsStorage";
import { cinfo } from "./tools/Log";
import { isNil } from "./tools/Maybe";
import { SavegameLoader } from "./tools/Save... | Clarify which settings are used | fix: Clarify which settings are used
| TypeScript | mit | oliversalzburg/cbc-kitten-scientists,oliversalzburg/cbc-kitten-scientists,oliversalzburg/cbc-kitten-scientists | ---
+++
@@ -22,16 +22,17 @@
cinfo("Looking for legacy settings...");
const legacySettings = SettingsStorage.getLegacySettings();
- if (legacySettings === null) {
- cinfo("No legacy settings found. Default settings will be used.");
- }
if (!isNil(devSettings)) {
+ cinfo("Using development settings... |
220b00b0ac3b1787ff933818ad5d3026f11471c4 | src/app/shared/line-splitting.pipe.spec.ts | src/app/shared/line-splitting.pipe.spec.ts | import { AlbumDescriptionPipe } from './album-description.pipe';
describe('AlbumDescriptionPipe', () => {
it('create an instance', () => {
const pipe = new LineSplittingPipe();
expect(pipe).toBeTruthy();
});
});
| import { AlbumDescriptionPipe } from './album-description.pipe';
describe('LineSplittingPipe', () => {
it('create an instance', () => {
const pipe = new LineSplittingPipe();
expect(pipe).toBeTruthy();
});
it('Splits lines with new line characters into an array', () => {
const input = 'I like\nnew li... | Add tests for line splitting pipe | Add tests for line splitting pipe
| TypeScript | apache-2.0 | jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog | ---
+++
@@ -1,8 +1,19 @@
import { AlbumDescriptionPipe } from './album-description.pipe';
-describe('AlbumDescriptionPipe', () => {
+describe('LineSplittingPipe', () => {
it('create an instance', () => {
const pipe = new LineSplittingPipe();
expect(pipe).toBeTruthy();
});
+
+ it('Splits lines with... |
a9c70a35568d2be5b1cc5589c4d430d24dfa5d0c | src/SyntaxNodes/InlineSyntaxNode.ts | src/SyntaxNodes/InlineSyntaxNode.ts | import { SyntaxNode } from './SyntaxNode'
export interface InlineSyntaxNode extends SyntaxNode {
// Represents the text of the syntax node as it should appear inline. Some inline conventions
// don't have any e.g. (footnotes, images).
textAppearingInline(): string
// Represents the searchable text of the syn... | import { SyntaxNode } from './SyntaxNode'
export interface InlineSyntaxNode extends SyntaxNode {
// Represents the text of the syntax node as it should appear inline. Some inline conventions
// don't have any e.g. (footnotes, images).
textAppearingInline(): string
// Represents the searchable text of the syn... | Update method name in comment | Update method name in comment
| TypeScript | mit | start/up,start/up | ---
+++
@@ -6,7 +6,8 @@
// don't have any e.g. (footnotes, images).
textAppearingInline(): string
- // Represents the searchable text of the syntax node. In contrast to `inlineText`, footnotes
- // and images should have searchable text (footnotes have content, and images have descriptions).
+ // Represent... |
e84a9a8b188f5f434ef10ab5f6ca622bf570c379 | src/navigation/sidebar/MenuItem.tsx | src/navigation/sidebar/MenuItem.tsx | import * as classNames from 'classnames';
import * as React from 'react';
import * as Label from 'react-bootstrap/lib/Label';
import { translate } from '@waldur/i18n';
import { MenuItemType } from './types';
interface MenuItemProps {
item: MenuItemType;
onClick(item: MenuItemType): void;
counter?: number;
}
e... | import * as classNames from 'classnames';
import * as React from 'react';
import * as Label from 'react-bootstrap/lib/Label';
import { wrapTooltip } from '@waldur/table/ActionButton';
import { MenuItemType } from './types';
interface MenuItemProps {
item: MenuItemType;
onClick(item: MenuItemType): void;
counte... | Add a tooltip to display name of categories under resource view if they are shortened | [WAL-3286] Add a tooltip to display name of categories under resource view if they are shortened
| TypeScript | mit | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | ---
+++
@@ -2,7 +2,7 @@
import * as React from 'react';
import * as Label from 'react-bootstrap/lib/Label';
-import { translate } from '@waldur/i18n';
+import { wrapTooltip } from '@waldur/table/ActionButton';
import { MenuItemType } from './types';
@@ -19,7 +19,10 @@
}) => (
<a onClick={() => onClick(it... |
d9aed8b1f193e2b51308745778af5b5c619e4c51 | src/components/PVLink/PVLink.tsx | src/components/PVLink/PVLink.tsx | import classnames from 'classnames'
import Link from 'next/link'
type Props = {
children: any
className?: string
href: string
onClick?: any
}
export const PVLink = ({ children, className, href, onClick }: Props) => {
const linkClassName = classnames(className ? className : '')
return (
<Link href={hre... | import classnames from 'classnames'
import Link from 'next/link'
import { useRouter } from 'next/router'
type Props = {
children: any
className?: string
href: string
onClick?: any
}
export const PVLink = ({ children, className, href, onClick }: Props) => {
const router = useRouter()
const linkClassName = ... | Refresh page if clicking a link that directs to the current page | Refresh page if clicking a link that directs to the current page
| TypeScript | agpl-3.0 | podverse/podverse-web,podverse/podverse-web,podverse/podverse-web,podverse/podverse-web | ---
+++
@@ -1,5 +1,6 @@
import classnames from 'classnames'
import Link from 'next/link'
+import { useRouter } from 'next/router'
type Props = {
children: any
@@ -9,10 +10,20 @@
}
export const PVLink = ({ children, className, href, onClick }: Props) => {
+ const router = useRouter()
const linkClassNam... |
166a9214ec669402f84aaee9ff72545760f8c6b8 | src/v2/Apps/Consign/Routes/MarketingLanding/Components/PromoSpace.tsx | src/v2/Apps/Consign/Routes/MarketingLanding/Components/PromoSpace.tsx | import React from "react"
import { Text, Box, color } from "@artsy/palette"
import { SectionContainer } from "./SectionContainer"
export const PromoSpace: React.FC = () => {
return (
<SectionContainer>
<Box borderBottom={`1px solid ${color("black60")}`} width="100%">
<Text
width="60%"
... | import React from "react"
import { Text, Box } from "@artsy/palette"
import { SectionContainer } from "./SectionContainer"
export const PromoSpace: React.FC = () => {
return (
<SectionContainer>
<Box borderBottom="1px solid" borderColor="black60" width="100%">
<Text
width="60%"
... | Remove deprecated attributes from border | Remove deprecated attributes from border
| TypeScript | mit | artsy/force,artsy/force-public,artsy/force,artsy/force,artsy/force-public,artsy/force | ---
+++
@@ -1,11 +1,11 @@
import React from "react"
-import { Text, Box, color } from "@artsy/palette"
+import { Text, Box } from "@artsy/palette"
import { SectionContainer } from "./SectionContainer"
export const PromoSpace: React.FC = () => {
return (
<SectionContainer>
- <Box borderBottom={`1px s... |
ced6fcdd0563c0c867174a1c302f3a354ec8715b | game/hud/src/widgets/HUDFullScreen/graphql/fragments/strings/AlloyStatsFragment.ts | game/hud/src/widgets/HUDFullScreen/graphql/fragments/strings/AlloyStatsFragment.ts | /*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*/
export const AlloyStatsFragment = `
hardness
impactToughness
fractureChance
malleability
massPCF
... | /*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*/
export const AlloyStatsFragment = `
unitHealth
unitMass
massBonus
encumbranceBonus
maxRepairPoint... | Update alloy stats fragment for TradeWindow items | Update alloy stats fragment for TradeWindow items
| TypeScript | mpl-2.0 | CUModSquad/Camelot-Unchained,CUModSquad/Camelot-Unchained,Ajackster/Camelot-Unchained,csegames/Camelot-Unchained,Mehuge/Camelot-Unchained,saddieeiddas/Camelot-Unchained,CUModSquad/Camelot-Unchained,csegames/Camelot-Unchained,Ajackster/Camelot-Unchained,saddieeiddas/Camelot-Unchained,Mehuge/Camelot-Unchained,Mehuge/Came... | ---
+++
@@ -6,39 +6,67 @@
*/
export const AlloyStatsFragment = `
- hardness
- impactToughness
- fractureChance
- malleability
- massPCF
- density
- meltingPoint
- thermConductivity
- slashingResistance
- piercingResistance
- crushingResistance
- acidResistance
- poisonResistance
- diseaseResistance... |
d1cf25e057236651c9ed828d4d767084a6431e72 | packages/w3c-webdriver/test-env/setup.ts | packages/w3c-webdriver/test-env/setup.ts | import { newSession, status } from '../src';
import { log } from '../src/logger';
import { browser } from './browser';
import { session, setSession } from './session';
log.enabled = true;
const webDriverUrl = browser.hub || `http://localhost:${process.env.WEB_DRIVER_PORT}`;
const testAppPort = process.env.TEST_APP_PO... | import { newSession, status } from '../src';
import { log } from '../src/logger';
import { browser } from './browser';
import { session, setSession } from './session';
log.enabled = true;
const webDriverUrl = browser.hub || `http://localhost:${process.env.WEB_DRIVER_PORT}`;
const testAppPort = process.env.TEST_APP_PO... | Add wait after session deletion in case of Safari | Add wait after session deletion in case of Safari
| TypeScript | mit | mucsi96/w3c-webdriver,mucsi96/w3c-webdriver,mucsi96/w3c-webdriver | ---
+++
@@ -12,16 +12,6 @@
beforeAll(async () => {
if (browser.id === 'safari') {
- let serverStatus;
- do {
- if (serverStatus) {
- await new Promise(resolve => setTimeout(() => { resolve(); }, 100));
- }
- log(`Awaiting ready status on ${webDriverUrl} ...`);
- serverStatus = a... |
ef75ec6b2658b2e400dc03286949aa1e9e6f9c62 | e2e/connections/detail/detail.po.ts | e2e/connections/detail/detail.po.ts | import { element, by, ElementFinder } from 'protractor';
import { P } from '../../common/world';
/**
* Created by jludvice on 13.3.17.
*/
export class ConnectionDetailPage {
connectionDetailElem(): ElementFinder {
return element(by.css('syndesis-connection-view'));
}
connectionName(): P<string> {
retu... | import { element, by, ElementFinder } from 'protractor';
import { P } from '../../common/world';
/**
* Created by jludvice on 13.3.17.
*/
export class ConnectionDetailPage {
connectionDetailElem(): ElementFinder {
return element(by.css('syndesis-connection-detail-info'));
}
connectionName(): P<string> {
... | Fix elements on Connection Detail page | fix: Fix elements on Connection Detail page
| TypeScript | apache-2.0 | lvydra/syndesis-e2e-tests,mcada/syndesis-qe,lvydra/syndesis-e2e-tests,lvydra/syndesis-e2e-tests,mcada/syndesis-qe,mcada/syndesis-qe,lvydra/syndesis-e2e-tests | ---
+++
@@ -6,10 +6,10 @@
*/
export class ConnectionDetailPage {
connectionDetailElem(): ElementFinder {
- return element(by.css('syndesis-connection-view'));
+ return element(by.css('syndesis-connection-detail-info'));
}
connectionName(): P<string> {
- return this.connectionDetailElem().elemen... |
714c9f25d4444072f1517b0ad188fb955e397514 | src/name-input-list/drag-handle.tsx | src/name-input-list/drag-handle.tsx | import * as React from 'react'
import {SortableHandle} from 'react-sortable-hoc'
import EditorDragHandle from '@material-ui/icons/DragHandle'
import style from './name-input-list.css'
export const DragHandle = SortableHandle(() => <EditorDragHandle className={style.handle} />)
| import * as React from 'react'
import {SortableHandle} from 'react-sortable-hoc'
import EditorDragHandle from '@material-ui/icons/DragHandle'
import style from './name-input-list.css'
export const DragHandle = SortableHandle(() => <EditorDragHandle color="action" className={style.handle} />)
| Fix color of drag handle | Fix color of drag handle
| TypeScript | mit | Holi0317/bridge-calc,Holi0317/bridge-calc,Holi0317/bridge-calc | ---
+++
@@ -3,4 +3,4 @@
import EditorDragHandle from '@material-ui/icons/DragHandle'
import style from './name-input-list.css'
-export const DragHandle = SortableHandle(() => <EditorDragHandle className={style.handle} />)
+export const DragHandle = SortableHandle(() => <EditorDragHandle color="action" className={... |
3d1a89ef771497e45f74cec1e93efb2ee67da7ec | packages/utils/src/loader/loaders.ts | packages/utils/src/loader/loaders.ts | import type { Awaitable } from '@antfu/utils';
import { existsSync, promises as fs } from 'fs';
import type { CustomIconLoader } from './types';
import { camelize, pascalize } from '../misc/strings';
export function FileSystemIconLoader(
dir: string,
transform?: (svg: string) => Awaitable<string>
): CustomIconLoader... | import type { Awaitable } from '@antfu/utils';
import { promises as fs, Stats } from 'fs';
import type { CustomIconLoader } from './types';
import { camelize, pascalize } from '../misc/strings';
/**
* Returns CustomIconLoader for loading icons from a directory
*/
export function FileSystemIconLoader(
dir: string,
... | Check if file exists asynchronously in FileSystemIconLoader | Check if file exists asynchronously in FileSystemIconLoader
| TypeScript | mit | simplesvg/simple-svg,simplesvg/simple-svg,simplesvg/simple-svg | ---
+++
@@ -1,8 +1,11 @@
import type { Awaitable } from '@antfu/utils';
-import { existsSync, promises as fs } from 'fs';
+import { promises as fs, Stats } from 'fs';
import type { CustomIconLoader } from './types';
import { camelize, pascalize } from '../misc/strings';
+/**
+ * Returns CustomIconLoader for load... |
416627095cc0904ca95cefb1e744b027fa59b80b | translations/lxqt-openssh-askpass.ts | translations/lxqt-openssh-askpass.ts | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en_US">
<context>
<name>MainWindow</name>
<message>
<location filename="../src/mainwindow.ui" line="14"/>
<source>OpenSSH Authentication Passphrase request</source>
<translation type="unfinished"></translati... | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>MainWindow</name>
<message>
<location filename="../src/mainwindow.ui" line="14"/>
<source>OpenSSH Authentication Passphrase request</source>
<translation type="unfinished"></translation>
</message... | Fix target language in translation file template | Fix target language in translation file template
The translation file template was configured for a target language. This
prevented Linguist from showing the selection dialog when the file was
opened after copying it to a language-specific version. Not explicitly
querying the language then could have led translators t... | TypeScript | lgpl-2.1 | lxde/lxqt-l10n | ---
+++
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
-<TS version="2.1" language="en_US">
+<TS version="2.1">
<context>
<name>MainWindow</name>
<message> |
4b8de73c3055b114f1195e12326cd9b6fef89a88 | tessera-frontend/src/ts/app/handlers/check-dirty.ts | tessera-frontend/src/ts/app/handlers/check-dirty.ts | declare var ts
window.onbeforeunload = (e) => {
if (ts.manager.current.dashboard.dirty) {
let msg = 'Dashboard has unsaved changes. Are you sure you want to leave?'
e.returnValue = msg
return msg
}
return null
}
| declare var ts
window.onbeforeunload = (e) => {
if (ts.manager.current && ts.manager.current.dashboard.dirty) {
let msg = 'Dashboard has unsaved changes. Are you sure you want to leave?'
e.returnValue = msg
return msg
}
return null
}
| Check that the dashboard is set in window.onbeforeunload | Check that the dashboard is set in window.onbeforeunload
| TypeScript | apache-2.0 | tessera-metrics/tessera,urbanairship/tessera,tessera-metrics/tessera,urbanairship/tessera,urbanairship/tessera,aalpern/tessera,aalpern/tessera,tessera-metrics/tessera,aalpern/tessera,urbanairship/tessera,tessera-metrics/tessera,tessera-metrics/tessera,urbanairship/tessera,aalpern/tessera,aalpern/tessera | ---
+++
@@ -1,7 +1,7 @@
declare var ts
window.onbeforeunload = (e) => {
- if (ts.manager.current.dashboard.dirty) {
+ if (ts.manager.current && ts.manager.current.dashboard.dirty) {
let msg = 'Dashboard has unsaved changes. Are you sure you want to leave?'
e.returnValue = msg
return msg |
a5be4a42afdea27ca3eccc9e1c7aa4c6859345e0 | test/server/webhookSpec.ts | test/server/webhookSpec.ts | /*
* Copyright (c) 2014-2021 Bjoern Kimminich.
* SPDX-License-Identifier: MIT
*/
import chai = require('chai')
const expect = chai.expect
const chaiAsPromised = require('chai-as-promised')
chai.use(chaiAsPromised)
describe('webhook', () => {
const webhook = require('../../lib/webhook')
const challenge = {
... | /*
* Copyright (c) 2014-2021 Bjoern Kimminich.
* SPDX-License-Identifier: MIT
*/
import chai = require('chai')
const expect = chai.expect
const chaiAsPromised = require('chai-as-promised')
chai.use(chaiAsPromised)
describe('webhook', () => {
const webhook = require('../../lib/webhook')
const challenge = {
... | Fix async issues in webhook tests | Fix async issues in webhook tests | TypeScript | mit | bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop | ---
+++
@@ -19,15 +19,15 @@
describe('notify', () => {
it('fails when no webhook URL is provided via environment variable', () => {
- return expect(webhook.notify(challenge)).to.eventually.throw('options.uri is a required argument')
+ void expect(webhook.notify(challenge)).to.eventually.throw('opt... |
6c8f8cbe89e16d9570c67c8492d3c17c547e9fec | frontend/src/app/app.routing.ts | frontend/src/app/app.routing.ts | import {ModuleWithProviders} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {LoginComponent} from './components/login.component';
import {RegisterComponent} from './components/register.component';
import {DefaultComponent} from './components/default.component';
import {UserEditCompo... | import {ModuleWithProviders} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {LoginComponent} from './components/login.component';
import {RegisterComponent} from './components/register.component';
import {DefaultComponent} from './components/default.component';
import {UserEditCompo... | Fix al listar y editar tareas que estan paginadas. | Fix al listar y editar tareas que estan paginadas.
| TypeScript | mit | maurobonfietti/webapp,maurobonfietti/webapp | ---
+++
@@ -19,7 +19,9 @@
{path: 'user-edit', component: UserEditComponent},
{path: 'task-new', component: TaskNewComponent},
{path: 'task/:id', component: TaskDetailComponent},
+ {path: 'index/:page/task/:id', component: TaskDetailComponent},
{path: 'task-edit/:id', component: TaskEditComponen... |
c20db514f40bed31ac67734a23baa45abc24203d | src/components/modal-footer.ts | src/components/modal-footer.ts | import { Component, Input, Output, EventEmitter, Type } from 'angular2/core';
import { ModalComponent } from './modal';
@Component({
selector: 'modal-footer',
template: `
<div class="modal-footer">
<ng-content></ng-content>
<button type="button" class="btn btn-default" data-dism... | import { Component, Input, Output, EventEmitter, Type } from 'angular2/core';
import { ModalComponent } from './modal';
@Component({
selector: 'modal-footer',
styles: [`
.btn[hidden] { display: none; }
`],
template: `
<div class="modal-footer">
<ng-content></ng-content>
... | Add style to fix but where btn overrides hidden. | Add style to fix but where btn overrides hidden. | TypeScript | isc | dougludlow/ng2-bs3-modal,dougludlow/ng2-bs3-modal,dougludlow/ng2-bs3-modal | ---
+++
@@ -3,6 +3,9 @@
@Component({
selector: 'modal-footer',
+ styles: [`
+ .btn[hidden] { display: none; }
+ `],
template: `
<div class="modal-footer">
<ng-content></ng-content> |
e4b6897d5a8f10584b1efebe12bd848895fb5a03 | haoshiyou/src/services/flag.service.ts | haoshiyou/src/services/flag.service.ts | import {Injectable} from "@angular/core";
declare let JSON;
@Injectable()
export class FlagService {
private flags = {
'debug': false,
'realCreate': false
};
getAllFlags() {
return this.flags;
}
setFlag(flagName:string, value:boolean) {
this.flags[flagName] = value;
}
getFlag(flagName:... | import {Injectable} from "@angular/core";
declare let JSON;
@Injectable()
export class FlagService {
private flagMap:Object = {};
constructor(){
let url_string = window.location.href;
var url = new URL(url_string);
var flagJsonStr = url['searchParams'].get("flags");
this.flagMap = JSON.parse(flagJs... | Add feature for flag url override | Add feature for flag url override
| TypeScript | mit | xinbenlv/rent.zzn.im,xinbenlv/rent.zzn.im,xinbenlv/rent.zzn.im,xinbenlv/rent.zzn.im,xinbenlv/rent.zzn.im | ---
+++
@@ -3,6 +3,13 @@
@Injectable()
export class FlagService {
+ private flagMap:Object = {};
+ constructor(){
+ let url_string = window.location.href;
+ var url = new URL(url_string);
+ var flagJsonStr = url['searchParams'].get("flags");
+ this.flagMap = JSON.parse(flagJsonStr);
+ }
private ... |
291115d6e203a6ba8832e15e9b4c1f03e7b4fece | test/e2e/grid-pager-info.e2e-spec.ts | test/e2e/grid-pager-info.e2e-spec.ts | import { browser, element, by } from '../../node_modules/protractor/built';
describe('grid pager info', () => {
let paginator = element(by.tagName('ngb-pagination')).$$('nav').$$('ul').$$('li'),
gridPagerInfo = element(by.tagName('grid-pager-info')).$$('div'),
pageSizeSelector = element(by.tagNam... | import { browser, element, by } from '../../node_modules/protractor/built';
describe('grid pager info', () => {
let paginator = element(by.tagName('ngb-pagination')).$$('nav').$$('ul').$$('li'),
gridPagerInfo = element(by.tagName('grid-pager-info')).$$('div'),
pageSizeSelector = element(by.tagNam... | Fix issues with e2e testing | Fix issues with e2e testing
| TypeScript | mit | unosquare/tubular2,unosquare/tubular2,unosquare/tubular2,unosquare/tubular2 | ---
+++
@@ -5,7 +5,7 @@
let paginator = element(by.tagName('ngb-pagination')).$$('nav').$$('ul').$$('li'),
gridPagerInfo = element(by.tagName('grid-pager-info')).$$('div'),
pageSizeSelector = element(by.tagName('page-size-selector')).$('form').$('div').$('select');
- gridSearchInput = el... |
99e83e2ddd1163a5e4e01ebd0672ede0f2ed03e6 | app/src/renderer/components/styles.ts | app/src/renderer/components/styles.ts | // Copyright (c) 2016 Vadim Macagon
// MIT License, see LICENSE file for full terms.
/**
* Style mixins for flex-box layouts based on https://github.com/PolymerElements/iron-flex-layout/
* The naming should remain consistent with Polymer's implementation, but cross-browser support is
* irrelevant, these just need t... | // Copyright (c) 2016 Vadim Macagon
// MIT License, see LICENSE file for full terms.
/**
* Style mixins for flex-box layouts based on https://github.com/PolymerElements/iron-flex-layout/
* The naming should remain consistent with Polymer's implementation, but cross-browser support is
* irrelevant, these just need t... | Add some additional flex-box, and paper-font style mixins | Add some additional flex-box, and paper-font style mixins
| TypeScript | mit | debugworkbench/hydragon,debugworkbench/hydragon,debugworkbench/hydragon | ---
+++
@@ -31,6 +31,19 @@
flex: 'none'
}
},
+
+ /* alignment in cross axis */
+
+ start: {
+ 'align-items': 'flex-start'
+ },
+ center: {
+ 'align-items': 'center'
+ },
+ end: {
+ 'align-items': 'flex-end'
+ },
+
fit: {
position: 'absolute',
top: 0,
@@ -39,3 +52,19 @@
... |
76bbfb6502ab5b353e13b64756e9b013752f91d3 | js/type-service/src/type-tags.spec.ts | js/type-service/src/type-tags.spec.ts |
import {Tags, TypeTags} from './type-tags';
import { expect } from 'chai';
import {LocalFileTypeService} from "./local-file-type-service";
import fs = require('fs');
import * as _ from "lodash";
describe('Test pValue and fold change tagging', () => {
let pvalueAndFCHeader = ["pppvalue", "FaaC", "logFC", "happy", "t... |
import {Tags, TypeTags} from './type-tags';
import { expect } from 'chai';
import {LocalFileTypeService} from "./local-file-type-service";
import fs = require('fs');
import * as _ from "lodash";
describe('Test pValue and fold change tagging', () => {
let pvalueAndFCHeader = ["pppvalue", "FaaC", "logFC", "happy", "t... | Fix type tag test output | Fix type tag test output
| TypeScript | mit | chipster/chipster-web-server,chipster/chipster-web-server,chipster/chipster-web-server,chipster/chipster-web-server,chipster/chipster-web-server | ---
+++
@@ -26,7 +26,7 @@
it('return tags', () => {
fs.readdirSync('./test-files').forEach(filename => {
let tags = LocalFileTypeService.getTypeTags('./test-files/' + filename);
- console.log("\t", filename, _.keys(tags).reduce((s, current) => current), "");
+ console.log("\t", filename, _.k... |
e49412c448c61c3b1259b916f41aa5a3a4a15d5c | lib/components/src/html.tsx | lib/components/src/html.tsx | import React from 'react';
import * as rawComponents from './typography/DocumentFormatting';
export * from './typography/DocumentFormatting';
export const components = Object.entries(rawComponents).reduce(
(acc, [k, V]) => ({
...acc,
[k.toLowerCase()]: (props: object) => <V {...props} className={`sbdocs-${k... | import React from 'react';
import * as rawComponents from './typography/DocumentFormatting';
export * from './typography/DocumentFormatting';
export const components = Object.entries(rawComponents).reduce(
(acc, [k, V]) => ({
...acc,
[k.toLowerCase()]: (props: object) => (
<V {...props} className={`sb... | Add idiomatic sbdocs classname to all docs components | Add idiomatic sbdocs classname to all docs components
| TypeScript | mit | storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook | ---
+++
@@ -6,7 +6,9 @@
export const components = Object.entries(rawComponents).reduce(
(acc, [k, V]) => ({
...acc,
- [k.toLowerCase()]: (props: object) => <V {...props} className={`sbdocs-${k.toLowerCase()}`} />,
+ [k.toLowerCase()]: (props: object) => (
+ <V {...props} className={`sbdocs sbdocs-... |
a7a5ae3fe124c5771b313475a2556acdc1bb0f4b | addons/backgrounds/src/index.ts | addons/backgrounds/src/index.ts | import { addons, makeDecorator, StoryContext, StoryGetter, WrapperSettings } from '@storybook/addons';
import deprecate from 'util-deprecate';
import { REGISTER_SUBSCRIPTION } from '@storybook/core-events';
import { EVENTS } from './constants';
import { BackgroundConfig } from './models';
let prevBackgrounds: Backgro... | import { addons, makeDecorator, StoryContext, StoryGetter, WrapperSettings } from '@storybook/addons';
import deprecate from 'util-deprecate';
import { REGISTER_SUBSCRIPTION } from '@storybook/core-events';
import { EVENTS } from './constants';
import { BackgroundConfig } from './models';
let prevBackgrounds: Backgro... | REMOVE previously deprecated default export from backgrounds | REMOVE previously deprecated default export from backgrounds
| TypeScript | mit | storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook | ---
+++
@@ -35,11 +35,6 @@
},
});
-export default deprecate(
- withBackgrounds,
- 'The default export of @storybook/addon-backgrounds is deprecated, please `import { withBackgrounds }` instead'
-);
-
if (module && module.hot && module.hot.decline) {
module.hot.decline();
} |
bf1ddb3d8ddeaae54bd8289a48e6d6c0987a6e27 | src/api/post-photoset-bulk-reorder.ts | src/api/post-photoset-bulk-reorder.ts | import * as request from 'superagent'
import { getLogger } from '../services/log'
import * as API from './types/api'
const debugPostPhotosetBulkReorder = getLogger('/api/post-photoset-bulk-reorder.ts').debug
export function postPhotosetBulkReorder(
nsid: string,
setIds: string[],
orderBy: API.IOrderByOpti... | import * as request from 'superagent'
import { getLogger } from '../services/log'
import * as API from './types/api'
const debugPostPhotosetBulkReorder = getLogger('/api/post-photoset-bulk-reorder.ts').debug
export function postPhotosetBulkReorder(
nsid: string,
setIds: string[],
orderBy: API.IOrderByOpti... | Revert "Set HTTP header to disable nginx proxy buffer" | Revert "Set HTTP header to disable nginx proxy buffer"
This reverts commit 6414d8619e1f8889aea4c094717c3d3454a0ef4a.
| TypeScript | apache-2.0 | whitetrefoil/flickr-simple-reorder,whitetrefoil/flickr-simple-reorder,whitetrefoil/flickr-simple-reorder | ---
+++
@@ -16,7 +16,5 @@
debugPostPhotosetBulkReorder(`Bulk reorder photosets: ${setIds}`)
return request.post('/api/photosets/bulk_reorder')
- .set({ 'X-Accel-Buffering': 'no' })
- .accept('application/octet-stream')
.send({ nsid, setIds, orderBy, isDesc, token, secret })
} |
2f9f6d1354c447c6d263cef8b9c18db66ccdcf74 | src/app/score/score.component.spec.ts | src/app/score/score.component.spec.ts | /* tslint:disable:no-unused-variable */
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
import { ScoreComponent } from './score.component';
describe('ScoreComponent', () => {
let component: ScoreC... | /* tslint:disable:no-unused-variable */
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
import { ScoreComponent } from './score.component';
describe('ScoreComponent', () => {
let component: ScoreC... | Revert "Not messing with the unit tests yet" | Revert "Not messing with the unit tests yet"
This reverts commit bf0d8f7954eb7e00331a25802fd578dc90d897fe.
| TypeScript | mit | thielCole/crossfit-leaderboard,thielCole/crossfit-leaderboard,thielCole/crossfit-leaderboard | ---
+++
@@ -23,6 +23,6 @@
});
it('should create', () => {
- expect(component).toBeTruthy();
+ expect(component instanceof ScoreComponent).toBeTruthy();
});
}); |
f806b7d0a542ea79e2507986d39809244524df3f | lib/button/src/share-button.module.ts | lib/button/src/share-button.module.ts | import { NgModule, InjectionToken } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ShareModule, ShareButtons, ShareButtonsConfig, CONFIG } from '@ngx-share/core';
import { ShareButtonComponent } from './share-button.component';
export function ShareButtonsFactory(config: ShareButtonsCo... | import { NgModule, InjectionToken } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ShareModule, ShareButtons, ShareButtonsConfig, CONFIG } from '@ngx-share/core';
import { ShareButtonComponent } from './share-button.component';
import { FontAwesomeModule } from '@fortawesome/angular-fon... | Use FontAwesomeModule for share icons | feat(ShareButtonModule): Use FontAwesomeModule for share icons
| TypeScript | mit | MurhafSousli/ng2-sharebuttons,MurhafSousli/ng2-sharebuttons,MurhafSousli/ng2-sharebuttons | ---
+++
@@ -3,6 +3,7 @@
import { ShareModule, ShareButtons, ShareButtonsConfig, CONFIG } from '@ngx-share/core';
import { ShareButtonComponent } from './share-button.component';
+import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
export function ShareButtonsFactory(config: ShareButtonsConfig... |
16a8f828e29a3ba793c267f6656725e80a02eb79 | src/js/server/apply/applicant-info.ts | src/js/server/apply/applicant-info.ts | import { Hacker } from 'js/server/models';
import * as statuses from 'js/shared/status-constants';
import { getApplicationStatus, getTeamApplicationStatus } from 'js/server/models/Hacker';
export const unfinishedApplicationKind = { INDIVIDUAL: 'individual', TEAM_ONLY: 'team-only' };
export function getHackersWithUnfi... | import { Hacker } from 'js/server/models';
import * as statuses from 'js/shared/status-constants';
import { getApplicationStatus, getTeamApplicationStatus } from 'js/server/models/Hacker';
export const unfinishedApplicationKind = { INDIVIDUAL: 'individual', TEAM_ONLY: 'team-only' };
export function getHackersWithUnfi... | Update to match new functions | Update to match new functions
| TypeScript | mit | hackcambridge/hack-cambridge-website,hackcambridge/hack-cambridge-website,hackcambridge/hack-cambridge-website,hackcambridge/hack-cambridge-website | ---
+++
@@ -8,21 +8,19 @@
return Hacker.findAll().then(hackers =>
Promise.all(hackers.map(hacker =>
hacker.getHackerApplication().then(hackerApplication =>
- Promise.all([
- getApplicationStatus(hackerApplication),
- getTeamApplicationStatus(hackerApplication)
- ]).then(... |
2aa6cac8640d0595304d185ceb7f254b7085c8cc | 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.
*---------------------------------------------------------------------... | Update the status bar after saving. | Update the status bar after saving.
| TypeScript | mit | alefragnani/vscode-read-only-indicator,alefragnani/vscode-read-only-indicator | ---
+++
@@ -11,6 +11,8 @@
export class Controller {
private statusBar: StatusBar;
private disposable: Disposable;
+
+ private timeout: NodeJS.Timeout | null;
constructor() {
this.statusBar = new StatusBar();
@@ -33,6 +35,16 @@
this.updateStatusBar();
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.