This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export namespace TsIonRangeSlider | |
{ | |
let pluginCount = 0; | |
export interface ISlider { | |
destroy(): void; | |
reset(): void; | |
update(option: IonRangeSliderOptions): void; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// usage: AutoMapper.map<UserProfile>(user, user.profile); | |
export class AutoMapper { | |
static map<TSource>(sourceObj: TSource, ...args: any[]): void { | |
const initializers = args.filter(Boolean) | |
if (!initializers?.length) { | |
return; | |
} | |
const sourceObjectProps = Object.getOwnPropertyNames(sourceObj); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2019-02-26T07:00:56.825Z","extensionVersion":"v3.2.5"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
namespace MyBot.Api.Bot | |
{ | |
public class GlobalState : Dictionary<string, object> | |
{ | |
private const string UpdateProfileKey = "UpdateProfile"; | |
private const string CreateProjectKey = "CreateProject"; | |
public GlobalState() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
render() : JSX.Element { | |
const { isLoading, className, children, actions = [], filters = []} = this.props; | |
const classNames = ['panel-element', className].filter(Boolean).join(' '); | |
return ( | |
<ReflexElement className={classNames} > | |
<div className="panel-body"> | |
{isLoading && <Loader active inline /> } | |
{!isLoading && children } | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getRules (query = '') { | |
const getValueRule = (values = []) => (val) => !values.length ? undefined : values.indexOf(val) > -1; | |
const getIntervalRule = (range = []) => (val) => !range.length ? undefined : val >= range[0] && val <= range[1]; | |
const rules = []; | |
if (!arr.length) { | |
return rules; | |
} | |
// Split query by common and extract rules units | |
const values = query.split(',').filter(Boolean); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { root, branch } from 'baobab-react/higher-order'; | |
// Here is the problem. It does not return the data stored in the cursor ['user', 'model'] but undefined instead | |
// if I have only user: ['user'], it returns the user branch { user: { model: { ... }}, but then I have to deconstruct | |
// const { model: user = {} ) = this.props.user to get the actual data | |
@branch({ | |
user: ['user', 'model'], | |
}) | |
class App extends BaseComponent<Props, State> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('app.core') | |
.config(configure); | |
/* @ngInject */ | |
function configure(routerHelperProvider, SETTINGS) { | |
routerHelperProvider.configure({docTitle: SETTINGS.title + ': '}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
angular | |
.module('app.layout') | |
.run(appRun); | |
//appRun.$inject = ['routerHelper', 'RealTime', 'Chat']; | |
/* @ngInject */ | |
function appRun(routerHelper) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.Http; | |
using Microsoft.AspNet.SignalR; | |
using Omu.ValueInjecter; | |
using SimpleInjector; | |
using TechsApp.Core.Extensions.Membership; | |
using TechsApp.Core.Interfaces.Data; |