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
613580140357144d052af492c071ec441bc9d6db
packages/core/src/webpack/rules/css-rule.ts
packages/core/src/webpack/rules/css-rule.ts
import MiniCssExtractPlugin from 'mini-css-extract-plugin'; import { RuleSetRule } from 'webpack'; import { notBoolean } from '../../utils/not-boolean.js'; import { getCssLoaderOptions } from '../loader-options/css-loader-options.js'; import { getPostcssLoaderOptions } from '../loader-options/post-css-loader-options.js...
import MiniCssExtractPlugin from 'mini-css-extract-plugin'; import { RuleSetRule } from 'webpack'; import { notBoolean } from '../../utils/not-boolean.js'; import { getCssLoaderOptions } from '../loader-options/css-loader-options.js'; import { getPostcssLoaderOptions } from '../loader-options/post-css-loader-options.js...
Make public path auto to resolve appropriate css relative paths
Make public path auto to resolve appropriate css relative paths
TypeScript
mit
Atyantik/react-pwa,Atyantik/react-pwa
--- +++ @@ -19,7 +19,7 @@ options.hotReload && { loader: 'style-loader' }, options.hotReload || { loader: MiniCssExtractPlugin.loader, - options: { emit: options.emit }, + options: { emit: options.emit, publicPath: 'auto' }, }, { loader: 'css-loader',
025f167c45b8541d382c66473ba903a54949bfe1
AzureFunctions.Client/app/models/constants.ts
AzureFunctions.Client/app/models/constants.ts
export class Constants { public static runtimeVersion = "~0.4"; public static nodeVersion = "5.9.1"; public static latest = "latest"; public static runtimeVersionAppSettingName = "FUNCTIONS_EXTENSION_VERSION"; public static nodeVersionAppSettingName = "WEBSITE_NODE_DEFAULT_VERSION"; }
export class Constants { public static runtimeVersion = "~0.5"; public static nodeVersion = "6.4.0"; public static latest = "latest"; public static runtimeVersionAppSettingName = "FUNCTIONS_EXTENSION_VERSION"; public static nodeVersionAppSettingName = "WEBSITE_NODE_DEFAULT_VERSION"; }
Update runtime and node versions
Update runtime and node versions
TypeScript
apache-2.0
agruning/azure-functions-ux,projectkudu/WebJobsPortal,agruning/azure-functions-ux,chunye/azure-functions-ux,projectkudu/AzureFunctions,agruning/azure-functions-ux,chunye/azure-functions-ux,chunye/azure-functions-ux,projectkudu/AzureFunctions,projectkudu/WebJobsPortal,projectkudu/WebJobsPortal,agruning/azure-functions-u...
--- +++ @@ -1,6 +1,6 @@ export class Constants { - public static runtimeVersion = "~0.4"; - public static nodeVersion = "5.9.1"; + public static runtimeVersion = "~0.5"; + public static nodeVersion = "6.4.0"; public static latest = "latest"; public static runtimeVersionAppSettingName = "FUNCTIO...
21866bcae3a6af6c14f68803303ee7916d5f60bf
pages/_document.tsx
pages/_document.tsx
import Document, { Head, Html, Main, NextScript } from 'next/document'; const GaTag = ({ trackingId }: { trackingId: string | undefined }) => { if (!trackingId) return null; return ( <> <script async src={`https://www.googletagmanager.com/gtag/js?id=${trackingId}`}></script> <script danger...
import Document, { Head, Html, Main, NextScript } from 'next/document'; const GaTag = ({ trackingId }: { trackingId: string | undefined }) => { if (!trackingId) return null; return ( <> <script async src={`https://www.googletagmanager.com/gtag/js?id=${trackingId}`}></script> <script danger...
Add lang to html tag
Add lang to html tag
TypeScript
mit
Alxandr/alxandr.me,Alxandr/alxandr.me,Alxandr/alxandr.me
--- +++ @@ -24,7 +24,7 @@ class MyDocument extends Document { render() { return ( - <Html> + <Html lang="en"> <Head> <GaTag trackingId={process.env.GA_TRACKING_ID} /> </Head>
d8bde3d313194684b8dda6553200febdfe7663f3
ng2-timetable/app/schedule/schedule.component.ts
ng2-timetable/app/schedule/schedule.component.ts
import {Component} from 'angular2/core'; import {RouteConfig, ROUTER_DIRECTIVES} from 'angular2/router'; import {MATERIAL_DIRECTIVES, MATERIAL_PROVIDERS} from 'ng2-material/all'; import {EventsListComponent} from './events-list.component'; import {EventDetailComponent} from './event-detail.component'; import {EventFor...
import {Component} from 'angular2/core'; import {RouteConfig, ROUTER_DIRECTIVES} from 'angular2/router'; import {MATERIAL_DIRECTIVES, MATERIAL_PROVIDERS} from 'ng2-material/all'; import {LessonListComponent} from './lesson-list.component'; import {EventsListComponent} from './events-list.component'; import {EventDetai...
Add LessonListComponent to route config
Add LessonListComponent to route config
TypeScript
mit
bluebirrrrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrd/nau-timetable,bluebirrd/nau-timetable,bluebirrd/nau-timetable,bluebirrd/nau-timetable
--- +++ @@ -2,6 +2,7 @@ import {RouteConfig, ROUTER_DIRECTIVES} from 'angular2/router'; import {MATERIAL_DIRECTIVES, MATERIAL_PROVIDERS} from 'ng2-material/all'; +import {LessonListComponent} from './lesson-list.component'; import {EventsListComponent} from './events-list.component'; import {EventDetailComponen...
ddf4e20d0e4d4201631fa83f04a9fe1528bf4f44
app/src/ui/toolbar/tab-bar.tsx
app/src/ui/toolbar/tab-bar.tsx
import * as React from 'react' export const enum TabBarTab { Changes = 0, History, } interface ITabBarProps { /** The currently selected tab. */ selectedTab: TabBarTab /** A function which is called when a tab is clicked on. */ onTabClicked: (tab: TabBarTab) => void /** Whether there are uncommitted c...
import * as React from 'react' export const enum TabBarTab { Changes = 0, History, } interface ITabBarProps { /** The currently selected tab. */ selectedTab: TabBarTab /** A function which is called when a tab is clicked on. */ onTabClicked: (tab: TabBarTab) => void /** Whether there are uncommitted c...
Move the indicator into children.
Move the indicator into children.
TypeScript
mit
j-f1/forked-desktop,hjobrien/desktop,say25/desktop,gengjiawen/desktop,artivilla/desktop,j-f1/forked-desktop,shiftkey/desktop,desktop/desktop,BugTesterTest/desktops,artivilla/desktop,desktop/desktop,j-f1/forked-desktop,kactus-io/kactus,say25/desktop,artivilla/desktop,j-f1/forked-desktop,artivilla/desktop,say25/desktop,s...
--- +++ @@ -23,12 +23,12 @@ <div className='segmented-control'> <TabBarItem title='Changes' selected={this.props.selectedTab === TabBarTab.Changes} - onClick={() => this.props.onTabClicked(TabBarTab.Changes)} - showIndicator={this.props.hasCha...
76b5a24ecb80653e85177fda2215d49e4914bec9
projects/hslayers/src/components/toolbar/public-api.ts
projects/hslayers/src/components/toolbar/public-api.ts
export * from './toolbar.component'; export * from './toolbar.module'; export * from './toolbar-panel-base.component';
export * from './toolbar.component'; export * from './toolbar.module'; export * from './toolbar-panel-base.component'; export * from './toolbar-panel-container.service';
Add toolbar panel container service to exports
fix: Add toolbar panel container service to exports
TypeScript
mit
hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng
--- +++ @@ -1,3 +1,4 @@ export * from './toolbar.component'; export * from './toolbar.module'; export * from './toolbar-panel-base.component'; +export * from './toolbar-panel-container.service';
8c4038f9eca3e6aa6fcd858346bbebd4bf54ba3a
test/utils.ts
test/utils.ts
export function delay (timeout) { return new Promise<void>(resolve => { setTimeout(resolve, timeout) }) } // for some reason editor.action.triggerSuggest needs more delay at the beginning when the process is not yet warmed up // let's start from high delays and then slowly go to lower delays let delayS...
export function delay (timeout) { return new Promise<void>(resolve => { setTimeout(resolve, timeout) }) } // for some reason editor.action.triggerSuggest needs more delay at the beginning when the process is not yet warmed up // let's start from high delays and then slowly go to lower delays let delayS...
Change in default test delay
Change in default test delay There is still some randomness in executing the tests. Bigger delays seem to mitigate that problem. I can wait another second or two if that helps.
TypeScript
mit
ipatalas/vscode-postfix-ts,ipatalas/vscode-postfix-ts
--- +++ @@ -6,6 +6,6 @@ // for some reason editor.action.triggerSuggest needs more delay at the beginning when the process is not yet warmed up // let's start from high delays and then slowly go to lower delays -let delaySteps = [2000, 1200, 700, 400, 300, 200] +let delaySteps = [2000, 1200, 700, 400, 300, 250] ...
2dd78a9836ef88ae4e97274d0b706653c3bea658
lib/commands/prop/prop-command-base.ts
lib/commands/prop/prop-command-base.ts
///<reference path="../../.d.ts"/> "use strict"; export class ProjectPropertyCommandBase { protected projectSchema: any; public $project: Project.IProject; constructor(private $staticConfig: IStaticConfig, private $injector: IInjector) { this.$staticConfig.triggerJsonSchemaValidation = false; this.$project =...
///<reference path="../../.d.ts"/> "use strict"; export class ProjectPropertyCommandBase { protected projectSchema: any; public $project: Project.IProject; constructor(private $staticConfig: IStaticConfig, private $injector: IInjector) { this.$staticConfig.triggerJsonSchemaValidation = false; this.$project =...
Allow autocompletion of lowercased properties
Allow autocompletion of lowercased properties In case user is using only lowercased values for properties, autocompletion is not working. For example `appbuilder prop print core` is not autocompleted to coreplugins. In fact the command will work with lowercased values, so enable using them. Add lowercased values to th...
TypeScript
apache-2.0
Icenium/icenium-cli,Icenium/icenium-cli
--- +++ @@ -29,7 +29,8 @@ return range; } } else { - return _.keys(this.projectSchema); + let properties = _.keys(this.projectSchema); + return properties.concat(properties.map(k => k.toLowerCase())); } }
98a31a04ad907976aeba96108c7c844890fcfcd1
lib/msal-core/src/telemetry/UiEvent.ts
lib/msal-core/src/telemetry/UiEvent.ts
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import TelemetryEvent from "./TelemetryEvent"; import { prependEventNamePrefix } from "./TelemetryUtils"; export const EVENT_KEYS = { USER_CANCELLED: prependEventNamePrefix("user_cancelled"), ACCESS_DENIED: ...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import TelemetryEvent from "./TelemetryEvent"; import { prependEventNamePrefix } from "./TelemetryUtils"; export const EVENT_KEYS = { USER_CANCELLED: prependEventNamePrefix("user_cancelled"), ACCESS_DENIED: ...
Fix uievent to fix typedoc
Fix uievent to fix typedoc
TypeScript
mit
AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication...
--- +++ @@ -13,7 +13,7 @@ export default class UiEvent extends TelemetryEvent { constructor(correlationId: string) { - super(prependEventNamePrefix("ui_event"), correlationId); + super(prependEventNamePrefix("ui_event"), correlationId, "UiEvent"); } public set userCancelled(userCance...
24c6f586ddc359b6fb3af6c63231618cbf3600ad
src/vs/workbench/contrib/comments/browser/comments.contribution.ts
src/vs/workbench/contrib/comments/browser/comments.contribution.ts
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
Add requireTrust to comments.openPanel setting
Add requireTrust to comments.openPanel setting
TypeScript
mit
Microsoft/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,Krzysztof-Cieslak/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,Microsoft/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,microsoft/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,Krzysztof-Cieslak/vscode,Krzysztof-Cieslak/vscode,micr...
--- +++ @@ -23,7 +23,8 @@ 'comments.openPanel': { enum: ['neverOpen', 'openOnSessionStart', 'openOnSessionStartWithComments'], default: 'openOnSessionStartWithComments', - description: nls.localize('openComments', "Controls when the comments panel should open.") + description: nls.localize('openComment...
3e63676cb098ba08b1ba4fc650e0593eeeccc3fb
test/ts/webpack.config.ts
test/ts/webpack.config.ts
const path = require('path'); module.exports = { entry: "./src/spec.ts", output: { path: path.resolve(__dirname, 'build'), filename: 'integration-tests.js' }, devtool: 'inline-source-map', module: { rules: [ { test: /\.js$/, include: /src/, loader: "babel-loader", ...
const path = require('path'); module.exports = { entry: "./src/spec.ts", output: { path: path.resolve(__dirname, 'build'), filename: 'integration-tests.js' }, devtool: 'inline-source-map', module: { rules: [ { test: /\.js$/, include: /src/, loader: "babel-loader", ...
Fix compilation of TS _proto generated services
Fix compilation of TS _proto generated services
TypeScript
apache-2.0
improbable-eng/grpc-web,MarcusLongmuir/grpc-web,improbable-eng/grpc-web,MarcusLongmuir/grpc-web,MarcusLongmuir/grpc-web,improbable-eng/grpc-web,MarcusLongmuir/grpc-web,improbable-eng/grpc-web,improbable-eng/grpc-web,MarcusLongmuir/grpc-web
--- +++ @@ -16,7 +16,7 @@ }, { test: /\.ts$/, - include: /src/, + include: [/src/, /_proto/], exclude: /node_modules/, loader: "ts-loader" }
e6eec5a029e130d93803196c2edc0b55a220c8f7
src/marketplace-checklist/sidebar-extension.ts
src/marketplace-checklist/sidebar-extension.ts
import { SidebarExtensionService } from '@waldur/navigation/sidebar/SidebarExtensionService'; import { getMenuForProject, getMenuForSupport } from './utils'; export default function registerSidebarExtension() { SidebarExtensionService.register('project', getMenuForProject); SidebarExtensionService.register('suppo...
import { SidebarExtensionService } from '@waldur/navigation/sidebar/SidebarExtensionService'; import { getMenuForProject, getMenuForSupport } from './utils'; SidebarExtensionService.register('project', getMenuForProject); SidebarExtensionService.register('support', getMenuForSupport);
Fix marketplace checklist sidebar extension registration.
Fix marketplace checklist sidebar extension registration.
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -2,7 +2,5 @@ import { getMenuForProject, getMenuForSupport } from './utils'; -export default function registerSidebarExtension() { - SidebarExtensionService.register('project', getMenuForProject); - SidebarExtensionService.register('support', getMenuForSupport); -} +SidebarExtensionService.register(...
691c4a1005dcb0fd06858bd8fdbf86b89fe67229
src/main/ts/ephox/mcagar/api/ThemeSelectors.ts
src/main/ts/ephox/mcagar/api/ThemeSelectors.ts
import { isModern } from "./TinyVersions"; interface ThemeSelectors { toolBarSelector: string; menuBarSelector: string; dialogCloseSelector: string; dialogSubmitSelector: string; } const ModernThemeSelectors: ThemeSelectors = { toolBarSelector:'.mce-toolbar-grp', menuBarSelector: '.mce-menubar', dialogC...
import { isModern } from "./TinyVersions"; interface ThemeSelectors { toolBarSelector: string; menuBarSelector: string; dialogCloseSelector: string; dialogSubmitSelector: string; } const ModernThemeSelectors: ThemeSelectors = { toolBarSelector:'.mce-toolbar-grp', menuBarSelector: '.mce-menubar', dialogC...
Swap to using "Save" instead of "Ok" for dialog confirmation selectors
TINY-2281: Swap to using "Save" instead of "Ok" for dialog confirmation selectors
TypeScript
lgpl-2.1
TeamupCom/tinymce,FernCreek/tinymce,FernCreek/tinymce,tinymce/tinymce,TeamupCom/tinymce,tinymce/tinymce,FernCreek/tinymce,tinymce/tinymce
--- +++ @@ -18,12 +18,12 @@ toolBarSelector:'.tox-toolbar', menuBarSelector: '.tox-menubar', dialogCloseSelector: '.tox-button:contains("Cancel")', - dialogSubmitSelector: '.tox-button:contains("Ok")' + dialogSubmitSelector: '.tox-button:contains("Save")' }; const getThemeSelectors = (): ThemeSelectors...
9bd63f93359492701a6e9e81a418d619397d8d9b
resources/assets/lib/portal.tsx
resources/assets/lib/portal.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 { ReactNode } from 'react'; import { createPortal } from 'react-dom'; export const Portal = ({children}: { children: ReactNode }) => cr...
// 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 { PureComponent, ReactNode } from 'react'; import { createPortal } from 'react-dom'; interface Props { children: ReactNode; } export...
Convert Portal to a class component and perform cleanup when navigating
Convert Portal to a class component and perform cleanup when navigating
TypeScript
agpl-3.0
nekodex/osu-web,notbakaneko/osu-web,omkelderman/osu-web,ppy/osu-web,omkelderman/osu-web,LiquidPL/osu-web,nekodex/osu-web,nanaya/osu-web,nanaya/osu-web,LiquidPL/osu-web,nekodex/osu-web,notbakaneko/osu-web,nanaya/osu-web,nanaya/osu-web,ppy/osu-web,LiquidPL/osu-web,notbakaneko/osu-web,nanaya/osu-web,ppy/osu-web,ppy/osu-we...
--- +++ @@ -1,7 +1,37 @@ // 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 { ReactNode } from 'react'; +import { PureComponent, ReactNode } from 'react'; import { createPortal } f...
a9b147e148a729e2e5930c655075711ec3c33e22
src/controller/CopyFileNameController.ts
src/controller/CopyFileNameController.ts
import { copy } from 'copy-paste-win32fix'; import * as path from 'path'; import { promisify } from 'util'; import { window } from 'vscode'; import { BaseCopyController } from './BaseCopyController'; const copyAsync = promisify(copy); const GENERIC_ERROR_MESSAGE = 'Could not perform copy file name to clipboard'; exp...
import { copy } from 'copy-paste-win32fix'; import * as path from 'path'; import { promisify } from 'util'; import { BaseCopyController } from './BaseCopyController'; const copyAsync = promisify(copy); const GENERIC_ERROR_MESSAGE = 'Could not perform copy file name to clipboard'; export class CopyFileNameController ...
Throw error to be handled in extention.ts
Throw error to be handled in extention.ts
TypeScript
mit
sleistner/vscode-fileutils,sleistner/vscode-fileutils
--- +++ @@ -1,7 +1,6 @@ import { copy } from 'copy-paste-win32fix'; import * as path from 'path'; import { promisify } from 'util'; -import { window } from 'vscode'; import { BaseCopyController } from './BaseCopyController'; const copyAsync = promisify(copy); @@ -31,8 +30,8 @@ // Can happen on unsuppo...
5667d5afa8c82c274c3166dbef030887757547a0
src/app/_shared/pipes/duration.pipe.ts
src/app/_shared/pipes/duration.pipe.ts
import { Pipe, PipeTransform } from '@angular/core'; import * as moment from 'moment'; @Pipe({ name: 'duration' }) export class DurationPipe implements PipeTransform { transform(value: any, args?: any): any { if (!value) { return; } let format = 'mm:ss'; if (args) { ...
import { Pipe, PipeTransform } from '@angular/core'; import * as moment from 'moment'; @Pipe({ name: 'duration' }) export class DurationPipe implements PipeTransform { transform(value: any, args?: any): any { if (!value && value !== 0) { return; } let format = 'mm:ss'; ...
Fix when value === 0
Fix when value === 0
TypeScript
mit
radiium/turntable,radiium/turntable,radiium/turntable
--- +++ @@ -5,7 +5,7 @@ export class DurationPipe implements PipeTransform { transform(value: any, args?: any): any { - if (!value) { + if (!value && value !== 0) { return; } let format = 'mm:ss';
19f061f4c8c5caaa57bbb229985b2247f1c83449
app/components/dashboard/server/DashboardApi.ts
app/components/dashboard/server/DashboardApi.ts
class DashboardApi { @Decorators.method static getDashboardPageData(callback?) { var user = ACL.getUserOrThrow(this); var today = new Date(); today.setHours(0, 0, 0); var todayLeaders = Meteor.users.find( { "study.lastDateXP": { $gte: today.getTime() } }, ...
class DashboardApi { @Decorators.method static getDashboardPageData(callback?) { var user = ACL.getUserOrThrow(this); var today = new Date(); today.setHours(0, 0, 0); var todayLeaders = Meteor.users.find( { "study.lastDateXP": { $gte: today.getTime() } }, ...
Fix problem with avatars on Leaderboard
Fix problem with avatars on Leaderboard
TypeScript
mit
andrei-markeev/finnlingo,andrei-markeev/finnlingo,andrei-markeev/finnlingo
--- +++ @@ -11,7 +11,7 @@ .map(tl => ({ name: tl.profile.name, xp: tl.study.lastDateXP, - avatarUrl: "http://graph.facebook.com/" + user.services.facebook.id + "/picture" + avatarUrl: "http://graph.facebook.com/" + tl.services.facebook.id +...
bfd0a8931c094cb11d96fb90ef3d8e139f388a26
src/lib/statistics.ts
src/lib/statistics.ts
const _ss = require('simple-statistics'); import { Person } from './models'; const FENCE_FACTOR = 1.5; const QUARTILES = [0.25, 0.5, 0.75]; export class Statistics { static calculateBoxPlotData(sample: number[]): number[] { let [lowerQuartile, median, upperQuartile] = QUARTILES.map(p => _ss.quantileSorted(samp...
const _ss = require('simple-statistics'); import { Person } from './models'; const FENCE_FACTOR = 1.5; const QUARTILES = [0.25, 0.5, 0.75]; export class Statistics { static calculateBoxPlotData(sample: number[]): number[] { let [lowerQuartile, median, upperQuartile] = QUARTILES.map(p => _ss.quantileSorted(samp...
Refactor identifyOutliers to functional style.
Refactor identifyOutliers to functional style.
TypeScript
isc
textbook/salary-stats,beatrichartz/salary-stats,textbook/salary-stats,beatrichartz/salary-stats,textbook/salary-stats,textbook/salary-stats,beatrichartz/salary-stats
--- +++ @@ -16,18 +16,13 @@ return [lowerInnerFence, lowerQuartile, median, upperQuartile, upperInnerFence]; } - static identifyOutliers(people: Person[], boxPlotData: number[][], cohorts: string[]): number[][] { - let outliers = []; - - for (let { salary, cohort, name } of people) { - let...
5d5601c99fa7f198b7fe6ccd4e2f46541bbc850b
src/client/web/components/Title.tsx
src/client/web/components/Title.tsx
import * as React from 'react' interface TitleProps { text: string filterText: string onFilterTextClick(): void } const titleStyle: React.CSSProperties = { padding: '0 0 0.5em', font: '1.2em sans-serif', flex: 0, } const anchorStyle: React.CSSProperties = { textDecoration: 'underline', ...
import * as React from 'react' interface TitleProps { text: string filterText: string onFilterTextClick(): void } const titleStyle: React.CSSProperties = { padding: '0 0 0.5em', font: '1.2em sans-serif', flex: 0, } const anchorStyle: React.CSSProperties = { textDecoration: 'underline', ...
Make filter button a bit more obvious
Make filter button a bit more obvious Signed-off-by: Andy Shu <d9a5ae79e0620530e640970c782273ccd89702f2@gmail.com>
TypeScript
agpl-3.0
wikimigrate/wikimigrate,wikimigrate/wikimigrate,wikimigrate/wikimigrate,wikimigrate/wikimigrate
--- +++ @@ -15,12 +15,17 @@ const anchorStyle: React.CSSProperties = { textDecoration: 'underline', float: 'right', + cursor: 'pointer', } const Title = (props: TitleProps) => ( <div style={titleStyle}> {props.text} - <a style={anchorStyle} onClick={props.onFilterTextClick}> + ...
6f944614d0292357da7a7909832a18ebdaf31554
src/extension/flutter/flutter_types.ts
src/extension/flutter/flutter_types.ts
export interface Device { id: string; name: string; platform: string; emulator: boolean; } export interface DaemonConnected { version: string; pid: number; } export interface AppStart extends AppEvent { deviceId: string; directory: string; supportsRestart?: boolean; } export interface AppEvent { appId: str...
export type PlatformType = "android" | "ios" | "linux" | "macos" | "fuchsia" | "windows" | "web" | string; export type Category = "mobile" | "web" | "desktop" | string; export interface Device { category: Category | undefined | null; emulator: boolean; ephemeral: boolean | undefined; id: string; name: string; pl...
Add new types for Flutter platform checks
Add new types for Flutter platform checks
TypeScript
mit
Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code
--- +++ @@ -1,8 +1,27 @@ +export type PlatformType = "android" | "ios" | "linux" | "macos" | "fuchsia" | "windows" | "web" | string; +export type Category = "mobile" | "web" | "desktop" | string; + export interface Device { + category: Category | undefined | null; + emulator: boolean; + ephemeral: boolean | undefine...
afba8988e26fc6978687ee915d218162b105eef7
spec/laws/must.spec.ts
spec/laws/must.spec.ts
///<reference path="../../typings/main.d.ts" /> import expect = require('expect.js'); import { MustLaw } from 'courtroom/courtroom/laws/must'; describe('MustLaw', () => { describe('constructor', () => { it('should have correct name', () => { let mustFunction = function func () { return false...
///<reference path="../../typings/main.d.ts" /> import expect = require('expect.js'); import { MustLaw } from 'courtroom/courtroom/laws/must'; describe('MustLaw', () => { describe('constructor', () => { it('should have correct name', () => { let mustFunction = function func () { return false...
Test case 1 for string value
Test case 1 for string value
TypeScript
mit
Jameskmonger/courtroom,Jameskmonger/courtroom
--- +++ @@ -33,6 +33,24 @@ expect(functionCalled).to.be(true); }); + it('should call into function with given string [test case 1]', () => { + let givenString = 'i am a string'; + + let functionCalled = false; + let mustFunction = function func (str: str...
f8435966e1f2e906a57764930eb70a8075d7ecc2
example/app/main.ts
example/app/main.ts
import {bootstrap} from '@angular/platform-browser-dynamic'; import {LocationStrategy, HashLocationStrategy} from '@angular/common'; import {APP_ROUTER_PROVIDERS} from './app.routes'; import {AppComponent} from './app.component'; bootstrap(AppComponent, [ APP_ROUTER_PROVIDERS, //{ provide: LocationStrateg...
import {enableProdMode} from '@angular/core'; import {bootstrap} from '@angular/platform-browser-dynamic'; import {LocationStrategy, HashLocationStrategy} from '@angular/common'; import {APP_ROUTER_PROVIDERS} from './app.routes'; import {AppComponent} from './app.component'; //enableProdMode(); bootstrap(AppCompo...
Prepare running example app in production mode
Prepare running example app in production mode
TypeScript
mit
zamboney/ng2-page-scroll,Nolanus/ng2-page-scroll,Nolanus/ng2-page-scroll,Nolanus/ng2-page-scroll,zamboney/ng2-page-scroll
--- +++ @@ -1,3 +1,4 @@ +import {enableProdMode} from '@angular/core'; import {bootstrap} from '@angular/platform-browser-dynamic'; import {LocationStrategy, HashLocationStrategy} from '@angular/common'; @@ -5,6 +6,7 @@ import {AppComponent} from './app.component'; +//enableProdMode(); bootstrap(AppCompo...
f87dafb7fe5cd9f88428a5af9835c4bf024a438f
src/app/js/ui-event.ts
src/app/js/ui-event.ts
class UiEvent { private addFeedButton = document.querySelector("#add-feed-button"); private pinButton = document.querySelector("#pin-button"); constructor(){ this.addFeedButton.addEventListener("click", e => ModalManager.displayModal("#add-feed-modal")); // Pin button this.pinButto...
class UiEvent { private body = document.querySelector("body"); private addFeedButton = document.querySelector("#add-feed-button"); private pinButton = document.querySelector("#pin-button"); constructor() { this.addFeedButton.addEventListener("click", e => ModalManager.displayModal("#add-feed-m...
Replace class cheking by toggle function
Replace class cheking by toggle function
TypeScript
mit
Xstoudi/alduin,Xstoudi/alduin,Xstoudi/alduin
--- +++ @@ -1,19 +1,13 @@ class UiEvent { + private body = document.querySelector("body"); + private addFeedButton = document.querySelector("#add-feed-button"); private pinButton = document.querySelector("#pin-button"); - constructor(){ + constructor() { this.addFeedButton.addEventListe...
bfba3e732f499b36c15f4bb9686a92f0ac3c9e5f
html/ts/generated.d.ts
html/ts/generated.d.ts
// Stuff that Shake generates and injects in // The version of Shake declare const version: string; ///////////////////////////////////////////////////////////////////// // PROFILE DATA declare const profile: Profile2[]; declare type timestamp = int interface Trace { command: string; start: seconds; st...
// Stuff that Shake generates and injects in // The version of Shake declare const version: string; ///////////////////////////////////////////////////////////////////// // PROFILE DATA // var rather than const, because we override it when testing declare var profile: Profile2[]; declare type timestamp = int inter...
Make the profile mutable, to faciliate testing
Make the profile mutable, to faciliate testing
TypeScript
bsd-3-clause
ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake
--- +++ @@ -6,7 +6,8 @@ ///////////////////////////////////////////////////////////////////// // PROFILE DATA -declare const profile: Profile2[]; +// var rather than const, because we override it when testing +declare var profile: Profile2[]; declare type timestamp = int
9f19407e3cad98126c8ae15aa1ddc45a26770ff4
addons/docs/src/blocks/index.ts
addons/docs/src/blocks/index.ts
export { ColorPalette, ColorItem, IconGallery, IconItem, Typeset } from '@storybook/components'; export * from './Anchor'; export * from './ArgsTable'; export * from './Canvas'; export * from './Description'; export * from './DocsContext'; export * from './DocsPage'; export * from './DocsContainer'; export * from './D...
export { ColorPalette, ColorItem, IconGallery, IconItem, Typeset } from '@storybook/components'; export * from './Anchor'; export * from './ArgsTable'; export * from './Canvas'; export * from './Description'; export * from './DocsContext'; export * from './DocsPage'; export * from './DocsContainer'; export * from './D...
Make source code accessible from outside
Make source code accessible from outside
TypeScript
mit
storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook
--- +++ @@ -14,6 +14,7 @@ export * from './Primary'; export * from './Props'; export * from './Source'; +export * from './SourceContainer'; export * from './Stories'; export * from './Story'; export * from './Subheading';
4525a4038885d6e54323b941e58571455e14a79a
app/src/ui/window/full-screen-info.tsx
app/src/ui/window/full-screen-info.tsx
import * as React from 'react' export class FullScreenInfo extends React.Component<any, any> { public render () { return ( <div className='toast-notification-container'> <div className='toast-notification'> Press <kbd className='kbd'>Esc</kbd> to exit fullscreen </div> </div...
import * as React from 'react' interface IFullScreenInfoState { readonly renderInfo: boolean } // const holdDuration = 750 export class FullScreenInfo extends React.Component<any, IFullScreenInfoState> { // private infoDisappearTimeoutId: number | null = null public constructor() { super() this.stat...
Add some basic rendering states
Add some basic rendering states
TypeScript
mit
j-f1/forked-desktop,desktop/desktop,desktop/desktop,kactus-io/kactus,say25/desktop,say25/desktop,desktop/desktop,hjobrien/desktop,kactus-io/kactus,artivilla/desktop,kactus-io/kactus,shiftkey/desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,gengjiawen/desktop,hjobrien/desktop,gengjiawen/desktop,hjobrien/deskt...
--- +++ @@ -1,7 +1,28 @@ import * as React from 'react' -export class FullScreenInfo extends React.Component<any, any> { +interface IFullScreenInfoState { + readonly renderInfo: boolean +} + +// const holdDuration = 750 + +export class FullScreenInfo extends React.Component<any, IFullScreenInfoState> { + + // pr...
ce12268c798f375cde1fe3d4c7cdfa913f108b92
resources/assets/lib/user-multiplayer-index.tsx
resources/assets/lib/user-multiplayer-index.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 UserJsonExtended from 'interfaces/user-json-extended'; import UserMultiplayerHistoryJson from 'interfaces/user-multiplayer-history-json'...
// 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 UserJsonExtended from 'interfaces/user-json-extended'; import UserMultiplayerHistoryJson from 'interfaces/user-multiplayer-history-json'...
Adjust function call for new component
Adjust function call for new component
TypeScript
agpl-3.0
LiquidPL/osu-web,notbakaneko/osu-web,ppy/osu-web,notbakaneko/osu-web,nanaya/osu-web,LiquidPL/osu-web,LiquidPL/osu-web,nanaya/osu-web,LiquidPL/osu-web,nanaya/osu-web,notbakaneko/osu-web,ppy/osu-web,nanaya/osu-web,notbakaneko/osu-web,nanaya/osu-web,LiquidPL/osu-web,ppy/osu-web,ppy/osu-web,notbakaneko/osu-web,ppy/osu-web
--- +++ @@ -8,7 +8,7 @@ import UserMultiplayerHistoryContext, { makeStore, updateStore } from 'user-multiplayer-history-context'; import Main from 'user-multiplayer-index/main'; -core.reactTurbolinks.register('user-multiplayer-index', true, () => { +core.reactTurbolinks.register('user-multiplayer-index', () => { ...
a62c0a3d177d63e2d56205e69b58c3dea3f686ee
src/ts/view/counter.ts
src/ts/view/counter.ts
namespace YJMCNT { /** * CounterView */ export class CounterView extends Core.View { counter:Counter; constructor() { super(); this.counter = new Counter(); this.counter.addObserver(this); } render() { var counter...
namespace YJMCNT { /** * CounterView */ export class CounterView extends Core.View { counter:Counter; constructor() { super(); this.counter = new Counter(); this.counter.addObserver(this); } render() { var counter...
Add count reset button (not work)
Add count reset button (not work)
TypeScript
mit
yajamon/chrome-ext-counter,yajamon/chrome-ext-counter,yajamon/chrome-ext-counter
--- +++ @@ -29,6 +29,11 @@ countDownButton.addClass("countDown"); countDownButton.appendTo(manipulate); + var countResetButton = $("<button>"); + countResetButton.html("Reset"); + countResetButton.addClass("countReset"); + countResetB...
511ba13c3d644552620c32f74a6815199886ea26
src/utils/network.ts
src/utils/network.ts
async function getOKResponse(url: string, mimeType?: string) { const response = await fetch( url, { cache: 'force-cache', credentials: 'omit', }, ); if (mimeType && !response.headers.get('Content-Type').startsWith(mimeType)) { throw new Error(`Mime ty...
import {isFirefox} from './platform'; async function getOKResponse(url: string, mimeType?: string) { const response = await fetch( url, { cache: 'force-cache', credentials: 'omit', }, ); // Firefox bug, content type is "application/x-unknown-content-type" ...
Patch for wrong Firefox add-ons CSS MIME type
Patch for wrong Firefox add-ons CSS MIME type
TypeScript
mit
darkreader/darkreader,alexanderby/darkreader,darkreader/darkreader,alexanderby/darkreader,darkreader/darkreader,alexanderby/darkreader
--- +++ @@ -1,3 +1,5 @@ +import {isFirefox} from './platform'; + async function getOKResponse(url: string, mimeType?: string) { const response = await fetch( url, @@ -6,6 +8,11 @@ credentials: 'omit', }, ); + + // Firefox bug, content type is "application/x-unknown-content...
fe9d73eb5bc08e752793f143c31c713c93ef85d0
tests/cases/fourslash/server/openFile.ts
tests/cases/fourslash/server/openFile.ts
/// <reference path="../fourslash.ts"/> // @Filename: test1.ts ////t. // @Filename: test.ts ////var t = '10'; // @Filename: tsconfig.json ////{ "files": ["test.ts", "test1.ts"] } var overridingContent = "var t = 10; t."; debugger; goTo.file("test.ts", overridingContent); goTo.file("test1.ts"); goTo.e...
/// <reference path="../fourslash.ts"/> // @Filename: test1.ts ////t. // @Filename: test.ts ////var t = '10'; // @Filename: tsconfig.json ////{ "files": ["test.ts", "test1.ts"] } var overridingContent = "var t = 10; t."; goTo.file("test.ts", overridingContent); goTo.file("test1.ts"); goTo.eof(); veri...
Remove debugger statement from test
Remove debugger statement from test
TypeScript
apache-2.0
RyanCavanaugh/TypeScript,DLehenbauer/TypeScript,donaldpipowitch/TypeScript,jeremyepling/TypeScript,plantain-00/TypeScript,samuelhorwitz/typescript,weswigham/TypeScript,kimamula/TypeScript,ionux/TypeScript,synaptek/TypeScript,synaptek/TypeScript,erikmcc/TypeScript,kimamula/TypeScript,fabioparra/TypeScript,thr0w/Thr0wScr...
--- +++ @@ -10,7 +10,6 @@ ////{ "files": ["test.ts", "test1.ts"] } var overridingContent = "var t = 10; t."; -debugger; goTo.file("test.ts", overridingContent); goTo.file("test1.ts"); goTo.eof();
67f689ca905227c7f2656572d3bf0faba1588d6f
pdf/pdf-tests.ts
pdf/pdf-tests.ts
/// <reference path="PDF.D.TS" /> var pdf: PDFPageProxy; // // Fetch the PDF document from the URL using promises // PDFJS.getDocument('helloworld.pdf').then(function (pdf) { // Using promise to fetch the page pdf.getPage(1).then(function (page) { var scale = 1.5; var viewport = page.getViewport(scale); // ...
/// <reference path="pdf.d.ts" /> var pdf: PDFPageProxy; // // Fetch the PDF document from the URL using promises // PDFJS.getDocument('helloworld.pdf').then(function (pdf) { // Using promise to fetch the page pdf.getPage(1).then(function (page) { var scale = 1.5; var viewport = page.getViewport(scale); // ...
Fix PDF.D.TS -> pdf.d.ts reference
Fix PDF.D.TS -> pdf.d.ts reference
TypeScript
mit
MugeSo/DefinitelyTyped,benishouga/DefinitelyTyped,wkrueger/DefinitelyTyped,xswordsx/DefinitelyTyped,MidnightDesign/DefinitelyTyped,bdukes/DefinitelyTyped,fishgoh0nk/DefinitelyTyped,jraymakers/DefinitelyTyped,mjjames/DefinitelyTyped,pocesar/DefinitelyTyped,Maplecroft/DefinitelyTyped,syuilo/DefinitelyTyped,Karabur/Defini...
--- +++ @@ -1,4 +1,4 @@ -/// <reference path="PDF.D.TS" /> +/// <reference path="pdf.d.ts" /> var pdf: PDFPageProxy;
fb2dd4620bf7689d32b30ec378abd0989ce1d48d
src/aleksa/intents/tachanka-bot-intent.ts
src/aleksa/intents/tachanka-bot-intent.ts
import { ServerSelectorService } from './../server-selector.service'; import { injectable, inject } from 'inversify'; import { TYPES } from '../../ioc/types'; import { IClient } from '../../contracts'; import { IIntent } from 'aleksa/IIntent'; @injectable() export class TachankaBotIntent implements IIntent { name:...
import { ServerSelectorService } from './../server-selector.service'; import { injectable, inject } from 'inversify'; import { TYPES } from '../../ioc/types'; import { IClient } from '../../contracts'; import { IIntent } from 'aleksa/IIntent'; @injectable() export class TachankaBotIntent implements IIntent { name:...
Switch isCommand flag on other bots
Switch isCommand flag on other bots
TypeScript
mit
arijoon/vendaire-discord-bot,arijoon/vendaire-discord-bot
--- +++ @@ -18,7 +18,7 @@ getCallback(config): (request: any, response: any) => Promise<void> { return async (req, res) => { const { guildId, channelId, userId, name } = await this._serverSelector.getServer(); - this._client.sendMessage(guildId, channelId, `>sing for Arijoon`, {}, { isCommand: tru...
cd6409d4ef9b2ade14aebce140d8119c7f274356
test/e2e/helloworld.ts
test/e2e/helloworld.ts
import t = require("unittest/unittest"); class MyClass { field: string; MyClass(someVal: string) { this.field = someVal; } getField(): string { return this.field + " world"; } } function main(): void { t.test("bigifies text", function() { t.expect("hello".toUpperCase(), t.equals("HELLO")); }); t.test("han...
import t = require("unittest/unittest"); class MyClass { field: string; MyClass(someVal: string) { this.field = someVal; } getField(): string { return this.field + " world"; } } function main(): void { t.test("handles classes", function() { var mc = new MyClass("hello"); t.expect(mc.getField().toUpp...
Fix the test case. Remove superfluous test line.
Fix the test case. Remove superfluous test line.
TypeScript
apache-2.0
yjbanov/ts2dart,dart-archive/ts2dart,hterkelsen/ts2dart,caitp/ts2dart,dart-archive/ts2dart,hansl/ts2dart,jteplitz602/ts2dart,alfonso-presa/ts2dart,jacob314/ts2dart,jacob314/ts2dart,jteplitz602/ts2dart,vsavkin/ts2dart,alfonso-presa/ts2dart,hterkelsen/ts2dart,yjbanov/ts2dart,vsavkin/ts2dart,caitp/ts2dart,hansl/ts2dart,vi...
--- +++ @@ -9,9 +9,8 @@ } function main(): void { - t.test("bigifies text", function() { t.expect("hello".toUpperCase(), t.equals("HELLO")); }); t.test("handles classes", function() { var mc = new MyClass("hello"); - t.expect(mc.field.toUpperCase(), t.equals("HELLO WORLD")); + t.expect(mc.getField(...
dab12e6749ea93eb11aab628ab9255bfc8075cc0
src/autoTable.ts
src/autoTable.ts
import { DocHandler, jsPDFDocument } from './documentHandler' import { createTable } from './inputParser' import { calculateWidths } from './widthCalculator' import { drawTable } from './tableDrawer' import { UserOptions } from './config' export default function autoTable(doc: jsPDFDocument, options: UserOptions) { ...
import { DocHandler, jsPDFDocument } from './documentHandler' import { createTable } from './inputParser' import { calculateWidths } from './widthCalculator' import { drawTable } from './tableDrawer' import { UserOptions } from './config' export default function autoTable(doc: jsPDFDocument, options: UserOptions) { ...
Fix crash when using nodejs dist files
Fix crash when using nodejs dist files
TypeScript
mit
simonbengtsson/jsPDF-AutoTable,simonbengtsson/jsPDF-AutoTable,simonbengtsson/jsPDF-AutoTable,someatoms/jsPDF-AutoTable
--- +++ @@ -19,7 +19,7 @@ table.finalY = table.cursor.y doc.previousAutoTable = table doc.lastAutoTable = table // Deprecated - doc.autoTable.previous = table // Deprecated + if (doc.autoTable) doc.autoTable.previous = table // Deprecated docHandler.applyStyles(docHandler.userStyles) }
d3456c723d30377e42549219770a0ad62084d183
ng2-toggle.ts
ng2-toggle.ts
import { Component, Directive, EventEmitter, Input, TemplateRef, ViewContainerRef } from '@angular/core'; @Component({ selector: 'toggle', template: ` <div *ngIf="on"> <ng-content></ng-content> </div> ` }) export class ToggleComponent { on: boolean; change: EventEmitter<boolean>; constructo...
import { Component, Directive, EventEmitter, Input, TemplateRef, ViewContainerRef } from '@angular/core'; @Component({ selector: 'toggle', template: ` <div *ngIf="on"> <ng-content></ng-content> </div> ` }) export class ToggleComponent { on = false; change = new EventEmitter<boolean>(); togg...
Change event returns opposite value
Change event returns opposite value
TypeScript
mit
jasonroyle/ng2-toggle
--- +++ @@ -11,15 +11,11 @@ ` }) export class ToggleComponent { - on: boolean; - change: EventEmitter<boolean>; - constructor() { - this.change = new EventEmitter<boolean>(); - this.on = false; - } + on = false; + change = new EventEmitter<boolean>(); toggle() { this.on = !this.on; - this....
aa8a178f96a6b2eeef84634d30cf32db64a3cad6
test/utils/utils.ts
test/utils/utils.ts
import * as fs from "fs"; import * as child from "child_process"; import * as path from "path"; export function getWasmInstance(sourcePath: string, outputFile?:string): WebAssembly.Instance { outputFile = outputFile || sourcePath.replace(".tbs", ".wasm"); let result = child.spawnSync(path.join(__dirname, '../....
import * as fs from "fs"; import * as child from "child_process"; import * as path from "path"; export function getWasmInstance(sourcePath: string, outputFile?:string): WebAssembly.Instance { outputFile = outputFile || sourcePath.replace(".tbs", ".wasm"); let result = child.spawnSync(path.join(__dirname, '../....
Build is stable so debug log removed
Build is stable so debug log removed
TypeScript
apache-2.0
01alchemist/TurboScript,01alchemist/TurboScript,01alchemist/TurboScript,01alchemist/TurboScript,01alchemist/TurboScript,01alchemist/TurboScript
--- +++ @@ -5,7 +5,6 @@ export function getWasmInstance(sourcePath: string, outputFile?:string): WebAssembly.Instance { outputFile = outputFile || sourcePath.replace(".tbs", ".wasm"); let result = child.spawnSync(path.join(__dirname, '../../bin/tc'), [sourcePath, '--out', outputFile]); - console.log(res...
09a4e486ccb68906c71af315ef5783316d1ce9d5
app/src/lib/firebase.ts
app/src/lib/firebase.ts
import * as firebase from "firebase"; const projectId = process.env.REACT_APP_FIREBASE_PROJECT_ID; export function initialize(): void { firebase.initializeApp({ apiKey: process.env.REACT_APP_FIREBASE_API_KEY, authDomain: `${projectId}.firebaseapp.com`, databaseURL: `https://${projectId}.fi...
import * as firebase from "firebase"; const projectId = process.env.REACT_APP_FIREBASE_PROJECT_ID; export function initialize(): void { firebase.initializeApp({ apiKey: process.env.REACT_APP_FIREBASE_API_KEY, authDomain: `${projectId}.firebaseapp.com`, databaseURL: `https://${projectId}.fi...
Set return type of onAuthStateChanged function
Set return type of onAuthStateChanged function
TypeScript
mit
raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d
--- +++ @@ -16,6 +16,6 @@ await firebase.auth().getRedirectResult(); } -export function onAuthStateChanged(callback: (user: firebase.User) => void) { +export function onAuthStateChanged(callback: (user: firebase.User) => void): void { firebase.auth().onAuthStateChanged(callback); }
a91ecc63abd5a1d4b0aafd0f2f8a3f4ac4f29da6
src/Components/NavBar/MinimalNavBar.tsx
src/Components/NavBar/MinimalNavBar.tsx
import { ArtsyLogoBlackIcon, Box } from "@artsy/palette" import { AppContainer } from "Apps/Components/AppContainer" import { RouterLink } from "Artsy/Router/RouterLink" import React from "react" interface MinimalNavBarProps { to: string children: React.ReactNode } export const MinimalNavBar: React.FC<MinimalNavB...
import { ArtsyLogoBlackIcon, Box } from "@artsy/palette" import { AppContainer } from "Apps/Components/AppContainer" import { RouterLink } from "Artsy/Router/RouterLink" import React from "react" interface MinimalNavBarProps { to: string children: React.ReactNode } export const MinimalNavBar: React.FC<MinimalNavB...
Use data-link instead of classname
Use data-link instead of classname
TypeScript
mit
artsy/reaction,artsy/reaction,artsy/reaction-force,artsy/reaction,artsy/reaction-force
--- +++ @@ -21,7 +21,7 @@ > <AppContainer> <Box height={70} px={[2, 4]}> - <RouterLink to={props.to} className="acceptance__logoLink"> + <RouterLink to={props.to} data-test="logoLink"> <ArtsyLogoBlackIcon /> </RouterLink> </Box>
1abf6ceefe52ed46b29c0b0ae0d4cfd78c620ff4
client/material/icon-button.tsx
client/material/icon-button.tsx
import PropTypes from 'prop-types' import React from 'react' import styled from 'styled-components' import { CardLayer } from '../styles/colors' import Button, { ButtonCommon, ButtonProps } from './button' export const IconButtonContents = styled(ButtonCommon)` width: 48px; min-height: 48px; border-radius: 50%; ...
import PropTypes from 'prop-types' import React from 'react' import styled from 'styled-components' import { CardLayer } from '../styles/colors' import Button, { ButtonCommon, ButtonProps } from './button' export const IconButtonContents = styled(ButtonCommon)` width: 48px; min-height: 48px; border-radius: 8px; ...
Use a boxier shape for icon buttons.
Use a boxier shape for icon buttons.
TypeScript
mit
ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery
--- +++ @@ -7,7 +7,7 @@ export const IconButtonContents = styled(ButtonCommon)` width: 48px; min-height: 48px; - border-radius: 50%; + border-radius: 8px; vertical-align: middle; ${props => { @@ -19,7 +19,7 @@ } ${CardLayer} &:active { - background-color: rgba(255, 255, 255, 0....
db8eb08bd4afdd55685fb1465b8b47b1680e7389
source/scripts/setup-plugins.ts
source/scripts/setup-plugins.ts
import * as child_process from "child_process" import jsonDatabase from "../db/json" import { DATABASE_JSON_FILE } from "../globals" const go = async () => { // Download settings const db = jsonDatabase(DATABASE_JSON_FILE) await db.setup() const installation = await db.getInstallation(0) if (!installation)...
import * as child_process from "child_process" import jsonDatabase from "../db/json" import { DATABASE_JSON_FILE } from "../globals" const log = console.log const go = async () => { // Download settings const db = jsonDatabase(DATABASE_JSON_FILE) await db.setup() const installation = await db.getInstallatio...
Add some stdout logs for plugin deploys
Add some stdout logs for plugin deploys
TypeScript
mit
danger/peril,danger/peril,danger/peril,danger/peril,danger/peril
--- +++ @@ -2,6 +2,8 @@ import jsonDatabase from "../db/json" import { DATABASE_JSON_FILE } from "../globals" + +const log = console.log const go = async () => { // Download settings @@ -15,11 +17,15 @@ // Look for plugins if (installation.settings.plugins && installation.settings.plugins.length !== 0...
52b2882efaa4352cb99cf2fe739aef92d71b6e6d
packages/logary/src/utils/sendBeacon.ts
packages/logary/src/utils/sendBeacon.ts
import { Observable, of } from "rxjs" import './BigInt-JSON-patch' /** * A function that sends the body asynchronously to the specified url. */ export default function sendBeacon(url: string, data: string | Blob | FormData | URLSearchParams | ReadableStream<Uint8Array>) { if (typeof window !== 'undefined' && windo...
import { Observable, of } from "rxjs" import './BigInt-JSON-patch' /** * A function that sends the body asynchronously to the specified url. */ export default function sendBeacon(url: string, data: string | Blob | FormData | URLSearchParams | ReadableStream<Uint8Array>) { if (typeof window !== 'undefined' && windo...
Use AbortController cancellation mechanism if warranted
Use AbortController cancellation mechanism if warranted
TypeScript
mit
logary/logary-js,logary/logary-js
--- +++ @@ -27,6 +27,9 @@ .catch(e => { o.error(e) }) + return () => { + controller.abort() + } }) } }
a8512997355abce17730486329ce7146d9b78fe3
src/drawableObjects.ts
src/drawableObjects.ts
export interface DrawableObject { drawOn(canvas: HTMLCanvasElement): any; } export type BlockType = "Entry" | "Choice" | "Action" | "Exit"; export interface Block extends DrawableObject { type: BlockType; } export interface Connection extends DrawableObject { from: Block; to: Block; }
export interface DrawableObject { drawOn(canvas: HTMLCanvasElement): any; } // enum value can be read as string, e.g.: blockType[blockType.Entry] export enum BlockType { Entry, Condition, Action, Exit } export interface Block extends DrawableObject { type: BlockType; } export interface Connec...
Change BlockType to enum, rename Choice to Condition
Change BlockType to enum, rename Choice to Condition
TypeScript
mit
hckr/diagram-editor,hckr/diagram-editor
--- +++ @@ -2,7 +2,13 @@ drawOn(canvas: HTMLCanvasElement): any; } -export type BlockType = "Entry" | "Choice" | "Action" | "Exit"; +// enum value can be read as string, e.g.: blockType[blockType.Entry] +export enum BlockType { + Entry, + Condition, + Action, + Exit +} export interface Block ex...
c0e61177175d1a0be831ec307e37ed4b13166cd4
src/components/Checkbox/Checkbox.tsx
src/components/Checkbox/Checkbox.tsx
import React from 'react' import styled from 'styled-components' import { Nodes } from '../../types' const List = styled.ul` list-style-type: none; ` const StyledCheckbox = styled.input` margin-right: 0.5rem; cursor: pointer; ` interface Props { id: string nodes: Nodes onToggle(id: string): void } expo...
import React from 'react' import styled from 'styled-components' import { Nodes } from '../../types' const List = styled.ul` list-style-type: none; ` const StyledCheckbox = styled.input` margin-right: 0.5rem; cursor: pointer; ` interface Props { id: string nodes: Nodes onToggle: (id: string) => void } ...
Use consistent syntax for defining interface members
Use consistent syntax for defining interface members
TypeScript
mit
joelgeorgev/react-checkbox-tree,joelgeorgev/react-checkbox-tree
--- +++ @@ -15,7 +15,7 @@ interface Props { id: string nodes: Nodes - onToggle(id: string): void + onToggle: (id: string) => void } export const Checkbox = ({ id, nodes, onToggle }: Props) => {
28a9f9c6adb8aef3b9625d3c969bef522b67656d
site/client/CountryProfileConstants.tsx
site/client/CountryProfileConstants.tsx
import { covidCountryProfileSlug, covidLandingSlug, covidCountryProfileRootPath } from "site/server/covid/CovidConstants" export type CountryProfileProject = "coronavirus" | "co2" export interface CountryProfileSpec { project: CountryProfileProject pageTitle: string genericProfileSlug: string ...
import { covidCountryProfileSlug, covidLandingSlug, covidCountryProfileRootPath } from "site/server/covid/CovidConstants" export type CountryProfileProject = "coronavirus" | "co2" export interface CountryProfileSpec { project: CountryProfileProject pageTitle: string genericProfileSlug: string ...
Update landingPageSlug for CO₂ country profiles
Update landingPageSlug for CO₂ country profiles
TypeScript
mit
owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher
--- +++ @@ -39,7 +39,7 @@ project: "co2", pageTitle: "CO2", genericProfileSlug: "co2-country-profile", - landingPageSlug: "co2-and-greenhouse-gas-emissions-landing-page", + landingPageSlug: "co2-and-other-greenhouse-gas-emissions", selector: "....
e8f86407551aae79d5303e3ad19160256a4a3964
src/extensions.ts
src/extensions.ts
/** * Triggered when a user was logged in * * @factoryParam {User} user The user object that was logged in */ export const EP_PHOVEA_CORE_LOGIN = 'epPhoveaCoreLogin'; /** * Triggered when a user was logged out. Does not provide any further information. */ export const EP_PHOVEA_CORE_LOGOUT = 'epPhoveaCoreLogout'...
/** * Triggered when a user was logged in * * @factoryParam {IUser} user The user object that was logged in */ export const EP_PHOVEA_CORE_LOGIN = 'epPhoveaCoreLogin'; /** * Triggered when a user was logged out. Does not provide any further information. */ export const EP_PHOVEA_CORE_LOGOUT = 'epPhoveaCoreLogout...
Fix data type in extension point documenation
Fix data type in extension point documenation
TypeScript
bsd-3-clause
phovea/phovea_core,Caleydo/caleydo_web,phovea/phovea_core,Caleydo/caleydo_web,Caleydo/caleydo_core
--- +++ @@ -1,7 +1,7 @@ /** * Triggered when a user was logged in * - * @factoryParam {User} user The user object that was logged in + * @factoryParam {IUser} user The user object that was logged in */ export const EP_PHOVEA_CORE_LOGIN = 'epPhoveaCoreLogin';
bdbb33be6314729b9ba921e15da5e17b9ca61f8a
prepare.ts
prepare.ts
/// <reference types="node" /> import * as path from 'path'; import * as fs from 'fs-extra'; const PACKAGE_JSON = 'package.json'; const LIB_PATH = './lib'; fs.copySync(PACKAGE_JSON, path.join(LIB_PATH, PACKAGE_JSON));
/// <reference types="node" /> import * as path from 'path'; import * as fs from 'fs-extra'; const LIB_PATH = './lib'; const preservedFiles = [ 'package.json', 'README.md', ]; for (const file of preservedFiles) { fs.copySync(file, path.join(LIB_PATH, file)); }
Update package script to copy README
Update package script to copy README
TypeScript
mit
kourge/ordering
--- +++ @@ -2,7 +2,13 @@ import * as path from 'path'; import * as fs from 'fs-extra'; -const PACKAGE_JSON = 'package.json'; const LIB_PATH = './lib'; -fs.copySync(PACKAGE_JSON, path.join(LIB_PATH, PACKAGE_JSON)); +const preservedFiles = [ + 'package.json', + 'README.md', +]; + +for (const file of preservedF...
87b17d97efe8ca563569ea9b20d812bfd7f1ad64
apps/template-blank/app.ts
apps/template-blank/app.ts
import application = require("application"); application.mainModule = "app/main-page"; // Remove this in the AppBuilder templates application.cssFile = "app/template-blank/app.css" application.start();
import application = require("application"); application.mainModule = "main-page"; // Remove this in the AppBuilder templates application.cssFile = "template-blank/app.css" application.start();
Fix the path in the blank template
Fix the path in the blank template
TypeScript
mit
genexliu/NativeScript,NativeScript/NativeScript,NativeScript/NativeScript,hdeshev/NativeScript,hdeshev/NativeScript,hdeshev/NativeScript,NativeScript/NativeScript,genexliu/NativeScript,NativeScript/NativeScript,NativeScript/NativeScript,genexliu/NativeScript
--- +++ @@ -1,7 +1,7 @@ import application = require("application"); -application.mainModule = "app/main-page"; +application.mainModule = "main-page"; // Remove this in the AppBuilder templates -application.cssFile = "app/template-blank/app.css" +application.cssFile = "template-blank/app.css" application.star...
c89e6974159cce89dbf1f076a99b32938ced6043
packages/notifications/src/Notification.ts
packages/notifications/src/Notification.ts
import { get } from 'lodash' import { INotification, NotificationState, INotificationOptions } from './Contracts' export default class Notification implements INotification { timestamp = new Date dismissed = false displayed = false defaultOptions = {} constructor( readonly state: NotificationState = Not...
import { get } from 'lodash' import { INotification, NotificationState, INotificationOptions } from './Contracts' export default class Notification implements INotification { timestamp = new Date dismissed = false displayed = false defaultOptions = {} constructor( readonly state: NotificationState = Not...
Fix missed code during commit
Fix missed code during commit
TypeScript
mit
tsarholdings/neutron
--- +++ @@ -36,7 +36,7 @@ } isDismissable(): boolean { - return !!this.options.dismissable + return get(this.options, 'dismissable', false) } wasDisplayed(): boolean {
4cd1e2a797d3c404077e3b929eeba238b5abb8f2
lib/utils.ts
lib/utils.ts
import Promise = require('any-promise') import { parse as parseQuery } from 'querystring' import Request from './request' export type TextTypes = 'text' | 'json' | 'urlencoded' export const textTypes = ['text', 'json', 'urlencoded'] export function parse (request: Request, value: string, type: string) { // Return p...
import Promise = require('any-promise') import { parse as parseQuery } from 'querystring' import Request from './request' export type TextTypes = 'text' | 'json' | 'urlencoded' export const textTypes = ['text', 'json', 'urlencoded'] const PROTECTION_PREFIX = /^\)\]\}',?\n/ export function parse (request: Request, va...
Handle JSON protection prefix when parsing
Handle JSON protection prefix when parsing
TypeScript
mit
blakeembrey/popsicle,blakeembrey/popsicle
--- +++ @@ -4,6 +4,8 @@ export type TextTypes = 'text' | 'json' | 'urlencoded' export const textTypes = ['text', 'json', 'urlencoded'] + +const PROTECTION_PREFIX = /^\)\]\}',?\n/ export function parse (request: Request, value: string, type: string) { // Return plain-text as is. @@ -19,7 +21,7 @@ // Attem...
12a9584b386b8872b9541822b48067a9d4735e39
manup-demo/src/app/app.module.ts
manup-demo/src/app/app.module.ts
import { HttpClient, HttpClientModule } from '@angular/common/http'; import { ErrorHandler, NgModule } from '@angular/core'; import { TranslateLoader, TranslateModule } from '@ngx-translate/core'; import { TranslateHttpLoader } from '@ngx-translate/http-loader'; import { IonicApp, IonicErrorHandler, IonicModule } from ...
import { HttpClient, HttpClientModule } from '@angular/common/http'; import { ErrorHandler, NgModule } from '@angular/core'; import { TranslateLoader, TranslateModule } from '@ngx-translate/core'; import { TranslateHttpLoader } from '@ngx-translate/http-loader'; import { IonicApp, IonicErrorHandler, IonicModule } from ...
Fix path to translation files in demo
Fix path to translation files in demo
TypeScript
mit
NextFaze/ionic-manup,NextFaze/ionic-manup,NextFaze/ionic-manup
--- +++ @@ -9,7 +9,7 @@ import { MyApp } from './app.component'; export function translateLoader(http: HttpClient) { - return new TranslateHttpLoader(http, 'assets/i18n', '.json'); + return new TranslateHttpLoader(http, 'assets/i18n/', '.json'); } @NgModule({ declarations: [MyApp, HomePage],
90699c8c31e0650973f319c1df72b4e1fff01682
cypress/integration/viewingRooms.spec.ts
cypress/integration/viewingRooms.spec.ts
import { visitWithStatusRetries } from "../helpers/visitWithStatusRetries" describe("Viewing rooms", () => { it("/viewing-rooms", () => { visitWithStatusRetries("viewing-rooms") cy.get("h1").should("contain", "Viewing Rooms") cy.title().should("eq", "Artsy Viewing Rooms") }) })
import { visitWithStatusRetries } from "../helpers/visitWithStatusRetries" describe("Viewing rooms", () => { it("/viewing-rooms", () => { visitWithStatusRetries("viewing-rooms") cy.get("h1").should("contain", "Viewing Rooms") cy.title().should("eq", "Artsy Viewing Rooms") // follow link to viewing r...
Add assertion about visiting individual viewing room, to stand in for Integrity's smoke test
Add assertion about visiting individual viewing room, to stand in for Integrity's smoke test
TypeScript
mit
artsy/force,artsy/force,artsy/force-public,artsy/force,artsy/force,artsy/force-public
--- +++ @@ -5,5 +5,11 @@ visitWithStatusRetries("viewing-rooms") cy.get("h1").should("contain", "Viewing Rooms") cy.title().should("eq", "Artsy Viewing Rooms") + + // follow link to viewing room + const roomLink = cy.get('a[href*="/viewing-room/"]:first') + roomLink.click() + cy.url().shoul...
3400cd9457bc8fe72913c2ace5e5f5f0e96d3280
lib/directives/mobx-autorun.directive.ts
lib/directives/mobx-autorun.directive.ts
import { Directive, ViewContainerRef, TemplateRef, HostListener, Renderer, OnInit, OnDestroy } from '@angular/core'; import { autorun } from 'mobx'; import { mobxAngularDebug } from '../utils/mobx-angular-debug'; @Directive({ selector: '[mobxAutorun]' }) export class MobxAutorunDirective implements OnInit, OnDestroy {...
import { Directive, ViewContainerRef, TemplateRef, HostListener, Renderer, OnInit, OnDestroy } from '@angular/core'; import { autorun } from 'mobx'; import { mobxAngularDebug } from '../utils/mobx-angular-debug'; @Directive({ selector: '[mobxAutorun]' }) export class MobxAutorunDirective implements OnInit, OnDestroy {...
Add support for angular 4
Add support for angular 4
TypeScript
mit
mobxjs/mobx-angular,500tech/ng2-mobx,500tech/ng2-mobx,500tech/ng2-mobx,mobxjs/mobx-angular,mobxjs/mobx-angular,mobxjs/mobx-angular
--- +++ @@ -24,8 +24,12 @@ } autoDetect(view) { + const autorunName = view._view.component + ? `${view._view.component.constructor.name}.detectChanges()` // angular 4+ + : `${view._view.parentView.context.constructor.name}.detectChanges()`; // angular 2 + this.dispose = autorun( - `${vi...
d4e46c2612be52a81fc42bf7064bc81200876d4a
helpers/object.ts
helpers/object.ts
export default class HelperObject { public static clone(obj: any): any { if (obj == null || typeof (obj) !== "object") { return obj; // any non-objects are passed by value, not reference } if (obj instanceof Date) { return new Date(obj.getTime()); } le...
export default class HelperObject { public static clone(obj: any): any { if (obj == null || typeof (obj) !== "object") { return obj; // any non-objects are passed by value, not reference } if (obj instanceof Date) { return new Date(obj.getTime()); } le...
Fix a bug in HelperObject.merge()
Fix a bug in HelperObject.merge()
TypeScript
mit
crossroads-education/eta,crossroads-education/eta
--- +++ @@ -21,6 +21,6 @@ to[i] = from[i]; } } - return from; + return to; } }
f9e084b619c8b511b937e1aa867ac09de264abfe
src/app/store/index.ts
src/app/store/index.ts
import * as fromRouter from '@ngrx/router-store' import { ActionReducerMap, MetaReducer, createFeatureSelector, createSelector } from '@ngrx/store' import { storeFreeze } from 'ngrx-store-freeze' import { ENV } from '../../environments/environment' import { CustomRouterState } from '../shared/utils/custom-rout...
import * as fromRouter from '@ngrx/router-store' import { ActionReducerMap, MetaReducer, createFeatureSelector, createSelector } from '@ngrx/store' import { storeFreeze } from 'ngrx-store-freeze' import { ENV } from '../../environments/environment' import { CustomRouterState } from '../shared/utils/custom-rout...
Add `studyName` selector from route params
Add `studyName` selector from route params
TypeScript
apache-2.0
RADAR-CNS/RADAR-Dashboard,RADAR-CNS/RADAR-Dashboard,RADAR-CNS/RADAR-Dashboard,RADAR-CNS/RADAR-Dashboard
--- +++ @@ -31,3 +31,10 @@ export const getRouterParams = createSelector(getRouterState, router => { return router && router.state && router.state.params }) + +export const getRouterParamsStudyName = createSelector( + getRouterState, + router => { + return router && router.state && router.state.params['stud...
b6b47ac07a27f7b8c4b4d8c96c2c4f5c1858ec95
src/js/Helpers/Collapse.d.ts
src/js/Helpers/Collapse.d.ts
import * as React from 'react'; import { Props } from '../index'; export interface CollapseProps extends Props { defaultStyle?: React.CSSProperties; collapsed: boolean; springConfig: Object; children?: React.ReactElement<any>; animate?: boolean; } declare const Collapse: React.ComponentClass<CollapseProps>;...
import * as React from 'react'; import { Props } from '../index'; export interface CollapseProps extends Props { defaultStyle?: React.CSSProperties; collapsed: boolean; springConfig?: Object; children?: React.ReactElement<any>; animate?: boolean; } declare const Collapse: React.ComponentClass<CollapseProps>...
Make `springConfig` of `Collapse` optional
Typescript: Make `springConfig` of `Collapse` optional Since it has a default value, it's not required to be set when using the component.
TypeScript
mit
mlaursen/react-md,mlaursen/react-md,mlaursen/react-md
--- +++ @@ -4,7 +4,7 @@ export interface CollapseProps extends Props { defaultStyle?: React.CSSProperties; collapsed: boolean; - springConfig: Object; + springConfig?: Object; children?: React.ReactElement<any>; animate?: boolean; }
7c96785b5fdacdaae584cb2343f426e24eca1794
src/js/Interfaces/Models/INotificationFilterSet.ts
src/js/Interfaces/Models/INotificationFilterSet.ts
interface INotificationFilterSet { read?: boolean; subjectType: string[]; reasonType: string[]; repository: number[]; };
interface INotificationFilterSet { read: boolean; subjectType: string[]; reasonType: string[]; repository: number[]; };
Make Read on NotificationFilterSet required
Make Read on NotificationFilterSet required
TypeScript
mit
harksys/HawkEye,harksys/HawkEye,harksys/HawkEye
--- +++ @@ -1,7 +1,7 @@ interface INotificationFilterSet { - read?: boolean; + read: boolean; subjectType: string[];
def543422ab87402170135f8684aa2a29b45e284
src/__tests__/validator/index.ts
src/__tests__/validator/index.ts
import { validateData } from '../../validator'; test('invalid', () => { expect(() => (validateData as any)()).toThrow(); expect(() => (validateData as any)({ tag: -1 })).toThrow(); });
import { validateData } from '../../validator'; import { uint8 } from '../../schemas'; test('invalid', () => { expect(() => (validateData as any)()).toThrow(); expect(() => (validateData as any)({ ...uint8, tag: -1 })).toThrow(); expect(() => (validateData as any)({ ...uint8, version: -1 })).toThrow(); });
Add test for invalid schema version
Add test for invalid schema version
TypeScript
mit
maxdavidson/structly,maxdavidson/structly
--- +++ @@ -1,6 +1,8 @@ import { validateData } from '../../validator'; +import { uint8 } from '../../schemas'; test('invalid', () => { expect(() => (validateData as any)()).toThrow(); - expect(() => (validateData as any)({ tag: -1 })).toThrow(); + expect(() => (validateData as any)({ ...uint8, tag: -1 })).t...
c92b6779f5f25dd21f3ccb888eb50644d551199a
src/web/main/router.ts
src/web/main/router.ts
import * as express from 'express'; export default function(app: express.Express) { console.log('Init Web router'); }
import * as express from 'express'; export default function(app: express.Express) { console.log('Init Web router'); }
Add newline to end of file
Add newline to end of file
TypeScript
mit
misskey-delta/Misskey-Web,misskey-delta/Misskey-Web,MissKernel/Misskey-Web,MissKernel/Misskey-Web,Tosuke/Misskey-Web,MissKernel/Misskey-Web,Tosuke/Misskey-Web,Tosuke/Misskey-Web,armchair-philosophy/Misskey-Web,MissKernel/Misskey-Web,armchair-philosophy/Misskey-Web,misskey-delta/Misskey-Web,armchair-philosophy/Misskey-W...
12a2728c29ea88c9253c55477bed0ac0989cc76c
step-release-vis/e2e/src/app.e2e-spec.ts
step-release-vis/e2e/src/app.e2e-spec.ts
// TODO(andreystar): review the autogenerated config, once the file is actually in use, and we have more insight on the real needs import { AppPage } from './app.po'; import { browser, logging } from 'protractor'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPa...
// TODO(andreystar): review the autogenerated config, once the file is actually in use, and we have more insight on the real needs import { AppPage } from './app.po'; import { browser, logging } from 'protractor'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPa...
Update test files for e2e.
Update test files for e2e.
TypeScript
apache-2.0
googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020
--- +++ @@ -9,11 +9,6 @@ page = new AppPage(); }); - it('should display welcome message', () => { - page.navigateTo(); - expect(page.getTitleText()).toEqual('step-release-vis app is running!'); - }); - afterEach(async () => { // Assert that there are no errors emitted from the browser c...
744cbd726e2dd1a12d5b2b9b3e505b9834405f27
src/utils.ts
src/utils.ts
import { Clone, IMerge, Merge } from 'lutils'; export const merge: IMerge = new Merge({ depth: 100 }).merge; export const clone = new Clone({ depth: 100 }).clone; export const isIterable = (obj) => obj != null && typeof obj[Symbol.iterator] === 'function'
import { Clone, IMerge, Merge } from 'lutils'; export const merge: IMerge = new Merge({ depth: 100 }).merge; export const clone = new Clone({ depth: 100 }).clone; export function isIterable (obj) { if (obj === null || obj === undefined) { return false; } return typeof obj[Symbol.iterator] === 'function'; }...
Expand isIterable to beat the linter...
Expand isIterable to beat the linter...
TypeScript
mit
temando/serverless-openapi-documentation,temando/serverless-openapi-documentation,temando/serverless-openapi-documentation
--- +++ @@ -2,4 +2,11 @@ export const merge: IMerge = new Merge({ depth: 100 }).merge; export const clone = new Clone({ depth: 100 }).clone; -export const isIterable = (obj) => obj != null && typeof obj[Symbol.iterator] === 'function' + +export function isIterable (obj) { + if (obj === null || obj === undefined)...
b296fc3cdf10629f30619a992b133dabc0301f3a
packages/lesswrong/platform/express/server/loadDatabaseSettings.ts
packages/lesswrong/platform/express/server/loadDatabaseSettings.ts
import { setPublicSettings, getServerSettingsCache, setServerSettingsCache, registeredSettings } from '../../../lib/settingsCache'; import { getDatabase } from '../lib/mongoCollection'; export async function refreshSettingsCaches() { const db = getDatabase(); if (db) { const table = db.collection("databasemeta...
import { setPublicSettings, getServerSettingsCache, setServerSettingsCache, registeredSettings } from '../../../lib/settingsCache'; import { getDatabase } from '../lib/mongoCollection'; export async function refreshSettingsCaches() { const db = getDatabase(); if (db) { const table = db.collection("databasemeta...
Load DB settings in parallel
Load DB settings in parallel
TypeScript
mit
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2
--- +++ @@ -5,9 +5,10 @@ const db = getDatabase(); if (db) { const table = db.collection("databasemetadata"); - // TODO: Do these two parallel to save a roundtrip - const serverSettingsObject = await table.findOne({name: "serverSettings"}) - const publicSettingsObject = await table.findOne({name:...
6fbb591a90fadf9dd4f72b1f8af1d3250beea606
packages/client/src/util/commonPrefix.ts
packages/client/src/util/commonPrefix.ts
export function commonPrefix(values: string[]): string { if (!values.length) return ''; const result = values.reduce(pfx); return result; } function pfx(a: string, b: string): string { const s = Math.min(a.length, b.length); let i = 0; while (i < s && a[i] === b[i]) { i++; } re...
export function commonPrefix(values: string[]): string { if (!values.length) return ''; const min = values.reduce((min, curr) => (min <= curr ? min : curr)); const max = values.reduce((max, curr) => (max >= curr ? max : curr)); return pfx(min, max); } function pfx(a: string, b: string): string { c...
Improve the common prefix alg
Improve the common prefix alg
TypeScript
mit
Jason-Rev/vscode-spell-checker,Jason-Rev/vscode-spell-checker,Jason-Rev/vscode-spell-checker,Jason-Rev/vscode-spell-checker,Jason-Rev/vscode-spell-checker
--- +++ @@ -1,8 +1,9 @@ export function commonPrefix(values: string[]): string { if (!values.length) return ''; - const result = values.reduce(pfx); - return result; + const min = values.reduce((min, curr) => (min <= curr ? min : curr)); + const max = values.reduce((max, curr) => (max >= curr ? ma...
9e9eee7f9fdf29875aa9b7def2f68fa19aee4fcf
src/app/_services/ov-api.service.spec.ts
src/app/_services/ov-api.service.spec.ts
import { TestBed } from '@angular/core/testing'; import { OvApiService } from './ov-api.service'; import { HttpClientTestingModule } from '@angular/common/http/testing'; describe('OvApiService', () => { let service: OvApiService; beforeEach(() => { TestBed.configureTestingModule({ imports...
import { TestBed } from '@angular/core/testing'; import { OvApiService } from './ov-api.service'; import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; describe('OvApiService', () => { let service: OvApiService; let httpTestingController: HttpTestingController; b...
Add unit tests for OvApiService
Add unit tests for OvApiService
TypeScript
mit
yktoo/infopi,yktoo/infopi,yktoo/infopi,yktoo/infopi
--- +++ @@ -1,10 +1,12 @@ import { TestBed } from '@angular/core/testing'; import { OvApiService } from './ov-api.service'; -import { HttpClientTestingModule } from '@angular/common/http/testing'; +import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; describe('OvApiSer...
e8da941703579c30ef59adc2abca60315ab57d7c
src/app/_services/api/api-models/business-api.ts
src/app/_services/api/api-models/business-api.ts
import { Organization } from '../../../models/organization'; export class BusinessApi { public id: number; public legalName: string; public commonName: string; public mail: string; public legalStatus: string; public siret: string; public shareCapital: number; public RCSNumber: string; ...
import { Organization } from '../../../models/organization'; export class BusinessApi { public id: number; public legalName: string; public commonName: string; public mail: string; public legalStatus: string; public siret: string; public shareCapital: number; public RCSNumber: string; ...
Add necessary email for business
Add necessary email for business
TypeScript
mit
XavierGuichet/bemoove-front,XavierGuichet/bemoove-front,XavierGuichet/bemoove-front
--- +++ @@ -19,6 +19,9 @@ if ( organization.legalName ) { this.legalName = organization.legalName; + } + if ( organization.mail ) { + this.mail = organization.mail; } if ( organization.vatRate ) { this.vatRate = organization.vatRate;
84f8bc6bb53c2c4a0aa32b89e7cab4b5c3538053
deploy/deploy_poll.ts
deploy/deploy_poll.ts
import {HardhatRuntimeEnvironment} from "hardhat/types" import {DeployFunction} from "hardhat-deploy/types" import ContractDeployer from "./deployer" const func: DeployFunction = async function(hre: HardhatRuntimeEnvironment) { const {deployments, getNamedAccounts} = hre // Get the deployments and getNamedAccount...
import {HardhatRuntimeEnvironment} from "hardhat/types" import {DeployFunction} from "hardhat-deploy/types" import ContractDeployer from "./deployer" const func: DeployFunction = async function(hre: HardhatRuntimeEnvironment) { const {deployments, getNamedAccounts} = hre // Get the deployments and getNamedAccount...
Fix PollCreator deploy script dep
deploy: Fix PollCreator deploy script dep
TypeScript
mit
livepeer/protocol,livepeer/protocol,livepeer/protocol
--- +++ @@ -11,12 +11,12 @@ const contractDeployer = new ContractDeployer(deploy, deployer, deployments) - const livepeerToken = await get("LivepeerToken") + const bondingManager = await get("BondingManager") await contractDeployer.deployAndRegister({ contract: "PollCreator", n...
c30821c7ef6cd8268ac7e66fa862e64590218bf5
Configuration/TypoScript/Includes/Page.ts
Configuration/TypoScript/Includes/Page.ts
page.meta { # tell mobile devices to initially scale the page to fit the devices screen width # viewport = width=device-width, initial-scale=1.0 }
config { # set the 'no-js' html-class for Modernizr htmlTag_setParams = class="no-js" } page.meta { # tell mobile devices to initially scale the page to fit the devices screen width # viewport = width=device-width, initial-scale=1.0 }
Set the 'no-js' class on the html-element by default
[FEATURE] Set the 'no-js' class on the html-element by default
TypeScript
mit
t3b/t3b_template,t3b/t3b_template,t3b/t3b_template,t3b/t3b_template,t3b/t3b_template
--- +++ @@ -1,3 +1,8 @@ +config { + # set the 'no-js' html-class for Modernizr + htmlTag_setParams = class="no-js" +} + page.meta { # tell mobile devices to initially scale the page to fit the devices screen width # viewport = width=device-width, initial-scale=1.0
d4de7cafa69c527ba27b6aeef486c3179226aa72
src/app/gallery/image.service.spec.ts
src/app/gallery/image.service.spec.ts
import { TestBed, inject } from '@angular/core/testing'; import { ImageService } from './image.service'; describe('ImageService', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [ImageService] }); }); it('should ...', inject([ImageService], (service: ImageService) => { e...
import { TestBed, inject } from '@angular/core/testing'; import { HttpModule, Http, Response, ResponseOptions, XHRBackend } from '@angular/http'; import { MockBackend } from '@angular/http/testing'; import { ImageInfo } from './image-info'; import { ImageService } from './image.service'; const mockFeaturedI...
Add tests for image service
Add tests for image service
TypeScript
apache-2.0
jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog
--- +++ @@ -1,14 +1,90 @@ import { TestBed, inject } from '@angular/core/testing'; +import { + HttpModule, + Http, + Response, + ResponseOptions, + XHRBackend +} from '@angular/http'; +import { MockBackend } from '@angular/http/testing'; + +import { ImageInfo } from './image-info'; import { ImageService } from...
d5747cbb8972094759b5a34a3e8e1af593e019e4
src/pages/user/index.ts
src/pages/user/index.ts
import { inject } from 'aurelia-framework'; import { Router } from 'aurelia-router'; import { HackerNewsApi } from '../../services/api'; @inject(Router, HackerNewsApi) export class User { user: any; private readonly router: Router; private readonly api: HackerNewsApi; private id: string; construc...
import { inject } from 'aurelia-framework'; import { Router } from 'aurelia-router'; import { HackerNewsApi } from '../../services/api'; @inject(Router, HackerNewsApi) export class User { user: any; private readonly router: Router; private readonly api: HackerNewsApi; constructor(router: Router, api:...
Remove unnecessary class level variable in user page
Remove unnecessary class level variable in user page
TypeScript
isc
michaelbull/aurelia-hacker-news,MikeBull94/aurelia-hacker-news,michaelbull/aurelia-hacker-news,MikeBull94/aurelia-hacker-news,michaelbull/aurelia-hacker-news
--- +++ @@ -8,7 +8,6 @@ private readonly router: Router; private readonly api: HackerNewsApi; - private id: string; constructor(router: Router, api: HackerNewsApi) { this.router = router; @@ -21,7 +20,6 @@ return; } - this.id = params.id; - this.use...
5379bca95e65167295890d46ce99e0b78af256ef
src/app/sections/breadcrumbs/breadcrumbs.component.ts
src/app/sections/breadcrumbs/breadcrumbs.component.ts
import { Component, Input, OnInit } from '@angular/core'; import { DataService } from '../../services/data.service'; import { Path } from '../../interfaces/path.interface'; @Component({ selector: 'app-breadcrumbs', templateUrl: './breadcrumbs.component.html', styleUrls: ['./breadcrumbs.component.sass'] }) expor...
import { Component, Input, OnInit } from '@angular/core'; import { DataService } from '../../services/data.service'; import { Path } from '../../interfaces/path.interface'; @Component({ selector: 'app-breadcrumbs', templateUrl: './breadcrumbs.component.html', styleUrls: ['./breadcrumbs.component.sass'] }) expor...
Correct extra call of set subname function
Correct extra call of set subname function
TypeScript
mit
KeJSaR/artezian-info-web,KeJSaR/artezian-info-web,KeJSaR/artezian-info-web,KeJSaR/artezian-info-web
--- +++ @@ -18,7 +18,7 @@ constructor(private data: DataService) { } ngOnInit() { - this.setSubname(this.section.alias, this.subalias); + if (this.subalias) this.setSubname(this.section.alias, this.subalias); } private setSubname(alias: string, subalias: string) {
8f003ea6af271ee08a897dd35ffbffa4ccac03e9
src/IConfig.ts
src/IConfig.ts
/* Copyright 2019 The Matrix.org Foundation C.I.C. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
/* Copyright 2019 The Matrix.org Foundation C.I.C. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
Add option to specify additional parameters in the config
Add option to specify additional parameters in the config
TypeScript
apache-2.0
matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack
--- +++ @@ -17,6 +17,7 @@ // This should follow the format in slack-config-schema.yaml type LogEnum = "error"|"warn"| "info"|"debug"|"off"; +import { WebClientOptions } from "@slack/web-api"; export interface IConfig { slack_hook_port: number; @@ -52,6 +53,7 @@ redirect_prefix?: string; }; ...
78c8a7065fbf13c6497916b3c1b2e13e0fdfeb4b
packages/react-sequential-id/src/index.ts
packages/react-sequential-id/src/index.ts
import { ReactElement, SFC, StatelessComponent } from 'react' import uniqueid from 'uniqueid' export interface ISequentialIdProps { children: (id: string) => ReactElement<any> | null } export type SequentialIdComponent = StatelessComponent<ISequentialIdProps> export type SequentialIdSFC = SFC<ISequentialIdProps> e...
import { ReactElement, SFC, StatelessComponent } from 'react' import uniqueid from 'uniqueid' export interface ISequentialIdProps { children: (id: string) => ReactElement<any> | null } export type SequentialIdComponent = StatelessComponent<ISequentialIdProps> export type SequentialIdSFC = SFC<ISequentialIdProps> e...
Improve typing of factory function
Improve typing of factory function
TypeScript
mit
thirdhand/components,thirdhand/components
--- +++ @@ -8,7 +8,7 @@ export type SequentialIdComponent = StatelessComponent<ISequentialIdProps> export type SequentialIdSFC = SFC<ISequentialIdProps> -export function withIdFactory(factory: Function): SequentialIdSFC { +export function withIdFactory(factory: () => string): SequentialIdSFC { return function ...
79346849f27a00934b0cee51f06e690d5883d069
src/dumb-cache.ts
src/dumb-cache.ts
"use strict"; import { EmberOperation, getHelp } from "./ember-ops"; export default class DumbCache { public generateChoices; public serveOperation: EmberOperation; public testServeOperation: EmberOperation; public preload(): Promise<any> { return this._preloadGenerateChoices(); } co...
"use strict"; import { EmberOperation, getHelp } from "./ember-ops"; export default class DumbCache { public generateChoices; public serveOperation: EmberOperation; public testServeOperation: EmberOperation; public preload(): Promise<any> { return this._preloadGenerateChoices(); } co...
Fix blueprint generators and include all available blueprints
Fix blueprint generators and include all available blueprints
TypeScript
mit
felixrieseberg/vsc-ember-cli,t-sauer/vsc-ember-cli
--- +++ @@ -21,7 +21,14 @@ return new Promise((resolve, reject) => { getHelp("generate").then((result) => { if (result && result.availableBlueprints) { - this.generateChoices = result.availableBlueprints[0]["ember-cli"]; + this.generateChoic...
cffdbf8bd99471e86888d4c9974337d64c36d965
utils/server/staticGen.tsx
utils/server/staticGen.tsx
import { WEBPACK_OUTPUT_PATH } from 'serverSettings' import { ENV, WEBPACK_DEV_URL, BAKED_BASE_URL } from 'settings' import * as fs from 'fs-extra' import urljoin = require('url-join') import * as path from 'path' let manifest: {[key: string]: string} export function webpack(assetName: string, context?: string) { ...
import { WEBPACK_OUTPUT_PATH } from 'serverSettings' import { ENV, WEBPACK_DEV_URL, BAKED_BASE_URL } from 'settings' import * as fs from 'fs-extra' import urljoin = require('url-join') import * as path from 'path' let manifest: {[key: string]: string} export function webpack(assetName: string, context?: string) { ...
Revert "fix: remove host from assets URL"
Revert "fix: remove host from assets URL" This reverts commit 563a0eb56f513262180a1db17eec1e56297ff717. It caused the SDG tracker to not load charts, as we use the native embeds there too.
TypeScript
mit
owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher
--- +++ @@ -14,7 +14,7 @@ } assetName = manifest[assetName] - return urljoin('/assets', assetName) + return urljoin(BAKED_BASE_URL, '/assets', assetName) } else { if (assetName.match(/\.js$/)) { assetName = `js/${assetName}`
f0b12a4fab3ea6818910b45feb112675432ba4b5
src/SyntaxNodes/NsflBlockNode.ts
src/SyntaxNodes/NsflBlockNode.ts
import { OutlineSyntaxNode } from './OutlineSyntaxNode' export class NsflBlockNode { OUTLINE_SYNTAX_NODE(): void { } constructor(public children: OutlineSyntaxNode[] = []) { } protected NSFL_BLOCK_NODE(): void { } }
import { RichOutlineSyntaxNode } from './RichOutlineSyntaxNode' export class NsflBlockNode extends RichOutlineSyntaxNode { protected NSFL_BLOCK_NODE(): void { } }
Use RichOutlineSyntaxNode for NSFL blocks
Use RichOutlineSyntaxNode for NSFL blocks
TypeScript
mit
start/up,start/up
--- +++ @@ -1,10 +1,6 @@ -import { OutlineSyntaxNode } from './OutlineSyntaxNode' +import { RichOutlineSyntaxNode } from './RichOutlineSyntaxNode' -export class NsflBlockNode { - OUTLINE_SYNTAX_NODE(): void { } - - constructor(public children: OutlineSyntaxNode[] = []) { } - +export class NsflBlockNode extends ...
a78575a6c0a496f9aa3ec406a0a6cf9bcf0df582
applications/mail/src/app/components/list/ItemStar.tsx
applications/mail/src/app/components/list/ItemStar.tsx
import React, { MouseEvent } from 'react'; import { Icon, useLoading, classnames } from 'react-components'; import { Element } from '../../models/element'; import { isMessage as testIsMessage, isStarred as testIsStarred } from '../../helpers/elements'; import { useStar } from '../../hooks/useApplyLabels'; interface P...
import React, { MouseEvent } from 'react'; import { Icon, useLoading, classnames } from 'react-components'; import { Element } from '../../models/element'; import { isMessage as testIsMessage, isStarred as testIsStarred } from '../../helpers/elements'; import { useStar } from '../../hooks/useApplyLabels'; interface P...
Fix - missing classes for layout/animation
Fix - missing classes for layout/animation
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
--- +++ @@ -27,12 +27,12 @@ disabled={loading} type="button" className={classnames([ - 'starbutton item-star inline-flex stop-propagation', + 'starbutton relative item-star inline-flex stop-propagation', isStarred && 'starbutton--is...
585b006577e90fc8056c7b903e6c20ce523d2877
scripts/update-changelog.ts
scripts/update-changelog.ts
import * as fs from "fs" // Update the CHANGELOG with the new version const changelog = fs.readFileSync("CHANGELOG.md", "utf8") const newCHANGELOG = changelog.replace( "<!-- Your comment below this -->", `<!-- Your comment below this --> # ${process.env.VERSION} ` ) fs.writeFileSync("CHANGELOG.md", newCHANGELOG,...
// import * as fs from "fs" // // Update the CHANGELOG with the new version // const changelog = fs.readFileSync("CHANGELOG.md", "utf8") // const newCHANGELOG = changelog.replace( // "<!-- Your comment below this -->", // `<!-- Your comment below this --> // # ${process.env.VERSION} // ` // ) // fs.writeFileSync...
Remove the update changelog setp
Remove the update changelog setp
TypeScript
mit
danger/danger-js,danger/danger-js,danger/danger-js,danger/danger-js
--- +++ @@ -1,13 +1,13 @@ -import * as fs from "fs" +// import * as fs from "fs" -// Update the CHANGELOG with the new version +// // Update the CHANGELOG with the new version -const changelog = fs.readFileSync("CHANGELOG.md", "utf8") -const newCHANGELOG = changelog.replace( - "<!-- Your comment below this -->",...
7ba8c01e6613859740cedd9dbdd77909566e3f49
packages/utils/src/customisations/bool.ts
packages/utils/src/customisations/bool.ts
/** * Get boolean customisation value from attribute */ export function toBoolean( name: string, value: unknown, defaultValue: boolean ): boolean { switch (typeof value) { case 'boolean': return value; case 'number': return !!value; case 'string': switch (value.toLowerCase()) { case '1': ...
/** * Get boolean customisation value from attribute */ export function toBoolean( name: string, value: unknown, defaultValue: boolean ): boolean { switch (typeof value) { case 'boolean': return value; case 'number': return !!value; case 'string': switch (value.toLowerCase()) { case '1': ...
Fix attribute comparison in toBoolean in Utils
Fix attribute comparison in toBoolean in Utils
TypeScript
mit
simplesvg/simple-svg,simplesvg/simple-svg,simplesvg/simple-svg
--- +++ @@ -17,7 +17,7 @@ switch (value.toLowerCase()) { case '1': case 'true': - case name: + case name.toLowerCase(): return true; case '0':
522b64673f130eafc7bbc05b6850ba1c3dc01ec4
app/components/docedit/core/forms/type-relation/type-row.component.ts
app/components/docedit/core/forms/type-relation/type-row.component.ts
import {Component, EventEmitter, Input, OnChanges, Output} from '@angular/core'; import {FieldDocument} from 'idai-components-2'; import {ModelUtil} from '../../../../../core/model/model-util'; import {ReadImagestore} from '../../../../../core/images/imagestore/read-imagestore'; import {FieldReadDatastore} from '../../...
import {Component, EventEmitter, Input, OnChanges, Output} from '@angular/core'; import {FieldDocument} from 'idai-components-2'; import {ModelUtil} from '../../../../../core/model/model-util'; import {ReadImagestore} from '../../../../../core/images/imagestore/read-imagestore'; @Component({ moduleId: module.id, ...
Remove todo; remove unused import
Remove todo; remove unused import
TypeScript
apache-2.0
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
--- +++ @@ -2,7 +2,6 @@ import {FieldDocument} from 'idai-components-2'; import {ModelUtil} from '../../../../../core/model/model-util'; import {ReadImagestore} from '../../../../../core/images/imagestore/read-imagestore'; -import {FieldReadDatastore} from '../../../../../core/datastore/field/field-read-datastore'...
85d0aab054772c96192ac30ef37055b2cbb46bcc
app/src/lib/progress/fetch-progress-parser.ts
app/src/lib/progress/fetch-progress-parser.ts
import { StepProgressParser } from './step-progress' /** * Highly approximate (some would say outright inaccurate) division * of the individual progress reporting steps in a fetch operation */ const steps = [ { title: 'remote: Compressing objects', weight: 0.1 }, { title: 'Receiving objects', weight: 0.7 }, {...
import { StepProgressParser } from './step-progress' /** * Highly approximate (some would say outright inaccurate) division * of the individual progress reporting steps in a fetch operation */ const steps = [ { title: 'remote: Compressing objects', weight: 0.1 }, { title: 'Receiving objects', weight: 0.7 }, {...
Hide my copy paste sins
Hide my copy paste sins
TypeScript
mit
gengjiawen/desktop,desktop/desktop,shiftkey/desktop,say25/desktop,kactus-io/kactus,artivilla/desktop,BugTesterTest/desktops,kactus-io/kactus,hjobrien/desktop,BugTesterTest/desktops,j-f1/forked-desktop,shiftkey/desktop,desktop/desktop,BugTesterTest/desktops,artivilla/desktop,j-f1/forked-desktop,gengjiawen/desktop,deskto...
--- +++ @@ -11,11 +11,11 @@ ] /** - * A utility class for interpreting the output from `git push --progress` + * A utility class for interpreting the output from `git fetch --progress` * and turning that into a percentage value estimating the overall progress - * of the clone. + * of the fetch. */ -export cla...
264d4b45bd8b5f3d1c9aa8efef78abd45fbf3780
src/xml/transforms/enveloped_signature.ts
src/xml/transforms/enveloped_signature.ts
import { Select, XE, XmlError } from "xml-core"; import { Transform } from "../transform"; /** * Represents the enveloped signature transform for an XML digital signature as defined by the W3C. */ export class XmlDsigEnvelopedSignatureTransform extends Transform { public Algorithm = "http://www.w3.org/2000/09/...
import { Select, XE, XmlError } from "xml-core"; import { Transform } from "../transform"; /** * Represents the enveloped signature transform for an XML digital signature as defined by the W3C. */ export class XmlDsigEnvelopedSignatureTransform extends Transform { public Algorithm = "http://www.w3.org/2000/09/...
Remove all Signature child nodes
Remove all Signature child nodes
TypeScript
mit
PeculiarVentures/xmldsigjs,PeculiarVentures/xmldsigjs
--- +++ @@ -18,9 +18,12 @@ throw new XmlError(XE.PARAM_REQUIRED, "innerXml"); } - const signature = Select(this.innerXml, ".//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']")[0]; - if (signature) { - signature.parentNode!.removeC...
4fae8d4ca5ee2976af38fe6c07c5a9962d5afa90
frontend/src/pages/home/index.tsx
frontend/src/pages/home/index.tsx
import * as React from 'react'; import { Navbar } from 'components/navbar'; import { Button } from 'components/button'; import { Grid, Column } from 'components/grid'; import { Card } from 'components/card'; import { Hero } from 'components/hero'; import { Title, Subtitle } from 'components/typography'; export const H...
import * as React from 'react'; import { Navbar } from 'components/navbar'; import { Button } from 'components/button'; import { Hero } from 'components/hero'; import { Title, Subtitle } from 'components/typography'; export const HomePage = () => ( <div> <Navbar /> <Hero renderFooter={() => ( ...
Make home page a landing page
Make home page a landing page
TypeScript
mit
patrick91/pycon,patrick91/pycon
--- +++ @@ -1,8 +1,6 @@ import * as React from 'react'; import { Navbar } from 'components/navbar'; import { Button } from 'components/button'; -import { Grid, Column } from 'components/grid'; -import { Card } from 'components/card'; import { Hero } from 'components/hero'; import { Title, Subtitle } from 'compon...
a18f33ac913ad93e9d6a47415f02d8f8381bbb2e
src/components/hero-selector.component.ts
src/components/hero-selector.component.ts
import { Component, Input, Output, EventEmitter } from '@angular/core'; import { HeroesService, IHero } from '../services/heroes.service'; @Component({ selector: 'hero-selector', template: ` <div class="modal" [class.is-active]="active"> <div class="modal-background"></div> <div class="moda...
import { Component, Input, Output, EventEmitter } from '@angular/core'; import { HeroesService, IHero } from '../services/heroes.service'; @Component({ selector: 'hero-selector', template: ` <div class="modal" [class.is-active]="active"> <div class="modal-background"></div> <div class="moda...
Expand hero selector view to more height
Expand hero selector view to more height
TypeScript
mit
Overcomplicated/website,Overcomplicated/website,Overcomplicated/website,Overcomplicated/website
--- +++ @@ -32,6 +32,7 @@ } .modal-content { + max-height: calc(100vh - 100px); margin: 0; } `],
3ccabc7ffe7d6beb14c1c33c051aa91102a7a73a
src/shared/constants.ts
src/shared/constants.ts
/* |-------------------------------------------------------------------------- | supported Formats |-------------------------------------------------------------------------- */ export const SUPPORTED_TRACKS_EXTENSIONS = [ // MP3 / MP4 '.mp3', '.mp4', '.aac', '.m4a', '.3gp', '.wav', // Opus '.ogg', ...
/* |-------------------------------------------------------------------------- | supported Formats |-------------------------------------------------------------------------- */ export const SUPPORTED_TRACKS_EXTENSIONS = [ // MP3 / MP4 '.mp3', '.mp4', '.aac', '.m4a', '.3gp', '.wav', // Opus '.ogg', ...
Update webm in supported extensions
Update webm in supported extensions
TypeScript
mit
KeitIG/museeks,KeitIG/museeks,KeitIG/museeks
--- +++ @@ -19,6 +19,8 @@ '.opus', // Flac '.flac', + // web media + '.webm', ]; export const SUPPORTED_PLAYLISTS_EXTENSIONS = ['.m3u'];
c7804cba05b6533f49677493a81499767eb74da8
src/tasks/UploadTask.ts
src/tasks/UploadTask.ts
import {SCRIPT_DIR, TEMPLATES_DIR} from "./Task"; import {DeployTask} from "./DeployTask"; import {Config} from "../config"; import {Session, SessionResult, executeScript, copy} from "../Session"; const fs = require('fs'); const path = require('path'); const util = require('util'); export class UploadTask extends De...
import {SCRIPT_DIR, TEMPLATES_DIR} from "./Task"; import {DeployTask} from "./DeployTask"; import {Config} from "../config"; import {Session, SessionResult, executeScript, copy} from "../Session"; const fs = require('fs'); const path = require('path'); const util = require('util'); export class UploadTask extends De...
Fix upload task (vars enables the ejs compilation)
Fix upload task (vars enables the ejs compilation)
TypeScript
mit
c9s/typeloy,c9s/typeloy
--- +++ @@ -30,9 +30,6 @@ public run(session : Session) : Promise<SessionResult> { return copy(session, this.srcPath, - this.destPath, { - 'progressBar': this.progress, - 'vars': this.extendArgs({ }) - }); + this.destPath, { 'progressBar': this.progress }); } }
4462342e1f76f5c46ca3279a44ebb812f5939f08
bt/lib/events.ts
bt/lib/events.ts
/** * @class EventEmitter * @description Very basic events support with listeners. */ export class EventEmitter { private listeners : { [s:string]: Function[] } = {}; constructor(names: string[]) { names.forEach((n:string) => this.listeners[n] = []); } /** * Start listening to an event. * @metho...
/** * @class EventEmitter * @description Very basic events support with listeners. */ export class EventEmitter { private listeners : { [s:string]: Function[] } = {}; constructor(names: string[], private forwardTo: EventEmitter = null) { names.forEach((n:string) => this.listeners[n] = []); } /** * ...
Add forwarding capabilities to event emitters.
Add forwarding capabilities to event emitters.
TypeScript
mit
yourpalal/backtalk,yourpalal/backtalk
--- +++ @@ -6,7 +6,7 @@ export class EventEmitter { private listeners : { [s:string]: Function[] } = {}; - constructor(names: string[]) { + constructor(names: string[], private forwardTo: EventEmitter = null) { names.forEach((n:string) => this.listeners[n] = []); } @@ -22,11 +22,18 @@ emit(name...
30bee8eca5570ca6103701fa67941434050dd2fa
test/user-list-item-spec.ts
test/user-list-item-spec.ts
import { expect } from './support'; import { createMockStore } from './lib/mock-store'; import { Store } from '../src/lib/store'; import { User, Profile } from '../src/lib/models/api-shapes'; import { UserViewModel } from '../src/user-list-item'; const storeData: { [key: string]: User } = { jamesFranco: { id: 'j...
import { expect } from './support'; import { MockStore } from './lib/mock-store'; import { Store } from '../src/lib/store'; import { User, Profile } from '../src/lib/models/api-shapes'; import { UserViewModel } from '../src/user-list-item'; const users: { [key: string]: User } = { jamesFranco: { id: 'jamesFranco...
Fix the UserViewModel spec afterward.
Fix the UserViewModel spec afterward.
TypeScript
bsd-3-clause
paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline
--- +++ @@ -1,10 +1,10 @@ import { expect } from './support'; -import { createMockStore } from './lib/mock-store'; +import { MockStore } from './lib/mock-store'; import { Store } from '../src/lib/store'; import { User, Profile } from '../src/lib/models/api-shapes'; import { UserViewModel } from '../src/user-list-...
18c6976fbb5b378aa15a99a2b8f753ec6250ff3b
openwhisk/compiler/src/actions.ts
openwhisk/compiler/src/actions.ts
export const config = () => { const path = require('path') const qcertDir = path.resolve(__dirname, '..', '..', '..', '..') const deployConfig = { packages: { qcert: { actions: { qcert: { location: path.resolve(qcertDir, 'bin', 'qcertJS.js'), annotations: { ...
export const config = () => { const path = require('path') const qcertDir = path.resolve(__dirname, '..', '..', '..', '..') const deployConfig = { packages: { qcert: { actions: { qcertCompile: { location: path.resolve(qcertDir, 'bin', 'qcertJS.js') }, qcert: { ...
Insert support for two-action sequence.
Insert support for two-action sequence. The Java action is still deployed separately
TypeScript
apache-2.0
querycert/qcert,querycert/qcert,querycert/qcert,querycert/qcert,querycert/qcert
--- +++ @@ -8,8 +8,11 @@ packages: { qcert: { actions: { - qcert: { - location: path.resolve(qcertDir, 'bin', 'qcertJS.js'), + qcertCompile: { + location: path.resolve(qcertDir, 'bin', 'qcertJS.js') + }, + qcert: { + sequence: "qcert/preCompile...
a06262ea331d8035c269f088e964e8ad1912f9b0
src/util/index.ts
src/util/index.ts
export * from './logger'; export * from './security'; export * from './texts';
export * from './logger'; export * from './security'; export * from './texts'; export * from './events';
Add Events to the util exports
Add Events to the util exports
TypeScript
mit
ibrahimduran/node-kaptan
--- +++ @@ -1,3 +1,4 @@ export * from './logger'; export * from './security'; export * from './texts'; +export * from './events';
6e3c9a91b62fe504847eed40f92157fb7fa87069
mehuge/mehuge-events.ts
mehuge/mehuge-events.ts
module MehugeEvents { var subscribers: any = {}; var listener; /* export function sub(topic: string, handler: (data: any) => void) { var subs = subscribers[topic] = subscribers[topic] || { listeners: [] }; subs.listeners.push({ listener: handler }); // first handler for any topic? ...
/// <reference path="../cu/cu.ts" /> module MehugeEvents { var subscribers: any = {}; var listener; export function sub(topic: string, handler: (...data: any[]) => void) { var subs = subscribers[topic] = subscribers[topic] || { listeners: [] }; subs.listeners.push({ listener: handler }); ...
Update pub/sub/unsub based on actual events API
Update pub/sub/unsub based on actual events API
TypeScript
mpl-2.0
Mehuge/cu-ui-legacy,Mehuge/cu-ui-legacy,Mehuge/cu-ui-legacy,Mehuge/cu-ui-legacy,Mehuge/cu-ui-legacy
--- +++ @@ -1,23 +1,19 @@ -module MehugeEvents { +/// <reference path="../cu/cu.ts" /> +module MehugeEvents { var subscribers: any = {}; var listener; -/* - export function sub(topic: string, handler: (data: any) => void) { + + export function sub(topic: string, handler: (...data: any[]) => void) { ...
13c5bb181c4ff24620c5a38253f64e279491e1bf
src/main.ts
src/main.ts
import { HtmlDestroyer } from "./html-destroyer"; var htmlDestroyer:HtmlDestroyer = new HtmlDestroyer(); chrome.runtime.onMessage.addListener( function(request, sender, sendResponse) { if (request == "destroyH") { destroyH(); sendResponse("destroyH"); } else if (request == "destroy...
import { HtmlDestroyer } from "./html-destroyer"; var htmlDestroyer:HtmlDestroyer = new HtmlDestroyer(); chrome.runtime.onMessage.addListener( function(request, sender, sendResponse) { if (request == "destroyH") { destroyH(); sendResponse("destroyH"); } else if (request == "destroy...
Destroy Img breaks and fixes the img source
Destroy Img breaks and fixes the img source
TypeScript
mit
epiphanysearch/Html-destroyer,epiphanysearch/Html-destroyer,epiphanysearch/Html-destroyer
--- +++ @@ -11,7 +11,7 @@ } else if (request == "destroyImg") { - destroyH(); + destroyImg(); sendResponse("destroyImg"); } }); @@ -34,11 +34,28 @@ $(document).ready(function() { $("img").each(function() { var element = $(this); - ...
a0b61fcf9bd6df2de1491162b514dba8afd9803d
tst/main.ts
tst/main.ts
/// <reference path="../src/amd.ts" /> declare const global: any, require: any; const assert = require('assert'); global.require(['tst/fizz'], (fizz: any) => assert.strictEqual(fizz.buzz(), 5));
/// <reference path="../src/amd.ts" /> declare const global: any, require: any; const assert = require('assert'); // Test variants of modules emitted by tsc global.require(['tst/fizz'], (fizz: any) => assert.strictEqual(fizz.buzz(), 5)); // Test mixed sequence of inter-dependent modules global.define('a'...
Add tests covering mixed sequence of define/require
Add tests covering mixed sequence of define/require
TypeScript
mit
federico-lox/AMD.ts,federico-lox/AMD.ts
--- +++ @@ -5,4 +5,14 @@ const assert = require('assert'); +// Test variants of modules emitted by tsc global.require(['tst/fizz'], (fizz: any) => assert.strictEqual(fizz.buzz(), 5)); + +// Test mixed sequence of inter-dependent modules +global.define('a', [], () => 2) +global.require(['b', 'c', 'a'], (b: a...
7c1f198f20163bf598f30d774c0ecfc0b7f8c66e
src/util.ts
src/util.ts
import axios from 'axios'; import { createWriteStream } from 'fs'; import * as cp from 'child_process'; export async function download(from: string, to: string) { const { data } = await axios({ method: 'get', url: from, responseType:'stream', }); return new Promise((resolve, reject) => { data.pi...
import axios from 'axios'; import { createWriteStream } from 'fs'; import * as cp from 'child_process'; export async function download(from: string, to: string) { const { data } = await axios({ method: 'get', url: from, responseType:'stream', }); return new Promise((resolve, reject) => { const w...
Fix timing when download is really finished
Fix timing when download is really finished
TypeScript
mit
team-kke/sonoda-san
--- +++ @@ -10,9 +10,10 @@ }); return new Promise((resolve, reject) => { - data.pipe(createWriteStream(to)); - data.on('end', resolve); - data.on('error', reject); + const writable = createWriteStream(to); + data.pipe(writable); + writable.on('close', resolve); + writable.on('error', reje...
747cbbb55c52a9332ff1f57b5ca6dcbf5888217a
test/GherkinLineTest.ts
test/GherkinLineTest.ts
import * as assert from 'assert' import GherkinLine from '../src/GherkinLine' describe('GherkinLine', () => { describe('#getTableCells', () => { function getCellsText(line: string) { const gl = new GherkinLine(line, 1) return gl.getTableCells().map((span) => span.text) } it('trims white spa...
import * as assert from 'assert' import GherkinLine from '../src/GherkinLine' describe('GherkinLine', () => { describe('#getTags', () => { function getTags(line: string) { const gl = new GherkinLine(line, 1) return gl.getTags().map((span) => span.text) } it('allows any non-space characters ...
Add a couple of unit tests to verify that tags work with any non-space character
Add a couple of unit tests to verify that tags work with any non-space character
TypeScript
mit
cucumber/gherkin-javascript,cucumber/gherkin-javascript
--- +++ @@ -2,6 +2,19 @@ import GherkinLine from '../src/GherkinLine' describe('GherkinLine', () => { + describe('#getTags', () => { + function getTags(line: string) { + const gl = new GherkinLine(line, 1) + + return gl.getTags().map((span) => span.text) + } + + it('allows any non-space charac...
cbb5a7829508fb202873a99ac263101111c74e5a
src/app/core/core.module.spec.ts
src/app/core/core.module.spec.ts
import { TestBed } from '@angular/core/testing'; import { CoreModule } from './core.module'; describe('CoreModule', () => { beforeEach(() => { TestBed.configureTestingModule({ imports: [ CoreModule, ], }); }); it('throws an error if imported more than once', (done) => { try { ...
import { TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { CoreModule } from './core.module'; describe('CoreModule', () => { beforeEach(() => { TestBed.configureTestingModule({ imports: [ CoreModule, RouterTestingModule, ]...
Fix test setup for CoreModule
Fix test setup for CoreModule It turns out that double-import rejection was not tested because TestBed was missing the Router provider (RouterTestingModule). With this change, the import test works as intended (and we now also check the error message).
TypeScript
bsd-3-clause
cumulous/web,cumulous/web,cumulous/web,cumulous/web
--- +++ @@ -1,4 +1,5 @@ import { TestBed } from '@angular/core/testing'; +import { RouterTestingModule } from '@angular/router/testing'; import { CoreModule } from './core.module'; @@ -7,6 +8,7 @@ TestBed.configureTestingModule({ imports: [ CoreModule, + RouterTestingModule, ]...
30d9b9cdbcd0b474e3953c3fed6b8e247c34ce34
scripts/Actions/Like.ts
scripts/Actions/Like.ts
import { AnimeNotifier } from "../AnimeNotifier" // like export function like(arn: AnimeNotifier, element: HTMLElement) { let apiEndpoint = arn.findAPIEndpoint(element) arn.post(apiEndpoint + "/like", null) .then(() => arn.reloadContent()) .catch(err => arn.statusMessage.showError(err)) } // unlike export functi...
import { AnimeNotifier } from "../AnimeNotifier" // like export async function like(arn: AnimeNotifier, element: HTMLElement) { arn.statusMessage.showInfo("Liked!") let apiEndpoint = arn.findAPIEndpoint(element) await arn.post(apiEndpoint + "/like", null).catch(err => arn.statusMessage.showError(err)) arn.reloadC...
Add status message when liking stuff
Add status message when liking stuff
TypeScript
mit
animenotifier/notify.moe,animenotifier/notify.moe,animenotifier/notify.moe
--- +++ @@ -1,19 +1,19 @@ import { AnimeNotifier } from "../AnimeNotifier" // like -export function like(arn: AnimeNotifier, element: HTMLElement) { +export async function like(arn: AnimeNotifier, element: HTMLElement) { + arn.statusMessage.showInfo("Liked!") + let apiEndpoint = arn.findAPIEndpoint(element) - -...
3f66453b33f58337757f13d8b2f090986483bf5f
src/maas.ts
src/maas.ts
import * as express from "express"; import * as bodyParser from "body-parser"; import * as http from "http"; import * as helmet from "helmet"; import ConfigurationChooser from "./config/index"; import Configuration from "./config/configuration"; import * as routes from "./routes/routerFacade"; // Initializing app let ...
import * as express from "express"; import * as bodyParser from "body-parser"; import * as http from "http"; import * as helmet from "helmet"; import ConfigurationChooser from "./config/index"; import Configuration from "./config/configuration"; import * as routes from "./routes/routerFacade"; // Initializing app let ...
Add static web with express.static
Add static web with express.static
TypeScript
mit
BugBusterSWE/MaaS,BugBusterSWE/MaaS,BugBusterSWE/MaaS,BugBusterSWE/MaaS
--- +++ @@ -29,6 +29,8 @@ // Routes' require /* app.use("/api", routes); */ +app.use('/static/*customizable*/', express.static('/*root path see http://expressjs.com/it/starter/static-files.html*/')); // FIXME + // Starting the server app.set("port", process.env.PORT || 3000); let server : http.Server = app.lis...
69585795b36106447b68749b567b55241e8f2a34
src/impl/프레시안.ts
src/impl/프레시안.ts
import * as $ from 'jquery'; import { clearStyles } from '../util'; import { Article } from 'index'; export const cleanup = () => { $('#scrollDiv, body>img').remove(); } export function parse(): Article { return { title: $('.text-info .title').text().trim(), subtitle: $('.hboxsubtitle').text()...
import * as $ from 'jquery'; import { clearStyles } from '../util'; import { Article } from 'index'; export const cleanup = () => { $('#scrollDiv, body>img, body>div:not([id]), html>iframe, body>iframe, body>script, #fb-root, #sliderAdScript').remove(); } export function parse(): Article { return { ti...
Clean more elements on pressian.com
Clean more elements on pressian.com
TypeScript
mit
disjukr/just-news,disjukr/just-news,disjukr/jews,disjukr/jews,disjukr/just-news
--- +++ @@ -3,7 +3,7 @@ import { Article } from 'index'; export const cleanup = () => { - $('#scrollDiv, body>img').remove(); + $('#scrollDiv, body>img, body>div:not([id]), html>iframe, body>iframe, body>script, #fb-root, #sliderAdScript').remove(); } export function parse(): Article {
94d01d95ae002af454f31c4fefc895fb93505cd1
src/index.tsx
src/index.tsx
/** @license * Kifu for JS * Copyright (c) 2014 na2hiro (https://github.com/na2hiro) * This software is released under the MIT License. * http://opensource.org/licenses/mit-license.php */ import * as mobx from "mobx"; import * as React from "react"; import { render } from "react-dom"; import Kifu from "./Kifu"; im...
/** @license * Kifu for JS * Copyright (c) 2014 na2hiro (https://github.com/na2hiro) * This software is released under the MIT License. * http://opensource.org/licenses/mit-license.php */ import * as React from "react"; import { render } from "react-dom"; import Kifu from "./Kifu"; import KifuStore from "./stores/...
Fix export to pass tests
Fix export to pass tests
TypeScript
mit
na2hiro/Kifu-for-JS,na2hiro/Kifu-for-JS,na2hiro/Kifu-for-JS
--- +++ @@ -4,13 +4,13 @@ * This software is released under the MIT License. * http://opensource.org/licenses/mit-license.php */ -import * as mobx from "mobx"; import * as React from "react"; import { render } from "react-dom"; import Kifu from "./Kifu"; import KifuStore from "./stores/KifuStore"; import {...
5f7b0a93e2fabe1f391d1b42f1dd4778214932dc
src/Diploms.WebUI/ClientApp/app/app.shared.module.ts
src/Diploms.WebUI/ClientApp/app/app.shared.module.ts
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { RouterModule } from '@angular/router'; import { AppComponent } from './components/app/app.component'; import { NavMenuComponent } ...
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { RouterModule } from '@angular/router'; import { AppComponent } from './components/app/app.component'; import { N...
Use DepartmentsModule in the application
Use DepartmentsModule in the application
TypeScript
mit
denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs
--- +++ @@ -1,4 +1,4 @@ -import { NgModule } from '@angular/core'; +import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; @@ -11,6 +11,7 @@ import { CounterComponent } fr...
f98eb0eca0dd087afc124f50a6ca4a2e91c4941e
templates/app/src/_name.config.ts
templates/app/src/_name.config.ts
import { Inject } from "./decorators/decorators"; @Inject("$stateProvider", "$urlRouterProvider") export class <%= pAppName %>Config { constructor(stateProvider: ng.ui.IStateProvider, urlRouterProvider: ng.ui.IUrlRouterProvider) { stateProvider .state("<%= appName %>", { url: "/...
import { Inject } from "./decorators/decorators"; @Inject("$stateProvider", "$urlRouterProvider") export class <%= pAppName %>Config { constructor(stateProvider: ng.ui.IStateProvider, urlRouterProvider: ng.ui.IUrlRouterProvider) { stateProvider .state("<%= appName %>", { abstrac...
Replace url for an abstract view
Replace url for an abstract view
TypeScript
mit
Kurtz1993/ngts-cli,Kurtz1993/ngts-cli,Kurtz1993/ngts-cli
--- +++ @@ -5,7 +5,7 @@ constructor(stateProvider: ng.ui.IStateProvider, urlRouterProvider: ng.ui.IUrlRouterProvider) { stateProvider .state("<%= appName %>", { - url: "/", + abstract: true, templateUrl: "<%= hAppName %>.tpl.html" ...