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
d2b571178a4d25948877e4dbd253db7c4c333db4
projects/angular2-cookie-law/src/lib/angular2-cookie-law.service.ts
projects/angular2-cookie-law/src/lib/angular2-cookie-law.service.ts
/** * angular2-cookie-law * * Copyright 2016-2018, @andreasonny83, All rights reserved. * * @author: @andreasonny83 <andreasonny83@gmail.com> */ import { Inject, Injectable, PLATFORM_ID } from '@angular/core'; import { DOCUMENT, isPlatformBrowser } from '@angular/common'; @Injectable({ providedIn: 'root' }) e...
/** * angular2-cookie-law * * Copyright 2016-2018, @andreasonny83, All rights reserved. * * @author: @andreasonny83 <andreasonny83@gmail.com> */ import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class Angular2CookieLawService { public seen(cookieName: string = 'cookieLaw...
Revert "Angular2CookieLawService compatibility with Angular Universal"
Revert "Angular2CookieLawService compatibility with Angular Universal"
TypeScript
mit
andreasonny83/angular2-cookie-law,andreasonny83/angular2-cookie-law,andreasonny83/angular2-cookie-law
--- +++ @@ -6,25 +6,14 @@ * @author: @andreasonny83 <andreasonny83@gmail.com> */ -import { Inject, Injectable, PLATFORM_ID } from '@angular/core'; -import { DOCUMENT, isPlatformBrowser } from '@angular/common'; +import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class...
65799f46a000e7bca7ee4c2d3d70e58ddad241e4
example/image.component.ts
example/image.component.ts
import { Component, Input } from '@angular/core'; import { LazyLoadImageDirective } from '../src/lazyload-image.directive'; @Component({ selector: 'image', styles: [` img { width: 100%; min-height: 1000px; transition: opacity 1s; opacity: 0; } ...
import { Component, Input } from '@angular/core'; import { LazyLoadImageDirective } from '../src/lazyload-image.directive'; @Component({ selector: 'image', styles: [` img { min-width: 1497px; width: 100%; min-height: 1127px; transition: opacity 1s; ...
Set a fix with and width on the image
:sparkles: Set a fix with and width on the image
TypeScript
mit
tjoskar/ng-lazyload-image,tjoskar/ng2-lazyload-image,tjoskar/ng-lazyload-image,tjoskar/ng2-lazyload-image,tjoskar/ng2-lazyload-image
--- +++ @@ -5,8 +5,9 @@ selector: 'image', styles: [` img { + min-width: 1497px; width: 100%; - min-height: 1000px; + min-height: 1127px; transition: opacity 1s; opacity: 0; }
3f90e5412969b13563cd013becf951cd5b7c9773
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...
ae7c485ab6c600adc5626ccb69c95f785d7f0f94
components/form-vue/control-errors/control-error.ts
components/form-vue/control-errors/control-error.ts
import Vue from 'vue'; import { Component, Prop } from 'vue-property-decorator'; import { findVueParent } from '../../../utils/vue'; import { AppFormControlErrors } from './control-errors'; @Component({}) export class AppFormControlError extends Vue { @Prop( String ) when: string; mounted() { const defaultSlot ...
import Vue from 'vue'; import { Component, Prop, Watch } from 'vue-property-decorator'; import { findVueParent } from '../../../utils/vue'; import { AppFormControlErrors } from './control-errors'; @Component({}) export class AppFormControlError extends Vue { @Prop( String ) when: string; @Prop( String ) message: st...
Fix form control error overrides not being translatable
Fix form control error overrides not being translatable
TypeScript
mit
gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib
--- +++ @@ -1,5 +1,5 @@ import Vue from 'vue'; -import { Component, Prop } from 'vue-property-decorator'; +import { Component, Prop, Watch } from 'vue-property-decorator'; import { findVueParent } from '../../../utils/vue'; import { AppFormControlErrors } from './control-errors'; @@ -8,15 +8,23 @@ export class ...
cf8ce3751e8e42e601e312ea1129f8ab50a1ea10
packages/custom-elements/ts_src/AlreadyConstructedMarker.ts
packages/custom-elements/ts_src/AlreadyConstructedMarker.ts
/** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may * b...
/** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may * b...
Use a branded unconstructable type rather than unique symbol to save bytes.
Use a branded unconstructable type rather than unique symbol to save bytes.
TypeScript
bsd-3-clause
webcomponents/polyfills,webcomponents/polyfills,webcomponents/polyfills
--- +++ @@ -15,8 +15,7 @@ * * https://html.spec.whatwg.org/#concept-already-constructed-marker */ -const alreadyConstructedMarker: unique symbol = - Symbol('AlreadyConstructedMarker'); +const alreadyConstructedMarker = {} as {_alreadyConstructedMarker: never}; export default alreadyConstructedMarker; exp...
725a89f9e8ab1f0d969b3c1592f0912281cbaa7a
src/components/Layout/Link/index.tsx
src/components/Layout/Link/index.tsx
import React, { PropsWithChildren, ReactElement } from 'react' import { Link as HyperLink, LinkProps } from 'react-router-dom' export default function Link({ to, children, ...rest }: PropsWithChildren<LinkProps>): ReactElement { return ( <HyperLink to={to} {...rest}> {children} </HyperLink> ) }...
import React, { PropsWithChildren, ReactElement } from 'react' import { Link as HyperLink, LinkProps } from 'react-router-dom' export default function Link({ to, children, ...rest }: PropsWithChildren<LinkProps>): ReactElement { return ( <HyperLink to={to} {...rest} replace> {children} </HyperLin...
Fix 'cannot PUSH the same path' warning from Router on Link component by the replace prop
Fix 'cannot PUSH the same path' warning from Router on Link component by the replace prop
TypeScript
mit
daltonmenezes/daltonmenezes.github.io,daltonmenezes/daltonmenezes.github.io,daltonmenezes/daltonmenezes.github.io
--- +++ @@ -7,7 +7,7 @@ ...rest }: PropsWithChildren<LinkProps>): ReactElement { return ( - <HyperLink to={to} {...rest}> + <HyperLink to={to} {...rest} replace> {children} </HyperLink> )
beab55946eb7570474729711e9245b8a2e31d317
addons/docs/src/frameworks/react/extractArgTypes.ts
addons/docs/src/frameworks/react/extractArgTypes.ts
import { PropDef, PropsTableRowsProps } from '@storybook/components'; import { ArgTypes } from '@storybook/api'; import { ArgTypesExtractor } from '../../lib/docgen'; import { trimQuotes } from '../../lib/sbtypes/utils'; import { extractProps } from './extractProps'; const trim = (val: any) => (val && typeof val === '...
import { PropDef, PropsTableRowsProps } from '@storybook/components'; import { ArgTypes } from '@storybook/api'; import { ArgTypesExtractor } from '../../lib/docgen'; import { extractProps } from './extractProps'; export const extractArgTypes: ArgTypesExtractor = (component) => { if (component) { const props = e...
Clean up redundant quote removal
ArgTypes: Clean up redundant quote removal
TypeScript
mit
kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook
--- +++ @@ -1,10 +1,7 @@ import { PropDef, PropsTableRowsProps } from '@storybook/components'; import { ArgTypes } from '@storybook/api'; import { ArgTypesExtractor } from '../../lib/docgen'; -import { trimQuotes } from '../../lib/sbtypes/utils'; import { extractProps } from './extractProps'; - -const trim = (val...
976d27f59a87e3a5e7f860a6900fcf11d1fe80d5
src/environments/environment.prod.ts
src/environments/environment.prod.ts
export const environment = { production: true };
export const environment = { production: true, firebase: { projectId: "releaseer-a6183", apiKey: "AIzaSyA_tWprch4_iJKKcEg3CCAO9VwCjvKxY5I", authDomain: "releaseer-a6183.firebaseapp.com", databaseURL: "https://releaseer-a6183.firebaseio.com", storageBucket: "releaseer-a6183.appspot.com", mess...
Upgrade Releaser to Angular 4
Upgrade Releaser to Angular 4
TypeScript
mit
Richard87/releaser,Richard87/releaser,Richard87/releaser,Richard87/releaser
--- +++ @@ -1,3 +1,11 @@ export const environment = { - production: true + production: true, + firebase: { + projectId: "releaseer-a6183", + apiKey: "AIzaSyA_tWprch4_iJKKcEg3CCAO9VwCjvKxY5I", + authDomain: "releaseer-a6183.firebaseapp.com", + databaseURL: "https://releaseer-a6183.firebaseio.com", + ...
acd4008b08d0b61c9491cbc2ead2985c53cc72fe
lib/api/index.ts
lib/api/index.ts
import { CountryRecord, SubdivisionsRecord } from '@maxmind/geoip2-node'; import { findCityByIp } from '../db/maxmind/city'; import { ipToNumber, numberToIp } from '../ip-utils'; export { ipToNumber, numberToIp, }; type IpCountry = { ip: number; country_name: string; subdivision_1_name: string; } /** * G...
import { findCityByIp } from '../db/maxmind/city'; import { ipToNumber, numberToIp } from '../ip-utils'; export { ipToNumber, numberToIp, }; type IpCountry = { ip: number; country_name: string; subdivision_1_name: string; } /** * Given a collection of IP addresses returns the country associated with each...
Remove two more TS casts
Remove two more TS casts
TypeScript
mit
guyellis/ipapi,guyellis/ipapi,guyellis/ipapi
--- +++ @@ -1,4 +1,3 @@ -import { CountryRecord, SubdivisionsRecord } from '@maxmind/geoip2-node'; import { findCityByIp } from '../db/maxmind/city'; import { ipToNumber, numberToIp } from '../ip-utils'; @@ -22,8 +21,8 @@ const promises = ips.map(async (ip) => { const ipAddress = numberToIp(ip); cons...
ab46b17b2e5986ebeb350c6d97b1846999a1cde0
src/styles/elements/Button.theme.ts
src/styles/elements/Button.theme.ts
import { stripUnit } from 'polished'; import { defaultBorderRadius, inputVerticalPadding, pageFont } from '../globals'; // Begin extract const borderColor = ''; // End extract export const verticalMargin = '0em'; export const horizontalMargin = '0.25em'; export const backgroundColor = '#e0e1e2'; export const ba...
import { stripUnit } from 'polished'; import { borderColor, defaultBorderRadius, inputVerticalPadding, pageFont } from '../globals'; export const verticalMargin = '0em'; export const horizontalMargin = '0.25em'; export const backgroundColor = '#e0e1e2'; export const backgroundImage = 'none'; export const backg...
Use border color from globals
Use border color from globals
TypeScript
mit
maxdeviant/semantic-ui-css-in-js,maxdeviant/semantic-ui-css-in-js
--- +++ @@ -1,13 +1,10 @@ import { stripUnit } from 'polished'; import { + borderColor, defaultBorderRadius, inputVerticalPadding, pageFont } from '../globals'; - -// Begin extract -const borderColor = ''; -// End extract export const verticalMargin = '0em'; export const horizontalMargin = '0.25em';
945505839f9c446854fadbeef57c277205d3699c
ui/src/members/components/SelectUsers.tsx
ui/src/members/components/SelectUsers.tsx
// Libraries import React, {PureComponent} from 'react' //Components import {MultiSelectDropdown, Dropdown} from 'src/clockface' // Types import {User} from '@influxdata/influx' interface Props { users: User[] onSelect: (selectedIDs: string[]) => void selectedUserIDs: string[] } export default class SelectUse...
// Libraries import React, {PureComponent} from 'react' //Components import {MultiSelectDropdown, Dropdown} from 'src/clockface' // Types import {User} from '@influxdata/influx' import {ComponentStatus} from '@influxdata/clockface' interface Props { users: User[] onSelect: (selectedIDs: string[]) => void selec...
Update add users dropdown with an empty state
Update add users dropdown with an empty state
TypeScript
mit
mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdb/influxdb,nooproblem/influxdb,li-ang/influxdb,influxdb/influxdb,nooproblem/influxdb,nooproblem/influxdb,li-ang/influxdb,mark-rushakoff/influxd...
--- +++ @@ -6,6 +6,7 @@ // Types import {User} from '@influxdata/influx' +import {ComponentStatus} from '@influxdata/clockface' interface Props { users: User[] @@ -15,22 +16,37 @@ export default class SelectUsers extends PureComponent<Props> { public render() { - const {users} = this.props + con...
eeed5e50da724789e9a25168353fc9e7c6b2db1a
src/components/Header.tsx
src/components/Header.tsx
import React from "react"; import { ToggleThemeButton } from "./ToggleThemeButton"; export function Header() { return ( <nav className="navbar"> <a className="navbar-brand" href="images/avatar.jpg" title="Click to see my face :)"> <img src="images/avatar.jpg" className="border rounded-circle" /> ...
import React from "react"; import { ToggleThemeButton } from "./ToggleThemeButton"; export function Header() { return ( <nav className="navbar"> <div className="navbar-brand"> <a className="navbar-brand" href="images/avatar.jpg" data-toggle="tooltip" data-pla...
Remove link from the name, in the top bar
Remove link from the name, in the top bar
TypeScript
mit
felladrin/felladrin.github.io,felladrin/felladrin.github.io
--- +++ @@ -4,10 +4,18 @@ export function Header() { return ( <nav className="navbar"> - <a className="navbar-brand" href="images/avatar.jpg" title="Click to see my face :)"> - <img src="images/avatar.jpg" className="border rounded-circle" /> + <div className="navbar-brand"> + <a + ...
475cffc40a7a95eb59be212c46dfc7387ea583d5
packages/graphql-codegen-cli/src/utils/document-finder.ts
packages/graphql-codegen-cli/src/utils/document-finder.ts
import { parse } from 'graphql-codegen-core'; import { Source } from 'graphql'; import gqlPluck from 'graphql-tag-pluck'; export function extractDocumentStringFromCodeFile(source: Source): string | void { try { const parsed = parse(source.body); if (parsed) { return source.body; } } catch (e) { ...
import { parse } from 'graphql-codegen-core'; import { Source } from 'graphql'; import gqlPluck from 'graphql-tag-pluck'; export function extractDocumentStringFromCodeFile(source: Source): string | void { try { const parsed = parse(source.body); if (parsed) { return source.body; } } catch (e) { ...
Add borken document to error report
Add borken document to error report
TypeScript
mit
dotansimha/graphql-code-generator,dotansimha/graphql-code-generator,dotansimha/graphql-code-generator
--- +++ @@ -10,6 +10,10 @@ return source.body; } } catch (e) { - return gqlPluck.fromFile.sync(source.name) || null; + try { + return gqlPluck.fromFile.sync(source.name) || null; + } catch (e) { + throw new e.constructor(`${e.message} at ${source.name}`); + } } }
ddd33055eeeb3dab10663d26c9eb812cdb22ef31
demo/containers/App.tsx
demo/containers/App.tsx
// import all the examples import BasicInteractiveMap from "../examples/BasicInteractiveMap"; import HighResolutionMap from "../examples/HighResolutionMap"; import Example from "../components/Example"; import Header from "../components/Header"; import HEREMap from "../../src/HEREMap"; import * as React from "react"; ...
// import all the examples import BasicInteractiveMap from "../examples/BasicInteractiveMap"; import HighResolutionMap from "../examples/HighResolutionMap"; import Example from "../components/Example"; import Header from "../components/Header"; import HEREMap from "../../src/HEREMap"; import * as React from "react"; ...
Set interactive to false in title block HERE Map on demo site.
Set interactive to false in title block HERE Map on demo site.
TypeScript
mit
Josh-ES/react-here-maps,Josh-ES/react-here-maps
--- +++ @@ -34,6 +34,7 @@ zoom={7} center={center} hidpi={true} + interactive={false} appId="NoiW7CS2CC05ppu95hyL" appCode="28L997fKdiJiY7TVVEsEGQ" /...
f91974faf59fbde1002e42b59ed893b13c3da549
WebUtils/src/ts/WebUtils/LabKey.ts
WebUtils/src/ts/WebUtils/LabKey.ts
declare const LABKEY: { CSRF: string, ActionURL: any, getModuleContext(moduleName: string): any; }; export function getCSRF(): string { return LABKEY.CSRF || ""; } export function getCurrentController(): string { return LABKEY.ActionURL.getController(); } export function getCurrentContainer(): st...
declare const LABKEY: { CSRF: string, ActionURL: any, getModuleContext(moduleName: string): any; }; export function getCSRF(): string { return LABKEY.CSRF || ""; } export function getCurrentController(): string { return LABKEY.ActionURL.getController(); } export function getCurrentContainer(): st...
Add a method to get URLs with params.
Add a method to get URLs with params.
TypeScript
apache-2.0
WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules
--- +++ @@ -20,8 +20,12 @@ return LABKEY.ActionURL.getBaseURL(); } -export function buildURL(controller: string, action: string, container?: string): string { +export function buildURL(controller: string, action: string, container: string): string { return LABKEY.ActionURL.buildURL(controller, action, co...
e051f572bd24c60848cac4a27c9b7ecc42cee1d9
pages/_error.tsx
pages/_error.tsx
import React from 'react'; import { NextPageContext } from 'next'; import Link from 'next/link'; import BasePage from '../components/BasePage'; import Header from '../components/Header'; import Noise from '../components/Noise'; import styles from './_error.module.css'; export interface ErrorProps { statusCode?: numb...
import React from 'react'; import { NextPageContext } from 'next'; import Link from 'next/link'; import BasePage from '../components/BasePage'; import Header from '../components/Header'; import Noise from '../components/Noise'; import styles from './_error.module.css'; export interface ErrorProps { statusCode?: numb...
Fix error to 404 on client by default
Fix error to 404 on client by default
TypeScript
mit
AsherFoster/asherfoster.github.com,AsherFoster/asherfoster.github.com
--- +++ @@ -33,7 +33,7 @@ } ErrorPage.getInitialProps = ({ res, err }: NextPageContext): ErrorProps => { - const statusCode = res ? res.statusCode : err ? (err as any).statusCode : null; + const statusCode = res ? res.statusCode : err ? (err as any).statusCode : 404; return { statusCode }; };
f27556523f400c068a8cc845119734454fdd7df1
packages/@sanity/desk-tool/src/panes/documentPane/changesPanel/helpers.ts
packages/@sanity/desk-tool/src/panes/documentPane/changesPanel/helpers.ts
import {Diff, AnnotationDetails, visitDiff} from '@sanity/field/diff' export function collectLatestAuthorAnnotations(diff: Diff): AnnotationDetails[] { const authorMap = new Map<string, AnnotationDetails>() visitDiff(diff, child => { if (child.action === 'unchanged' || !('annotation' in child) || !child.annota...
import {Diff, AnnotationDetails, visitDiff} from '@sanity/field/diff' export function collectLatestAuthorAnnotations(diff: Diff): AnnotationDetails[] { const authorMap = new Map<string, AnnotationDetails>() visitDiff(diff, child => { if (child.action === 'unchanged' || !('annotation' in child) || !child.annota...
Sort latest author annotations by timestamp
[desk-tool] Sort latest author annotations by timestamp
TypeScript
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
--- +++ @@ -16,5 +16,7 @@ return true }) - return Array.from(authorMap.values()) + return Array.from(authorMap.values()).sort( + (a, b) => Date.parse(b.timestamp) - Date.parse(a.timestamp) + ) }
db97eb66138da46b051bd243adf5c5b2db6167a4
examples/with-typescript/src/index.ts
examples/with-typescript/src/index.ts
import express from 'express'; let app = require('./server').default; if (module.hot) { module.hot.accept('./server', () => { console.log('🔁 HMR Reloading `./server`...'); try { app = require('./server').default; } catch (error) { console.error(error); } }); console.info('✅ Server...
import express from 'express'; let app = require('./server').default; if (module.hot) { module.hot.accept('./server', () => { console.log('🔁 HMR Reloading `./server`...'); try { app = require('./server').default; } catch (error) { console.error(error); } }); console.info('✅ Server...
Fix error running with-typescript example
Fix error running with-typescript example Fixes the following error - ``` src/index.ts:22:17 - error TS2769: No overload matches this call. The last overload gave the following error. Argument of type '(err: Error) => void' is not assignable to parameter of type '() => void'. 22 .listen(port, (err: Er...
TypeScript
mit
jaredpalmer/razzle,jaredpalmer/razzle
--- +++ @@ -18,10 +18,6 @@ export default express() .use((req, res) => app.handle(req, res)) - .listen(port, (err: Error) => { - if (err) { - console.error(err); - return; - } + .listen(port, () => { console.log(`> App started http://localhost:${port}`) });
68f4ddf1fb2ef0181992cf38e1d649953de2b903
src/core/model/document.ts
src/core/model/document.ts
import {Resource} from './resource'; import {copy} from 'tsfun'; import {subtract} from 'tsfun/objects'; import {NewDocument} from "./new-document"; import {Action} from './action'; export interface Document extends NewDocument { resource : Resource; modified: Action[]; created: Action; } /** * Compan...
import {Resource} from './resource'; import {copy} from 'tsfun'; import {subtract} from 'tsfun/objects'; import {NewDocument} from "./new-document"; import {Action} from './action'; export interface Document extends NewDocument { resource : Resource; modified: Action[]; created: Action; } /** * Compan...
Add check for modified in isValid
Add check for modified in isValid
TypeScript
apache-2.0
dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2
--- +++ @@ -24,6 +24,7 @@ if (!document.resource.id && !missingIdLegal) return false; if (!document.resource.relations) return false; if (!document.created) return false; + if (!document.modified || document.modified.length === 0) return false; return true; }
22e842f179f68945b834a1cbe25c1df002113c10
src/app/states/devices/ble/device-og-kit.ts
src/app/states/devices/ble/device-og-kit.ts
import { _ } from '@biesbjerg/ngx-translate-extract/dist/utils/utils'; import { DeviceType } from '../abstract-device'; import { DeviceParams, DeviceParamsModel, DeviceParamType } from '../device-params'; import { AbstractBLEDevice, RawBLEDevice } from './abstract-ble-device'; export class DeviceOGKit extends Abstract...
import { _ } from '@biesbjerg/ngx-translate-extract/dist/utils/utils'; import { DeviceType } from '../abstract-device'; import { DeviceParams, DeviceParamsModel, DeviceParamType } from '../device-params'; import { AbstractBLEDevice, RawBLEDevice } from './abstract-ble-device'; export class DeviceOGKit extends Abstract...
Fix OG-Kit name detection from advertising data
Fix OG-Kit name detection from advertising data
TypeScript
apache-2.0
openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile
--- +++ @@ -25,10 +25,15 @@ constructor(rawDevice: RawBLEDevice) { super(rawDevice); this.apparatusVersion = rawDevice.name; - const manufacturerData = - rawDevice.advertising instanceof ArrayBuffer - ? new Uint8Array(rawDevice.advertising).slice(23, 29) - : new Uint8Array(rawDevice...
c621aa9c43537074f894be0701642324424f9130
src/components/utilities/input.tsx
src/components/utilities/input.tsx
import * as React from "react"; export interface InputProps{ onChange: (value: any) => void, label?: string id?: string, class?: string, value?: string } export function Input(props: InputProps) { return <div className={props.class +" float-label"}> <input required value={prop...
import * as React from "react"; export interface InputProps{ onChange: (value: any) => void, label?: string id?: string, class?: string, value?: string } export function Input(props: InputProps) { return <div className={props.class +" float-label"}> <input required value={prop...
Return Undefined on Empty Input
Return Undefined on Empty Input
TypeScript
mit
goodbye-island/S-Store-Front-End,goodbye-island/S-Store-Front-End,goodbye-island/S-Store-Front-End
--- +++ @@ -10,7 +10,7 @@ export function Input(props: InputProps) { return <div className={props.class +" float-label"}> - <input required value={props.value} id={props.id} onChange={(e: any) => props.onChange(e.target.value)} /> + <input required value={props.value} id={props....
67c024578f5c55a5880a4407592b9365eccc915f
src/main.ts
src/main.ts
/// <reference path="func.ts" /> declare var module; declare var require; if (module && module.exports && typeof require === 'function') { module.exports = fun; }
/// <reference path="type.ts" /> /// <reference path="func.ts" /> declare var module; declare var require; if (module && module.exports && typeof require === 'function') { module.exports = fun; }
Add mssing reference to type.ts
Add mssing reference to type.ts
TypeScript
mit
federico-lox/fun.ts
--- +++ @@ -1,3 +1,4 @@ +/// <reference path="type.ts" /> /// <reference path="func.ts" /> declare var module;
d0dba1fce6dcc0b91c0561eda8707c5c5bb6e626
client/src/app/videos/+video-edit/video-update.resolver.ts
client/src/app/videos/+video-edit/video-update.resolver.ts
import { Injectable } from '@angular/core' import { VideoService } from '@app/shared/video/video.service' import { ActivatedRouteSnapshot, Resolve } from '@angular/router' import { map, switchMap } from 'rxjs/operators' import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' import { Video...
import { Injectable } from '@angular/core' import { VideoService } from '@app/shared/video/video.service' import { ActivatedRouteSnapshot, Resolve } from '@angular/router' import { map, switchMap } from 'rxjs/operators' import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' import { Video...
Optimize video update page load
Optimize video update page load
TypeScript
agpl-3.0
Chocobozzz/PeerTube,Green-Star/PeerTube,Chocobozzz/PeerTube,Green-Star/PeerTube,Green-Star/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube,Green-Star/PeerTube
--- +++ @@ -4,6 +4,7 @@ import { map, switchMap } from 'rxjs/operators' import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' import { VideoCaptionService } from '@app/shared/video-caption' +import { forkJoin } from 'rxjs' @Injectable() export class VideoUpdateResolver implement...
350ca39633924b9bd5c39feb846338633d73f9d2
packages/hooks/src/useApolloClient.ts
packages/hooks/src/useApolloClient.ts
import React from 'react'; import { invariant } from 'ts-invariant'; import { getApolloContext } from '@apollo/react-common'; export function useApolloClient() { const { client } = React.useContext(getApolloContext()); invariant( client, 'No Apollo Client instance can be found. Please ensure that you ' + ...
import React from 'react'; import { invariant } from 'ts-invariant'; import { getApolloContext } from '@apollo/react-common'; import ApolloClient from 'apollo-client'; export function useApolloClient(): ApolloClient<object> { const { client } = React.useContext(getApolloContext()); invariant( client, 'No A...
Make sure a returned `ApolloClient<object>` is enforced
Make sure a returned `ApolloClient<object>` is enforced
TypeScript
mit
apollostack/react-apollo,apollographql/react-apollo,apollostack/react-apollo,apollographql/react-apollo
--- +++ @@ -1,13 +1,14 @@ import React from 'react'; import { invariant } from 'ts-invariant'; import { getApolloContext } from '@apollo/react-common'; +import ApolloClient from 'apollo-client'; -export function useApolloClient() { +export function useApolloClient(): ApolloClient<object> { const { client } = ...
595f002a2bde6ccdd4647ba9f55071662ab26c0d
src/simpleExample/index.ts
src/simpleExample/index.ts
// All in one file example import { Component, getStyle, Actions, StyleGroup, run, Inputs, logFns } from '../core' import { h, View, viewHandler } from '../interfaces/view' import { styleHandler } from '../groups/style' // Component const state = { count: 0, } type S = typeof state const inputs: Inputs<S> = (s, F...
// All in one file example import { Component, getStyle, Actions, StyleGroup, run, Inputs } from '../core' import { h, View, viewHandler } from '../interfaces/view' import { styleHandler } from '../groups/style' // Component const state = { count: 0, } type S = typeof state const inputs: Inputs<S> = (s, F) => ({ ...
Remove unused import from simpleExample
Remove unused import from simpleExample
TypeScript
mit
FractalBlocks/Fractal,FractalBlocks/Fractal,FractalBlocks/Fractal
--- +++ @@ -1,5 +1,5 @@ // All in one file example -import { Component, getStyle, Actions, StyleGroup, run, Inputs, logFns } from '../core' +import { Component, getStyle, Actions, StyleGroup, run, Inputs } from '../core' import { h, View, viewHandler } from '../interfaces/view' import { styleHandler } from '../gro...
9afdb529c53498c5f9362ce70fcbe8255f575a06
reactjs/src/stores/storeIdentifier.ts
reactjs/src/stores/storeIdentifier.ts
import RoleStore from './roleStore'; import TenantStore from './tenantStore'; import UserStore from './userStore'; import SessionStore from './sessionStore'; import AuthenticationStore from './authenticationStore'; import AccountStore from './accountStore'; export default class Stores { static AuthenticationStore: s...
export default class Stores { static AuthenticationStore: string = 'authenticationStore'; static RoleStore: string = 'roleStore'; static TenantStore: string = 'tenantStore'; static UserStore: string = 'userStore'; static SessionStore: string = 'sessionStore'; static AccountStore: string = 'accountStore'; }
Store 'e' is not available error fixed for production build
Store 'e' is not available error fixed for production build
TypeScript
mit
aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template
--- +++ @@ -1,19 +1,8 @@ -import RoleStore from './roleStore'; -import TenantStore from './tenantStore'; -import UserStore from './userStore'; -import SessionStore from './sessionStore'; -import AuthenticationStore from './authenticationStore'; -import AccountStore from './accountStore'; - export default class Store...
513c475e3d9a0661b72364121c67d22a44c9d7d6
desktop/app/src/deeplinkTracking.tsx
desktop/app/src/deeplinkTracking.tsx
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import {Logger} from 'flipper-common'; export type OpenPluginParams = { pluginId: string; client: string | unde...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import {Logger} from 'flipper-common'; export type OpenPluginParams = { pluginId: string; client: string | unde...
Add comments for interaction events
Add comments for interaction events Summary: Per title Reviewed By: mweststrate Differential Revision: D32171224 fbshipit-source-id: b7610e8c10674d56e75468f46a3fd0664d70b4aa
TypeScript
mit
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
--- +++ @@ -19,15 +19,15 @@ export type DeeplinkInteractionState = | 'INIT' | 'ERROR' - | 'PLUGIN_LIGHTHOUSE_BAIL' - | 'PLUGIN_STATUS_BAIL' - | 'PLUGIN_DEVICE_BAIL' - | 'PLUGIN_CLIENT_BAIL' - | 'PLUGIN_DEVICE_SELECTION_BAIL' - | 'PLUGIN_CLIENT_SELECTION_BAIL' - | 'PLUGIN_DEVICE_UNSUPPORTED' - | 'PLUGIN...
458b35d82cbe72a1f8d22070c9c032ef186ee4c6
src/navigation/replace.tsx
src/navigation/replace.tsx
import React from "react"; import { domToReact } from "html-react-parser"; import attributesToProps from "html-react-parser/lib/attributes-to-props"; import { HashLink as Link } from "react-router-hash-link"; export function replace(domNode: any) { if (domNode.name && domNode.name === "a") { const { href, ...res...
import React from "react"; import { domToReact } from "html-react-parser"; import attributesToProps from "html-react-parser/lib/attributes-to-props"; import { HashLink as Link } from "react-router-hash-link"; export function replace(domNode: any) { if (domNode.name && domNode.name === "a") { const { href, ...res...
Fix external links for example reports breaking
DS: Fix external links for example reports breaking
TypeScript
apache-2.0
saasquatch/saasquatch-docs,saasquatch/saasquatch-docs,saasquatch/saasquatch-docs
--- +++ @@ -7,14 +7,20 @@ if (domNode.name && domNode.name === "a") { const { href, ...rest } = domNode.attribs; const props = attributesToProps(rest); - if(href && !href.startsWith("http:") && !href.startsWith("https:") && !href.startsWith("mailto:")){ + if ( + href && + !href.startsWith...
00dc902fee69f3c388bd63e2704c4c3bef1ab3cc
src/workerExample/index.ts
src/workerExample/index.ts
import { runWorker, run } from '../core' import { moduleDef } from './module' // TODO: make this variable dynamic, implement a toggle button for that const runInWorker = true if (runInWorker) { // Running Fractal in a worker thread runWorker({ Root: 'in-worker', // no matter what you put here ;) because Root ...
import { runWorker, run } from '../core' import { moduleDef } from './module' // TODO: make this variable dynamic, implement a toggle button for that const runInWorker = true if (runInWorker) { // Running Fractal in a worker thread runWorker({ worker: new Worker('worker.js'), ...moduleDef, }) } else { ...
Remove unused stuff in worker and playground example
Remove unused stuff in worker and playground example
TypeScript
mit
FractalBlocks/Fractal,FractalBlocks/Fractal,FractalBlocks/Fractal
--- +++ @@ -7,7 +7,6 @@ if (runInWorker) { // Running Fractal in a worker thread runWorker({ - Root: 'in-worker', // no matter what you put here ;) because Root component is imported inside the worker worker: new Worker('worker.js'), ...moduleDef, })
05798c2f4610a7c82fc0e1a7b7b75da93f60233e
src/vs/workbench/parts/extensions/electron-browser/extensionsFileTemplate.ts
src/vs/workbench/parts/extensions/electron-browser/extensionsFileTemplate.ts
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
Update description of recommendations prop
Update description of recommendations prop
TypeScript
mit
zyml/vscode,zyml/vscode,Microsoft/vscode,rishii7/vscode,charlespierce/vscode,hashhar/vscode,stringham/vscode,0xmohit/vscode,matthewshirley/vscode,zyml/vscode,veeramarni/vscode,radshit/vscode,microsoft/vscode,hashhar/vscode,microlv/vscode,charlespierce/vscode,cleidigh/vscode,landonepps/vscode,zyml/vscode,veeramarni/vsco...
--- +++ @@ -14,7 +14,7 @@ properties: { recommendations: { type: 'array', - description: localize('app.extensions.json.recommendations', "List of extension recommendations."), + description: localize('app.extensions.json.recommendations', "List of extensions recommendations. The identifier of an extensio...
a35d30eaf018b09fdd5b93fc1920c80c43192bb6
frontend/maybe_load_app_signal.ts
frontend/maybe_load_app_signal.ts
export async function maybeLoadAppSignal() { const token = globalConfig["APPSIGNAL_TOKEN"]; if (window.appSignal) { console.log("Already have appSignal loaded."); return; } if (token) { console.log("Load appsignal"); const AppSignal = (await import("@appsignal/javascript")).default; consol...
export async function maybeLoadAppSignal() { const token = globalConfig["APPSIGNAL_TOKEN"]; if (window.appSignal) { console.log("Already have appSignal loaded."); return; } if (token) { const AppSignal = (await import("@appsignal/javascript")).default; const { plugin } = await import("@appsign...
Remove loggers, use real FE token
Remove loggers, use real FE token
TypeScript
mit
gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,FarmBot/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,FarmBot/Farmbot-Web-...
--- +++ @@ -7,19 +7,15 @@ } if (token) { - console.log("Load appsignal"); const AppSignal = (await import("@appsignal/javascript")).default; - console.log("Load window events plugin"); const { plugin } = await import("@appsignal/plugin-window-events"); - console.log("instantiate appsignal")...
897a5ec79194507bbfb3343a93ae711123f1dc84
lib/typescript/contact_property.ts
lib/typescript/contact_property.ts
import { RequestPromise } from 'request-promise' declare class Properties { get(): RequestPromise getByName(name: string): RequestPromise create(data: {}): RequestPromise update(name: string, data: {}): RequestPromise upsert(data: {}): RequestPromise getGroups(): RequestPromise createGroup(data: {}...
import { RequestPromise } from 'request-promise' declare class Properties { get(): RequestPromise getByName(name: string): RequestPromise create(data: {}): RequestPromise update(name: string, data: {}): RequestPromise upsert(data: {}): RequestPromise getGroups(): RequestPromise createGroup(data: {}...
Change the delete response from void to RequestPromise
Change the delete response from void to RequestPromise
TypeScript
mit
brainflake/node-hubspot,brainflake/node-hubspot
--- +++ @@ -19,7 +19,7 @@ deleteGroup(name: string): void - delete(name: string): void + delete(name: string): RequestPromise } export { Properties }
46ab7d7c7852b43f64b1bacf04a99056c127e253
src/promised.tsx
src/promised.tsx
import * as React from 'react'; import LinearProgress from 'material-ui/LinearProgress'; import Snackbar from 'material-ui/Snackbar'; interface PromisedState { error?: Error; loading: boolean; value?: any; } // tslint:disable-next-line:only-arrow-functions const Promised = function<T, ChildProps = {}>(pr...
import * as React from 'react'; import LinearProgress from 'material-ui/LinearProgress'; import Snackbar from 'material-ui/Snackbar'; interface PromisedState { error?: Error; loading: boolean; value?: any; } // Inspired by http://natpryce.com/articles/000814.html // tslint:disable-next-line:only-arrow-f...
Add reference to inspiring blog post
Add reference to inspiring blog post
TypeScript
mit
mthmulders/hyperion-web,mthmulders/hyperion-web,mthmulders/hyperion-web
--- +++ @@ -8,6 +8,8 @@ loading: boolean; value?: any; } + +// Inspired by http://natpryce.com/articles/000814.html // tslint:disable-next-line:only-arrow-functions const Promised = function<T, ChildProps = {}>(propName: string, Wrapped: React.ComponentType<ChildProps>) {
b351af4e1c28c8e7021f107c5dca1c96be55331b
src/index.ts
src/index.ts
import { SandboxParameter } from './interfaces'; import nativeAddon from './nativeAddon'; import { SandboxProcess } from './sandboxProcess'; import { existsSync } from 'fs'; import * as randomString from 'randomstring'; import * as path from 'path'; export * from './interfaces'; if (!existsSync('/sys/fs/cgroup/memory...
import { SandboxParameter } from './interfaces'; import nativeAddon from './nativeAddon'; import { SandboxProcess } from './sandboxProcess'; import { existsSync } from 'fs'; import * as randomString from 'randomstring'; import * as path from 'path'; export * from './interfaces'; if (!existsSync('/sys/fs/cgroup/memory...
Fix cgroup not deleted after sandbox finished
Fix cgroup not deleted after sandbox finished
TypeScript
mit
t123yh/simple-sandbox,t123yh/simple-sandbox
--- +++ @@ -15,6 +15,6 @@ const actualParameter = Object.assign({}, parameter); actualParameter.cgroup = path.join(actualParameter.cgroup, randomString.generate(9)); const startResult: { pid: number; execParam: ArrayBuffer } = nativeAddon.startSandbox(actualParameter); - return new SandboxProcess(pa...
523336f8b190b11416fab41c54607348c9491770
src/index.ts
src/index.ts
import { middleware, Middleware as GenericMiddleware } from '@pawelgalazka/middleware' import { useMiddlewares } from './middlewares' export { useMiddlewares } from './middlewares' export { help, withHelp } from './middlewares/helper' export { rawArgs } from './middlewares/rawArgsParser' export type CommandFuncti...
import { middleware, Middleware as GenericMiddleware } from '@pawelgalazka/middleware' import { useMiddlewares } from './middlewares' export { useMiddlewares } from './middlewares' export { help, withHelp } from './middlewares/helper' export { rawArgs } from './middlewares/rawArgsParser' export type CommandFuncti...
Make command optional for IMiddlewareArguments
Make command optional for IMiddlewareArguments
TypeScript
mit
pawelgalazka/microcli,pawelgalazka/microcli
--- +++ @@ -26,7 +26,7 @@ params: CLIParams definition: CommandsModule namespace: string - command: CommandFunction + command?: CommandFunction reject: (error: Error) => void } @@ -37,7 +37,6 @@ middlewares: Middleware[] = useMiddlewares() ) { middleware<IMiddlewareArguments>(middlewares)({ - ...
74f1191e4e3f5e1a55e011f703c13a287ce9fa74
src/index.ts
src/index.ts
import {PropertyType} from "./model/property-type"; import {ModelOptions, ProcessMode} from "./model/options"; import {ValidateResult} from "./manager/validate"; import {model} from "./model/model"; import {type} from "./decorator/type"; import {length} from "./decorator/length"; import {range} from "./decorator/rang...
import {PropertyType} from "./model/property-type"; import {ModelOptions, ProcessMode} from "./model/options"; import {ValidateResult} from "./manager/validate"; import {model} from "./model/model"; import {type} from "./decorator/type"; import {length} from "./decorator/length"; import {range} from "./decorator/rang...
Validate accepts an array of models
Validate accepts an array of models
TypeScript
mit
Cytren/DecorativeModels,Cytren/DecorativeModels
--- +++ @@ -15,14 +15,35 @@ function validate(model: Object): boolean; function validate(model: Object, result: ValidateResult); +function validate(models: Object[]): boolean; +function validate(models: Object[], result: ValidateResult); -function validate(model: Object, result?: ValidateResult) { - let erro...
eb623dfb1c3432b4cc543b7dbfb66839d0b620cf
src/utils.ts
src/utils.ts
"use strict"; import * as path from "path"; import * as fs from "fs"; import { workspace } from "vscode"; export const dartVMPath = "bin/dart"; export const analyzerPath = "bin/snapshots/analysis_server.dart.snapshot"; const configExtensionName = "dart"; const configSdkPathName = "sdkPath"; const configSetIndentName ...
"use strict"; import * as path from "path"; import * as fs from "fs"; import { workspace } from "vscode"; export const dartVMPath = "bin/dart"; export const analyzerPath = "bin/snapshots/analysis_server.dart.snapshot"; const configExtensionName = "dart"; const configSdkPathName = "sdkPath"; const configSetIndentName ...
Use platform-specific path delimiter when parsing PATH.
Use platform-specific path delimiter when parsing PATH. #17
TypeScript
mit
Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code
--- +++ @@ -13,7 +13,7 @@ let config = workspace.getConfiguration(configExtensionName); export function findDartSdk(): string { - let paths = (<string>process.env.PATH).split(";"); + let paths = (<string>process.env.PATH).split(path.delimiter); // We don't expect the user to add .\bin in config, but ...
899161a67c6a57d4cf13fd9d7a1e754566d51ec0
src/index.ts
src/index.ts
export default { isValid(bic: string): boolean { const bicRegex = /^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$/; return bicRegex.test(bic); }, };
const BIC_REGEX = /^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$/; export default { isValid(bic: string): boolean { return BIC_REGEX.test(bic); }, };
Move the regex definition outside of the function
Move the regex definition outside of the function
TypeScript
mit
nicolaspayot/bic,nicolaspayot/bic
--- +++ @@ -1,7 +1,7 @@ +const BIC_REGEX = /^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$/; + export default { isValid(bic: string): boolean { - const bicRegex = /^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$/; - - return bicRegex.test(bic); + return BIC_REGEX.test(bic); }, };
2e810944a7394cf3b9870ffe056be0d97b7c2157
src/index.ts
src/index.ts
import { app, BrowserWindow, webContents, shell } from "electron"; import { ThemeCompiler } from "./theme-compiler"; let win; function createWindow() { ThemeCompiler.existsDefaultTheme() .then(ThemeCompiler.loadThemes) .then(ThemeCompiler.compileThemes) .then(() => { win = new...
import { app, BrowserWindow, webContents, shell } from "electron"; import { ThemeCompiler } from "./theme-compiler"; let win; function createWindow() { ThemeCompiler.existsDefaultTheme() .then(ThemeCompiler.loadThemes) .then(ThemeCompiler.compileThemes) .then(() => { win = new...
Make a function more lisible
Make a function more lisible
TypeScript
mit
Xstoudi/alduin,Xstoudi/alduin,Xstoudi/alduin
--- +++ @@ -35,9 +35,9 @@ win === null && createWindow(); // Code like if you were in Satan's church }); -function handleRedirect(e, url) { - if (url != webContents.getFocusedWebContents().getURL()) { - e.preventDefault(); - shell.openExternal(url); - } +function handleRedirect(event: Even...
020fca21c11d8424905b5b21f440d45a8d5dc08d
src/index.ts
src/index.ts
/** * @file The primary entry for Innerface. * * @author Justin Toon * @license MIT */ import * as _ from 'lodash'; import { selectors } from './if.const'; import * as controllers from './controllers'; /** * A system of simple UI actions implemented with an HTML API. * * @since 0.1.0 */ export default class...
/** * @file The primary entry for Innerface. * * @author Justin Toon * @license MIT */ import * as _ from 'lodash'; import { selectors } from './if.const'; import * as controllers from './controllers'; /** * A system of simple UI actions implemented with an HTML API. * * @since 0.1.0 */ export default class...
Add typing; fix initialization call
Add typing; fix initialization call
TypeScript
mit
overneath42/innerface,overneath42/innerface
--- +++ @@ -20,8 +20,8 @@ * Initialize the library. */ public static init() { - _.forEach(controllers, (controller, index) => { - controller().initialize(); + _.forEach(controllers, (controller: Innerface.Controller, key: string) => { + controller.initialize(); }); } }
b3f48d9811a8afab41e150a1eeebe9fdb95e20b1
src/universal.ts
src/universal.ts
import { Request } from 'servie' import { HttpResponse, request as nodeRequest, RequestOptions as NodeRequestOptions, transport as nodeTransport, TransportOptions as NodeTransportOptions } from './node' import { XhrResponse, RequestOptions as BrowserRequestOptions, TransportOptions as BrowserTransportO...
import { Request } from 'servie' import { HttpResponse, request as nodeRequest, RequestOptions as NodeRequestOptions, transport as nodeTransport, TransportOptions as NodeTransportOptions } from './node' import { XhrResponse, RequestOptions as BrowserRequestOptions, TransportOptions as BrowserTransportO...
Add default transport `send` and optional req opts
Add default transport `send` and optional req opts
TypeScript
mit
blakeembrey/popsicle,blakeembrey/popsicle
--- +++ @@ -15,7 +15,8 @@ export type SendFn = (req: Request) => Promise<HttpResponse | XhrResponse> export type TransportFn = (options?: NodeTransportOptions & BrowserTransportOptions) => SendFn -export type RequestFn = (url: string, options: NodeRequestOptions & BrowserRequestOptions) => Request +export type Re...
11b38ef20f7f7841a6b2d348008b8fa073974d68
src/cmds/dev/sync-watch.cmd.ts
src/cmds/dev/sync-watch.cmd.ts
import { constants, fs, fsPath, log, printTitle, deps, } from '../../common'; import * as chokidar from 'chokidar'; import * as syncLibs from './sync-libs.cmd'; export const group = 'dev'; export const name = 'sync:watch'; export const alias = 'sw'; export const description = 'Auto syncs when module files chang...
import { constants, fs, fsPath, log, printTitle, deps, } from '../../common'; import * as chokidar from 'chokidar'; import * as syncLibs from './sync-libs.cmd'; export const group = 'dev'; export const name = 'sync:watch'; export const alias = 'sw'; export const description = 'Auto syncs when module files chang...
Make sync listen to typescript file changes
Make sync listen to typescript file changes
TypeScript
mit
frederickfogerty/js-cli,frederickfogerty/js-cli,frederickfogerty/js-cli
--- +++ @@ -16,7 +16,7 @@ export const description = 'Auto syncs when module files change.'; -const PATTERN = '/lib/**/*.js'; +const PATTERN = '/lib/**/*.{js,ts}'; export async function cmd( args?: {
e47a787082eb3d9911933d229a3ac7c3ced59edc
CeraonUI/src/Components/AppHost.tsx
CeraonUI/src/Components/AppHost.tsx
import * as React from 'react'; export default class AppHost extends React.Component<any, any> { constructor() { super(); } render() { return ( React.Children.only(this.props.children) ); } }
import * as React from 'react'; export default class AppHost extends React.Component<any, any> { constructor() { super(); } render() { return ( <div> {this.props.children} </div> ); } }
Expand apphost to support multiple components
Expand apphost to support multiple components
TypeScript
bsd-3-clause
Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound
--- +++ @@ -7,7 +7,9 @@ render() { return ( - React.Children.only(this.props.children) + <div> + {this.props.children} + </div> ); } }
07201fbb48dfecd35d2bca1bbf1befea177e15fb
src/octicon.tsx
src/octicon.tsx
import * as React from 'react' interface OcticonProps { width?: number, height?: number, symbol: string } export default class Octicon extends React.Component<OcticonProps, void> { public static defaultProps: OcticonProps = { width: 16, height: 16, symbol: "" }; public constructor(props: OcticonProps) { ...
import * as React from 'react' import {OcticonSymbol} from './octicons.generated' export {OcticonSymbol as OcticonSymbol}; interface OcticonProps { width?: number, height?: number, symbol: OcticonSymbol } export class Octicon extends React.Component<OcticonProps, void> { public static defaultProps: OcticonP...
Use the new OcticonSymbol type for the component
Use the new OcticonSymbol type for the component
TypeScript
mit
say25/desktop,kactus-io/kactus,desktop/desktop,say25/desktop,artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,j-f1/forked-desktop,desktop/desktop,BugTesterTest/desktops,hjobrien/desktop,desktop/desktop,kactus-io/kactus,gengjiawen/desktop,kactus-io/kactus,artivilla/desktop,BugTesterTest/desktops,shiftkey/desktop,d...
--- +++ @@ -1,23 +1,28 @@ import * as React from 'react' +import {OcticonSymbol} from './octicons.generated' + +export {OcticonSymbol as OcticonSymbol}; interface OcticonProps { width?: number, height?: number, - symbol: string + symbol: OcticonSymbol } -export default class Octicon extends React.Compo...
b5934738c711796667c0a7d9996e9174c6aea105
applications/calendar/src/app/components/onboarding/CalendarOnboardingModal.tsx
applications/calendar/src/app/components/onboarding/CalendarOnboardingModal.tsx
import { c } from 'ttag'; import { OnboardingContent, OnboardingModal, OnboardingStep, OnboardingStepRenderCallback, useSettingsLink, } from '@proton/components'; import { APPS } from '@proton/shared/lib/constants'; import { CALENDAR_APP_NAME } from '@proton/shared/lib/calendar/constants'; import on...
import { c } from 'ttag'; import { OnboardingContent, OnboardingModal, OnboardingStep, OnboardingStepRenderCallback, useSettingsLink, } from '@proton/components'; import { APPS } from '@proton/shared/lib/constants'; import { CALENDAR_APP_NAME } from '@proton/shared/lib/calendar/constants'; import on...
Fix backticks inside context string
Fix backticks inside context string ttag cli is unable to find these strings
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -19,17 +19,17 @@ {({ onNext }: OnboardingStepRenderCallback) => { return ( <OnboardingStep - submit={c(`Onboarding ProtonCalendar`).t`Import events`} + submit={c('Onboarding ProtonCalendar').t`Import events`} ...
d75938d355d5f98a0c79140085fa1709a7fb18cb
angular-src/src/app/components/loggedin-wrapper/content/admin/admin.component.ts
angular-src/src/app/components/loggedin-wrapper/content/admin/admin.component.ts
import { Component, OnInit } from '@angular/core'; import { UserService } from '../../../../services/user.service'; @Component({ selector: 'app-admin', templateUrl: './admin.component.html', styleUrls: ['./admin.component.scss'] }) export class AdminComponent implements OnInit { users: any; constructor(priv...
import { Component, OnInit } from '@angular/core'; import { UserService } from '../../../../services/user.service'; @Component({ selector: 'app-admin', templateUrl: './admin.component.html', styleUrls: ['./admin.component.scss'] }) export class AdminComponent implements OnInit { users: any; constructor(priv...
Fix offline admin panel access issue
Fix offline admin panel access issue
TypeScript
mit
karlveskus/moodlebox,karlveskus/moodlebox,karlveskus/moodlebox
--- +++ @@ -15,6 +15,7 @@ this.userService.getAllUsers().subscribe( data => { localStorage.setItem('users', JSON.stringify(data)); + this.users = JSON.parse(localStorage.getItem('users')); }); this.users = JSON.parse(localStorage.getItem('users'));
0443f10ecc21ad16d2a9fda34434e8203f5c58f5
ui/src/index.tsx
ui/src/index.tsx
import 'bootstrap/dist/css/bootstrap.min.css'; import React from 'react'; import ReactDOM from 'react-dom'; import { I18nextProvider } from 'react-i18next'; import Modal from 'react-modal'; import App from './App'; import './buttons.css'; import i18n from './i18n/i18n'; import Field from './idai_field/Field'; import Sh...
import 'bootstrap/dist/css/bootstrap.min.css'; import React from 'react'; import ReactDOM from 'react-dom'; import { I18nextProvider } from 'react-i18next'; import Modal from 'react-modal'; import './buttons.css'; import i18n from './i18n/i18n'; import Field from './idai_field/Field'; import Shapes from './idai_shapes/...
Read main component from env for dev environment
Read main component from env for dev environment
TypeScript
apache-2.0
dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web
--- +++ @@ -3,7 +3,6 @@ import ReactDOM from 'react-dom'; import { I18nextProvider } from 'react-i18next'; import Modal from 'react-modal'; -import App from './App'; import './buttons.css'; import i18n from './i18n/i18n'; import Field from './idai_field/Field'; @@ -24,11 +23,9 @@ // Run only shapes or field ...
426e59d8ba35c6fb7cb4ae31aa3bcbd3cda6cec5
src/picturepark-sdk-v1-angular/src/tests/config.template.ts
src/picturepark-sdk-v1-angular/src/tests/config.template.ts
import { HttpClientModule } from '@angular/common/http'; import { TestBed } from '@angular/core/testing'; import { PICTUREPARK_API_URL, PICTUREPARK_CONFIGURATION, PictureparkConfiguration, AuthService, AccessTokenAuthService } from '@picturepark/sdk-v1-angular'; export const testUrl = '{Server}'; export con...
import { HttpClientModule } from '@angular/common/http'; import { TestBed } from '@angular/core/testing'; import { PICTUREPARK_API_URL, PICTUREPARK_CONFIGURATION, PictureparkConfiguration, AuthService, AccessTokenAuthService } from '@picturepark/sdk-v1-angular'; export const testUrl = '{Server}'; export con...
Extend timeout to 10 sec.
PP9-9267: Extend timeout to 10 sec.
TypeScript
mit
Picturepark/Picturepark.SDK.TypeScript,Picturepark/Picturepark.SDK.TypeScript,Picturepark/Picturepark.SDK.TypeScript
--- +++ @@ -14,6 +14,7 @@ export const testCustomerAlias = '{CustomerAlias}'; export function configureTest() { + jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000; TestBed.configureTestingModule({ imports: [ HttpClientModule
024f7bb87f57d7c15b675ce7257a0bffe42e3972
packages/components/containers/feedback/RebrandingFeedbackModal.tsx
packages/components/containers/feedback/RebrandingFeedbackModal.tsx
import { c } from 'ttag'; import useFeature from '../../hooks/useFeature'; import { FeatureCode } from '../features/FeaturesContext'; import FeedbackModal, { FeedbackModalProps } from './FeedbackModal'; import { RebrandingFeatureValue } from './useRebrandingFeedback'; const RebrandingFeedbackModal = (props: Partial<F...
import { c } from 'ttag'; import useFeature from '../../hooks/useFeature'; import { FeatureCode } from '../features/FeaturesContext'; import FeedbackModal, { FeedbackModalProps } from './FeedbackModal'; import { RebrandingFeatureValue } from './useRebrandingFeedback'; const RebrandingFeedbackModal = (props: Partial<F...
Change rebranding feedback scale from 0-5 to 1-5
Change rebranding feedback scale from 0-5 to 1-5 CP-4053
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -30,9 +30,9 @@ feedbackType="rebrand_web" scaleTitle={c('Label').t`How would you describe your experience with the new Proton?`} scaleProps={{ - from: 0, + from: 1, to: 5, - fromLabel: c('Label').t`0 - Awfu...
891e63ff019bfcfa27b25cfd4485ab33b753d313
src/elmReactor.ts
src/elmReactor.ts
import * as vscode from 'vscode'; import * as cp from 'child_process'; let reactor: cp.ChildProcess; let oc: vscode.OutputChannel = vscode.window.createOutputChannel('Elm Reactor'); function startReactor() { try { if (reactor) { reactor.kill(); oc.clear(); } const config = vscode.workspace....
import * as vscode from 'vscode'; import * as cp from 'child_process'; let reactor: cp.ChildProcess; let oc: vscode.OutputChannel = vscode.window.createOutputChannel('Elm Reactor'); function startReactor(): void { try { if (reactor) { reactor.kill(); oc.clear(); } const config: vscode.Worksp...
Reformat code and add types
Reformat code and add types
TypeScript
mit
sbrink/vscode-elm,Krzysztof-Cieslak/vscode-elm
--- +++ @@ -4,16 +4,15 @@ let reactor: cp.ChildProcess; let oc: vscode.OutputChannel = vscode.window.createOutputChannel('Elm Reactor'); - -function startReactor() { +function startReactor(): void { try { if (reactor) { reactor.kill(); oc.clear(); } - const config = vscode.workspace....
02e010d7e85345d26632897972bb735134bf225d
src/main/webapp/src/app/app.module.ts
src/main/webapp/src/app/app.module.ts
// Copyright 2019 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// Copyright 2019 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
Remove traces of second page
Remove traces of second page
TypeScript
apache-2.0
googleinterns/step26-2020,googleinterns/step26-2020,googleinterns/step26-2020,googleinterns/step26-2020
--- +++ @@ -18,11 +18,10 @@ import {AppRoutingModule} from './app-routing.module'; import {AppComponent} from './app.component'; import {MaterialComponents} from './material-components'; -import {TestPageComponent} from './test-page/test-page.component'; import {BrowserAnimationsModule} from '@angular/platform-br...
e7ee96689d5d83071232dea796ec362c327f8e51
src/main/installDevTools.ts
src/main/installDevTools.ts
import installExtension, { REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS, } from "electron-devtools-installer" import electronIsDev from "electron-is-dev" export const installDevTools = (): void => { const devTools = [REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS, "devtron"] if (electronIsDev) { devTools.forEach( as...
import installExtension, { REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS, } from "electron-devtools-installer" import electronIsDev from "electron-is-dev" export const installDevTools = (): void => { const devTools = [REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS] if (electronIsDev) { devTools.forEach( async (tool):...
Stop trying to make devtron load on app start
Stop trying to make devtron load on app start It's not working
TypeScript
agpl-3.0
briandk/transcriptase,briandk/transcriptase
--- +++ @@ -5,7 +5,7 @@ import electronIsDev from "electron-is-dev" export const installDevTools = (): void => { - const devTools = [REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS, "devtron"] + const devTools = [REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS] if (electronIsDev) { devTools.forEach( async (tool): Pr...
9545f2a55b87579826829fe708166d3b76f7e85f
src/app/feed.service.ts
src/app/feed.service.ts
import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import {Observable} from 'rxjs/Rx'; import { Feed } from './model/feed'; @Injectable() export class FeedService { private rssToJsonServiceBaseUrl: string = 'http://rss2json.com/api.json?rss_url='; constructor( private...
import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import {Observable} from 'rxjs/Rx'; import { Feed } from './model/feed'; @Injectable() export class FeedService { private rssToJsonServiceBaseUrl: string = 'https://rss2json.com/api.json?rss_url='; constructor( privat...
Use https protocol for security.
Use https protocol for security.
TypeScript
mit
Chan4077/angular-rss-reader,Chan4077/angular-rss-reader,Chan4077/angular-rss-reader
--- +++ @@ -6,7 +6,7 @@ @Injectable() export class FeedService { - private rssToJsonServiceBaseUrl: string = 'http://rss2json.com/api.json?rss_url='; + private rssToJsonServiceBaseUrl: string = 'https://rss2json.com/api.json?rss_url='; constructor( private http: Http
2a0d46c4acc9430aff1504934a6ce872b0048b1f
ts/_declare/jquery.eventListener.d.ts
ts/_declare/jquery.eventListener.d.ts
interface JQuery { addEventListener(type:string, selector?:any, data?:any, handler?:(eventObject:JQueryEventObject) => any, scope?:any): JQuery; addEventListener(type:string, selector?:any, handler?:(eventObject:JQueryEventObject) => any, scope?:any): JQuery; removeEventListener(type?:string, selector?:any...
interface JQuery { addEventListener(type:string, selector?:any, data?:any, handler?:(eventObject:JQueryEventObject) => any, scope?:any): JQuery; addEventListener(type:string, selector?:any, handler?:(eventObject:JQueryEventObject) => any, scope?:any): JQuery; removeEventListener(type?:string, selector?:any...
Allow removeEventListener to be more flexible
Allow removeEventListener to be more flexible
TypeScript
mit
codeBelt/StructureJS,codeBelt/StructureJS,codeBelt/StructureJS
--- +++ @@ -3,6 +3,7 @@ addEventListener(type:string, selector?:any, data?:any, handler?:(eventObject:JQueryEventObject) => any, scope?:any): JQuery; addEventListener(type:string, selector?:any, handler?:(eventObject:JQueryEventObject) => any, scope?:any): JQuery; + removeEventListener(type?:string, se...
5f129c31c73f6d1255f4a84f71e0c3da69cd99f1
src/frontend/redux/store.ts
src/frontend/redux/store.ts
import * as Redux from 'redux' import Hermes from '~/../utils/hermes' import {rootReducer, rootReducerMock} from '~/frontend/redux/reducers' declare global { interface Window { __REDUX_DEVTOOLS_EXTENSION__: Function } } const logger = new Hermes({name: 'frontend'}) const configureStore = (): Redux.Store<any...
import * as Redux from 'redux' import Hermes from '~/../utils/hermes' import {rootReducer, rootReducerMock} from '~/frontend/redux/reducers' declare global { interface Window { __REDUX_DEVTOOLS_EXTENSION__: Function } } const useMock = false // Should only be true for development const logger = new Hermes({n...
Use mock reducer only when useMock=true
Use mock reducer only when useMock=true
TypeScript
mit
devonzuegel/clarity,devonzuegel/clarity,devonzuegel/clarity,devonzuegel/clarity
--- +++ @@ -9,13 +9,14 @@ } } +const useMock = false // Should only be true for development const logger = new Hermes({name: 'frontend'}) const configureStore = (): Redux.Store<any> => { const devtools = window.__REDUX_DEVTOOLS_EXTENSION__ const _m = module as any - if (_m.hot) { + if (_m.hot && u...
2729fde6f31b2d2e53c9335a03b77c5c8a1e7bc6
app/scripts/modules/amazon/src/serverGroup/configure/wizard/securityGroups/ServerGroupSecurityGroupsRemoved.tsx
app/scripts/modules/amazon/src/serverGroup/configure/wizard/securityGroups/ServerGroupSecurityGroupsRemoved.tsx
import * as React from 'react'; import { FirewallLabels, noop } from '@spinnaker/core'; import { IAmazonServerGroupCommand } from '../../serverGroupConfiguration.service'; export interface IServerGroupSecurityGroupsRemovedProps { command?: IAmazonServerGroupCommand; removed?: string[]; onClear?: () => void; } ...
import * as React from 'react'; import { FirewallLabels, noop } from '@spinnaker/core'; import { IAmazonServerGroupCommand } from '../../serverGroupConfiguration.service'; export interface IServerGroupSecurityGroupsRemovedProps { command?: IAmazonServerGroupCommand; removed?: string[]; onClear?: () => void; } ...
Fix react key in forEach
fix(amazon/serverGroup): Fix react key in forEach
TypeScript
apache-2.0
icfantv/deck,ajordens/deck,icfantv/deck,duftler/deck,ajordens/deck,sgarlick987/deck,sgarlick987/deck,spinnaker/deck,sgarlick987/deck,spinnaker/deck,duftler/deck,spinnaker/deck,icfantv/deck,sgarlick987/deck,duftler/deck,icfantv/deck,duftler/deck,ajordens/deck,spinnaker/deck,ajordens/deck
--- +++ @@ -34,7 +34,7 @@ </p> <ul> {dirtySecurityGroups.map(s => ( - <li key="s">{s}</li> + <li key={s}>{s}</li> ))} </ul> <p className="text-right">
a84fa36a36881a5e80a0e7d1b89b334f079b6ecf
src/model/literature.ts
src/model/literature.ts
/** * @author Thomas Kleinke */ export interface Literature { quotation: string; zenonId?: string; } export module Literature { export const QUOTATION = 'quotation'; export const ZENON_ID = 'zenonId'; const VALID_FIELDS = [QUOTATION, ZENON_ID]; export function generateLabel(literature: L...
/** * @author Thomas Kleinke */ export interface Literature { quotation: string; zenonId?: string; page?: string; figure?: string; } export module Literature { export const QUOTATION = 'quotation'; export const ZENON_ID = 'zenonId'; export const PAGE = 'page'; export const FIGURE =...
Add fields page & figure to Literature
Add fields page & figure to Literature
TypeScript
apache-2.0
dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2
--- +++ @@ -5,6 +5,8 @@ quotation: string; zenonId?: string; + page?: string; + figure?: string; } @@ -12,16 +14,30 @@ export const QUOTATION = 'quotation'; export const ZENON_ID = 'zenonId'; + export const PAGE = 'page'; + export const FIGURE = 'figure'; - const VALID_FI...
bf70ebd9501813ca3c8e68d32b6ab5d518e541fc
lib/utils/calculate-grid-points.ts
lib/utils/calculate-grid-points.ts
import lonlat from '@conveyal/lonlat' import {PROJECTION_ZOOM_LEVEL} from 'lib/constants' /** * The grid extent is computed from the points. If the cell number for the right edge of the grid is rounded * down, some points could fall outside the grid. `lonlat.toPixel` and `lonlat.toPixel` naturally truncate down, wh...
import lonlat from '@conveyal/lonlat' import {PROJECTION_ZOOM_LEVEL} from 'lib/constants' /** * The grid extent is computed from the points. If the cell number for the right edge of the grid is rounded * down, some points could fall outside the grid. `lonlat.toPixel` and `lonlat.toPixel` naturally truncate down, wh...
Add 2 to the height and width
Add 2 to the height and width
TypeScript
mit
conveyal/analysis-ui,conveyal/analysis-ui,conveyal/analysis-ui
--- +++ @@ -14,7 +14,7 @@ ): number { const topLeft = lonlat.toPixel([bounds.west, bounds.north], zoom) const bottomRight = lonlat.toPixel([bounds.east, bounds.south], zoom) - const width = Math.floor(topLeft.x) - Math.floor(bottomRight.x) + 2 - const height = Math.floor(topLeft.y) - Math.floor(bottomRight.y...
5b5e3897219c2df2954a9a2980fa920c15f7be39
src/extension.ts
src/extension.ts
'use strict'; import {window, workspace, commands, ExtensionContext} from 'vscode'; import path = require('path'); import fs = require('fs'); import Yeoman from './yo/yo'; const yo = new Yeoman(); export function activate(context: ExtensionContext) { const cwd = workspace.rootPath; const disposable = commands.re...
'use strict'; import {window, workspace, commands, ExtensionContext} from 'vscode'; import path = require('path'); import fs = require('fs'); import Yeoman from './yo/yo'; const yo = new Yeoman(); export function activate(context: ExtensionContext) { const cwd = workspace.rootPath; const disposable = commands.re...
Fix pressing escape when picking generator
Fix pressing escape when picking generator
TypeScript
mit
SamVerschueren/vscode-yo
--- +++ @@ -22,7 +22,9 @@ })); }) .then(generator => { - yo.run(generator.label, cwd); + if (generator !== undefined) { + yo.run(generator.label, cwd); + } }) .catch(err => { console.error(err);
0590b82137c313ca0d78d9da9fff69b91b7b6fe6
src/client/app/shared/name-list/name-list.service.ts
src/client/app/shared/name-list/name-list.service.ts
import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs/Observable'; /** * This class provides the NameList service with methods to read names and add names. */ @Injectable() export class NameListService { /** * Creates a new NameListService ...
import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/throw'; import 'rxjs/add/operator/map'; // import 'rxjs/add/operator/do'; // for debugging import 'rxjs/add/operator/catch'; /** * This class provides...
Fix `TypeError` when trying to re-throw
Fix `TypeError` when trying to re-throw without the rxjs imports, re-throwing error in `handleError` results in a `TypeError: Observable_1.Observable.throw is not a function` I have also added in the `do` debugging lib (commented out) as its a handy tool to point out to dev's who are not familiar with rxjs (like my...
TypeScript
mit
davewragg/agot-spa,adobley/angular2-tdd-workshop,oblong-antelope/oblong-web,radiorabe/raar-ui,NathanWalker/angular2-seed-advanced,rtang03/fabric-seed,Nightapes/angular2-seed,vyakymenko/angular-seed-express,CNSKnight/angular2-seed-advanced,NathanWalker/angular2-seed-advanced,OlivierVoyer/angular-seed-advanced,pratheekhe...
--- +++ @@ -1,6 +1,11 @@ import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs/Observable'; + +import 'rxjs/add/observable/throw'; +import 'rxjs/add/operator/map'; +// import 'rxjs/add/operator/do'; // for debugging +import 'rxjs/add/operator/...
6ed2ef1326cd8c2f287f1e4999b735c4af26b56e
src/SyntaxNodes/OrderedListItemNode.ts
src/SyntaxNodes/OrderedListItemNode.ts
import { RichSyntaxNode } from './RichSyntaxNode' export class OrderedListItemNode extends RichSyntaxNode { private NUMBERED_LIST_ITEM: any = null }
import { SyntaxNode } from '../SyntaxNodes/SyntaxNode' import { RichSyntaxNode } from '../SyntaxNodes/RichSyntaxNode' export class OrderedListItemNode extends RichSyntaxNode { constructor(parentOrChildren?: RichSyntaxNode | SyntaxNode[], public ordinal?: number) { super(parentOrChildren) } private NUMBERE...
Add ordinal to ordered list items
Add ordinal to ordered list items
TypeScript
mit
start/up,start/up
--- +++ @@ -1,5 +1,10 @@ -import { RichSyntaxNode } from './RichSyntaxNode' +import { SyntaxNode } from '../SyntaxNodes/SyntaxNode' +import { RichSyntaxNode } from '../SyntaxNodes/RichSyntaxNode' export class OrderedListItemNode extends RichSyntaxNode { + constructor(parentOrChildren?: RichSyntaxNode | SyntaxNode...
61ebc2bb8142645709aaac98182b4201c39b5aeb
packages/ng/demo/app/date-range-picker/basic/basic.component.ts
packages/ng/demo/app/date-range-picker/basic/basic.component.ts
import { Component } from '@angular/core'; import * as moment from 'moment'; import {DateRangeSelectChoice} from '../../../../src/app/date-range-picker/date-range-picker.component'; @Component({ selector: 'demo-basic-date-range-picker', templateUrl: './basic.component.html', styleUrls: ['./basic.component.scss'] })...
import { Component } from '@angular/core'; import * as moment from 'moment'; import {DateRangeSelectChoice} from '../../../../src/app/date-range-picker/date-range-picker.component'; @Component({ selector: 'demo-basic-date-range-picker', templateUrl: './basic.component.html', styles: [''] }) export class BasicCompon...
FIX forgot to delete useless scss import
FIX forgot to delete useless scss import oops
TypeScript
mit
LuccaSA/lucca-front,LuccaSA/lucca-front,LuccaSA/lucca-front,LuccaSA/lucca-front
--- +++ @@ -5,7 +5,7 @@ @Component({ selector: 'demo-basic-date-range-picker', templateUrl: './basic.component.html', - styleUrls: ['./basic.component.scss'] + styles: [''] }) export class BasicComponent {
ef4314effd1f5233e35987265ef85cc4d3c5929d
src/app/sparrows/languages-training-set.ts
src/app/sparrows/languages-training-set.ts
import { createTrainingSet } from './training-set'; export const goRustAssignmentsTrainingSet = { title: "Go vs Rust", left: "Go.Assignment.", right: "Rust.Assignment.", baseUrl: "languages/", examples: createTrainingSet({ name: "Go.Assignment.", number: 19, prefix: ".png" }, { name: "Rust.Assignme...
import { createTrainingSet } from './training-set'; export const goRustAssignmentsTrainingSet = { title: "Go vs Rust", left: "Go.Assignment.", right: "Rust.Assignment.", baseUrl: "languages/", examples: createTrainingSet({ name: "Go.Assignment.", number: 19, prefix: ".png" }, { name: "Rust.Assignme...
Fix naming mismatches in the Haskell/Rust sets
Fix naming mismatches in the Haskell/Rust sets
TypeScript
apache-2.0
LearnWithLlew/SparrowDecks,LearnWithLlew/SparrowDecks,LearnWithLlew/SparrowDecks
--- +++ @@ -13,7 +13,7 @@ left: "Haskell.Assignment.", right: "Rust.Assignment.", baseUrl: "languages/", - examples: createTrainingSet({ name: "Go.Assignment.", number: 17, prefix: ".png" }, { name: "Rust.Assignment.", number: 18, prefix: ".png" }) + examples: createTrainingSet({ name: "Haskell.A...
88e13c49708800977e40791cf3fe66862ac9c4f9
projects/hslayers/src/components/sidebar/impressum.component.ts
projects/hslayers/src/components/sidebar/impressum.component.ts
import {Component} from '@angular/core'; import * as packageJson from '../../package.json'; import {HsUtilsService} from '../utils/utils.service'; @Component({ selector: 'hs-impressum', templateUrl: './partials/impressum.html', }) export class HsImpressumComponent { version = 'dev'; logo = ''; logoDisabled ...
import {Component} from '@angular/core'; import packageJson from '../../package.json'; import {HsUtilsService} from '../utils/utils.service'; @Component({ selector: 'hs-impressum', templateUrl: './partials/impressum.html', }) export class HsImpressumComponent { version = 'dev'; logo = ''; logoDisabled = fal...
Change how package version is imported
fix: Change how package version is imported
TypeScript
mit
hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng
--- +++ @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; -import * as packageJson from '../../package.json'; +import packageJson from '../../package.json'; import {HsUtilsService} from '../utils/utils.service'; @Component({
3aab81ba1bc8b9f05687b6908dd202dbe70fa16b
src/helpers/streams.ts
src/helpers/streams.ts
import { Readable, PassThrough } from 'stream'; export function readbleFromString(data: string): Readable { const readable = emptyReadable(); readable.push(data); readable.push(null); return readable; } export function readbleFromBuffer(data: any): Readable { const readable = emptyReadable(); readable.pu...
import { Readable, PassThrough } from 'stream'; export function readbleFromString(data: string): Readable { const readable = emptyReadable(); readable.push(data); readable.push(null); return readable; } export function readbleFromBuffer(data: any): Readable { const readable = emptyReadable(); readable.pu...
Fix stream duplication logic by creating fresh redable pipelines
Fix stream duplication logic by creating fresh redable pipelines
TypeScript
mit
arijoon/vendaire-discord-bot,arijoon/vendaire-discord-bot
--- +++ @@ -16,22 +16,36 @@ return readable; } +/** + * Duplicate a readble stream for multiple consumers + */ +export function duplicateStream(stream: Readable): [Readable, Readable] { + const clone1 = clone(stream); + const clone2 = clone(stream); + + return [clone1, clone2]; +} + +function clone(stream: ...
8275bed33fd75dcc2f1c7ebcd1e7ba08b3cbb9f5
tests/cases/fourslash/completionListInImportClause05.ts
tests/cases/fourslash/completionListInImportClause05.ts
/// <reference path='fourslash.ts' /> // @Filename: app.ts //// import * as A from "[|/*1*/|]"; // @Filename: /node_modules/@types/a__b/index.d.ts ////declare module "@e/f" { function fun(): string; } // @Filename: /node_modules/@types/c__d/index.d.ts ////export declare let x: number; const [replacementS...
/// <reference path='fourslash.ts' /> // @Filename: app.ts //// import * as A from "[|/*1*/|]"; // @Filename: /node_modules/@types/a__b/index.d.ts ////declare module "@e/f" { function fun(): string; } // @Filename: /node_modules/@types/c__d/index.d.ts ////export declare let x: number; // NOTE: When perfo...
Add comment explaining test-only workaround
Add comment explaining test-only workaround
TypeScript
apache-2.0
SaschaNaz/TypeScript,RyanCavanaugh/TypeScript,kpreisser/TypeScript,weswigham/TypeScript,alexeagle/TypeScript,basarat/TypeScript,microsoft/TypeScript,RyanCavanaugh/TypeScript,nojvek/TypeScript,kpreisser/TypeScript,kitsonk/TypeScript,microsoft/TypeScript,Microsoft/TypeScript,SaschaNaz/TypeScript,basarat/TypeScript,Micros...
--- +++ @@ -9,6 +9,11 @@ // @Filename: /node_modules/@types/c__d/index.d.ts ////export declare let x: number; +// NOTE: When performing completion, the "current directory" appears to be "/", +// which is well above "." (i.e. the directory containing "app.ts"). This issue +// is specific to the virtual file syste...
9d5db080c1679375b7cb9b4a5465b0427138073f
resources/assets/lib/beatmap-discussions/system-post.tsx
resources/assets/lib/beatmap-discussions/system-post.tsx
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. import StringWithComponent from 'components/string-with-component'; import BeatmapsetDiscussionPostJson from 'interfaces/beatmapset-discussion-...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. import StringWithComponent from 'components/string-with-component'; import BeatmapsetDiscussionPostJson from 'interfaces/beatmapset-discussion-...
Revert "render blank content for unknown types"
Revert "render blank content for unknown types" This reverts commit 3459caadd2a8f4b2ad08b323f77ca2d4570f34bb.
TypeScript
agpl-3.0
notbakaneko/osu-web,ppy/osu-web,nanaya/osu-web,nanaya/osu-web,nanaya/osu-web,ppy/osu-web,nanaya/osu-web,notbakaneko/osu-web,ppy/osu-web,notbakaneko/osu-web,notbakaneko/osu-web,ppy/osu-web,notbakaneko/osu-web,nanaya/osu-web,ppy/osu-web
--- +++ @@ -15,9 +15,7 @@ export default function SystemPost({ post, user }: Props) { if (!post.system) return null; - if (post.message.type !== 'resolved') { - console.error(`unknown type: ${post.message.type}`); - } + if (post.message.type !== 'resolved') return null; const className = classWithMod...
b7aac2de70fc0c1cf5159bf3bd6b5ecb3c956b4c
tooling/vite/vite-plugin-svg.ts
tooling/vite/vite-plugin-svg.ts
import { createFilter, FilterPattern } from '@rollup/pluginutils'; import fs from 'fs'; import { basename } from 'path'; const { readFile } = fs.promises; interface Options { include?: FilterPattern; exclude?: FilterPattern; } async function transformSVG(path) { const name = basename(path, '.svg'); c...
import { createFilter, FilterPattern } from '@rollup/pluginutils'; import fs from 'fs'; import { basename } from 'path'; const { readFile } = fs.promises; interface Options { include?: FilterPattern; exclude?: FilterPattern; } async function transformSVG(path) { const name = basename(path, '.svg'); c...
Fix vite plugin syntax error
Fix vite plugin syntax error
TypeScript
mit
fastmail/overture
--- +++ @@ -36,6 +36,7 @@ export { ${name} }; `; +} export default function raw(options: Options = {}) { const filter = createFilter(options.include, options.exclude);
c9e8f8f2bdd47536a0b25f6c1be778ff2d186b7d
src/app/index.tsx
src/app/index.tsx
import React from 'react'; import ReactDOM from 'react-dom'; import { injectGlobal } from 'styled-components'; import wpm from 'wexond-package-manager'; import { typography } from 'nersent-ui'; // Components import App from './components/App'; // Models import PluginAPI from './models/plugin-api'; import Store from ...
import React from 'react'; import ReactDOM from 'react-dom'; import { injectGlobal } from 'styled-components'; import wpm from 'wexond-package-manager'; import { typography } from 'nersent-ui'; // Components import App from './components/App'; // Models import PluginAPI from './models/plugin-api'; import Store from ...
Fix changing background of search bar
:ambulance: Fix changing background of search bar
TypeScript
apache-2.0
Nersent/Wexond,Nersent/Wexond
--- +++ @@ -34,6 +34,13 @@ }; } + if (api.theme.searchBar != null) { + Store.theme.searchBar = { + ...Store.theme.searchBar, + ...api.theme.searchBar, + }; + } + if (api.theme.accentColor != null) { Store.theme.accentColor = api.theme.accentC...
da564d3b66ccdf60df4ff812ac1ddf7eeb9777fc
web/src/app/modules/shared/services/electron/electron.service.ts
web/src/app/modules/shared/services/electron/electron.service.ts
/* * Copyright (c) 2020 the Octant contributors. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root', }) export class ElectronService { constructor() {} /** * Returns true if electron is detected */ isElectron(): ...
/* * Copyright (c) 2020 the Octant contributors. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root', }) export class ElectronService { constructor() {} /** * Returns true if electron is detected */ isElectron(): ...
Check if running electron via user agent
Check if running electron via user agent Signed-off-by: GuessWhoSamFoo <8c93751a21b6f76ce6eea67135428b7f11f28a78@vmware.com>
TypeScript
apache-2.0
vmware/octant,vmware/octant,vmware/octant,vmware/octant,vmware/octant
--- +++ @@ -15,6 +15,9 @@ * Returns true if electron is detected */ isElectron(): boolean { + if (typeof process === 'undefined') { + return false; + } return ( process && process.versions && process.versions.electron !== undefined );
c7a61a03fe3cebd8b7e35d22fe19c1ad11d22d82
components/CodeBlock.tsx
components/CodeBlock.tsx
import React, { PureComponent } from "react" import { PrismLight } from "react-syntax-highlighter" import swift from "react-syntax-highlighter/dist/cjs/languages/prism/swift" import prismStyle from "react-syntax-highlighter/dist/cjs/styles/prism/a11y-dark" PrismLight.registerLanguage("swift", swift) interface Props {...
import React, { PureComponent } from "react" import { PrismLight } from "react-syntax-highlighter" import swift from "react-syntax-highlighter/dist/cjs/languages/prism/swift" import prismStyle from "react-syntax-highlighter/dist/cjs/styles/prism/a11y-dark" PrismLight.registerLanguage("swift", swift) interface Props {...
Improve scrollbar colours for code blocks
Improve scrollbar colours for code blocks
TypeScript
mit
JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk
--- +++ @@ -14,7 +14,13 @@ render(): JSX.Element { const { language, value } = this.props return ( - <PrismLight language={language} style={prismStyle}> + <PrismLight + language={language} + style={prismStyle} + customStyle={{ + "color-scheme": "dark", + }} ...
4788656b172b6b332a51fef1edcd8e5b3258e6ca
src/interfaces.ts
src/interfaces.ts
/** * Interfaces and types */ /** * Doc guard */ import * as d3 from 'd3' /** * A timepoint. We only use weeks as of now. */ export type Timepoint = { year: number week: number } /** * Type of time point */ export type Point = 'regular-week' | 'mmwr-week' | 'biweek' /** * Range of numbers */ export t...
/** * Interfaces and types */ /** * Doc guard */ import * as d3 from 'd3' /** * A timepoint. We only use weeks as of now. */ export type Timepoint = { year: number week?: number, biweek?: number } /** * Type of time point */ export type Point = 'regular-week' | 'mmwr-week' | 'biweek' /** * Range of ...
Add biweek key in timepoint
Add biweek key in timepoint
TypeScript
mit
reichlab/d3-foresight,reichlab/d3-foresight
--- +++ @@ -13,7 +13,8 @@ */ export type Timepoint = { year: number - week: number + week?: number, + biweek?: number } /**
9d4ede2f482d8123b9bdd31a860d28ed66870cce
lib/config.ts
lib/config.ts
export default { sc: 'stocazzo', routes: { root: { value: 'stocazzo', big: 'gran', }, caps: { value: 'STOCAZZO', big: 'GRAN', }, camel: { value: 'StoCazzo', big: 'Gran', }, ascii: { value: '8====D', big: '===', }, snake: { val...
export default { sc: 'stocazzo', routes: { root: { value: 'stocazzo', big: 'gran', }, caps: { value: 'STOCAZZO', big: 'GRAN', }, camel: { value: 'StoCazzo', big: 'Gran', }, ascii: { value: '8====D', big: '===', }, snake: { val...
Add varg to stocazzies list
Add varg to stocazzies list
TypeScript
mit
dottorblaster/stocazzo,dottorblaster/stocazzo
--- +++ @@ -25,5 +25,9 @@ value: 'Sto cazzo!', big: ' gran', }, + varg: { + value: '𝔖𝔗𝔒ℭ𝔄ℨℨ𝔒', + big: '𝕾𝕿𝕺𝕮𝕬𝖅𝖅𝕺', + }, }, };
5555c644b68006901a4fb48ce452d3cf3d6eaa22
src/client/app/types/items.ts
src/client/app/types/items.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/. */ import { ChartTypes } from '../types/redux/graph'; import { LanguageTypes } from '../types/i18n'; /** * The type...
/* 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/. */ import { ChartTypes } from '../types/redux/graph'; import { LanguageTypes } from '../types/i18n'; /** * The type...
Add User type for React
Add User type for React
TypeScript
mpl-2.0
OpenEnergyDashboard/OED,OpenEnergyDashboard/OED,OpenEnergyDashboard/OED,OpenEnergyDashboard/OED
--- +++ @@ -41,3 +41,11 @@ xLabel: string; }; } + +/** + * A user object to be displayed for Administrators. + */ +export interface User { + email: string; + role: string; +}
d9be3abc77532b7bb5576bd7670e2cd35ef7f3ac
packages/codeeditor/src/mimetype.ts
packages/codeeditor/src/mimetype.ts
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { nbformat } from '@jupyterlab/services'; /** * The mime type service of a code editor. */ export interface IEditorMimeTypeService { /** * Get a mime type for the given language info. * * @par...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { nbformat } from '@jupyterlab/coreutils'; /** * The mime type service of a code editor. */ export interface IEditorMimeTypeService { /** * Get a mime type for the given language info. * * @pa...
Use services nbformat in codeeditor
Use services nbformat in codeeditor
TypeScript
bsd-3-clause
jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,eskirk/jupyterlab,charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,eskirk/jupyterlab,charnpreetsingh185/jupyterlab,jupy...
--- +++ @@ -3,7 +3,7 @@ import { nbformat -} from '@jupyterlab/services'; +} from '@jupyterlab/coreutils'; /**
cc9e070e8794547f3ea0c44976f517a3ba32efa7
test/src/index.ts
test/src/index.ts
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import './common/activitymonitor.spec'; import './common/observablelist.spec'; import './dialog/dialog.spec'; import './docregistry/default.spec'; import './docregistry/registry.spec'; import './filebrowser/model....
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import './common/activitymonitor.spec'; import './common/observablelist.spec'; import './dialog/dialog.spec'; import './docregistry/default.spec'; import './docregistry/registry.spec'; import './filebrowser/model....
Add phosphor base styles for testing
Add phosphor base styles for testing
TypeScript
bsd-3-clause
jupyter/jupyterlab,charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,TypeFox/jupyterlab,TypeFox/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,charnpreetsingh185/jupyterlab,TypeFox/jupyterlab,TypeFox/jupyterlab,eskirk/jupyte...
--- +++ @@ -39,3 +39,5 @@ import './notebook/output-area/model.spec'; import './notebook/output-area/widget.spec'; + +import 'phosphor/styles/base.css';
8bf8b4143b1c6bdcdaec6742f754044fc22e6ae6
src/openstack/openstack-tenant/TenantPortsList.tsx
src/openstack/openstack-tenant/TenantPortsList.tsx
import * as React from 'react'; import { Table, connectTable, createFetcher } from '@waldur/table'; const TableComponent = (props) => { const { translate } = props; return ( <Table {...props} columns={[ { title: translate('IPv4 address'), render: ({ row }) => row.ip4_ad...
import * as React from 'react'; import { Table, connectTable, createFetcher } from '@waldur/table'; const TableComponent = (props) => { const { translate } = props; return ( <Table {...props} columns={[ { title: translate('IPv4 address'), render: ({ row }) => row.ip4_ad...
Fix tenant ports rendering if network name is not defined.
Fix tenant ports rendering if network name is not defined.
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -14,11 +14,11 @@ }, { title: translate('MAC address'), - render: ({ row }) => row.mac_address, + render: ({ row }) => row.mac_address || 'N/A', }, { title: translate('Network name'), - render: ({ row }) => row.network_name...
8a84606155852fe89b32b2b07895be41e8794959
src/components/Queue/QueueTable.tsx
src/components/Queue/QueueTable.tsx
import * as React from 'react'; import { SearchMap } from '../../types'; import { Card, ResourceList, Stack, Button } from '@shopify/polaris'; import EmptyQueue from './EmptyQueue'; import QueueItem from './QueueItem'; export interface Props { readonly queue: SearchMap; } export interface Handlers { re...
import * as React from 'react'; import { SearchMap } from '../../types'; import { Card, ResourceList, Stack, Button } from '@shopify/polaris'; import EmptyQueue from './EmptyQueue'; import QueueItem from './QueueItem'; export interface Props { readonly queue: SearchMap; } export interface Handlers { re...
Fix issue of refresh queue button not refreshing queue.
Fix issue of refresh queue button not refreshing queue.
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
--- +++ @@ -18,7 +18,7 @@ ) : ( <Stack vertical> <Card sectioned> - <Button>Refresh queue.</Button> + <Button onClick={onRefresh}>Refresh queue.</Button> </Card> <Card> <ResourceList
faf84db9cb34c539b7b005d7d50410112b41b4d9
lib/sdkVersion.ts
lib/sdkVersion.ts
import { version } from '../package.json' export const sdkVersionHeader = 'javascript-{$version}';
import { version } from '../package.json' export const sdkVersionHeader = `javascript-${version}`;
Fix issue with string formatting
Fix issue with string formatting
TypeScript
mit
procore/js-sdk
--- +++ @@ -1,3 +1,3 @@ import { version } from '../package.json' -export const sdkVersionHeader = 'javascript-{$version}'; +export const sdkVersionHeader = `javascript-${version}`;
ed7358bb6d5fe38c1bb7539100c768421ad408af
src/app/leaflet-tile-selector/leaflet-tile-selector.component.ts
src/app/leaflet-tile-selector/leaflet-tile-selector.component.ts
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; import { LeafletTileProviderService } from '../leaflet-tile-provider.service'; @Component({ selector: 'app-leaflet-tile-selector', templateUrl: './leaflet-tile-selector.component.html', styleUrls: ['./leaflet-tile-selector.component....
import { Component, OnInit, AfterViewInit, Input, Output, EventEmitter, ElementRef } from '@angular/core'; import { Store } from '@ngrx/store'; import { LeafletTileProviderService } from '../leaflet-tile-provider.service'; @Component({ selector: 'app-leaflet-tile-selector', templateUrl: './leaflet-tile-selector.co...
Add subscriber to reflect the currently selected map tile provider
Add subscriber to reflect the currently selected map tile provider
TypeScript
mit
ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-interactive-maps
--- +++ @@ -1,4 +1,5 @@ -import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; +import { Component, OnInit, AfterViewInit, Input, Output, EventEmitter, ElementRef } from '@angular/core'; +import { Store } from '@ngrx/store'; import { LeafletTileProviderService } from '../leaflet-tile-provid...
3c5905848f9b167d714f434f5bf7fafed264abf0
packages/schematics/src/scam/index.ts
packages/schematics/src/scam/index.ts
import { chain, externalSchematic, Rule } from '@angular-devkit/schematics'; import { Schema as NgComponentOptions } from '@schematics/angular/component/schema'; import { findModuleFromOptions } from '@schematics/angular/utility/find-module'; import { buildDefaultPath, getProject } from '@schematics/angular/utility/pro...
import { chain, externalSchematic, Rule } from '@angular-devkit/schematics'; import { Schema as NgComponentOptions } from '@schematics/angular/component/schema'; import { findModuleFromOptions } from '@schematics/angular/utility/find-module'; import { buildDefaultPath, getProject } from '@schematics/angular/utility/pro...
Merge module and component as default behavior.
@wishtack/schematics:scam: Merge module and component as default behavior.
TypeScript
mit
wishtack/wishtack-steroids,wishtack/ng-steroids,wishtack/wishtack-steroids,wishtack/wishtack-steroids,wishtack/ng-steroids
--- +++ @@ -11,10 +11,12 @@ const project = getProject(tree, options.project); - console.log(findModuleFromOptions(tree, { + const modulePath = findModuleFromOptions(tree, { ...options, path: options.path || buildDefaultPath(project) - })); + }); + + tree.read(modulePath); ...
b68e47e16ea2c57d8c822bdfcc265774924c20d2
packages/password/src/is-common.util.ts
packages/password/src/is-common.util.ts
// std import { readFile } from 'fs'; import { join } from 'path'; import { promisify } from 'util'; import { gunzip } from 'zlib'; let list: string[]; /** * Test if a password belongs to a list of 10k common passwords. * * @export * @param {string} password - The password to test. * @returns {Promise<boolean>} ...
// std import { readFile } from 'fs'; import { join } from 'path'; import { promisify } from 'util'; import { gunzip, InputType } from 'zlib'; let list: string[]; /** * Test if a password belongs to a list of 10k common passwords. * * @export * @param {string} password - The password to test. * @returns {Promise...
Fix type error due to TSv3
Fix type error due to TSv3
TypeScript
mit
FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal
--- +++ @@ -2,7 +2,7 @@ import { readFile } from 'fs'; import { join } from 'path'; import { promisify } from 'util'; -import { gunzip } from 'zlib'; +import { gunzip, InputType } from 'zlib'; let list: string[]; @@ -16,7 +16,7 @@ export async function isCommon(password: string): Promise<boolean> { if (!l...
cae38202562d857f472383031f42dcbc6831ebc2
packages/socket.io/src/errors/convert-error-to-websocket-response.ts
packages/socket.io/src/errors/convert-error-to-websocket-response.ts
// 3p import { Config } from '@foal/core'; // FoalTS import { ISocketIOController, WebsocketContext, WebsocketErrorResponse, WebsocketResponse } from '../architecture'; import { renderWebsocketError } from './render-websocket-error'; export async function convertErrorToWebsocketResponse( error: Error, ctx: Websocke...
// 3p import { Config } from '@foal/core'; // FoalTS import { ISocketIOController, WebsocketContext, WebsocketErrorResponse, WebsocketResponse } from '../architecture'; import { renderWebsocketError } from './render-websocket-error'; export async function convertErrorToWebsocketResponse( error: Error, ctx: Websocke...
Fix socket.io to support strict TS@4.5
Fix socket.io to support strict TS@4.5
TypeScript
mit
FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal
--- +++ @@ -15,7 +15,7 @@ if (socketIOController.handleError) { try { return await socketIOController.handleError(error, ctx); - } catch (error2) { + } catch (error2: any) { return renderWebsocketError(error2, ctx); } }
6db9e61a0bad22e89a435a626f39a9a8039ee8f3
src/vs/workbench/contrib/notebook/browser/constants.ts
src/vs/workbench/contrib/notebook/browser/constants.ts
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
Increase top-padding for first cell toolbar
Increase top-padding for first cell toolbar
TypeScript
mit
Microsoft/vscode,hoovercj/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,microsoft/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,hoovercj/vscode,microsoft/vscode,hoovercj/vscode,Krzysztof-Cieslak/vscode,hoovercj/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,Krzysztof-Cies...
--- +++ @@ -5,7 +5,7 @@ // Scrollable Element -export const SCROLLABLE_ELEMENT_PADDING_TOP = 16; +export const SCROLLABLE_ELEMENT_PADDING_TOP = 20; // Cell sizing related export const CELL_MARGIN = 20;
351fdc15c74a069a55a5b3b7cb1c4566c28c115a
app/scripts/components/appstore/providers/support/SankeyDiagram.tsx
app/scripts/components/appstore/providers/support/SankeyDiagram.tsx
import * as React from 'react'; import { ReactNode } from 'react'; import loadEcharts from '../../../../shims/load-echarts'; interface SankeyDiagramProps { data: any; } export default class SankeyDiagram extends React.Component<SankeyDiagramProps> { container: ReactNode; diagram = undefined; getChartsOption...
import * as React from 'react'; import { ReactNode } from 'react'; import loadEcharts from '../../../../shims/load-echarts'; interface SankeyDiagramProps { data: any; } export default class SankeyDiagram extends React.Component<SankeyDiagramProps> { container: ReactNode; diagram = undefined; getChartsOption...
Enable tooltips for Sankey diagrams
Enable tooltips for Sankey diagrams
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -19,6 +19,10 @@ data: this.props.data.data, links: this.props.data.links, }, + tooltip: { + trigger: 'item', + triggerOn: 'mousemove' + }, }; }
6fc6e3e285f5c51147571c02f91cfb0661e6a418
packages/oidc-provider/src/index.ts
packages/oidc-provider/src/index.ts
export * from "./decorators"; export * from "./domain"; export * from "./services/OidcAdapters"; export * from "./services/OidcInteractions"; export * from "./services/OidcInteractionContext"; export * from "./services/OidcJwks"; export * from "./services/OidcProvider"; export * from "./OidcModule";
export * from "./decorators"; export * from "./domain"; export * from "./middlewares/OidcInteractionMiddleware"; export * from "./middlewares/OidcNoCacheMiddleware"; export * from "./middlewares/OidcSecureMiddleware"; export * from "./services/OidcAdapters"; export * from "./services/OidcInteractions"; export * from...
Add missing import on oidc-provider module
fix(oidc): Add missing import on oidc-provider module
TypeScript
mit
Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators
--- +++ @@ -1,8 +1,15 @@ export * from "./decorators"; + export * from "./domain"; + +export * from "./middlewares/OidcInteractionMiddleware"; +export * from "./middlewares/OidcNoCacheMiddleware"; +export * from "./middlewares/OidcSecureMiddleware"; + export * from "./services/OidcAdapters"; export * from "./serv...
739379b0f1e30922d699d68f600c415fddcf77fe
src/Components/Artwork/__tests__/FillwidthItem.test.tsx
src/Components/Artwork/__tests__/FillwidthItem.test.tsx
import { render } from "enzyme" import React from "react" import { FillwidthItem } from "../FillwidthItem" describe("FillwidthItem", () => { // This scenario _should not_ happen. But it did. Every artwork should have // an image, but somehow one snuck through in production and broke pages. describe("No image a...
import { render } from "enzyme" import React from "react" import { FillwidthItem } from "../FillwidthItem" describe("FillwidthItem", () => { // This scenario _should not_ happen. But it did. Every artwork should have // an image, but somehow one snuck through in production and broke pages. describe("No image a...
Use a smaller hammer to pass an invalid artwork (without an image) to FillwidthItem
Use a smaller hammer to pass an invalid artwork (without an image) to FillwidthItem
TypeScript
mit
xtina-starr/reaction,artsy/reaction-force,artsy/reaction-force,artsy/reaction,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction
--- +++ @@ -12,8 +12,7 @@ href: "my/artwork", } - // @ts-ignore - const wrapper = render(<FillwidthItem artwork={artwork} />) + const wrapper = render(<FillwidthItem artwork={artwork as any} />) expect(wrapper.html()).toBeNull() })
2d10af8984f217ecab62f5d14f32dc4e5d8f78fe
src/test/Apha/Serialization/SerializerDecorator.spec.ts
src/test/Apha/Serialization/SerializerDecorator.spec.ts
import "reflect-metadata"; import {expect} from "chai"; import {Serializer} from "../../../main/Apha/Serialization/SerializerDecorator"; describe("SerializerDecorator", () => { describe("Ignore", () => { it("registers a property to be ignored during (de-)serialization", () => { let target = ne...
import "reflect-metadata"; import {expect} from "chai"; import {Serializer} from "../../../main/Apha/Serialization/SerializerDecorator"; import {DecoratorException} from "../../../main/Apha/Decorators/DecoratorException"; describe("SerializerDecorator", () => { describe("Ignore", () => { it("registers a p...
Extend test with exceptional cases.
Extend test with exceptional cases.
TypeScript
mit
martyn82/aphajs
--- +++ @@ -2,6 +2,7 @@ import "reflect-metadata"; import {expect} from "chai"; import {Serializer} from "../../../main/Apha/Serialization/SerializerDecorator"; +import {DecoratorException} from "../../../main/Apha/Decorators/DecoratorException"; describe("SerializerDecorator", () => { describe("Ignore", (...
e154b80023b4a7d21548914be2683371af34d976
angular/projects/spark-angular/src/lib/directives/sprk-box/sprk-box.stories.ts
angular/projects/spark-angular/src/lib/directives/sprk-box/sprk-box.stories.ts
import { storyWrapper } from '../../../../../../.storybook/helpers/storyWrapper'; import { SprkBoxDirective } from './sprk-box.directive'; import { SprkBoxModule } from './sprk-box.module'; import { markdownDocumentationLinkBuilder } from '../../../../../../../storybook-utilities/markdownDocumentationLinkBuilder'; exp...
import { storyWrapper } from '../../../../../../.storybook/helpers/storyWrapper'; import { SprkBoxDirective } from './sprk-box.directive'; import { SprkBoxModule } from './sprk-box.module'; import { markdownDocumentationLinkBuilder } from '../../../../../../../storybook-utilities/markdownDocumentationLinkBuilder'; exp...
Add "pixel" to last sentence for clarity
Add "pixel" to last sentence for clarity
TypeScript
mit
sparkdesignsystem/spark-design-system,sparkdesignsystem/spark-design-system,sparkdesignsystem/spark-design-system,sparkdesignsystem/spark-design-system
--- +++ @@ -18,8 +18,7 @@ Box has built in padding sizes that are paired with our Spacing values. Otherwise, it will default to medium spacing. -Refer to [Class Modifiers section](#class-modifiers) for default values. - +Refer to [Class Modifiers section](#class-modifiers) for default pixel values. `, docs...
a23b3640b726c7182e68b3683f78d8725f97f0b0
step-release-vis/src/app/components/form/dataSubmissionForm_test.ts
step-release-vis/src/app/components/form/dataSubmissionForm_test.ts
import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {FormComponent} from './dataSubmissionForm'; import {FormBuilder, FormsModule, ReactiveFormsModule} from '@angular/forms'; describe('FormComponent', () => { let component: FormComponent; let fixture: ComponentFixture<FormComponent>; ...
import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {DataSubmissionFormComponent} from './dataSubmissionForm'; import {FormBuilder, FormsModule, ReactiveFormsModule} from '@angular/forms'; describe('DataSumbissionFormComponent', () => { let component: DataSubmissionFormComponent; let fi...
Change component name in test file.
Change component name in test file.
TypeScript
apache-2.0
googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020
--- +++ @@ -1,21 +1,21 @@ import {async, ComponentFixture, TestBed} from '@angular/core/testing'; -import {FormComponent} from './dataSubmissionForm'; +import {DataSubmissionFormComponent} from './dataSubmissionForm'; import {FormBuilder, FormsModule, ReactiveFormsModule} from '@angular/forms'; -describe('FormC...
f82eaefa3c3d6331709af1c9ed3eead96c11a39c
browser/io/FileAPI.ts
browser/io/FileAPI.ts
///<lib="es6-promise"/> module ghost.browser.io { export class FileAPI { public static loadFile(input:HTMLInputElement) { var promise:Promise<ProgressEvent> = new Promise<ProgressEvent>((resolve:(value:ProgressEvent)=>void, reject:(error:ErrorEvent|Error)=>void)=> { var file = input.files[0]; if(!f...
///<lib="es6-promise"/> module ghost.browser.io { export class FileAPI { public static loadFile(input:HTMLInputElement) { var promise:Promise<ProgressEvent> = new Promise<ProgressEvent>((resolve:(value:ProgressEvent)=>void, reject:(error:ErrorEvent|Error)=>void)=> { var file = input.files[0]; if(!f...
Add file type to the error message
Add file type to the error message
TypeScript
mit
mymyoux/Typescript-Ghost-framework
--- +++ @@ -33,7 +33,7 @@ } reader.readAsText(file); } else { - reject(new Error( "format not readable")); + reject(new Error( "format not readable: "+file.type)); //fileDisplayArea.innerText = "File not supported!" }
50000c5c0a8fcf5fa2d8555a7b2da51406110cfd
src/button/index.ts
src/button/index.ts
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { TlButton } from './button'; export * from './button'; @NgModule({ imports: [ CommonModule, ], declarations: [ TlButton ], exports: [ TlButton ] }) export class ButtonModu...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { TlButton } from './button'; import { TabIndexService } from "../form/tabIndex.service"; import { IdGeneratorService } from "../core/helper/idgenerator.service"; import { NameGeneratorService } from "../core/helper/namege...
Add providers services of component default to button.
refactor(button): Add providers services of component default to button.
TypeScript
mit
TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui
--- +++ @@ -2,8 +2,9 @@ import { CommonModule } from '@angular/common'; import { TlButton } from './button'; - -export * from './button'; +import { TabIndexService } from "../form/tabIndex.service"; +import { IdGeneratorService } from "../core/helper/idgenerator.service"; +import { NameGeneratorService } from ".....
cc7b7e5ac7e90e5857d98ffb1dae655dee64124e
lib/components/src/Loader/Loader.tsx
lib/components/src/Loader/Loader.tsx
import React, { FunctionComponent, ComponentProps } from 'react'; import { styled } from '@storybook/theming'; import { rotate360 } from '../shared/animation'; const LoaderWrapper = styled.div<{ size?: number }>(({ size = 32 }) => ({ borderRadius: '3em', cursor: 'progress', display: 'inline-block', overflow: '...
import React, { FunctionComponent, ComponentProps } from 'react'; import { styled } from '@storybook/theming'; import { rotate360 } from '../shared/animation'; const LoaderWrapper = styled.div<{ size?: number }>(({ size = 32 }) => ({ borderRadius: '50%', cursor: 'progress', display: 'inline-block', overflow: '...
CHANGE loader to always be round
CHANGE loader to always be round
TypeScript
mit
kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook
--- +++ @@ -3,7 +3,7 @@ import { rotate360 } from '../shared/animation'; const LoaderWrapper = styled.div<{ size?: number }>(({ size = 32 }) => ({ - borderRadius: '3em', + borderRadius: '50%', cursor: 'progress', display: 'inline-block', overflow: 'hidden',
8d30209aab6ed1f060debf8688f7ad62359ea75d
gerrit-ng-ui/app/header.component.ts
gerrit-ng-ui/app/header.component.ts
/** * Created by josh on 12/12/15. */ import {Component} from 'angular2/core'; import {Menu} from './menu' @Component({ selector: 'header-component', template:` <menu></menu> <h1>Main page for Gerrit review.</h1> `, directives: [Menu] }) export class HeaderComponent { }
/** * Created by josh on 12/12/15. */ import {Component} from 'angular2/core'; import {Menu} from './menu' @Component({ selector: 'header-component', template:` <img src="./img/Eclipse-logo-2014.svg"> <menu></menu> <h1>Main page for Gerrit review.</h1> `, directives: [Menu] })...
Add the Eclipse logo to the header.
Add the Eclipse logo to the header.
TypeScript
apache-2.0
MerritCR/merrit,MerritCR/merrit,MerritCR/merrit,MerritCR/merrit,joshuawilson/merrit,MerritCR/merrit,joshuawilson/merrit,joshuawilson/merrit,MerritCR/merrit,joshuawilson/merrit,MerritCR/merrit,joshuawilson/merrit,joshuawilson/merrit,MerritCR/merrit,joshuawilson/merrit,joshuawilson/merrit
--- +++ @@ -7,6 +7,7 @@ @Component({ selector: 'header-component', template:` + <img src="./img/Eclipse-logo-2014.svg"> <menu></menu> <h1>Main page for Gerrit review.</h1> `,
18c43c13a95a44d820d9ade48aa25a10712f9f83
src/app/examples/stock-market/stock-market.service.spec.ts
src/app/examples/stock-market/stock-market.service.spec.ts
import { TestBed, inject } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { CoreModule } from '@app/core'; import { StockMarketService } from './stock-market.service'; describe('StockMarketService', () => { beforeEach(() => { TestBed.configureTestingModule({...
import { TestBed, inject } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { HttpClient, HttpErrorResponse } from '@angular/common/http'; import { of } from 'rxjs'; import { CoreModule } from '@app/core'; import { StockMarketService } from './stock-market.service'; ...
Add unit-tests for stock-market service
test(stock-market): Add unit-tests for stock-market service
TypeScript
mit
tomastrajan/angular-ngrx-material-starter,tomastrajan/angular-ngrx-material-starter,tomastrajan/angular-ngrx-material-starter,tomastrajan/angular-ngrx-material-starter
--- +++ @@ -1,15 +1,24 @@ import { TestBed, inject } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; +import { HttpClient, HttpErrorResponse } from '@angular/common/http'; +import { of } from 'rxjs'; import { CoreModule } from '@app/core'; import { StockMarketServi...
b49fcb411150e2c74405a4fd5493a0b9abe20d88
src/pages/edit-goal/edit-goal.ts
src/pages/edit-goal/edit-goal.ts
import { Component } from '@angular/core'; import { NavController, NavParams } from 'ionic-angular'; import { Storage } from '@ionic/storage'; import { User } from '../../providers/user'; @Component({ selector: 'page-edit-goal', templateUrl: 'edit-goal.html' }) export class EditGoalPage { public goal: any; ...
import { Component } from '@angular/core'; import { NavController, NavParams } from 'ionic-angular'; import { Storage } from '@ionic/storage'; import { User } from '../../providers/user'; @Component({ selector: 'page-edit-goal', templateUrl: 'edit-goal.html' }) export class EditGoalPage { goal: any const...
Fix some undefined errors when loading the page
Fix some undefined errors when loading the page
TypeScript
mit
beeminder-capstone/Nectar-Frontend,beeminder-capstone/Nectar-Frontend,beeminder-capstone/Nectar-Frontend
--- +++ @@ -12,7 +12,7 @@ }) export class EditGoalPage { - public goal: any; + goal: any constructor( public storage: Storage, @@ -21,22 +21,22 @@ public navcontroller: NavController ){} - ionViewDidEnter() { + ngOnInit() { this.goal = this.navParams.data; - co...
443d724a33f1e4c4215dc30278c98c2dc3cee6f7
src/ts/app.ts
src/ts/app.ts
import { Component } from "angular2/angular2"; @Component({ selector: 'app', template: ` <h1>My Angular2 Base App</h1> ` }) export class AppComponent { }
import { Component } from 'angular2/angular2'; @Component({ selector: 'app', template: ` <h1>My Angular2 Base App</h1> ` }) export class AppComponent { }
Replace double quotes with single quotes.
Replace double quotes with single quotes.
TypeScript
mit
kiswa/angular2-base,kiswa/angular2-base,kiswa/angular2-base
--- +++ @@ -1,4 +1,4 @@ -import { Component } from "angular2/angular2"; +import { Component } from 'angular2/angular2'; @Component({ selector: 'app',
21d2715b0cedb1e9d762a4f85e0fe724692ef1b2
docs/_constants.ts
docs/_constants.ts
export const CODESANDBOX_EXAMPLE_ID = 'q9l2j10wr4'; export const HOST_URL = 'https://material-ui-pickers.dev'; export const LOGO_URL = HOST_URL + '/static/meta-image.png'; export const GITHUB_EDIT_URL = 'https://github.com/dmtrKovalenko/material-ui-pickers/edit/develop/docs/';
export const CODESANDBOX_EXAMPLE_ID = 'o7oojxx1pq'; export const HOST_URL = 'https://material-ui-pickers.dev'; export const LOGO_URL = HOST_URL + '/static/meta-image.png'; export const GITHUB_EDIT_URL = 'https://github.com/dmtrKovalenko/material-ui-pickers/edit/develop/docs/';
Update usage codesandbox to the vnext
Update usage codesandbox to the vnext
TypeScript
mit
oliviertassinari/material-ui,mbrookes/material-ui,dmtrKovalenko/material-ui-pickers,mui-org/material-ui,oliviertassinari/material-ui,mui-org/material-ui,mbrookes/material-ui,callemall/material-ui,callemall/material-ui,oliviertassinari/material-ui,mbrookes/material-ui,rscnt/material-ui,rscnt/material-ui,dmtrKovalenko/ma...
--- +++ @@ -1,4 +1,4 @@ -export const CODESANDBOX_EXAMPLE_ID = 'q9l2j10wr4'; +export const CODESANDBOX_EXAMPLE_ID = 'o7oojxx1pq'; export const HOST_URL = 'https://material-ui-pickers.dev';
3d63385f30cc8c2822651518f34925aa9253e32f
src/app/settings/oauth-apps/oauth-app-modal.component.ts
src/app/settings/oauth-apps/oauth-app-modal.component.ts
import { Component, ChangeDetectorRef } from '@angular/core'; import { OAuthAppListItem } from './oauth-apps.component'; import { OAuthAppStore } from '../../store/oauthApp/oauth-app.store'; import { OAuthApp, OAuthApps } from '../../model'; import { ModalService } from '../../common/modal/modal.service'; @Component({...
import { Component, ChangeDetectorRef } from '@angular/core'; import { OAuthAppListItem } from './oauth-apps.component'; import { OAuthAppStore } from '../../store/oauthApp/oauth-app.store'; import { OAuthApp, OAuthApps } from '../../model'; import { ModalService } from '../../common/modal/modal.service'; @Component({...
Clone client settings before update to rollback on error
fix(settings): Clone client settings before update to rollback on error
TypeScript
apache-2.0
kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client
--- +++ @@ -32,9 +32,7 @@ // Clear the store credentials for the selected oauth app removeCredentials() { - const app = this.item.client; - app['clientId'] = ''; - app['clientSecret'] = ''; + const app = { ...this.item.client, clientId: '', clientSecret: '' }; return this.store.update(app).ta...
49c2e2afbb41861b6b51a6af46963da853351ad3
public/react/hello_react_typescript.tsx
public/react/hello_react_typescript.tsx
/// <reference path="../../typings/react/react.d.ts" /> /// <reference path="../../typings/react-dom/react-dom.d.ts" /> import React = __React; import ReactDom = __ReactDom; var CommentBox = React.createClass({ render: function() { return ( <div className="commentBox"> Hello, world! I am a Comment...
/// <reference path="../../typings/react/react.d.ts" /> /// <reference path="../../typings/react-dom/react-dom.d.ts" /> import React = __React; import ReactDom = __ReactDom; interface CommentBoxProps extends React.Props<any> { name: string; } class CommentBox extends React.Component<CommentBoxProps, {}> { output...
Update for more typescript style.
Update for more typescript style.
TypeScript
mit
ku-kueihsi/dummy_react,ku-kueihsi/dummy_react,ku-kueihsi/dummy_react
--- +++ @@ -4,17 +4,18 @@ import React = __React; import ReactDom = __ReactDom; -var CommentBox = React.createClass({ - render: function() { - return ( - <div className="commentBox"> - Hello, world! I am a CommentBox. - </div> - ); +interface CommentBoxProps extends React.Props<any> { + n...