text stringlengths 10 953k |
|---|
import { Module } from '@nestjs/common';
import { ProductsController } from './products.controller';
import { ProductsService } from './products.service';
import { MongooseModule } from '@nestjs/mongoose';
import { ProductSchema } from './products.model';
import { PassportModule } from '@nestjs/passport';
@Module({
... |
import React from "react";
import styled from "styled-components";
import tw from "twin.macro";
import { Navbar } from "../../components/navbar";
import { BookCard } from "../../components/bookCard";
import { TopSection } from "./topSection";
import { BookingSteps } from "./bookingStep";
import { Marginer } from "../..... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="nl" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Ccoin</source>
<translation>Over Ccoin</translation>
</message>
... |
import { CommonModule, DatePipe } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HttpService } from '@core/services/http.service';
import { of } from 'rxjs';
import { AppRoutingModule } from 'src/app/app-routin... |
/**
* Bitbucket API
* Code against the Bitbucket API to automate simple tasks, embed Bitbucket data into your own site, build mobile or desktop apps, or even add custom UI add-ons into Bitbucket itself using the Connect framework.
*
* The version of the OpenAPI document: 2.0
* Contact: support@bitbucket.org
*
* ... |
import { median } from '../index';
export default median; |
import {useRef} from 'react';
const useLatest = <T>(value: T): {readonly current: T} => {
const ref = useRef(value);
ref.current = value;
return ref;
};
export default useLatest; |
import React, { ReactElement } from 'react';
import { View } from 'react-native';
import TitleGrid from '../components/TileGrid';
import useRungame from '../hooks/useRunGame';
const Game = (): ReactElement => {
useRungame();
return (
<View style={{ flex: 1 }}>
<TitleGrid />
</View>
);
};
export ... |
import React from 'react';
import { useEvmWallet } from '@libs/evm-wallet';
import { FlatButton } from '@libs/neumorphism-ui/components/FlatButton';
import { IconSpan } from '@libs/neumorphism-ui/components/IconSpan';
import { ConnectionTypeList } from 'components/Header/desktop/ConnectionTypeList';
import { TermsMessa... |
import { Column, Entity, OneToMany, OneToOne } from 'typeorm';
import { DeepPartial } from '@app/common/shared-types';
import { BaseEntity } from '@app/common/base.entity';
import { TermMeta } from './term-meta.entity';
import { TermTaxonomy } from './term-taxonomy.entity';
// @Index(['name'], { unique: true })
/**
... |
import { Component, OnInit, Input } from '@angular/core';
import { NgbModal, NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { AuthService } from '../../auth/auth.service';
import { minVersion } from 'semver';
@Component({
selector: 'app-node-update-required-modal',
templateUrl: './node-update-required-... |
import { getSystemPath, normalize, virtualFs } from '@angular-devkit/core';
import { TempScopedNodeJsSyncHost } from '@angular-devkit/core/node/testing';
import { HostTree } from '@angular-devkit/schematics';
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
import * as shx from 's... |
export interface DiscoverRepositoryChainingResponseRootObject {
users: DiscoverRepositoryChainingResponseUsersItem[];
is_backup: boolean;
is_recommend_account: boolean;
available_recommend_count: number;
status: string;
}
export interface DiscoverRepositoryChainingResponseUsersItem {
pk: number;... |
import { Dropdown } from '../index';
import { DropdownItem } from '../types';
const deleteItem = (items: DropdownItem[], index: number) => {
items.splice(index, 1);
};
const dropdownItems: DropdownItem[] = [
{ label: '아이템1', onClickHandler: (...data) => console.log(data) },
{ label: '아이템2', onClickHandler: (...... |
// runtime env
export const env = (key: string, defaultValue = '') =>
process.env[key] || defaultValue;
export const GITHUB = env('DEPLOY_ENV') === 'github' || (() => {
// if run `yarn start`, that will get window is reference error
try {
return window.location.host.includes('github.io')
} catch {
ret... |
import React from 'react';
import { Asset } from 'types/asset';
import { weiTo4 } from 'utils/blockchain/math-helpers';
interface Props {
amount: string;
asset: Asset;
}
export function CollateralAmount({ amount, asset }: Props) {
const loading = false;
return (
<span className={`${loading && 'bp3-skelet... |
import {
Modifiers,
Edge,
GraphElement,
isEdge,
isNode,
Node,
Graph,
DragSourceSpec,
DragObjectWithType,
DropTargetSpec,
DropTargetMonitor,
CREATE_CONNECTOR_DROP_TYPE,
CREATE_CONNECTOR_OPERATION,
isGraph,
} from '@console/topology';
import { K8sResourceKind } from '@console/internal/module/k... |
import {
CanActivate,
ExecutionContext,
HttpException,
HttpStatus,
Injectable,
UnauthorizedException
} from '@nestjs/common';
import { Observable } from 'rxjs';
import { JwtService } from '@nestjs/jwt';
import { Reflector } from '@nestjs/core';
import { ROLES_KEY } from './roles-auth.decorator';... |
class DeterministicDie {
private _currentVal = 100;
private _numRolls = 0;
roll() {
this._numRolls++;
if (this._currentVal === 100) {
this._currentVal = 1;
} else {
this._currentVal += 1;
}
return this._currentVal;
}
get numRolls() {
return this._numRolls;
}
}
class P... |
// Copyright IBM Corp. 2019. All Rights Reserved.
// Node module: @tib/context
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
import {expect} from '@tib/testlab';
import {
bind,
BindingScope,
Context,
createBindingFromClass,
Provider,
} from '... |
import React from 'react';
const SVG = ({
fill = '#000',
height = '100%',
width = '100%',
className = '',
viewBox = '0 0 16 16',
}) => (
<svg
className={className}
focusable="false"
height={height}
version="1.1"
viewBox={viewBox}
width={width}
x="0px"
xmlSpace="preserve"
... |
import { createServer } from 'net';
import { ChildProcess, spawn } from 'child_process';
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
import { IOpenOCDService } from 'vs/kendryte/vs/services/openocd/common/openOCDService';
import { executableExtension } from 'vs/kendryte/vs/base/comm... |
import styled from 'styled-components/native';
export const SkeletonContainer = styled.View`
background-color: #473759;
height: 100%;
padding: 54px 24px 0;
`;
export const Section = styled.View`
flex-direction: row;
`;
export const Main = styled.View`
background: #fff;
margin: 42px 0 0px;
border-radius... |
describe('pipedoc', () => {
it('should work', async () => {
expect(true).toBe(true);
});
}); |
import { Component, OnInit, Input, ViewChild, AfterViewInit, OnDestroy } from '@angular/core';
import { Transaction } from '../transaction';
import { DataTableDirective } from 'angular-datatables';
import { Subject, Subscription } from 'rxjs';
import { DeliveryStatusService } from 'src/app/shared/services/delivery-stat... |
import { AxiosError, AxiosRequestConfig } from "axios";
import { Device, DevicesListResponse } from "./teamViewerTypes";
import { teamViewerAPI } from "./teamViewerAPI";
import { apiConfig } from "./apiConfig";
import { ServerError } from "./serverError";
export class teamViewerDeviceAPI {
private apiConfig: Axios... |
import * as d from '../declarations';
export declare function hasServiceWorkerChanges(config: d.Config, buildCtx: d.BuildCtx): boolean;
/**
* Test if a file is a typescript source file, such as .ts or .tsx.
* However, d.ts files and spec.ts files return false.
* @param filePath
*/
export declare function isTsFile(f... |
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
*/
export const pkgName = "@fluidframework/matrix";
export const pkgVersion = "0.44.0"; |
import axios, { AxiosResponse, AxiosTransformer } from 'axios'
import cache from './ud-cache'
import { UdDefinition } from './ud-definition'
import logger from '../logger'
import { UdApiNotAvailableError } from '../exceptions/UdApiNotAvailableError'
import { searchTerm } from './scraper'
const urbanUrl: string = 'http... |
export const environment = {
production: true,
API_SUBASTA:'https://subastaonline.herokuapp.com',
SOCKET_ENDPOINT:'https://subastaonline.herokuapp.com'
}; |
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* 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 a... |
import { useEffect, useState } from 'react';
import { Button } from './components/Button';
import { MovieCard } from './components/MovieCard';
// import { SideBar } from './components/SideBar';
// import { Content } from './components/Content';
import { api } from './services/api';
import './styles/global.scss';
i... |
import React from 'react';
import { ThemeProps } from '../../../theme/theme';
export declare type Justify = 'start' | 'center' | 'end' | 'full';
export declare type Space = string | number | React.ReactText[] | Record<string | number | symbol, React.ReactText>;
export interface InnerCollectionProps {
hSpace?: numbe... |
import {
Column,
Entity,
Index,
OneToMany,
PrimaryGeneratedColumn,
} from "typeorm";
import { Hoadon } from "./Hoadon";
import { Vedat } from "./Vedat";
@Index("Account", ["account"], { unique: true })
@Entity("khachhang", { schema: "datvephim" })
export class Khachhang {
@PrimaryGeneratedColumn({ type: "i... |
import { Module } from '@nestjs/common';
import { CommitsService } from './commits.service';
import { CommitsController } from './commits.controller';
@Module({
providers: [CommitsService],
controllers: [CommitsController]
})
export class CommitsModule {} |
/*
* @copyright EveryWorkflow. All rights reserved.
*/
import { lazy } from "react";
const MenuListPage = lazy(() => import("@EveryWorkflow/MenuBundle/Admin/Page/MenuListPage"));
const MenuFormPage = lazy(() => import("@EveryWorkflow/MenuBundle/Admin/Page/MenuFormPage"));
const MenuBuilderPage = lazy(() => import("... |
// Copyright 2020 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0
// (Re-)generated by schema tool
// >>>> DO NOT CHANGE THIS FILE! <<<<
// Change the json schema instead
import * as wasmclient from "wasmclient"
import * as events from "./events"
const ArgAddress = "address";
const ArgAgentID = "agentID";
const... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*/
import { AlloySpec, SketchSpec } from '@ephox/alloy';
import { ValueS... |
import React, { useEffect, useState } from "react";
import makeStyles from "@material-ui/core/styles/makeStyles";
import {gql, useQuery} from "@apollo/client";
import {
Collapse,
List,
ListItem,
ListItemIcon,
ListItemText,
Paper,
} from "@material-ui/core";
import { ExpandMore, ExpandLess, LocalFlorist } fr... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NewUserEmployeeComponent } from './new-user-employee.component';
describe('NewUserEmployeeComponent', () => {
let component: NewUserEmployeeComponent;
let fixture: ComponentFixture<NewUserEmployeeComponent>;
beforeEach(async(() ... |
import {Component, OnInit} from '@angular/core';
import {Router, ROUTER_DIRECTIVES} from '@angular/router-deprecated';
import {Http, Response} from '@angular/http';
import {Book} from '../../beans/book';
import {BooksService} from '../../services/booksService';
import {UserService} from '../../services/userService';... |
import { Component, ModuleDeclaration, EventHandler, Complex, Browser, EmitType, addClass, select, detach } from '@syncfusion/ej2-base';
import { Property, NotifyPropertyChanges, INotifyPropertyChanged, formatUnit, L10n, closest } from '@syncfusion/ej2-base';
import { setStyleAttribute, Event, removeClass, print as pri... |
import BaseEvent from './BaseEvent'
import { plausibleCustomEvent } from './plausibleEvent'
// User clicks on login button on /minarsidur/ page.
export const webLoginButtonSelect = (
buttonType: string,
callback?: () => void,
) => {
const event: BaseEvent = {
eventName: 'Login to /minarsidur',
featureNam... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-sidebar',
templateUrl: './sidebar.component.html',
styleUrls: ['./sidebar.component.css']
})
export class SidebarComponent implements OnInit {
constructor() {}
displayDashboard(emit: any) {
document.querySelectorAll('.active... |
import { DeleteResult, Repository } from 'typeorm';
import { PublicationEntity } from '@app/publications/publication.entity';
import { MembersEntity } from '@app/members/members.entity';
import { PublicationResponseInterface } from '@app/publications/types/PublicationResponse.interface';
import { CreatePublicationDto }... |
/**
* Returns true if given value is an Array.
* @name isArray<A = any>(x: any): x is Array<A>
*/
export function isArray<A = any>(x: any): x is Array<A> {
return Array.isArray(x)
} |
import { Animation, Animations, AnimationEasings } from '../../types';
export const FadeIn: Animation = {
name: Animations.FadeIn,
from: {
visibility: {
opacity: 0,
},
},
to: {
visibility: {
opacity: 1,
},
},
};
export const FadeOut: Animation = {
name: Animations.FadeOut,
fr... |
interface Options {
compileAsModule: boolean;
compileForElectron: boolean;
debugLifecycle: boolean;
debugLogs: boolean;
keepSource: boolean;
preventSourceMaps: boolean;
silent: boolean;
}
interface Prepared {
extension: string;
locations: PreparedLocation[];
name: string;
}
interface PreparedLocat... |
import strip from 'strip-ansi'
import { toMatchSnapshot } from 'jest-snapshot'
declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace jest {
interface Matchers<R> {
toMatchStrippedSnapshot(): R
}
}
}
expect.extend({
toMatchStrippedSnapshot(received) {
const co... |
import React, { useEffect, useState } from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableContainer from '@material-ui/core/TableContainer';... |
import { ConfigServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConfigServiceClient";
import { DescribeConformancePacksRequest, DescribeConformancePacksResponse } from "../models/models_0";
import {
deserializeAws_json1_1DescribeConformancePacksCommand,
serializeAws_json1_1DescribeConfo... |
import { MongoError } from 'mongodb';
import mongoose from 'mongoose';
import { logger } from '../../../main/config/';
const callback = (err?: MongoError): any => {
if (err) {
logger.error(err.message);
// logger.error('error:' + err.message);
} else {
// eslint-disable-next-line quotes
logger.info... |
/*
* Copyright The OpenTelemetry Authors
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
export default {
type: "classInfo",
localName: "SearchLocation",
propertyInfos: [
{
type: "element",
name: "location",
collection: true,
typeInfo: "Integer",
},
{
type: "element",
name: "location_lts",
collection: true,
typeInfo: "String",
},
],
}; |
import Twitter from 'twitter'
import {isString} from 'util'
import * as fs from 'fs'
import * as core from '@actions/core'
export async function uploadMedia(mediaPaths: string[]): Promise<string[]> {
return new Promise(async (resolve, reject) => {
core.debug(JSON.stringify(mediaPaths))
for (const path of med... |
import { Injectable } from '@angular/core';
import { AngularFireDatabase, AngularFireList } from 'angularfire2/database';
import { Notification} from './notification.model';
import { Filler} from './filler.model';
@Injectable()
export class NotificationService {
notificationList: AngularFireList<any> ;
selected... |
const constraints = {
MAX_STRING_LENGTH: 256,
MAX_WHOLE_PART_LENGTH: 10,
MAX_DECIMAL_PART: 10,
MAX_ARRAY_LENGTH: 10,
MAX_OBJECT_PROPERTIES: 10
}
// hacky fix
const hexes = [
'\x00',
'\x01',
'\x02',
'\x03',
'\x04',
'\x05',
'\x06',
'\x07',
'\x08',
'\x09',
'\x0A',
'\x0B',
'\x0C',
'\x... |
import { t, rx } from '../common';
import { FileCache } from '../../../cache/FileCache';
/**
* Strategy for caching files.
*/
export async function FilesystemCacheStrategy(args: {
netbus: t.PeerNetworkBus<t.NetGroupEvent>;
events: { fs: t.FilesystemEvents; peer: t.PeerNetworkEvents };
isEnabled: () => boolean;... |
import { createGlobalStyle } from 'styled-components'
import { Colors, Fonts } from './styles'
import Mac from '../assets/fonts/SFUIRegular.woff2'
import MacBold from '../assets/fonts/HelveticaNeueMedium.woff2'
export const GlobalStyle = createGlobalStyle`
* {
box-sizing: border-box;
scrollbar-width: none;
... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ProgressTrackerComponent } from './progress-tracker.component';
@NgModule({
imports: [
CommonModule
],
declarations: [ProgressTrackerComponent]
})
export class ProgressTrackerModule { } |
export interface KeycloakConfig {
/**
* URL to the Keycloak server, for example: http://keycloak-server/auth
*/
url?: string;
/**
* Name of the realm, for example: 'myrealm'
*/
realm: string;
/**
* Client identifier, example: 'myapp'
*/
clientId: string;
/**
* undocuments
*
*/
... |
import * as Koa from 'koa';
const app = new Koa();
export default app; |
import { graphql } from 'graphql';
import UserModel from '../../UserModel';
import { schema } from '../../../../schema';
import {
clearDbAndRestartCounters,
connectMongoose,
createUser,
disconnectMongoose,
getContext,
} from '../../../../../test/helpers';
beforeAll(connectMongoose);
beforeEach(clearDbAndRe... |
import { Injectable } from '@angular/core';
import { BehaviorSubject, Observable } from "rxjs";
import { SessionService } from './session.service'
@Injectable({
providedIn: 'root'
})
export class DosageService {
private data = {
canTake: false,
nextDose: 0
}
private dataSubject: BehaviorSubject<any>;
... |
import { Query, Resolver } from '@nestjs/graphql';
import { CompanyService } from './company.service';
import { Company } from './entities/company.entity';
@Resolver(() => Company)
export class CompanyResolver {
constructor(private readonly companyService: CompanyService) {}
@Query(() => Company, { name: 'compan... |
import * as _ from 'lodash';
import { k8sCreate, K8sResourceKind } from '@console/internal/module/k8s';
import { SecretModel } from '@console/internal/models';
import { PipelineResourceModel } from '../../../models';
export interface ParamData {
[key: string]: any;
}
export const getRandomChars = (digit = 6): strin... |
import { Component, OnInit, OnDestroy, PLATFORM_ID, Inject } from '@angular/core';
import {Router, NavigationEnd} from '@angular/router';
import { isPlatformBrowser } from '@angular/common';
import { Subscription } from 'rxjs';
import { filter } from 'rxjs/operators';
import { setLocale } from 'exceptional.js';
import ... |
import { Injectable } from '@nestjs/common';
import { AuthRepository } from './auth.repository';
import { InjectRepository } from '@nestjs/typeorm';
import { AuthCredentialsDto } from './dto/auth-credentials.dto';
@Injectable()
export class AuthService {
constructor(@InjectRepository(AuthRepository) private authRe... |
import React from 'react'
import { render } from '@testing-library/react'
import App from './App'
test('renders learn react link', () => {
const { getByText } = render(<App />)
const linkElement = getByText(/Выберите группу/i)
expect(linkElement).toBeInTheDocument()
expect(linkElement).toBeVisible()
}) |
import globalGameState from '../components/GlobalGameState'
/** This class will be used to create a Dialogue Window **/
export class DialogueWindow {
// parameters
scene!: Phaser.Scene
borderThickness!: number
borderColor!: number
borderAlpha!: number
windowAlpha!: number
windowColor!: number
windowHei... |
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
export class AddSoftDelete1571504759646 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {
const column: TableColumn = new TableColumn({
name: 'deleted',
type: 'boolean',
default: fals... |
import {IAppCommands} from '../interfaces/commands/IAppCommands';
import {TSettings} from '../types/TSettings';
declare let settings:TSettings;
export class AppCommands implements IAppCommands {
public login(email:string, password:string):Promise<any>
{
return new Promise<any>((resolve:any, reject:an... |
import * as pluralize from 'pluralize';
import { I18N_GENERIC } from '../../meta-schema/constants';
import {
arrayStartsWith,
capitalize,
compact,
decapitalize,
groupArray,
mapFirstDefined,
mapValues
} from '../../utils/utils';
import {
LocalizationBaseConfig,
LocalizationConfig,
... |
import { GuildSettings, ModerationEntity } from '#lib/database';
import { LanguageKeys } from '#lib/i18n/languageKeys';
import type { GuildMessage } from '#lib/types';
import { PermissionLevels } from '#lib/types/Enums';
import { CLIENT_ID } from '#root/config';
import type { ModerationActionsSendOptions } from '#utils... |
/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
import { DateTime, Duration } from './../';
import {
DatePipe,
DayOfWeekPipe,
DayPipe,
DurationPipe,
FromNowPipe,
MonthPipe,
ShortDatePipe,
ShortTimePipe
} from './date-... |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { isJsonObject } from '@angular-devkit/core';
import { resolve } from 'path';
import { Cache, Environment } fr... |
version https://git-lfs.github.com/spec/v1
oid sha256:38aa8168c7fba1cab32ff8d5e3196a3cfe87dc710856047c88704f5dea9dafef
size 374496 |
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { AboutusPage } from './aboutus';
@NgModule({
declarations: [
AboutusPage,
],
imports: [
IonicPageModule.forChild(AboutusPage),
],
exports: [
AboutusPage
]
})
export class AboutusPageModule {} |
import { SchemaTemplateFactory } from '../../../types';
export declare const ArrayItemTemplate: SchemaTemplateFactory; |
import { RpcRequestBodyItem } from "..";
import { RpcRequest } from "../corpus";
export declare enum Priority {
HIGHEST = 9000,
NORMAL = 600,
LOWEST = 300
}
export declare const rpcRequest: (body: RpcRequestBodyItem[], priority?: Priority) => RpcRequest; |
import { StringTypeDef } from "../../interfaces/index.ts";
import { stdSystemName } from "../stdSystemName.ts";
export const dateTimeUtc: StringTypeDef = {
kind: "string",
system: stdSystemName,
name: "dateTimeUtc",
summary:
`A string with the date and time components arranged using the YYYY-MM-DDTHH:mm:ss... |
import * as _ from 'lodash';
import * as log from 'fancy-log';
export abstract class BaseLogger {
protected displayName: string = '';
constructor(public readonly name: string) {
}
protected abstract compileMessage(message: string): string;
log(message: string) {
log.default(this.com... |
import { Assignment } from '../types';
export default function sortByDate(assignments: Assignment[]): Assignment[] {
function compareDates(a: Assignment, b: Assignment) {
return new Date(a.due_at).valueOf() - new Date(b.due_at).valueOf();
}
return assignments.sort(compareDates);
} |
import {Routes, RouterModule} from "@angular/router";
import {ModuleWithProviders} from "@angular/core";
import {AuthGuard} from './services/auth-guard.service';
import {LoginComponent} from "./components/user/login/login.component";
import {RegisterComponent} from "./components/user/register/register.component";
impor... |
/**
* Package md5 does not have types.
*/
// @ts-ignore
import md5 from "md5";
import {
Response,
NotFoundResponse,
ErrorResponse,
ListResponse,
ListErrorResponse
} from "@webiny/handler-graphql/responses";
import { AdminUser, AdminUsersContext } from "~/types";
import { GraphQLSchemaPlugin } from... |
import React from "react";
import styled from "styled-components/macro";
import { VeiviserContext } from "./VeiviserStateChart";
import { Chevron } from "../faktaside/Meny/Chevron";
const Style = styled.div`
margin-left: 5rem;
`;
const BrødsmuleStyle = styled.button`
display: inline-flex;
background-color: tran... |
/* eslint-disable @typescript-eslint/explicit-function-return-type */
import { h } from 'preact';
import { shallow } from 'enzyme';
import {
PageSizeLarge,
PAGER_SELECTED_PAGE_SIZE_CLASS, PAGER_PAGE_SIZE_CLASS,
} from '../../../js/renovation/pager/page_size/large';
describe('Pager size selector', () => {
const p... |
/// <reference path="../../../../typings.d.ts" />
import * as React from 'react';
import {storiesOf} from '@storybook/react';
import withReadme from 'storybook-readme/with-readme';
import {ControlledComponentWrapper} from '../../../../utils/storybook';
import {Switch} from '../../../switch/react/index';
import FormFie... |
import React from 'react';
import { DatePickerIOS, StyleSheet, Text, View } from 'react-native';
import { TextSize } from '../styles';
import { Field } from './Field';
import { FieldIcon } from './FieldIcon';
export interface IDatePickerComponent {
value?: Date;
onChange?: any;
dateTimeFormat?: (value: Da... |
// eslint-disable-next-line no-unused-vars
import { ILanguage } from './ILanguage';
export default {
title: 'Static data from the introduction of the report',
titlePT: {
text: 'Title in Portuguese',
title: 'The title of the report in Portuguese',
required: 'This field is required',
min: '5 characte... |
/**
* Copyright (c) 2018-present, heineiuo.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { assert } from "./DBHelper";
import Slice from "./Slice";
export interface Comparator {
// Three-way comparison. Returns value:
... |
import * as b from "bobril";
import * as f from "./flux";
import * as s from "./states";
interface ICtx extends f.IContext<s.IUserInfo> {}
export const createUserInfo = f.createComponent<s.IUserInfo>({
render(ctx: ICtx, me: b.IBobrilNode) {
me.children = [{ tag: "h3", children: ctx.state.email, style: { p... |
import * as React from 'react';
import { render } from 'react-dom';
import App from './App';
render(React.createElement(App), document.getElementById('app')); |
import React from 'react';
import { SvgIcon, SvgIconProps } from '@kukui/ui';
const SvgComponent = props => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}>
<path d="M248.8 1.689c4.5-2.252 9.8-2.252 14.4 0l176 88.001c7.9 3.95 11.1 13.61 7.1 21.51-3.9 7.9-13.6 11.1-21.5 7.1l-8.8-4.4V192... |
import * as H from 'history'
import { flatten, noop } from 'lodash'
import React from 'react'
import { createRenderer } from 'react-test-renderer/shallow'
import { setLinkComponent } from '../../../shared/src/components/Link'
import { ExtensionsControllerProps } from '../../../shared/src/extensions/controller'
import *... |
import { Module, OnModuleInit, Type } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { CqrsModule } from '@nestjs/cqrs';
import { StrategyExplorer } from 'apps/@core';
import { TokensController } from './application/controllers';
import { ClientCredentialsStrategy, RefreshTokenStrategy, ... |
import { mergeDeep, ERROR_SYMBOL } from '@graphql-tools/utils';
import { SubschemaConfig } from '../types';
import { OBJECT_SUBSCHEMA_SYMBOL, FIELD_SUBSCHEMA_MAP_SYMBOL } from '../symbols';
export function mergeProxiedResults(target: any, ...sources: Array<any>): any {
const results = sources.filter(source => !(sou... |
// Constants
export const Constants = {
Test: "test",
Test1: "test1"
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Component, OnInit } from '@angular/core';
import { NgForm } from '@angular/forms';
import { AuthenticationService } from 'src/app/shared/authentication.service';
import { Router } from '@angular/router';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.comp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.