repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
Tejash-7span/gourley-web | src/app/general/helpers/conditional-required.validator.ts | import { FormGroup } from '@angular/forms';
export function conditionalRequried(controlName: string, conditionalControlName: string) {
return (formGroup: FormGroup) => {
const control = formGroup.controls[controlName];
const conditionalControl = formGroup.controls[conditionalControlName];
i... |
Tejash-7span/gourley-web | src/app/general/models/constants.ts | export const PER_PAGE = 100;
export const PAGINATION_MAX_SIZE = 5;
export const QUANTITY_FORMAT = '1.0';
export const PRICE_FORMAT = '1.2-2';
export const ROUTES = {
register: '/register',
login: '/login',
dashboard: '/dashboard',
users: '/users',
parts: '/masters/parts',
workers: '/masters/work... |
Tejash-7span/gourley-web | src/app/modules/parts/parts.module.ts | import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ChartsModule } from 'ng2-charts/ng2-charts';
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
import { ButtonsModule } from 'ngx-bootstrap/buttons';
import { PartsRoutingModule } from './parts... |
Tejash-7span/gourley-web | src/app/modules/users/services/user.service.ts | import { Injectable } from '@angular/core';
import { RestService } from '../../../general/services/rest.service';
import { PagedData } from '../../../general/models/paged-data.model';
import { UserModel } from '../../../general/models/users/user.model';
@Injectable()
export class UserService {
constructor(private... |
Tejash-7span/gourley-web | src/app/general/models/login.request.ts | <gh_stars>0
import { FormGroup } from '@angular/forms';
export class LoginRequest {
userName: string;
password: string;
constructor(userName: string, password: string) {
this.userName = userName;
this.password = password;
}
public static createInstance(form: FormGroup) {
c... |
Tejash-7span/gourley-web | src/app/modules/workers/components/worker-list.component.ts | import { Component, OnInit, ViewChild } from '@angular/core';
import { WorkerService } from '../../../general/services/worker.service';
import { PER_PAGE, PAGINATION_MAX_SIZE, ROUTES } from '../../../general/models/constants';
import { SelectedPage } from '../../../general/models/paged-data.model';
import { Router, Act... |
Tejash-7span/gourley-web | src/app/modules/jobs/components/job-part-list.component.ts | <gh_stars>0
import { Component, OnInit, ViewChild, Input, ElementRef } from '@angular/core';
import { JobPartModel } from '../../../general/models/parts/job-part.model';
import { PartModel } from '../../../general/models/parts/part.model';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { qu... |
Tejash-7span/gourley-web | src/app/modules/shared/components/user-image.component.ts | <gh_stars>0
import { Component, OnInit, Input, Renderer2, ElementRef, OnChanges } from '@angular/core';
import { environment } from '../../../../environments/environment';
@Component({
selector: 'app-user-image',
templateUrl: 'user-image.component.html'
})
export class UserImageComponent implements OnChanges ... |
Tejash-7span/gourley-web | src/app/general/models/jobs/job-filter.model.ts | export class JobFilterModel {
page: number;
searchTerm = '';
active?: boolean;
invoiced?: boolean;
readyToBill?: boolean;
name: string;
startDate?: Date;
endDate?: Date;
}
|
Tejash-7span/gourley-web | src/app/general/models/users/user.model.ts | import { FormGroup } from '@angular/forms';
export class UserModel {
id = 0;
firstName = '';
lastName = '';
userName = '';
email = '';
admin = false;
workType = '';
password = '';
imageUrl = '';
public static createInstance(id: number, form: FormGroup) {
const user = ne... |
Tejash-7span/gourley-web | src/app/general/services/localstorage.service.ts | import { Injectable } from '@angular/core';
import { UserSessionModel } from '../models/user-session.model';
import { JobType } from '../models/jobtype/job-type.model';
@Injectable()
export class LocalStorageService {
private _tokenKey = 'auth_token';
private _user = 'user';
private _jobTypes = 'jobTypes';... |
Tejash-7span/gourley-web | src/app/general/helpers/number.validator.ts | <reponame>Tejash-7span/gourley-web
import { AbstractControl } from '@angular/forms';
export function priceValidator(control: AbstractControl): { [key: string]: any } | null {
const valid = /^\d{1,8}(?:[.]\d{1,2})?$/.test(control.value);
return valid ? null : { invalidprice: { valid: false, value: control.valu... |
Tejash-7span/gourley-web | src/app/general/services/rest.service.ts | <reponame>Tejash-7span/gourley-web
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders, HttpEventType } from '@angular/common/http';
import { LocalStorageService } from './localstorage.service';
import { PagedData } from '../models/paged-data.model';
import { Router } from '@angular/router';
im... |
Tejash-7span/gourley-web | src/app/modules/users/components/create-user.component.ts | <gh_stars>0
import { Component, OnInit, ViewChild, ElementRef, AfterViewInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { FormGroup, Validators, FormBuilder } from '@angular/forms';
import { mustMatch } from '../../../general/helpers/must-match.validator';
import { UserServ... |
Tejash-7span/gourley-web | src/app/modules/users/users.module.ts | import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ChartsModule } from 'ng2-charts/ng2-charts';
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
import { ButtonsModule } from 'ngx-bootstrap/buttons';
import { UsersRoutingModule } from './users... |
Tejash-7span/gourley-web | src/app/modules/jobs/components/update-job.component.ts | <filename>src/app/modules/jobs/components/update-job.component.ts
import { Component, OnInit, ViewChild, ElementRef, AfterViewInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { FormGroup, Validators, FormBuilder } from '@angular/forms';
import { JobService } from '../service... |
Tejash-7span/gourley-web | src/app/app.component.ts | <gh_stars>0
import { Component, OnInit } from '@angular/core';
import { Event, Router, NavigationEnd, NavigationStart, NavigationCancel, NavigationError } from '@angular/router';
import { LoaderService } from './general/services/loader.service';
@Component({
// tslint:disable-next-line
selector: 'body',
template... |
Tejash-7span/gourley-web | src/app/modules/dashboard/components/dashboard.component.ts | <reponame>Tejash-7span/gourley-web
import { Component, OnInit, ViewChild, TemplateRef } from '@angular/core';
import { Router } from '@angular/router';
import { getStyle, hexToRgba } from '@coreui/coreui/dist/js/coreui-utilities';
import { CustomTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips';
import { ... |
Tejash-7span/gourley-web | src/app/general/services/toast.service.ts | <gh_stars>0
import { Injectable } from '@angular/core';
import { ToastrService, ToastrConfig, ProgressAnimationType } from 'ngx-toastr';
@Injectable()
export class ToastService {
private animationType: ProgressAnimationType = 'increasing';
private successToastOptions = {
positionClass: 'toast-top-cente... |
Tejash-7span/gourley-web | src/app/general/models/paged-data.model.ts | export class PagedData<T> {
data: T[];
page: number;
totalRecords: number;
constructor(data: T[], page: number, totalRecords: number) {
this.data = data;
this.page = page;
this.totalRecords = totalRecords;
}
}
export interface SelectedPage {
page: number;
itemsPerPa... |
Tejash-7span/gourley-web | src/app/modules/dashboard/services/dashboard.service.ts | <filename>src/app/modules/dashboard/services/dashboard.service.ts
import { Injectable } from '@angular/core';
import { RestService } from '../../../general/services/rest.service';
import { JobCalendar } from '../../../general/models/jobs/job-calendar.model';
@Injectable()
export class DashboardService {
construct... |
Tejash-7span/gourley-web | src/app/modules/jobs/services/job.service.ts | <filename>src/app/modules/jobs/services/job.service.ts
import { Injectable } from '@angular/core';
import { RestService } from '../../../general/services/rest.service';
import { PagedData } from '../../../general/models/paged-data.model';
import { JobModel } from '../../../general/models/jobs/job.model';
import { JobLi... |
Tejash-7span/gourley-web | src/app/modules/users/components/user-profile.component.ts | <reponame>Tejash-7span/gourley-web
import { Component, OnInit, ViewChild, ElementRef, AfterViewInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { FormGroup, Validators, FormBuilder } from '@angular/forms';
import { UserService } from '../services/user.service';
import { Reje... |
Tejash-7span/gourley-web | src/app/modules/jobs/jobs-routing.module.ts | import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AuthGuard } from '../../general/guards/auth.guard';
import { JobListComponent } from './components/job-list.component';
import { UpdateJobComponent } from './components/update-job.component';
import { BidJobCompon... |
Tejash-7span/gourley-web | src/app/modules/jobs/components/view-job.component.ts | <reponame>Tejash-7span/gourley-web
import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { JobService } from '../services/job.service';
import { RejectedResponse } from '../../../general/services/rest.service';
import { ROUTES, QUANTITY_FORMAT, PRICE_FORMAT ... |
Tejash-7span/gourley-web | src/app/general/components/login.component.ts | import { Component, OnInit, ElementRef } from '@angular/core';
import { AuthenticationService } from '../services/authentication.service';
import { LoginRequest } from '../models/login.request';
import { RejectedResponse } from '../services/rest.service';
import { LoginResponse } from '../models/login.response';
import... |
Tejash-7span/gourley-web | src/app/modules/status/status-routing.module.ts | <filename>src/app/modules/status/status-routing.module.ts
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AuthGuard } from '../../general/guards/auth.guard';
import { StatusListComponent } from './components/status-list.component';
import { CreateStatusComponen... |
Tejash-7span/gourley-web | src/app/modules/shared/components/pagination-details.component.ts | import { Component, OnInit, Input, OnChanges } from '@angular/core';
@Component({
selector: 'app-pagination-details',
templateUrl: 'pagination-details.component.html'
})
export class PaginationDetailsComponent implements OnChanges {
@Input()
currentPage: number;
@Input()
perPage: number;
... |
Tejash-7span/gourley-web | src/app/general/services/authentication.service.ts | import { Injectable } from '@angular/core';
import { RestService } from './rest.service';
import { LoginRequest } from '../models/login.request';
import { LoginResponse } from '../models/login.response';
import { LocalStorageService } from './localstorage.service';
import { MessageService } from './message.service';
im... |
Tejash-7span/gourley-web | src/app/modules/jobs/components/bid-job-list.component.ts | import { Component, OnInit, ViewChild } from '@angular/core';
import { JobService } from '../services/job.service';
import { PER_PAGE, PAGINATION_MAX_SIZE, ROUTES } from '../../../general/models/constants';
import { SelectedPage } from '../../../general/models/paged-data.model';
import { Router, ActivatedRoute } from '... |
Tejash-7span/gourley-web | src/app/app.module.ts | import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { LocationStrategy, HashLocationStrategy } from '@angula... |
Tejash-7span/gourley-web | src/app/general/models/login.response.ts | import { UserModel } from './users/user.model';
export class LoginResponse {
user: UserModel;
token: string;
}
|
Tejash-7span/gourley-web | src/app/general/models/jobs/job-extra-columns.model.ts | <reponame>Tejash-7span/gourley-web
import { JobTypeEnum } from '../../enums/worktype.enum';
export class JobExtraColumnsModel {
constructor(column1: Column, column2: Column, column3: Column, column4: Column, column5: Column) {
this.column1 = column1;
this.column2 = column2;
this.column3 = c... |
Tejash-7span/gourley-web | src/app/modules/users/components/change-password.component.ts | import { Component, OnInit, ViewChild, ElementRef, AfterViewInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { FormGroup, Validators, FormBuilder } from '@angular/forms';
import { mustMatch } from '../../../general/helpers/must-match.validator';
import { UserService } from '... |
Tejash-7span/gourley-web | src/app/modules/status/components/status-list.component.ts | import { Component, OnInit, ViewChild } from '@angular/core';
import { StatusService } from '../../../general/services/status.service';
import { PER_PAGE, PAGINATION_MAX_SIZE } from '../../../general/models/constants';
import { SelectedPage } from '../../../general/models/paged-data.model';
import { Router } from '@ang... |
Tejash-7span/gourley-web | src/app/general/models/status/status.model.ts | <gh_stars>0
import { FormGroup } from '@angular/forms';
export class StatusModel {
id = 0;
name = '';
public static createInstance(id: number, form: FormGroup) {
const part = new StatusModel();
part.id = id;
part.name = form.value['name'];
return part;
}
}
|
Tejash-7span/gourley-web | src/environments/environment.prod.ts | <reponame>Tejash-7span/gourley-web
const config = require('../assets/config.prod.json');
export const environment = {
production: true,
apiUrl: config.apiUrl// 'http://webapp.gourleyplastering.com:5001'
};
|
Tejash-7span/gourley-web | src/app/general/services/message.service.ts | import { Subject, Observable } from 'rxjs';
import { Injectable } from '@angular/core';
@Injectable()
export class MessageService {
private logoutSubject = new Subject<void>();
private imageUploadSubject = new Subject<void>();
public sendLogoutMessage(): void {
this.logoutSubject.next();
}
... |
Tejash-7span/gourley-web | src/app/modules/jobs/components/job-list.component.ts | <gh_stars>0
import { Component, OnInit, ViewChild } from '@angular/core';
import { JobService } from '../services/job.service';
import { PER_PAGE, PAGINATION_MAX_SIZE, ROUTES } from '../../../general/models/constants';
import { SelectedPage } from '../../../general/models/paged-data.model';
import { Router, ActivatedRo... |
Tejash-7span/gourley-web | src/environments/environment.ts | <reponame>Tejash-7span/gourley-web<filename>src/environments/environment.ts<gh_stars>0
const config = require('../assets/config.json');
export const environment = {
production: false,
apiUrl: 'http://webapp.gourleyplastering.com:5001' //config.apiUrl
};
|
Tejash-7span/gourley-web | src/app/modules/shared/components/confirm-modal.component.ts | import { Component, OnInit, Input, Output, ViewChild, EventEmitter, ElementRef } from '@angular/core';
import { ModalDirective } from 'ngx-bootstrap/modal';
@Component({
selector: 'app-confirm-modal',
templateUrl: 'confirm-modal.component.html'
})
export class ConfirmModalComponent {
@Input()
type = '... |
Tejash-7span/gourley-web | src/app/modules/status/components/update-status.component.ts | import { Component, OnInit, ViewChild, ElementRef, AfterViewInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { FormGroup, Validators, FormBuilder } from '@angular/forms';
import { StatusService } from '../../../general/services/status.service';
import { RejectedResponse } fr... |
Tejash-7span/gourley-web | src/app/containers/default-layout/default-layout.component.ts | import { Component, OnDestroy, Inject, OnInit } from '@angular/core';
import { DOCUMENT } from '@angular/common';
import { navItems } from '../../_nav';
import { MessageService } from '../../general/services/message.service';
import { LocalStorageService } from '../../general/services/localstorage.service';
import { Su... |
Tejash-7span/gourley-web | src/app/modules/jobs/components/advanced-search.component.ts | import { Component, OnInit, Input, Output, ViewChild, EventEmitter, ElementRef } from '@angular/core';
import { ModalDirective } from 'ngx-bootstrap/modal';
import { IMyDpOptions, IMyDate, IMyDateModel } from 'mydatepicker';
@Component({
selector: 'app-advanced-search',
templateUrl: 'advanced-search.component.... |
2shar007/angular-project-one | src/app/course/course.component.ts | import {AfterViewInit, Component, ElementRef, OnInit, ViewChild} from '@angular/core';
import {ActivatedRoute} from "@angular/router";
import { MatPaginator } from "@angular/material/paginator";
import { MatSort } from "@angular/material/sort";
import { MatTableDataSource } from "@angular/material/table";
import {Cours... |
2shar007/angular-project-one | src/app/tree-demo/tree-demo.component.ts | <filename>src/app/tree-demo/tree-demo.component.ts<gh_stars>0
import {Component, OnInit} from '@angular/core';
import {MatTreeFlatDataSource, MatTreeFlattener, MatTreeNestedDataSource} from '@angular/material/tree';
import {FlatTreeControl, NestedTreeControl} from '@angular/cdk/tree';
interface CourseNode {
name: st... |
2shar007/angular-project-one | src/app/courses-card-list/courses-card-list.component.ts | <filename>src/app/courses-card-list/courses-card-list.component.ts
import {Component, Input, OnInit, ViewEncapsulation} from '@angular/core';
import {Course} from '../model/course';
import {MatDialog, MatDialogConfig} from '@angular/material/dialog';
import {openEditCourseDialog} from '../course-dialog/course-dialog.co... |
2shar007/angular-project-one | src/app/virtual-scrolling/virtual-scrolling.component.ts | <reponame>2shar007/angular-project-one
import {Component, OnInit} from '@angular/core';
@Component({
selector: "virtual-scrolling",
templateUrl: 'virtual-scrolling.component.html',
styleUrls: ["virtual-scrolling.component.scss"]
})
export class VirtualScrollingComponent implements OnInit {
items = Array.from... |
maratbakirov/2013_12_OfficeBlogTypeScriptSample | TestPeoplePicker/TestPeoplePicker/Scripts/App1.ts | module App1 {
m$.ready(() => {
loadPeoplePicker('peoplePickerDiv');
});
//Load the people picker
function loadPeoplePicker(peoplePickerElementId: string) {
var schema: ISPClientPeoplePickerSchema = {
PrincipalAccountType: 'User,DL,SecGroup,SPGroup',
SearchPrinci... |
maratbakirov/2013_12_OfficeBlogTypeScriptSample | TestPeoplePicker/TestPeoplePicker/Scripts/App.ts | <reponame>maratbakirov/2013_12_OfficeBlogTypeScriptSample
///<reference path="typings/sharepoint/SharePoint.d.ts" />
///<reference path="typings/jquery/jquery.d.ts" />
'use strict';
var context = SP.ClientContext.get_current();
var user = context.get_web().get_currentUser();
// This code runs when the DOM is ready an... |
WayenWeng/pxt-grove-two-led-matrix | main.ts | <filename>main.ts<gh_stars>0
/**
*
*/
enum GROVE_TWO_LED_MATRIX {
DEF_I2C_ADDR = 0x07, // The device i2c address in default
VID = 0x2886, // Vender ID of the device
PID = 0x8002 // Product ID of the device
}
/**
*
*/
enum GROVE_TWO_LED_MATRIX_CMD_TYPE {
I2C_CMD_GET_DEV_ID = 0x0... |
WayenWeng/pxt-grove-two-led-matrix | test.ts | {
let matrix = Grove_Two_Led_Matrix.create(GROVE_TWO_LED_MATRIX.DEF_I2C_ADDR);
matrix.turnOnLedFlash();
basic.pause(3000);
matrix.turnOffLedFlash();
while(true)
{
// matrix.displayBar(1, 1000);
// basic.pause(1000);
// matrix.displayBar(18, 1000);
... |
apulliam/WordAddinAngularTypescript | OfficeAppWeb/app/app.module.ts | /// <reference path="../typings/tsd.d.ts" />
(():void => {
angular
.module("app", [
"ngRoute"
]);
})(); |
apulliam/WordAddinAngularTypescript | OfficeAppWeb/app/app.config.ts | <reponame>apulliam/WordAddinAngularTypescript
/// <reference path="../typings/tsd.d.ts" />
((): void => {
config.$inject = ["$routeProvider"];
function config($routeProvider: ng.route.IRouteProvider) {
// Configure the routes.
$routeProvider
.when("/home", {
templateUrl: "/... |
pankajyadav1992/PDMS_Angular | src/app/routes/drilling/AnnualDrilling/annualdrilling.component.ts | <filename>src/app/routes/drilling/AnnualDrilling/annualdrilling.component.ts
import { Component, OnInit, ViewChild } from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { FormlyFieldConfig } from '@ngx-formly/core';
import { Router, ActivatedRoute } from '@angular/router';
... |
pankajyadav1992/PDMS_Angular | src/app/routes/drilling/RigCount/rigcount.component.ts | <reponame>pankajyadav1992/PDMS_Angular
import { Component, OnInit, ViewChild } from '@angular/core';
import { FormGroup, FormBuilder, Validators} from '@angular/forms';
import { FormlyFieldConfig } from '@ngx-formly/core';
import { Router, ActivatedRoute } from '@angular/router';
import { ToastrService } from 'ngx-toas... |
pankajyadav1992/PDMS_Angular | src/app/routes/drilling/DPR/dpr.component.ts | <reponame>pankajyadav1992/PDMS_Angular
import { Component, OnInit, ViewChild } from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { FormlyFieldConfig } from '@ngx-formly/core';
import { Router, ActivatedRoute } from '@angular/router';
import { ToastrService } from 'ngx-toa... |
pankajyadav1992/PDMS_Angular | src/app/routes/drilling/WellWise/WellWiseExcel/wellwiseexcel.component.ts |
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { FormlyFieldConfig } from '@ngx-formly/core';
import { Router, ActivatedRoute } from '@angular/router';
import { ToastrService } from 'ngx-toastr';
import { MonthMaster... |
pankajyadav1992/PDMS_Angular | src/app/routes/drilling/drilling-routing.module.ts | <reponame>pankajyadav1992/PDMS_Angular
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { RigCountComponent } from './rigcount/rigcount.component';
import { AnnualDrillingComponent } from './annualdrilling/annualdrilling.component';
import { DPRComponent } from '... |
pankajyadav1992/PDMS_Angular | src/app/routes/logindashboard/logindashboard.component.ts | <gh_stars>0
import { Component, OnInit, AfterViewInit, OnDestroy, ChangeDetectionStrategy, ChangeDetectorRef, NgZone,} from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { DashboardService } from '../dashboard/dashboard.srevice';
@Component({
selector: 'app-logindashboard',... |
pankajyadav1992/PDMS_Angular | src/app/routes/drilling/CumulativeDrilling/cumulativedrilling.component.ts | import { Component, OnInit, ViewChild } from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { FormlyFieldConfig } from '@ngx-formly/core';
import { Router, ActivatedRoute } from '@angular/router';
import { ToastrService } from 'ngx-toastr';
import { MonthMaster, YearMaster,... |
pankajyadav1992/PDMS_Angular | src/app/routes/drilling/drilling.module.ts | import { NgModule } from '@angular/core';
import { SharedModule } from '@shared/shared.module';
import { DrilingRoutingModule } from './drilling-routing.module';
import { RigCountComponent } from './rigcount/rigcount.component';
import { AnnualDrillingComponent } from './annualdrilling/annualdrilling.component';
impor... |
pankajyadav1992/PDMS_Angular | src/app/routes/drilling/RigWisePerformance/rigwiseperformance.component.ts | <filename>src/app/routes/drilling/RigWisePerformance/rigwiseperformance.component.ts<gh_stars>0
import { Component, OnInit, ViewChild } from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { FormlyFieldConfig } from '@ngx-formly/core';
import { Router, ActivatedRoute } from ... |
pankajyadav1992/PDMS_Angular | src/app/routes/drilling/WellWise/wellwise.component.ts | <filename>src/app/routes/drilling/WellWise/wellwise.component.ts
import { Component, OnInit, ViewChild } from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { FormlyFieldConfig } from '@ngx-formly/core';
import { Router, ActivatedRoute } from '@angular/router';
import { Toa... |
pankajyadav1992/PDMS_Angular | src/app/routes/DrillingTable/DrillingClass.ts | <gh_stars>0
export interface MonthMaster
{
Month_Id: number;
Month_Name: string;
}
export interface YearMaster {
Id: number;
Year: string;
}
export interface OperationalArea {
Area_Id: number;
Area_Name: string;
}
export interface WellCatgory {
Well_Category_Id: number;
Well_Category_Name: string... |
pankajyadav1992/PDMS_Angular | src/app/routes/DrillingTable/DrillingServices.ts | <reponame>pankajyadav1992/PDMS_Angular
import { HttpClient, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpHeaders, HttpParams } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { HttpResponse } from '@angular/common/http';
import { ResponseC... |
msaglJS/msagl-js | src/routing/MultiEdgeRouter.ts | /*
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Microsoft.Msagl.Core.DataStructures;
using Microsoft.Msagl.Core.Geometry;
using Microsoft.Msagl.Core.Geometry.Curves;
using Microsoft.Msagl.Core.Layout;
using Microsoft.Msagl.Core.Routing;
using Microsoft.Msagl.Routin... |
msaglJS/msagl-js | src/structs/SymmetricTuple.ts | import {String} from 'typescript-string-operations'
export class SymmetricTuple<T> {
A: T
B: T
GetHashCode(): number {
throw new Error('not implemented')
//return (this.A.GetHashCode() | this.B.GetHashCode());
// The operator should be an XOR ^ instead of an OR, but not available in CodeDOM
// ... |
msaglJS/msagl-js | src/routing/spline/coneSpanner/ObstacleSide.ts | <reponame>msaglJS/msagl-js
import {Point} from '../../../math/geometry/point'
import {Polyline} from '../../../math/geometry/polyline'
import {PolylinePoint} from '../../../math/geometry/polylinePoint'
import {SegmentBase} from '../../visibility/SegmentBase'
export abstract class ObstacleSide extends SegmentBase {
S... |
msaglJS/msagl-js | src/routing/spline/bundling/StationEdgeInfo.ts | // using System.Collections.Generic;
// using Microsoft.Msagl.Core.Geometry;
// using Microsoft.Msagl.Core.Geometry.Curves;
// namespace Microsoft.Msagl.Routing.Spline.Bundling {
// internal class StationEdgeInfo {
// internal StationEdgeInfo(Point iPos, Point jPos) {
// var dir = jPos - iPos;... |
msaglJS/msagl-js | src/routing/spline/coneSpanner/ConeSpannerForPortLocations.ts | <filename>src/routing/spline/coneSpanner/ConeSpannerForPortLocations.ts
// using System;
// using System.Collections.Generic;
// using Microsoft.Msagl.Core;
// using Microsoft.Msagl.Core.Geometry;
// using Microsoft.Msagl.Core.Geometry.Curves;
// using Microsoft.Msagl.Routing.Visibility;
// using System.Linq;
// names... |
msaglJS/msagl-js | src/structs/label.ts | import {Entity} from './entity'
export class Label extends Entity {
text: string
constructor(text: string) {
super()
this.text = text
}
toString() {
return this.text
}
}
|
msaglJS/msagl-js | test/layout/GTreeOverlapRemoval/MstOnDelaunayTriangulation.spec.ts | import {from} from 'linq-to-typescript'
import {Point} from '../../../src'
import {MstOnDelaunayTriangulation} from '../../../src/layout/GTreeOverlapRemoval/MstOnDelaunayTriangulation'
import {LineSegment} from '../../../src/math/geometry'
import {DebugCurve} from '../../../src/math/geometry/debugCurve'
import {Cdt} fr... |
msaglJS/msagl-js | src/layout/layered/LayerArrays.ts | // import {Assert} from '../../utils/assert'
import {copyTo} from '../../utils/copy'
export class LayerArrays {
y: number[]
verticesToX: number[]
layers: number[][]
constructor(verticesToLayers: number[]) {
this.initialize(verticesToLayers)
}
initialize(verticesToLayers: number[]) {
this.y = ve... |
msaglJS/msagl-js | src/routing/rectilinear/BasicObstacleSide.ts | // BasicObstacleSide is base class for an obstacle side that is to the low or high end of the
// scanline-parallel coordinate, and knows which direction to traverse to find the endVertex.
// This is different from RightObstacleSide or LeftObstacleSide, where the class itself is the
// determinant of traversal direc... |
msaglJS/msagl-js | test/utils/testUtils.ts | import {from} from 'linq-to-typescript'
import {StringBuilder} from 'typescript-string-operations'
import {
GeomEdge,
Point,
interpolateICurve,
MdsLayoutSettings,
layoutGraph,
GeomGraph,
ICurve,
CurveFactory,
Rectangle,
GeomNode,
GeomLabel,
Graph,
} from '../../src'
import {SvgDebugWriter} from ... |
msaglJS/msagl-js | test/utils/PointMap.spec.ts | import {PointMap} from '../../src/utils/PointMap'
test('PointMap', () => {
const m = new PointMap<number>()
m.setxy(0, 0, 0)
m.setxy(1.3, 1, 2)
m.setxy(2, 2, 4)
m.setxy(2, 1.2, 3)
const p = Array.from(m.keys())
expect(p.length).toBe(4)
expect(p[0].y < 3).toBe(true)
const kv = Array.from(m.keyValues(... |
msaglJS/msagl-js | src/layout/mds/PivotMDS.ts | import {Edge} from '../../structs/edge'
import {Algorithm} from '../../utils/algorithm'
// import {Assert} from '../../utils/assert'
import {CancelToken} from '../../utils/cancelToken'
import {GeomEdge} from '../core/geomEdge'
import {GeomGraph} from '../core/GeomGraph'
import {LayoutSettings} from '../layered/Sugiyama... |
msaglJS/msagl-js | examples/layout/src/app.ts | <filename>examples/layout/src/app.ts
import {
Graph,
GeomGraph,
GeomNode,
GeomEdge,
CurveFactory,
Point,
Size,
MdsLayoutSettings,
layoutGraph,
} from 'msagl-js'
import {loadDefaultGraph, loadDotFile} from './load-data'
import {dropZone} from './drag-n-drop'
import Renderer from './renderer'
const re... |
msaglJS/msagl-js | src/routing/visibility/Polygon.ts | <filename>src/routing/visibility/Polygon.ts
import {LineSegment} from '../../math/geometry/lineSegment'
import {Point, TriangleOrientation} from '../../math/geometry/point'
import {Polyline} from '../../math/geometry/polyline'
import {PolylinePoint} from '../../math/geometry/polylinePoint'
// import {Assert} from '../.... |
msaglJS/msagl-js | src/layout/layered/LayerInserter.ts | import {BasicGraph} from '../../structs/BasicGraph'
import {GeomNode} from '../core/geomNode'
import {Database} from './Database'
import {EdgePathsInserter} from './EdgePathsInserter'
import {LayerArrays} from './LayerArrays'
import {LayerEdge} from './LayerEdge'
import {PolyIntEdge} from './polyIntEdge'
import {Proper... |
msaglJS/msagl-js | src/utils/PointSet.ts | import {Point} from '../math/geometry/point'
export class PointSet {
mapOfSets: Map<number, Set<number>>
private size_ = 0
deleteP(point: Point) {
this.delete(point.x, point.y)
}
clear() {
this.mapOfSets.clear()
this.size_ = 0
}
get size(): number {
return this.size_
}
static mk(poi... |
msaglJS/msagl-js | examples/layout/src/load-data.ts | <reponame>msaglJS/msagl-js
import parseDot from 'dotparser'
import {Graph, Node} from 'msagl-js'
export async function loadDefaultGraph(): Promise<Graph> {
const resp = await fetch(
'https://gist.githubusercontent.com/mohdsanadzakirizvi/6fc325042ce110e1afc1a7124d087130/raw/ab9a310cfc2003f26131a7149950947645391e2... |
msaglJS/msagl-js | src/math/projectionSolver/Block.ts | <reponame>msaglJS/msagl-js<gh_stars>10-100
import {Stack} from 'stack-typescript'
import {String} from 'typescript-string-operations'
// import {Assert} from '../../utils/assert'
import {Constraint} from './Constraint'
import {ConstraintVector} from './ConstraintVector'
import {DfDvNode} from './DfDvNode'
import {Varia... |
msaglJS/msagl-js | drawing/color.ts | export class Color {
static fromColorKeyword(keyword: string): Color {
return Color.Black //TODO implement
}
a: number
// constructor with alpha and red, green, bluee components
constructor(a: number, r: number, g: number, b: number) {
this.a = a
this.r = r
this.g = g
this.b = b
}
/... |
msaglJS/msagl-js | examples/layout/src/layers/node-layer.ts | import {TextLayer, TextLayerProps} from '@deck.gl/layers'
import {GeomNode} from 'msagl-js'
export default class NodeLayer<
D,
P extends TextLayerProps<D> = TextLayerProps<D>
> extends TextLayer<D, P> {
getBoundingRect(node: GeomNode) {
return [-node.width / 2, -node.height / 2, node.width, node.height]
}
... |
msaglJS/msagl-js | src/routing/spline/bundling/Intersections.ts | // using System;
// using System.Collections.Generic;
// using System.Diagnostics;
// using System.Linq;
// using Microsoft.Msagl.Core.DataStructures;
// using Microsoft.Msagl.Core.Geometry;
// using Microsoft.Msagl.Core.Geometry.Curves;
// using Microsoft.Msagl.Core.Layout;
// using Microsoft.Msagl.Core.Routing;
// u... |
msaglJS/msagl-js | src/routing/rectilinear/PointComparer.ts | <reponame>msaglJS/msagl-js<gh_stars>10-100
import {CompassVector} from '../../math/geometry/compassVector'
import {Direction} from '../../math/geometry/direction'
import {GeomConstants} from '../../math/geometry/geomConstants'
import {Point} from '../../math/geometry/point'
// import {Assert} from '../../utils/assert'
... |
msaglJS/msagl-js | src/routing/rectilinear/EventQueue.ts | // Wrap the tree of events.
import {BinaryHeapWithComparer} from '../../structs/BinaryHeapWithComparer'
// import {Assert} from '../../utils/assert'
import {SweepEvent} from '../spline/coneSpanner/SweepEvent'
import {BasicReflectionEvent} from './basicReflectionEvent'
import {ScanDirection} from './ScanDirection'
ex... |
msaglJS/msagl-js | src/layout/layered/layering/NetworkSimplex.ts | <reponame>msaglJS/msagl-js
import {String} from 'typescript-string-operations'
import {LayerCalculator} from './layerCalculator'
import {LongestPathLayering} from './longestPathLayering'
import {
BasicGraphOnEdges,
mkGraphOnEdgesN,
} from '../../../structs/basicGraphOnEdges'
import {CancelToken} from '../../../util... |
msaglJS/msagl-js | drawing/drawingGraph.ts | <gh_stars>10-100
import {Graph} from '../src/structs/graph'
import {DrawingNode} from './drawingNode'
import {DrawingObject} from './drawingObject'
type GraphVisData = {
sameRanks: string[][]
minRanks: string[]
maxRanks: string[]
sourceRanks: string[]
sinkRanks: string[]
}
export class DrawingGraph extends ... |
msaglJS/msagl-js | src/routing/splineRouter.ts | <reponame>msaglJS/msagl-js<gh_stars>10-100
import {Shape} from './shape'
import {
IEnumerable,
// IGrouping,
// from,
// InvalidOperationException,
} from 'linq-to-typescript'
// import { Queue } from 'queue-typescript'
// import { GeomGraph } from '../layout/core/GeomGraph'
// import { IRectangle } from '../co... |
msaglJS/msagl-js | src/layout/core/geomLabel.ts | import {GeomObject} from './geomObject'
import {Rectangle} from './../../math/geometry/rectangle'
import {AttrContainer} from '../../structs/attrContainer'
import {Label} from '../../structs/label'
// import {Assert} from '../../utils/assert'
export class GeomLabel extends GeomObject {
constructor(boundingBox: Rectan... |
msaglJS/msagl-js | src/routing/spline/bundling/PathFixer.ts | // using System;
// using System.Collections.Generic;
// using System.Linq;
// using Microsoft.Msagl.Core.DataStructures;
// using Microsoft.Msagl.Core.Geometry;
// using Microsoft.Msagl.Core.Geometry.Curves;
// namespace Microsoft.Msagl.Routing.Spline.Bundling {
// internal class PathFixer {
// MetroGrap... |
msaglJS/msagl-js | src/routing/spline/bundling/HubRadiiCalculator.ts | // using System;
// using System.Collections.Generic;
// using System.Diagnostics;
// using System.Diagnostics.CodeAnalysis;
// using System.Linq;
// using Microsoft.Msagl.Core.DataStructures;
// using Microsoft.Msagl.Core.Geometry;
// using Microsoft.Msagl.Core.Geometry.Curves;
// using Microsoft.Msagl.Core.Layout;
//... |
msaglJS/msagl-js | src/math/geometry/convexHull.ts | <reponame>msaglJS/msagl-js
// Creates the convex hull of a set of points following "Computational Geometry, second edition" of O'Rourke
// import {Assert} from '../../utils/assert'
import {GeomConstants} from './geomConstants'
import {Point, TriangleOrientation} from './point'
import {Polyline} from './polyline'
typ... |
msaglJS/msagl-js | test/layout/mds/PivotMDS.spec.ts | <reponame>msaglJS/msagl-js
import {GeomGraph} from '../../../src'
import {GeomObject} from '../../../src/layout/core/geomObject'
import {SvgDebugWriter} from '../../utils/svgDebugWriter'
import {runMDSLayout, outputGraph} from '../../utils/testUtils'
import {sortedList} from '../sortedBySizeListOfgvFiles'
import {join}... |
msaglJS/msagl-js | src/routing/ConstrainedDelaunayTriangulation/EdgeTracer.ts | import {Point} from '../../math/geometry/point'
import {RBNode} from '../../structs/RBTree/rbNode'
import {RBTree} from '../../structs/RBTree/rbTree'
// import {Assert} from '../../utils/assert'
import {RealNumberSpan} from '../../utils/RealNumberSpan'
import {CdtEdge} from './CdtEdge'
import {CdtFrontElement} from '.... |
msaglJS/msagl-js | src/routing/spline/bundling/NodePositionsAdjuster.ts | // using System;
// using System.Collections.Generic;
// using System.Diagnostics;
// using System.Diagnostics.CodeAnalysis;
// using System.Linq;
// using Microsoft.Msagl.Core.DataStructures;
// using Microsoft.Msagl.Core.Geometry;
// using Microsoft.Msagl.Core.Geometry.Curves;
// using Microsoft.Msagl.Core.Layout;
//... |
msaglJS/msagl-js | src/routing/spline/bundling/GeneralMetroMapOrdering.ts | <reponame>msaglJS/msagl-js
// using System;
// using System.Collections.Generic;
// using System.Diagnostics;
// using Microsoft.Msagl.Core.Geometry;
// using Microsoft.Msagl.Core.Geometry.Curves;
// using Microsoft.Msagl.Core.Layout;
// using Microsoft.Msagl.DebugHelpers;
// namespace Microsoft.Msagl.Routing.Spline.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.