repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
liyiligang/mxui
web/src/base/globals.ts
<reponame>liyiligang/mxui /* * Copyright 2021 liyiligang. * * 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 ap...
ViniciusDev26/api-nest
src/auth/constants.ts
export const jwtConstants = { secret: 'gaby-eu-te-amo', };
ViniciusDev26/api-nest
src/products/entities/Product.ts
import { User } from 'src/users/entities/User'; import { Column, Entity, ManyToOne, PrimaryColumn } from 'typeorm'; import { v4 as uuidV4 } from 'uuid'; @Entity('products') class Product { @PrimaryColumn() id: string; @Column() name: string; @ManyToOne(() => User, (user) => user.products) user: User; ...
ViniciusDev26/api-nest
src/products/products.service.ts
import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { IPayload } from 'src/auth/dto/IPayload'; import { UsersService } from 'src/users/users.service'; import { Repository } from 'typeorm'; import { ICreateAndUpdateProduct } from './dtos/ICreateAndUpdateProduct'; impor...
ViniciusDev26/api-nest
src/products/dtos/ICreateAndUpdateProduct.ts
<reponame>ViniciusDev26/api-nest interface ICreateAndUpdateProduct { name: string; } export { ICreateAndUpdateProduct };
ViniciusDev26/api-nest
src/auth/helpers/encryptFunctions.ts
<reponame>ViniciusDev26/api-nest import { compareSync, hashSync } from 'bcrypt'; export function encryptPassword(password: string): string { return hashSync(password, 10); } export function comparePassword(password: string, hash: string): boolean { return compareSync(password, hash); }
ViniciusDev26/api-nest
src/auth/auth.service.ts
import { Injectable } from '@nestjs/common'; import { UsersService } from 'src/users/users.service'; import { JwtService } from '@nestjs/jwt'; import { comparePassword } from './helpers/encryptFunctions'; import { User } from 'src/users/entities/User'; import { IPayload } from './dto/IPayload'; @Injectable() export cl...
ViniciusDev26/api-nest
src/users/users.controller.ts
<reponame>ViniciusDev26/api-nest<filename>src/users/users.controller.ts import { BadRequestException, Body, Controller, Post } from '@nestjs/common'; import { Public } from 'src/auth/decorators/public.decorator'; import { ICreateAndUpdateUser } from './dtos/ICreateAndUpdateUser'; import { UsersService } from './users.s...
ViniciusDev26/api-nest
src/users/users.service.ts
<gh_stars>0 import { ConflictException, Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { encryptPassword } from 'src/auth/helpers/encryptFunctions'; import { Repository } from 'typeorm'; import { ICreateAndUpdateUser } from './dtos/ICreateAndUpdateUser'; import { User } f...
ViniciusDev26/api-nest
src/products/products.controller.ts
import { Body, Controller, Get, Param, Post, Request } from '@nestjs/common'; import { ICreateAndUpdateProduct } from './dtos/ICreateAndUpdateProduct'; import { Product } from './entities/Product'; import { ProductsService } from './products.service'; @Controller('products') export class ProductsController { constru...
ViniciusDev26/api-nest
src/users/entities/User.ts
import { Product } from 'src/products/entities/Product'; import { Column, Entity, OneToMany, PrimaryColumn } from 'typeorm'; import { v4 as uuidV4 } from 'uuid'; @Entity('users') class User { @PrimaryColumn() id: string; @Column() name: string; @Column() email: string; @Column() hashPassword: string...
ViniciusDev26/api-nest
src/auth/dto/IPayload.ts
<gh_stars>0 interface IPayload { sub: string; email: string; name: string; } export { IPayload };
untangle-space/web-v2
src/components/issue.tsx
<reponame>untangle-space/web-v2<gh_stars>1-10 import React from "react" import { useStaticQuery, graphql } from "gatsby" import Image from "gatsby-image" const Issue = () => { return ( <div className="issues"> </div> ) } export default Issue
untangle-space/web-v2
src/pages/archive.tsx
import React from "react" import { Link } from "gatsby" import Layout from "../components/layout" import SEO from "../components/seo" class Archive extends React.Component { render() { const { data } = this.props const siteTitle = data.site.siteMetadata.title const posts = data.allMarkdownRemark.edges ...
untangle-space/web-v2
src/pages/sponsership.tsx
<filename>src/pages/sponsership.tsx import React from "react" import { Link } from "gatsby" import Layout from "../components/layout" import SEO from "../components/seo" class Sponsership extends React.Component { render() { const { data } = this.props const siteTitle = data.site.siteMetadata.title cons...
untangle-space/web-v2
src/pages/index.tsx
<reponame>untangle-space/web-v2 // Gatsby supports TypeScript natively! import React from "react" import { PageProps, Link, graphql } from "gatsby" import Bio from "../components/bio" import Layout from "../components/layout" import SEO from "../components/seo" type Data = { site: { siteMetadata: { titl...
lushu/gaxios
test/test.retry.ts
// Copyright 2018, Google, LLC. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
Evgeniy-Polyak/CSharp.HelperPlus
src/filename-fixer.ts
<filename>src/filename-fixer.ts import * as vscode from "vscode"; import * as os from "os"; import * as path from "path"; export class FilenameFixer { public async fix() { const document = vscode.window.activeTextEditor?.document; if (typeof document === "undefined") { return; } const regexes = [ /clas...
Evgeniy-Polyak/CSharp.HelperPlus
src/code-embed.ts
<gh_stars>0 import * as vscode from 'vscode'; const codeBlocks: CodeBlock[] = [ { name: 'try { ... } catch(Exception ex) { ... }', template: 'trycatch.txt' }, { name: 'if (...) { ... }', template: 'if.txt' } ]; export class CodeEmbed { public async embedCode() { ...
Evgeniy-Polyak/CSharp.HelperPlus
src/inject-dependency.ts
<gh_stars>0 'use strict' import * as vscode from 'vscode'; import * as path from 'path'; import * as fs from 'fs'; const ignoredDirectories = [ 'obj', 'bin', 'node_modules', '.git', '.vscode', '.vs', '.github' ]; function findCsFilesRecursively(p: string) { let csFiles: string[] = [];...
Evgeniy-Polyak/CSharp.HelperPlus
src/extension.ts
<reponame>Evgeniy-Polyak/CSharp.HelperPlus<gh_stars>0 import * as vscode from 'vscode'; import { DependencyInjector } from './inject-dependency'; import { FileCreator } from './file-creator'; import { CodeEmbed } from './code-embed'; import { NamespaceFixer } from './namespace-fixer'; import { MethodAsyncToggler } from...
Evgeniy-Polyak/CSharp.HelperPlus
src/namespace-fixer.ts
import * as vscode from 'vscode'; import * as path from 'path'; import { findCsProjFile, generateNamespace } from './utilities'; export class NamespaceFixer { public async fix() { const document = vscode.window.activeTextEditor?.document; if (typeof document === 'undefined') { return; ...
Evgeniy-Polyak/CSharp.HelperPlus
src/utilities.ts
<filename>src/utilities.ts<gh_stars>0 import * as path from 'path'; import * as fs from 'fs'; import * as os from 'os'; export function findCsProjFile(p: string) { for (let n = 0; n < 10; n++) { let pathContent = fs.readdirSync(p, { withFileTypes: true }); for (let i = 0; i < pathContent.length; i...
Evgeniy-Polyak/CSharp.HelperPlus
src/file-creator.ts
<filename>src/file-creator.ts import * as vscode from 'vscode'; import * as os from 'os'; import * as path from 'path'; import * as fs from 'fs'; const ignoredDirectories = [ 'obj', 'bin', 'node_modules', '.git', '.vscode', '.vs', '.github' ]; let _lastSelectedPath = ''; export class File...
Evgeniy-Polyak/CSharp.HelperPlus
src/method-async-toggler.ts
import * as vscode from 'vscode'; export class MethodAsyncToggler { public async toggle() { const document = vscode.window.activeTextEditor?.document; if (typeof document === 'undefined') { return; } const position = vscode.window.activeTextEditor?.selection?.active; ...
Project-Sustain/sustain-dataset-curator
src/Curate.ts
import csv = require('csv-parser'); import fs = require('fs') interface RelevantFieldCache { [key: string]: { [relevantField: string]: string | number } } type MathOperator = "TIMES" | "DIVIDE" | "ADD" | "SUBTRACT" | "EXPONATE" | null; interface OutputField { type: "copy" | "math", input: str...
Project-Sustain/sustain-dataset-curator
src/Curate.test.ts
import Curate, { ConfigInterface } from './Curate' import fs = require('fs') test('Curation single input', async () => { const config: ConfigInterface = { inputFilenames: ['./mock/tests.csv'], outputFile: './out/singleInputTestOutput.csv', joinField: "item", outputFields: { ...
Project-Sustain/sustain-dataset-curator
src/config.ts
<filename>src/config.ts<gh_stars>0 import { ConfigInterface } from "./Curate"; //treat the filenames like you are in the ROOT of the project. const config: ConfigInterface = { "inputFilenames": [ "./temp/nhgis0056_ds244_20195_2019_tract.csv" ], "outputFile": "./out/out.csv", "joinField": "GISJO...
OurCnC/react-native-calendars
index.d.ts
import * as React from 'react'; import { StyleProp, ViewStyle } from 'react-native'; interface formatters_info { i?: string; u?: string; xxx?: string; vvv?: (xdate: XDate, useutc: boolean) => string; } interface locale_detail { monthNames?: string []; monthNamesShort?: string []; dayNames...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/reviews.service.ts
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { CreateReviewRequest, ReviewResponse, UpdateReviewRequest } from '../model/api/review.model'; import { Page } from '../model/api/page.model'; import { HttpRequestService } from './http-request-services'; import { map } from 'rxjs/ope...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-additional-select/oc-additional-select.component.spec.ts
<filename>projects/angular-common-components/src/lib/form-components/oc-additional-select/oc-additional-select.component.spec.ts import { ComponentFixture, TestBed } from '@angular/core/testing'; import { OcAdditionalSelectComponent } from './oc-additional-select.component'; import { MockSelectComponent } from '@opench...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/model/api/page.model.ts
export interface Page<T> { pages: number; count: number; pageNumber: number; list: T[]; }
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/market-components/oc-image-gallery/oc-image-gallery.component.spec.ts
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcImageGalleryComponent } from './oc-image-gallery.component'; import { By } from '@angular/platform-browser'; import { SimpleChange } from '@angular/core'; import { GalleryItem } from '@openchannel/angular-common-components/src/...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/pipe/array-search.pipe.spec.ts
import { ArraySearchPipe } from './array-search.pipe'; describe('ArraySearchPipePipe', () => { it('create an instance', () => { const pipe = new ArraySearchPipe(); expect(pipe).toBeTruthy(); }); });
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/market-components/oc-app-short-info/oc-app-short-info.component.spec.ts
<filename>projects/angular-common-components/src/lib/market-components/oc-app-short-info/oc-app-short-info.component.spec.ts import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcAppShortInfoComponent } from '@openchannel/angular-common-components/src/lib/market-components'; import...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/market.service.ts
<reponame>mukesh-openchannel/angular-template-libraries import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { HttpRequestService } from './http-request-services'; import { MarketModel } from '../model/api/market.model'; import { OcApiPaths } from '../oc-ng-common-service.module'; /** ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/statistic.service.ts
import { Injectable } from '@angular/core'; import { HttpRequestService } from './http-request-services'; import { Observable } from 'rxjs'; import { OcApiPaths } from '../oc-ng-common-service.module'; import { HttpHeaders } from '@angular/common/http'; /** * Description: API service for work with statistic.<br> * ...
mukesh-openchannel/angular-template-libraries
src/label.stories.ts
import { moduleMetadata } from '@storybook/angular'; import { OcCommonLibModule, OcLabelComponent, OcTooltipLabelComponent } from '@openchannel/angular-common-components/src/public-api'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; /** List of module dependencies and component declarations. Stored as separa...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-input/oc-input.component.spec.ts
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcInputComponent } from './oc-input.component'; import { FormsModule } from '@angular/forms'; import { MockAutofocusDirective } from '@openchannel/angular-common-components/src/mock/mock'; describe('OcInputComponent', () => { ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/model/api/prerender-endpoints-config.model.ts
/** * Class for the special Netlify prerender config. Using by {@link HttpRequestsWatcherInterceptor}. * It contains the API endpoints, which should have a special processing for the search crawlers. * * `excludeAPICall: string[]` - start string of the endpoints which should not be called for the search crawler. *...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/model/api/app-form-model.ts
export interface AppFormFieldResponse { id: string; label: string; description: string; defaultValue: string; type: string; required?: any; attributes: string[]; options?: any; fields?: AppFormFieldResponse[]; placeholder: string; } /** * Used as response body for getting a for...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/frontend.service.ts
import { Injectable } from '@angular/core'; import { HttpRequestService } from './http-request-services'; import { Observable } from 'rxjs'; import { Page } from '../model/api/page.model'; import { FilterResponse, SortResponse } from '../model/components/frontend.model'; import { OcApiPaths } from '../oc-ng-common-serv...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/model/datetime.model.ts
/** Little interface for one day of the month in the {@link OcDatetimePickerComponent} */ export interface DayOfMonth { day: number; date: Date; }
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-full-image-gallery-view-modal/oc-full-image-gallery-view-modal.component.ts
<reponame>mukesh-openchannel/angular-template-libraries<filename>projects/angular-common-components/src/lib/common-components/oc-full-image-gallery-view-modal/oc-full-image-gallery-view-modal.component.ts import { Component, HostListener, Input, OnInit } from '@angular/core'; import { GalleryItem, GalleryIconsAssets } ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/pipe/camelcase.pipe.ts
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'camelcase', }) export class CamelcasePipe implements PipeTransform { transform(input: string): string { if (!input) { return ''; } else { const spacedStr = input.split(/(?=[A-Z])/).join(' '); ...
mukesh-openchannel/angular-template-libraries
src/resend-activation.stories.ts
import { moduleMetadata } from '@storybook/angular'; import { ComponentsUserActivationModel, OcCommonLibModule, OcResendActivationComponent, } from 'projects/angular-common-components/src/public-api'; import { RouterTestingModule } from '@angular/router/testing'; import { BrowserAnimationsModule } from '@an...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/cms-site-content.service.ts
<gh_stars>0 import { Observable } from 'rxjs/internal/Observable'; import { forIn, get, has } from 'lodash'; import { catchError, defaultIfEmpty, map } from 'rxjs/operators'; import { of, Subject } from 'rxjs'; /** * Abstract RXJS service for working with CMS site data.<br> * Note (Important!): After creating servic...
mukesh-openchannel/angular-template-libraries
src/chart.stories.ts
<reponame>mukesh-openchannel/angular-template-libraries<filename>src/chart.stories.ts import { moduleMetadata } from '@storybook/angular'; import { ChartLayoutTypeModel, ChartStatisticAppModel, OcChartComponent, OcCommonLibModule, } from 'projects/angular-common-components/src/public-api'; import { sum ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/model/api/developer-account.model.ts
<filename>projects/angular-common-services/src/lib/model/api/developer-account.model.ts export interface DeveloperAccount { developerId: string; name: string; email: string; customData: any; created: number; type: string; }
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/service/trim-text-utils/trim-text.service.spec.ts
import { TrimTextUtils } from './trim-text.service'; import { AppFormField, TrimFormFieldType } from '@openchannel/angular-common-components/src/lib/form-components'; import { AppTypeFieldModel } from '@openchannel/angular-common-components/src/lib/common-components'; type SimpleFieldType = { textKey: string; ...
mukesh-openchannel/angular-template-libraries
src/profile-navbar.stories.ts
<gh_stars>0 import { moduleMetadata } from '@storybook/angular'; import { OcCommonLibModule, OcProfileNavbarComponent } from '@openchannel/angular-common-components/src/public-api'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; /** List of module dependencies and component declarations. Stored as separate va...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/properties.service.ts
<reponame>mukesh-openchannel/angular-template-libraries import { Injectable } from '@angular/core'; import { HttpRequestService } from './http-request-services'; import { Observable } from 'rxjs'; import { OcHttpParams } from '../model/api/http-params-encoder-model'; import { toString } from 'lodash'; import { Page } f...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/directive/only-number.directive.ts
<filename>projects/angular-common-components/src/lib/common-components/directive/only-number.directive.ts import { Directive, HostListener, Input, ElementRef } from '@angular/core'; @Directive({ selector: '[ocOnlyNumber]', }) export class OnlyNumberDirective { @Input() decimalCount: number; private readon...
mukesh-openchannel/angular-template-libraries
src/social-links.stories.ts
import { moduleMetadata } from '@storybook/angular'; import { OcCommonLibModule, OcSocialLinksComponent } from 'projects/angular-common-components/src/lib/common-components'; const modules = { imports: [OcCommonLibModule], }; export default { title: 'App Social Links [BEM]', component: OcSocialLinksCompon...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-initials/oc-initials.component.spec.ts
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcInitialsComponent } from './oc-initials.component'; import { By } from '@angular/platform-browser'; describe('OcInitialsComponent', () => { let component: OcInitialsComponent; let fixture: ComponentFixture<OcInitialsCo...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-consent/oc-consent.component.spec.ts
<filename>projects/angular-common-components/src/lib/form-components/oc-consent/oc-consent.component.spec.ts<gh_stars>0 import { ComponentFixture, TestBed } from '@angular/core/testing'; import { OcConsentComponent } from './oc-consent.component'; import { MockCheckboxComponent } from '@openchannel/angular-common-comp...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-content-modal/oc-content-modal.component.spec.ts
<filename>projects/angular-common-components/src/lib/common-components/oc-content-modal/oc-content-modal.component.spec.ts import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { AngularSvgIconModule } from 'angular-svg-icon'; import { HttpClientTestingModule } from '@angular/common/ht...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-dynamic-field-array/oc-dynamic-field-array.component.spec.ts
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcDynamicFieldArrayComponent } from './oc-dynamic-field-array.component'; import { By } from '@angular/platform-browser'; import { FormArray, FormGroup } from '@angular/forms'; import { OcFormGenerator } from '@openchannel/angular...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-select/oc-select.component.spec.ts
<gh_stars>0 import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcSelectComponent } from './oc-select.component'; import { NgModel } from '@angular/forms'; import { CommonModule } from '@angular/common'; import { BrowserModule, By } from '@angular/platform-browser'; import { NgbDr...
mukesh-openchannel/angular-template-libraries
src/sidebar.stories.ts
<gh_stars>0 import { OcCommonLibModule, OcSidebarComponent } from '@openchannel/angular-common-components/src/lib/common-components'; import { moduleMetadata } from '@storybook/angular'; /** * List of module dependencies and component declarations. * Stored as separate var because they are shared among all stories ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-progress-bar/oc-progress-bar.component.spec.ts
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcProgressBarComponent } from './oc-progress-bar.component'; import { FormsModule } from '@angular/forms'; import { MockSvgIconComponent } from '@openchannel/angular-common-components/src/mock/mock'; describe('OcProgressBarCompon...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/developer-account-types.service.ts
<gh_stars>0 import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { HttpRequestService } from './http-request-services'; import { Page } from '../model/api/page.model'; import { DeveloperAccountTypeModel } from '../model/api/user-type.model'; import { OcHttpParams } from '../model/api/ht...
mukesh-openchannel/angular-template-libraries
src/progress-bar.stories.ts
<reponame>mukesh-openchannel/angular-template-libraries<filename>src/progress-bar.stories.ts import { moduleMetadata } from '@storybook/angular'; import { OcFormComponentsModule, OcProgressBarComponent } from '@openchannel/angular-common-components/src/lib/form-components'; const modules = { imports: [OcFormCompon...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/app-categories/oc-app-categories.module.ts
<gh_stars>0 import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { CarouselModule } from 'ngx-owl-carousel-o'; import { AngularSvgIconModule } from 'angular-svg-icon'; import { OcAppCategoriesComponent } from './oc-app-categories/oc-app-categories.component'; @NgModule({ ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/developer.service.ts
<reponame>mukesh-openchannel/angular-template-libraries import { Injectable } from '@angular/core'; import { HttpRequestService } from './http-request-services'; import { Observable } from 'rxjs'; import { DeveloperModel, DeveloperUpdateModel } from '../model/api/developer.model'; import { OcApiPaths } from '../oc-ng-c...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/model/utils.model.ts
export const VIDEO_URL_REGEX = () => new RegExp(/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/gm);
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-sidebar/oc-sidebar.component.ts
<reponame>mukesh-openchannel/angular-template-libraries import { AfterViewInit, ChangeDetectorRef, Component, EventEmitter, Input, OnChanges, Output, SimpleChanges, ViewChild } from '@angular/core'; import { OcSidebarSelectModel } from '../model/oc-sidebar-model'; import { SidebarVal...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-social-links/oc-social-links.component.spec.ts
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; import { OcSocialLinksComponent } from './oc-social-links.component'; import { RouterTestingModule } from '@angular/router/testing'; import { By } from '@angular/platform-browser'; describe('OcSocialLinksComponent', () => { let compo...
mukesh-openchannel/angular-template-libraries
src/date-time.stories.ts
import { OcDatetimePickerComponent, OcFormComponentsModule } from '@openchannel/angular-common-components/src/lib/form-components'; import { moduleMetadata } from '@storybook/angular'; const modules = { imports: [OcFormComponentsModule], }; export default { title: 'Date component [BEM]', component: OcDate...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-form-modal/oc-form-modal.component.spec.ts
<reponame>mukesh-openchannel/angular-template-libraries<gh_stars>0 import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcFormModalComponent } from './oc-form-modal.component'; import { By } from '@angular/platform-browser'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstra...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/model/dynamic-array.model.ts
<reponame>mukesh-openchannel/angular-template-libraries<filename>projects/angular-common-components/src/lib/form-components/model/dynamic-array.model.ts import { AppTypeFieldModel } from '@openchannel/angular-common-components/src/lib/common-components'; import { FormArray } from '@angular/forms'; export interface Fie...
mukesh-openchannel/angular-template-libraries
src/app-description.stories.ts
<filename>src/app-description.stories.ts import { OcAppDescriptionComponent, OcCommonLibModule } from '@openchannel/angular-common-components'; import { moduleMetadata } from '@storybook/angular'; /** List of module dependencies and component declarations. Stored as separate var because they are shared among all stori...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/market-components/public-api.ts
<gh_stars>0 export * from './oc-app-card/oc-app-card.component'; export * from './oc-app-description/oc-app-description.component'; export * from './oc-app-gallery/oc-app-gallery.component'; export * from './oc-app-get-started/oc-app-get-started.component'; export * from './oc-app-list-grid/oc-app-list-grid.component';...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/auth-components/models/auth-types.model.ts
/** * Model for the [user activation]{@link OcActivationComponent} form. * * Interface includes * ``` typescript * { * password: string; * email: string; * code: string; * } * ``` */ export class ComponentsUserActivationModel { /** password data field */ password: string; /** email data fie...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/auth-components/oc-edit-user-form/oc-edit-user-form.component.spec.ts
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; import { OcEditUserFormComponent } from './oc-edit-user-form.component'; import { MockCheckboxComponent, MockErrorComponent, MockFormComponent, MockPasswordComponent, MockSelectComponent, MockTooltipComponent, }...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/auth-components/oc-auth-components.module.ts
<reponame>mukesh-openchannel/angular-template-libraries import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { OcActivationComponent } from './oc-activation/oc-activation.component'; import { OcResendActivationComponent } from './oc-resend-activation/oc-resend-activation.comp...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/apps-version.service.ts
import { Injectable } from '@angular/core'; import { HttpRequestService } from './http-request-services'; import { Observable } from 'rxjs'; import { Page } from '../model/api/page.model'; import { AppVersionResponse, UpdateAppVersionModel } from '../model/api/app-data-model'; import { OcHttpParams } from '../model/api...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/model/api/request.model.ts
export interface RequestModel { name: string; type: string; appId?: string; userId?: string; userAccountId?: string; developerId?: string; developerAccountId?: string; customData?: any; } export interface RequestModelResponse extends RequestModel { requestId: string; createdDate...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/xsrf/xsrf.ts
import { Inject, Injectable, InjectionToken, OnDestroy } from '@angular/core'; import { Observable } from 'rxjs'; import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse } from '@angular/common/http'; import { map } from 'rxjs/operators'; import { BroadcastChannel } from 'broadcast-channel'; import...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/management-components/oc-invite-modal/oc-invite-modal.component.spec.ts
<reponame>mukesh-openchannel/angular-template-libraries<filename>projects/angular-common-components/src/lib/management-components/oc-invite-modal/oc-invite-modal.component.spec.ts import { ComponentFixture, fakeAsync, TestBed, tick, waitForAsync } from '@angular/core/testing'; import { OcInviteModalComponent } from '....
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/request.service.ts
import { Injectable } from '@angular/core'; import { HttpRequestService } from './http-request-services'; import { Observable } from 'rxjs'; import { Page } from '../model/api/page.model'; import { OcHttpParams } from '../model/api/http-params-encoder-model'; import { RequestModel, RequestModelResponse, RequestStatusMo...
mukesh-openchannel/angular-template-libraries
src/tag-element.stories.ts
<filename>src/tag-element.stories.ts<gh_stars>0 import { moduleMetadata } from '@storybook/angular'; import { OcCommonLibModule, OcTagElementComponent } from '@openchannel/angular-common-components/src/lib/common-components'; const modules = { imports: [OcCommonLibModule], }; export default { title: 'Tag elem...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/oc-dropdown-multi-app/oc-dropdown-multi-app.component.spec.ts
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcDropdownMultiAppComponent } from './oc-dropdown-multi-app.component'; import { MockDropboxComponent, MockInitialsComponent, MockTagComponent } from '@openchannel/angular-common-components/src/mock/mock'; import { AppsSearchServ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/model/confirmation-modal.model.ts
<filename>projects/angular-common-components/src/lib/common-components/model/confirmation-modal.model.ts import { OcButtonType } from '../model/components-basic.model'; export interface ConfirmationModalButton { /** * When a user clicks on this button, the ID will return as the modal result. */ id: s...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/portal-components/utils/normalizeCommonJSImport.ts
export function normalizeCommonJSImport<T>(importPromise: Promise<T>): Promise<T> { // CommonJS's `module.exports` is wrapped as `default` in ESModule. return importPromise.then((m: any) => (m.default || m) as T); }
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/management-components/oc-menu-user-grid/oc-menu-user-grid.component.spec.ts
<gh_stars>0 import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcMenuUserGridComponent } from './oc-menu-user-grid.component'; import { MockSvgIconComponent } from '@openchannel/angular-common-components/src/mock/mock'; import { InfiniteScrollModule } from 'ngx-infinite-scroll'; ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-confirmation-modal/oc-confirmation-modal.component.spec.ts
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcConfirmationModalComponent } from './oc-confirmation-modal.component'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { MockButtonComponent, MockHeadingTagDirective, MockSvgIconComponent } from ...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/pipe/array-search.pipe.ts
<filename>projects/angular-common-components/src/lib/common-components/pipe/array-search.pipe.ts import { Pipe, PipeTransform } from '@angular/core'; import { get } from 'lodash'; @Pipe({ name: 'arraySearch', }) export class ArraySearchPipe implements PipeTransform { transform<T>(array: T[], pathToValue: strin...
mukesh-openchannel/angular-template-libraries
src/video-url.stories.ts
import { moduleMetadata } from '@storybook/angular'; import { OcCommonLibModule } from '@openchannel/angular-common-components/src/lib/common-components'; import { HttpClient, HttpClientModule } from '@angular/common/http'; import { OcVideoUrlComponent } from '@openchannel/angular-common-components/src/lib/form-compone...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/stripe.service.ts
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { ConnectStripeAccountResponse, StripeAccountsResponse, GetMarketplaceStripeSettingsResponse, UserCreditCardsResponse, ChangeableCreditCardFields, PaymentTaxesResponse, Purchase, } from '../model/api/stripe...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/form-components/model/file.model.ts
<reponame>mukesh-openchannel/angular-template-libraries import { Observable } from 'rxjs'; import { HttpResponse, HttpUploadProgressEvent } from '@angular/common/http'; /** * File Details interface * @property {string} fileId - Unique identifier of file * @property {string} fileUrl - File URL link * @property {...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/app-categories/public-api.ts
export * from './oc-app-categories.module'; export * from './oc-app-categories/oc-app-categories.component'; /** Models */ export * from './models/app-category-model';
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/auth-components/oc-signup-custom/oc-signup-custom.component.spec.ts
<reponame>mukesh-openchannel/angular-template-libraries import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcSignupCustomComponent } from './oc-signup-custom.component'; import { FormControl, FormGroup, FormsModule, NgModel } from '@angular/forms'; import { CommonModule, Location...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/market-components/oc-app-gallery/oc-app-gallery.component.spec.ts
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcAppGalleryComponent } from './oc-app-gallery.component'; import { CommonModule, Location } from '@angular/common'; import { RouterTestingModule } from '@angular/router/testing'; import { By } from '@angular/platform-browser'; i...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-video/oc-video.component.ts
import { Component, Input } from '@angular/core'; import { SafeHtml } from '@angular/platform-browser'; import { NgxSpinnerService } from 'ngx-spinner'; import { OcEmbedVideoService } from './oc-embed-video.service'; @Component({ selector: 'oc-video', templateUrl: './oc-video.component.html', styleUrls: ['...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/common-components/oc-button/oc-button.component.ts
import { Component, Input, OnChanges, SimpleChanges, TemplateRef } from '@angular/core'; import { NgxSpinnerService } from 'ngx-spinner'; import { OcButtonType } from '../model/components-basic.model'; /** * Special button component. Contains text and spinner. * Can be different type {@link OcButtonType}. */ @Compo...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/model/api/user-registration-model.ts
export interface UserRegistrationModel { uname: string; company: string; password: string; email: string; isChecked: boolean; }
mukesh-openchannel/angular-template-libraries
src/app-rich-text-editor.stories.ts
<filename>src/app-rich-text-editor.stories.ts import { OcFormComponentsModule, OcRichTextEditorComponent } from '@openchannel/angular-common-components/src/lib/form-components'; import { moduleMetadata } from '@storybook/angular'; /** List of module dependencies and component declarations. Stored as separate var becau...
mukesh-openchannel/angular-template-libraries
projects/angular-common-components/src/lib/market-components/oc-app-get-started/oc-app-get-started.component.ts
import { Component, EventEmitter, Input, Output } from '@angular/core'; import { HeadingTag } from '@openchannel/angular-common-components/src/lib/common-components'; @Component({ selector: 'oc-app-get-started', templateUrl: './oc-app-get-started.component.html', styleUrls: ['./oc-app-get-started.component...
mukesh-openchannel/angular-template-libraries
projects/angular-common-services/src/lib/service/site-config.service.ts
import { Injectable } from '@angular/core'; import { Meta, MetaDefinition } from '@angular/platform-browser'; import { Observable } from 'rxjs/internal/Observable'; import { of, Subject } from 'rxjs'; import { map } from 'rxjs/operators'; import { SiteConfig } from '../model/components/frontend.model'; import { TitleSe...