This file contains 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 {Cast} from '../helpers/cast'; | |
import { | |
QnAnswer, | |
QnHelper, | |
QnOption, | |
QnQuestion, | |
QnTask, | |
QnTest | |
} from '../models/qn.model'; | |
import { |
This file contains 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 { | |
QnAnswer, | |
QnAnswerContainer, | |
QnEntities, | |
QnHelper, | |
QnLocaleStorage, | |
QnOption, | |
QnQuestion, | |
QnStorageModel, | |
QnTask, |
This file contains 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
$(".input").inputmask({ | |
regex: "([1-9]|10)", | |
colorMask: true, | |
onBeforeWrite: function (event, opts) { | |
if (event.type !== 'keypress') { | |
return; | |
} | |
var $targetInput = $(event.target); | |
var pastedValue = $targetInput.val(); |
This file contains 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
var $input = $('.input'); | |
$input.inputmask({ | |
regex: '([1-9]|10|11)', | |
colorMask: true | |
}); | |
$input.on('blur', function (event) { | |
var $targetInput = $(event.target); | |
var pastedValue = $targetInput.val(); |
This file contains 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 { Sort } from '@angular/material'; | |
import { Action } from '@ngrx/store'; | |
import { State } from './table.state'; | |
export enum TableActionTypes { | |
LoadMoreTableModels = '[Table] Load More Table Models', | |
ResetTable = '[Table] Reset Table', | |
SortColumn = '[Table] Sort Column', | |
UpdateTableModels = '[Table] Update Table Models', |
This file contains 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 { TableActions, TableActionTypes } from './table.actions'; | |
import { initialState, State } from './table.state'; | |
export * from './table.state'; | |
export function reducer(state = initialState, action: TableActions): State { | |
switch (action.type) { | |
case TableActionTypes.LoadMoreTableModels: | |
return { ...state, loadedModelsCount: state.loadedModelsCount + action.payload.count }; |
This file contains 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 { Sort } from '@angular/material'; | |
import { Action } from '@ngrx/store'; | |
import { State } from './table.state'; | |
export enum TableActionTypes { | |
LoadMoreTableModels = '[Table] Load More Table Models', | |
ResetTable = '[Table] Reset Table', | |
SortColumn = '[Table] Sort Column', | |
UpdateTableModels = '[Table] Update Table Models', |
This file contains 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 { Component, OnInit } from '@angular/core'; | |
import { select, Store } from '@ngrx/store'; | |
import { Observable } from 'rxjs'; | |
import { AppState } from '~/core/reducers'; | |
import { | |
Potential, | |
PotentialType, | |
sortedPotentialTypes, | |
sortedPotentialTypesForProject, |
This file contains 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 { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; | |
import { BehaviorSubject } from 'rxjs'; | |
import { DispatcherWorkload } from '~/shared/models/work-dispatcher.model'; | |
@Component({ | |
selector: 'workload-list-comp', | |
styleUrls: ['./workload-list.scss'], | |
templateUrl: './workload-list.html', | |
}) |
This file contains 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 { Injectable } from '@angular/core'; | |
import { select, Store } from '@ngrx/store'; | |
import { Observable, throwError } from 'rxjs'; | |
import { catchError, filter, map, take } from 'rxjs/operators'; | |
import { CroppingAPIService } from '~/core/cropping/cropping-api.service'; | |
import { DeadcartManagerService } from '~/core/deadcart/manager/deadcart-manager.service'; | |
import { MatcherAPIService } from '~/core/matcher/matcher-api.service'; | |
import { ScapeLambAPIService } from '~/core/scape-lamb/scape-lamb-api.service'; | |
import { selectDispatcherEntities, State as CoreState } from '~/core/store/reducers'; |
OlderNewer