repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
jjcaballero/lens | src/main/__test__/context-handler.test.ts | <filename>src/main/__test__/context-handler.test.ts<gh_stars>0
/**
* Copyright (c) 2021 OpenLens Authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including ... |
Helpful-Places/dtpr-stickers | src/utils/airtable.ts | import Airtable from 'airtable'
// @ts-ignore
const airtable = new Airtable({ apiKey: '<KEY>' })
const base = airtable.base('appjycbdxoV3Nsovw');
// The table names in airtable
export type TableName =
'Technology Type' |
'Purpose' |
'Data Type' |
'Data Process' |
'Access' |
'Storage' |
'Accountability'
... |
Helpful-Places/dtpr-stickers | src/Components/LocationPicker.tsx | <gh_stars>0
import React, { Component } from 'react';
import * as MapboxGL from 'mapbox-gl';
import ReactMapboxGl, { Marker } from 'react-mapbox-gl';
import PlaceIcon from '@material-ui/icons/Place';
import { createStyles, Theme, withStyles } from '@material-ui/core/styles';
import Geocoder, { MapboxQueryFeature } fr... |
Helpful-Places/dtpr-stickers | src/Components/FeedbackFooter.tsx | import React, { Component } from "react";
import Button from "@material-ui/core/Button";
import {
createStyles,
Theme,
withStyles,
WithStyles
} from "@material-ui/core/styles";
import Typography from "@material-ui/core/Typography";
import SendIcon from "@material-ui/icons/Send";
import ReactGA from "react-ga";... |
Helpful-Places/dtpr-stickers | src/Components/Places/index.tsx | import React, { Component } from 'react';
import CreatePlaceView from './CreatePlaceView';
import EditPlaceView from './EditPlaceView';
import PlaceList from './PlaceList';
import PlaceView from './PlaceView';
import { Route, Switch } from "react-router-dom";
import { withRouter } from 'react-router-dom'
import { LngLa... |
Helpful-Places/dtpr-stickers | src/Components/Places/EditPlaceView.tsx | <reponame>Helpful-Places/dtpr-stickers
import React from 'react';
import Typography from '@material-ui/core/Typography';
import PlaceForm from './PlaceForm'
import LinearProgress from '@material-ui/core/LinearProgress';
import { Redirect, withRouter } from 'react-router-dom'
import firebase from '../../firebase.js';
i... |
Helpful-Places/dtpr-stickers | src/Components/Footer.tsx | <filename>src/Components/Footer.tsx
import React, { Component } from 'react';
import Button from '@material-ui/core/Button';
import { createStyles, Theme, withStyles, WithStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
class Footer extends Component<any, any> {
render... |
Helpful-Places/dtpr-stickers | src/App.tsx | import React, { Component } from "react";
import { MuiThemeProvider, createMuiTheme } from "@material-ui/core/styles";
import blue from "@material-ui/core/colors/blue";
import pink from "@material-ui/core/colors/pink";
import common from "@material-ui/core/colors/common";
import HomeView from "./Components/HomeView";
i... |
Helpful-Places/dtpr-stickers | src/Components/Sensors/SensorForm.tsx | <reponame>Helpful-Places/dtpr-stickers<gh_stars>0
import React from "react";
import Button from "@material-ui/core/Button";
import CloudUploadIcon from "@material-ui/icons/CloudUpload";
import {
createStyles,
Theme,
withStyles,
WithStyles
} from "@material-ui/core/styles";
import TextField from "@material-ui/co... |
Helpful-Places/dtpr-stickers | src/Components/Places/CreatePlaceView.tsx | <gh_stars>0
import React from 'react';
import shortid from "shortid";
import PlaceForm from './PlaceForm'
import { withRouter } from 'react-router-dom'
import { LngLat } from 'mapbox-gl';
class CreatePlaceView extends React.Component<any, any> {
render() {
return <PlaceForm
id={shortid.generate()}
ti... |
Helpful-Places/dtpr-stickers | src/Components/Places/PlaceList.tsx | <reponame>Helpful-Places/dtpr-stickers
import React, { Component } from 'react';
import firebase from '../../firebase.js';
import { createStyles, withStyles, Theme } from '@material-ui/core/styles';
import Card from '@material-ui/core/Card';
import CardActionArea from '@material-ui/core/CardActionArea';
import CardCont... |
Helpful-Places/dtpr-stickers | src/Components/Places/PlaceView.tsx | import React, { Component } from 'react';
import AppBar from '@material-ui/core/AppBar';
import Card from '@material-ui/core/Card';
import CardActionArea from '@material-ui/core/CardActionArea';
import CardContent from '@material-ui/core/CardContent';
import Grid from '@material-ui/core/Grid';
import { Typography } fro... |
Helpful-Places/dtpr-stickers | src/Components/Places/PlaceForm.tsx | import React from 'react';
import Button from '@material-ui/core/Button';
import { createStyles, Theme, withStyles, WithStyles } from '@material-ui/core/styles';
import TextField from '@material-ui/core/TextField';
import Typography from '@material-ui/core/Typography';
import LocationPicker from '../LocationPicker';
im... |
Helpful-Places/dtpr-stickers | src/Components/Sensors/CreateSensorForm.tsx | <filename>src/Components/Sensors/CreateSensorForm.tsx
import React from 'react';
import shortid from "shortid";
import SensorForm from './SensorForm'
interface CreateSensorFormProps {
placeId: string;
}
interface CreateSensorFormState {
sensorId?: string;
}
class CreateSensorForm extends React.Component<CreateSe... |
Helpful-Places/dtpr-stickers | src/Components/Sensors/Accordian.tsx | <gh_stars>0
import React, { Component } from "react";
import { createStyles, withStyles, Theme } from "@material-ui/core/styles";
import { Typography } from "@material-ui/core";
import ExpansionPanel from "@material-ui/core/ExpansionPanel";
import ExpansionPanelSummary from "@material-ui/core/ExpansionPanelSummary";
im... |
Helpful-Places/dtpr-stickers | src/Components/Header.tsx | import firebase from "../firebase.js";
import React, { Component } from "react";
import AppBar from "@material-ui/core/AppBar";
import Button from "@material-ui/core/Button";
import {
createStyles,
Theme,
withStyles,
WithStyles
} from "@material-ui/core/styles";
import Toolbar from "@material-ui/core/Toolbar";
... |
Helpful-Places/dtpr-stickers | src/Components/Sensors/SensorView.tsx | import React, { Component } from "react";
import firebase from "../../firebase.js";
import { createStyles, withStyles, Theme } from "@material-ui/core/styles";
import { Typography } from "@material-ui/core";
import Divider from "@material-ui/core/Divider";
import { SensorData } from "./index";
import { AirtableData, ge... |
Helpful-Places/dtpr-stickers | src/Components/Sensors/SensorPrintView.tsx | <reponame>Helpful-Places/dtpr-stickers
import React, { Component } from 'react';
import firebase from '../../firebase.js';
import { createStyles, withStyles, Theme } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import { Typography } from '@material-ui/core';
import { AirtableData, get... |
Helpful-Places/dtpr-stickers | src/Components/HomeView.tsx | <reponame>Helpful-Places/dtpr-stickers
import React, { Component } from 'react';
import { createStyles, withStyles, Theme } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
// import Pdf from 'process.env.PUBLIC_URL/DTPR_terms.pdf';
const styles = (theme: Theme) => createStyles... |
Helpful-Places/dtpr-stickers | src/Components/Sensors/index.tsx | import React, { Component } from 'react';
import EditSensorForm from './EditSensorForm';
import SensorPrintView from './SensorPrintView';
import SensorView from './SensorView';
import { Route, Switch } from "react-router-dom";
import { withRouter } from 'react-router-dom'
export interface SensorData {
placeId: strin... |
Helpful-Places/dtpr-stickers | src/Components/StaticMap.tsx | import React, { Component } from "react";
import ReactMapboxGl, { Marker } from "react-mapbox-gl";
import PlaceIcon from "@material-ui/icons/Place";
const Map = ReactMapboxGl({
accessToken: process.env.REACT_APP_MAPBOX_ACCESS_TOKEN || "",
injectCSS: false,
interactive: false
});
interface Props {
markerLocati... |
Helpful-Places/dtpr-stickers | src/Components/Authentication.tsx | <reponame>Helpful-Places/dtpr-stickers
import React, { Component } from 'react';
import firebase from '../firebase.js';
import StyledFirebaseAuth from 'react-firebaseui/StyledFirebaseAuth';
import firebaseui from 'firebaseui'
import { createStyles, withStyles, Theme } from '@material-ui/core/styles';
import Typography ... |
Helpful-Places/dtpr-stickers | src/Components/Sensors/EditSensorForm.tsx | <filename>src/Components/Sensors/EditSensorForm.tsx
import React from "react";
import firebase from "../../firebase.js";
import SensorForm from "./SensorForm";
import { createStyles, Theme, withStyles } from "@material-ui/core/styles";
import { Redirect, withRouter } from "react-router-dom";
import { SensorData } from ... |
zheleznovux/beauty-saloon-server | src/services/orders.service.ts | <gh_stars>0
import { Injectable } from '@nestjs/common';
import { InMemoryDbService } from './in-memory-db.service';
import { IOrderEntity } from 'src/shared/interfaces';
import { RecordStatus, RecordStatusFinish } from 'src/shared/enums';
@Injectable()
export class OrdersService extends InMemoryDbService<IOrderEntity... |
zheleznovux/beauty-saloon-server | src/controllers/staff.controller.ts | <reponame>zheleznovux/beauty-saloon-server
import { Controller, Get, Param, HttpException, HttpStatus, Body, Post, Delete, Query, UseGuards, UseInterceptors, UploadedFile, Res, Patch } from '@nestjs/common';
import { ApiOperation, ApiTags, ApiOkResponse, ApiNotFoundResponse, ApiCreatedResponse, ApiQuery, ApiBearerAuth,... |
zheleznovux/beauty-saloon-server | src/services/staff.service.ts | <gh_stars>0
import { Injectable } from '@nestjs/common';
import { InMemoryDbService } from './in-memory-db.service';
import { IStaffEntity } from 'src/shared/interfaces';
import { FIREBASE_STORAGE_HOST, FIREBASE_STORAGE_BUCKET, FIREBASE_STOREAGE_KEYFILE } from 'src/shared/constants';
import mastersMock from 'src/shared... |
zheleznovux/beauty-saloon-server | src/shared/interfaces/service-category.entity.ts | <reponame>zheleznovux/beauty-saloon-server<gh_stars>0
import { InMemoryDBEntity } from "./in-memory-entity.interface";
export interface IServiceCategoryEntity extends InMemoryDBEntity {
name: string;
}
|
zheleznovux/beauty-saloon-server | src/shared/interfaces/master.entity.ts | <reponame>zheleznovux/beauty-saloon-server
import { InMemoryDBEntity } from "./in-memory-entity.interface";
export interface IStaffEntity extends InMemoryDBEntity {
firstName: string;
patronymic: string;
surName: string;
position: string;
startWorkDate: Date;
photo: string;
} |
zheleznovux/beauty-saloon-server | src/shared/enums/index.ts | export * from './record-status.enum';
|
zheleznovux/beauty-saloon-server | src/services/index.ts | <gh_stars>0
export * from './customers.service';
export * from './orders.service';
export * from './staff.service';
export * from './services.service';
export * from './users.service';
|
zheleznovux/beauty-saloon-server | src/shared/enums/record-status.enum.ts | export enum RecordStatus {
Opened = 'Opened',
Closed = 'Closed'
}
export enum RecordStatusFinish {
Success = 'Success',
Failed = 'Failed'
} |
zheleznovux/beauty-saloon-server | src/shared/utils.ts | <gh_stars>0
type FilterDataType = string | number | boolean;
export enum FilterOperator {
Contains = 'contains',
NotContains = 'notContains',
StartsWith = 'startsWith',
EndsWith = 'endsWith',
Equals = 'equals',
NotEqual = 'notEqual',
LessThan = 'lessThan',
LessThanOrEqual = 'lessThanOrEqual',
Greater... |
zheleznovux/beauty-saloon-server | src/shared/interfaces/customer.entity.ts | import { InMemoryDBEntity } from "./in-memory-entity.interface";
export interface ICustomerEntity extends InMemoryDBEntity {
firstName: string;
patronymic: string;
surName: string;
phone: string;
}
|
zheleznovux/beauty-saloon-server | src/shared/dto/order.dto.ts | import { ApiProperty } from "@nestjs/swagger";
import { BaseDto } from "./base-dto";
import { RecordStatus, RecordStatusFinish } from "../enums";
import { IOrderEntity } from "../interfaces";
import { StaffDto } from "./staff.dto";
import { CustomerDto } from "./customer.dto";
import { ServiceDto } from "./service.dto"... |
zheleznovux/beauty-saloon-server | src/controllers/orders.controller.ts | <filename>src/controllers/orders.controller.ts
import { Controller, Get, Post, Body, HttpException, HttpStatus, Query, Patch, Param, Delete, UseGuards } from '@nestjs/common';
import { ApiTags, ApiOperation, ApiOkResponse, ApiCreatedResponse, ApiNotFoundResponse, ApiBadRequestResponse, ApiQuery, ApiBearerAuth } from '@... |
zheleznovux/beauty-saloon-server | src/controllers/index.ts | export * from './customers.controller';
export * from './orders.controller';
export * from './services.controller';
export * from './staff.controller';
|
zheleznovux/beauty-saloon-server | src/shared/dto/base-dto.ts | import { ApiProperty } from '@nestjs/swagger';
export class BaseDto {
@ApiProperty({ description: 'Идентификатор' })
id: number;
}
|
zheleznovux/beauty-saloon-server | src/shared/interfaces/index.ts | export * from './master.entity';
export * from './service-category.entity';
export * from './customer.entity';
export * from './order.entity';
export * from './service.entity';
export * from './in-memory-entity.interface'; |
zheleznovux/beauty-saloon-server | src/app.controller.ts | import { Controller, Post, Body, HttpException, HttpStatus } from '@nestjs/common';
import { ApiProperty, ApiUnauthorizedResponse } from '@nestjs/swagger';
import { AuthService } from './services/auth/auth.service';
class AuthDto {
@ApiProperty()
userName: string;
@ApiProperty()
password: string;
}
@Controll... |
zheleznovux/beauty-saloon-server | src/controllers/services.controller.ts | import { Controller, Get, Post, Body, Patch, Delete, Param, HttpException, HttpStatus, UseGuards } from '@nestjs/common';
import { ApiTags, ApiOperation, ApiOkResponse, ApiCreatedResponse, ApiNotFoundResponse, ApiBearerAuth } from '@nestjs/swagger';
import { ServiceDto, CreateServiceDto } from 'src/shared/dto';
import ... |
zheleznovux/beauty-saloon-server | src/controllers/customers.controller.ts | <filename>src/controllers/customers.controller.ts
import { Controller, Get, Post, Body, HttpException, HttpStatus, Patch, Param, Delete, Query, UseGuards, Request } from '@nestjs/common';
import { ApiTags, ApiOperation, ApiCreatedResponse, ApiBadRequestResponse, ApiOkResponse, ApiNotFoundResponse, ApiQuery, ApiBearerAu... |
zheleznovux/beauty-saloon-server | src/shared/dto/service.dto.ts | import { BaseDto } from "./base-dto";
import { ApiProperty } from "@nestjs/swagger";
import { IServiceEntity } from "../interfaces";
export class ServiceDto extends BaseDto {
constructor(service?: IServiceEntity) {
super();
if (service) {
Object.assign(this, service);
}
}
@ApiProperty({ desc... |
zheleznovux/beauty-saloon-server | src/shared/dto/service-category.dto.ts | <gh_stars>0
import { ApiProperty } from "@nestjs/swagger";
import { BaseDto } from "./base-dto";
export class UpdateServiceCategoryDto {
@ApiProperty({ description: 'Имя' })
name: string;
}
export class ServiceCategoryDto extends BaseDto {
@ApiProperty({ description: 'Имя' })
name: string;
}
|
zheleznovux/beauty-saloon-server | src/shared/interfaces/order.entity.ts | <filename>src/shared/interfaces/order.entity.ts
import { RecordStatus, RecordStatusFinish } from "../enums";
import { InMemoryDBEntity } from "./in-memory-entity.interface";
export interface IOrderEntity extends InMemoryDBEntity {
createdDate?: Date;
visitDate?: string;
status?: RecordStatus;
finishStatus?: Re... |
zheleznovux/beauty-saloon-server | src/shared/dto/index.ts | export * from './staff.dto';
export * from './service-category.dto';
export * from './customer.dto';
export * from './service.dto';
export * from './order.dto';
|
zheleznovux/beauty-saloon-server | src/services/services.service.ts | import { Injectable } from '@nestjs/common';
import { InMemoryDbService } from './in-memory-db.service';
import { IServiceEntity } from 'src/shared/interfaces';
@Injectable()
export class ServicesService extends InMemoryDbService<IServiceEntity> {
constructor() {
super();
this.createMany([
{
... |
zheleznovux/beauty-saloon-server | src/services/customers.service.ts | import { Injectable } from '@nestjs/common';
import { InMemoryDbService } from './in-memory-db.service';
import { ICustomerEntity } from 'src/shared/interfaces';
@Injectable()
export class CustomersService extends InMemoryDbService<ICustomerEntity> {
constructor() {
super();
this.createMany([
{
... |
zheleznovux/beauty-saloon-server | src/shared/dto/staff.dto.ts | import { ApiProperty } from "@nestjs/swagger";
import { BaseDto } from "./base-dto";
import { IStaffEntity } from "../interfaces";
export class StaffDto extends BaseDto {
constructor(staff?: IStaffEntity) {
super();
if (staff) {
Object.assign(this, staff);
this.fullName = `${staff.surName || ''}... |
zheleznovux/beauty-saloon-server | src/shared/interfaces/in-memory-entity.interface.ts | export interface InMemoryDBEntity<T = number> {
id: T;
} |
zheleznovux/beauty-saloon-server | src/shared/interfaces/service.entity.ts | import { InMemoryDBEntity } from "./in-memory-entity.interface";
export interface IServiceEntity extends InMemoryDBEntity {
name: string;
description: string;
price: number;
photo: string;
isPopular: boolean;
} |
zheleznovux/beauty-saloon-server | src/shared/misc/staff.mock.ts | import { API_PATH } from "../constants";
const photo = fileName => `${API_PATH}/staff/photo/${fileName}`;
export default [
{
firstName: 'Ирина',
patronymic: 'Сергеевна',
surName: 'Краснова',
position: 'Мастер ногтевого сервиса',
photo: photo('d7be2a0cc36277ba0d5fcb3b325389a5.jpg'),
startWork... |
zheleznovux/beauty-saloon-server | src/shared/constants.ts | <reponame>zheleznovux/beauty-saloon-server
export const ENV = process.env.NODE_ENV || 'dev';
export const PORT = process.env.PORT || 3001;
export const API_PREFIX = 'api';
const server = {
dev: `http://localhost:${PORT}`,
staging: 'https://beautty-saloon-server.herokuapp.com/api',
production: 'https://beautty-sa... |
zheleznovux/beauty-saloon-server | src/services/in-memory-db.service.ts | import { InMemoryDBEntity } from "src/shared/interfaces";
export class InMemoryDbService<T extends InMemoryDBEntity> {
private _recordMap: { [id: number]: T } = {};
set records(records: T[]) {
if (!records || records.length === 0) {
this._recordMap = {};
}
this._recordMap = records.reduce(
... |
zheleznovux/beauty-saloon-server | src/shared/dto/customer.dto.ts | import { BaseDto } from "./base-dto";
import { ApiProperty } from "@nestjs/swagger";
import { ICustomerEntity } from "../interfaces";
export class CustomerDto extends BaseDto {
constructor(customer?: ICustomerEntity) {
super();
if (customer) {
Object.assign(this, customer);
this.fullName = `${c... |
Abdulkadir-Muhendis/vscode | src/vs/workbench/services/workspaces/browser/workspacesService.ts | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
xiefengnian/umi-plugin-antd-icon-config | src/index.ts | import { IApi } from 'umi';
import * as allIcons from '@ant-design/icons';
export interface MenuDataItem {
children?: MenuDataItem[];
routes?: MenuDataItem[];
hideChildrenInMenu?: boolean;
hideInMenu?: boolean;
icon?: string;
locale?: string;
name?: string;
key?: string;
path?: string;
[key: string... |
Haixiang6123/my-react-infinite-scroller | src/App.tsx | import React, {useState} from 'react'
import DivScroller from './examples/DivScroller'
import WindowScroller from './examples/WindowScroller'
import DivReverseScroller from "./examples/DivReverseScroller";
type Pane = '1' | '2' | '3'
const App = () => {
const [pane, setPane] = useState<Pane>('1');
return (
<... |
Haixiang6123/my-react-infinite-scroller | src/lib/InfiniteScroll.tsx | <gh_stars>0
import * as React from 'react'
import {Component, createElement, ReactNode} from 'react'
interface EventListenerOptions {
useCapture: boolean
passive: boolean
}
interface Props {
loadMore: (pageLoaded: number) => void // 加载更多的回调
loader: ReactNode // 显示 Loading 的元素
initialLoad?: boolean // 是否第一次就... |
gunners-pro/gobarber-backend | src/shared/container/providers/StorageProvider/implementations/AzureStorageBlobProvider.ts | import fs from 'fs';
import path from 'path';
import {
BlobServiceClient,
StorageSharedKeyCredential,
} from '@azure/storage-blob';
import uploadConfig from '@config/upload';
import mime from 'mime';
import IStorageProvider from '../models/IStorageProvider';
class AzureStorageBlobProvider implements IStorageProvid... |
gunners-pro/gobarber-backend | src/shared/container/providers/MailProvider/implementations/SparkPostMailProvider.ts | import { inject, injectable } from 'tsyringe';
import mailConfig from '@config/mail';
import Sparkpost from 'sparkpost';
import IMailTemplateProvider from '../../MailTemplateProvider/models/IMailTemplateProvider';
import ISendMailDTO from '../dtos/ISendMailDTO';
import IMailProvider from '../models/IMailProvider';
@in... |
yieldly-finance/yieldly-deterministic-account-generator | src/typescript/index.ts | <reponame>yieldly-finance/yieldly-deterministic-account-generator
import { generateAccountMnemonic, generateAccountList } from "./utils/account";
import { derivationToMaster, masterToDerivation } from "./utils/wallet";
import readline from "readline";
const rl = readline.createInterface({
input: process.stdin,
ou... |
yieldly-finance/yieldly-deterministic-account-generator | src/typescript/utils/wallet.ts | <gh_stars>1-10
import algosdk from "algosdk";
import btoa from "btoa";
import atob from "atob";
export const masterToDerivation = (_mnemonic: string): Uint8Array => {
return algosdk.mnemonicToMasterDerivationKey(_mnemonic);
};
export const derivationToMaster = (key: string): string => {
return algosdk.masterDeriv... |
yieldly-finance/yieldly-deterministic-account-generator | src/typescript/utils/account.ts | import algosdk from "algosdk";
import nacl from "tweetnacl";
import { masterToDerivation } from "./wallet";
import hkdf from "futoin-hkdf";
import sha512 from "js-sha512";
import * as utils from "./encoders";
import base32 from "hi-base32";
export const generateAccountList = (
seed: string,
index: number,
amount... |
yieldly-finance/yieldly-deterministic-account-generator | src/typescript/utils/encoders/concat.ts | <reponame>yieldly-finance/yieldly-deterministic-account-generator<filename>src/typescript/utils/encoders/concat.ts
/** concatArrays used for combining two transactions
*
* @param a - first uint8 array
* @param b - second uint8 array
* @returns returns a concatenated uint8 array
*/
export const concatArrays = (a: ... |
francescorivola/client-rate-limiter | index.d.ts | declare namespace ClientRateLimiter {
export type CreateClientRateLimiterOptions = { concurrency: number };
export type HoldOptions = { holdMs: number, retry?: boolean};
export type Hold = (options: HoldOptions) => void;
export type ClientRateLimiterFunc<T> = (hold: Hold) => Promise<T>;
export type ... |
francescorivola/client-rate-limiter | test/index.d-test.ts | <filename>test/index.d-test.ts
import createRateLimiter from '../index';
import { expectAssignable } from 'tsd'
const options = { concurrency: 1};
expectAssignable<{
concurrency: number;
}>(options);
const limiter = createRateLimiter(options);
expectAssignable<<T>(func: (hold: (options: { holdMs: number, retry?:... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/BaseService.ts | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import { Component, OnInit, OnDestroy, Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Err... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/app.routes.ts | <reponame>idaholab/SIEVAS<gh_stars>0
import { provideRouter, RouterConfig } from '@angular/router';
import { AppComponent } from './app.component';
import { EmptyComponent } from './empty.component';
import { PermissionComponent } from './permission/permission.component';
import { PermissionEditComponent } from './per... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/login_app/app.component.ts | <filename>angular/src/main/resources/angular2/login/login_app/app.component.ts
import { Component, OnInit, OnDestroy, Renderer,ElementRef, ViewChild, AfterViewInit } from '@angular/core';
import { HTTP_PROVIDERS } from '@angular/http';
import { Http } from '@angular/http';
import { Headers, RequestOptions } from '@ang... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/session/sessionedit.component.ts |
import { Component, OnInit, OnDestroy, Input, Output, EventEmitter } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { FormBuilder, Validators, FormGroup } from '@angular/forms';
import { Message, Growl } from 'primeng/primeng';
import 'rxjs/add/operator/do';
import { ResultSe... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/permission/permissionedit.component.ts |
import { Component, OnInit, OnDestroy, Input, Output, EventEmitter } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { FormBuilder, Validators, FormGroup } from '@angular/forms';
import { Message, Growl } from 'primeng/primeng';
import 'rxjs/add/operator/do';
import { Permissi... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/permission/permission.service.ts | import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import { Permission } from './permission';
import { BaseService } from '../BaseService';
@Injectable()
export class PermissionService extends BaseService<number, Permission>
{
constructor(http: Http)
{
super(http);
... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/login_app/main.ts | <filename>angular/src/main/resources/angular2/login/login_app/main.ts
import { bootstrap } from '@angular/platform-browser-dynamic'
import { disableDeprecatedForms, provideForms } from '@angular/forms';
import { HTTP_PROVIDERS } from '@angular/http';
import { AppComponent } from './app.component'
bootstrap(AppCo... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/empty.component.ts | <reponame>idaholab/SIEVAS
import { Component, OnInit, OnDestroy } from '@angular/core';
@Component({
selector: 'empty',
template: '<h3>Select a menu item above.</h3>',
})
export class EmptyComponent implements OnInit
{
title = 'Main Menu';
ngOnInit()
{
}
}
|
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/menu.component.ts | <gh_stars>0
import { Component, OnInit, OnDestroy } from '@angular/core';
import { HTTP_PROVIDERS } from '@angular/http';
import { Http } from '@angular/http';
import { Headers, RequestOptions } from '@angular/http';
import { Menubar, Menu, MenuItem } from 'primeng/primeng';
@Component({
selector: 'my-menu... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/session/session.service.ts | <reponame>idaholab/SIEVAS<filename>angular/src/main/resources/angular2/login/menu_app/session/session.service.ts
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import { SIEVASSession } from './session';
import { BaseService } from '../BaseService';
@Injectable()
export class Sessi... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/group/groupedit.component.ts |
import { Component, OnInit, OnDestroy, Input, Output, EventEmitter } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { FormBuilder, Validators, FormGroup } from '@angular/forms';
import { Message, Growl } from 'primeng/primeng';
import 'rxjs/add/operator/do';
import { ResultSe... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/jsonerror.ts | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import { ITypeName } from './ITypeName';
export class JsonError implements ITypeName
{
typeName: string;
error: string;
... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/ITypeName.ts | <reponame>idaholab/SIEVAS
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* To change this license header, choose License Headers in Project Properties.
* To change this temp... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/main.ts | <gh_stars>0
import { bootstrap } from '@angular/platform-browser-dynamic'
import { disableDeprecatedForms, provideForms } from '@angular/forms';
import { HTTP_PROVIDERS } from '@angular/http';
import { AppComponent } from './app.component'
import { APP_ROUTER_PROVIDERS } from './app.routes';
bootstrap(AppComponen... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/user/user.service.ts | <filename>angular/src/main/resources/angular2/login/menu_app/user/user.service.ts
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import { User } from './user';
import { BaseService } from '../BaseService';
@Injectable()
export class UserService extends BaseService<number, User>
{
... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/number.validator.ts | <reponame>idaholab/SIEVAS
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import { FormBuilder, Validators, FormGroup, FormControl, NG_VALIDATORS, AbstractControl } from '@angular/... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/permission/permission.component.ts | import { Component, OnInit, OnDestroy, Injectable } from '@angular/core';
import { Router } from '@angular/router';
import { Response } from '@angular/http';
import { DataTable, Column, Header, Footer} from 'primeng/primeng';
import { LazyLoadEvent } from 'primeng/primeng';
import { Message, Growl } from 'primeng/prim... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/session/session.ts | import { IIdentifier } from '../IIdentifier';
import { ITypeName } from '../ITypeName';
import { User } from '../user/user';
import { Group } from '../group/group';
export class SIEVASSession implements IIdentifier<number>, ITypeName
{
id: number;
name: string;
owner: User = null;
users: User[] = [];
... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/resultset.ts | export class ResultSet
{
total: number;
data: any;
constructor(total: number, data: any)
{
this.total = total;
this.data = data;
}
}
|
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/group/group.ts | import { IIdentifier } from '../IIdentifier';
import { ITypeName } from '../ITypeName';
import { Permission } from '../permission/permission';
export class Group implements IIdentifier<number>, ITypeName
{
id: number;
typeName: string;
groupName: string;
description: string;
permissionCollection: P... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/user/user.ts | import { IIdentifier } from '../IIdentifier';
import { ITypeName } from '../ITypeName';
import { Group } from '../group/group';
export class User implements IIdentifier<number>, ITypeName
{
id: number;
typeName: string;
username: string;
password: string;
password2: string;
firstName: string;
... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/user/useredit.component.ts | <gh_stars>0
import { Component, OnInit, OnDestroy, Input, Output, EventEmitter } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { FormBuilder, Validators, FormGroup, FormControl, REACTIVE_FORM_DIRECTIVES } from '@angular/forms';
import { Message, Growl } from 'primeng/primeng';... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/IIdentifier.ts | <filename>angular/src/main/resources/angular2/login/menu_app/IIdentifier.ts<gh_stars>0
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
export interface IIdentifier<K>
{
id: K;
... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/app.component.ts | import { Component, OnInit, OnDestroy, EventEmitter } from '@angular/core';
import { HTTP_PROVIDERS } from '@angular/http';
import { Http } from '@angular/http';
import { Headers, RequestOptions } from '@angular/http';
import { ROUTER_DIRECTIVES, Router } from '@angular/router';
import { Menubar, Menu, MenuItem } fr... |
idaholab/SIEVAS | angular/src/main/resources/angular2/login/menu_app/permission/permission.ts | <reponame>idaholab/SIEVAS
import { IIdentifier } from '../IIdentifier';
import { ITypeName } from '../ITypeName';
export class Permission implements IIdentifier<number>, ITypeName
{
id: number;
typeName: string;
permissionName: string;
description: string;
constructor();
constructor(data: ... |
ohflying/js-auto-import | src/import-fixer.ts | <reponame>ohflying/js-auto-import<filename>src/import-fixer.ts
import * as vscode from 'vscode'
import * as path from 'path';
import { ImportObject } from './import-db';
export class ImportFixer {
private spacesBetweenBraces;
private doubleQuotes;
constructor() {
let config = vscode.workspace.ge... |
ohflying/js-auto-import | src/helpers/path-helper.ts | <gh_stars>0
import * as path from 'path';
export class PathHelper {
public static normalisePath(relativePath) {
let removeFileExtenion = (rp) => {
if (rp.endsWith('index.js')) {
rp = rp.substring(0, rp.lastIndexOf('/'))
} else if (rp) {
rp = rp.subst... |
ohflying/js-auto-import | src/import-db.ts | var JsonDB = require('node-json-db');
import * as Path from 'path';
import * as vscode from 'vscode';
export interface ImportObject {
name: string,
file: vscode.Uri,
isDefault: boolean
}
export class ImportDb {
public getDB(): any {
return new JsonDB(Path.join(__dirname, `import-${this.dbNa... |
ohflying/js-auto-import | src/import-scanner.ts | import { NodeUpload } from './node-upload';
import * as path from 'path';
import * as FS from 'fs';
import * as vscode from 'vscode';
import * as _ from 'lodash';
import { ImportDb } from './import-db';
import { AutoImport } from './auto-import';
export class ImportScanner {
private db: ImportDb;
private sc... |
awslabs/fhir-works-on-aws-persistence-facade | src/index.ts | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
export * from './dataServices/apiDataService';
|
awslabs/fhir-works-on-aws-persistence-facade | src/dataServices/apiDataService.ts | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
/* eslint-disable class-methods-use-this */
import {
ConditionalDeleteResourceRequest,
CreateResourceRequest,
DeleteResourceRequest,
GenericResponse,
PatchResourceRequest,
Persi... |
awslabs/fhir-works-on-aws-persistence-facade | src/auth/iamAuth.ts | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import { AxiosInstance } from 'axios';
import { aws4Interceptor } from 'aws4-axios';
import Auth from './auth';
export default class IamAuth implements Auth {
region: string;
constructor(regi... |
awslabs/fhir-works-on-aws-persistence-facade | src/dataServices/apiDataService.test.ts | <reponame>awslabs/fhir-works-on-aws-persistence-facade
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import axios from 'axios';
import MockAdapter from 'axios-mock-adapter';
import {
CreateResourceRequest,
DeleteResourceRequest,
ReadRe... |
awslabs/fhir-works-on-aws-persistence-facade | src/auth/auth.ts | <filename>src/auth/auth.ts
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import { AxiosInstance } from 'axios';
export default interface Auth {
// Hook into axios and intercept requests to add Auth tokens
// https://masteringjs.io/tutoria... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.